Skip to content

armgit / peach

Public Imported from GitHub
0

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

refactor(web): 关注详情迁成 follow-detail 岛,删掉壳里那一套

longmeidao93afbc3387ac
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index a1c850269..37a7d0044 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -364,10 +364,14 @@ BoardUI 的 `chart-*` 档。点一个内容标签是「回目录并按它筛选
React 子树的样式是 Tailwind v4 加 BoardUI 主题,产物 `peach-react.css`;它与旧样式表同处一页的
三条约束(工具类不分层、只扫描 `src/react/`、Preflight 限定在 `.peach-react` 里)写在
`frontend/src/react/styles.css` 开头,逐字复制与没有复制的上游文件见 `frontend/src/react/boardui/ORIGIN.md`。
-`.oxlintrc.json` 里三条例外也在那儿定:`configpage`、`configgroup` 是旧样式表的类名,
+`.oxlintrc.json` 里的例外也在那儿定:`configpage`、`configgroup` 是旧样式表的类名,
React 页要按原名输出壳才拆得出分区;`swiper`、`swiper-wrapper`、`swiper-slide`、
`swiper-zoom-container` 是 Swiper 核心 API 认的结构类名(图片灯箱),不写它就找不到轮播的
-容器与每一张;`shadow-dropdown` 是 BoardUI 主题里的 `--shadow-*`,
+容器与每一张;关注详情(`follow-detail`)的舞台版式、侧栏、合集队列与 Video.js 播放器仍用
+`13-stage.css`、`15-detail.css` 与 Video.js 皮肤,`sgrid`、`mixgrid`、`vwrap`、`closestage`、`video-js`、
+`vjs-big-play-centered`、`side`、`sidecontent`、`stitle`、`smeta`、`mono`、`stags`、`tg`、`mav`、`externallink`、
+`fb`、`later`、`seen`、`dislike`、`dur`、`current` 与 `mix*` 这一组按原名输出,舞台与播放器归 React 时一起收回;
+`shadow-dropdown` 是 BoardUI 主题里的 `--shadow-*`,
`no-raw-colors` 只认 `--color-*`,把它当成了未声明的颜色。
## 依赖清单
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
index a18e1f6d1..5cb217be2 100644
--- a/frontend/.oxlintrc.json
+++ b/frontend/.oxlintrc.json
@@ -19,7 +19,11 @@
}],
"shadcn/no-arbitrary-values": "error",
"shadcn/no-inline-styles": "error",
- "shadcn/no-unknown-classes": ["error", { "allow": ["configpage", "configgroup", "swiper", "swiper-wrapper", "swiper-slide", "swiper-zoom-container"] }],
+ "shadcn/no-unknown-classes": ["error", { "allow": ["configpage", "configgroup", "swiper", "swiper-wrapper", "swiper-slide", "swiper-zoom-container",
+ "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"] }],
"shadcn/require-static-classes": "error"
}
}
diff --git a/frontend/e2e/design.test.ts b/frontend/e2e/design.test.ts
index 6bfcf2390..1ef29a2b5 100644
--- a/frontend/e2e/design.test.ts
+++ b/frontend/e2e/design.test.ts
@@ -8,7 +8,7 @@ import { after, before, describe, it } from 'node:test';
import type { Browser, Locator, Page } from 'playwright-core';
-import { openFollowFeed } from './follow-fixture.ts';
+import { DETAIL, openFollowFeed } from './follow-fixture.ts';
import {
configurationBody, expectBody, launch, layout, requiredEnv, settle, visit, VIEWPORTS, type Visit,
} from './harness.ts';
@@ -4391,4 +4391,83 @@ describe('设计决定', () => {
await narrow.close();
}
});
+
+ it('关注详情的翻页圆钮:48px 玻璃底、窄屏 44px;落在图片黑边的视觉中心,太窄才退回 16/10 的安全内距;圆点离底 18/12', { timeout: 90_000 }, async () => {
+ const read = (page: Page) => page.evaluate(() => {
+ const frame = document.querySelector<HTMLElement>('#stage [data-follow-detail-media="image"]')!;
+ const next = frame.querySelector('[data-follow-image-arrow="next"]')!, style = getComputedStyle(next);
+ const outer = frame.getBoundingClientRect(), box = next.getBoundingClientRect();
+ const dots = frame.querySelector('[data-follow-image-dots]')!.getBoundingClientRect();
+ // 桩里的图都是 600×800:object-fit:contain 之后左右各留一道黑边。
+ const rendered = Math.min(outer.width, outer.height * 600 / 800);
+ const gutter = (outer.width - rendered) / 2;
+ return {
+ size: [box.width, box.height], background: style.backgroundColor, blur: style.backdropFilter,
+ inset: outer.right - box.right, gutter, dotsBottom: outer.bottom - dots.bottom,
+ framed: frame.hasAttribute('data-framed'),
+ ratio: getComputedStyle(frame.querySelector('[data-follow-detail-poster]')!).aspectRatio,
+ };
+ });
+ const centered = (shown: { gutter: number; size: number[] }, safe: number) =>
+ shown.gutter >= shown.size[0]! + safe * 2 ? (shown.gutter - shown.size[0]!) / 2 : safe;
+ const wide = await openFollowFeed(browser, `/follow/item/${DETAIL.gallery}`, DESKTOP,
+ { ready: '#stage [data-follow-image-arrow="next"]' });
+ try {
+ await wide.page.waitForFunction(() => (document.querySelector('#stage [data-follow-detail-poster]') as HTMLImageElement)?.complete);
+ const shown = await read(wide.page);
+ assert.deepEqual(shown.size, [48, 48]);
+ assert.equal(shown.background, 'rgba(0, 0, 0, 0.6)');
+ assert.equal(shown.blur, 'blur(16px)');
+ assert.ok(Math.abs(shown.inset - centered(shown, 16)) <= 1, `箭头没落在黑边中心:${JSON.stringify(shown)}`);
+ assert.ok(Math.abs(shown.dotsBottom - 18) <= .5, `圆点离底 ${shown.dotsBottom}px`);
+ // 画框比例跟整组图走:换图时详情不忽高忽低。
+ assert.equal(shown.framed, true);
+ assert.match(shown.ratio, /^0\.75\b/);
+ assert.deepEqual(wide.problems, []);
+ } finally {
+ await wide.close();
+ }
+ const narrow = await openFollowFeed(browser, `/follow/item/${DETAIL.gallery}`, MOBILE,
+ { ready: '#stage [data-follow-image-arrow="next"]' });
+ try {
+ await narrow.page.waitForFunction(() => (document.querySelector('#stage [data-follow-detail-poster]') as HTMLImageElement)?.complete);
+ const shown = await read(narrow.page);
+ assert.deepEqual(shown.size, [44, 44]);
+ assert.ok(Math.abs(shown.inset - centered(shown, 10)) <= 1, `窄屏箭头内距不对:${JSON.stringify(shown)}`);
+ assert.ok(Math.abs(shown.dotsBottom - 12) <= .5, `窄屏圆点离底 ${shown.dotsBottom}px`);
+ assert.deepEqual(narrow.problems, []);
+ } finally {
+ await narrow.close();
+ }
+ });
+
+ it('关注详情:没有预览的那一格占 16:9;标签按来源记下的类型取 r34 色板,未知类型取中性灰', { timeout: 60_000 }, async () => {
+ const opened = await openFollowFeed(browser, `/follow/item/${DETAIL.bare}`, DESKTOP,
+ { ready: '#stage [data-follow-detail-tags]' });
+ try {
+ const page = opened.page;
+ const shown = await page.evaluate(() => ({
+ placeholder: getComputedStyle(document.querySelector('#stage [data-follow-detail-placeholder]')!).aspectRatio,
+ tags: Object.fromEntries([...document.querySelectorAll<HTMLElement>('#stage [data-follow-tag]')].map((tag) =>
+ [tag.dataset.followTag, getComputedStyle(tag).getPropertyValue('--tag-color').trim()])),
+ }));
+ assert.equal(shown.placeholder, '16 / 9');
+ const muted = await tokenColor(page, '#stage [data-follow-detail]', '--muted');
+ const unknown = await page.evaluate(() => {
+ const tag = document.querySelector<HTMLElement>('#stage [data-follow-tag="odd"]')!;
+ const probe = document.createElement('div');
+ probe.style.backgroundColor = 'var(--tag-color)';
+ tag.append(probe);
+ const value = getComputedStyle(probe).backgroundColor;
+ probe.remove();
+ return value;
+ });
+ assert.deepEqual({ ...shown.tags, odd: unknown }, {
+ ow: '#d675d6', tracer: '#68c76f', kou: '#e36c6c', solo: '#55a7ff', animated: '#f5a24a', odd: muted,
+ });
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
});
diff --git a/frontend/e2e/follow-detail.test.ts b/frontend/e2e/follow-detail.test.ts
new file mode 100644
index 000000000..131e24c99
--- /dev/null
+++ b/frontend/e2e/follow-detail.test.ts
@@ -0,0 +1,264 @@
+/* 关注详情岛(`follow-detail`)在真浏览器里的行为:从列表进出、深链、Video.js 挂在岛画的
+ * `<video>` 上、多图轮播、合集与多媒体两种队列、写操作与撤销、隐藏与恢复、标签回列表、手机。
+ * 灯箱收到整组图那一条在 `photo-lightbox.test.ts`。
+ *
+ * 桩数据见 `follow-fixture.ts`(`DETAIL` 那几种形态只经单条取数交回);关注来源的真实抓取一次都不发。 */
+import assert from 'node:assert/strict';
+import { after, before, describe, it } from 'node:test';
+
+import type { Browser, Page } from 'playwright-core';
+
+import { DETAIL, openFollowFeed } from './follow-fixture.ts';
+import { layout, launch, VIEWPORTS } from './harness.ts';
+
+const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;
+const MOBILE = VIEWPORTS.find((viewport) => viewport.mobile)!;
+const DETAIL_READY = '#stage[open] [data-follow-detail-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 });
+
+/** 记下这一页之后发出的关注列表请求与单条取数,分开数。 */
+function watchFollowRequests(page: Page) {
+ const seen = { list: 0, item: [] as string[] };
+ page.on('request', (request) => {
+ const url = new URL(request.url());
+ if (url.pathname !== '/api/follow') return;
+ if (url.searchParams.has('item')) seen.item.push(url.searchParams.get('item')!);
+ else seen.list += 1;
+ });
+ return seen;
+}
+
+const openDetail = (browser: Browser, id: number, viewport = DESKTOP) =>
+ openFollowFeed(browser, `/follow/item/${id}`, viewport, { ready: DETAIL_READY });
+
+describe('关注详情岛', () => {
+ let browser: Browser;
+
+ before(async () => {
+ browser = await launch();
+ });
+
+ after(async () => {
+ await browser.close();
+ });
+
+ it('列表点卡进详情:地址换成这一条,不再单条取数;关掉回列表不重取', { timeout: 60_000 }, async () => {
+ const opened = await openFollowFeed(browser, '/follow', DESKTOP);
+ try {
+ const page = opened.page;
+ const seen = watchFollowRequests(page);
+ await page.locator('[data-follow-item="1002"] [data-follow-open]').click();
+ await pathIs(page, '/follow/item/1002');
+ await page.locator(DETAIL_READY).waitFor();
+ assert.equal((await page.locator('#stage [data-follow-detail-name]').innerText()).trim(), '演示更新 1002');
+ assert.deepEqual(seen.item, [], '列表缓存里有的这一条又单条取了一次');
+ await page.locator('#closeStage').click();
+ await pathIs(page, '/follow');
+ await page.locator('[data-follow-list] > [data-follow-item]').first().waitFor();
+ assert.equal(seen.list, 0, '关掉详情回列表重取了一遍');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('深链进详情只单条取这一条,不挂列表岛;内容到了焦点在关闭键上', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.collection);
+ try {
+ const page = opened.page;
+ assert.equal(await page.locator('[data-follow-feed]').count(), 0, '深链进详情时挂了列表岛');
+ assert.equal((await page.locator('#stage [data-follow-detail-name]').innerText()).trim(), '合集主条目 5101');
+ assert.equal(await page.evaluate(() => document.activeElement?.id), 'closeStage');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('视频:Video.js 挂在岛画的 `<video>` 上,氛围光画布与统计角标插进同一个媒体框;换一条只剩一个播放器', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.collection);
+ try {
+ const page = opened.page;
+ const frame = page.locator('#stage [data-follow-detail-media="video"]');
+ // 控制条在用户一段时间不动后会隐去(Video.js 的 userActive),只等它挂上,不等可见。
+ await frame.locator('.video-js .vjs-control-bar').waitFor({ state: 'attached' });
+ assert.equal(await frame.locator('.ambientcanvas').count(), 1);
+ assert.equal(await frame.locator('.video-js video').count(), 1, '播放器没有接管岛画的那个 video');
+ await page.locator('[data-follow-queue-item="5102"]').click();
+ await pathIs(page, '/follow/item/5102');
+ await page.locator('#stage [data-follow-queue-item="5102"][aria-current="true"]').waitFor();
+ await page.locator('#stage .video-js .vjs-control-bar').waitFor({ state: 'attached' });
+ assert.equal(await page.locator('#stage .video-js').count(), 1, '换一条之后旧播放器没拆');
+ assert.equal(await page.locator('#stage .ambientcanvas').count(), 1);
+ await page.locator('#closeStage').click();
+ await pathIs(page, '/follow');
+ await page.locator('[data-follow-list] > [data-follow-item]').first().waitFor({ timeout: 15_000 });
+ assert.equal(await page.locator('.video-js').count(), 0, '关掉详情后播放器还挂着');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('多图轮播:圆点报当前那张,箭头与圆点换图不换地址', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.gallery);
+ try {
+ const page = opened.page;
+ const current = () => page.locator('#stage [data-follow-image-dots] button').evaluateAll((dots) =>
+ dots.map((dot) => dot.getAttribute('aria-current')));
+ const poster = page.locator('#stage [data-follow-detail-poster]');
+ assert.deepEqual(await current(), ['true', 'false', 'false']);
+ assert.equal(await poster.getAttribute('src'), '/follow-stream?id=5001&media=0');
+ await page.locator('#stage [data-follow-image-arrow="next"]').click();
+ await page.waitForFunction(() => document.querySelector('#stage [data-follow-detail-poster]')
+ ?.getAttribute('src') === '/follow-stream?id=5001&media=1');
+ assert.deepEqual(await current(), ['false', 'true', 'false']);
+ await page.locator('#stage [data-follow-image-arrow="prev"]').click();
+ await page.locator('#stage [data-follow-image-dots] button').nth(2).click();
+ await page.waitForFunction(() => document.querySelector('#stage [data-follow-detail-poster]')
+ ?.getAttribute('src') === '/follow-stream?id=5001&media=2');
+ assert.deepEqual(await current(), ['false', 'false', 'true']);
+ assert.equal(new URL(page.url()).pathname, '/follow/item/5001');
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('合集队列:只列可播视频、新到旧,当前那条按下;另一站那条的出处是站点图标', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.collection);
+ try {
+ const page = opened.page;
+ const queue = page.locator('#stage [data-follow-queue][data-queue-kind="collection"]');
+ const rows = await queue.locator('[data-follow-queue-item]').evaluateAll((buttons) => buttons.map((button) => ({
+ id: Number((button as HTMLElement).dataset.followQueueItem), current: button.getAttribute('aria-current'),
+ icon: button.querySelector('[data-follow-queue-meta] img')?.getAttribute('alt') ?? null,
+ })));
+ assert.deepEqual(rows, [
+ { id: 5101, current: 'true', icon: null },
+ { id: 5102, current: 'false', icon: null },
+ { id: 5103, current: 'false', icon: 'Rule34.xxx' },
+ ]);
+ assert.match(await queue.locator('.mixqueuehead').innerText(), /视频合集[\s\S]*3 个视频/);
+ assert.equal(await queue.locator('[data-queue-close]').isVisible(), false, '并排布局的队列头不该有关闭键');
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('多媒体队列:一帖里的图与视频各占一行,点图换成图片不换地址', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.media);
+ try {
+ const page = opened.page;
+ const queue = page.locator('#stage [data-follow-queue][data-queue-kind="media"]');
+ const kinds = await queue.locator('[data-follow-media-item]').evaluateAll((buttons) =>
+ buttons.map((button) => [(button as HTMLElement).dataset.mediaKind, button.getAttribute('aria-current')]));
+ assert.deepEqual(kinds, [['video', 'true'], ['image', 'false'], ['video', 'false']]);
+ await queue.locator('[data-follow-media-item="1"]').click();
+ await page.locator('#stage [data-follow-detail-media="image"] [data-follow-detail-poster]').waitFor();
+ assert.equal(await queue.locator('[data-follow-media-item="1"]').getAttribute('aria-current'), 'true');
+ assert.equal(await page.locator('#stage .video-js').count(), 0, '换成图片后播放器没拆');
+ assert.equal(new URL(page.url()).pathname, '/follow/item/5201');
+ // 当前是图,操作条里多一枚「隐藏这张图」。
+ assert.equal(await page.locator('#stage [data-follow-media-hide="1"]').count(), 1);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('保存与状态:写进桩、键态跟着变;标记已看的回执能撤销,撤销后键态回原样', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.gallery);
+ try {
+ const page = opened.page;
+ const seen = page.locator('#stage [data-follow-detail-status="seen"]');
+ assert.equal(await seen.getAttribute('aria-pressed'), 'false');
+ await seen.click();
+ await page.locator('#stage [data-follow-detail-status="seen"][aria-pressed="true"]').waitFor();
+ assert.equal(await page.locator('#stage [data-follow-detail-status="new"]').count(), 1, '已看之后没有「恢复未看」');
+ // 回执栈在 body 下,舞台是模态 dialog,外面整页惰性,鼠标点不到撤销键;这里量的是撤销本身。
+ await page.locator('#toasts').getByRole('button', { name: '撤销' }).dispatchEvent('click');
+ await page.locator('#stage [data-follow-detail-status="seen"][aria-pressed="false"]').waitFor();
+ await page.locator('#stage [data-follow-detail-save]').click();
+ await page.locator('#stage [data-follow-detail-save][aria-label="已保存"]').waitFor();
+ assert.deepEqual(opened.stub.writes, [
+ { url: '/api/follow/status', body: { item: 5001, to: 'seen' } },
+ { url: '/api/follow/status', body: { item: 5001, to: 'new' } },
+ { url: '/api/follow/save', body: { item: 5001 } },
+ ]);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('隐藏这张图退到恢复带,从恢复带点回来又回到轮播', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.hidden);
+ try {
+ const page = opened.page;
+ const restores = () => page.locator('#stage [data-follow-media-restore]').evaluateAll((buttons) =>
+ buttons.map((button) => Number((button as HTMLElement).dataset.followMediaRestore)));
+ const dots = () => page.locator('#stage [data-follow-image-dots] button').count();
+ assert.deepEqual(await restores(), [3, 4]);
+ assert.equal(await dots(), 3);
+ await page.locator('#stage [data-follow-media-hide="0"]').click();
+ await page.waitForFunction(() => document.querySelectorAll('#stage [data-follow-media-restore]').length === 3);
+ assert.deepEqual(await restores(), [0, 3, 4]);
+ assert.equal(await dots(), 2);
+ assert.match(await page.locator('#stage [data-follow-hidden-label]').innerText(), /已隐藏 3 张/);
+ await page.locator('#stage [data-follow-media-restore="0"]').click();
+ await page.waitForFunction(() => document.querySelectorAll('#stage [data-follow-media-restore]').length === 2);
+ assert.equal(await page.locator('#stage [data-follow-detail-poster]').getAttribute('src'),
+ '/follow-stream?id=5301&media=0', '恢复的那张没有回到舞台上');
+ assert.deepEqual(opened.stub.writes, [
+ { url: '/api/follow/media/hide', body: { item: 5301, media: 0, hidden: true } },
+ { url: '/api/follow/media/hide', body: { item: 5301, media: 0, hidden: false } },
+ ]);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('点详情里的标签回到带上这枚标签的列表', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.gallery);
+ try {
+ const page = opened.page;
+ const tag = page.locator('#stage [data-follow-tag]').first();
+ const name = (await tag.getAttribute('data-follow-tag'))!;
+ await tag.click();
+ await page.waitForFunction((wanted) => location.pathname === '/follow'
+ && new URLSearchParams(location.search).get('tag') === wanted, name, { timeout: 10_000 });
+ await page.locator('[data-follow-list] > [data-follow-item]').first().waitFor({ timeout: 15_000 });
+ assert.equal(await page.locator('#stage[open]').count(), 0);
+ assert.deepEqual(opened.problems, []);
+ } finally {
+ await opened.close();
+ }
+ });
+
+ it('手机 390:详情不横向溢出,操作条按内容定宽,合集队列排在侧栏下面', { timeout: 60_000 }, async () => {
+ const opened = await openDetail(browser, DETAIL.collection, MOBILE);
+ try {
+ const page = opened.page;
+ assert.deepEqual((await layout(page)).offenders, [], '详情里有元素越出视口右边');
+ const boxes = await page.evaluate(() => {
+ const box = (selector: string) => document.querySelector(selector)!.getBoundingClientRect();
+ const actions = box('#stage [data-follow-detail-actions]');
+ const buttons = [...document.querySelectorAll('#stage [data-follow-detail-actions] > *')]
+ .map((node) => node.getBoundingClientRect());
+ return { actions: actions.width, used: buttons.at(-1)!.right - buttons[0]!.left,
+ side: box('#stage [data-follow-detail-side]').bottom, queue: box('#stage [data-follow-queue]').top };
+ });
+ assert.ok(Math.abs(boxes.actions - boxes.used) <= 1, `操作条被撑宽了:${JSON.stringify(boxes)}`);
+ assert.ok(boxes.queue >= boxes.side - 1, `合集队列不在侧栏下面:${JSON.stringify(boxes)}`);
+ assert.deepEqual(withoutPlayer(opened.problems), []);
+ } finally {
+ await opened.close();
+ }
+ });
+});
diff --git a/frontend/e2e/follow-fixture.ts b/frontend/e2e/follow-fixture.ts
index a85d0c4f4..22bb8613f 100644
--- a/frontend/e2e/follow-fixture.ts
+++ b/frontend/e2e/follow-fixture.ts
@@ -1,7 +1,7 @@
-/* 关注页岛的桩数据:`follow-feed.test.ts` 与 `design.test.ts` 共用。
+/* 关注页与关注详情两个岛的桩数据:`follow-feed.test.ts`、`follow-detail.test.ts` 与 `design.test.ts` 共用。
*
* 演示库没有关注来源,这里按 `_source_payload`、`_group_payload`(`src/peach/web_follow.py`)造
- * 六位创作者、一页视频与图片、第二页续页。关注来源的真实抓取一次都不发:`/api/follow/check`
+ * 六位创作者、一页视频与图片、第二页续页,外加详情那几种形态。关注来源的真实抓取一次都不发:`/api/follow/check`
* 的 POST 由桩接住,写接口(状态、稍后看)也只落在桩里。进页掷的取样种子换成定种子的序列,
* 两排的次序每次一样。 */
import type { Page, Route } from 'playwright-core';
@@ -56,6 +56,60 @@ export const FIRST = [
/** 续页那一批视频。 */
export const MORE = Array.from({ length: 4 }, (_, at) => group(item(3000 + at, at + 3)));
+/* ── 详情那几种形态 ──
+ 只经单条取数(`/api/follow?item=`)交回、不进列表页:列表那几条按 FIRST 数卡,不受影响。 */
+const still = (id: number, index: number) => ({
+ index, media_kind: 'image', thumb_url: `/stub-thumb/${id}-${index}`, name: `${index}.jpg`, width: 600, height: 800,
+ media_type: 'image/jpeg',
+});
+const clip = (id: number, index: number) => ({
+ index, media_kind: 'video', thumb_url: `/stub-thumb/${id}v${index}`, name: `片段 ${index}.mp4`, width: 1280, height: 720,
+ media_type: 'video/mp4',
+});
+const gallery = (id: number, count: number, title: string) => item(id, 1, {
+ title, media_kind: 'image', thumb_url: `/stub-thumb/${id}-0`, duration: null, media_type: 'image/jpeg', width: 600,
+ height: 800, media_items: Array.from({ length: count }, (_, index) => still(id, index)),
+});
+/** 多图轮播、视频合集(另一版加另一站的同一条)、一帖多媒体、带两张已隐藏图的帖子,以及一条
+ * 没有任何预览、标签六种类型各一枚的帖子。 */
+export const DETAIL = { gallery: 5001, collection: 5101, media: 5201, hidden: 5301, bare: 5401 } as const;
+const TYPED_TAGS = { ow: 'copyright', tracer: 'character', kou: 'artist', solo: 'general', animated: 'metadata', odd: 'unknown' };
+const DETAIL_GROUPS = [
+ group(gallery(5001, 3, '三张图的帖子 5001')),
+ {
+ ...group(item(5101, 0, { title: '合集主条目 5101' })), providers: ['kemono', 'rule34xxx'],
+ variants: [item(5102, 0, { title: '合集另一版 5102', variant_kind: 'alt', variant_label: '4K',
+ published_at: '2026-09-19T08:20:00Z' })],
+ duplicates: [item(5103, 1, { title: '另一站的同一条 5103', published_at: '2026-09-18T08:20:00Z' })],
+ },
+ group(item(5201, 0, { title: '多媒体帖子 5201', media_items: [clip(5201, 0), still(5201, 1), clip(5201, 2)] })),
+ group(gallery(5301, 5, '有隐藏图的帖子 5301')),
+ group(item(5401, 0, {
+ title: '只有文字的帖子 5401', thumb_url: null, has_media: false, media_kind: 'external', playable: false,
+ media_type: null, duration: null, tags: Object.keys(TYPED_TAGS), detail_tags: Object.keys(TYPED_TAGS),
+ tag_types: TYPED_TAGS,
+ })),
+];
+const members = (row: (typeof DETAIL_GROUPS)[number]) => [row.primary, ...row.variants, ...row.duplicates];
+const detailMediaKind = (id: number, index: number) => DETAIL_GROUPS.flatMap(members)
+ .find((member) => member.id === id)?.media_items.find((media) => media.index === index)?.media_kind;
+
+/** 单条取数:状态与隐藏按桩里记下的写,隐藏的图从媒体清单挪到 `hidden_media`,同服务端投影。 */
+const detailPayload = (id: number, statuses: Map<number, string>, hidden: Map<number, Set<number>>) => {
+ const row = DETAIL_GROUPS.find((candidate) => members(candidate).some((member) => member.id === id));
+ if (!row) return null;
+ const view = <T extends (typeof row)['primary']>(member: T): T => {
+ const off = hidden.get(member.id) || new Set<number>();
+ return {
+ ...member, status: statuses.get(member.id) || member.status,
+ media_items: member.media_items.filter((media) => !off.has(media.index)),
+ hidden_media: member.media_items.filter((media) => off.has(media.index)),
+ };
+ };
+ const groups = [{ ...row, primary: view(row.primary), variants: row.variants.map(view), duplicates: row.duplicates.map(view) }];
+ return { ok: true, sources: SOURCES, author_aliases: [], groups };
+};
+
/** 写成功的状态记在这里,重读时读得到,同服务端。 */
const payload = (url: URL, statuses: Map<number, string>) => {
const offset = Number(url.searchParams.get('offset') || 0);
@@ -91,6 +145,7 @@ export interface FollowStub {
async function stub(page: Page): Promise<FollowStub> {
const held: { route: Route; url: URL }[] = [];
const statuses = new Map<number, string>();
+ const hidden = new Map([[DETAIL.hidden, new Set([3, 4])]]);
const state: FollowStub = {
writes: [], hold: null,
release: async () => {
@@ -100,6 +155,8 @@ async function stub(page: Page): Promise<FollowStub> {
};
await page.route((url) => url.pathname === '/api/follow', (route) => {
const url = new URL(route.request().url());
+ const single = url.searchParams.has('item') && detailPayload(Number(url.searchParams.get('item')), statuses, hidden);
+ if (single) return route.fulfill({ json: single });
if (state.hold?.(url)) {
held.push({ route, url });
return;
@@ -135,7 +192,22 @@ async function stub(page: Page): Promise<FollowStub> {
return route.fulfill({ contentType: 'image/svg+xml', body: svg(key, width, height) });
});
await page.route('**/source-icon**', (route) => route.fulfill({ contentType: 'image/svg+xml', body: svg('icon', 32, 32) }));
- await page.route('**/follow-stream**', (route) => route.fulfill({ status: 204, body: '' }));
+ await page.route((url) => url.pathname === '/api/follow/media/hide', (route) => {
+ const body = route.request().postDataJSON() as { item: number; media: number; hidden: boolean };
+ state.writes.push({ url: '/api/follow/media/hide', body });
+ const off = hidden.get(body.item) || new Set<number>();
+ if (body.hidden) off.add(body.media); else off.delete(body.media);
+ hidden.set(body.item, off);
+ return route.fulfill({ json: { ok: true } });
+ });
+ // 图按原图代理给一张画出来的图;视频不给正片,播放器报的那一条 VIDEOJS 错误由各条自己滤掉。
+ await page.route('**/follow-stream**', (route) => {
+ const url = new URL(route.request().url());
+ const kind = detailMediaKind(Number(url.searchParams.get('id')), Number(url.searchParams.get('media')));
+ return kind === 'image'
+ ? route.fulfill({ contentType: 'image/svg+xml', body: svg(url.search, 600, 800) })
+ : route.fulfill({ status: 204, body: '' });
+ });
await page.route('**/follow-qualities**', (route) => route.fulfill({ json: {} }));
return state;
}
diff --git a/frontend/e2e/follow-source-icons.test.ts b/frontend/e2e/follow-source-icons.test.ts
index a89aaecd1..deb45c50d 100644
--- a/frontend/e2e/follow-source-icons.test.ts
+++ b/frontend/e2e/follow-source-icons.test.ts
@@ -97,7 +97,7 @@ async function lineGeometry(page: Page, selector: string) {
alt: icon?.getAttribute('alt') ?? null,
title: icon?.getAttribute('title') ?? null,
icon: mid(icon),
- mark: mid(line.querySelector('.fvkind')),
+ mark: mid(line.querySelector('[data-follow-variant]')),
time: mid(line.querySelector('time')),
line: mid(line),
};
@@ -116,9 +116,9 @@ describe('关注的出处用站点图标', () => {
});
it('合集队列卡:出处是带站名的图标,与时间同一条中线', { timeout: 60_000 }, async () => {
- const opened = await openFollow(browser, '/follow/item/1', '.followqueue .mixitem');
+ const opened = await openFollow(browser, '/follow/item/1', '[data-follow-queue-item]');
try {
- const rows = await lineGeometry(opened.page, '.followqueue .mixitem .fqmeta');
+ const rows = await lineGeometry(opened.page, '[data-follow-queue-item] [data-follow-queue-meta]');
assert.equal(rows.length, 3, `队列卡数不对:${JSON.stringify(rows)}`);
const duplicates = rows.filter((row) => row.alt !== null);
assert.equal(duplicates.length, 2, `另一站的两条没有出处图标:${JSON.stringify(rows)}`);
diff --git a/frontend/e2e/photo-lightbox.test.ts b/frontend/e2e/photo-lightbox.test.ts
index 1f8de2a8f..b3a365fe5 100644
--- a/frontend/e2e/photo-lightbox.test.ts
+++ b/frontend/e2e/photo-lightbox.test.ts
@@ -73,7 +73,7 @@ async function openFollowItem(browser: Browser): Promise<Visit> {
sources: [], counts: { new: 1, seen: 0, saved: 0, ignored: 0 }, facets: { authors: [], providers: ['fanbox'] },
has_more: false } }));
await page.goto(new URL('/follow/item/501', page.url()).href, { waitUntil: 'load' });
- await page.locator('.followdetailposter').waitFor({ timeout: 15_000 });
+ await page.locator('[data-follow-detail-poster]').waitFor({ timeout: 15_000 });
await settle(page);
return opened;
}
@@ -219,7 +219,7 @@ describe('图片灯箱', () => {
const opened = await openFollowItem(browser);
const { page } = opened;
try {
- await page.locator('.followdetailposter').click();
+ await page.locator('[data-follow-detail-poster]').click();
const box = lightbox(page);
await box.waitFor();
assert.equal((await box.locator('[data-photo-count]').innerText()).trim(), '1 / 3');
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index 313462c09..89e5fa4c4 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -40,6 +40,7 @@ export interface IslandContracts {
'entity-body': ReactBundle.EntityBodyProps;
'entity-filter': ReactBundle.EntityFilterProps;
'entity-hero': ReactBundle.EntityHeroProps;
+ 'follow-detail': ReactBundle.FollowDetailProps;
'follow-feed': ReactBundle.FollowFeedProps;
'follow-manage': ReactBundle.FollowManageProps;
index: ReactBundle.IndexProps;
@@ -73,6 +74,7 @@ const REGISTRY: { [N in IslandName]: Island } = {
'entity-body': { react: 'entity-body' },
'entity-filter': { react: 'entity-filter' },
'entity-hero': { react: 'entity-hero' },
+ 'follow-detail': { react: 'follow-detail' },
'follow-feed': { react: 'follow-feed' },
'follow-manage': { react: 'follow-manage' },
index: { react: 'index' },
@@ -213,10 +215,4 @@ export function showToast(
void toaster.then((bundle) => bundle.showToast(id, request));
}
-/** 图片灯箱(在 `@peach/react` 里)。它不挂在任何页面容器上,所以不走 `mountIsland`:
- * 壳里点开大图的地方直接调这一枚,React 包到了就打开。 */
-export const openPhotoLightbox = (
- index: number, slides: ReactBundle.LightboxSlide[], host?: ReactBundle.LightboxHost,
-): Promise<void> => import('@peach/react').then((bundle) => bundle.openPhotoLightbox(index, slides, host));
-
export { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages } from './jav-artwork';
diff --git a/frontend/src/legacy/core.d.ts b/frontend/src/legacy/core.d.ts
index 3b268157f..f3e44da6e 100644
--- a/frontend/src/legacy/core.d.ts
+++ b/frontend/src/legacy/core.d.ts
@@ -6,7 +6,8 @@
/** 来源代号到界面名称:`local`→`本地`、`115`→`115`、`pikpak`→`PikPak`、`online`→`在线`。 */
export declare const LOC: Record<string, string>;
-export declare function icon(name: string): string;
+/** 雪碧图字形的 SVG 片段;`cls` 是挂在 `<svg>` 上的类(如 `externalmark`)。 */
+export declare function icon(name: string, cls?: string): string;
export declare function requestErrorMessage(cause: unknown, status?: number): string;
/** 秒数格式化成 `h:mm:ss`/`m:ss`;`0`、负数与非有限值都是 `—`(probe 的硬失败哨兵)。 */
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 89091503c..b81013359 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -10,8 +10,8 @@ import type { JunkQueueProps } from './junk-queue/junk-queue';
import type { EntityHeroProps } from './entity-hero/entity-hero';
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 { LightboxHost, LightboxSlide } from './photo-lightbox/photo-lightbox';
export type { IndexProps };
export type { CatalogGridProps };
@@ -19,8 +19,8 @@ export type { JunkQueueProps };
export type { EntityHeroProps };
export type { EntityFilterProps };
export type { EntityBodyProps };
+export type { FollowDetailProps };
export type { FollowFeedProps };
-export type { LightboxHost, LightboxSlide };
export interface AccessState { mode: 'open' | 'password' | 'legacy' | 'locked'; revision: string }
@@ -395,6 +395,7 @@ export interface ReactPages {
'entity-body': ReactPage<EntityBodyProps>;
'entity-filter': ReactPage<EntityFilterProps>;
'entity-hero': ReactPage<EntityHeroProps>;
+ 'follow-detail': ReactPage<FollowDetailProps>;
'follow-feed': ReactPage<FollowFeedProps>;
'follow-manage': ReactPage<FollowManageProps>;
index: ReactPage<IndexProps>;
@@ -426,7 +427,3 @@ export interface ToastRequest {
export declare function mountToaster(host: Element, icons: ToastIcons): void;
/** 发出一条回执;同一个 `id` 再调一次就是改写那一条。 */
export declare function showToast(id: string, request: ToastRequest): void;
-
-/** 图片灯箱:从第 `index` 张开始看 `slides`,同一时刻只有一份。`host` 给了才出定位源文件那一枚键。 */
-export declare function openPhotoLightbox(index: number, slides: LightboxSlide[], host?: LightboxHost): Promise<void>;
-export declare function closePhotoLightbox(): void;
diff --git a/frontend/src/react/components/mix-queue.tsx b/frontend/src/react/components/mix-queue.tsx
new file mode 100644
index 000000000..b14a1fb0a
--- /dev/null
+++ b/frontend/src/react/components/mix-queue.tsx
@@ -0,0 +1,56 @@
+/* 详情浮窗右侧那一列队列(Mix、分卷、版本、播放列表、关注的合集与多媒体)。
+ *
+ * 结构与类名照遗留层 `queueHtml`(`web/app.js`):`.mixqueue` / `.mixrow` / `.mixitem` 的
+ * 样式在 `web/css/13-stage.css`,JAV 详情同一套,迁它那一步之前两边共用,所以这里输出的是
+ * 遗留类名(`.oxlintrc.json` 的放行名单,理由见 `docs/FRONTEND.md`)。一列十几条要能拖着
+ * 横滚(窄屏下队列是横排),拖动借壳的 `wireDrag`,由调用方经 `listRef` 接上。 */
+import type { ButtonHTMLAttributes, ReactNode, Ref } from 'react';
+import { icon } from '@peach/legacy/core';
+
+export function MixQueue({ kind, title, summary, onClose, actions, listRef, children, ...data }: {
+ kind: string;
+ title: string;
+ summary: string;
+ onClose(): void;
+ /** 关闭键前面的动作键(保存为播放列表之类)。 */
+ actions?: ReactNode;
+ listRef?: Ref<HTMLDivElement>;
+ children: ReactNode;
+} & Record<`data-${string}`, string>) {
+ return (
+ <aside className="mixqueue" data-queue-kind={kind} {...data}>
+ <div className="mixqueuehead">
+ {/* 作用域 Preflight 把标题字重清成 inherit,这里按字重三档取 semibold。 */}
+ <div><h2 className="font-semibold">{title}</h2><span>{summary}</span></div>
+ <div className="mixqueueactions">
+ {actions}
+ {/* 并排布局(`.sgrid.mixgrid`)里队列头不放关闭键,关舞台用媒体框上那一枚(`13-stage.css`)。 */}
+ <button type="button" data-queue-close="" title="关闭" aria-label="关闭" onClick={onClose}
+ dangerouslySetInnerHTML={{ __html: icon('x') }} />
+ </div>
+ </div>
+ <div className="mixlist" ref={listRef}>{children}</div>
+ </aside>
+ );
+}
+
+/** 队列里的一行:左边缩略图(时长角标由调用方放进 `pic`),右边两行字。 */
+export function MixQueueRow({ current, pic, children, ...button }: {
+ current: boolean;
+ pic: ReactNode;
+ children: ReactNode;
+} & ButtonHTMLAttributes<HTMLButtonElement> & Record<`data-${string}`, string | number>) {
+ return (
+ <div className="mixrow">
+ <button type="button" className={current ? 'mixitem current' : 'mixitem'} aria-current={current ? 'true' : 'false'} {...button}>
+ <span className="mixitempic">{pic}</span>
+ <span className="mixitemtext">{children}</span>
+ </button>
+ </div>
+ );
+}
+
+/** 网盘分组的小标题:组名加条数。 */
+export const MixGroupLabel = ({ label, count }: { label: string; count: number }) => (
+ <h3 className="mixgrouplabel">{label} <span>{count}</span></h3>
+);
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index f61657975..316e5344d 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -21,6 +21,8 @@ import { DuplicatesPage } from './duplicates/duplicates-page';
import { EntityBodyPage } from './entity-body/entity-body-page';
import { EntityFilterPage } from './entity-filter/entity-filter-page';
import { EntityHeroPage } from './entity-hero/entity-hero-page';
+import { prefetchFollowDetail } from './follow-detail/follow-detail';
+import { FollowDetailPage } from './follow-detail/follow-detail-page';
import { prefetchFollowFeed } from './follow-feed/follow-feed';
import { FollowFeedPage } from './follow-feed/follow-feed-page';
import { prefetchFollowManage } from './follow-manage/follow-manage';
@@ -49,7 +51,6 @@ import { DEFAULT_WINDOW, prefetchTaste } from './taste/taste';
import { TastePage } from './taste/taste-page';
export { mountToaster, showToast } from './toaster';
-export { closePhotoLightbox, openPhotoLightbox } from './photo-lightbox/photo-lightbox-dialog';
/* Popover 这类弹出层由 React Aria 渲染到挂载容器外面。落在 `body` 上就出了 `.peach-react`
* 的作用域:token 读到的是 `board.css` 的值,Preflight 也管不到。所有 React 根的弹出层都进
@@ -123,6 +124,7 @@ export const pages: Bundle.ReactPages = {
/* 名册随资料下来,作品第一页与照片由壳和页头并行取好递进来,挂上就是最终样子。 */
'entity-body': { prefetch: async () => {}, mount: mounter(EntityBodyPage) },
/* 关注列表第一页与凭据两趟并行,挂上就是最终样子;换筛选之后的取数由页面自己的查询驱动。 */
+ 'follow-detail': { prefetch: prefetchFollowDetail, mount: mounter(FollowDetailPage) },
'follow-feed': { prefetch: prefetchFollowFeed, mount: mounter(FollowFeedPage) },
/* 首屏只取来源清单与凭据状态,地址栏指着「订阅源」时连它一起取。检查更新与查找那两趟
后台任务的快照不在首屏里:它们常年躺着上一趟的回执,等它们只会让首屏多一个往返。 */
diff --git a/frontend/src/react/follow-detail/follow-detail-page.tsx b/frontend/src/react/follow-detail/follow-detail-page.tsx
new file mode 100644
index 000000000..df670d8e4
--- /dev/null
+++ b/frontend/src/react/follow-detail/follow-detail-page.tsx
@@ -0,0 +1,479 @@
+/* 关注详情(ADR-0031):舞台里那一整块——媒体区、右侧队列与侧栏。
+ *
+ * 舞台(`<dialog id="stage">`)、它的进出场、小窗与 Video.js 都归壳,JAV 详情也在用;这里只画
+ * 舞台里的内容,视频元素画好之后经 `actions.mountPlayer` 交给壳。媒体区、侧栏与队列的结构照
+ * JAV 详情那一套(`.sgrid` / `.vwrap` / `.side` / `.mixqueue`,样式在 `web/css/13-stage.css`
+ * 与 `15-detail.css`,两边共用,输出遗留类名);关注自己的那几块一律 `data-*`,样式在
+ * `follow-detail.css`。
+ *
+ * 换一份媒体(轮播、多媒体队列)只改岛内状态:媒体区按「条目:媒体」换一块,播放器随之拆了重挂。
+ * 换到组里另一条经壳(`actions.openItem`),因为舞台上的播放器要先拆、地址也要换。 */
+import { useCallback, useLayoutEffect, useMemo, useRef, useState, type CSSProperties } from 'react';
+import { useMutation, useQuery } from '@tanstack/react-query';
+import { esc, fmtDur, foldName, icon, requestErrorMessage } from '@peach/legacy/core';
+
+import { apiSend } from '../../api';
+import { RetryNote } from '../components/grid-reveal';
+import { MixGroupLabel, MixQueue, MixQueueRow } from '../components/mix-queue';
+import {
+ FOLLOW_CREDENTIALS_KEY, fetchFollowCredentials, replaceFollowItem, setFollowItemStatus, videoItems,
+ type FollowContext, type FollowFeedHelpers, type FollowGroup,
+} from '../follow-feed/follow-feed';
+import { FOLLOW_STATUS_URL } from '../follow-manage/follow-manage';
+import { openPhotoLightbox } from '../photo-lightbox/photo-lightbox-dialog';
+import { queryClient } from '../query';
+import {
+ FOLLOW_MEDIA_HIDE_URL, FOLLOW_SAVE_URL, authorSources, collectionCopy, detailContext, detailMedia, detailSlides,
+ detailTags, fetchFollowItem, followItemKey, groupedMediaOwner, mediaName, resourceLabel, statusReceipt, tagCategory,
+ type DetailMedia, type FollowDetailActions, type FollowDetailData, type FollowDetailItem, type FollowDetailMedia,
+ type FollowDetailProps,
+} from './follow-detail';
+
+const realDuration = (value: unknown) => Number(value) > 0;
+
+/** 字形原样取壳那一份 `icon()`:骨架与遗留详情画的就是它,换成别的字形接管那一拍会跳。 */
+const Glyph = ({ name }: { name: string }) => (
+ <span className="contents" dangerouslySetInnerHTML={{ __html: icon(name) }} />
+);
+/** 外链那一枚:`externalmark` 的尺寸由全站链接样式给。 */
+const EXTERNAL_MARK = icon('external-link', 'externalmark');
+
+export function FollowDetailPage(props: FollowDetailProps) {
+ const { id, actions } = props;
+ const result = useQuery({ queryKey: followItemKey(id), queryFn: ({ signal }) => fetchFollowItem(id, signal) });
+ const credentialsResult = useQuery({
+ queryKey: FOLLOW_CREDENTIALS_KEY, queryFn: ({ signal }) => fetchFollowCredentials(signal),
+ });
+ const credentials = useMemo(() => new Set((credentialsResult.data?.providers || [])
+ .filter((provider) => provider.present).map((provider) => provider.provider)), [credentialsResult.data]);
+ const [mediaIndex, setMediaIndex] = useState(props.mediaIndex);
+
+ if (!result.data) {
+ return (
+ <div className="sgrid" data-follow-detail="">
+ <div className="vwrap" data-follow-detail-media="none">
+ <CloseStage onClose={actions.close} />
+ <div data-follow-detail-placeholder="">
+ {result.isError
+ ? <RetryNote message={requestErrorMessage(result.error)} onRetry={() => void result.refetch()} />
+ : null}
+ </div>
+ </div>
+ </div>
+ );
+ }
+ return (
+ <Detail {...props} data={result.data} context={detailContext(result.data, credentials)}
+ mediaIndex={mediaIndex} onMedia={setMediaIndex} />
+ );
+}
+
+/** 关闭键。`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({ data, context, mediaIndex, onMedia, mediaView, helpers, actions }: FollowDetailProps & {
+ data: FollowDetailData; context: FollowContext; onMedia(index: number | null): void;
+}) {
+ const { item, group } = data;
+ const media = detailMedia(item, group, mediaIndex, mediaView);
+ const write = useDetailWrite(item, actions, onMedia);
+ /* 媒体没取回的那两句提示只说这一块媒体区:换一份媒体就从头来。 */
+ const frameKey = `${item.id}:${media.selected?.index ?? ''}`;
+ const [issue, setIssue] = useState<{ key: string; kind: MediaIssue }>({ key: '', kind: '' });
+ const issues: MediaIssues = {
+ failed: () => setIssue({ key: frameKey, kind: 'failed' }),
+ thumbFallback: () => setIssue({ key: frameKey, kind: 'thumb' }),
+ };
+
+ useLayoutEffect(() => { actions.present(item, media.kind) }, [actions, item, media.kind]);
+
+ const owner = !media.embedded.length && media.collection ? groupedMediaOwner(media.collection) : undefined;
+ const queue = media.embeddedQueue
+ ? <MediaQueue item={item} current={media.selected!.index} helpers={helpers} actions={actions} onMedia={onMedia} />
+ : media.collection
+ ? owner
+ ? <MediaQueue item={owner} current={null} helpers={helpers} actions={actions} onMedia={onMedia} currentId={item.id} />
+ : <CollectionQueue group={media.collection} itemId={item.id} helpers={helpers} actions={actions} />
+ : null;
+
+ return (
+ <div className={queue ? 'sgrid mixgrid' : 'sgrid'} data-follow-detail="">
+ <MediaFrame key={frameKey} item={item} media={media}
+ helpers={helpers} actions={actions} onMedia={onMedia} issues={issues} />
+ {queue}
+ <Side item={item} data={data} context={context} media={media} write={write}
+ issue={issue.key === frameKey ? issue.kind : ''} helpers={helpers} actions={actions} />
+ </div>
+ );
+}
+
+/* ── 媒体区 ── */
+
+function MediaFrame({ item, media, helpers, actions, onMedia, issues }: {
+ item: FollowDetailItem; media: DetailMedia; helpers: FollowFeedHelpers; actions: FollowDetailActions;
+ onMedia(index: number | null): void; issues: MediaIssues;
+}) {
+ const { kind, selected, src, images, position, carousel, frameRatio } = media;
+ const frame = useRef<HTMLDivElement>(null);
+ const [inset, setInset] = useState<number | null>(null);
+ const slides = detailSlides(item, media);
+ /* 原图经代理取,缩略图由浏览器直接读公开主机:归档站的原文件主机会拦下服务端(pawchive 的
+ file. 子域挂着 ddos-guard,一律 403),缩略图主机照常给。 */
+ const thumb = selected?.thumb_url || item.thumb_url || '';
+ const playable = item.playable && kind === 'video';
+ const imageSrc = item.playable && kind === 'image' ? src : item.thumb_url || '';
+ const fallback = item.playable && kind === 'image' && thumb && thumb !== src ? thumb : '';
+ const [shown, setShown] = useState(imageSrc);
+
+ /* 播放器只随这一块媒体区挂一次、卸一次:写完状态换的是同一条的新对象,不能因此拆了重挂。
+ 这一块本身按「条目:媒体」换,换条目或换媒体时整块重建,清理就在那一刻跑。 */
+ const videoRef = useRef<HTMLVideoElement>(null);
+ const mounting = useRef({ item, selected });
+ useLayoutEffect(() => {
+ const node = videoRef.current;
+ if (!node) return;
+ return actions.mountPlayer(node, mounting.current.item, mounting.current.selected);
+ }, [actions]);
+
+ /* object-fit:contain 之后图片左右的黑边随图片比例和窗口变。箭头落在黑边的视觉中心,不永远
+ 贴着容器边缘;黑边太窄时才退回固定的安全内边距。 */
+ useLayoutEffect(() => {
+ const box = frame.current;
+ const image = box?.querySelector<HTMLImageElement>('[data-follow-detail-poster]');
+ const arrow = box?.querySelector<HTMLElement>('[data-follow-image-step]');
+ if (!box || !image || !arrow) return;
+ const align = () => {
+ if (!image.naturalWidth || !image.naturalHeight) return;
+ const rect = box.getBoundingClientRect();
+ const rendered = Math.min(rect.width, rect.height * (image.naturalWidth / image.naturalHeight));
+ const gutter = Math.max(0, (rect.width - rendered) / 2);
+ const safe = matchMedia('(max-width:640px)').matches ? 10 : 16;
+ setInset(Math.round(gutter >= arrow.offsetWidth + safe * 2 ? (gutter - arrow.offsetWidth) / 2 : safe));
+ };
+ const observer = new ResizeObserver(align);
+ observer.observe(box);
+ image.addEventListener('load', align);
+ return () => { observer.disconnect(); image.removeEventListener('load', align) };
+ }, [shown]);
+
+ const step = (delta: number) => onMedia(images[(position + delta + images.length) % images.length]!.index);
+ return (
+ <div ref={frame} className="vwrap" data-follow-detail-media={kind || 'none'} data-framed={frameRatio ? '' : undefined}
+ // oxlint-disable-next-line shadcn/no-inline-styles -- 画框比例与箭头内距是按这一组图的尺寸和当前视口算出来的
+ style={{ '--follow-frame-ratio': frameRatio ? frameRatio.toFixed(4) : undefined, '--follow-image-arrow-inset': inset === null ? undefined : `${inset}px` } as CSSProperties}>
+ <CloseStage onClose={actions.close} />
+ {playable ? (
+ <video ref={videoRef} className="video-js vjs-big-play-centered" controls playsInline preload="metadata"
+ poster={item.thumb_url || undefined} onError={issues.failed} />
+ ) : imageSrc ? (
+ <img data-follow-detail-poster="" data-zoomable={slides.length ? '' : undefined} src={shown} alt={item.title}
+ referrerPolicy="no-referrer"
+ onClick={slides.length ? () => void openPhotoLightbox(Math.max(0, position), slides) : undefined}
+ onError={() => {
+ if (fallback && shown !== fallback) { setShown(fallback); issues.thumbFallback(); return }
+ issues.failed();
+ }} />
+ ) : (
+ <div data-follow-detail-placeholder="">
+ <span className="contents" dangerouslySetInnerHTML={{ __html: helpers.sourceIcon(item.resource_provider || item.provider) }} />
+ <span>没有可用预览</span>
+ </div>
+ )}
+ {carousel ? (
+ <>
+ <button type="button" data-follow-image-step="-1" data-follow-image-arrow="prev" aria-label="上一张图片" title="上一张"
+ onClick={() => step(-1)} dangerouslySetInnerHTML={{ __html: icon('chevron-left') }} />
+ <button type="button" data-follow-image-step="1" data-follow-image-arrow="next" aria-label="下一张图片" title="下一张"
+ onClick={() => step(1)} dangerouslySetInnerHTML={{ __html: icon('chevron-right') }} />
+ <div data-follow-image-dots="" role="group" aria-label={`${images.length} 张图片`}>
+ {images.map((image, index) => (
+ <button type="button" key={image.index} data-follow-image-item={image.index}
+ aria-current={index === position ? 'true' : 'false'}
+ aria-label={`第 ${index + 1} 张,共 ${images.length} 张`} title={`第 ${index + 1} 张`}
+ onClick={() => onMedia(image.index)} />
+ ))}
+ </div>
+ </>
+ ) : null}
+ </div>
+ );
+}
+
+/* ── 队列 ── */
+
+/** 队列里没有画面的那一格放中性图形,不放站点图标:格子里的图一律按画面铺满,48px 的 favicon
+ * 会被拉成整格,看上去就像这条视频的缩略图。 */
+const NoThumb = ({ kind }: { kind: string }) => (
+ <span data-follow-nothumb="" dangerouslySetInnerHTML={{ __html: icon(kind === 'image' ? 'image-off' : 'play') }} />
+);
+
+/** 缩略图取不到就撤掉,同遗留层 `data-drop="self"`。 */
+function QueueThumb({ src }: { src: string }) {
+ const [broken, setBroken] = useState(false);
+ if (broken) return null;
+ return <img src={src} alt="" loading="lazy" referrerPolicy="no-referrer" onError={() => setBroken(true)} />;
+}
+
+function useDragRow(helpers: FollowFeedHelpers) {
+ return useCallback((node: HTMLDivElement | null) => { if (node) helpers.wireDrag(node) }, [helpers]);
+}
+
+function CollectionQueue({ group, itemId, helpers, actions }: {
+ group: FollowGroup; itemId: number; helpers: FollowFeedHelpers; actions: FollowDetailActions;
+}) {
+ const items = videoItems(group) as FollowDetailItem[];
+ const listRef = useDragRow(helpers);
+ return (
+ <MixQueue kind="collection" data-follow-queue="" title="视频合集" onClose={actions.close} listRef={listRef}
+ summary={`${group.primary.title || '未命名合集'} · ${items.length} 个视频`}>
+ {items.map((member) => {
+ const duplicate = group.duplicates.includes(member);
+ const copy = collectionCopy(group, member, duplicate ? member.provider_label : '');
+ /* 另一站的同一条由站点图标报出处,图标的 alt 就是站名;没登记图标的站仍写站名。 */
+ const siteIcon = duplicate ? helpers.sourceIcon(member.provider, member.provider_label) : '';
+ return (
+ <MixQueueRow key={member.id} current={member.id === itemId} data-follow-queue-item={member.id}
+ onClick={() => actions.openItem(member.id)}
+ pic={<>
+ {member.thumb_url ? <QueueThumb src={member.thumb_url} /> : <NoThumb kind="video" />}
+ {realDuration(member.duration) ? <i className="dur mono">{fmtDur(member.duration)}</i> : null}
+ </>}>
+ <b data-truncate-end="">{copy.title}</b>
+ <span data-follow-queue-meta="">
+ {siteIcon
+ ? <span data-follow-queue-source="" dangerouslySetInnerHTML={{ __html: siteIcon }} />
+ : <i data-follow-variant={member.variant_kind || ''}>{copy.label}</i>}
+ <time dateTime={member.published_at || ''}>{helpers.when(member)}</time>
+ </span>
+ </MixQueueRow>
+ );
+ })}
+ </MixQueue>
+ );
+}
+
+/** 多媒体队列:一条帖子里的全部图与视频,按网盘分组。`currentId` 是舞台上正看着的那一条——
+ * 合集改列组里挂着网盘分组的那一条时,它和队列的主人不是同一条。 */
+function MediaQueue({ item, current, currentId = item.id, helpers, actions, onMedia }: {
+ item: FollowDetailItem; current: number | null; currentId?: number; helpers: FollowFeedHelpers;
+ actions: FollowDetailActions; onMedia(index: number | null): void;
+}) {
+ const items = item.media_items || [];
+ const listRef = useDragRow(helpers);
+ const groups: { key: string; label: string; items: FollowDetailMedia[] }[] = [];
+ items.forEach((media) => {
+ const key = media.resource_group || 'ungrouped';
+ let row = groups.find((entry) => entry.key === key);
+ if (!row) { row = { key, label: media.resource_group_label || '', items: [] }; groups.push(row) }
+ row.items.push(media);
+ });
+ const pick = (media: FollowDetailMedia) => (item.id === currentId ? onMedia(media.index) : actions.openItem(item.id, media.index));
+ return (
+ <MixQueue kind="media" data-follow-queue="" title="多媒体" onClose={actions.close} listRef={listRef}
+ summary={`${item.title || '未命名内容'} · ${items.length} 个媒体`}>
+ {groups.map((row) => [
+ row.label ? <MixGroupLabel key={`label:${row.key}`} label={row.label} count={row.items.length} /> : null,
+ ...row.items.map((media) => (
+ <MixQueueRow key={media.index} current={media.index === current} data-follow-media-owner={item.id}
+ data-follow-media-item={media.index} data-media-kind={media.media_kind || ''} onClick={() => pick(media)}
+ pic={media.thumb_url ? <QueueThumb src={media.thumb_url} /> : <NoThumb kind={media.media_kind || ''} />}>
+ <b data-middle-truncate="">{mediaName(media)}</b>
+ <span data-truncate-end="">{media.media_kind === 'image' ? '图片' : '视频'}</span>
+ </MixQueueRow>
+ )),
+ ])}
+ </MixQueue>
+ );
+}
+
+/* ── 侧栏 ── */
+
+function Side({ item, data, context, media, write, issue, helpers, actions }: {
+ item: FollowDetailItem; data: FollowDetailData; context: FollowContext; media: DetailMedia;
+ write: DetailWrite; issue: MediaIssue; helpers: FollowFeedHelpers; actions: FollowDetailActions;
+}) {
+ const { kind, selected, src } = media;
+ const single: FollowGroup = { primary: item, variants: [], duplicates: [], has_wip: item.variant_kind === 'wip' };
+ const badges = helpers.badges(single, item);
+ const identity = helpers.identity(item, authorSources(item, data.sources), context);
+ const postedBy = identity.credited ? ''
+ : item.author && foldName(item.author) !== foldName(identity.author) ? item.author : '';
+ const mediaIssue = helpers.mediaIssue(item, context);
+ const tags = detailTags(item, helpers.tagLabel);
+ const saved = item.status === 'saved';
+ const { busy } = write;
+ const busyAttrs = (key: string) => (busy.has(key) ? { 'aria-busy': true, 'aria-disabled': true } as const : {});
+ return (
+ <div className="side" data-follow-detail-side="">
+ <div className="sidecontent">
+ <div data-follow-detail-title="">
+ <div className="stitle" data-follow-detail-name="" data-reveal-line=""
+ dangerouslySetInnerHTML={{ __html: helpers.titleMarks(single, item) + esc(item.title) }} />
+ {item.url ? (
+ <a className="externallink" data-follow-origin="" href={item.url} target="_blank" rel="noreferrer noopener"
+ title="打开来源页面" aria-label="打开来源页面"
+ dangerouslySetInnerHTML={{ __html: EXTERNAL_MARK }} />
+ ) : null}
+ </div>
+ <div data-follow-detail-identity="">
+ <span className="mav" data-follow-source-avatar="" dangerouslySetInnerHTML={{ __html: identity.avatar }} />
+ <div>
+ <b>{identity.author}</b>
+ {postedBy ? <span>发布者 {postedBy}</span> : null}
+ {identity.credited ? <span>署名含 {identity.credited}</span> : null}
+ </div>
+ </div>
+ <div className="smeta mono" data-reveal-line="">
+ <span>{helpers.when(item)}</span>
+ {realDuration(item.duration) ? <span>{fmtDur(item.duration)}</span> : null}
+ {badges ? <span data-follow-badges="" dangerouslySetInnerHTML={{ __html: badges }} /> : null}
+ </div>
+ {item.summary ? <p data-follow-detail-summary="">{item.summary}</p> : null}
+ {mediaIssue ? <p data-follow-media-issue="">{mediaIssue}</p> : null}
+ {/* 上游没给出媒体时,代理只会回一个不含缘由的失败。有缩略图就换上缩略图并说明这是缩略图;
+ 连缩略图也取不到,才说「这次没取到、多半是限流」——别让人对着一块空画布猜。 */}
+ <p data-follow-media-issue="" data-media-load-issue="" hidden={issue !== 'failed'}>
+ 媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。
+ </p>
+ <p data-follow-media-issue="" data-media-thumb-fallback="" hidden={issue !== 'thumb'}>
+ 原图未取回,先显示缩略图:上游拦下了这一次请求。
+ </p>
+ {item.resource_urls?.length ? (
+ <div data-follow-resources="">
+ {item.resource_urls.map((url) => (
+ <a key={url} className="externallink" href={url} target="_blank" rel="noreferrer noopener">
+ {resourceLabel(url)}<span className="contents" dangerouslySetInnerHTML={{ __html: EXTERNAL_MARK }} />
+ </a>
+ ))}
+ </div>
+ ) : null}
+ <div className="fb" data-follow-detail-actions="">
+ <button type="button" className="later" data-follow-detail-save="" aria-label={saved ? '已保存' : '保存到账本'}
+ title={saved ? '已保存' : '保存到账本'} disabled={saved} {...busyAttrs('save')}
+ onClick={write.save} dangerouslySetInnerHTML={{ __html: icon(saved ? 'check' : 'bookmark-plus') }} />
+ <button type="button" className="seen" data-follow-detail-status="seen" aria-label="标记已看" title="标记已看"
+ aria-pressed={item.status === 'seen'} {...busyAttrs('seen')} onClick={() => write.status('seen')}
+ dangerouslySetInnerHTML={{ __html: icon('eye') }} />
+ <button type="button" className="dislike" data-follow-detail-status="ignored" aria-label="忽略" title="忽略"
+ aria-pressed={item.status === 'ignored'} {...busyAttrs('ignored')} onClick={() => write.status('ignored')}
+ dangerouslySetInnerHTML={{ __html: icon('eye-off') }} />
+ {item.status === 'seen' || item.status === 'ignored' ? (
+ <button type="button" data-follow-detail-status="new" aria-label="恢复未看" title="恢复未看"
+ {...busyAttrs('new')} onClick={() => write.status('new')}
+ dangerouslySetInnerHTML={{ __html: icon('rotate-ccw') }} />
+ ) : null}
+ {kind === 'image' && selected ? (
+ <button type="button" className="dislike" data-follow-media-hide={selected.index} aria-label="隐藏这张图"
+ title="隐藏这张图" {...busyAttrs(`hide:${selected.index}`)} onClick={() => write.hide(selected.index)}
+ dangerouslySetInnerHTML={{ __html: icon('image-off') }} />
+ ) : null}
+ {src ? (
+ <a data-follow-download="" href={`${src}${src.includes('?') ? '&' : '?'}download=1`} download=""
+ aria-label="下载到本地" title="下载到本地" dangerouslySetInnerHTML={{ __html: icon('download') }} />
+ ) : null}
+ </div>
+ {/* 被隐藏的图退到这条恢复带上:缩略图加一枚撤销键,点了就回到轮播。不占媒体队列,也不进
+ 角标数——它们已经是「不在看」的那部分。 */}
+ {item.hidden_media?.length ? (
+ <div data-follow-hidden-media="">
+ <span data-follow-hidden-label="">已隐藏 {item.hidden_media.length} 张</span>
+ <div data-follow-hidden-thumbs="">
+ {item.hidden_media.map((hidden) => (
+ <button type="button" key={hidden.index} data-follow-media-restore={hidden.index}
+ title={`恢复显示 ${hidden.name || ''}`} aria-label={`恢复显示 ${hidden.name || ''}`}
+ {...busyAttrs(`restore:${hidden.index}`)} onClick={() => write.restore(hidden.index)}>
+ {hidden.thumb_url ? <QueueThumb src={hidden.thumb_url} /> : <Glyph name="image-off" />}
+ <i dangerouslySetInnerHTML={{ __html: icon('rotate-ccw') }} />
+ </button>
+ ))}
+ </div>
+ </div>
+ ) : null}
+ <span data-follow-state="" aria-live="polite">{write.failure}</span>
+ {tags.length ? (
+ <div className="stags" data-follow-detail-tags="">
+ {tags.map((tag) => (
+ <button type="button" key={tag} className="tg" data-tag-cat={tagCategory(item, tag)} data-follow-tag={tag}
+ onClick={() => actions.openTag(tag)}>{helpers.tagLabel(tag)}</button>
+ ))}
+ </div>
+ ) : null}
+ </div>
+ </div>
+ );
+}
+
+/* ── 写操作 ──
+ * 保存、状态、隐藏与恢复这张图都在岛里发。状态与保存成功后在两处缓存里换同一条(详情这条与
+ * 关注页列表里那一条,卡面状态一起变),不重读列表:关掉详情回列表不该再等一个网络往返。
+ * 隐藏与恢复换掉的是整份媒体清单,重取一次这一条,服务端投影给出新的可见集合与缩略图。 */
+type MediaIssue = '' | 'failed' | 'thumb';
+type MediaIssues = { failed(): void; thumbFallback(): void };
+type DetailWrite = ReturnType<typeof useDetailWrite>;
+
+function useDetailWrite(item: FollowDetailItem, actions: FollowDetailActions, onMedia: (index: number | null) => void) {
+ const id = item.id;
+ const key = followItemKey(id);
+ const [busy, setBusy] = useState<ReadonlySet<string>>(() => new Set());
+ const [failure, setFailure] = 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 apply = (to: string) => {
+ queryClient.setQueryData<FollowDetailData>(key, (data) => (data ? { ...data, item: { ...data.item, status: to } } : data));
+ setFollowItemStatus(id, to);
+ };
+ const failed = (error: unknown) => {
+ setFailure(requestErrorMessage(error) || '操作失败');
+ actions.failure('更新关注状态', error);
+ };
+ const statusMutation = useMutation({
+ mutationFn: ({ to }: { to: string; was: string }) => apiSend(FOLLOW_STATUS_URL, { item: id, to }),
+ onSuccess: (_result, { to, was }) => {
+ apply(to);
+ setFailure('');
+ actions.toast(statusReceipt(to), {
+ undo: was !== 'saved' ? async () => { await apiSend(FOLLOW_STATUS_URL, { item: id, to: was }); apply(was) } : undefined,
+ });
+ },
+ onError: failed,
+ onSettled: (_result, _error, { to }) => mark(to, false),
+ });
+ const saveMutation = useMutation({
+ mutationFn: () => apiSend(FOLLOW_SAVE_URL, { item: id }),
+ onSuccess: () => { apply('saved'); setFailure(''); actions.toast('已保存到账本') },
+ onError: failed,
+ onSettled: () => mark('save', false),
+ });
+ const mediaMutation = useMutation({
+ mutationFn: async ({ index, hidden }: { index: number; hidden: boolean; next: number | null }) => {
+ await apiSend(FOLLOW_MEDIA_HIDE_URL, { item: id, media: index, hidden });
+ await queryClient.invalidateQueries({ queryKey: key, exact: true });
+ },
+ onSuccess: (_result, { hidden, next }) => {
+ const data = queryClient.getQueryData<FollowDetailData>(key);
+ if (data) replaceFollowItem(data.item);
+ onMedia(next);
+ setFailure('');
+ actions.toast(hidden ? '已隐藏这张图' : '已恢复显示');
+ },
+ onError: failed,
+ onSettled: (_result, _error, { index, hidden }) => mark(`${hidden ? 'hide' : 'restore'}:${index}`, false),
+ });
+ return {
+ busy, failure,
+ save: () => { mark('save', true); saveMutation.mutate() },
+ status: (to: string) => { mark(to, true); statusMutation.mutate({ to, was: item.status }) },
+ hide: (index: number) => {
+ const next = (item.media_items || []).find((media) => media.index !== index && media.media_kind === 'image');
+ mark(`hide:${index}`, true);
+ mediaMutation.mutate({ index, hidden: true, next: next ? next.index : null });
+ },
+ restore: (index: number) => { mark(`restore:${index}`, true); mediaMutation.mutate({ index, hidden: false, next: index }) },
+ };
+}
diff --git a/frontend/src/react/follow-detail/follow-detail.css b/frontend/src/react/follow-detail/follow-detail.css
new file mode 100644
index 000000000..283aa1e57
--- /dev/null
+++ b/frontend/src/react/follow-detail/follow-detail.css
@@ -0,0 +1,337 @@
+/* 关注详情(`follow-detail-page.tsx`)。
+ *
+ * 舞台里的骨架(`.sgrid` / `.vwrap` / `.side` / `.sidecontent`)、队列(`.mixqueue` 一族)、操作键条
+ * (`.fb`)与标签(`.tg`)是 JAV 详情共用的,几何归 `web/css/13-stage.css`、`14-player.css`、
+ * `15-detail.css` 与 `web/board.css`;这里只写关注详情自己多出来的几块。
+ *
+ * 选择器全用 `data-*`,前面挂 `[data-follow-detail]`:遗留样式表不分层、排在后面,同权重时它赢,
+ * 多一层属性才压得住 `.stitle`、`.fb button` 这类通用规则。 */
+
+/* ── 媒体区 ──
+ 媒体框不设视口高度的地板:里面的播放器高度由 16:9 和自己的宽度推出来,地板挂在 vh 上,两个量朝
+ 相反方向走(414×913 的视口给出 566px 的框装 208px 的画面)。播放器未初始化时 `.vwrap>.video-js`
+ 那条 16:9 已经把高度定住了,不会塌。 */
+.peach-react [data-follow-detail] [data-follow-detail-media] { --follow-image-arrow-inset: 16px; }
+.peach-react [data-follow-detail] [data-follow-detail-media="image"] {
+ background: color-mix(in srgb, var(--video-glow, #15202a) 12%, var(--surface) 88%);
+}
+.peach-react [data-follow-detail] [data-follow-detail-poster] {
+ position: relative;
+ z-index: 1;
+ display: block;
+ width: auto;
+ height: auto;
+ max-width: 100%;
+ max-height: 76vh;
+ object-fit: contain;
+ background: transparent;
+}
+.peach-react [data-follow-detail] [data-follow-detail-poster][data-zoomable] { cursor: zoom-in; }
+.peach-react [data-follow-detail] [data-framed] [data-follow-detail-poster] {
+ width: 100%;
+ aspect-ratio: var(--follow-frame-ratio);
+}
+/* 什么都没有的那一格占同一个 16:9 框:它顶替的就是画面本身,缩成一条窄带看着像没加载完。 */
+.peach-react [data-follow-detail] [data-follow-detail-placeholder] {
+ aspect-ratio: 16 / 9;
+ display: grid;
+ place-items: center;
+ gap: 10px;
+ color: var(--muted);
+}
+.peach-react [data-follow-detail] [data-follow-detail-placeholder] img { width: 34px; height: 34px; margin: 0; }
+
+/* 左右翻页:48/24 的媒体圆钮压在图上,玻璃底;箭头落在黑边的视觉中心(`--follow-image-arrow-inset`
+ 由页面按图片比例算)。 */
+.peach-react [data-follow-detail] [data-follow-image-arrow] {
+ box-sizing: border-box;
+ position: absolute;
+ z-index: 4;
+ top: 50%;
+ transform: translateY(-50%);
+ width: 48px;
+ height: 48px;
+ padding: 0;
+ border: 0;
+ border-radius: 50%;
+ display: grid;
+ place-items: center;
+ cursor: pointer;
+ background: rgba(0, 0, 0, .6);
+ color: #fff;
+ backdrop-filter: blur(16px);
+}
+.peach-react [data-follow-detail] [data-follow-image-arrow]:hover { background: rgba(0, 0, 0, .78); }
+.peach-react [data-follow-detail] [data-follow-image-arrow]:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; }
+.peach-react [data-follow-detail] [data-follow-image-arrow] svg {
+ display: block;
+ width: 24px;
+ height: 24px;
+ flex: none;
+ stroke: currentColor;
+ fill: none;
+ stroke-width: 2;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+.peach-react [data-follow-detail] [data-follow-image-arrow="prev"] { left: var(--follow-image-arrow-inset); }
+.peach-react [data-follow-detail] [data-follow-image-arrow="next"] { right: var(--follow-image-arrow-inset); }
+.peach-react [data-follow-detail] [data-follow-image-dots] {
+ position: absolute;
+ z-index: 4;
+ left: 50%;
+ bottom: 18px;
+ transform: translateX(-50%);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ max-width: calc(100% - 120px);
+ padding: 8px 11px;
+ border-radius: var(--pill-radius);
+ background: rgba(0, 0, 0, .5);
+ overflow: hidden;
+}
+.peach-react [data-follow-detail] [data-follow-image-dots] button {
+ flex: none;
+ width: 8px;
+ height: 8px;
+ padding: 0;
+ border: 0;
+ border-radius: 50%;
+ background: rgba(255, 255, 255, .42);
+ cursor: pointer;
+}
+.peach-react [data-follow-detail] [data-follow-image-dots] button[aria-current="true"] {
+ width: 20px;
+ border-radius: var(--pill-radius);
+ background: #fff;
+}
+
+/* ── 队列 ──
+ 合集队列卡的出处与时间:标记、站点图标和时间按盒子居中成一行,不靠基线偏移去凑。标记可收窄
+ (自带尾部省略),时间不收。 */
+.peach-react [data-follow-detail] [data-follow-queue-meta] { display: flex; align-items: center; gap: 6px; }
+/* 包图标的那层不占盒子,图标本身是这一行的弹性子项;不用 `contents` 工具类,队列行里的
+ `.mixitemtext span{display:block}`(`13-stage.css`)比它权重高。 */
+.peach-react [data-follow-detail] [data-follow-queue-meta] > [data-follow-queue-source] { display: contents; }
+.peach-react [data-follow-detail] [data-follow-queue-meta] img { flex: none; margin: 0; }
+.peach-react [data-follow-detail] [data-follow-queue-meta] time { flex: none; white-space: nowrap; }
+.peach-react [data-follow-detail] [data-follow-variant] {
+ display: inline-block;
+ flex: 0 1 auto;
+ min-width: 0;
+ max-width: 120px;
+ margin: 0;
+ padding: 1px 7px;
+ border-radius: var(--badge-radius);
+ overflow: hidden;
+ text-overflow: ellipsis;
+ vertical-align: -2px;
+ background: var(--overlay-5);
+ color: var(--muted);
+ font-size: var(--fs-xs);
+ font-style: normal;
+}
+.peach-react [data-follow-detail] [data-follow-variant="wip"] { color: var(--meter); }
+.peach-react [data-follow-detail] [data-follow-variant="alt"] { color: var(--ink-2); }
+/* 队列里没有画面的那一格:中性图形铺满缩略图格。 */
+.peach-react [data-follow-detail] [data-follow-nothumb] {
+ display: grid;
+ place-items: center;
+ width: 100%;
+ height: 100%;
+ color: var(--muted);
+ font-size: var(--fs-xs);
+}
+.peach-react [data-follow-detail] [data-follow-nothumb] svg {
+ width: 22px;
+ height: 22px;
+ stroke: currentColor;
+ fill: none;
+ stroke-width: 2;
+}
+
+/* ── 侧栏 ── */
+.peach-react [data-follow-detail] [data-follow-detail-title] {
+ display: flex;
+ gap: 5px;
+ align-items: flex-start;
+ margin-bottom: 8px;
+}
+.peach-react [data-follow-detail] [data-follow-detail-title] > [data-follow-detail-name] { width: auto; max-width: calc(100% - 35px); margin: 0; }
+/* 来源外链与下面的资源链接都是 `.externallink`:显示方式、内距、边框、字色与悬停归 `board.css` 的
+ 全站外链规则,这里只给尺寸。 */
+.peach-react [data-follow-detail] [data-follow-origin] { flex: none; width: 30px; height: 30px; margin: 0; }
+.peach-react [data-follow-detail] [data-follow-detail-identity] {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ margin: 2px 0 12px;
+}
+.peach-react [data-follow-detail] [data-follow-detail-identity] b,
+.peach-react [data-follow-detail] [data-follow-detail-identity] span { display: block; }
+.peach-react [data-follow-detail] [data-follow-detail-identity] > div > span {
+ margin-top: 3px;
+ color: var(--muted);
+ font-size: var(--fs-xs);
+}
+/* 创作者圆框:头像铺满,取不到时首字母居中;它不是入口,不带悬停描边。 */
+.peach-react [data-follow-detail] [data-follow-source-avatar] {
+ flex: none;
+ display: grid;
+ place-items: center;
+ cursor: default;
+ background: var(--overlay-5);
+ border: 1px solid var(--line-soft);
+}
+.peach-react [data-follow-detail] [data-follow-source-avatar]:hover { box-shadow: none; }
+/* 头像与取不到时的首字母(壳的 `favatar`,图坏了也就地换成首字母)都铺满圆框。 */
+.peach-react [data-follow-detail] [data-follow-source-avatar] > * {
+ position: absolute;
+ inset: 0;
+ width: 100%;
+ height: 100%;
+ border-radius: 50%;
+ outline: 0;
+ object-fit: cover;
+}
+.peach-react [data-follow-detail] [data-follow-source-avatar] > span {
+ display: grid;
+ place-items: center;
+ font-size: var(--fs-sm);
+ color: var(--muted);
+}
+.peach-react [data-follow-detail] [data-follow-badges] {
+ display: flex;
+ flex-wrap: nowrap;
+ gap: 5px;
+ min-width: 0;
+ overflow: hidden;
+}
+.peach-react [data-follow-detail] [data-follow-detail-summary] {
+ margin: 0 0 16px;
+ line-height: 1.6;
+ color: var(--ink-2);
+ white-space: pre-line;
+}
+/* 「媒体未取得」与两句取回失败的提示:小一档正文字号(`--fs-sm`)、1.7 行高,警示色。 */
+.peach-react [data-follow-detail] [data-follow-media-issue] {
+ margin: 18px 0 8px;
+ font-size: var(--fs-sm);
+ line-height: 1.7;
+ color: var(--drop);
+}
+.peach-react [data-follow-detail] [data-follow-media-issue][hidden] { display: none; }
+.peach-react [data-follow-detail] [data-follow-resources] {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin: 0 0 16px;
+}
+.peach-react [data-follow-detail] [data-follow-resources] a { height: 34px; }
+
+/* 操作键条:几何取 `.fb`(`15-detail.css` 与 `board.css` 的 `.sidecontent .fb`)。下载是 `<a download>`,
+ 不是按钮:让浏览器自己落盘,不经过 JS,几何与同排按钮一致。 */
+.peach-react [data-follow-detail] [data-follow-detail-actions] button:disabled { opacity: .45; cursor: not-allowed; }
+.peach-react [data-follow-detail] [data-follow-download] {
+ box-sizing: border-box;
+ flex: 0 0 36px;
+ width: 36px;
+ height: 36px;
+ min-width: 36px;
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 0;
+ border-radius: 8px;
+ background: var(--surface);
+ color: var(--ink-2);
+}
+.peach-react [data-follow-detail] [data-follow-download]:hover { background: var(--hover); color: var(--ink); }
+.peach-react [data-follow-detail] [data-follow-download] svg {
+ display: block;
+ width: 18px;
+ height: 18px;
+ margin: 0;
+ stroke: currentColor;
+ fill: none;
+ stroke-width: 2;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+/* 关注详情只有三四个动作键,撑满一行就是四个大得离谱的方块。 */
+@media (max-width: 760px) {
+ .peach-react [data-follow-detail] [data-follow-detail-actions] { width: max-content; max-width: 100%; }
+ .peach-react [data-follow-detail] [data-follow-detail-actions] :is(button, [data-follow-download]) { flex: 0 0 auto; }
+}
+
+/* 被隐藏的图退到这条恢复带:一行小缩略图,各带一枚撤销角标。整带保持安静(灰调、小尺寸),
+ 它们是「不在看」的那部分,不能和正片抢视线。 */
+.peach-react [data-follow-detail] [data-follow-hidden-media] { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
+.peach-react [data-follow-detail] [data-follow-hidden-label] { color: var(--muted); white-space: nowrap; }
+.peach-react [data-follow-detail] [data-follow-hidden-thumbs] { display: flex; flex-wrap: wrap; gap: 6px; }
+.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button {
+ position: relative;
+ width: 40px;
+ height: 40px;
+ padding: 0;
+ border: 1px solid var(--border-15);
+ border-radius: var(--control-radius);
+ background: none;
+ cursor: pointer;
+ overflow: hidden;
+}
+.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button:hover { border-color: var(--ink-3); }
+.peach-react [data-follow-detail] [data-follow-hidden-thumbs] img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ display: block;
+ opacity: .55;
+}
+.peach-react [data-follow-detail] [data-follow-hidden-thumbs] i {
+ position: absolute;
+ right: 2px;
+ bottom: 2px;
+ display: flex;
+ width: 16px;
+ height: 16px;
+ align-items: center;
+ justify-content: center;
+ border-radius: 50%;
+ background: var(--hover);
+ color: var(--ink-2);
+}
+.peach-react [data-follow-detail] [data-follow-hidden-thumbs] svg { width: 11px; height: 11px; stroke: currentColor; fill: none; }
+
+/* 写失败的那一句。侧栏是纵向 flex:按内容高,不把整栏剩余高度都算给它(标签会被推到栏底)。 */
+.peach-react [data-follow-detail] [data-follow-state] { flex: none; font-size: var(--fs-xs); color: var(--drop); }
+
+/* 标签沉到侧栏最后:来源站的标签动辄几十个,夹在正文和操作之间就得先滚过整片标签云才够得着
+ 「已看/忽略」。按来源记下的类型着色(`--tag-color`,色板在 `../styles.css` 的 `r34-*`)。 */
+.peach-react [data-follow-detail] [data-follow-detail-tags] { margin: 16px 0 0; }
+.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag] {
+ max-width: none;
+ overflow: visible;
+ text-overflow: clip;
+ white-space: normal;
+ text-align: left;
+ color: var(--ink-2);
+ font-family: inherit;
+ border-color: color-mix(in srgb, var(--tag-color) 42%, transparent);
+ background: color-mix(in srgb, var(--tag-color) 10%, transparent);
+}
+/* 通用 `.tg:hover` 的填充和文字色被上面按类型着色的规则压掉了,悬停按标签自己那个类型色加深,
+ 不回到中性的 `--hover`。 */
+.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover {
+ border-color: color-mix(in srgb, var(--tag-color) 68%, transparent);
+ background: color-mix(in srgb, var(--tag-color) 18%, transparent);
+ color: var(--ink);
+}
+
+@media (max-width: 640px) {
+ .peach-react [data-follow-detail] [data-follow-detail-media] { --follow-image-arrow-inset: 10px; }
+ .peach-react [data-follow-detail] [data-follow-image-arrow] { width: 44px; height: 44px; }
+ .peach-react [data-follow-detail] [data-follow-image-dots] { bottom: 12px; }
+}
diff --git a/frontend/src/react/follow-detail/follow-detail.ts b/frontend/src/react/follow-detail/follow-detail.ts
new file mode 100644
index 000000000..daa7d4319
--- /dev/null
+++ b/frontend/src/react/follow-detail/follow-detail.ts
@@ -0,0 +1,260 @@
+/* 关注详情 `/follow/item/:id` 的数据与判定(ADR-0031)。
+ *
+ * 岛挂在舞台(`<dialog id="stage">`)里壳建好的宿主上;舞台本身、进出场、小窗与 Video.js
+ * 仍归壳(JAV 详情也在用)。条目归岛:先扫关注页岛已缓存的那几页(`findFollowItem`),
+ * 扫不到才单条取 `GET /api/follow?item=<id>`,响应形状同列表那一页,只含这一条所在的组。 */
+import type { QueryKey } from '@tanstack/react-query';
+import { apiGet } from '../../api';
+import {
+ FOLLOW_CREDENTIALS_KEY, collectionItems, fetchFollowCredentials, findFollowItem, videoItems,
+ type FollowContext, type FollowFeedHelpers, type FollowGroup, type FollowItem, type FollowMedia,
+ type FollowMediaItem, type FollowPage, type FollowSource,
+} from '../follow-feed/follow-feed';
+import type { LightboxSlide } from '../photo-lightbox/photo-lightbox';
+import { queryClient } from '../query';
+
+/* ── 接口形状(`src/peach/web_follow.py`) ── */
+
+/** 条目里嵌着的一份媒体:详情比卡片多读名字、字节数、类型与网盘分组。 */
+export interface FollowDetailMedia extends FollowMediaItem {
+ name?: string;
+ size?: number;
+ media_type?: string;
+ resource_provider?: string;
+ resource_group?: string;
+ resource_group_label?: string;
+}
+
+/** 详情读到的条目字段;其余原样留在 `FollowItem` 的索引签名里。 */
+export interface FollowDetailItem extends FollowItem {
+ url?: string;
+ summary?: string;
+ author?: string;
+ source_label?: string;
+ media_type?: string;
+ media_error?: string;
+ media_needs_credential?: boolean;
+ resource_urls?: string[];
+ hidden_media?: FollowDetailMedia[];
+ detail_tags?: string[];
+ variant_kind?: string;
+ variant_label?: string;
+ has_media?: boolean;
+ media_items?: FollowDetailMedia[];
+}
+
+/** 一条详情要的全部:条目、它所在的组,以及署名要读的来源与别名。 */
+export interface FollowDetailData {
+ item: FollowDetailItem;
+ group: FollowGroup | null;
+ sources: FollowSource[];
+ aliases: unknown[];
+}
+
+/* ── 取数 ── */
+
+export const followItemKey = (id: number): QueryKey => ['follow-item', id];
+
+export const FOLLOW_ITEM_URL = (id: number) => `/api/follow?item=${encodeURIComponent(id)}`;
+export const FOLLOW_SAVE_URL = '/api/follow/save';
+export const FOLLOW_MEDIA_HIDE_URL = '/api/follow/media/hide';
+
+/** 单条取:响应只含这一条所在的组。条目已不存在时服务端回空组,这里报成一次失败。 */
+export async function fetchFollowItem(id: number, signal?: AbortSignal): Promise<FollowDetailData> {
+ const page = await apiGet<FollowPage>(FOLLOW_ITEM_URL(id), signal);
+ for (const group of page.groups || []) {
+ const item = collectionItems(group).find((member) => member.id === id);
+ if (item) return { item: item as FollowDetailItem, group, sources: page.sources || [], aliases: page.author_aliases || [] };
+ }
+ throw new Error('这条关注内容已不存在');
+}
+
+/** 首屏:列表缓存里有就直接用(关掉详情回列表也不重取),没有才单条取;凭据没取过才取。 */
+export async function prefetchFollowDetail(props: { id: number }, signal: AbortSignal): Promise<void> {
+ const key = followItemKey(props.id);
+ const hit = findFollowItem(props.id);
+ const credentials = queryClient.getQueryData(FOLLOW_CREDENTIALS_KEY)
+ ? null
+ : queryClient.fetchQuery({ queryKey: FOLLOW_CREDENTIALS_KEY, queryFn: () => fetchFollowCredentials(signal) });
+ if (hit) queryClient.setQueryData<FollowDetailData>(key, { ...hit, item: hit.item as FollowDetailItem });
+ else await queryClient.fetchQuery({ queryKey: key, queryFn: () => fetchFollowItem(props.id, signal) });
+ await credentials;
+}
+
+/* ── 壳递进来的那几样 ── */
+
+export interface FollowDetailActions {
+ /** 关闭详情回到来处(壳的 `closeDetail`:退场动画、拆舞台、推回列表地址)。 */
+ close(): void;
+ /** 换到组里的另一条:舞台上的播放器要先拆,所以经壳重挂(`preserveReturn` 语义)。 */
+ openItem(id: number, mediaIndex?: number | null): void;
+ /** 点详情里的一枚标签:壳切换那一枚筛选,回到带上它的列表。 */
+ openTag(tag: string): void;
+ /** 这一条、这一份媒体画出来了:壳据此更新小窗元数据、侧栏标签抽屉与舞台的氛围光、剧场模式。 */
+ present(item: FollowDetailItem, kind: string): void;
+ /** 把岛画好的 `<video>` 交给壳挂 Video.js(片源、清晰度、氛围光与遥测都在壳里);
+ * 返回的清理在这块媒体区卸下时调。 */
+ mountPlayer(video: HTMLVideoElement, item: FollowDetailItem, media: FollowDetailMedia | null): () => void;
+ /** 操作回执;给了 `undo` 就带一颗撤销键。失败走 `failure`。 */
+ toast(message: string, options?: { undo?: () => Promise<void> }): void;
+ failure(action: string, error: unknown): void;
+}
+
+export interface FollowDetailProps {
+ id: number;
+ /** 进来时要看的那份媒体(`media_items[].index`);空就按当前视图挑第一份。 */
+ mediaIndex: number | null;
+ /** 列表停在视频还是图片:多媒体帖先挑这种媒体。 */
+ mediaView: FollowMedia;
+ helpers: FollowFeedHelpers;
+ actions: FollowDetailActions;
+}
+
+/* ── 媒体判定 ── */
+
+export interface DetailMedia {
+ embedded: FollowDetailMedia[];
+ selected: FollowDetailMedia | null;
+ kind: string;
+ images: FollowDetailMedia[];
+ /** 当前这张在图片里的位置;不是图片时是 -1。 */
+ position: number;
+ carousel: boolean;
+ /** 多份媒体又不是纯图轮播:右边摆多媒体队列。 */
+ embeddedQueue: boolean;
+ /** 条目自己没有嵌入媒体、组里却有几条可播视频:右边摆合集队列。 */
+ collection: FollowGroup | null;
+ /** 画框比例跟整组图走、不跟当前这张:换图时详情不忽高忽低,图没加载完也先占住位置。
+ * 有尺寸的图里取最高的那张(宽高比最小);一张都没有时轮播用方框,单图由图片自己撑开。 */
+ frameRatio: number;
+ /** 正片地址(`/follow-stream`);条目不可播时是空串。 */
+ src: string;
+}
+
+export function detailMedia(item: FollowDetailItem, group: FollowGroup | null, mediaIndex: number | null, view: FollowMedia): DetailMedia {
+ const embedded = item.media_items || [];
+ const preferredKind = view === 'images' ? 'image' : 'video';
+ const preferred = embedded.find((media) => media.media_kind === preferredKind) || embedded[0];
+ const selected = embedded.length
+ ? embedded.find((media) => media.index === (mediaIndex ?? preferred!.index)) || preferred!
+ : null;
+ const images = embedded.filter((media) => media.media_kind === 'image');
+ const position = images.findIndex((media) => media.index === selected?.index);
+ const carousel = images.length > 1 && position >= 0;
+ const embeddedQueue = embedded.length > 1 && !carousel;
+ const collection = !embedded.length && group && videoItems(group).length > 1 ? group : null;
+ const kind = selected?.media_kind || item.media_kind || '';
+ const owners = (carousel ? [...images, item] : [selected, item])
+ .filter((owner): owner is FollowDetailMedia | FollowDetailItem => !!owner && (owner.width || 0) > 0 && (owner.height || 0) > 0);
+ const frameRatio = kind !== 'image' ? 0
+ : owners.length ? Math.min(...owners.map((owner) => owner.width! / owner.height!)) : carousel ? 1 : 0;
+ const src = item.playable ? `/follow-stream?id=${item.id}${selected ? `&media=${selected.index}` : ''}` : '';
+ return { embedded, selected, kind, images, position, carousel, embeddedQueue, collection, frameRatio, src };
+}
+
+/** 组里挂着网盘分组媒体的那一条:合集队列改列它的媒体,不列回复。 */
+export const groupedMediaOwner = (group: FollowGroup): FollowDetailItem | undefined =>
+ collectionItems(group).find((item) => ((item as FollowDetailItem).media_items || [])
+ .some((media) => media.resource_group)) as FollowDetailItem | undefined;
+
+/* ── 文案 ── */
+
+const RESOURCE_HOSTS: Record<string, string> = {
+ 'gofile.io': 'Gofile', 'pixeldrain.com': 'Pixeldrain', 'mega.nz': 'MEGA', 'mega.io': 'MEGA',
+ 'mediafire.com': 'MediaFire', 'drive.google.com': 'Google Drive',
+};
+const RESOURCE_PROVIDERS: Record<string, string> = {
+ gofile: 'Gofile', pixeldrain: 'Pixeldrain', mega: 'MEGA', mediafire: 'MediaFire', google_drive: 'Google Drive',
+};
+
+/** 外部文件页那一排的站名:认得的网盘写品牌名,其余写主机名。 */
+export function resourceLabel(url: string): string {
+ try {
+ const host = new URL(url).hostname.replace(/^www\./, '');
+ return RESOURCE_HOSTS[host] || host;
+ } catch {
+ return '外部文件页';
+ }
+}
+
+/** 灯箱角上那一行出处:网盘分组的媒体写网盘,其余写来源站。 */
+export function mediaSourceLabel(media: FollowDetailMedia | null | undefined, item: FollowDetailItem): string {
+ return RESOURCE_PROVIDERS[media?.resource_provider || ''] || item.provider_label || item.provider || '在线图片';
+}
+
+/** 合集队列一行的行首标记与正文。线程标题不能冒充每条回复的正文,行首说明它与主条目的关系;
+ * 发布时间单独显示,不能再伪装成版本或类型标签。 */
+export function collectionCopy(group: FollowGroup, item: FollowDetailItem, mark = ''): { label: string; title: string } {
+ let label = mark;
+ if (!label && group.is_release) label = item.variant_label || item.variant_kind || '';
+ if (!label) label = item.variant_kind === 'wip' ? 'WIP' : (item.variant_label || item.variant_kind || '视频');
+ const body = group.is_release ? (item.summary || (item.has_media ? '(仅附件)' : '(无正文)')) : item.title;
+ return { label, title: group.is_release && item.author ? `${item.author}:${body}` : body };
+}
+
+/** 多媒体队列一行的名字:关注媒体不是 JAV,只去掉首尾空白(同遗留层 `javDisplayName` 的非 JAV 分支)。 */
+export const mediaName = (media: FollowDetailMedia) => String(media.name || '').trim();
+
+/** 来源记下的标签类型;没记的是 `unknown`,保持中性色——不按词形猜类型是关注标签的既有门槛。 */
+export const tagType = (item: FollowDetailItem, tag: string) => item.tag_types?.[tag] || 'unknown';
+
+/** 标签着色那一档(`data-tag-cat`,色板在 `../styles.css`):来源认得的五类各有颜色,没记类型的
+ * 是中性色,其余类型(booru 各站自己多出来的)按 general 着色。 */
+const COLORED_TYPES = new Set(['artist', 'character', 'copyright', 'metadata', 'unknown']);
+export function tagCategory(item: FollowDetailItem, tag: string): string {
+ const type = tagType(item, tag);
+ return `r34-${COLORED_TYPES.has(type) ? type : 'general'}`;
+}
+
+/* 详情标签按 rule34.xxx 帖子页 `#tag-sidebar` 的类型顺序分组,组内按名升序——证据见
+ docs/reference-snapshots/rule34-follow-tags-and-collections.md,缺的类型直接跳过不占位。
+ 卡片只消费 general 内容投影;详情保留来源记录的全部类型。 */
+const TAG_ORDER = ['copyright', 'character', 'artist', 'general', 'metadata'];
+export function detailTags(item: FollowDetailItem, label: (tag: string) => string): string[] {
+ const tags = item.detail_tags || item.tags || [];
+ const rank = (tag: string) => {
+ const at = TAG_ORDER.indexOf(tagType(item, tag));
+ return at < 0 ? TAG_ORDER.length : at;
+ };
+ return [...tags].sort((a, b) => rank(a) - rank(b) || label(a).localeCompare(label(b)));
+}
+
+/** 署名那一组来源:同一创作者的全部来源,认不出创作者时只有这一条自己的来源。 */
+export function authorSources(item: FollowDetailItem, sources: readonly FollowSource[]): FollowSource[] {
+ const source = sources.find((row) => row.id === item.source_id);
+ const group = sources.filter((row) => source?.author_key && row.author_key === source.author_key);
+ if (!group.length && source) group.push(source);
+ return group;
+}
+
+export const detailContext = (data: FollowDetailData, credentials: ReadonlySet<string>): FollowContext => ({
+ sources: data.sources, aliases: data.aliases, credentials,
+});
+
+/* ── 灯箱 ──
+ 详情里点图开大图,跟女优页同一个灯箱。多图时把整组交进去,左右翻页就能看完一条帖子的所有图;
+ 取不到正片就退而用缩略图——看小图总比点了没反应强。 */
+const sized = (media: FollowDetailMedia | null) => (media?.size ? { size: media.size } : {});
+
+export function detailSlides(item: FollowDetailItem, media: DetailMedia): LightboxSlide[] {
+ const { images, kind, src, selected } = media;
+ if (images.length) {
+ return images.map((image, index) => ({
+ src: `/follow-stream?id=${item.id}&media=${image.index}`,
+ thumb: image.thumb_url || item.thumb_url || `/follow-stream?id=${item.id}&media=${image.index}`,
+ name: image.name || item.title, source: mediaSourceLabel(image, item), ...sized(image),
+ position: index + 1, total: images.length,
+ }));
+ }
+ if (kind === 'image' && src) {
+ return [{ src, thumb: item.thumb_url || src, name: item.title, source: mediaSourceLabel(selected, item),
+ ...sized(selected), position: 1, total: 1 }];
+ }
+ return item.thumb_url ? [{ src: item.thumb_url, thumb: item.thumb_url, name: item.title,
+ source: item.provider_label || item.provider || '在线图片', position: 1, total: 1 }] : [];
+}
+
+/* ── 写完之后 ── */
+
+/** 状态回执的说法与撤销:保存进账本的不给撤销,那是另一件事。 */
+export const statusReceipt = (to: string) => (to === 'seen' ? '已标记看过' : '已更新关注状态');
diff --git a/frontend/src/react/follow-feed/follow-feed-page.tsx b/frontend/src/react/follow-feed/follow-feed-page.tsx
index e43ed82d3..6351069b2 100644
--- a/frontend/src/react/follow-feed/follow-feed-page.tsx
+++ b/frontend/src/react/follow-feed/follow-feed-page.tsx
@@ -24,11 +24,12 @@ import { useViewGlide } from '../components/use-view-glide';
import { Segments, Shuffle } from '../entity-filter/entity-filter-page';
import type { SegmentOption } from '../entity-filter/entity-filter';
import { FOLLOW_CHECK_URL, FOLLOW_STATUS_URL } from '../follow-manage/follow-manage';
+import { sidebarTagCounts } from '../../sidebar';
import { queryClient } from '../query';
import { FollowCard } from './follow-card';
import {
FOLLOW_CREDENTIALS_KEY, FOLLOW_FEED_SORTS, FOLLOW_FILTERS, FOLLOW_TAGS_FIRST, FOLLOW_WORKS_FIRST,
- dropCondition, fetchFollowCredentials, followConditions, followFeedQuery, groupMediaKinds, groupTagType, itemForMedia,
+ collectionItems, dropCondition, fetchFollowCredentials, followConditions, followFeedQuery, groupMediaKinds, groupTagType, itemForMedia,
mergedPage, nextSort, randomOrder, sortAriaLabel, backfillState, withStatus,
type FollowCondition, type FollowContext, type FollowFeedProps, type FollowGroup, type FollowPage, type FollowSource,
type FollowJobState, type FollowView, type FollowWorkRow,
@@ -109,11 +110,16 @@ export function FollowFeedPage(props: FollowFeedProps) {
const facets = useFacets(data, view, seed);
const listPending = result.isPending || result.isPlaceholderData;
- /* 详情仍在壳里、读壳的 `followData`:每取到本键自己的数据就交回去,换键时暂借的占位数据不交。 */
- const settled = !listPending && data;
+ /* 侧栏标签抽屉仍在壳里:每取到本键自己的数据就把可见条目的标签计数交回去,换键时暂借的
+ 占位数据不交。 */
+ const settled = !listPending && !!data;
+ const drawerTags = useMemo(
+ () => sidebarTagCounts(facets.visible.flatMap(collectionItems).map((item) => ({ tags: item.tags || [] }))),
+ [facets.visible],
+ );
useEffect(() => {
- if (settled) actions.loaded(settled, facets.visible, credentials);
- }, [settled, facets.visible, credentials, actions]);
+ if (settled) actions.loaded(drawerTags);
+ }, [settled, drawerTags, actions]);
const job = useFollowJob(props, !!data);
diff --git a/frontend/src/react/follow-feed/follow-feed.ts b/frontend/src/react/follow-feed/follow-feed.ts
index 68a92994b..6fbdda6d3 100644
--- a/frontend/src/react/follow-feed/follow-feed.ts
+++ b/frontend/src/react/follow-feed/follow-feed.ts
@@ -9,8 +9,9 @@
* 上面创作者、题材、标签三排露出哪些由它定。重新进入(壳的 `push`)与「换一批」才换它,岛重画
* 从不重新洗牌。
*
- * 详情(`/follow/item/:id`)仍在壳里,读的是壳的 `followData`:岛每取到一版列表就经
- * `actions.loaded` 交回一份合并后的数据,壳据此建条目索引、画侧栏标签抽屉。 */
+ * 详情(`/follow/item/:id`)是另一座岛(`../follow-detail/`),先扫这里缓存的几页找条目
+ * (`findFollowItem`),扫不到才单独取。侧栏标签抽屉仍归壳画:岛每取到一版列表就经
+ * `actions.loaded` 交回这一视图可见条目的标签计数。 */
import { keepPreviousData, type InfiniteData, type QueryKey } from '@tanstack/react-query';
import { seededRank } from '@peach/legacy/core';
@@ -114,6 +115,8 @@ export interface FollowGroup {
variants: FollowItem[];
duplicates: FollowItem[];
has_wip?: boolean;
+ /** 论坛发布帖:组里每条是一条回复,正文是回复内容而不是线程标题。 */
+ is_release?: boolean;
stack?: FollowStackInfo | null;
}
@@ -224,6 +227,53 @@ export function collectionItems(group: FollowGroup): FollowItem[] {
});
}
+/** 列表缓存里的一条:条目本身、所在的组与那一版的来源和别名。 */
+export interface FollowItemHit {
+ item: FollowItem;
+ group: FollowGroup;
+ sources: FollowSource[];
+ aliases: unknown[];
+}
+
+/** 在这座岛已缓存的每一版列表里找一条(详情先扫这里)。来源与别名取那一版最后一页的,同 `mergedPage`。 */
+export function findFollowItem(id: number): FollowItemHit | null {
+ for (const [, data] of queryClient.getQueriesData<InfiniteData<FollowPage>>({ queryKey: ['follow-feed'] })) {
+ if (!Array.isArray(data?.pages) || !data.pages.length) continue;
+ const last = data.pages[data.pages.length - 1]!;
+ for (const page of data.pages) {
+ for (const group of page.groups || []) {
+ const item = collectionItems(group).find((member) => member.id === id);
+ if (item) return { item, group, sources: last.sources || [], aliases: last.author_aliases || [] };
+ }
+ }
+ }
+ return null;
+}
+
+/** 每一版列表缓存里的同一条换成 `next`(详情隐藏或恢复一张图之后,服务端投影给出新的媒体清单)。 */
+export function replaceFollowItem(next: FollowItem): void {
+ queryClient.setQueriesData<InfiniteData<FollowPage>>({
+ queryKey: ['follow-feed'], predicate: (query) => Array.isArray((query.state.data as InfiniteData<FollowPage>)?.pages),
+ }, (data) => data && {
+ ...data,
+ pages: data.pages.map((page) => ({
+ ...page,
+ groups: (page.groups || []).map((group) => {
+ const swap = (item: FollowItem) => (item.id === next.id ? next : item);
+ if (!collectionItems(group).some((item) => item.id === next.id)) return group;
+ return { ...group, primary: swap(group.primary), variants: group.variants.map(swap), duplicates: group.duplicates.map(swap) };
+ }),
+ })),
+ });
+}
+
+/** 每一版列表缓存里的同一条换状态、挪计数(详情里的保存与标记)。不移出整组:详情不知道每一版筛着哪一档。 */
+export function setFollowItemStatus(id: number, to: string): void {
+ queryClient.setQueriesData<InfiniteData<FollowPage>>({
+ queryKey: ['follow-feed'], predicate: (query) => Array.isArray((query.state.data as InfiniteData<FollowPage>)?.pages),
+ }, (data) => data && withStatus(data, null, id, to));
+}
+
/** 同上,按发布时间从新到旧。 */
export function collectionItemsNewest(group: FollowGroup): FollowItem[] {
return collectionItems(group).sort((a, b) => {
@@ -393,8 +443,8 @@ export interface FollowFeedActions {
route(view: FollowView): void;
/** 换一批:壳掷一粒新种子,两排取样与列表次序都换。 */
shuffle(): void;
- /** 岛取到一版列表(首屏、续页、写操作之后):合并后的数据、这一视图可见的组与凭据。 */
- loaded(data: FollowPage, visible: readonly FollowGroup[], credentials: ReadonlySet<string>): void;
+ /** 岛取到一版列表(首屏、续页、写操作之后):这一视图可见条目的标签计数,壳拿去画侧栏抽屉。 */
+ loaded(tags: readonly (readonly [string, number])[]): void;
openDetail(id: number): void;
openManage(): void;
/** 多选里的一张:`range` 是 Shift 连选。 */
@@ -414,8 +464,9 @@ export interface FollowFeedActions {
/** 状态写接口回的那一份:换的是哪一条、换成了什么。 */
export interface FollowStatusWrite { item: number; to: string }
-/** 写完之后在缓存里换局部:条目状态、状态计数,筛着某一档而新状态不在这一档时整组移出。 */
-export function withStatus(data: InfiniteData<FollowPage>, view: FollowView, id: number, to: string):
+/** 写完之后在缓存里换局部:条目状态、状态计数,筛着某一档而新状态不在这一档时整组移出。
+ * `view` 为空时只换状态与计数、不移出(详情里的写操作)。 */
+export function withStatus(data: InfiniteData<FollowPage>, view: FollowView | null, id: number, to: string):
InfiniteData<FollowPage> {
let before = '';
const pages = data.pages.map((page) => ({
@@ -429,7 +480,7 @@ InfiniteData<FollowPage> {
return { ...item, status: to };
};
const next = { ...group, primary: swap(group.primary), variants: group.variants.map(swap), duplicates: group.duplicates.map(swap) };
- if (hit && view.status && next.primary.id === id && to !== view.status) return [];
+ if (hit && view?.status && next.primary.id === id && to !== view.status) return [];
return [next];
}),
}));
diff --git a/frontend/src/react/styles.css b/frontend/src/react/styles.css
index 085011b07..2324ead3e 100644
--- a/frontend/src/react/styles.css
+++ b/frontend/src/react/styles.css
@@ -21,6 +21,7 @@
@import "./entity-filter/entity-filter.css";
@import "./entity-body/entity-body.css";
@import "./follow-feed/follow-feed.css";
+@import "./follow-detail/follow-detail.css";
@import "./photo-lightbox/photo-lightbox.css";
@import "./index/index-people.css";
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 8825424a8..949ad9a13 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-feed', 'follow-manage', 'index', 'junk-queue',
+ 'catalog-grid', 'cover-crop', 'data-cleanup', 'duplicates', 'entity-body', 'entity-filter', 'entity-hero', 'follow-detail', 'follow-feed', 'follow-manage', 'index', 'junk-queue',
'library-processing', 'playlists',
'scraping', 'quality-goals', 'review', 'configuration', 'configuration-summary', 'activity', 'stats', 'taste']);
});
diff --git a/frontend/test/react/follow-detail.test.tsx b/frontend/test/react/follow-detail.test.tsx
new file mode 100644
index 000000000..9864e394e
--- /dev/null
+++ b/frontend/test/react/follow-detail.test.tsx
@@ -0,0 +1,252 @@
+/* 关注详情岛:单条取数、侧栏的次序与文案、写操作之后键态怎么变、媒体取不回时退到哪、交给壳与灯箱的是什么。
+ *
+ * 从列表进出不重取、Video.js 接管岛画的 `<video>`、轮播圆点、恢复带、标签回列表与手机布局要真浏览器,
+ * 在 `frontend/e2e/follow-detail.test.ts` 里量;尺寸与色板在 `e2e/design.test.ts`。 */
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, describe, expect, it, vi, type Mock } from 'vitest';
+
+import {
+ collectionCopy, detailTags, followItemKey, tagCategory,
+ type FollowDetailActions, type FollowDetailData, type FollowDetailItem, type FollowDetailProps,
+} from '../../src/react/follow-detail/follow-detail';
+import { FollowDetailPage } from '../../src/react/follow-detail/follow-detail-page';
+import { FOLLOW_CREDENTIALS_KEY, type FollowFeedHelpers, type FollowGroup } from '../../src/react/follow-feed/follow-feed';
+import { openPhotoLightbox } from '../../src/react/photo-lightbox/photo-lightbox-dialog';
+import { queryClient } from '../../src/react/query';
+import { click, mount, settle } from './render';
+
+/* 灯箱自己的开合与翻页在 `photo-lightbox.test.tsx`;这里只看详情把哪一组、从第几张交给它。 */
+vi.mock('../../src/react/photo-lightbox/photo-lightbox-dialog', () => ({ openPhotoLightbox: vi.fn(async () => {}) }));
+
+afterEach(() => { queryClient.clear() });
+notifyManager.setScheduler((notify) => notify());
+
+const item = (id: number, extra: Partial<FollowDetailItem> = {}): FollowDetailItem => ({
+ id, title: `更新 ${id}`, status: 'new', provider: 'kemono', provider_label: 'Kemono', source_id: 1,
+ published_at: `2026-09-${String(10 + (id % 10)).padStart(2, '0')}T08:00:00Z`, media_kind: 'video', playable: true,
+ thumb_url: `/thumb/${id}`, tags: [], media_items: [], ...extra,
+});
+const group = (primary: FollowDetailItem, extra: Partial<FollowGroup> = {}): FollowGroup =>
+ ({ primary, variants: [], duplicates: [], stack: null, ...extra });
+const image = (index: number, extra: Record<string, unknown> = {}) => ({
+ index, media_kind: 'image', thumb_url: `/thumb/m${index}`, name: `${index}.jpg`, width: 600, height: 800, ...extra,
+});
+
+function helpers(patch: Partial<FollowFeedHelpers> = {}): FollowFeedHelpers {
+ return {
+ sourceIcon: (provider) => `<img alt="${provider}">`, authorAvatar: () => '', authorName: () => '',
+ identity: () => ({ author: '作者', avatar: '<span>作</span>', credited: '' }), workMark: () => '', titleMarks: () => '',
+ badges: () => '', mediaIssue: () => '', when: (shown) => String(shown.published_at || ''), tagLabel: (tag) => tag,
+ wireDrag: vi.fn(), wireScroller: vi.fn(), learnDims: vi.fn(), listSkeletonHtml: () => '', jobProgress: vi.fn(),
+ ...patch,
+ };
+}
+
+type ActionMocks = { [K in keyof FollowDetailActions]: Mock<FollowDetailActions[K]> };
+
+function actions(): ActionMocks {
+ return {
+ close: vi.fn(), openItem: vi.fn(), openTag: vi.fn(), present: vi.fn(), mountPlayer: vi.fn(() => vi.fn()),
+ toast: vi.fn(), failure: vi.fn(),
+ };
+}
+
+const data = (shown: FollowDetailItem, row: FollowGroup | null = group(shown)): FollowDetailData =>
+ ({ item: shown, group: row, sources: [], aliases: [] });
+
+/** 假服务端:凭据为空,写接口按 `status` 回话;单条取数回给定的那一页。 */
+function serve({ page = null as unknown, status = 200 } = {}) {
+ const fetcher = vi.fn(async (url: string, init?: RequestInit) => {
+ if (url.startsWith('/api/follow/credentials')) return { ok: true, status: 200, json: async () => ({ providers: [] }) };
+ if (url.startsWith('/api/follow?item=')) return { ok: true, status: 200, json: async () => structuredClone(page) };
+ if (init?.method === 'POST') return { ok: status < 400, status, json: async () => (status < 400 ? { ok: true } : { detail: '写入失败' }) };
+ return { 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(given: FollowDetailData, patch: Partial<FollowDetailProps> = {}) {
+ queryClient.setQueryData(followItemKey(given.item.id), given);
+ queryClient.setQueryData(FOLLOW_CREDENTIALS_KEY, { providers: [] });
+ const props: FollowDetailProps = {
+ id: given.item.id, mediaIndex: null, mediaView: 'videos', helpers: helpers(), actions: actions(), ...patch,
+ };
+ const host = await mount(<QueryClientProvider client={queryClient}><FollowDetailPage {...props} /></QueryClientProvider>);
+ await settle();
+ return { host, props, actions: props.actions as ActionMocks };
+}
+
+describe('取数', () => {
+ it('缓存里没有这一条就单条取 `/api/follow?item=`,取回的组里找不到这一条就报出来', async () => {
+ const fetcher = serve({ page: { groups: [group(item(8))], sources: [], author_aliases: [] } });
+ const props: FollowDetailProps = { id: 8, mediaIndex: null, mediaView: 'videos', helpers: helpers(), actions: actions() };
+ const host = await mount(<QueryClientProvider client={queryClient}><FollowDetailPage {...props} /></QueryClientProvider>);
+ await settle();
+ expect(fetcher.mock.calls.map(([url]) => url)).toContain('/api/follow?item=8');
+ expect(host.querySelector('[data-follow-detail-name]')?.textContent).toBe('更新 8');
+
+ queryClient.clear();
+ serve({ page: { groups: [], sources: [], author_aliases: [] } });
+ const gone = await mount(<QueryClientProvider client={queryClient}><FollowDetailPage {...props} id={9} /></QueryClientProvider>);
+ await vi.waitFor(async () => {
+ await settle();
+ expect(gone.textContent).toContain('这条关注内容已不存在');
+ });
+ });
+});
+
+describe('侧栏', () => {
+ it('自上而下:正文、操作、状态一行、标签;标签按 rule34 的类型顺序', async () => {
+ const { host } = await show(data(item(1, {
+ summary: '正文', detail_tags: ['solo', 'kou', 'ow', 'animated', 'odd', 'tracer'],
+ tag_types: { ow: 'copyright', tracer: 'character', kou: 'artist', solo: 'general', animated: 'metadata' },
+ })));
+ const [summary, actionsBar, state, tags] = ['[data-follow-detail-summary]', '[data-follow-detail-actions]',
+ '[data-follow-state]', '[data-follow-detail-tags]'].map((selector) => host.querySelector(selector)!);
+ const follows = (a: Element, b: Element) => !!(a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING);
+ expect([follows(summary!, actionsBar!), follows(actionsBar!, state!), follows(state!, tags!)]).toEqual([true, true, true]);
+ expect([...host.querySelectorAll<HTMLElement>('[data-follow-tag]')].map((tag) => [tag.dataset.followTag, tag.dataset.tagCat]))
+ .toEqual([['ow', 'r34-copyright'], ['tracer', 'r34-character'], ['kou', 'r34-artist'], ['solo', 'r34-general'],
+ ['animated', 'r34-metadata'], ['odd', 'r34-unknown']]);
+ });
+
+ it('来源外链、网盘链接与下载键;发布者与署名作者不同才写', async () => {
+ const { host } = await show(data(item(2, {
+ url: 'https://example.invalid/post/2', author: 'Poster',
+ resource_urls: ['https://gofile.io/d/a', 'https://mega.nz/folder/b', 'https://files.example.org/c'],
+ })));
+ const origin = host.querySelector('[data-follow-origin]')!;
+ expect([origin.getAttribute('title'), origin.getAttribute('aria-label'), origin.getAttribute('href')])
+ .toEqual(['打开来源页面', '打开来源页面', 'https://example.invalid/post/2']);
+ expect([...host.querySelectorAll('[data-follow-resources] a')].map((link) => link.textContent))
+ .toEqual(['Gofile', 'MEGA', 'files.example.org']);
+ const download = host.querySelector('[data-follow-download]')!;
+ expect(download.hasAttribute('download')).toBe(true);
+ expect(download.getAttribute('href')).toBe('/follow-stream?id=2&download=1');
+ expect(host.querySelector('[data-follow-detail-identity] > div')?.textContent).toBe('作者发布者 Poster');
+ });
+
+ it('壳判出的媒体提示原样画在侧栏里', async () => {
+ const note = 'F95 的附件要登录后才看得到,去来源页面打开。';
+ const { host } = await show(data(item(3, { playable: false, media_kind: 'external' })),
+ { helpers: helpers({ mediaIssue: () => note }) });
+ expect(host.querySelector('[data-follow-media-issue]:not([hidden])')?.textContent).toBe(note);
+ });
+});
+
+describe('写操作', () => {
+ it('保存:键还在、改说「已保存」;回执不带撤销', async () => {
+ const fetcher = serve();
+ const { host, actions: given } = await show(data(item(4)));
+ await click(host.querySelector('[data-follow-detail-save]'));
+ await settle();
+ expect(posts(fetcher)).toEqual([['/api/follow/save', { item: 4 }]]);
+ const save = host.querySelectorAll('[data-follow-detail-save]');
+ expect(save).toHaveLength(1);
+ expect(save[0]!.getAttribute('aria-label')).toBe('已保存');
+ expect(given.toast).toHaveBeenCalledWith('已保存到账本');
+ });
+
+ it('标记已看:键按下、多一枚「恢复未看」;回执的撤销写回原状态', async () => {
+ const fetcher = serve();
+ const { host, actions: given } = await show(data(item(5)));
+ expect(host.querySelector('[data-follow-detail-status="ignored"] use')?.getAttribute('href')).toBe('#i-eye-off');
+ expect(host.querySelector('[data-follow-detail-status="new"]')).toBeNull();
+ await click(host.querySelector('[data-follow-detail-status="seen"]'));
+ await settle();
+ expect(host.querySelector('[data-follow-detail-status="seen"]')?.getAttribute('aria-pressed')).toBe('true');
+ expect(host.querySelector('[data-follow-detail-status="new"]')).not.toBeNull();
+ const [message, options] = given.toast.mock.calls[0]!;
+ expect(message).toBe('已标记看过');
+ await options!.undo!();
+ await settle();
+ expect(posts(fetcher)).toEqual([['/api/follow/status', { item: 5, to: 'seen' }], ['/api/follow/status', { item: 5, to: 'new' }]]);
+ expect(host.querySelector('[data-follow-detail-status="seen"]')?.getAttribute('aria-pressed')).toBe('false');
+ });
+
+ it('写失败:键态不变,原因落在状态那一行,并交壳报错', async () => {
+ serve({ status: 500 });
+ const { host, actions: given } = await show(data(item(6)));
+ await click(host.querySelector('[data-follow-detail-status="ignored"]'));
+ await settle();
+ expect(host.querySelector('[data-follow-detail-status="ignored"]')?.getAttribute('aria-pressed')).toBe('false');
+ expect(host.querySelector('[data-follow-state]')?.textContent).not.toBe('');
+ expect(given.failure).toHaveBeenCalledOnce();
+ });
+});
+
+describe('媒体', () => {
+ it('视频交给壳挂播放器,卸下这块媒体区时调回它给的清理', async () => {
+ const shown = item(10, { media_items: [{ index: 0, media_kind: 'video' }, image(1)] });
+ const { host, actions: given } = await show(data(shown));
+ const [video, handed, media] = given.mountPlayer.mock.calls[0]!;
+ expect(video).toBe(host.querySelector('video'));
+ expect([handed.id, media?.index]).toEqual([10, 0]);
+ const release = given.mountPlayer.mock.results[0]!.value;
+ await click(host.querySelector('[data-follow-media-item="1"]'));
+ expect(release).toHaveBeenCalledOnce();
+ expect(host.querySelector('video')).toBeNull();
+ });
+
+ it('原图取不回就换上缩略图,并说明这是缩略图', async () => {
+ const { host } = await show(data(item(11, {
+ media_kind: 'image', thumb_url: '/thumb/11', media_items: [image(0, { thumb_url: '/thumb/11-0' })],
+ })));
+ const poster = host.querySelector<HTMLImageElement>('[data-follow-detail-poster]')!;
+ expect(poster.getAttribute('src')).toBe('/follow-stream?id=11&media=0');
+ expect(host.querySelector('[data-media-thumb-fallback]')?.hasAttribute('hidden')).toBe(true);
+ poster.dispatchEvent(new Event('error'));
+ await settle();
+ expect(poster.getAttribute('src')).toBe('/thumb/11-0');
+ expect(host.querySelector('[data-media-thumb-fallback]')?.hasAttribute('hidden')).toBe(false);
+ });
+
+ it('多图帖点图把整组交给灯箱,从当前这张开始', async () => {
+ const shown = item(12, { media_kind: 'image', media_items: [image(0), image(1), image(2)] });
+ const { host } = await show(data(shown), { mediaIndex: 1 });
+ await click(host.querySelector('[data-follow-detail-poster]'));
+ const [start, slides] = vi.mocked(openPhotoLightbox).mock.calls.at(-1)!;
+ expect(start).toBe(1);
+ expect(slides.map((slide) => slide.src)).toEqual([0, 1, 2].map((index) => `/follow-stream?id=12&media=${index}`));
+ });
+
+ it('多媒体队列按网盘分组,名字走中段省略;合集队列只列可播视频、新到旧', async () => {
+ const shown = item(13, { media_items: [
+ { index: 0, media_kind: 'video', name: ' a.mp4 ', resource_group: 'g1', resource_group_label: 'Gofile 文件夹' },
+ { ...image(1), resource_group: 'g1', resource_group_label: 'Gofile 文件夹' },
+ ] });
+ const { host } = await show(data(shown));
+ expect(host.querySelector('.mixgrouplabel')?.textContent).toBe('Gofile 文件夹 2');
+ expect([...host.querySelectorAll('[data-follow-media-item] [data-middle-truncate]')].map((name) => name.textContent))
+ .toEqual(['a.mp4', '1.jpg']);
+
+ queryClient.clear();
+ const primary = item(20, { published_at: '2026-09-18T00:00:00Z' });
+ const row = group(primary, {
+ variants: [item(21, { published_at: '2026-09-20T00:00:00Z' }), item(22, { media_kind: 'image' }),
+ item(23, { playable: false })],
+ duplicates: [item(24, { published_at: '2026-09-19T00:00:00Z' })],
+ });
+ const { host: collection } = await show(data(primary, row));
+ expect([...collection.querySelectorAll<HTMLElement>('[data-follow-queue-item]')].map((line) => Number(line.dataset.followQueueItem)))
+ .toEqual([21, 24, 20]);
+ });
+});
+
+describe('文案与排序', () => {
+ it('合集行首:发布串不拿发布时间当版本标签,正文带上作者', () => {
+ const reply = item(30, { author: 'kou', summary: '第二段更新', variant_kind: '', published_at: '2026-09-18T00:00:00Z' });
+ expect(collectionCopy(group(item(29), { is_release: true }), reply)).toEqual({ label: '视频', title: 'kou:第二段更新' });
+ expect(collectionCopy(group(item(29)), item(31, { variant_kind: 'wip' }))).toEqual({ label: 'WIP', title: '更新 31' });
+ });
+
+ it('来源站多出来的类型按 general 着色、排在已知类型之后', () => {
+ const shown = item(32, { detail_tags: ['b', 'a', 'x'], tag_types: { a: 'general', b: 'general', x: 'lore' } });
+ expect(detailTags(shown, (tag) => tag)).toEqual(['a', 'b', 'x']);
+ expect(tagCategory(shown, 'x')).toBe('r34-general');
+ });
+});
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.py
index 5ed99d2f4..3e5e8c307 100644
--- a/tests/test_follow_web.py
+++ b/tests/test_follow_web.py
@@ -2946,7 +2946,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("open:(params,push)=>openFollowManage(push)},")
self.assertPageContains(
"await openFollow(push,true);await openFollowDetail(params.id,push)")
- self.assertPageContains("api(`/api/follow?item=${encodeURIComponent(id)}`)")
self.assertPageContains(".then(async()=>{buildEdge();wireAllDrag();await restoreRoute();scheduleStickySurfaces()})")
def test_reader_management_is_locked_and_points_to_the_writer(self):
@@ -3172,11 +3171,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("let followAuthors=new Set(),followProviders=new Set(),followTags=new Set()")
# 取交集的判定在服务端;页面负责把多选的标签一次全交出去。
self.assertPageContains("+(followTags.size?`&tag=${encodeURIComponent([...followTags].join(','))}`:'')")
- # 详情页的标签按来源类型着色;筛选条与卡片上那几颗归 `follow-feed.css` 的 `data-tag-cat`。
- self.assertPageContains(".r34-artist")
- self.assertPageContains(".r34-character")
- self.assertPageContains(".r34-copyright")
- self.assertPageContains(".r34-metadata")
def test_follow_cards_use_author_avatars_and_open_details_inside_peach(self):
# 卡片本身归 `follow-feed` 岛:头像取壳的 `followAuthorAvatar`,点卡交给壳开详情。
@@ -3188,44 +3182,16 @@ class FollowWebSourceTests(unittest.TestCase):
self.page,
)
self.assertPageContains("async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=false)")
- self.assertPageContains("const src=item.playable?`/follow-stream?id=${item.id}${selectedMedia?")
- self.assertPageContains("route(`/follow/item/${item.id}`)")
- self.assertPageContains('class="sgrid followdetailgrid${collection||embeddedQueue?\' mixgrid\':\'\'}"')
- self.assertPageContains('class="followorigin externallink" href="${esc(item.url)}" target="_blank"')
- self.assertPageContains('title="打开来源页面" aria-label="打开来源页面"')
self.assertNotIn('打开来源页面</a>', self.page)
- self.assertPageContains(".followdetailtitle{display:flex;gap:5px")
- self.assertPageContains(".fnote.followmediaissue{margin:18px 0 8px;color:var(--drop)}")
self.assertPageContains("followAuthorAvatar(authorSources,name)")
- self.assertPageContains("followTagChip(item,tag,'button')")
- self.assertPageContains("item.detail_tags||item.tags||[]")
- self.assertPageContains(".followdetailtags .tg{max-width:none")
- # 标签是按钮,点下去按这个标签筛选,必须有悬停反馈。通用 `.tg:hover` 的填充和
- # 文字色被按类型着色那两条同权重规则压掉了,只能按标签自己那个类型色加深一档。
- self.assertPageContains(
- ".followdetailtags .tg:hover{border-color:color-mix(in srgb,var(--r34-tag) 68%,transparent)")
- self.assertPageContains(
- "background:color-mix(in srgb,var(--r34-tag) 18%,transparent);color:var(--ink)}")
- self.assertPageContains("const postedBy=credited?'':item.author&&foldName(item.author)!==foldName(author)")
self.assertNotIn('class="cardopenhit" href=', self.page)
self.assertNotIn('class="fcollectionthumb" href=', self.page)
self.assertPageContains("route(followDetailReturnPath||'/follow')")
- # 标签紧跟动作条。错误行 `.fstate` 带着 `flex:1 1 100%`,在纵向 flex 的右栏里
- # 会把剩余高度全算给自己,把标签压到栏底、中间空一大段。
- self.assertPageContains(".followdetailside .fstate{flex:none}")
-
- def test_one_fanbox_collection_keeps_its_gofile_folder_sections(self):
- self.assertPageContains("const followGroupedMediaOwner=group=>")
- self.assertPageContains("(item.media_items||[]).some(media=>media.resource_group)")
- self.assertPageContains("const key=media.resource_group||'ungrouped'")
- self.assertPageContains('class="mixgrouplabel"')
- self.assertPageContains('data-follow-media-owner="${item.id}"')
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("if(followVideo){")
- self.assertPageContains("const followPlayer=await mountDetailPlayer(item,followVideo,appSettings.detailAutoplay,{")
- self.assertPageContains("source:{src,type:selectedMedia?.media_type||item.media_type||'video/mp4'}")
+ self.assertPageContains("mountDetailPlayer(item,video,appSettings.detailAutoplay,{")
+ self.assertPageContains("source:{src,type:media?.media_type||item.media_type||'video/mp4'}")
# 第四个参数是来源自己给的清晰度表:rule34video 把每档写成独立 mp4 字段,
# videojs 的 qualityLevels 只认 HLS/DASH 的自适应轨道,看不到它们。
self.assertPageContains(
@@ -3237,48 +3203,31 @@ class FollowWebSourceTests(unittest.TestCase):
# 档位和字节数是同一趟回源的产物,播放器两样都从这个应答里取。
self.assertPageContains("updateQualities?.(next?.qualities?.length?next.qualities:null);")
self.assertPageContains("const size=Number(next?.size)||0;")
- detail = self.page.split("async function openFollowDetail", 1)[1].split(
- "function alignFollowImageControls", 1)[0]
- self.assertNotIn("await api(`/follow-qualities", detail,
+ player = self.page.split("function mountFollowPlayer(", 1)[1].split(
+ "async function openFollow(", 1)[0]
+ self.assertNotIn("await api(`/follow-qualities", player,
"清晰度回源不能挡住默认视频挂载")
- self.assertLess(detail.index("const followPlayer=await mountDetailPlayer"),
- detail.index("wireFollowTelemetry"))
+ self.assertLess(player.index("mountDetailPlayer(item,video"),
+ player.index("wireFollowTelemetry"))
self.assertPageContains('aria-label="播放器设置"')
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 stopFollowAmbient=mountPlayerAmbient(followVideo)")
- self.assertPageContains("followPlayer?.one?.('dispose',stopFollowAmbient)")
+ self.assertPageContains("const stopAmbient=mountPlayerAmbient(video)")
+ self.assertPageContains("player?.one?.('dispose',stopAmbient)")
self.assertPageContains("mountPlayerTheaterControl(player,root)")
- self.assertPageContains("wireFollowTelemetry(item,followVideo)")
+ self.assertPageContains("wireFollowTelemetry(item,video)")
self.assertPageContains("api('/api/follow/play'")
self.assertPageContains("api('/api/follow/activity'")
- def test_follow_detail_save_keeps_the_button_after_the_async_request(self):
- self.assertPageContains("const button=event.currentTarget;")
- self.assertPageContains("write(button,'/api/follow/save',{item:item.id},()=>{")
- self.assertPageContains("button.innerHTML=icon('check')")
- self.assertPageContains("button.setAttribute('aria-label','已保存')")
- self.assertPageLacks("event.currentTarget.innerHTML=icon('check')")
-
def test_follow_image_collections_use_buttons_dots_and_arrow_keys(self):
- self.assertPageContains('class="media-circle media-overlay followimagearrow prev"')
- self.assertPageContains('class="media-circle media-overlay followimagearrow next"')
- self.assertPageContains('class="followimagedots" role="group"')
- self.assertPageContains('data-follow-image-item="${image.index}"')
self.assertPageContains("imageDots.length&&(e.key==='ArrowLeft'||e.key==='ArrowRight')")
- self.assertPageContains("openFollowDetail(item.id,false,+index,true)")
- self.assertPageContains(".followimagedots button[aria-current=\"true\"]")
- self.assertPageContains("function alignFollowImageControls()")
- self.assertPageContains("const renderedWidth=Math.min(box.width,box.height*ratio)")
- self.assertPageContains("--follow-image-arrow-inset")
def test_follow_detail_keeps_filter_context_and_clears_initial_loading(self):
self.assertPageContains("async function openFollow(push=true,renderForDetail=false)")
- # 深链进详情只取一页数据、不挂岛;关掉详情时岛不在场才挂(e2e `follow-feed.test.ts`)。
+ # 深链进详情不取列表、不挂列表岛,这一条由详情岛自己取;关掉详情时列表岛不在场才挂(e2e `follow-feed.test.ts`、`follow-detail.test.ts`)。
self.assertPageContains("const surface=claimSurface(surfacePath());")
self.assertPageContains("const surface=claimSurface('/follow');")
- self.assertPageContains("if(!surfaceCurrent(surface)||!data)return;")
self.assertPageContains("await openFollow(push,true);await openFollowDetail(params.id,push)")
self.assertPageContains("placeItemDetail(detailOriginAnchor,detailOriginAbove);")
self.assertPageContains("if(!stage.open)stage.showModal();")
@@ -3321,16 +3270,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertNotIn("约 ${text}", body)
self.assertIn("return text", body)
- def test_release_time_is_not_reused_as_a_variant_label(self):
- self.assertPageContains("if(!label&&group.is_release)label=item.variant_label||item.variant_kind||''")
- body = self.page[self.page.index("function followCollectionCopy("):
- self.page.index("function followQueueHtml(")]
- self.assertNotIn("localTime(item.published_at)", body)
-
- def test_release_rows_show_the_reply_body_not_the_thread_title(self):
- self.assertPageContains("const body=group.is_release")
- self.assertPageContains("'(仅附件)'")
-
def test_cross_site_duplicates_are_shown_as_another_source(self):
self.assertPageContains("另见 ")
self.assertPageContains("fbadge dup")
@@ -3347,7 +3286,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("{match:'/follow-manage',section:'follow',title:'关注管理',refresh:'skip',")
def test_every_entered_state_can_be_left_again(self):
- self.assertPageContains("""item.status==='seen'||item.status==='ignored'""")
self.assertIn('data-to="new" title="恢复未看" aria-label="恢复未看"',
self.read_react("follow-feed/follow-card.tsx"))
@@ -3553,25 +3491,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertIsNone(web_follow._avatar_url(provider, ref),
f"{provider} 没有实测过的头像来源,不该猜一个")
- def test_detail_tags_follow_rule34s_own_category_order(self):
- """详情标签按 rule34.xxx 帖子页 `#tag-sidebar` 的类型顺序分组,不按字母。
-
- 2026-09-01 实测两个帖子页(18622796 / 18622794),`li.tag-type-*` 的出现
- 顺序都是 copyright → character → artist → general → metadata,组内按名升序;
- 缺的类型直接跳过不占位。证据见
- docs/reference-snapshots/rule34-follow-tags-and-collections.md。
- """
- self.assertPageContains(
- "const FOLLOW_TAG_ORDER=['copyright','character','artist','general','metadata'];")
- self.assertPageContains("function followDetailTags(item)")
- self.assertPageContains("return at<0?FOLLOW_TAG_ORDER.length:at};")
- self.assertPageContains(
- "return [...tags].sort((a,b)=>rank(a)-rank(b)||tagLabel(a).localeCompare(tagLabel(b)));")
- self.assertPageContains(
- "const tags=followDetailTags(item).map(tag=>followTagChip(item,tag,'button')).join('');")
- # 来源没记类型的排最后、保持中性色:不按词形猜类型是关注标签的既有门槛。
- self.assertPageContains(".followdetailtags .r34-unknown{--r34-tag:var(--muted)}")
-
def test_wip_badge_describes_this_item_not_its_siblings(self):
"""`2B Camp [4K]` 判的是 alt,只因为同组还有一条 `[WIP]` 就挂上 WIP。
@@ -3589,40 +3508,16 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("部分媒体未取得:需要 F95 登录会话解析")
self.assertPageLacks("已显示可读取附件;F95 登录会话已保存")
self.assertPageLacks("这条旧记录的受保护资源会在下次检查重新解析")
- self.assertPageContains("followCredentialProviders=new Set")
- self.assertPageContains("surfaceApi(surface,'/api/follow/credentials').catch")
self.assertPageLacks("个外部文件页;视频列表未取得")
- self.assertPageContains("function followMediaIssue(item,credentials=followCredentialProviders){")
- self.assertPageContains('class="fnote followmediaissue"')
- self.assertPageContains("function followResourceLinks(item)")
- self.assertPageContains('class="followresources"')
- self.assertPageContains("${followResourceLinks(item)}")
def test_follow_external_links_have_a_real_icon_and_no_underlines(self):
self.assertPageContains('<symbol id="i-external-link"')
- self.assertPageContains("icon('external-link','externalmark')")
- self.assertPageContains(".followresources a:hover")
self.assertPageContains("text-decoration:none")
def test_follow_styles_exist_for_the_card_surface(self):
- for selector in (".followlist{", ".fbadge{", ".followqueue"):
+ for selector in (".followlist{", ".fbadge{"):
self.assertPageContains(selector)
- def test_follow_cards_reuse_home_cards_hover_actions_and_mix_stacks(self):
- self.assertPageContains("function followVideoItems(group)")
- self.assertPageContains("function followCollectionItemsNewest(group)")
- self.assertPageContains("Date.parse(b.published_at||'')")
- self.assertPageContains("followCollectionItemsNewest(group).filter")
- self.assertPageContains("item.playable&&item.media_kind==='video'")
- # 列表里的卡、卡叠与悬停动作归 `follow-feed` 岛(`follow-feed.test.tsx`、e2e
- # `follow-feed.test.ts`);这里只剩详情页用到的合集与队列。
- self.assertPageContains("function followEmbeddedQueueHtml(item,mediaIndex)")
- self.assertPageContains("data-follow-media-item=")
- self.assertPageContains("const collection=!embedded.length&&group&&followVideoItems(group).length>1?group:null")
- self.assertPageContains("const items=followVideoItems(group)")
- self.assertPageContains("function followQueueHtml(group,itemId)")
- self.assertPageContains('data-follow-queue-item="${item.id}"')
-
def test_follow_puts_the_media_buttons_at_the_top_row_left_behind_a_separator(self):
"""媒体类型在上排最左,隔一道竖线才是状态——跟资料页那条同一个次序。
@@ -3630,8 +3525,6 @@ class FollowWebSourceTests(unittest.TestCase):
一整批内容,状态是在这一批里再挑一档。摆在下排右端的话,它挨着的是排序键和
动作键,读起来像给当前这批加的又一个条件,而它换掉的是整页内容。
"""
- self.assertPageContains("const followMediaKinds=group=>")
- self.assertPageContains("function followItemMediaKinds(item)")
self.assertPageLacks('class="insightswitch followmediaswitch"')
self.assertPageLacks("params.set('media-ui','switch')")
self.assertPageLacks('class="followmediaicons"')
@@ -3639,7 +3532,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains("params.set('author',[...followAuthors].join(','))")
self.assertPageLacks("if(followMediaView==='images'&&!mediaCounts.images)followMediaView='videos'")
self.assertPageLacks("if(followMediaView==='videos'&&!mediaCounts.videos&&mediaCounts.images)followMediaView='images'")
- self.assertPageContains("const preferredKind=followMediaView==='images'?'image':'video'")
# 媒体两枚在上排最左、隔一道竖线才是状态,各有一块滑动玻璃:由 `follow-feed` 岛画,
# 次序与玻璃由 e2e `follow-feed.test.ts` 钉住。照片墙只剩骨架那一份栅格。
self.assertPageContains(".followlist.followphotowall{grid-template-columns:repeat(5,minmax(0,1fr))")
@@ -3649,7 +3541,6 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageLacks(".followlist.followphotowall{display:block;column-count:5")
def test_external_file_pages_do_not_default_to_video_and_paging_actions_share_one_row(self):
- self.assertPageContains("else if(item.media_kind==='image'||item.media_kind==='video')kinds.add(item.media_kind)")
self.assertPageLacks("else kinds.add(item.media_kind==='image'?'image':'video')")
# 「加载更多」与「抓更早的一页」同一行、往回抓时的忙态归 `follow-feed` 岛
# (e2e `follow-feed.test.ts`「载入更多」「往回抓一页」)。
@@ -3662,20 +3553,14 @@ class FollowWebSourceTests(unittest.TestCase):
self.assertPageContains('grid-template-areas:"media" "side" "queue"')
self.assertPageContains('background:var(--detail-surface)')
self.assertPageContains("const kindLabel={mix:'Mix',parts:'分卷',editions:'版本',playlist:'播放列表'}")
- self.assertPageContains('<h2>视频合集</h2>')
- self.assertPageContains('<h2>多媒体</h2>')
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'))")
- self.assertPageContains("followdetailmedia${selectedKind==='image'?' image':''}")
- self.assertPageContains('.followdetailmedia.image{background:')
# 媒体框不给视口高度的地板:里面的播放器高度由 16:9 和自己的宽度推出来,地板挂在
# vh 上时两个量在窄屏上朝相反方向走,框比画面高出一大截,上下各空一片。
- self.assertPageContains('.followdetailmedia{--follow-image-arrow-inset:16px}')
self.assertPageLacks('min-height:min(62vh,640px)')
- self.assertPageContains('.followdetailplaceholder{aspect-ratio:16/9;display:grid;place-items:center;')
def test_follow_uses_the_global_multi_select_mode(self):
self.assertPageContains("const selected=new Set(),followSelected=new Set();")
@@ -3687,7 +3572,6 @@ class FollowWebSourceTests(unittest.TestCase):
def test_ignore_actions_do_not_reuse_the_close_icon(self):
self.assertPageContains('<symbol id="i-eye-off"')
self.assertPageContains('data-follow-batch="ignored" hidden><svg viewBox="0 0 24 24"><use href="#i-eye-off"')
- self.assertPageContains('data-follow-detail-status="ignored" aria-label="忽略" title="忽略"')
self.assertPageContains("${icon('eye-off')}</button>")
def test_the_check_button_stays_visible_on_a_narrow_viewport(self):
@@ -3702,26 +3586,8 @@ class FollowWebSourceTests(unittest.TestCase):
套不进去。所以各调用方自己换成 `LightboxSlide`,在线图直接给 URL。灯箱本身归
React(`frontend/src/react/photo-lightbox/`),行为由 `photo-lightbox.test.tsx` 与 e2e 钉住。
"""
- self.assertPageContains("poster.onclick=()=>openPhotoLightbox(Math.max(0,imagePosition),followSlides)",
- "详情图片没有接上灯箱")
- self.assertPageContains("showToast, openPhotoLightbox, followJobProgress } from './dist/peach-ui.js'",
- "关注页没有用资料页那一个灯箱")
self.assertPageLacks('<img src="/photo?id=${item.id}"',
"灯箱模板仍写死本地取图口")
- self.assertPageContains(".followdetailposter.zoomable{cursor:zoom-in}",
- "可点开的图要有光标提示,否则没人知道能点")
-
- def test_a_multi_image_post_hands_the_whole_set_to_the_lightbox(self):
- """一条帖子有多张图时应当能在灯箱里左右翻完,而不是退出去再点下一张。"""
- self.assertPageContains("const followSlides=imageMedia.length")
- self.assertPageContains("src:`/follow-stream?id=${item.id}&media=${image.index}`")
-
- def test_online_images_show_image_info_without_the_local_reveal_action(self):
- """在线图保留图片信息入口,但不显示只对本地文件成立的资源管理器动作。
-
- 面板上的来源、序号与分辨率,以及定位键只对本地图出现,由 `photo-lightbox.test.tsx` 钉住;
- 这里只看关注页交进去的那一张带着来源。"""
- self.assertPageContains("source:followMediaSourceLabel(image,item)")
diff --git a/tests/test_source_assertion_ratchet.py b/tests/test_source_assertion_ratchet.py
index baaa3ff67..fee7e48e6 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": 283,
+ "test_follow_web.py": 195,
"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": 3670,
+ "test_web_ui.py": 3644,
"test_windows_update.py": 3,
}
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index da69bb21f..74778574d 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -1227,7 +1227,6 @@ class WebUiSourceTests(unittest.TestCase):
判断(红=不合口味、绿=看过、橙=回收),整理动作不占色相。
"""
self.assertPageContains(".fb button:hover{transform:none;background:var(--hover)}")
- self.assertPageContains(".fb .fdownload:hover{background:var(--hover);color:var(--ink)}")
self.assertPageContains(".fb .playlistadd:hover{color:var(--ink);background:var(--hover)}")
for leaf, body in self._leaf_rules():
if leaf.startswith(".fb"):
@@ -1561,7 +1560,7 @@ class WebUiSourceTests(unittest.TestCase):
css = stylesheet_source()
self.assertEqual(re.findall(r"border-radius:9{2,}px", css), [],
"整圆一律走 --pill-radius,别再写字面值")
- for selector in (".fbadge{", ".fvkind{"):
+ for selector in (".fbadge{",):
rule = css[css.index(selector):css.index("}", css.index(selector))]
self.assertIn("var(--badge-radius)", rule, f"{selector} 是状态标记,不是标签")
@@ -2152,7 +2151,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('showEntityLoading(kind,name);')
self.assertPageContains('appSettings.detailAutoplay=appSettings.detailAutoplay!==false;')
self.assertPageContains('mountDetailPlayer(it,vv,appSettings.detailAutoplay)')
- self.assertPageContains('mountDetailPlayer(item,followVideo,appSettings.detailAutoplay,{')
+ self.assertPageContains('mountDetailPlayer(item,video,appSettings.detailAutoplay,{')
self.assertPageContains('class="ptoggle" type="checkbox" id="detailAutoplaySetting"')
def test_local_assets_get_their_sidecar_subtitles_as_closed_text_tracks(self):
@@ -2488,10 +2487,7 @@ class WebUiSourceTests(unittest.TestCase):
def test_follow_detail_has_an_explicit_download(self):
"""下载到本地是显式动作,此前根本没有入口。用 `<a download>` 让浏览器落盘。"""
- self.assertPageContains('class="fdownload"')
- self.assertPageContains("download=1")
self.assertPageContains('<symbol id="i-download"')
- self.assertPageContains(".fb .fdownload{box-sizing:border-box;width:44px;height:42px;")
def test_detail_like_reason_is_an_icon_disclosure_without_idle_explanation(self):
self.assertPageContains('id="preferenceToggle" aria-label="喜爱理由"')
@@ -4502,29 +4498,11 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("const speedText=speed?`${(speed/1e6).toFixed(1)} Mbps`:'—';")
self.assertPageLacks("× 实时")
- def test_follow_detail_image_falls_back_to_the_card_thumbnail(self):
- """原图经代理取不到时换上缩略图,不留一块空画布。
-
- pawchive 的原文件主机挂着 ddos-guard,服务端去取一律 403;缩略图由浏览器直接读
- 公开主机,照常能看。换上之后侧栏说明这是缩略图;缩略图也取不到才报没取回来。
- """
- self.assertCode("const detailThumb=selectedMedia?.thumb_url||item.thumb_url||'';")
- self.assertCode('${detailThumb&&detailThumb!==src?` data-fallback-src="${esc(detailThumb)}"`:\'\'} referrerpolicy="no-referrer">')
- # 画框比例跟整组图走:换图、原图没加载完、退回缩略图时详情都不忽高忽低。
- self.assertCode("const framedOwners=(imageCarousel?[...imageMedia,item]:[selectedMedia,item]).filter(owner=>owner?.width>0&&owner.height>0);")
- self.assertCode("${frameRatio?' framed':''}\"${frameRatio?` style=\"--follow-frame-ratio:${frameRatio.toFixed(4)}\"`:''}>")
- online = (Path(__file__).resolve().parents[1] / 'web/css/21-online.css').read_text(encoding='utf-8')
- self.assertIn(".followdetailmedia.framed .followdetailposter{width:100%;aspect-ratio:var(--follow-frame-ratio)}", online)
- self.assertCode("if(fallback&&el.getAttribute('src')!==fallback){")
- self.assertCode("el.src=fallback;if(thumbFallback)thumbFallback.hidden=false;return}")
- self.assertPageContains("data-media-thumb-fallback hidden>原图未取回,先显示缩略图")
- # 灯箱里翻到的每一张同样退回它自己的缩略图:frontend/test/react/photo-lightbox.test.tsx。
-
def test_follow_detail_gets_the_same_player_stats_overlay(self):
"""作品详情与关注详情共用同一段统计模板,关注详情里的在线视频同样有统计入口。"""
self.assertPageContains("function playerStatsOverlayHtml()")
- self.assertPageContains("${selectedKind==='video'?playerStatsOverlayHtml():''}")
- self.assertPageContains("size:selectedMedia?.size,")
+ self.assertPageContains("video.insertAdjacentHTML('beforebegin',playerStatsOverlayHtml());")
+ self.assertPageContains("size:media?.size,")
self.assertEqual(self.page.count('playerstatsbtn" id="playerStatsBtn"'), 1,
"统计三件套只能有一份模板,两个详情页共用")
# 关注条目没有落盘文件名,容器格式从片源 MIME 反推,会话号也不该显示成空的。
@@ -5138,7 +5116,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('<div class="side followdetailside"><div class="sidecontent">')
self.assertPageContains(".sidecontent{height:auto;max-height:none}")
def test_state_pages_ask_for_facets_narrowed_to_that_state(self):
@@ -5209,8 +5186,6 @@ class WebUiSourceTests(unittest.TestCase):
"const FOLLOW_FILTERS=[['','全部'],['new','未看'],['saved','已保存'],['ignored','已忽略']];")
self.assertPageContains(
"followFilter=FOLLOW_FILTERS.some(([key])=>key&&key===status)?status:'';")
- # 状态本身照旧记:详情面板能把一条标成已看,卡片上那枚键见 `follow-feed.test.tsx`。
- self.assertPageContains('data-follow-detail-status="seen"')
def test_the_follow_page_carries_the_home_two_rows_with_works_in_place_of_studios(self):
"""关注页顶上两排对着首页那两排:作者对女优,题材对厂牌。
@@ -6649,9 +6624,6 @@ class WebUiSourceTests(unittest.TestCase):
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
self.assertIn(".followmanage .fsec:has(.board-follow-selection){padding:0;border-radius:18px;background:var(--ground);overflow:visible}"
".followmanage .fsec>.board-follow-selection{padding:4px 24px 12px}", board)
- self.assertIn(".followmanage .board-follow-list .fsource.frow{min-height:0;margin:0;padding:12px 20px 12px 16px;border:1px solid var(--color-border-button-default);"
- "border-radius:10px;background:var(--color-background-primary-default);transition:background-color .15s ease,border-color .15s ease}", board)
- self.assertIn(".followmanage .board-follow-list .fsource.frow:hover{background:var(--color-background-primary-hover)}", board)
self.assertIn(".followmanage .fsechead .iconswitch[data-board-segments]>label{width:34px;height:30px;border-radius:7px}", board)
self.assertIn(".followmanage .fsechead .iconswitch svg{width:16px;height:16px;stroke-width:2}", board)
self.assertIn("--color-border-checkbox-default:#d4d4d4;--color-border-checkbox-hover:#a3a3a3", board)
@@ -6816,8 +6788,8 @@ class WebUiSourceTests(unittest.TestCase):
self.assertCode('surfaceEpoch++;\n barsRequestSeq++;')
self.assertPageContains('key=surfacePath()+location.search')
self.assertPageLacks("api('/api/follow/tags?limit=30')")
- self.assertPageContains('renderFollowDrawer(visible.flatMap(group=>followCollectionItems(group)))')
- self.assertPageContains('renderFollowDrawer([item])')
+ self.assertPageContains('loaded:tags=>renderFollowDrawer(tags),')
+ self.assertPageContains('renderFollowDrawer(sidebarTagCounts([{tags:followCardTags(item)}]));')
self.assertPageContains("if(!sidebarHasCatalogContent(location.pathname))return;")
# 实体页 facets 必须按当前实体取数;详情页则按单个作品取数,不能继续复用首页全库。
self.assertPageContains("facetParams.set('scope_kind',context.kind)")
@@ -7349,7 +7321,6 @@ class WebUiSourceTests(unittest.TestCase):
# 第一次进这一页由壳铺整张骨架;已经在页上、只是换一档筛选或排序时只有列表铺骨架,
# 那一步归 `follow-feed` 岛(`frontend/e2e/follow-feed.test.ts`)。
self.assertPageContains("showManagementBody({manage:false,placeholder:followSkeletonHtml('正在读取关注内容')});")
- self.assertPageContains("showManagementBody({manage:false,placeholder:detailSkeletonHtml()});")
self.assertPageContains("pageSkeletonHtml('正在读取统计',{variant:'dashboard'})")
self.assertPageContains(".skeletondashhero{min-height:330px;grid-template-columns:minmax(260px,36%) minmax(0,1fr)}")
self.assertPageContains("$('#loadSentinel').innerHTML=loadingDotsHtml('继续载入中…')")
@@ -8172,16 +8143,14 @@ 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(media))}</b>',
- '<b data-middle-truncate>${esc(javDisplayName(x))}</b>'):
+ '<b data-middle-truncate>${esc(javDisplayName(x))}</b>',):
self.assertPageContains(consumer)
- # 高清版目标页、统计页、复核页、数据管理、重复文件页、回收站资源卡、垃圾卡与图片灯箱
+ # 高清版目标页、统计页、复核页、数据管理、重复文件页、回收站资源卡、垃圾卡、图片灯箱与关注详情的多媒体队列
# 归 React 子树,由 frontend 的用例覆盖。
- self.assertEqual(self.app_js.count("data-middle-truncate"), 2)
+ self.assertEqual(self.app_js.count("data-middle-truncate"), 1)
self.assertPageContains("if(element.dataset.middleTruncateWithin===undefined)return element.clientWidth;")
- self.assertEqual(self.app_js.count('class="mixitemtext"'), 3)
- # 关注合集队列卡的出处行是 flex 一行(`.fqmeta`),时间不收窄,不走尾部省略。
- self.assertEqual(self.app_js.count("data-truncate-end"), 3)
+ 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}`")
@@ -8196,7 +8165,7 @@ class WebUiSourceTests(unittest.TestCase):
reviewed_end_selectors = {
".alphatag span:first-of-type", ".av .nm",
".frow>b",
- ".feednewcard .meta .s>.feednewperformers", ".fvkind", ".idname",
+ ".feednewcard .meta .s>.feednewperformers", ".idname",
".meta .t", ".meta .who", ".mixcopy b,.mixcopy span",
# 小窗信息栏与播放器右键菜单:标题、来源和菜单标签都是语义文本,尾部省略。
".miniplayertitle", ".miniplayersub", ".playermenuitem>span",
@@ -8895,18 +8864,6 @@ class WebUiSourceTests(unittest.TestCase):
'.board-filter-frame .sorts button[aria-pressed="true"]{background:var(--picked)}'):
self.assertNotIn(stale, board)
- def test_a_selectable_follow_row_keeps_its_own_border_on_every_edge(self):
- """关注列表进选择态后,行与行之间那条线是卡片自己的上边框。
-
- 表格模式下行是 `tr`,卡片那套边框圆角落上去会和外框画出两条重叠的竖线,
- 所以那套只给非 `tr`。
- """
- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertIn(".followmanage .fsource:has([data-follow-select]):not(tr){"
- "border:1px solid var(--color-border-button-default);border-radius:10px;", board)
- # 表格外框自己收口:它离卡片脚还有一层内边距,去掉下边框就没有收尾。
- self.assertNotIn(".followmanage .fmain>.fsec:has(>.fsecfoot) .ftableframe", board)
-
def test_the_author_avatar_stays_a_circle_when_there_is_no_picture(self):
"""取不到头像时那个空位仍然是一个圆。
@@ -9620,7 +9577,7 @@ class WebUiSourceTests(unittest.TestCase):
overlay = 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\':\'\'}">')
- self.assertPageContains('<div class="stagescroll"><div class="sgrid followdetailgrid')
+ 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);"
"overflow:hidden auto;overscroll-behavior:contain}", board)
@@ -10186,7 +10143,7 @@ class WebUiSourceTests(unittest.TestCase):
筛选;「全部」是这一页真正的常态。默认值同时决定 URL 形态:全部是默认,
所以缺省即全部,`/follow` 不带 `status`。
"""
- self.assertPageContains("let followData=null,followFilter='',followRevision=0;")
+ self.assertPageContains("let followFilter='',followRevision=0;")
self.assertPageLacks("followFilter='new'", "重置分支不得把筛选推回旧默认")
# 从索引页进关注页有两个入口——在线标签那一档和在线名册那一档,两处重置
# 都得落在同一个默认上。
@@ -10195,24 +10152,6 @@ class WebUiSourceTests(unittest.TestCase):
"有重置分支还在把筛选推回旧默认")
self.assertPageContains("[['','全部'],['new','未看']")
- def test_follow_detail_puts_the_actions_above_the_tag_cloud(self):
- """详情侧栏的顺序是正文 → 操作 → 状态 → 标签。
-
- 来源站的标签动辄几十个。标签排在操作之前时,「已看/忽略/保存」被整片标签云
- 推到侧栏底下,每处理一条都要先滚过去。标签是可选的参考信息,操作是每条都要用的。
- """
- side = self.page.split('<div class="side followdetailside">', 1)[1].split(
- "</div></div></div>`;", 1)[0]
- actions = side.index('class="fb followdetailactions"')
- state = side.index('class="fstate"')
- tags = side.index('class="stags followdetailtags"')
- self.assertLess(actions, state, "操作条必须在状态行之前")
- self.assertLess(state, tags, "标签必须沉到侧栏最后")
- self.assertPageContains(".followdetailside .followdetailtags{margin:16px 0 0}")
- # 窄屏通用规则会把 .fb 撑满整行,三四个动作键于是变成四个大得离谱的方块。
- self.assertPageContains(".fb.followdetailactions{width:max-content;max-width:100%}")
- self.assertPageContains(".fb.followdetailactions button,.fb.followdetailactions .fdownload{flex:0 0 auto}")
-
def test_manage_sort_reads_as_a_select_without_a_loose_text_label(self):
"""排序框用框内前缀图标标明用途,标题行里不挂一个游离的「排序」二字。
@@ -10596,11 +10535,7 @@ class WebUiSourceTests(unittest.TestCase):
def test_photo_navigation_reuses_one_overlay_button_treatment(self):
self.assertPageContains(
".media-circle{box-sizing:border-box;width:48px;height:48px;padding:0;border:0;border-radius:50%;")
- self.assertPageContains(".media-circle.media-overlay{background:rgba(0,0,0,.6);color:#fff;backdrop-filter:blur(16px)}")
- self.assertPageContains('class="media-circle media-overlay followimagearrow prev"')
- self.assertPageContains('class="media-circle media-overlay followimagearrow next"')
self.assertPageContains('class="media-circle" id="tokDislike"')
- self.assertPageContains(".followimagearrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%)}")
def test_the_review_skeleton_is_built_from_the_real_page_containers(self):
"""骨架用最终容器的类名,分栏和列宽就都由页面自己那套规则给。
diff --git a/web/app.js b/web/app.js
index aad4960d5..54e9e7fc8 100644
--- a/web/app.js
+++ b/web/app.js
@@ -13,7 +13,7 @@ import { initMiddleTruncate } from './js/middle-truncate.js';
import { tagLabel } from './js/tags.js';
import { playUiSound, setUiSoundsEnabled, wireUiSounds } from './js/ui-sounds.js';
import { ACCENTS, DEFAULT_ACCENT, DEFAULT_HOME_GLOW, GLASS_NATIVE_PRESET, GLOW_SPOT_LABELS, GLOW_SWATCHES, GLOW_SWATCH_FAMILIES, HOME_GLOW_CHOICES, HOME_GLOW_PRESETS, HOME_GLOW_SPOTS, glowAccent, glowChipFill, glowColor, glowPalette, glowPresetName, isNativeGlass, normalizeAccent, normalizeHomeGlow, paintGlassFaces, paintHomeGlow } from './js/home-glow.js';
-import { mountIsland, unmountIsland, updateIsland, islandMounted, preloadIslands, paginationHtml, pageCount, clampPage, preferredDirection, showToast, openPhotoLightbox, followJobProgress } from './dist/peach-ui.js';
+import { mountIsland, unmountIsland, updateIsland, islandMounted, preloadIslands, paginationHtml, pageCount, clampPage, preferredDirection, showToast, followJobProgress } from './dist/peach-ui.js';
import { junkCountSkeletonHtml, junkPath, junkRoute } from './dist/peach-ui.js';
import { catalogSuggestions, catalogEmptyHtml, emptyCatalogLayout, syncSidebarSurface, sidebarTagCounts, sidebarHasCatalogContent, cleanupSkeletonHtml } from './dist/peach-ui.js';
import { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, relayoutJavImages, syncJavImages, nativeImageFit, faceSourceScale, entitySkeletonHtml } from './dist/peach-ui.js';
@@ -73,12 +73,14 @@ let loadRequestSeq=0;
let gridIsland='';
/* `followRevision` 是关注页岛的刷新代次:已经挂着时要求重读(批量标记之后、前进后退),
推一个新代次让它重取,不重挂。 */
-let followData=null,followFilter='',followRevision=0;
+let followFilter='',followRevision=0;
/* 值是天数,`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',followGroupByItemId=new Map(),followItemsById=new Map(),followDetailReturnPath='/follow';
+let followAuthors=new Set(),followProviders=new Set(),followTags=new Set(),followWorks=new Set(),followMediaView='videos',followDetailReturnPath='/follow';
+// 关注详情岛的宿主(`openFollowDetail` 建、`disposeStage` 先卸岛再拆舞台)。
+let followDetailHost=null;
/* 看的那一页按什么排。只有这三档在每条更新上都成立:观看次数、体积那几列问的是本机
文件,而这一页上的东西多数还没下载。壳只拿它核对地址栏上的 `sort`;键上的说法在岛里
(`follow-feed.ts` 的 `FOLLOW_FEED_DIR_WORDS`)。 */
@@ -1632,6 +1634,8 @@ 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}
runStageDisposers();
stage.innerHTML='';stage.hidden=true;document.body.classList.remove('detail-open');current=null;activeQueue=null;
if(!preserveInlineOrigin){
@@ -4837,7 +4841,6 @@ const followPageUrl=offset=>
+(followSort!=='new'?`&sort=${followSort}`:'')
+(followSort===FOLLOW_RANDOM_SORT?`&seed=${followSeed}`:'')
+(followDir!=='desc'?`&dir=${followDir}`:'');
-let followCredentialProviders=new Set();
/* 这一排是「现在看的哪一档」。已看那一档不摆出来:看过就归档,要再翻出来是「全部」
的事,而一枚常年指向十几条的筛选占的是这一排最值钱的横向空间。状态本身照旧记,
卡片和详情面板上都还能把一条标成已看。 */
@@ -4873,24 +4876,9 @@ function followWhen(item){
return text;
}
-const followTagType=(item,tag)=>item.tag_types&&item.tag_types[tag]||'unknown';
/* 卡片、详情、筛选条和在线标签页都只消费服务端的内容标签投影。过滤只维护一份,
原始来源标签仍完整留在 metadata。 */
const followCardTags=item=>item.tags||[];
-const followTagChip=(item,tag,kind='span')=>`<${kind} class="tg r34-${
- esc(followTagType(item,tag))}" data-follow-tag="${esc(tag)}">${esc(tagLabel(tag))}</${kind}>`;
-/* 详情标签按 rule34.xxx 帖子页 `#tag-sidebar` 的类型顺序分组,组内按名升序——
- 证据见 docs/reference-snapshots/rule34-follow-tags-and-collections.md(2026-09-01
- 两个帖子页实测,顺序一致,缺的类型直接跳过不占位)。
- 来源没记类型的排最后并保持中性色:不按词形猜类型是关注标签的既有门槛。 */
-const FOLLOW_TAG_ORDER=['copyright','character','artist','general','metadata'];
-function followDetailTags(item){
- const tags=item.detail_tags||item.tags||[];
- const rank=tag=>{const at=FOLLOW_TAG_ORDER.indexOf(followTagType(item,tag));
- return at<0?FOLLOW_TAG_ORDER.length:at};
- return [...tags].sort((a,b)=>rank(a)-rank(b)||tagLabel(a).localeCompare(tagLabel(b)));
-}
-
/* 正文不报组里有几条:条数只由封面角标报一次,数的是合并了几个媒体(`followStack`)。 */
/* 说「这一条是哪个版本」的字样排在标题前面,与主页标题里的版次字样同一个控件,扫标题
时就分得出来。WIP 说的是这一条,不是这一组:`2B Camp [4K]` 判的是 alt,只因为同组
@@ -4923,48 +4911,7 @@ function followBadges(group,shown=group.primary){
return badges.join('');
}
-function followCollectionItems(group){
- const seen=new Set();
- return [group.primary,...group.variants,...group.duplicates].filter(item=>{
- if(!item||seen.has(item.id))return false;seen.add(item.id);return true});
-}
-
-function followCollectionItemsNewest(group){
- return followCollectionItems(group).sort((a,b)=>{
- const byTime=(Date.parse(b.published_at||'')||0)-(Date.parse(a.published_at||'')||0);
- return byTime||(+b.id||0)-(+a.id||0);
- });
-}
-
-const followGroupedMediaOwner=group=>followCollectionItems(group).find(item=>
- (item.media_items||[]).some(media=>media.resource_group));
-
-// F95 的「8 条动态」可能只有一个网盘页,也可能一条实际视频都没有。Mix 是播放
-// 语义,只能由已解析、可在 Peach 内播放的视频触发,不能拿回复数或外链数冒充。
-function followVideoItems(group){
- return followCollectionItemsNewest(group).filter(item=>
- item.playable&&item.media_kind==='video');
-}
-
-/* 关注条目和资料页的作品不是同一种 DTO,但媒体切换的语义相同:一个卡片只要
- 含对应媒体就进入对应视图。external 只说明有外部文件页,不能再冒充视频;
- 没有可验证媒体类型的旧行不进入任一媒体视图。 */
-function followItemMediaKinds(item){
- const kinds=new Set();
- const embedded=item.media_items||[];
- if(embedded.length)embedded.forEach(media=>{
- if(media.media_kind==='image'||media.media_kind==='video')kinds.add(media.media_kind)});
- else if(item.media_kind==='image'||item.media_kind==='video')kinds.add(item.media_kind);
- return kinds;
-}
-const followMediaKinds=group=>{
- const kinds=new Set();
- followCollectionItems(group).forEach(item=>
- followItemMediaKinds(item).forEach(kind=>kinds.add(kind)));
- return kinds;
-};
-
-function followMediaIssue(item,credentials=followCredentialProviders){
+function followMediaIssue(item,credentials){
if(item.media_error)return `媒体未取得:${item.media_error}`;
if(item.media_needs_credential&&!credentials.has(item.provider))return item.playable
?'部分媒体未取得:需要 F95 登录会话解析'
@@ -4972,348 +4919,6 @@ function followMediaIssue(item,credentials=followCredentialProviders){
return '';
}
-function followResourceLabel(url){
- try{
- const host=new URL(url).hostname.replace(/^www\./,'');
- return ({'gofile.io':'Gofile','pixeldrain.com':'Pixeldrain','mega.nz':'MEGA',
- 'mega.io':'MEGA','mediafire.com':'MediaFire','drive.google.com':'Google Drive'})[host]||host;
- }catch{return '外部文件页'}
-}
-
-function followMediaSourceLabel(media,item){
- const provider=media?.resource_provider;
- return ({gofile:'Gofile',pixeldrain:'Pixeldrain',mega:'MEGA',mediafire:'MediaFire',
- google_drive:'Google Drive'})[provider]||item.provider_label||item.provider||'在线图片';
-}
-
-function followResourceLinks(item){
- const links=item.resource_urls||[];
- if(!links.length)return '';
- return `<div class="followresources">${links.map(url=>
- `<a class="externallink" href="${esc(url)}" target="_blank" rel="noreferrer noopener">${esc(followResourceLabel(url))}${icon('external-link','externalmark')}</a>`
- ).join('')}</div>`;
-}
-
-/* 集合弹层与列表共用同一套动态语义:线程标题不能冒充每条回复的正文,
- 行首则说明它与主条目的关系。 */
-function followCollectionCopy(group,item,mark=''){
- let label=mark;
- // 发布时间已经由 followWhen 单独显示,不能再伪装成版本/类型标签。
- if(!label&&group.is_release)label=item.variant_label||item.variant_kind||'';
- if(!label)label=item.variant_kind==='wip'?'WIP':(item.variant_label||item.variant_kind||'视频');
- const body=group.is_release
- ?(item.summary||(item.has_media?'(仅附件)':'(无正文)')):item.title;
- return {label,title:group.is_release&&item.author?`${item.author}:${body}`:body};
-}
-
-/* 队列里没有画面的那一格放中性图形,不放站点图标:格子里的图一律按画面铺满,
- 48px 的 favicon 会被拉成整格,看上去就像这条视频的缩略图。 */
-function followQueueNoThumb(kind){
- return `<span class="fnothumb">${icon(kind==='image'?'image-off':'play')}</span>`;
-}
-
-function followQueueHtml(group,itemId){
- const groupedOwner=followGroupedMediaOwner(group);
- if(groupedOwner)return followEmbeddedQueueHtml(groupedOwner,null);
- const items=followVideoItems(group);
- return `<aside class="mixqueue followqueue" data-queue-kind="collection"><div class="mixqueuehead"><div><h2>视频合集</h2><span>${esc(group.primary.title||'未命名合集')} · ${items.length} 个视频</span></div><div class="mixqueueactions">
- <button data-follow-queue-close title="关闭" aria-label="关闭">${icon('x')}</button></div></div><div class="mixlist">${items.map(item=>{
- const duplicate=group.duplicates.includes(item);
- const copy=followCollectionCopy(group,item,duplicate?item.provider_label:'');
- // 另一站的同一条由站点图标报出处,图标的 alt 就是站名;没登记图标的站仍写站名。
- const mark=duplicate&&sourceIcon(item.provider,item.provider_label)
- ||`<i class="fvkind ${esc(item.variant_kind||'')}">${esc(copy.label)}</i>`;
- const thumb=item.thumb_url
- ?`<img src="${esc(item.thumb_url)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">`
- :followQueueNoThumb('video');
- return `<div class="mixrow"><button class="mixitem ${item.id===itemId?'current':''}" data-follow-queue-item="${item.id}" aria-current="${item.id===itemId?'true':'false'}">
- <span class="mixitempic">${thumb}${realDuration(item.duration)?`<i class="dur mono">${fmtDur(item.duration)}</i>`:''}</span>
- <span class="mixitemtext"><b data-truncate-end>${esc(copy.title)}</b><span class="fqmeta">${mark}<time datetime="${esc(item.published_at||'')}">${esc(followWhen(item))}</time></span></span></button></div>`;
- }).join('')}</div></aside>`;
-}
-
-function followEmbeddedQueueHtml(item,mediaIndex){
- const items=item.media_items||[];
- const groups=[];
- items.forEach(media=>{
- const key=media.resource_group||'ungrouped';
- let group=groups.find(row=>row.key===key);
- if(!group){group={key,label:media.resource_group_label||'',items:[]};groups.push(group)}
- group.items.push(media);
- });
- const rows=groups.map(group=>`${group.label?`<h3 class="mixgrouplabel">${esc(group.label)} <span>${group.items.length}</span></h3>`:''}${group.items.map(media=>{
- const thumb=media.thumb_url
- ?`<img src="${esc(media.thumb_url)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">`
- :followQueueNoThumb(media.media_kind);
- return `<div class="mixrow"><button class="mixitem ${media.index===mediaIndex?'current':''}" data-follow-media-owner="${item.id}" data-follow-media-item="${media.index}" data-media-kind="${media.media_kind}" aria-current="${media.index===mediaIndex?'true':'false'}">
- <span class="mixitempic">${thumb}</span><span class="mixitemtext"><b data-middle-truncate>${esc(javDisplayName(media))}</b><span data-truncate-end>${media.media_kind==='image'?'图片':'视频'}</span></span></button></div>`;
- }).join('')}`).join('');
- return `<aside class="mixqueue followqueue" data-queue-kind="media"><div class="mixqueuehead"><div><h2>多媒体</h2><span>${esc(item.title||'未命名内容')} · ${items.length} 个媒体</span></div><div class="mixqueueactions">
- <button data-follow-queue-close title="关闭" aria-label="关闭">${icon('x')}</button></div></div><div class="mixlist">${rows}</div></aside>`;
-}
-
-/* 重建条目索引。`merge` 时只往里加,不清空已有的。
-
- 单条查询(followItemById)不能走整表重建:那会让点一个不在索引里的条目把索引
- 替换成只剩那一条,再点别的又没有、又替换。列表能翻页之后这条路径被踩得很频繁,
- 表现就是「多点几次详情就打不开了」。 */
-function indexFollowItems(data,{merge=false}={}){
- const groups=data?.groups||[];
- if(!merge){followItemsById=new Map();followGroupByItemId=new Map()}
- groups.forEach(group=>followCollectionItems(group).forEach(item=>{
- followItemsById.set(item.id,item);followGroupByItemId.set(item.id,group)}));
-}
-
-async function followItemById(id){
- if(followItemsById.has(id))return followItemsById.get(id);
- const data=await api(`/api/follow?item=${encodeURIComponent(id)}`);
- if(!followData)followData=data;
- indexFollowItems(data,{merge:true});
- return followItemsById.get(id);
-}
-
-async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=false){
- releaseHoverPreviews();
- const entering=!location.pathname.startsWith('/follow/item/');
- if(push&&entering&&!preserveReturn)followDetailReturnPath=location.pathname+location.search;
- if(!push&&!preserveReturn)followDetailReturnPath='/follow';
- const surface=surfaceToken(surfacePath());
- const item=await followItemById(+id);if(!item||!surfaceCurrent(surface))return;
- const group=followGroupByItemId.get(item.id);
- const embedded=item.media_items||[];
- const preferredKind=followMediaView==='images'?'image':'video';
- const preferredMedia=embedded.find(media=>media.media_kind===preferredKind)||embedded[0];
- const selectedMedia=embedded.length
- ?embedded.find(media=>media.index===(mediaIndex??preferredMedia.index))||preferredMedia
- :null;
- const imageMedia=embedded.filter(media=>media.media_kind==='image');
- const imagePosition=imageMedia.findIndex(media=>media.index===selectedMedia?.index);
- const imageCarousel=imageMedia.length>1&&imagePosition>=0;
- const embeddedQueue=embedded.length>1&&!imageCarousel;
- const collection=!embedded.length&&group&&followVideoItems(group).length>1?group:null;
- // 换详情不进小窗;小窗里正放着的那条也让位,两个播放器不同时出声。
- closeMiniplayer();
- if(!push)queueDetailResumeFromUrl('follow',item.id);
- disposeStage(false,false,{miniplayer:false});
- if(push)route(`/follow/item/${item.id}`);
- renderFollowDrawer([item]);
- const source=(followData?.sources||[]).find(row=>row.id===item.source_id);
- stageMiniplayerMeta={kind:'follow',item,title:item.title||'',sub:item.author||item.source_label||''};
- const authorSources=(followData?.sources||[]).filter(row=>
- source?.author_key&&row.author_key===source.author_key);
- if(!authorSources.length&&source)authorSources.push(source);
- const src=item.playable?`/follow-stream?id=${item.id}${selectedMedia?`&media=${selectedMedia.index}`:''}`:'';
- const selectedKind=selectedMedia?.media_kind||item.media_kind;
- // 原图经代理取,缩略图由浏览器直接读公开主机:归档站的原文件主机会拦下服务端
- // (pawchive 的 file. 子域挂着 ddos-guard,一律 403),缩略图主机照常给。
- const detailThumb=selectedMedia?.thumb_url||item.thumb_url||'';
- // 画框比例跟整组图走、不跟当前这张:换图时详情不忽高忽低,图没加载完也先占住位置。
- // 有尺寸的图里取最高的那张(宽高比最小);一张都没有时轮播用方框,单图由图片自己撑开。
- const framedOwners=(imageCarousel?[...imageMedia,item]:[selectedMedia,item]).filter(owner=>owner?.width>0&&owner.height>0);
- const frameRatio=selectedKind!=='image'?0:framedOwners.length?Math.min(...framedOwners.map(owner=>owner.width/owner.height)):imageCarousel?1:0;
- const media=item.playable&&selectedKind==='video'
- ?`<video class="video-js vjs-big-play-centered" controls playsinline preload="metadata"${item.thumb_url?` poster="${esc(item.thumb_url)}"`:''}></video>`
- :item.playable&&selectedKind==='image'
- ?`<img class="followdetailposter" src="${src}" alt="${esc(item.title)}"${detailThumb&&detailThumb!==src?` data-fallback-src="${esc(detailThumb)}"`:''} referrerpolicy="no-referrer">`
- :item.thumb_url
- ?`<img class="followdetailposter" src="${esc(item.thumb_url)}" alt="${esc(item.title)}" referrerpolicy="no-referrer">`
- :`<div class="followdetailplaceholder">${sourceIcon(item.resource_provider||item.provider)}<span>没有可用预览</span></div>`;
- const imageControls=imageCarousel?`<button class="media-circle media-overlay followimagearrow prev" data-follow-image-step="-1" aria-label="上一张图片" title="上一张">${icon('chevron-left')}</button>
- <button class="media-circle media-overlay followimagearrow next" data-follow-image-step="1" aria-label="下一张图片" title="下一张">${icon('chevron-right')}</button>
- <div class="followimagedots" role="group" aria-label="${imageMedia.length} 张图片">${imageMedia.map((image,index)=>`<button data-follow-image-item="${image.index}" aria-current="${index===imagePosition}" aria-label="第 ${index+1} 张,共 ${imageMedia.length} 张" title="第 ${index+1} 张"></button>`).join('')}</div>`:'';
- const single={primary:item,variants:[],duplicates:[],has_wip:item.variant_kind==='wip'};
- const badges=followBadges(single),marks=followTitleMarks(single);
- // 卡片只消费 general 内容投影;详情保留来源记录的全部类型,并按类型着色。
- const tags=followDetailTags(item).map(tag=>followTagChip(item,tag,'button')).join('');
- const {author,avatar,credited}=followIdentity(item,authorSources);
- const postedBy=credited?'':item.author&&foldName(item.author)!==foldName(author)?item.author:'';
- const mediaIssue=followMediaIssue(item);
- // 被隐藏的图退到这条恢复带上:缩略图加一枚撤销键,点了就回到轮播。
- // 不占媒体队列,也不进角标数——它们已经是「不在看」的那部分。
- const hiddenStrip=(item.hidden_media||[]).length?`<div class="followhiddenmedia">
- <span class="followhiddenlabel">已隐藏 ${item.hidden_media.length} 张</span>
- <div class="followhiddenthumbs">${item.hidden_media.map(media=>`<button data-follow-media-restore="${media.index}" title="恢复显示 ${esc(media.name||'')}" aria-label="恢复显示 ${esc(media.name||'')}">${media.thumb_url?`<img src="${esc(media.thumb_url)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">`:icon('image-off')}<i>${icon('rotate-ccw')}</i></button>`).join('')}</div></div>`:'';
- placeItemDetail(detailOriginAnchor,detailOriginAbove);
- $('#stage').hidden=false;document.body.classList.add('detail-open');
- paintStage(`<div class="stagescroll"><div class="sgrid followdetailgrid${collection||embeddedQueue?' mixgrid':''}">
- <div class="vwrap followdetailmedia${selectedKind==='image'?' image':''}${frameRatio?' framed':''}"${frameRatio?` style="--follow-frame-ratio:${frameRatio.toFixed(4)}"`:''}>${selectedKind==='video'?'<canvas class="ambientcanvas" width="32" height="18"></canvas>':''}<button class="closestage" id="closeStage" title="关闭" aria-label="关闭">${icon('x')}</button>${selectedKind==='video'?playerStatsOverlayHtml():''}${media}${imageControls}</div>
- ${embeddedQueue?followEmbeddedQueueHtml(item,selectedMedia.index):(collection?followQueueHtml(collection,item.id):'')}
- <div class="side followdetailside"><div class="sidecontent">
- <div class="followdetailtitle"><div class="stitle" data-reveal-line>${marks}${esc(item.title)}</div>${item.url?`<a class="followorigin externallink" href="${esc(item.url)}" target="_blank" rel="noreferrer noopener" title="打开来源页面" aria-label="打开来源页面">${icon('external-link','externalmark')}</a>`:''}</div>
- <div class="followdetailidentity"><span class="mav fsourceavatar">${avatar}</span>
- <div><b>${esc(author)}</b>${postedBy?`<span>发布者 ${esc(postedBy)}</span>`:''}${credited?`<span>署名含 ${esc(credited)}</span>`:''}</div></div>
- <div class="smeta mono" data-reveal-line><span>${followWhen(item)}</span>${realDuration(item.duration)?`<span>${fmtDur(item.duration)}</span>`:''}${badges?`<span class="fbadges">${badges}</span>`:''}</div>
- ${item.summary?`<p class="followdetailsummary">${esc(item.summary)}</p>`:''}
- ${mediaIssue?`<p class="fnote followmediaissue">${esc(mediaIssue)}</p>`:''}
- <p class="fnote followmediaissue" data-media-load-issue hidden>媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。</p>
- <p class="fnote followmediaissue" data-media-thumb-fallback hidden>原图未取回,先显示缩略图:上游拦下了这一次请求。</p>
- ${followResourceLinks(item)}
- <div class="fb followdetailactions">
- <button class="later" data-follow-detail-save aria-label="${item.status==='saved'?'已保存':'保存到账本'}" title="${item.status==='saved'?'已保存':'保存到账本'}"${item.status==='saved'?' disabled':''}>${item.status==='saved'?icon('check'):icon('bookmark-plus')}</button>
- <button class="seen" data-follow-detail-status="seen" aria-label="标记已看" title="标记已看" aria-pressed="${item.status==='seen'}">${icon('eye')}</button>
- <button class="dislike" data-follow-detail-status="ignored" aria-label="忽略" title="忽略" aria-pressed="${item.status==='ignored'}">${icon('eye-off')}</button>
- ${item.status==='seen'||item.status==='ignored'?`<button data-follow-detail-status="new" aria-label="恢复未看" title="恢复未看">${icon('rotate-ccw')}</button>`:''}
- ${selectedKind==='image'&&selectedMedia?`<button class="dislike" data-follow-media-hide="${selectedMedia.index}" aria-label="隐藏这张图" title="隐藏这张图">${icon('image-off')}</button>`:''}
- ${src?`<a class="fdownload" href="${esc(src)}${src.includes('?')?'&':'?'}download=1" download
- aria-label="下载到本地" title="下载到本地">${icon('download')}</a>`:''}</div>
- ${hiddenStrip}
- <span class="fstate" aria-live="polite"></span>
- ${tags?`<div class="stags followdetailtags">${tags}</div>`:''}
- </div></div></div></div>`);
- $('#stage').classList.toggle('ambient-on',selectedKind==='video'&&appSettings.ambientMode);
- $('#stage').classList.toggle('theater-mode',selectedKind==='video'&&appSettings.theaterMode);
- /* 关掉详情只是回到列表,不该重新取一遍。重取要等一个网络往返(慢),而且只会
- 取回第一页——「加载更多」出来的条目会连同索引一起消失,那些卡片的详情随后
- 就打不开了。岛还挂着就只把地址栏上的那一份推回去(没变就是同一个键,不重取);
- 深链直接进的详情没挂过岛,这时才挂。 */
- const closeDetail=async()=>{
- await stageExit();
- disposeStage(false,false,{miniplayer:false});
- route(followDetailReturnPath||'/follow');
- if(location.pathname!=='/follow'){await restoreRoute();return}
- if(!followFeedLive()){await openFollow(false);return}
- readFollowView();pushFollowFeed({view:followView()});
- };
- $('#closeStage').onclick=closeDetail;
- $('#stage').querySelectorAll('[data-follow-queue-close]').forEach(button=>button.onclick=closeDetail);
- $('#stage').querySelectorAll('[data-follow-queue-item]').forEach(button=>button.onclick=()=>
- openFollowDetail(+button.dataset.followQueueItem,true,null,true));
- $('#stage').querySelectorAll('[data-follow-media-item]').forEach(button=>button.onclick=()=>
- openFollowDetail(+(button.dataset.followMediaOwner||item.id),false,
- +button.dataset.followMediaItem,true));
- const switchImage=index=>openFollowDetail(item.id,false,+index,true);
- $('#stage').querySelectorAll('[data-follow-image-item]').forEach(button=>button.onclick=()=>
- switchImage(button.dataset.followImageItem));
- $('#stage').querySelectorAll('[data-follow-image-step]').forEach(button=>button.onclick=()=>{
- const next=(imagePosition+(+button.dataset.followImageStep)+imageMedia.length)%imageMedia.length;
- switchImage(imageMedia[next].index);
- });
- /* 详情里点图开大图,跟女优页同一个灯箱。多图时把整组交进去,左右翻页就能看完
- 一条帖子的所有图,不用退出去再点下一张。取不到正片就退而用缩略图——看小图
- 总比点了没反应强。 */
- const followSlides=imageMedia.length
- ?imageMedia.map((image,index)=>({
- src:`/follow-stream?id=${item.id}&media=${image.index}`,
- thumb:image.thumb_url||item.thumb_url||`/follow-stream?id=${item.id}&media=${image.index}`,
- name:image.name||item.title,source:followMediaSourceLabel(image,item),size:image.size,
- position:index+1,total:imageMedia.length}))
- :selectedKind==='image'&&src
- ?[{src,thumb:item.thumb_url||src,name:item.title,
- source:followMediaSourceLabel(selectedMedia,item),size:selectedMedia?.size,position:1,total:1}]
- :item.thumb_url?[{src:item.thumb_url,thumb:item.thumb_url,name:item.title,
- source:item.provider_label||item.provider||'在线图片',position:1,total:1}]:[];
- const poster=$('#stage').querySelector('.followdetailposter');
- if(poster&&followSlides.length){
- poster.classList.add('zoomable');
- poster.onclick=()=>openPhotoLightbox(Math.max(0,imagePosition),followSlides);
- }
- const followVideo=$('#stage').querySelector('.followdetailmedia>video');
- if(followVideo){
- /* 清晰度与字节数的解析跟默认片源并行。它需要回源抓详情、再 HEAD 一次正片,不能挡住
- 播放器挂载;否则来源慢一点,详情里就会先留下一个没有 src 的空视频框。 */
- const mediaPromise=api(`/follow-qualities?id=${encodeURIComponent(item.id)}`).catch(()=>null);
- const followPlayer=await mountDetailPlayer(item,followVideo,appSettings.detailAutoplay,{
- source:{src,type:selectedMedia?.media_type||item.media_type||'video/mp4'},
- checkSourceStatus:false,
- size:selectedMedia?.size,
- poster:item.thumb_url,
- mediaPromise
- });
- const stopFollowAmbient=mountPlayerAmbient(followVideo);
- followPlayer?.one?.('dispose',stopFollowAmbient);
- followVideo.addEventListener('emptied',stopFollowAmbient,{once:true});
- wireFollowTelemetry(item,followVideo);
- }
- wireDrag($('#stage').querySelector('.mixlist'));
- $('#stage').querySelectorAll('.followdetailtags [data-follow-tag]').forEach(button=>button.onclick=async()=>{
- const tag=button.dataset.followTag;
- if(followTags.has(tag))followTags.delete(tag);else followTags.add(tag);
- // 回到的是带上这枚标签的那一份列表:地址栏是筛选的唯一真相源,只改全局会被推回去。
- followDetailReturnPath=followViewPath();
- await closeDetail();
- });
- const write=async(button,path,body,done,{message='已更新',undo=null}={})=>{
- const state=$('#stage').querySelector('.fstate');setActionBusy(button);
- try{await api(path,{method:'POST',body:JSON.stringify(body)});done();state.textContent='';
- actionReceipt(message,{undo})}
- catch(error){state.textContent=error.message||'操作失败';actionFailure('更新关注状态',error)}
- finally{setActionBusy(button,false)}
- };
- $('#stage').querySelector('[data-follow-detail-save]')?.addEventListener('click',event=>{
- const button=event.currentTarget;
- write(button,'/api/follow/save',{item:item.id},()=>{
- item.status='saved';button.innerHTML=icon('check');button.title='已保存';button.setAttribute('aria-label','已保存')},
- {message:'已保存到账本'});
- });
- $('#stage').querySelectorAll('[data-follow-detail-status]').forEach(button=>button.onclick=()=>{
- const before=item.status,to=button.dataset.followDetailStatus;
- write(button,'/api/follow/status',{item:item.id,to},()=>{
- item.status=to;
- $('#stage').querySelectorAll('[data-follow-detail-status]').forEach(control=>
- control.setAttribute('aria-pressed',String(control.dataset.followDetailStatus===item.status)))},
- {message:to==='seen'?'已标记看过':'已更新关注状态',undo:before!=='saved'?async()=>{
- await api('/api/follow/status',{method:'POST',body:JSON.stringify({item:item.id,to:before})});
- item.status=before;
- $('#stage').querySelectorAll('[data-follow-detail-status]').forEach(control=>
- control.setAttribute('aria-pressed',String(control.dataset.followDetailStatus===before)));
- }:null});
- });
- /* 隐藏与恢复都换掉整份媒体清单,重开详情是最短的同步路径:条目从索引里摘掉,
- 下一次读取走单条查询,服务端投影自然给出新的可见集合与缩略图。 */
- const reopenAfterMediaChange=async mediaIndex=>{
- followItemsById.delete(item.id);
- await openFollowDetail(item.id,false,mediaIndex,true);
- };
- $('#stage').querySelectorAll('[data-follow-media-hide]').forEach(button=>button.onclick=()=>{
- const index=+button.dataset.followMediaHide;
- const rest=(item.media_items||[]).filter(media=>media.index!==index);
- const next=rest.find(media=>media.media_kind==='image');
- write(button,'/api/follow/media/hide',{item:item.id,media:index,hidden:true},()=>{
- reopenAfterMediaChange(next?next.index:null)},{message:'已隐藏这张图'});
- });
- $('#stage').querySelectorAll('[data-follow-media-restore]').forEach(button=>button.onclick=()=>{
- const index=+button.dataset.followMediaRestore;
- write(button,'/api/follow/media/hide',{item:item.id,media:index,hidden:false},()=>{
- reopenAfterMediaChange(index)},{message:'已恢复显示'});
- });
- // 上游没给出媒体时,代理只会回一个不含缘由的失败。有缩略图就换上缩略图并在侧栏
- // 说明这是缩略图;连缩略图也取不到,才说「这次没取到、多半是限流」——别让人对着
- // 一块空画布猜。
- const loadIssue=$('#stage').querySelector('[data-media-load-issue]');
- const thumbFallback=$('#stage').querySelector('[data-media-thumb-fallback]');
- $('#stage').querySelectorAll('.followdetailmedia img,.followdetailmedia video').forEach(el=>
- el.addEventListener('error',()=>{
- const fallback=el.dataset.fallbackSrc;
- if(fallback&&el.getAttribute('src')!==fallback){
- el.src=fallback;if(thumbFallback)thumbFallback.hidden=false;return}
- if(thumbFallback)thumbFallback.hidden=true;
- if(loadIssue)loadIssue.hidden=false}));
- alignFollowImageControls();
- // 滚到舞台本身,不是页面头部——就近展开的意义就在于视线不被拽走。
- // 复用首页那套 sticky 偏移,标题不会被吸顶的筛选条盖住。
- scrollItemDetailIntoView();
-}
-
-/* object-fit:contain 后图片左右黑边会随图片比例和窗口改变。箭头应位于黑边的视觉中心,
- 不能永远贴容器边缘;黑边太窄时才退回固定的安全内边距。 */
-function alignFollowImageControls(){
- const frame=$('#stage:not([hidden]) .followdetailmedia');
- const image=frame?.querySelector('.followdetailposter');
- const arrow=frame?.querySelector('.followimagearrow');
- if(!frame||!image||!arrow)return;
- const align=()=>{
- if(!image.naturalWidth||!image.naturalHeight)return;
- const box=frame.getBoundingClientRect(),ratio=image.naturalWidth/image.naturalHeight;
- const renderedWidth=Math.min(box.width,box.height*ratio);
- const gutter=Math.max(0,(box.width-renderedWidth)/2);
- const fallback=matchMedia('(max-width:640px)').matches?10:16;
- const inset=gutter>=arrow.offsetWidth+fallback*2?(gutter-arrow.offsetWidth)/2:fallback;
- frame.style.setProperty('--follow-image-arrow-inset',`${Math.round(inset)}px`);
- };
- if(image.complete)requestAnimationFrame(align);
- else image.addEventListener('load',align,{once:true});
-}
-
/* 检查完必须说清三件事:新增了什么、哪些确实没有更新、哪些失败了以及为什么。
反馈走两条通道(Geist toast 处方,取证见 docs/reference-snapshots/vercel-geist-toast.md):
「检查了 N 个来源」是用户主动动作的非阻塞回执 → toast,自动消失;
@@ -5400,8 +5005,8 @@ function readFollowView(){
}
/* 看的那一页整个归 React 岛 `follow-feed`(ADR-0031):取数、两排、玻璃、列表、写操作、检查
更新与往回抓都在 /dist/peach-react.js 里。壳只管三样:地址栏(筛选的唯一真相源)、这一次
- 进入的取样种子、选择与照片墙这几样全站偏好。详情页读的 `followData` 由岛每取到一版列表就经
- `loaded` 交回。
+ 进入的取样种子、选择与照片墙这几样全站偏好。侧栏标签抽屉仍在壳里,岛每取到一版列表就经
+ `loaded` 交回可见条目的标签计数。
岛改筛选只调 `route(view)`:这里写进地址栏,再经 `updateIsland` 推回新的 `view`。已经挂着时
换一档(前进后退、侧栏标签、批量标记之后)也走推送,只有列表铺骨架;重挂会把页头、两排和
@@ -5459,11 +5064,7 @@ const followFeedHelpers={
const followFeedActions={
route:view=>routeFollowFeed(view),
shuffle:()=>shuffleFollowFeed(),
- loaded:(data,visible,credentials)=>{
- followData=data;followCredentialProviders=new Set(credentials);
- indexFollowItems(data);
- renderFollowDrawer(visible.flatMap(group=>followCollectionItems(group)));
- },
+ loaded:tags=>renderFollowDrawer(tags),
openDetail:id=>openFollowDetail(id),
openManage:()=>openFollowManage(),
toggleSelection:(id,range)=>toggleFollowSelection(id,range),
@@ -5479,6 +5080,114 @@ const followFeedProps=()=>({view:followView(),seed:followDiscoverySeed,revision:
selectMode,selected:new Set(followSelected),photoSize:photoSize(),photoLayout:photoLayout(),
imagesOnly:!!appSettings.followImagesOnly,helpers:followFeedHelpers,actions:followFeedActions});
+/* 关注详情整块归 React 岛 `follow-detail`(ADR-0031):条目取数、媒体区、队列、侧栏与写操作都在
+ /dist/peach-react.js 里。壳留舞台本身——宿主 `.stagescroll`、进出场、小窗与 Video.js,JAV 详情
+ 也在用这一套。换到组里另一条也走这里:舞台上的播放器要先拆,地址要换。 */
+const followDetailActions={
+ close:()=>closeFollowDetail(),
+ openItem:(id,mediaIndex=null)=>openFollowDetail(id,true,mediaIndex,true),
+ openTag:tag=>{
+ if(followTags.has(tag))followTags.delete(tag);else followTags.add(tag);
+ // 回到的是带上这枚标签的那一份列表:地址栏是筛选的唯一真相源,只改全局会被推回去。
+ followDetailReturnPath=followViewPath();
+ closeFollowDetail();
+ },
+ /* 小窗元数据、侧栏标签抽屉(这一条自己的标签)与氛围光、剧场模式跟着画出来的这份媒体走。 */
+ present:(item,kind)=>{
+ stageMiniplayerMeta={kind:'follow',item,title:item.title||'',sub:item.author||item.source_label||''};
+ renderFollowDrawer(sidebarTagCounts([{tags:followCardTags(item)}]));
+ $('#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),
+ toast:(message,{undo}={})=>actionReceipt(message,{undo}),
+ failure:(action,error)=>actionFailure(action,error),
+};
+
+async function openFollowDetail(id,push=true,mediaIndex=null,preserveReturn=false){
+ releaseHoverPreviews();
+ id=+id;
+ const entering=!location.pathname.startsWith('/follow/item/');
+ if(push&&entering&&!preserveReturn)followDetailReturnPath=location.pathname+location.search;
+ if(!push&&!preserveReturn)followDetailReturnPath='/follow';
+ // 换详情不进小窗;小窗里正放着的那条也让位,两个播放器不同时出声。
+ closeMiniplayer();
+ if(!push)queueDetailResumeFromUrl('follow',id);
+ disposeStage(false,false,{miniplayer:false});
+ if(push)route(`/follow/item/${id}`);
+ const surface=surfaceToken(surfacePath());
+ 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 本身;内容到了再照它的规矩交给第一个控件(关闭键)。 */
+ reveal:(_el,write)=>{
+ const stage=$('#stage');
+ revealSkeleton(stage,()=>{
+ stage.replaceChildren(host);write();
+ if(document.activeElement===stage)stage.querySelector('#closeStage')?.focus();
+ });
+ revealTexts(stage,':scope>:not(.skelfade) [data-reveal-line]');
+ }});
+ // 滚到舞台本身,不是页面头部——就近展开的意义就在于视线不被拽走。
+ if(followDetailHost===host&&host.isConnected)scrollItemDetailIntoView();
+}
+
+/* 关掉详情只是回到列表,不该重新取一遍。重取要等一个网络往返(慢),而且只会取回第一页——
+ 「加载更多」出来的条目会一起消失。列表岛还挂着就只把地址栏上的那一份推回去(没变就是同一个
+ 键,不重取);深链直接进的详情没挂过列表,这时才挂。 */
+async function closeFollowDetail(){
+ await stageExit();
+ disposeStage(false,false,{miniplayer:false});
+ route(followDetailReturnPath||'/follow');
+ if(location.pathname!=='/follow'){await restoreRoute();return}
+ if(!followFeedLive()){await openFollow(false);return}
+ readFollowView();pushFollowFeed({view:followView()});
+}
+
+/* 岛画好的 `<video>` 交到这里挂 Video.js:氛围光画布与统计角标照 JAV 详情的位置插进媒体框,
+ 片源是 `/follow-stream`,清晰度与字节数(`/follow-qualities`)跟默认片源并行解析——它要回源
+ 抓详情、再 HEAD 一次正片,不能挡住播放器挂载。返回的清理在岛卸下这块媒体区时调:换一份媒体
+ 只拆这一个播放器;整块舞台拆掉时 `disposeStage` 已经先处理过(进小窗或销毁),这里只补漏。 */
+function mountFollowPlayer(video,item,media){
+ 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;
+ const release=()=>{
+ // 小窗接走的播放器归小窗。
+ if(!player||miniplayerState.player===player)return;
+ if(detailPlayer===player){
+ detailPlayer=null;
+ if(detailStatsTimer){clearInterval(detailStatsTimer);detailStatsTimer=null}
+ if(detailNetTimer){clearInterval(detailNetTimer);detailNetTimer=null}
+ if(detailNetHideTimer){clearTimeout(detailNetHideTimer);detailNetHideTimer=null}
+ }
+ 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=>{
+ player=mounted;
+ // 挂载还没回来岛就换了媒体:这一个一出来就拆掉。
+ if(released){release();return}
+ const stopAmbient=mountPlayerAmbient(video);
+ player?.one?.('dispose',stopAmbient);
+ video.addEventListener('emptied',stopAmbient,{once:true});
+ wireFollowTelemetry(item,video);
+ });
+ return ()=>{released=true;release()};
+}
+
async function openFollow(push=true,renderForDetail=false){
releaseHoverPreviews();disposeStage(false);enterManagementSurface();
/* 从窄栏点进来(push)是「重新进入」,回到干净的 /follow、换一粒取样种子;其余情况一律照
@@ -5497,23 +5206,11 @@ async function openFollow(push=true,renderForDetail=false){
return;
}
if(renderForDetail){
- /* 深链直接进详情:详情要的只是条目索引、来源与凭据,取一页就够;岛等回到列表时再挂。 */
- const surface=claimSurface(surfacePath());
- showManagementBody({manage:false,placeholder:detailSkeletonHtml()});
- const [data,credentials]=await Promise.all([
- surfaceApi(surface,followPageUrl(0)),
- surfaceApi(surface,'/api/follow/credentials').catch(()=>({providers:[]})),
- ]);
- if(!surfaceCurrent(surface)||!data)return;
- // 详情盖在这块上面;骨架留着就一直报「正在读取」,列表回来时由岛自己铺。
+ /* 深链直接进详情:详情岛自己取这一条,列表区只让出位置,岛等回到列表时再挂。侧栏抽屉由
+ 详情画出来时按这一条的标签铺。 */
+ claimSurface(surfacePath());
+ showManagementBody({manage:false});
$('#stats').replaceChildren();
- followData=data;
- followCredentialProviders=new Set((credentials?.providers||[])
- .filter(provider=>provider.present).map(provider=>provider.provider));
- indexFollowItems(data);
- const wanted=followMediaView==='images'?'image':'video';
- renderFollowDrawer((data.groups||[]).filter(group=>followMediaKinds(group).has(wanted))
- .flatMap(group=>followCollectionItems(group)));
return;
}
const surface=claimSurface('/follow');
@@ -5555,15 +5252,15 @@ function followAuthorAvatar(group,name=followAuthorName(group)){
/* 卡片与详情的署名。booru 帖子由服务端认出真正的发布者时(`item.credit`),名字和头像
都换成发布者:也关注了这位就用那位的来源,否则只出首字母,不借被关注者的头像;
被关注者退成一行「署名含」,说明这条为什么出现在这里。认不出的照常署被关注者。 */
-/* `context` 是关注页岛那一版列表的来源与别名;详情不传,读 `followData`。 */
-function followIdentity(item,authorSources,context=null){
- const aliases=context?.aliases||followData?.author_aliases||[];
+/* `context` 是关注页岛那一版列表(或详情岛那一条)的来源与别名。 */
+function followIdentity(item,authorSources,context){
+ const aliases=context.aliases||[];
const poster=item.credit?.poster;
if(!poster){const name=followAuthorName(authorSources,aliases);
return {author:name||item.author||item.source_label||'创作者未取得',
avatar:followAuthorAvatar(authorSources,name),credited:''}}
const key=value=>String(value||'').toLowerCase().replace(/[^a-z0-9]/g,'');
- const sources=context?.sources||followData?.sources||[];
+ const sources=context.sources||[];
const own=sources.find(row=>key(row.ref)===key(poster));
const group=own?.author_key?sources.filter(row=>row.author_key===own.author_key):own?[own]:[];
const author=group.length&&followAuthorName(group,aliases)||poster;
@@ -5590,7 +5287,7 @@ function followWorkMark([key,label,,icon,focus]){
创作者在末尾的方括号里。这里只在同一个人的几种写法之间挑一个,不再自己解析标签。
同名的几种写法里取大写最多的那个:`LazyProcrastinator` 比 `lazyprocrastinator`
更像创作者自己写的名字。 */
-function followAuthorName(group,aliases=followData?.author_aliases||[]){
+function followAuthorName(group,aliases=[]){
if(!group.length)return '';
const clean=value=>String(value||'')
.replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/,'')
@@ -6497,11 +6194,11 @@ function buildDrawerNavigation(){
那一格,不带动画:这时候动画早已经从 `paintNav` 那里起跑了。 */
syncNavGlide(false);
}
-function renderFollowDrawer(items){
+/* 侧栏那一列标签 chip。计数由调用方给:列表是岛那一版可见条目的(`loaded`),详情是这一条自己的。 */
+function renderFollowDrawer(counts){
buildDrawerNavigation();
const scroll=$('#drawerScroll');
scroll.querySelectorAll('.sec').forEach(section=>section.remove());
- const counts=sidebarTagCounts(items.map(item=>({tags:followCardTags(item)})));
if(!counts.length)return;
const tagBody=`<div class="chips">${
counts.map(([tag,n])=>
@@ -7066,7 +6763,7 @@ window.addEventListener('scroll',()=>{
/* 换了宽度就把那块玻璃重新落一次位:过了那道断点,这一排是不是住在横滚容器里
会变,玻璃该落在哪一层跟着变,量出来的位置也跟着变。不重落的话它留在旧的那一层上,
坐标还是按旧的算的,停在离按钮几百像素远的地方。 */
-window.addEventListener('resize',()=>{scheduleStickySurfaces();alignFollowImageControls();
+window.addEventListener('resize',()=>{scheduleStickySurfaces();
Object.keys(GLIDE_ROWS).forEach(kind=>syncViewGlide(false,null,kind))},{passive:true});
$('#scrim').onclick=()=>openDrawer(false);
@@ -8586,7 +8283,7 @@ document.addEventListener('keydown',e=>{
}
// 输入态不抢键:搜索框、标签弹窗和任何可编辑区域里的按键归它们自己处理。
if(isTypingTarget(e.target)||e.ctrlKey||e.metaKey||e.altKey)return;
- const imageDots=[...document.querySelectorAll('#stage:not([hidden]) .followimagedots [data-follow-image-item]')];
+ const imageDots=[...document.querySelectorAll('#stage:not([hidden]) [data-follow-image-dots] [data-follow-image-item]')];
if(imageDots.length&&(e.key==='ArrowLeft'||e.key==='ArrowRight')){
e.preventDefault();
const current=Math.max(0,imageDots.findIndex(dot=>dot.getAttribute('aria-current')==='true'));
diff --git a/web/board.css b/web/board.css
index 5de146f4f..c73f05085 100644
--- a/web/board.css
+++ b/web/board.css
@@ -934,8 +934,8 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.sidecontent .trace .lab>span:last-child{color:var(--ink);font-variant-numeric:tabular-nums}
.sidecontent .trace .bar{height:4px;border-radius:4px}
.sidecontent .fb{display:flex;flex-wrap:wrap;gap:4px;width:100%;padding:0;border:0;background:transparent;overflow:visible;margin:0 0 16px}
-.sidecontent .fb button,.sidecontent .fb .fdownload{flex:0 0 36px;width:36px;height:36px;min-width:36px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:var(--surface)}
-.sidecontent .fb button svg,.sidecontent .fb .fdownload svg{display:block;width:18px;height:18px;margin:0}
+.sidecontent .fb button{flex:0 0 36px;width:36px;height:36px;min-width:36px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:var(--surface)}
+.sidecontent .fb button svg{display:block;width:18px;height:18px;margin:0}
.sidecontent .fb button[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor}
.sidecontent .fb .dispose{margin-left:auto}
.sidecontent .obtn{min-height:40px;border-radius:10px;padding:8px 12px;font-size:14px;line-height:20px;font-weight:500;background:var(--surface);color:var(--ink);border:1px solid var(--line);gap:8px;box-shadow:inset 0 1px 0 #ffffff0a}
@@ -967,7 +967,7 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.insightpage,.tastepage{width:100%;max-width:var(--board-content)}
.followmanage .fmain{gap:28px}
.configfieldset-heading{border:0;padding-bottom:0}.configfieldset{border:0}.configfieldset>.geist-fieldset-footer{border:0}.configfieldset .configfieldset-heading h2{margin:0}
-.board-follow-list{display:grid;border-radius:16px;background:var(--ground);padding:8px 16px}.board-follow-list .fsource.frow{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto auto auto;gap:12px;padding:8px;min-height:48px;border:0;border-radius:8px}.board-follow-list .fsource.frow>b{font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.board-follow-list .fsource.selected{background:var(--picked);opacity:1}.board-follow-selection{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 12px;font-size:13px}.board-follow-selection>label{display:flex;gap:8px;align-items:center}.board-follow-selection>span{margin-right:auto;color:var(--muted)}
+.board-follow-list{display:grid;border-radius:16px;background:var(--ground);padding:8px 16px}.board-follow-selection{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 12px;font-size:13px}.board-follow-selection>label{display:flex;gap:8px;align-items:center}.board-follow-selection>span{margin-right:auto;color:var(--muted)}
@media(max-width:760px){.board-follow-list{padding:8px}}
@media(max-width:760px){body #manageTitle{width:100%}.followmanage .fsechead{gap:8px}}
@@ -1022,7 +1022,7 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
面板、筛选条、交集条和标签骨架都从它取值,一处改完五处一起走。 */
:root{--tag-radius:8px}
body,.disp{font-family:var(--board-font);letter-spacing:0}body{font:var(--board-body)}button,input,textarea,select{font-family:var(--board-font)}
-.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b,.fsource.frow>b{font:var(--board-body)}.fmeta,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}
+.pagetitle,.listtitle,body #manageTitle,.index .ihead h2,.indexheading,.playlistpage h2{font:var(--board-title);letter-spacing:0}.settingscard .settingshead h2,.configfieldset h2,.configfieldset h3,.cleanupfieldset h3,.followmanage .fsechead h3,.resourcesync>h2{font:var(--board-heading);letter-spacing:0}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{font:var(--board-figure);letter-spacing:0}.drawer .dnav button,.board-library-rows button,.settingrow b{font:var(--board-body)}.fmeta,.settingrow small{font:var(--board-compact)}.board-stat-footer,.board-watch-measures small,.insighttoolbar p{font:var(--board-caption);letter-spacing:.15px}
.geist-button,.resourceaction{background-color:var(--color-background-primary-default);border-color:var(--color-border-button-default);color:var(--color-text-primary);transition:background-color .15s ease,border-color .15s ease,color .15s ease}
/* 悬停只抬填充,那圈线一步不动:按钮静止态已经带一圈 1px,悬停再把它加深,
鼠标扫过一排次级键就是一排边框忽明忽暗,而键本身并没有变化。 */
@@ -1110,7 +1110,6 @@ body :is(button.danger,.batchbar button.danger):not(:disabled):active::before{op
.configfieldset>.geist-fieldset-footer,.cleanupfieldset>.geist-fieldset-footer,.resourcesyncfooter{border-top-left-radius:0;border-top-right-radius:0;background:var(--board-card-foot)}
.followmanage .board-follow-list{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:0;background:none}
.followmanage .board-author-toggle{margin-left:auto;flex:none}.board-author-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
-.followmanage .board-follow-list .fsource.frow{min-height:64px;padding:12px 8px}
/* 表格视图在 Board 层套的是 Board 自己的 token:表头次级底、三级字、分隔线色都取自
boardui 同名变量。外框用 primary 底而不是作者卡那块 --ground:Board 层把 --ground 定成了
secondary,和表头同色,表头那条带子就没了;boardui 的表格本来就摆在 primary 面上。 */
@@ -1184,7 +1183,7 @@ body a:is(.externallink,[target=_blank]):not(:has([data-link-icon])):not(.cardli
.board-link-button>svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;transform:rotate(90deg)}
body :is(.board-chip,.badge){display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 6px;min-height:24px;box-sizing:border-box;border:0;border-radius:6px;background:var(--color-background-tertiary-default);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap}
body .board-chip.success{background:color-mix(in srgb,#84cc16 16%,var(--color-background-primary-default));color:#4d7c0f}body .board-chip.error{background:color-mix(in srgb,#f43f5e 12%,var(--color-background-primary-default));color:#e11d48}
-.fprovider{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.followmanage .fsource.frow{grid-template-columns:20px minmax(120px,1fr) minmax(100px,auto) auto auto}
+.fprovider{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
:is(.board-button-group,[data-button-group]){display:inline-flex;align-items:center;overflow:hidden;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);box-shadow:var(--elevation-xs)}
:is(.board-button-group,[data-button-group])>button{height:34px;padding:0 12px;border:0;border-radius:0;box-shadow:none;color:var(--color-text-secondary);font:var(--board-body);white-space:nowrap}
:is(.board-button-group,[data-button-group]):not([data-variant=primary])>button{background:transparent}
@@ -1194,12 +1193,9 @@ body .board-chip.success{background:color-mix(in srgb,#84cc16 16%,var(--color-ba
@media(prefers-reduced-motion:reduce){.board-tooltip{transition:none}}
.board-author-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.board-author-actions .board-author-toggle{margin:0}
-.followmanage .fsource.selected{background:var(--color-background-primary-default);box-shadow:none;border-color:var(--color-border-focus-ring)}.followmanage .fsource.selected.disabled{opacity:1}
/* 同底色上的嵌套卡(作者卡里的来源行)按 10px 圆角取 shadow-sm:
BoardUI 的 shadow-xs 出自 24px 大圆角的 auth-card(2026-09-09 取证登记
boardui-auth-card),贴地细影在小圆角上只剩一条硬边读成环,sm 多一档 3px 扩散。 */
-.followmanage .fsource:has([data-follow-select]):not(tr){border:1px solid var(--color-border-button-default);border-radius:10px;padding:12px 20px 12px 16px;margin:8px 0;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease;box-shadow:var(--elevation-sm)}
-.followmanage .fsource:has([data-follow-select]):hover{background:var(--color-background-primary-hover)}
.followmanage .fsec:has(.board-follow-selection){padding:0;border-radius:18px;background:var(--ground);overflow:visible}.followmanage .fsec>.board-follow-selection{padding:4px 24px 12px}
@media(max-width:1000px){.cleanupgrid [data-cleanup-processing],.resourcesyncbox[data-cleanup-task]{grid-template-columns:1fr}.cleanupgrid [data-cleanup-processing]>:is(.geist-fieldset-footer,[data-geist-fieldset-footer]),.resourcesyncbox[data-cleanup-task]>.resourcesyncfooter{justify-content:flex-start;padding-top:0}}
.metricstrip>button[aria-selected=true]{background:var(--color-background-primary-default);box-shadow:none}.metricstrip>button[aria-selected=true]::after{box-sizing:border-box}.metricstrip>button[aria-selected=true] .board-stat-footer{background:var(--board-card-foot)}
@@ -1220,8 +1216,6 @@ body .gselectmenu [role=option][aria-selected=true],body .popmenu [aria-checked=
width calc(var(--spring-pane-ms,200) * 1ms) ease}
body [data-board-tabs] button[aria-selected=true],body .managebar [data-board-tabs] button[aria-pressed=true]{border-bottom-color:transparent}
@media(prefers-reduced-motion:reduce){[data-board-tabs].board-tabs-ready::before{transition:none}}
-.followmanage .fsource:has([data-follow-select]){background:var(--color-background-primary-default)}
-.followmanage .fsource.selected:has([data-follow-select]){border-color:var(--color-border-focus-ring)}
/* Split Button 照 Geist 实测(`vercel-geist-split-button.md`「悬停」):两半各是一颗
带自己填充的按钮,整组只管并排和外圆角,悬停只抬指针下那一半——抬的那一层就是
`bg-button-primary` 自己的 `::before` 淡入。中缝那条 1px 线是触发档的 `::after`,
@@ -1381,12 +1375,8 @@ body .followmanage .board-pagination>.geist-button{height:32px;min-height:32px;p
作者卡是 primary 面上的一只卡;来源行照 boardui checkbox-card.tsx:10px 圆角、1px border-button-default、
pl 16 / pr 20 / py 12,悬停 primary-hover 150ms;行距 8px。选中行沿用焦点环色的边(上游 CheckboxCard 只亮勾选框)。 */
.followmanage .board-follow-list{padding:0;background:transparent;gap:16px}
-.followmanage .board-follow-list .fsource.frow{min-height:0;margin:0;padding:12px 20px 12px 16px;border:1px solid var(--color-border-button-default);border-radius:10px;background:var(--color-background-primary-default);transition:background-color .15s ease,border-color .15s ease}
-.followmanage .board-follow-list .fsource.frow:hover{background:var(--color-background-primary-hover)}
-.followmanage .board-follow-list .fsource.selected,.followmanage .board-follow-list .fsource.selected:hover{background:var(--color-background-primary-default);border-color:var(--color-border-focus-ring)}
@media(max-width:760px){.followmanage .fsec>.board-follow-selection{padding:4px 16px 12px}}
/* ── 表格:外框管边线与圆角,里层管横向滚动与两端渐隐。选中行是蓝色 8% 的一层底,不描蓝线(上游选中行样式未取得) ── */
-.followmanage .ftable tr.fsource.selected,.followmanage .ftable tr.fsource.selected:hover{background:color-mix(in srgb,var(--tungsten) 8%,var(--color-background-primary-default));border-color:var(--color-separator-border);box-shadow:none}
.followmanage .ftable tbody tr{transition:background-color .15s ease}
.followmanage .ftable tbody tr:last-child{border-bottom:0}
/* ── 分区标题行里的视图开关与同排按钮同高(36px):轨道 3px、选项 30px,图标 16px、1.8 描边与 fbtn 的字形同粗 ── */
@@ -1579,10 +1569,6 @@ body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}
.followmanage [data-follow-panel=sources]>.fsechead h3{font:var(--board-body-medium)}
.followmanage .fmain>[data-follow-panel=sources]>.board-follow-selection{padding:12px 16px;background:var(--ground);border-radius:var(--surface-radius) var(--surface-radius) 0 0;border-bottom:1px solid var(--line-soft)}
.followmanage [data-follow-panel=sources] .board-follow-list{gap:0;background:var(--ground);border-radius:0 0 var(--surface-radius) var(--surface-radius);overflow:hidden}
-.followmanage [data-follow-panel=sources] .fsource.frow{padding:12px 16px;border:0;border-radius:var(--control-radius);background:transparent}
-.followmanage [data-follow-panel=sources] .fsource.frow.selected{background:var(--picked)}
-.followmanage [data-follow-panel=sources] .fsource.frow:hover{background:var(--hover)}
-.followmanage [data-follow-panel=sources] .fsource.frow.selected:hover{background:var(--picked)}
.followmanage [data-follow-panel=sources] .ftableframe{border-top:0;border-radius:0 0 var(--surface-radius) var(--surface-radius)}
.followmanage .fmain>[data-follow-panel=add]{max-width:812px;width:100%;justify-self:center}
.followmanage .fmain>[data-follow-panel=credentials]>.frows{gap:0;background:var(--ground);border-radius:var(--surface-radius);overflow:hidden}
@@ -1594,7 +1580,6 @@ body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}
.followmanage .fmain>[data-follow-panel=sources]>.fsechead{padding:0 0 12px}
.followmanage [data-follow-panel=sources]>.fsechead h3{flex-basis:100%}
.followmanage .fmain>[data-follow-panel=sources]>.board-follow-selection{padding:12px}
- .followmanage [data-follow-panel=sources] .fsource.frow{padding:12px 8px}
}
.followmanage .board-follow-list .board-author-actions{width:auto;flex:none}
@@ -1606,8 +1591,6 @@ body .batchbar button[hidden],body .batchbar button.danger[hidden]{display:none}
.followmanage .board-follow-selection[hidden]{display:none}
.geist-note-details a{color:var(--ink)}
@container(max-width:460px){.board-author-actions [data-author-select-label]{display:none}.followmanage .board-follow-list .board-author-actions [data-follow-author-select]{width:var(--control-h);height:var(--control-h);padding:0;justify-content:center}}
-.followmanage .board-follow-list .fsource.frow>b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.followmanage .board-follow-list .fprovider{flex-wrap:nowrap;white-space:nowrap}
.followmanage .skeleton-icon{width:32px;height:32px;display:block}
-.followmanage .fsource .skeleton{max-width:100%}
.followmanage .favatar.skeleton{display:block}
diff --git a/web/css/08-photos.css b/web/css/08-photos.css
index b1170090c..b899af4bb 100644
--- a/web/css/08-photos.css
+++ b/web/css/08-photos.css
@@ -1,4 +1,4 @@
-/* 媒体圆钮(关注页图集的左右翻页 `followimagearrow`)与灯箱打开时的整页锁滚。灯箱本身在 React 里,
+/* 媒体圆钮(竖屏刷片页 `.tokaction` 那一列动作键)与灯箱打开时的整页锁滚。灯箱本身在 React 里,
样式见 `frontend/src/react/photo-lightbox/photo-lightbox.css`。 */
/* 媒体圆钮只共享 48/24 的几何与图标居中;表面色由使用场景决定。 */
.media-circle{box-sizing:border-box;width:48px;height:48px;padding:0;border:0;border-radius:50%;
@@ -7,8 +7,6 @@
.media-circle:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}
.media-circle svg{display:block;width:24px;height:24px;flex:none;stroke:currentColor;fill:none;
stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
-.media-circle.media-overlay{background:rgba(0,0,0,.6);color:#fff;backdrop-filter:blur(16px)}
-.media-circle.media-overlay:hover{background:rgba(0,0,0,.78)}
body.photolight-open{overflow:hidden}
/* 展开着不动时那道裁边要摘掉:高度过渡需要它,展开完就只剩副作用——里面最后一张卡片
diff --git a/web/css/13-stage.css b/web/css/13-stage.css
index 678677dfb..d2eeda882 100644
--- a/web/css/13-stage.css
+++ b/web/css/13-stage.css
@@ -28,8 +28,7 @@ body.index-open #tiers,body.index-open #tagbar{display:none}
.sgrid.mixgrid>.side{grid-area:side;background:var(--detail-surface)}
.sgrid.mixgrid>.mixqueue{grid-area:queue;max-height:360px;border-left:0;border-top:1px solid var(--line-soft);
background:var(--detail-surface)}
-.sgrid.mixgrid .mixqueueactions [data-queue-close],
-.sgrid.mixgrid .mixqueueactions [data-follow-queue-close]{display:none}
+.sgrid.mixgrid .mixqueueactions [data-queue-close]{display:none}
.mixqueue{min-width:0;max-height:76vh;display:flex;flex-direction:column;border-left:1px solid var(--line-soft);
background:color-mix(in srgb,var(--video-glow,#15202a) 10%,var(--surface) 90%)}
.mixqueuehead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;
@@ -96,6 +95,11 @@ body.index-open #tiers,body.index-open #tagbar{display:none}
.sgrid.mixgrid>.mixqueue .mixitem[data-media-kind="image"] .mixitempic img{object-fit:cover}
.sgrid.mixgrid>.mixqueue .queueedit{position:absolute;z-index:3;right:5px;top:5px;padding:3px;border-radius:var(--control-radius);background:rgba(0,0,0,.62);color:#fff}
.sgrid.mixgrid>.mixqueue .queueedit button{color:#fff}
+/* 关注详情的宿主 `.stagescroll` 里多一层 React 根(`follow-detail` 岛):不占盒子,格子照旧是
+ 舞台这一层的直接排版对象;字体、行高与字色照舞台往下传,不换成 React 根的那一套,里面的
+ 骨架与队列是和 JAV 详情共用的遗留几何。 */
+.stagescroll>.peach-react{display:contents;font:inherit;color:inherit;-webkit-font-smoothing:inherit;
+ font-variant-ligatures:inherit;font-kerning:inherit}
/* 宽屏时详情栏决定首行高度,脱盘/错误占位也要铺满同一行,不能留下半块空背景。 */
@media (min-width:1081px){
/* 浮窗里那一层竖着排:媒体格拿剩下的高度,「接着看」按内容定高钉在底下。浮窗照旧按
@@ -103,7 +107,7 @@ body.index-open #tiers,body.index-open #tagbar{display:none}
76vh 的画面加一条推荐带比视口高,推荐带整条落在浮窗外面。格里的媒体和详情栏都要
`min-height:0`,行才压得下去;画面的上限跟着格走,宽了就按 contain 留黑边。 */
.stage:not(.theater-mode)>.stagescroll{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
- .stage:not(.theater-mode)>.stagescroll>.sgrid{flex:1 1 auto;min-height:0}
+ .stage:not(.theater-mode)>.stagescroll>.sgrid,.stage:not(.theater-mode)>.stagescroll>.peach-react>.sgrid{flex:1 1 auto;min-height:0}
.stage:not(.theater-mode) .sgrid>.vwrap{min-height:0}
.stage:not(.theater-mode) .vwrap>.video-js{max-height:min(76vh,100%)}
/* 影院模式画面独占一行、详情栏整段排在下面,总高必然超过浮窗:这一层自己滚,和窄屏
diff --git a/web/css/15-detail.css b/web/css/15-detail.css
index d57bb3279..3d33e5c48 100644
--- a/web/css/15-detail.css
+++ b/web/css/15-detail.css
@@ -105,11 +105,7 @@
.fb button{width:44px;height:42px;padding:0;border:0;border-right:1px solid var(--border-10);background:transparent;border-radius:0;
cursor:pointer;display:grid;place-items:center;color:var(--muted);transition:transform .14s ease,color .14s ease,background .14s ease}
.fb button svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
-.fb button:last-child,.fb .fdownload:last-child{border-right:0}.fb button:hover{transform:none;background:var(--hover)}
-/* 下载是 `<a download>`,不是按钮:让浏览器自己落盘,不经过 JS。几何与同排按钮一致。 */
-.fb .fdownload{box-sizing:border-box;width:44px;height:42px;display:grid;place-items:center;border-right:1px solid var(--border-10);color:var(--ink-2)}
-.fb .fdownload:hover{background:var(--hover);color:var(--ink)}
-.fb .fdownload svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
+.fb button:last-child{border-right:0}.fb button:hover{transform:none;background:var(--hover)}
.fb .like:hover{color:var(--ink);background:var(--hover)}
.fb .like[aria-pressed="true"]{color:var(--ink);background:var(--picked)}
/* 加入播放列表开的是弹层,没有按下态,所以只有悬停这一档,和喜欢同走中性墨色:
diff --git a/web/css/19-immersive.css b/web/css/19-immersive.css
index 7ad23a779..ae9398ffe 100644
--- a/web/css/19-immersive.css
+++ b/web/css/19-immersive.css
@@ -136,9 +136,6 @@ body:has(#batchbar:not([hidden])) #stage{padding-bottom:180px}
.batchbar:has([data-junk-batch]:not([hidden])) button svg{margin-right:4px}
.playlistpage>header{align-items:stretch;flex-direction:column}
.fb{width:100%}.fb button{flex:1 1 0;min-width:38px}
- /* 关注详情只有三四个动作键,撑满一行就是四个大得离谱的方块。 */
- .fb.followdetailactions{width:max-content;max-width:100%}
- .fb.followdetailactions button,.fb.followdetailactions .fdownload{flex:0 0 auto}
/* 顶栏在窄屏会被搜索框撑破 —— 搜索收成一个按钮,点了才展开。只裁横向:竖向也裁的话,
那几枚玻璃按钮往下落的投影在顶栏下沿被切平,头像那一排上方就多出一条横线。 */
.top{gap:4px;padding:0 8px;overflow:clip visible}
diff --git a/web/css/21-online.css b/web/css/21-online.css
index ea80483cc..ba3bbdd19 100644
--- a/web/css/21-online.css
+++ b/web/css/21-online.css
@@ -3,7 +3,8 @@
.followhead{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.followhead .pagetitle{margin:0}
/* 以上与下面 `.followauthors`、`.followlist`、照片墙档位只剩进页骨架在用;页面本身归
- `follow-feed` 岛(`frontend/src/react/follow-feed/follow-feed.css`)。 */
+ `follow-feed` 岛(`frontend/src/react/follow-feed/follow-feed.css`),详情归 `follow-detail` 岛
+ (`frontend/src/react/follow-detail/follow-detail.css`)。 */
.followauthors{padding:3px 0 10px;margin:0 0 2px;overscroll-behavior-inline:contain}
.followauthors .av{width:76px}
.ficon{width:14px;height:14px;border-radius:var(--badge-radius);object-fit:contain;
@@ -14,17 +15,6 @@
@media (max-width:1400px){.followlist.followphotowall{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1000px){.followlist.followphotowall{grid-template-columns:repeat(3,minmax(0,1fr))}}
.followphotowall[data-images-only="true"] .skeletoncard :is(b,em){display:none}
-.fnothumb{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:var(--fs-xs)}
-.fsourceavatar{display:grid;place-items:center;cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft)}
-.fsourceavatar:hover{box-shadow:none}.fsourceavatar .favatar{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;outline:0;object-fit:cover}
-.fsourceavatar .favatar.none{display:grid;place-items:center;font-size:var(--fs-sm);color:var(--muted)}
-.followdetailtags .tg{--r34-tag:#55A7FF;border-color:color-mix(in srgb,var(--r34-tag) 42%,transparent);background:color-mix(in srgb,var(--r34-tag) 10%,transparent)}
-.followdetailtags .r34-artist{--r34-tag:#E36C6C}
-.followdetailtags .r34-character{--r34-tag:#68C76F}
-.followdetailtags .r34-copyright{--r34-tag:#D675D6}
-.followdetailtags .r34-metadata{--r34-tag:#F5A24A}
-.followdetailtags .r34-unknown{--r34-tag:var(--muted)}
-.fbadges{display:flex;flex-wrap:nowrap;gap:5px;min-width:0;overflow:hidden}
/* 标题前的版本字样。「含 WIP」说的是同组里还有一条半成品,这一条本身不是,配色弱于
WIP 本体。配音版着色带底,无声版弱化加虚线框。 */
.javedition.followmark{margin-right:6px;color:var(--ink-2)}
@@ -34,44 +24,9 @@
.javedition.followmark.silent{color:var(--muted);border-style:dashed}
.fbadge{padding:2px 8px;border:1px solid var(--border-15);border-radius:var(--badge-radius);font-size:var(--fs-xs);color:var(--ink-2)}
.fbadge.dup{border-style:dashed;display:inline-flex;align-items:center;gap:4px}.fbadge.dup .ficon{margin:0}
-.fnote{font-size:var(--fs-xs);color:var(--muted)}
-.fstate{flex:1 1 100%;font-size:var(--fs-xs);color:var(--drop)}
-/* 详情右栏是纵向 flex:`flex:1 1 100%` 在这里会把整栏的剩余高度都算给这条
- 错误行,标签被推到栏底、中间空出一大段。错误行按内容高就够。 */
-.followdetailside .fstate{flex:none}
-.fvkind{display:inline-block;max-width:120px;margin-right:6px;padding:1px 7px;border-radius:var(--badge-radius);overflow:hidden;text-overflow:ellipsis;vertical-align:-2px;background:var(--overlay-5);color:var(--muted);font-size:var(--fs-xs);font-style:normal}
-.fvkind.wip{color:var(--meter)}.fvkind.alt{color:var(--ink-2)}
-/* 合集队列卡的出处与时间:标记、站点图标和时间按盒子居中成一行,不靠基线偏移去凑。
- 标记可收窄(自带尾部省略),时间不收。 */
-.followqueue .fqmeta{display:flex;align-items:center;gap:6px}
-.followqueue .fqmeta .ficon{flex:none;margin:0}
-.followqueue .fqmeta .fvkind{flex:0 1 auto;min-width:0;margin:0}
-.followqueue .fqmeta time{flex:none;white-space:nowrap}
-/* 媒体框不设视口高度的地板:里面的播放器高度由 16:9 和自己的宽度推出来,地板挂在 vh 上,
- 两个量朝相反方向走——414×913 的视口给出 566px 的框装 208px 的画面,上下各空 179px;
- 1280×900 的宽屏给出 558px 的框装 435px 的画面,多出的 123px 就是画面之外那层黑边。
- 播放器未初始化时 `.vwrap>.video-js` 那条 16:9 已经把高度定住了,不会塌。 */
-.followdetailmedia{--follow-image-arrow-inset:16px}.followdetailmedia.image{background:color-mix(in srgb,var(--video-glow,#15202a) 12%,var(--surface) 88%)}.followdetailposter.zoomable{cursor:zoom-in}.followdetailposter{position:relative;z-index:1;display:block;width:auto;height:auto;max-width:100%;max-height:76vh;object-fit:contain;background:transparent}.followdetailmedia.framed .followdetailposter{width:100%;aspect-ratio:var(--follow-frame-ratio)}.followimagearrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%)}.followimagearrow.prev{left:var(--follow-image-arrow-inset)}.followimagearrow.next{right:var(--follow-image-arrow-inset)}.followimagedots{position:absolute;z-index:4;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;max-width:calc(100% - 120px);padding:8px 11px;border-radius:var(--pill-radius);background:rgba(0,0,0,.5);overflow:hidden}.followimagedots button{flex:none;width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.42);cursor:pointer}.followimagedots button[aria-current="true"]{width:20px;border-radius:var(--pill-radius);background:#fff}
-/* 什么都没有的那一格占同一个 16:9 框:它顶替的就是画面本身,缩成一条窄带看着像没加载完。 */
-.followdetailplaceholder{aspect-ratio:16/9;display:grid;place-items:center;gap:10px;color:var(--muted)}.followdetailplaceholder .ficon{width:34px;height:34px;margin:0}
-.followdetailtitle{display:flex;gap:5px;align-items:flex-start;margin-bottom:8px}.followdetailtitle .stitle{width:auto;max-width:calc(100% - 35px);margin:0}.followdetailtitle .followorigin{flex:none;width:30px;height:30px;margin:0;display:grid;place-items:center;border-radius:var(--control-radius)}.followdetailtitle .followorigin:hover{background:var(--hover)}
-.followdetailidentity{display:flex;align-items:center;gap:10px;margin:2px 0 12px}.followdetailidentity .mav{flex:none}.followdetailidentity b,.followdetailidentity span{display:block}.followdetailidentity>div>span{margin-top:3px;color:var(--muted);font-size:var(--fs-xs)}
-.followdetailsummary{margin:0 0 16px;line-height:1.6;color:var(--ink-2);white-space:pre-line}.followdetailtags .tg{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;text-align:left;color:var(--ink-2);font-family:inherit}/* 通用 `.tg:hover` 的填充和文字色被上面按类型着色的两条同权重规则压掉了,
- 悬停得按标签自己那个类型色加深,不能回到中性的 `--hover`。 */
-.followdetailtags .tg:hover{border-color:color-mix(in srgb,var(--r34-tag) 68%,transparent);
- background:color-mix(in srgb,var(--r34-tag) 18%,transparent);color:var(--ink)}
-.followqueue .mixitempic>.fnothumb{position:static;width:100%;height:100%}.followqueue .fnothumb svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2}
-.fnote.followmediaissue{margin:18px 0 8px;color:var(--drop)}.followresources{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.followresources a{align-items:center;gap:2px;height:34px;padding:0 11px;border:1px solid var(--border-15);border-radius:var(--control-radius);color:var(--ink-2);text-decoration:none}.followresources a:hover{background:var(--hover);color:var(--ink);text-decoration:none}.followresources svg{width:15px;height:15px;stroke:currentColor;fill:none}.followdetailactions{margin-top:2px}
-/* 标签沉到侧栏最后:来源站的标签动辄几十个,夹在正文和操作之间就得先滚过整片
- 标签云才够得着「已看/忽略」。 */
-.followdetailside .followdetailtags{margin:16px 0 0}.followdetailactions button:disabled{opacity:.45;cursor:not-allowed}.followorigin{width:max-content;margin-top:auto;color:var(--muted);text-decoration:none}.followorigin:hover{color:var(--ink);text-decoration:none}
-/* 被隐藏的图退到这条恢复带:一行小缩略图,各带一枚撤销角标。整带保持安静
- (灰调、小尺寸),它们是「不在看」的那部分,不能和正片抢视线。 */
-.followhiddenmedia{display:flex;align-items:center;gap:10px;margin-top:14px}.followhiddenlabel{color:var(--muted);white-space:nowrap}.followhiddenthumbs{display:flex;flex-wrap:wrap;gap:6px}.followhiddenthumbs button{position:relative;width:40px;height:40px;padding:0;border:1px solid var(--border-15);border-radius:var(--control-radius);background:none;cursor:pointer;overflow:hidden}.followhiddenthumbs button:hover{border-color:var(--ink-3)}.followhiddenthumbs img{width:100%;height:100%;object-fit:cover;display:block;opacity:.55}.followhiddenthumbs i{position:absolute;right:2px;bottom:2px;display:flex;width:16px;height:16px;align-items:center;justify-content:center;border-radius:50%;background:var(--hover);color:var(--ink-2)}.followhiddenthumbs svg{width:11px;height:11px;stroke:currentColor;fill:none}
@media (max-width:640px){.followhead{align-items:center}
.followauthors{margin-right:-12px;padding-top:3px}
.followlist.followphotowall{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
- .followdetailmedia{--follow-image-arrow-inset:10px}.followimagearrow{width:44px;height:44px}.followimagedots{bottom:12px}
}
/* 骨架里那面图片墙的列数,与资料页照片墙(`frontend/src/react/entity-body/entity-body.css`)、
diff --git a/web/css/22-followmanage.css b/web/css/22-followmanage.css
index d26c8cfc8..40f0aeff5 100644
--- a/web/css/22-followmanage.css
+++ b/web/css/22-followmanage.css
@@ -26,10 +26,6 @@
读起来就是一个点不动的说明标签,而它恰恰是这行里唯一能改变列表内容的控件。 */
.fsechead .iconswitch{display:inline-flex;gap:2px;flex:none;padding:2px}
.fsechead .iconswitch label{width:34px;height:32px}
-.fnote{margin:8px 0 0;font-size:var(--fs-sm);line-height:1.7;color:var(--muted)}
-.fnote:empty{display:none}
-.fnote b{color:var(--ink-2);font-weight:600}
-.fnote code{font-size:var(--fs-xs)}
/* Geist Note:字段、卡片、分区旁的持久上下文,以及需要用户处理的失败,全部走这里。
瞬时回执用 toast,销毁确认用 dialog/confirm。整页范围的失败也是这个盒子,只是多
@@ -102,19 +98,13 @@
.frows>.frow:last-child[open]{border-bottom:0}
.frow>b{flex:1 1 180px;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;
white-space:nowrap}
-.fsource.bad>b{color:var(--drop)}
/* 进度面板与它上下的分区是同一档容器:发丝边 --field-ring 加 --ground 的面。
`--border-10` 配 `--surface` 会让它在同一列里比 `.fsec` 亮一档、边又淡一档,
读起来像另一种东西浮在页面上。 */
.followtask{border:1px solid var(--field-ring);border-radius:var(--surface-radius);background:var(--color-background-primary-default);margin-bottom:16px}
-/* 进度卡常住在说明行(data-follow-add-state 是 p.fnote)的 data-follow-job
- 挂载层里,说明的字号与颜色不许往里面灌:任务标签与正文同色可读,
- 百分比那行保留 board 自己的更淡小字。 */
-p.fnote .followtask{color:var(--ink-2)}
.followtask>.geist-fieldset-content{padding:20px;min-width:0;overflow-wrap:anywhere}
.followmanage .followtask{margin-bottom:0}
-.fsource.disabled{opacity:.62}
.favatar{width:28px;height:28px;flex:none;border-radius:var(--pill-radius);object-fit:cover;
background:var(--overlay-5);outline:1px solid oklch(1 0 0 / 0.1);outline-offset:-1px}
/* 取不到头像时是一个明确的空位,不是首字母——首字母会让「未取得」看着像取到了。 */
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index b3e598b61..921ee528a 100644
--- a/web/dist/peach-react.css
+++ b/web/dist/peach-react.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--shadow-sm:var(--elevation-sm);--drop-shadow-sm:0 1px 2px #00000026;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--radius-2-5xl:20px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-regular:1.5rem;--text-title-1-regular--line-height:2.125rem;--text-title-1-regular--letter-spacing:0;--text-title-1-regular--font-weight:400;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-regular:1.25rem;--text-title-2-regular--line-height:1.625rem;--text-title-2-regular--letter-spacing:0;--text-title-2-regular--font-weight:400;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-medium:1.125rem;--text-title-3-medium--line-height:1.625rem;--text-title-3-medium--letter-spacing:0;--text-title-3-medium--font-weight:500;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-bold:.875rem;--text-body-bold--line-height:1.25rem;--text-body-bold--letter-spacing:0;--text-body-bold--font-weight:700;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--spacing-crop-frame:50vh;--spacing-crop-preview:96px;--container-cover-crop:880px;--spacing-topbar:var(--topH,64px);--z-index-dialog:var(--layer-dialog,1000);--container-review-tabs:184px;--container-review-card:340px;--container-review-cover:132px;--container-review-cover-narrow:110px;--container-review-asset:92px;--spacing-review-card:440px;--spacing-review-card-tall:560px;--spacing-review-image:220px;--radius-surface:14px;--radius-floating:20px;--radius-glass-key:7px;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}:root,:host{--container-duplicate-cover:112px;--container-duplicate-cover-narrow:88px;--container-index-person:150px;--container-index-company:180px;--container-index-tag:200px;--spacing-empty-glyph:54px;--container-empty-copy:340px;--leading-empty-copy:1.55;--container-form-modal:540px;--tracking-caps:.12em}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.skeleton-sheen{overflow:hidden}.skeleton-sheen:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.skeleton-sheen:after{animation:none}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-\(--crop-b\){top:var(--crop-b)}.top-\(--crop-t\){top:var(--crop-t)}.top-\(--tile-top\){top:var(--tile-top)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\[3px\]{top:3px}.top-topbar{top:var(--spacing-topbar)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.-right-\[5\.5px\]{right:-5.5px}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2\.25{right:calc(var(--spacing) * 2.25)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.25{bottom:calc(var(--spacing) * 2.25)}.-left-\[5\.5px\]{left:-5.5px}.left-\(--crop-l\){left:var(--crop-l)}.left-\(--crop-r\){left:var(--crop-r)}.left-\(--tile-left\){left:var(--tile-left)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-\[3px\]{left:3px}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-1{z-index:1}.z-6{z-index:6}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-dialog{z-index:var(--z-index-dialog)}.col-start-2{grid-column-start:2}.-col-end-1{grid-column-end:calc(1 * -1)}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=560px){.container{max-width:560px}}@media (width>=600px){.container{max-width:600px}}@media (width>=601px){.container{max-width:601px}}@media (width>=761px){.container{max-width:761px}}@media (width>=900px){.container{max-width:900px}}@media (width>=901px){.container{max-width:901px}}@media (width>=1000px){.container{max-width:1000px}}@media (width>=1120px){.container{max-width:1120px}}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-0\!{margin:0!important}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-auto{margin-top:auto}.mr-1{margin-right:var(--spacing)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-auto{margin-right:auto}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.-mb-5{margin-bottom:calc(var(--spacing) * -5)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-5\.5{margin-bottom:calc(var(--spacing) * 5.5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.fieldset-split{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}@media not all and (width>=1001px){.fieldset-split{grid-template-columns:minmax(0,1fr)}}.duplicate-row{grid-template-columns:var(--container-duplicate-cover) minmax(0, 1fr) 84px 84px 84px;display:grid}@media not all and (width>=901px){.duplicate-row{grid-template-columns:var(--container-duplicate-cover-narrow) minmax(0, 1fr) auto auto}}.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-company), 1fr));display:grid}@media not all and (width>=761px){.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr))}}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.card-grid-cover{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));display:grid}.index-grid-person{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr));display:grid}.index-tag-list{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-tag), 1fr));display:grid}.link-stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid}.review-asset-grid{grid-template-columns:repeat(auto-fill, minmax(var(--container-review-asset), 1fr));display:grid}.review-grid{grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--container-review-card)), 1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/4{aspect-ratio:3/4}.aspect-16\/10{aspect-ratio:16/10}.aspect-auto{aspect-ratio:auto}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-1\.75{width:calc(var(--spacing) * 1.75);height:calc(var(--spacing) * 1.75)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-3\.75{width:calc(var(--spacing) * 3.75);height:calc(var(--spacing) * 3.75)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-9\.5{width:calc(var(--spacing) * 9.5);height:calc(var(--spacing) * 9.5)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-17\.5{width:calc(var(--spacing) * 17.5);height:calc(var(--spacing) * 17.5)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-crop-preview{width:var(--spacing-crop-preview);height:var(--spacing-crop-preview)}.size-empty-glyph{width:var(--spacing-empty-glyph);height:var(--spacing-empty-glyph)}.size-full{width:100%;height:100%}.h-\(--crop-h\){height:var(--crop-h)}.h-\(--crop-t\){height:var(--crop-t)}.h-\(--tile-height\){height:var(--tile-height)}.h-0{height:0}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7\.5{height:calc(var(--spacing) * 7.5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-56{height:calc(var(--spacing) * 56)}.h-64{height:calc(var(--spacing) * 64)}.h-70{height:calc(var(--spacing) * 70)}.h-75{height:calc(var(--spacing) * 75)}.h-\[2px\]{height:2px}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.h-review-card{height:var(--spacing-review-card)}.h-review-card-tall{height:var(--spacing-review-card-tall)}.h-review-image{height:var(--spacing-review-image)}.max-h-22{max-height:calc(var(--spacing) * 22)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-130{max-height:calc(var(--spacing) * 130)}.max-h-\[240px\]{max-height:240px}.max-h-crop-frame{max-height:var(--spacing-crop-frame)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-9\.5{min-height:calc(var(--spacing) * 9.5)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-11\.5{min-height:calc(var(--spacing) * 11.5)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-30{min-height:calc(var(--spacing) * 30)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-33{min-height:calc(var(--spacing) * 33)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-52{min-height:calc(var(--spacing) * 52)}.min-h-60{min-height:calc(var(--spacing) * 60)}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-80{min-height:calc(var(--spacing) * 80)}.min-h-\[52px\]{min-height:52px}.w-\(--crop-l\){width:var(--crop-l)}.w-\(--crop-w\){width:var(--crop-w)}.w-\(--tile-width\){width:var(--tile-width)}.w-\(--trigger-width\){width:var(--trigger-width)}.w-0{width:0}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-24{width:calc(var(--spacing) * 24)}.w-37\.5{width:calc(var(--spacing) * 37.5)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[2px\]{width:2px}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-auto{width:auto}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-review-cover-narrow{width:var(--container-review-cover-narrow)}.max-w-80{max-width:calc(var(--spacing) * 80)}.max-w-90{max-width:calc(var(--spacing) * 90)}.max-w-190{max-width:calc(var(--spacing) * 190)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-cover-crop{max-width:var(--container-cover-crop)}.max-w-empty-copy{max-width:var(--container-empty-copy)}.max-w-form-modal{max-width:var(--container-form-modal)}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-7\.5{min-width:calc(var(--spacing) * 7.5)}.min-w-25{min-width:calc(var(--spacing) * 25)}.min-w-31{min-width:calc(var(--spacing) * 31)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-35{min-width:calc(var(--spacing) * 35)}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-50{min-width:calc(var(--spacing) * 50)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-50{flex-basis:calc(var(--spacing) * 50)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.columns-2{columns:2}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-2\.25{gap:calc(var(--spacing) * 2.25)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[2px\]{gap:2px}.gap-\[5px\]{gap:5px}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-2\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-7{column-gap:calc(var(--spacing) * 7)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.self-center{align-self:center}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2-5xl{border-radius:var(--radius-2-5xl)}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[2px\]{border-radius:2px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-floating{border-radius:var(--radius-floating)}.rounded-full{border-radius:2147483647px}.rounded-glass-key{border-radius:var(--radius-glass-key)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-surface{border-radius:var(--radius-surface)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.rounded-b-surface{border-bottom-right-radius:var(--radius-surface);border-bottom-left-radius:var(--radius-surface)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-\(--glass-low\){border-color:var(--glass-low)}.border-accent-600{border-color:var(--color-accent-600)}.border-border{border-color:var(--color-separator-border)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-border\/50{border-color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.border-current,.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/15{border-color:color-mix(in oklab, currentcolor 15%, transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/20{border-color:color-mix(in oklab, currentcolor 20%, transparent)}}.border-current\/35{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/35{border-color:color-mix(in oklab, currentcolor 35%, transparent)}}.border-separator-border{border-color:var(--color-separator-border)}.border-text-primary\/15{border-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.border-text-primary\/15{border-color:color-mix(in oklab, var(--color-text-primary) 15%, transparent)}}.border-transparent{border-color:#0000}.bg-\(--keep\)\/22{background-color:var(--keep)}@supports (color:color-mix(in lab, red, red)){.bg-\(--keep\)\/22{background-color:color-mix(in oklab, var(--keep) 22%, transparent)}}.bg-background{background-color:var(--color-background-primary-default)}.bg-background-full{background-color:var(--color-background-full)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-primary-hover{background-color:var(--color-background-primary-hover)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-background\/70{background-color:var(--color-background-primary-default)}@supports (color:color-mix(in lab, red, red)){.bg-background\/70{background-color:color-mix(in oklab, var(--color-background-primary-default) 70%, transparent)}}.bg-border-focus-ring{background-color:var(--color-border-focus-ring)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5,.bg-chart-5\/10{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.bg-chart-5\/10{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.bg-chart-6,.bg-chart-6\/10{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.bg-chart-6\/10{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.bg-chart-7\/10{background-color:var(--color-chart-7)}@supports (color:color-mix(in lab, red, red)){.bg-chart-7\/10{background-color:color-mix(in oklab, var(--color-chart-7) 10%, transparent)}}.bg-chart-8\/10{background-color:var(--color-chart-8)}@supports (color:color-mix(in lab, red, red)){.bg-chart-8\/10{background-color:color-mix(in oklab, var(--color-chart-8) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-foreground{background-color:var(--color-text-primary)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-muted-foreground{background-color:var(--color-text-secondary)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-lime-text{background-color:var(--color-status-lime-text)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-status-yellow-text{background-color:var(--color-status-yellow-text)}.bg-text-primary\/10{background-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.bg-text-primary\/10{background-color:color-mix(in oklab, var(--color-text-primary) 10%, transparent)}}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-text-white{background-color:var(--color-text-white)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\(image\:--crop-preview\){background-image:var(--crop-preview)}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-\(length\:--crop-preview-size\){background-size:var(--crop-preview-size)}.bg-\(position\:--crop-preview-at\){background-position:var(--crop-preview-at)}.bg-no-repeat{background-repeat:no-repeat}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.fill-chart-1{fill:var(--color-chart-1)}.fill-chart-2{fill:var(--color-chart-2)}.fill-chart-3{fill:var(--color-chart-3)}.fill-chart-4{fill:var(--color-chart-4)}.fill-chart-5{fill:var(--color-chart-5)}.fill-chart-6{fill:var(--color-chart-6)}.fill-chart-track{fill:var(--color-chart-track)}.fill-current{fill:currentColor}.fill-text-secondary{fill:var(--color-text-secondary)}.stroke-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\[1\.5px\]{padding:1.5px}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\.25{padding-block:calc(var(--spacing) * 1.25)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block:1px}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-10\.5{padding-bottom:calc(var(--spacing) * 10.5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-bold{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-display-4-medium\!{font-size:var(--text-display-4-medium)!important;line-height:var(--tw-leading,var(--text-display-4-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))!important}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-regular{font-size:var(--text-title-1-regular);line-height:var(--tw-leading,var(--text-title-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-regular--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-medium\!{font-size:var(--text-title-2-medium)!important;line-height:var(--tw-leading,var(--text-title-2-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))!important}.text-title-2-regular{font-size:var(--text-title-2-regular);line-height:var(--tw-leading,var(--text-title-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-regular--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-medium{font-size:var(--text-title-3-medium);line-height:var(--tw-leading,var(--text-title-3-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-medium--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.leading-4\.5{--tw-leading:calc(var(--spacing) * 4.5);line-height:calc(var(--spacing) * 4.5)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-empty-copy{--tw-leading:var(--leading-empty-copy);line-height:var(--leading-empty-copy)}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-caps{--tw-tracking:var(--tracking-caps);letter-spacing:var(--tracking-caps)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-\(--glass-text\)\/60{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/60{color:color-mix(in oklab, var(--glass-text) 60%, transparent)}}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-\(--keep\){color:var(--keep)}.text-accent-600{color:var(--color-accent-600)}.text-background{color:var(--color-background-primary-default)}.text-border,.text-border\/60{color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.text-border\/60{color:color-mix(in oklab, var(--color-separator-border) 60%, transparent)}}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-chart-5{color:var(--color-chart-5)}.text-chart-6{color:var(--color-chart-6)}.text-chart-7{color:var(--color-chart-7)}.text-chart-8{color:var(--color-chart-8)}.text-foreground{color:var(--color-text-primary)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-inherit{color:inherit}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-muted-foreground{color:var(--color-text-secondary)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.reveal-content{opacity:0;filter:blur(2px);transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-content[data-revealed]{opacity:1;filter:none}.reveal-skeleton{transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-skeleton[data-revealed]{opacity:0;filter:blur(2px)}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-card{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--elevation-xl);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background-full{--tw-ring-color:var(--color-background-full)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-sm{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\:border-border-checkbox-hover:is(:where(.group):hover *){border-color:var(--color-border-checkbox-hover)}.group-hover\:bg-background-primary-hover:is(:where(.group):hover *){background-color:var(--color-background-primary-hover)}.group-hover\:bg-foreground:is(:where(.group):hover *){background-color:var(--color-text-primary)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-selected\:border-border-focus-ring:is(:where(.group)[data-selected] *){border-color:var(--color-border-focus-ring)}.group-data-selected\:bg-accent-600:is(:where(.group)[data-selected] *){background-color:var(--color-accent-600)}.group-data-selected\:bg-background-primary-hover:is(:where(.group)[data-selected] *){background-color:var(--color-background-primary-hover)}.group-data-selected\:opacity-100:is(:where(.group)[data-selected] *){opacity:1}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);inset-block:0}.after\:-left-4:after{content:var(--tw-content);left:calc(var(--spacing) * -4)}.after\:w-11:after{content:var(--tw-content);width:calc(var(--spacing) * 11)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-1:first-child{padding-top:var(--spacing)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pb-1:last-child{padding-bottom:var(--spacing)}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-solid:hover{--tw-border-style:solid;border-style:solid}.hover\:border-\(--glass-rim\):hover{border-color:var(--glass-rim)}.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-\(--glass-pick-fill\):hover{background-color:var(--glass-pick-fill)}.hover\:bg-background-primary-hover:hover,.hover\:bg-background-primary-hover\/60:hover{background-color:var(--color-background-primary-hover)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-background-primary-hover\/60:hover{background-color:color-mix(in oklab, var(--color-background-primary-hover) 60%, transparent)}}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}.not-data-selected\:hover\:bg-card-hover:not([data-selected]):hover{background-color:var(--card-hover,transparent)}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:stroke-border-focus-ring:focus-visible{stroke:var(--color-border-focus-ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-3:focus-visible{--tw-ring-offset-width:3px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:-outline-offset-3:focus-visible{outline-offset:calc(3px * -1)}.focus-visible\:outline-border-focus-ring:focus-visible{outline-color:var(--color-border-focus-ring)}.focus-visible\:ring-inset:focus-visible{--tw-ring-inset:inset}.active\:cursor-grabbing:active{cursor:grabbing}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-busy\:cursor-wait[aria-busy=true]{cursor:wait}.aria-busy\:opacity-55[aria-busy=true]{opacity:.55}.aria-checked\:bg-background-tertiary-default[aria-checked=true]{background-color:var(--color-background-tertiary-default)}.aria-checked\:text-text-primary[aria-checked=true]{color:var(--color-text-primary)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-expanded\:bg-background-primary-hover[aria-expanded=true]{background-color:var(--color-background-primary-hover)}.aria-expanded\:text-foreground-icon-primary[aria-expanded=true]{color:var(--color-foreground-icon-primary)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:var(--color-chart-1)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-1) 10%, transparent)}}.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:var(--color-chart-2)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-2) 10%, transparent)}}.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:var(--color-chart-3)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-3) 10%, transparent)}}.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:var(--color-chart-4)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-4) 10%, transparent)}}.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.aria-pressed\:ring-1[aria-pressed=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-pressed\:ring-chart-1[aria-pressed=true]{--tw-ring-color:var(--color-chart-1)}.aria-pressed\:ring-chart-2[aria-pressed=true]{--tw-ring-color:var(--color-chart-2)}.aria-pressed\:ring-chart-3[aria-pressed=true]{--tw-ring-color:var(--color-chart-3)}.aria-pressed\:ring-chart-4[aria-pressed=true]{--tw-ring-color:var(--color-chart-4)}.aria-pressed\:ring-chart-5[aria-pressed=true]{--tw-ring-color:var(--color-chart-5)}.aria-pressed\:ring-chart-6[aria-pressed=true]{--tw-ring-color:var(--color-chart-6)}.aria-pressed\:ring-inset[aria-pressed=true]{--tw-ring-inset:inset}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:bg-background-tertiary-default[aria-selected=true]{background-color:var(--color-background-tertiary-default)}.aria-selected\:font-medium[aria-selected=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.aria-selected\:text-border-focus-ring[aria-selected=true]{color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-selected\:border-border-button-active[data-selected]{border-color:var(--color-border-button-active)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:shadow-none[data-selected]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:after\:pointer-events-none[data-selected]:after{content:var(--tw-content);pointer-events:none}.data-selected\:after\:absolute[data-selected]:after{content:var(--tw-content);position:absolute}.data-selected\:after\:inset-0[data-selected]:after{content:var(--tw-content);inset:0}.data-selected\:after\:z-1[data-selected]:after{content:var(--tw-content);z-index:1}.data-selected\:after\:rounded-\[inherit\][data-selected]:after{content:var(--tw-content);border-radius:inherit}.data-selected\:after\:border-2[data-selected]:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:2px}.data-selected\:after\:border-border-focus-ring[data-selected]:after{content:var(--tw-content);border-color:var(--color-border-focus-ring)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media not all and (width>=1120px){.max-plain-stat-pair\:grid-flow-row{grid-auto-flow:row}.max-plain-stat-pair\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (width>=1001px){.max-\[1001px\]\:justify-start{justify-content:flex-start}.max-\[1001px\]\:pt-0{padding-top:0}}@media not all and (width>=901px){.max-duplicate-narrow\:col-span-full{grid-column:1/-1}.max-duplicate-narrow\:col-start-2{grid-column-start:2}.max-duplicate-narrow\:-col-end-1{grid-column-end:calc(1 * -1)}}@media not all and (width>=761px){.max-board-narrow\:order-1{order:1}.max-board-narrow\:order-2{order:2}.max-board-narrow\:order-3{order:3}.max-board-narrow\:block{display:block}.max-cleanup-tight\:min-h-0{min-height:0}.max-board-narrow\:max-w-none{max-width:none}.max-board-narrow\:min-w-0{min-width:0}.max-board-narrow\:basis-40{flex-basis:calc(var(--spacing) * 40)}.max-board-narrow\:flex-col{flex-direction:column}.max-board-narrow\:items-stretch{align-items:stretch}.max-board-narrow\:gap-0{gap:0}.max-cleanup-tight\:gap-3{gap:calc(var(--spacing) * 3)}.max-cleanup-tight\:p-4\.5{padding:calc(var(--spacing) * 4.5)}.max-board-narrow\:px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.max-cleanup-tight\:px-4\.5{padding-inline:calc(var(--spacing) * 4.5)}.max-board-narrow\:text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.max-board-narrow\:text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}}@media not all and (width>=601px){.max-compact\:ml-0{margin-left:0}.max-compact\:w-full{width:100%}.max-compact\:flex-col{flex-direction:column}.max-compact\:items-start{align-items:flex-start}.max-compact\:gap-3{gap:calc(var(--spacing) * 3)}.max-compact\:p-4{padding:calc(var(--spacing) * 4)}}@media not all and (width>=560px){.max-plain-stat-single\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media not all and (width>=40rem){.max-sm\:-mx-4{margin-inline:calc(var(--spacing) * -4)}.max-sm\:size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.max-sm\:h-65{height:calc(var(--spacing) * 65)}.max-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-1\.5{gap:calc(var(--spacing) * 1.5)}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:p-4{padding:calc(var(--spacing) * 4)}.max-sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (width>=600px){.review-tight\:min-h-10{min-height:calc(var(--spacing) * 10)}.review-tight\:w-review-cover{width:var(--container-review-cover)}.review-tight\:px-3{padding-inline:calc(var(--spacing) * 3)}.review-tight\:py-2\.5{padding-block:calc(var(--spacing) * 2.5)}}@media (width>=900px){.review-split\:sticky{position:sticky}.review-split\:top-topbar{top:var(--spacing-topbar)}.review-split\:w-review-tabs{width:var(--container-review-tabs)}.review-split\:shrink-0{flex-shrink:0}.review-split\:flex-col{flex-direction:column}.review-split\:flex-row-reverse{flex-direction:row-reverse}.review-split\:flex-nowrap{flex-wrap:nowrap}.review-split\:items-start{align-items:flex-start}.review-split\:items-stretch{align-items:stretch}.review-split\:gap-6{gap:calc(var(--spacing) * 6)}}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:gap-4{gap:calc(var(--spacing) * 4)}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:w-72{width:calc(var(--spacing) * 72)}.md\:w-80{width:calc(var(--spacing) * 80)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:bg-background-primary-default:where(.dark,.dark *){background-color:var(--color-background-primary-default)}.dark\:bg-background-secondary-default:where(.dark,.dark *){background-color:var(--color-background-secondary-default)}.dark\:text-border:where(.dark,.dark *),.dark\:text-border\/50:where(.dark,.dark *){color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.dark\:text-border\/50:where(.dark,.dark *){color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}@media (hover:hover){.dark\:hover\:bg-background-primary-hover:where(.dark,.dark *):hover{background-color:var(--color-background-primary-hover)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--color-text-secondary)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--color-separator-border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--color-chart-track)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_img\]\:absolute img{position:absolute}.\[\&_img\]\:inset-0 img{inset:0}.\[\&_img\]\:block img{display:block}.\[\&_img\]\:size-full img{width:100%;height:100%}.\[\&_img\]\:max-h-none img{max-height:none}.\[\&_img\]\:max-w-none img{max-width:none}.\[\&_img\]\:object-cover img{object-fit:cover}.\[\&_img\]\:object-\(--face\) img{object-position:var(--face)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-text-secondary)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-media-sections]{flex-direction:column;gap:16px;min-width:0;display:flex}.peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-media-grid]>[data-media-card]:not([data-variant=resource],[data-variant=junk]){align-self:start}body[data-surface=\/trash] .peach-react [data-media-grid]>[data-media-card]{align-self:stretch}.peach-react [data-media-next-row]{gap:11px;display:flex}body[data-surface=\/trash] .peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card]{font:var(--board-body);border-radius:var(--surface-radius);cursor:pointer;transform-origin:50%;background:0 0;flex-direction:column;gap:8px;min-width:0;transition:transform .18s,filter .18s,background-color .15s,box-shadow .15s;display:flex;position:relative;overflow:visible}.peach-react [data-media-card][data-variant=short]{flex:none;width:214px}.peach-react [data-media-card][data-variant=next]{flex:none;width:216px}body[data-density=dense] .peach-react [data-media-card][data-variant=short]{width:107px}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):is(:hover,:focus-within){background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):hover [data-media-pic]{filter:saturate(.9)brightness(.94)}.peach-react [data-select-mode] [data-media-card]{cursor:default}.peach-react [data-select-mode] :is([data-media-open],[data-media-preview],[data-media-later],[data-media-seek]),.peach-react [data-select-mode] :is([data-media-later],[data-media-seek]) button{pointer-events:none!important}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card][data-longhover]{z-index:8;filter:brightness(1.04);transform:translateY(-7px)scale(1.065)}}body[data-surface=\/trash] .peach-react [data-media-card]{border:1px solid var(--line-soft);background:var(--color-background-primary-default);gap:0;overflow:hidden}body[data-surface=\/trash] .peach-react [data-media-card] [data-media-pic]{border-radius:0}.peach-react [data-media-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-media-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-card]>:is([data-media-pic],[data-media-stack],[data-media-meta]){z-index:2;position:relative}.peach-react [data-media-meta]{--card-meta-byline:1lh;--card-meta-tags:0px;--card-meta-block:calc(var(--fs-md) * 2.7 + 3px + var(--card-meta-byline) + var(--card-meta-tags))}.peach-react [data-media-meta]:has(>[data-media-text]>[data-media-tags]){--card-meta-tags:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 3px)}.peach-react [data-media-card]:not([data-variant=next]) :is([data-media-pic],[data-media-meta]){content-visibility:auto}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]{pointer-events:none;contain-intrinsic-block-size:auto var(--card-meta-block);flex-shrink:0;margin:-8px;padding:8px}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]>*{pointer-events:auto}.peach-react [data-media-pic]{aspect-ratio:var(--card-ratio,16 / 9);border-radius:var(--surface-radius);background:#000;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.peach-react [data-media-pic]:before{content:"";pointer-events:none;background:var(--cover-blur,none) center / cover no-repeat;filter:blur(26px)brightness(.5);position:absolute;inset:-8%}.peach-react [data-media-pic]:has(>[data-media-art=cover]){background:0 0}.peach-react [data-media-stack] [data-media-pic]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-card][data-selected] [data-media-pic]:after{content:"";z-index:6;box-sizing:border-box;border:2px solid var(--on-media);border-radius:inherit;pointer-events:none;position:absolute;inset:0}.peach-react [data-media-art]{display:block;position:absolute;inset:0}.peach-react [data-media-nopic]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.12em;text-transform:uppercase}.peach-react [data-media-pic]>:is(video,img){object-fit:contain;background:#000;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-media-pic]>video{opacity:0;transition:opacity .2s}.peach-react [data-media-pic]>video[data-playing]{opacity:1}.peach-react [data-media-stack]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{content:"";z-index:0;border:1px solid var(--border-15);border-radius:inherit;background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-media-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-media-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-media-stack] [data-media-pic]{z-index:1}.peach-react [data-media-badge]{z-index:2;background:var(--glass-fill);min-height:24px;box-shadow:inset 0 1px 0 var(--glass-rim), var(--glass-shadow);-webkit-backdrop-filter:blur(16px)saturate(145%);backdrop-filter:blur(16px)saturate(145%);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:4px;padding:4px;transition:opacity .15s;display:flex;position:absolute;top:6px;left:6px}.peach-react [data-media-badge]>span{background:0 0;width:20px;height:20px;padding:0}.peach-react [data-media-duration]{z-index:2;border-radius:var(--badge-radius);color:#f2eadf;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;background:#000000b3;padding:2px 6px;transition:opacity .15s;position:absolute;bottom:6px;right:6px}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card]:hover :is([data-media-badge],[data-media-duration]){opacity:0}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react [data-media-badge]{background:var(--ground);-webkit-backdrop-filter:none}}.peach-react [data-media-group]{z-index:6;border-radius:var(--control-radius);color:#fff;min-height:27px;font-size:var(--fs-xs);-webkit-backdrop-filter:blur(10px);background:#0c0808b8;padding:5px 9px;font-weight:600;position:absolute;top:9px;right:9px}.peach-react [data-media-scrub]{z-index:2;background:#00000073;height:3px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-scrub]>i{width:var(--media-fill);background:var(--loupe);height:100%;display:block}.peach-react [data-media-progress]{z-index:5;background:#ffffff4d;height:4px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-progress]>i{width:var(--media-fill);background:var(--tungsten);height:100%;display:block}.peach-react [data-media-check]{z-index:8;color:#ffffffb8;-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000057;border:1px solid #ffffff47;border-radius:50%;place-items:center;width:26px;height:26px;display:none;position:absolute;top:10px;right:10px}.peach-react :is([data-select-mode] [data-media-check],[data-media-card][data-selected] [data-media-check]){display:grid}.peach-react [data-media-card][data-selected] [data-media-check]{border-color:var(--on-media);background:var(--on-media);color:var(--on-media-ink);box-shadow:0 3px 12px #0008}.peach-react [data-media-trash-mark]{z-index:7;border-radius:var(--badge-radius);color:#ffb14a;height:28px;font-size:var(--fs-xs);-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000094;border:1px solid #ffb14a66;align-items:center;gap:5px;padding:0 9px;font-weight:600;display:none;position:absolute;bottom:10px;left:10px}.peach-react [data-pending-delete] [data-media-trash-mark]{display:flex}.peach-react [data-pending-delete] :is([data-media-art]>img,[data-media-pic]>:is(video,img)){filter:grayscale(.9)brightness(.54);opacity:.68}.peach-react [data-pending-delete] [data-media-pic]:before{filter:blur(26px)grayscale(.9)brightness(.27);opacity:.68}.peach-react [data-pending-delete] [data-media-meta]{opacity:.58}.peach-react [data-pending-delete]:hover [data-media-meta]{opacity:.76}.peach-react [data-media-card] :is([data-media-check],[data-media-trash-mark],[data-media-later],[data-media-seek],[data-media-glyph],[data-media-kind-glyph],[data-media-resource-action]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.peach-react [data-media-check] svg{width:16px;height:16px}.peach-react [data-media-trash-mark] svg{width:14px;height:14px}.peach-react [data-media-preview]{z-index:4;color:#fff;cursor:pointer;opacity:0;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:0;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;transition:transform .15s,opacity .15s;display:grid;position:absolute;top:12px;right:12px}.peach-react [data-previewing] [data-media-preview]{opacity:1;pointer-events:auto}.peach-react [data-longhover] [data-media-preview]{opacity:0;pointer-events:none}.peach-react [data-media-preview]:hover{transform:scale(1.2)}.peach-react [data-media-preview]>svg:first-child{width:36px;height:36px;position:absolute;inset:0;transform:rotate(-90deg)}.peach-react [data-media-preview] circle{fill:none;stroke-width:2px}.peach-react [data-media-preview] circle:first-child{stroke:#ffffff2e}.peach-react [data-media-preview] circle:last-child{stroke:#fff;stroke-linecap:round;stroke-dasharray:106.814;stroke-dashoffset:106.814px}.peach-react [data-previewing] [data-media-preview] circle:last-child{animation:preview-arc var(--hover-delay) linear forwards}.peach-react [data-longhover] [data-media-preview] circle:last-child{animation:none}@keyframes preview-arc{to{stroke-dashoffset:0}}.peach-react [data-media-ring-play]{fill:none;stroke:#fff;stroke-width:2px;width:14px;height:14px;margin-left:1px;position:relative}.peach-react :is([data-media-later],[data-media-seek]){z-index:4;opacity:0;pointer-events:none;align-items:center;gap:14px;transition:opacity .15s;display:flex;position:absolute}.peach-react [data-media-seek]{inset:50% auto auto 50%;transform:translate(-50%,-50%)}.peach-react [data-media-later]{bottom:12px;right:12px}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]){opacity:1}.peach-react :is([data-media-later],[data-media-seek]) button{color:#fff;cursor:pointer;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:1px solid #ffffff1f;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;transition:transform .15s,background .15s;display:flex;position:relative}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]) button{pointer-events:auto}.peach-react :is([data-media-later],[data-media-seek]) button:hover{background:#00000057;transform:scale(1.12)}.peach-react [data-media-seek] svg{width:34px;height:34px}.peach-react [data-media-later] button{width:36px;height:36px;padding:0}.peach-react [data-media-later] svg{width:21px;height:21px}.peach-react [data-media-later] button[aria-pressed=true]{background:var(--ink);color:var(--ground)}.peach-react [data-media-meta]{gap:10px;min-width:0;display:flex}.peach-react [data-media-avatar]{background:var(--sunk);width:38px;height:38px;color:inherit;cursor:pointer;border:0;border-radius:50%;flex:none;margin-top:2px;padding:0;position:relative;overflow:hidden}.peach-react button[data-media-avatar]:hover{box-shadow:0 0 0 2px var(--ink-2)}.peach-react [data-media-avatar]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-media-avatar]>span:first-child{color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:var(--fs-sm);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-media-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-media-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-media-avatars]>[data-media-avatar]{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion));margin-top:0}.peach-react [data-media-avatars]>*+*{margin-left:-22px}.peach-react [data-media-avatars]>:first-child{z-index:5}.peach-react [data-media-avatars]>:nth-child(2){z-index:4}.peach-react [data-media-avatars]>:nth-child(3){z-index:3}.peach-react [data-media-avatars]>:nth-child(4){z-index:2}.peach-react [data-media-avatars]>:nth-child(5){z-index:1}.peach-react [data-media-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-variant=next] [data-media-avatars]>:nth-child(n+3){display:none}.peach-react [data-media-text]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.peach-react [data-media-title]{width:100%;min-height:2.7em;max-height:2.7em;color:inherit;font-size:var(--fs-md);text-align:left;word-break:break-all;cursor:pointer;-webkit-line-clamp:2;background:0 0;border:0;-webkit-box-orient:vertical;padding:0;line-height:1.35;display:-webkit-box;overflow:hidden}.peach-react span[data-media-title]{cursor:default}.peach-react [data-media-byline]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.peach-react [data-media-who]{min-width:0;max-width:100%;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;background:0 0;border:0;padding:0;display:inline-block;overflow:hidden}.peach-react button[data-media-who]{cursor:pointer}.peach-react span[data-media-who]{cursor:default}.peach-react [data-media-who-more]{color:var(--muted)}.peach-react [data-media-flags]{gap:3px;margin-left:auto;display:flex}.peach-react [data-media-flags]>i{width:6px;height:6px;display:block}.peach-react [data-flag=dislike]{background:var(--drop)}.peach-react [data-flag=seen]{background:var(--muted)}.peach-react [data-flag=dispose]{background:var(--meter)}.peach-react [data-flag=later]{background:var(--ink)}.peach-react [data-variant=next] [data-media-why]{color:var(--loupe)}.peach-react [data-variant=next] [data-media-byline]{flex-wrap:nowrap;overflow:hidden}.peach-react [data-variant=next] [data-media-who]{flex:0 auto;max-width:55%}.peach-react [data-variant=next] [data-media-who-more]{white-space:nowrap;flex:none}.peach-react [data-variant=next] [data-media-why]{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.peach-react [data-variant=next] :is([data-media-size],[data-media-watch-count]){display:none}.peach-react [data-media-tags]{height:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 8px);pointer-events:none;flex-wrap:wrap;align-content:flex-start;gap:5px;min-width:0;margin:-4px;padding:4px;display:flex;overflow:hidden}.peach-react [data-media-tags]>*{pointer-events:auto}.peach-react [data-media-tag]{max-width:100%;padding:var(--tag-pad-y) var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:1.45;overflow:hidden}.peach-react [data-media-tag]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-media-tag]:disabled{cursor:not-allowed}@media (width<=760px){.peach-react [data-media-tags]>:nth-child(n+3){display:none}}body[data-density=dense] .peach-react [data-media-grid]>[data-media-card]{padding-top:7px}body[data-density=dense] .peach-react [data-media-card] [data-media-meta]{--card-meta-block:calc(2.7em + 36px)}body[data-density=dense] .peach-react [data-media-card] [data-media-text]{height:calc(var(--card-meta-block) + 8px);pointer-events:none;grid-template-rows:1.35em 1.35em 30px;gap:3px;margin:-4px;padding:4px;display:grid;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-text]>:not([data-media-tags]){pointer-events:auto}body[data-density=dense] .peach-react [data-media-card] [data-media-title]{text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:unset;max-width:100%;min-height:1.35em;display:block;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-byline]{white-space:nowrap;flex-wrap:nowrap;height:1.35em;min-height:0;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-who]{flex:0 auto}body[data-density=dense] .peach-react [data-media-card] :is([data-media-who-more],[data-media-size]){white-space:nowrap;flex:none}body[data-density=dense] .peach-react [data-media-card] :is([data-media-why],[data-media-watch-count]){display:none}body[data-density=dense] .peach-react [data-media-card] [data-media-tags]{flex-wrap:nowrap;align-items:flex-start;height:38px;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-tag]:nth-child(n+2){display:none}.peach-react [data-media-glyph]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.08em;place-items:center;gap:8px;display:grid}.peach-react [data-media-glyph] svg{width:32px;height:32px}.peach-react [data-media-glyph] b{font-weight:inherit}.peach-react [data-media-kind-glyph]{cursor:default;place-items:center;display:grid}.peach-react [data-media-kind-glyph] svg{width:19px;height:19px}.peach-react [data-media-resource-action]{z-index:5;border-radius:var(--control-radius);color:#fff;min-height:32px;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:saturate(1.5)blur(10px);background:#000000a3;border:1px solid #ffffff40;align-items:center;gap:6px;padding:0 10px;display:inline-flex;position:absolute;bottom:10px;right:10px}.peach-react [data-media-resource-action]:hover:not([aria-busy]){background:var(--hover);color:var(--ink)}.peach-react [data-media-resource-action]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-resource-action][aria-busy]{cursor:wait;opacity:.72}.peach-react [data-media-resource-action] svg{width:15px;height:15px}.peach-react [data-shorts-strip]{border-radius:var(--floating-radius);background:var(--ground);font:var(--board-body);border:0;padding:16px}.peach-react [data-shorts-strip]>h2{font-size:var(--fs-lg);align-items:center;gap:10px;margin:0 0 11px;font-weight:600;display:flex}.peach-react [data-shorts-count]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-shorts-enter]{border-radius:var(--pill-radius);background:var(--overlay-5);min-height:48px;color:var(--ink);font-family:inherit;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:blur(12px);transition:background .14s, translate .14s, scale calc(var(--spring-press-ms) * 1ms) var(--spring-press);border:0;align-items:center;gap:7px;margin-left:auto;padding:0 16px;display:inline-flex}.peach-react [data-shorts-enter]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-shorts-enter]:hover{background:color-mix(in srgb, var(--ink) 16%, transparent)}}.peach-react [data-shorts-enter]:hover{translate:0 -1px}.peach-react [data-shorts-enter]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-shorts-enter] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-shorts-row]{scrollbar-width:none;gap:13px;padding-bottom:7px;display:flex;overflow-x:auto}.peach-react [data-shorts-row]::-webkit-scrollbar{display:none}@media (width>=761px){.peach-react [data-shorts-strip]{margin-left:calc(-1 * (var(--railW) + 16px));padding-left:calc(var(--railW) + 32px);border-radius:0 var(--floating-radius) var(--floating-radius) 0}.peach-react [data-shorts-row]{margin-left:calc(-1 * (var(--railW) + 32px));padding-left:calc(var(--railW) + 32px)}}.peach-react [data-mix-glyph]{border:1px solid var(--border-10);background:var(--overlay-5);width:40px;height:40px;color:var(--ink);border-radius:50%;flex:none;place-items:center;display:grid}.peach-react [data-mix-glyph] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-media-grid]>[data-mix-card]{border-radius:var(--surface-radius);font:var(--board-body)}.peach-react [data-media-grid]>[data-mix-card] [data-mix-cover]{content-visibility:auto}.peach-react [data-media-grid] [data-mix-cover]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-grid] [data-mix-badge]{letter-spacing:normal;line-height:inherit}.peach-react [data-media-grid] [data-mix-title]{font-family:inherit;font-size:var(--fs-md);letter-spacing:normal;color:inherit;font-weight:700;line-height:1.45}.peach-react [data-media-grid] [data-mix-caption]{font-family:inherit;font-size:var(--fs-xs);line-height:inherit;letter-spacing:normal;color:var(--muted);margin-top:2px}.peach-react [data-media-grid]>[data-mix-card]:is(:hover,:focus-within){border-radius:var(--surface-radius);background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-load-more]{min-height:42px;color:var(--muted);text-align:center;margin:18px auto 0;padding:12px}.peach-react [data-entity-more]{border:1px solid var(--line);min-width:124px;height:36px;min-height:36px;color:var(--ink);cursor:pointer;background:0 0;border-radius:10px;justify-content:center;align-items:center;margin:20px auto 0;padding:0 12px;font-size:14px;font-weight:500;display:flex}.peach-react [data-entity-more]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-entity-more][aria-busy]{cursor:wait;opacity:.5}.peach-react [data-grid-reveal]{position:relative}.peach-react [data-grid-reveal]>[data-grid-fade]{z-index:2;pointer-events:none;animation:grid-skeleton-out var(--motion-reveal) forwards;position:absolute;inset:0;overflow:hidden}.peach-react [data-grid-reveal]>:not([data-grid-fade]){animation:skel-reveal-in var(--motion-reveal) backwards}@keyframes grid-skeleton-out{0%{opacity:1;filter:blur()}to{opacity:0;filter:blur(2px)}}.peach-react [data-junk-count]{flex-direction:column;gap:16px;display:flex}.peach-react [data-junk-filters-frame]{min-width:0;position:relative}.peach-react [data-junk-filters]{scrollbar-width:none;border-radius:var(--surface-radius);background:var(--color-background-primary-default);min-width:0;color:var(--ink-2);font-size:var(--fs-xs);align-items:center;gap:8px;padding:12px;display:flex;overflow-x:auto}.peach-react [data-junk-filters]::-webkit-scrollbar{display:none}html:not(.dark) .peach-react [data-junk-filters]{background:var(--color-background-secondary-default)}.peach-react [data-junk-filters] a{box-sizing:border-box;border-radius:var(--control-radius);height:32px;color:var(--muted);font-size:var(--fs-sm);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:6px;padding:0 12px;font-weight:400;text-decoration:none;display:inline-flex}.peach-react [data-junk-filters] a:hover{color:var(--ink)}.peach-react [data-junk-filters] a[aria-current=page]{background:var(--picked);color:var(--ink)}.peach-react [data-junk-filters] a:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-filters] a>svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-junk-filters] [data-count-badge]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-junk-divider]{background:var(--line-soft);flex:none;width:1px;height:20px;margin:0 6px}.peach-react [data-media-grid][data-junk-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card][data-junk-card]{border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--color-background-primary-default);cursor:default;content-visibility:auto;contain-intrinsic-size:auto 360px;gap:0;overflow:hidden}.peach-react [data-junk-card] [data-media-art]>img{object-fit:contain}.peach-react [data-junk-card] [data-media-glyph] b{font-weight:700}.peach-react [data-junk-meta]{gap:6px;min-width:0;padding:20px;display:grid}.peach-react [data-junk-title]{width:100%;min-width:0;color:var(--ink);font:inherit;text-align:left;background:0 0;border:0;padding:0;font-weight:600;line-height:1.4;display:block}.peach-react button[data-junk-title]{cursor:pointer}.peach-react button[data-junk-title]:hover{color:var(--ink-2)}.peach-react button[data-junk-title]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px;border-radius:var(--control-radius)}.peach-react [data-junk-facts]{min-width:0;color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:7px;display:flex}.peach-react [data-junk-why]{overflow-wrap:anywhere}.peach-react [data-junk-size]{white-space:nowrap;margin-left:auto}.peach-react [data-junk-actions]{border-top:1px solid var(--line-soft);background:var(--color-background-secondary-default);grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding:12px;display:grid}.peach-react [data-junk-actions] button{box-sizing:border-box;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);min-width:0;height:36px;min-height:36px;box-shadow:var(--elevation-xs);color:var(--ink);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;display:inline-flex}.peach-react [data-junk-actions] button:hover:not([aria-busy]){background:var(--inset);color:var(--ink)}.peach-react [data-junk-actions] button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-actions] button[aria-busy]{cursor:wait;opacity:.64}.peach-react [data-junk-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:15px;height:15px}.peach-react [data-junk-spinner]{flex:none;display:inline-flex}.peach-react [data-junk-actions] button[data-junk-action=dispose]{isolation:isolate;background:var(--board-red);color:#fff;font:inherit;font-size:var(--fs-xs);border:0;padding:0 10px;position:relative}.peach-react [data-junk-actions] button[data-junk-action=dispose]:before{content:"";z-index:-1;border-radius:inherit;background:var(--board-red-hover);opacity:0;pointer-events:none;transition:opacity .15s;position:absolute;inset:0}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]){background:var(--board-red);color:#fff}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]):before{opacity:1}.peach-react [data-junk-actions] button[data-junk-action=dispose]:active{background:var(--board-red-active)}.peach-react [data-junk-state]{color:var(--drop);font-size:var(--fs-xs);grid-column:1/-1}.peach-react [data-junk-state]:empty{display:none}.peach-react [data-select-mode] [data-junk-actions]{pointer-events:none;opacity:.52}body[data-density=dense] .peach-react [data-junk-actions] [data-junk-label]{display:none}@media (width<=760px){.peach-react [data-junk-filters] a{height:44px}.peach-react [data-junk-actions] button{min-height:44px}.peach-react [data-junk-actions] button[data-junk-action=dispose]{padding-inline:7px}}.peach-react [data-entity-card]{background:var(--ground);min-width:0;max-width:100%;color:var(--ink);font:var(--board-body);letter-spacing:0;border-radius:18px;flex-direction:column;margin:0 0 22px;display:flex;overflow:hidden}.peach-react [data-entity-card] :is(a,button,[tabindex]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-profile]{--portrait-size:120px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;min-width:0;padding:20px;display:grid}.peach-react [data-entity-profile]:has(>[data-entity-identity]>[data-entity-links]):has(>[data-entity-identity]>[data-entry-marks]){--portrait-size:160px}#index[data-hero-wide] .peach-react [data-entity-profile]:has(>[data-entity-facts]){grid-template-columns:auto minmax(0,1fr) minmax(280px,360px)}.peach-react [data-entity-portrait-wrap]{align-self:stretch;align-items:center;width:max-content;max-width:100%;display:flex;position:relative}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]{top:calc((100% - var(--portrait-size)) / 2);height:var(--portrait-size);pointer-events:none;position:absolute;left:0;right:0}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]>*{pointer-events:auto}.peach-react [data-entity-portrait]{width:auto;max-width:100%;height:var(--portrait-size);aspect-ratio:1;background:var(--overlay-5);color:var(--muted);font-size:var(--fs-4xl);border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.peach-react [data-entity-portrait=square]{border-radius:var(--floating-radius)}.peach-react [data-entity-portrait]>span{grid-area:1/1}.peach-react [data-entity-portrait]:has(img)>span{display:none}.peach-react [data-entity-portrait] img{z-index:1;object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-entity-portrait]:is([data-fit-native=mark],[data-native-small=true]) img{width:var(--markw,100%);height:var(--markh,100%);object-fit:contain;max-width:100%;max-height:100%;margin:auto}.peach-react [data-entity-identity]{min-width:0;max-width:100%}.peach-react [data-entity-title]{align-items:center;gap:8px;min-width:0;margin:0 0 9px;display:flex}.peach-react [data-entity-title] h2{letter-spacing:0;overflow-wrap:anywhere;margin:0;font-size:24px;font-weight:500;line-height:32px}.peach-react [data-namepick-toggle]{border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);width:32px;height:32px;color:var(--muted);cursor:pointer;flex:none;place-items:center;padding:0;display:grid}.peach-react [data-namepick-toggle][data-hovered]{background:var(--hover);color:var(--ink)}.peach-react [data-namepick-toggle] svg,.peach-react [data-namepick-menu] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-entity-alias]{color:var(--muted);overflow-wrap:anywhere;margin-bottom:0;font-size:14px;line-height:20px}.peach-react [data-entity-alias] b{color:var(--ink);font-weight:inherit}.peach-react [data-entity-alias=meta]{flex-wrap:wrap;align-items:center;gap:4px 18px;display:flex}.peach-react [data-meta-item]{align-items:center;gap:6px;min-width:0;display:inline-flex}.peach-react [data-meta-item=names]{flex-wrap:wrap}.peach-react [data-meta-item]>svg,.peach-react [data-entity-facts] dt svg{width:16px;height:16px;color:var(--muted);fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none}.peach-react [data-alias-names]>span+span:before,.peach-react [data-hero-pop] dd>span+span:before{color:var(--muted);content:"·";margin:0 6px}.peach-react [data-entity-alias] a{color:var(--tungsten);cursor:pointer;text-decoration:none}.peach-react [data-entity-alias] a:hover{color:var(--ink)}.peach-react [data-hero-more]{border:1px solid var(--line);border-radius:var(--pill-radius);height:22px;color:var(--ink);font:inherit;font-size:var(--fs-xs);cursor:pointer;background:0 0;margin-left:4px;padding:0 8px}.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-hero-more=fact]{margin-left:0}.peach-react [data-hero-pop]{z-index:var(--layer-popover);box-sizing:border-box;overscroll-behavior:contain;border:1px solid var(--line);background:var(--surface);width:max-content;max-width:min(440px,100vw - 16px);max-height:calc(100dvh - 16px);color:var(--ink);font-size:var(--fs-sm);text-align:left;transform-origin:0 0;border-radius:16px;gap:8px;margin:0;padding:12px 14px;line-height:1.5;animation:.15s ease-out backwards board-menu-in;display:grid;position:fixed;inset:auto;overflow:hidden auto;box-shadow:0 12px 24px -4px var(--lightningcss-light,#0000001a)var(--lightningcss-dark,#0000008c),0 4px 8px -2px var(--lightningcss-light,#0000000d)var(--lightningcss-dark,#00000073)}.peach-react [data-hero-pop]:not(:popover-open){display:none}.peach-react [data-hero-pop-head]{margin:0;font-weight:500}.peach-react [data-hero-pop] dl{grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;display:grid}.peach-react [data-hero-pop] dt{color:var(--muted);white-space:nowrap}.peach-react [data-hero-pop] dd{overflow-wrap:anywhere;min-width:0;margin:0}.peach-react [data-hero-pop] dd[data-wide]{grid-column:1/-1}.peach-react [data-hero-pop] small{color:var(--muted);font-size:inherit;margin-left:4px}.peach-react [data-entity-facts]{border-left:1px solid var(--line-soft);min-width:0;font-size:var(--fs-sm);text-align:left;grid-template-columns:auto minmax(0,1fr);align-content:center;place-self:stretch stretch;gap:10px 16px;margin:0;padding:2px 0 2px 24px;line-height:22px;display:grid}#index:not([data-hero-wide]) .peach-react [data-entity-facts]{border-top:1px solid var(--line-soft);border-left:0;grid-column:1/-1;padding:14px 0 0}.peach-react [data-entity-facts] dt{color:var(--muted);white-space:nowrap;align-self:start;align-items:center;gap:6px;display:flex}.peach-react [data-entity-facts] dd{min-width:0;color:var(--ink);margin:0}.peach-react [data-entity-facts] :is([data-fact-tone=num],dd[data-fact=num]){font-variant-numeric:tabular-nums}.peach-react [data-entity-facts] [data-fact-tone=sub]{color:var(--muted)}.peach-react [data-entity-facts] dd[data-fact=clip]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react :is(dd[data-fact=tags],[data-fact-tags]){flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-fact-tag]{padding:0 var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);white-space:nowrap;line-height:20px}.peach-react [data-entity-links]{flex-wrap:wrap;gap:8px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entity-links]>:is(a,span)[data-link]{box-sizing:border-box;border:1px solid var(--line);min-width:0;max-width:100%;height:36px;min-height:0;box-shadow:none;color:var(--ink);background:0 0;border-radius:10px;align-items:center;gap:8px;padding:0 12px 0 8px;font-size:13px;font-weight:400;text-decoration:none;display:inline-flex;overflow:hidden}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{border-color:var(--line);background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{text-decoration:none}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=private],[data-link=gone]){color:var(--muted);border-style:dashed}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=icon],[data-link=gone]){justify-content:center;gap:0;width:36px;padding:0}.peach-react [data-entity-card] [data-entity-links]>[data-link=url]{letter-spacing:.02em}.peach-react [data-link-label]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-link-icon]{border-radius:var(--badge-radius);background:0 0;flex:none;place-items:center;width:20px;height:20px;display:grid;position:relative;overflow:hidden}.peach-react [data-link-icon] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-link-icon] img{background:var(--sunk);object-fit:cover;width:100%;max-width:none;height:100%;position:absolute;inset:0}.peach-react [data-link-icon=brand] svg{stroke:none;filter:none;width:100%;height:100%}.peach-react [data-entry-marks]{flex-wrap:wrap;align-items:center;gap:32px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]{border-radius:var(--control-radius);min-width:0;min-height:20px;box-shadow:none;color:var(--ink);background:0 0;border:0;align-items:center;gap:6px;margin:-4px -8px;padding:4px 8px;font-weight:500;text-decoration:none;display:inline-flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{text-decoration:none}.peach-react [data-entry-mark] svg{width:auto;height:22px}.peach-react [data-entry-ordinal]{color:var(--muted);font-size:var(--fs-sm)}.peach-react [data-missav-mark]{font-family:Halant,Georgia,Times New Roman,serif;font-size:var(--fs-xl);letter-spacing:.01em;white-space:nowrap;font-weight:500;line-height:22px}.peach-react [data-missav-mark]>span:last-child{color:#fe628e}@keyframes entryfeed-breathe{0%,to{color:var(--ink)}50%{color:var(--feed-mark)}}.peach-react [data-entry-feed]{border-radius:var(--control-radius);color:var(--ink);cursor:pointer;align-items:center;margin:-4px;padding:4px;display:inline-flex;position:relative}.peach-react [data-entry-feed]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entry-feed]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entry-feed]:has(:checked){color:var(--feed-mark)}.peach-react [data-entry-feed]:has(:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entry-feed]:has([aria-busy=true]){opacity:.6;cursor:progress}.peach-react [data-entry-feed]>svg{fill:none;stroke:currentColor;stroke-width:2px;width:22px;height:22px}.peach-react [data-entry-feed]:not(:has(:checked)){animation:2.4s ease-in-out infinite entryfeed-breathe}.peach-react [data-entry-feed]:not(:has(:checked)):is(:hover,:has(:focus-visible)){color:var(--feed-mark);animation:none}.peach-react [data-entity-feed]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.peach-react [data-entry-feed-tip]{z-index:var(--layer-tooltip);border-radius:var(--surface-radius);background:var(--ink);width:max-content;max-width:250px;color:var(--ground);font-size:var(--fs-sm);white-space:normal;pointer-events:none;border:0;margin:0;padding:6px 8px;font-weight:400;line-height:1.3;position:fixed;inset:auto;overflow:visible}.peach-react [data-entity-foot]{border-top:1px solid var(--line-soft);background:var(--board-card-foot);align-items:center;gap:16px;min-width:0;padding:12px 20px;display:flex}.peach-react [data-related-people]{scrollbar-width:none;overscroll-behavior-inline:contain;flex:1;align-items:center;gap:4px;min-width:0;margin-top:-3px;padding-top:3px;display:flex;overflow-x:auto}.peach-react [data-related-people]::-webkit-scrollbar{display:none}.peach-react [data-related-people]>button{width:76px;max-width:none;height:auto;color:var(--muted);font:var(--board-body-medium);text-align:center;white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;border-radius:12px;flex-direction:column;flex:none;align-items:center;gap:6px;padding:6px 4px;display:flex}.peach-react [data-related-people]>button:hover{background:var(--hover);color:var(--ink)}.peach-react [data-related-people]>button:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-hero-ring]{background:var(--ink);border-radius:50%;flex:none;width:48px;height:48px;margin:0;display:block;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-ring]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-hero-ring]{color:var(--muted);font:600 18px/24px var(--board-font)}.peach-react [data-hero-ring]>span{color:inherit;font:inherit;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-hero-ring]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-hero-costar-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-namepick-menu]{width:min(260px,100vw - 16px);font:var(--board-body);letter-spacing:0}.peach-react [data-namepick-list],.peach-react [data-namepick-list]>section{outline:none;gap:2px;display:grid}.peach-react [data-namepick-menu] [role^=menuitem]{box-sizing:border-box;width:100%;min-height:36px;color:var(--muted);text-align:left;overflow-wrap:anywhere;cursor:pointer;background:0 0;border-radius:10px;outline:none;justify-content:flex-start;align-items:center;gap:8px;padding:8px;display:flex}.peach-react [data-namepick-menu] [role^=menuitem]:is([data-hovered],[data-focus-visible]){background:var(--hover);color:var(--ink)}.peach-react [data-namepick-menu] [role=menuitemradio] svg{visibility:hidden}.peach-react [data-namepick-menu] [aria-checked=true]{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-namepick-menu] [aria-checked=true]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-namepick-menu] [aria-checked=true]{color:var(--ink)}.peach-react [data-namepick-menu] [aria-checked=true] svg{visibility:visible}.peach-react [data-namepick-rule]{border:0;border-top:1px solid var(--border-10);height:0;margin:4px 1px}@media (width<=760px){.peach-react [data-entity-profile]{text-align:center;grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px;padding:16px}.peach-react [data-entity-portrait-wrap]{--portrait-size:96px}.peach-react [data-entity-portrait]{width:96px}.peach-react [data-entity-identity]{width:100%}.peach-react [data-entity-foot]{padding:10px 16px}.peach-react [data-entity-title]{justify-content:center}.peach-react [data-namepick-toggle]{position:relative}.peach-react [data-namepick-toggle]:after{content:"";width:44px;height:44px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.peach-react [data-namepick-menu] [role^=menuitem]{min-height:44px}.peach-react [data-entity-alias]{margin-bottom:10px}.peach-react :is([data-entity-alias=meta],[data-meta-item=names]){justify-content:center}.peach-react [data-entity-links]{scrollbar-width:none;overscroll-behavior-inline:contain;margin-top:9px;margin-bottom:-4px;flex-wrap:nowrap;justify-content:safe center;max-width:none;margin-inline:-16px;padding-block:4px;padding-inline:16px;scroll-padding-inline:16px;overflow:auto hidden}.peach-react [data-entity-links]::-webkit-scrollbar{display:none}.peach-react [data-entity-card] [data-entity-links]>*{flex:none}.peach-react [data-entry-marks]{justify-content:center}}.peach-react [data-entity-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react :is([data-entity-filter-glass],[data-entity-combo]) :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-press]{transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press)}.peach-react [data-entity-press]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-entity-sep]{background:var(--field-ring-hover);flex:none;width:1px;height:19px;margin:0 3px}.peach-react [data-entity-media]{flex:none;align-items:center;gap:2px;display:inline-flex}.peach-react [data-media-view]{z-index:1;width:30px;height:30px;color:var(--glass-text);border-radius:50%;flex:0 0 30px;place-items:center;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-view]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-media-view]{cursor:pointer}.peach-react [data-media-view]:hover,.peach-react [data-media-view][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-media-view] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px;display:block}.peach-react [data-media-view][data-media-icon=image] svg{fill:currentColor;stroke:none}.peach-react [data-entity-scroll]{flex:1;align-items:center;gap:6px;min-width:0;display:flex;position:relative}.peach-react [data-entity-states]{flex:none;align-items:center;gap:6px;display:flex}.peach-react [data-entity-state]{z-index:1;height:30px;color:var(--glass-text);border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0 10px;display:inline-flex;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-state]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-entity-state]{white-space:nowrap;cursor:pointer;font-size:13px;line-height:20px}.peach-react [data-entity-state]:hover,.peach-react [data-entity-state][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-entity-tags]{overscroll-behavior-inline:contain;scrollbar-width:none;flex-wrap:nowrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex;overflow:auto hidden}.peach-react [data-entity-tags]::-webkit-scrollbar{display:none}.peach-react [data-entity-tag]{color:var(--glass-text);border-style:solid;gap:0}.peach-react [data-entity-tag][aria-pressed=false]:hover{border-color:var(--field-ring);color:var(--ink)}.peach-react [data-entity-tag][aria-pressed=true]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow);border-color:#0000}.peach-react [data-entity-tag] [data-count-badge]{color:var(--glass-text);margin-left:6px}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-entity-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 80%, transparent)}}@media (width<=760px){.peach-react [data-entity-scroll]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow:auto hidden}.peach-react [data-entity-scroll]::-webkit-scrollbar{display:none}.peach-react [data-entity-scroll]>[data-entity-tags]{flex:none;min-width:auto;overflow:visible}}.peach-react [data-entity-readout]{color:var(--ink-2);letter-spacing:normal;white-space:nowrap;flex:none;margin:0;font-size:12px;font-weight:400;line-height:20px}.peach-react [data-entity-sorts]{scrollbar-width:none;margin-left:auto;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin-block:-14px;padding:14px 2px;display:flex;overflow-x:auto}.peach-react [data-entity-sorts]::-webkit-scrollbar{display:none}.peach-react [data-entity-sort]{height:30px;min-height:30px;color:var(--glass-text);border-radius:7px;flex:none;align-items:center;padding:0 8px;display:inline-flex}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-sort]{color:color-mix(in srgb, var(--glass-text) 62%, transparent)}}.peach-react [data-entity-sort]{white-space:nowrap;cursor:pointer;font-size:12px;line-height:20px}.peach-react [data-entity-sort]:hover{color:var(--glass-text)}.peach-react [data-entity-sort][aria-pressed=true]{color:var(--glass-text);font-weight:500}.peach-react [data-entity-sort] svg{flex:none;width:14px;height:14px;margin-left:5px}.peach-react [data-entity-batch]{background:var(--board-blue);width:36px;height:30px;min-height:30px;box-shadow:var(--elevation-xs);color:#fff;cursor:pointer;border-radius:7px;flex:none;place-items:center;font-size:12px;font-weight:600;display:inline-grid}.peach-react [data-entity-batch]:hover{background:var(--board-blue-hover);color:#fff}.peach-react [data-entity-batch] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-entity-batch][aria-busy=true]{cursor:wait}.peach-react [data-filter-row=bottom][aria-busy=true] [data-entity-batch] svg{--strand-dash:100;--strand-cycle:2.2s}.peach-react [data-entity-layout]{flex:none;gap:2px;margin:0 6px}.peach-react [data-entity-layout] svg{width:16px;height:16px}.peach-react [data-entity-layout] [data-glass-segment][data-selected]{-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick)}@media (pointer:coarse){.peach-react :is([data-entity-sort],[data-entity-batch]){height:36px}}.peach-react [data-photo-back]{border:1px solid var(--glass-low);border-radius:var(--control-radius);height:30px;color:var(--glass-text);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:4px;padding:0 10px 0 6px;font-size:12px;display:flex}.peach-react [data-photo-back]:hover{background:var(--overlay-5)}.peach-react [data-photo-back] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-entity-srctools]{display:contents}.peach-react [data-entity-srctools]>*{flex:none;margin:0}.peach-react [data-entity-srctools] [aria-live]{flex:none}@media (width<=760px){.peach-react [data-entity-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;touch-action:pan-x pan-y;flex-wrap:nowrap;gap:10px;overflow:auto hidden}.peach-react [data-entity-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}.peach-react [data-entity-sorts]{flex:none;width:max-content;max-width:none;overflow:visible}.peach-react [data-entity-filter-glass][data-filter-free]{top:var(--filter-free-top)}}.peach-react [data-entity-combo]{height:auto;font:var(--board-body);interpolate-size:allow-keywords;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;transition:height .22s cubic-bezier(0,0,.2,1),margin-bottom .22s cubic-bezier(0,0,.2,1);display:flex;overflow:hidden}.peach-react [data-entity-combo]:empty{height:0;margin-bottom:0}@media (prefers-reduced-motion:reduce){.peach-react [data-entity-combo]{transition:none}}.peach-react [data-combo-chip]{border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--picked);min-height:30px;color:var(--ink-2);font-size:var(--fs-md);align-items:center;padding:0 0 0 11px;line-height:20px;display:inline-flex;overflow:hidden}.peach-react [data-combo-chip] button{width:28px;height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;place-items:center;margin-left:5px;font-weight:400;display:grid}.peach-react [data-combo-chip] button:hover{background:var(--drop)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-combo-chip] button:hover{background:color-mix(in srgb, var(--drop) 12%, transparent)}}.peach-react [data-combo-chip] button:hover{color:var(--drop)}.peach-react [data-combo-clear]{min-height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;align-items:center;padding:0 6px;display:inline-flex}.peach-react [data-photo-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));gap:10px;display:grid}.peach-react [data-photo-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-photo-wall]{--photo-columns:4}.peach-react [data-photo-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-photo-wall]{--photo-columns:3}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-photo-wall]{--photo-columns:2;gap:8px}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}.peach-react [data-photo-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-photo-cell]{aspect-ratio:1;border-radius:var(--surface-radius);background:var(--sunk);cursor:zoom-in;border:0;width:100%;margin:0;padding:0;line-height:0;display:block;overflow:hidden}.peach-react [data-photo-cell] img{object-fit:cover;background:var(--sunk);color:#0000;width:100%;height:100%;display:block}.peach-react [data-photo-cell]:hover img{filter:brightness(1.06)}.peach-react [data-photo-cell]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]{aspect-ratio:auto;break-inside:avoid;margin:0 0 14px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell] img{aspect-ratio:auto 1;height:auto}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]:not(:has(img)){aspect-ratio:3/2}.peach-react [data-photo-group]{min-width:0;color:var(--muted);font-size:var(--fs-sm);align-items:baseline;gap:10px;margin:28px 2px 10px;line-height:20px;display:flex}.peach-react [data-photo-group]>b{color:var(--ink);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-md);font-variant-numeric:tabular-nums;flex:none}.peach-react [data-photo-group-title]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-photo-group-meta]{flex:none;margin-left:auto}.peach-react [data-follow-feed]{font:var(--board-body);padding:4px 0 42px}.peach-react [data-follow-head]{justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;display:flex}.peach-react [data-follow-title]{font:var(--board-title);font-size:var(--fs-2xl);letter-spacing:0;margin:0}@media (width<=760px){.peach-react [data-follow-title]{font:var(--board-figure);font-size:var(--fs-xl)}}.peach-react [data-follow-head-actions]{flex:none;align-items:center;gap:8px;display:inline-flex}.peach-react button:is([data-follow-manage],[data-follow-older]):has(>svg){gap:0;padding-left:12px}.peach-react button:is([data-follow-manage],[data-follow-older])>svg{width:14px;height:14px}.peach-react :is([data-follow-authors],[data-follow-works]){overscroll-behavior-inline:contain;scrollbar-width:none;align-items:center;gap:4px;display:flex;overflow-x:auto}.peach-react :is([data-follow-authors],[data-follow-works])::-webkit-scrollbar{display:none}.peach-react [data-follow-authors]{margin:0 0 2px;padding:3px 0 10px}.peach-react [data-follow-works]{margin:0 0 2px;padding:0 0 10px}@media (width<=640px){.peach-react [data-follow-authors]{margin-right:-12px}}.peach-react :is(button[data-follow-author],button[data-follow-work]){color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;flex:none}.peach-react :is(button[data-follow-author],button[data-follow-work]):active{transition:scale 60ms ease-out;scale:.96}.peach-react :is(button[data-follow-author],button[data-follow-work]):hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work])[aria-pressed=true]{background:var(--color-background-tertiary-default);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react button[data-follow-author]{text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:6px;width:76px;padding:6px 4px;display:flex}.peach-react button[data-follow-work]{text-align:left;border-radius:12px;align-items:center;gap:8px;height:40px;padding:6px 12px 6px 6px;display:inline-flex}.peach-react :is([data-follow-ring],[data-follow-mark]){background:var(--color-text-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;margin:0;display:flex;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react :is([data-follow-ring],[data-follow-mark]){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react :is([data-follow-ring],[data-follow-mark]){color:var(--color-text-secondary)}.peach-react [data-follow-ring]{width:48px;height:48px;font:600 18px/24px var(--board-font)}.peach-react [data-follow-mark]{width:28px;height:28px;font:600 12px/16px var(--board-font)}.peach-react [data-follow-ring]>img,.peach-react [data-follow-mark]>img{object-fit:cover;width:100%;max-width:none;height:100%;display:block;position:absolute;inset:0}.peach-react [data-follow-mark]>img{object-position:50% 25%}.peach-react [data-follow-ring]>span{width:100%;height:100%;font:inherit;color:inherit;justify-content:center;align-items:center;display:flex}.peach-react [data-follow-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-follow-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react [data-follow-filter-glass] :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow-x:auto}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}@media (width<=760px){.peach-react [data-follow-filter-glass] [data-entity-sorts]{padding-left:0}}.peach-react [data-follow-filter-glass] :is([data-entity-scroll],[data-entity-states],[data-entity-tags]){gap:7px}.peach-react button[data-follow-provider]{border:1px dashed var(--glass-low);border-radius:var(--tag-radius);cursor:pointer;background:0 0;flex:none;justify-content:center;align-items:center;width:34px;height:30px;padding:0;display:inline-flex}.peach-react button[data-follow-provider]:hover{border-style:solid;border-color:var(--field-ring)}.peach-react button[data-follow-provider][aria-pressed=true]{border-style:solid;border-color:var(--field-ring);background:var(--picked)}.peach-react [data-follow-provider]>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-filter-glass] [data-follow-tag]{--tag-color:#55a7ff;color:var(--glass-text);gap:6px}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-filter-glass] [data-follow-tag]:hover{border-color:var(--field-ring)}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-style:solid;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color) 72%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color) 22%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{color:var(--glass-text,var(--ink))}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react button[data-follow-images-only]{width:30px;height:30px;color:var(--glass-text);background:0 0;border:0;border-radius:7px;flex:none;place-items:center;padding:0;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react button[data-follow-images-only]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react button[data-follow-images-only]{cursor:pointer}.peach-react button[data-follow-images-only]:is(:hover,[aria-pressed=true]){color:var(--glass-text)}.peach-react button[data-follow-images-only]>[data-view-glide]{inset:0}.peach-react button[data-follow-images-only] svg{z-index:1;fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;position:relative}.peach-react [data-follow-readout]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace}.peach-react [data-follow-broken]>[role=alert]{margin:10px 0 14px}.peach-react [data-follow-broken] [data-follow-manage]{color:var(--tungsten);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.peach-react [data-follow-pagination]{border-top:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:18px;padding-top:14px;display:flex;overflow-x:auto}.peach-react [data-follow-page-action]{align-items:center;gap:12px;display:inline-flex}.peach-react [data-follow-pagination] [data-entity-more]{gap:4px;min-width:0;margin:0}.peach-react :is([data-follow-older],[data-follow-recheck])>span{gap:4px}.peach-react button[data-follow-older][aria-busy]{border-color:var(--line);background:var(--ground);color:var(--muted);box-shadow:none}.peach-react [data-follow-backfill]{color:var(--muted);font:var(--board-compact)}.peach-react [data-follow-list]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-follow-list]>[data-media-card]{align-self:start}.peach-react [data-follow-list]>[data-follow-empty]{grid-column:1/-1}.peach-react [data-follow-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));align-items:start;gap:14px 10px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-follow-wall]{--photo-columns:4}.peach-react [data-follow-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-follow-wall]{--photo-columns:3}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-follow-wall]{--photo-columns:2;gap:12px 8px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}.peach-react [data-follow-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-follow-wall][data-layout=masonry]>[data-follow-empty]{column-span:all}.peach-react [data-follow-wall][data-layout=masonry]>[data-media-card]{break-inside:avoid;margin:0 0 14px}.peach-react [data-follow-wall][data-images-only=true] [data-follow-item] :is([data-media-meta],[data-media-badge],[data-follow-collection],[data-follow-state]){display:none}.peach-react [data-follow-wall] [data-media-card] :is([data-media-pic],[data-media-meta]){content-visibility:visible}.peach-react [data-follow-wall] [data-media-card] [data-media-meta]{pointer-events:auto;contain-intrinsic-block-size:none;margin:0;padding:0}.peach-react [data-follow-item] [data-media-meta]{--card-meta-byline:max(1lh, 21px);--card-meta-badges:0px}.peach-react [data-follow-item] [data-media-meta]:has(>[data-media-text]>[data-follow-badges]){--card-meta-badges:calc(1lh + 6px + 3px)}.peach-react [data-follow-list]:not([data-follow-wall]) [data-follow-item] [data-media-meta]{contain-intrinsic-block-size:auto calc(var(--card-meta-block) + var(--card-meta-badges))}.peach-react [data-follow-item][data-status=ignored]{opacity:.62}.peach-react [data-follow-visual]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-follow-visual]>[data-media-pic]{z-index:1}.peach-react [data-follow-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-follow-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:-2px}.peach-react [data-select-mode] :is([data-follow-open],[data-follow-actions],[data-follow-collection]){pointer-events:none!important}.peach-react [data-follow-nothumb]{color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid;position:absolute;inset:0}.peach-react :is([data-media-badge],[data-follow-nothumb])>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-image] [data-media-pic]{aspect-ratio:4/3;background:var(--sunk);min-height:0}.peach-react [data-follow-image] [data-media-pic]>img,.peach-react [data-follow-image] :is([data-mix-faces],[data-mix-face] img){background:var(--sunk)}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]{aspect-ratio:1}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]:has(>img[width][height]){aspect-ratio:auto}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]>img[width][height]{aspect-ratio:auto 1;height:auto;position:static}.peach-react [data-follow-corner]{z-index:7;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:10px;right:10px}.peach-react [data-follow-collection]{border-radius:var(--control-radius);color:#fff;min-height:28px;font:inherit;cursor:pointer;pointer-events:auto;-webkit-backdrop-filter:blur(10px);background:#0c0808b8;border:0;align-items:center;gap:6px;padding:4px 9px;display:flex}.peach-react [data-follow-collection] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-follow-actions]{opacity:0;pointer-events:none;align-items:center;gap:6px;transition:opacity .15s;display:flex}.peach-react [data-follow-actions] button{color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(10px);background:#0000007a;border:1px solid #ffffff29;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;display:grid}.peach-react [data-follow-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:18px;height:18px}.peach-react [data-follow-actions] button:hover:not(:disabled){background:#ffffff2e;transform:scale(1.08)}.peach-react [data-follow-actions] button:disabled{opacity:.42;cursor:not-allowed}.peach-react [data-follow-actions] button[aria-busy]{cursor:wait;opacity:.72}@media (hover:hover) and (pointer:fine){.peach-react [data-follow-item]:hover [data-follow-actions]{opacity:1;pointer-events:auto}.peach-react [data-follow-item]:hover [data-follow-collection]{display:none}}@media (hover:none),(pointer:coarse){.peach-react [data-follow-item] [data-follow-actions]{opacity:1;pointer-events:auto}}.peach-react [data-follow-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);place-items:center;display:grid}.peach-react [data-follow-avatar]>img{border-radius:50%}.peach-react [data-follow-avatar]>span:first-child{width:100%;height:100%;color:var(--muted);font-family:var(--board-font);font-size:var(--fs-sm);place-items:center;display:grid}.peach-react [data-follow-byline]{min-width:0;min-height:21px;color:var(--muted);flex-wrap:nowrap;align-items:center;gap:6px;display:flex;overflow:hidden}.peach-react [data-follow-byline]>[data-follow-author]{min-width:0;color:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-byline]>time{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}.peach-react [data-follow-credit]{color:var(--muted);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-item] [data-media-tag]{--tag-color:#55a7ff;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{cursor:default}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-issue]{color:var(--drop);font-size:var(--fs-sm);margin:18px 0 8px;line-height:1.7;display:block}.peach-react [data-follow-state]{color:var(--drop);font-size:var(--fs-xs);flex:100%}.peach-react [data-photo-lightbox]{z-index:200;font:var(--board-body);font-kerning:auto;font-variant-ligatures:normal;letter-spacing:0;--photo-card-drop:#00000029;--photo-thumb-drop:#0000001a;background:#000;display:block;position:fixed;inset:0;overflow:hidden}.dark .peach-react [data-photo-lightbox]{--photo-card-drop:#0009;--photo-thumb-drop:#00000080}.peach-react [data-photo-lightbox]:modal{color:#fff;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.peach-react [data-photo-lightbox] :focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-main]{width:100%;min-width:0;height:100%;min-height:0;position:absolute;inset:0;overflow:hidden}.peach-react [data-photo-main]>.swiper-wrapper{width:100%;height:100%;display:flex}.peach-react [data-photo-main]>.swiper-wrapper>.swiper-slide{flex:0 0 100%;place-items:center;width:100%;min-width:0;height:100%;min-height:0;display:grid}.peach-react [data-photo-main] .swiper-zoom-container{box-sizing:border-box;place-items:center;width:100%;min-width:0;height:100%;min-height:0;padding:24px 72px 76px;display:grid}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:148px}.peach-react [data-photo-main] img{object-fit:contain;min-width:0;max-width:100%;min-height:0;max-height:100%;display:block}.peach-react :is([data-photo-close],[data-photo-nav]){box-sizing:border-box;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute}.peach-react [data-photo-close]:hover{background:#000000c7}.peach-react [data-photo-lightbox] :is([data-photo-close],[data-photo-nav]):focus-visible{outline-offset:3px}.peach-react :is([data-photo-close],[data-photo-nav]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-photo-close]{z-index:5;top:12px;right:14px}.peach-react [data-photo-nav]{z-index:4;border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--ink-2);box-shadow:var(--elevation-xs);border-radius:10px;top:50%;transform:translateY(-50%)}.peach-react [data-photo-nav]:hover{background:var(--hover)}.peach-react [data-photo-nav] svg{width:20px;height:20px}.peach-react [data-photo-nav=back]{left:14px}.peach-react [data-photo-nav=fwd]{right:14px}.peach-react [data-photo-nav=fwd] svg{transform:rotate(180deg)}.peach-react [data-photo-nav].swiper-button-disabled{visibility:hidden;opacity:.4;pointer-events:none}.peach-react [data-photo-nav].swiper-button-lock{display:none}.peach-react [data-photo-bar]{z-index:4;pointer-events:none;grid-template-columns:1fr auto 1fr;align-items:center;min-height:48px;display:grid;position:absolute;bottom:14px;left:14px;right:14px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:98px}.peach-react [data-photo-bar]>*{pointer-events:auto}.peach-react [data-photo-count]{border-radius:var(--pill-radius);color:#ffffffd1;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:center;padding:7px 11px}.peach-react [data-photo-pagination]{justify-content:center;align-items:center;gap:8px;max-width:160px;height:28px;margin-inline:auto;display:flex;overflow:hidden}.peach-react [data-photo-pagination] .swiper-pagination-bullet{opacity:1;background:#a3a3a3;border:0;border-radius:999px;flex:none;width:6px;height:6px;padding:0;transition:width .2s ease-out,background .2s ease-out;margin:0!important}.peach-react [data-photo-pagination] .swiper-pagination-bullet-active{background:#fafafa;width:16px}.peach-react [data-photo-detail-toggle]{color:#ffffffd1;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;justify-self:start;place-items:center;width:40px;height:40px;padding:0;display:grid}.peach-react [data-photo-detail-toggle]:is(:hover,[aria-expanded=true]){color:#fff;background:#000000c7}.peach-react [data-photo-detail-toggle] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;display:block}.peach-react [data-photo-zoom]{border-radius:var(--pill-radius);color:#ffffffd1;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:end;align-items:center;gap:7px;padding:4px;display:flex}.peach-react [data-photo-zoom] button{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}.peach-react [data-photo-zoom] button:hover{background:#ffffff38}.peach-react [data-photo-zoom] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px;display:block}.peach-react [data-photo-zoom] [data-photo-scale]{width:30px}.peach-react [data-photo-zoom] [data-photo-scale=original]{border-radius:var(--control-radius);width:38px}.peach-react [data-photo-zoom] :is([data-photo-scale=original],[data-photo-zoom-readout]){font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-photo-zoom-readout]{text-align:right;width:38px;font-weight:400}.peach-react [data-photo-zoom] input{cursor:pointer;appearance:none;background:0 0;width:116px;height:20px;margin:2px}.peach-react [data-photo-zoom] input::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px;box-shadow:inset 0 1px 1px #0000000f}.peach-react [data-photo-zoom] input::-moz-range-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px}.peach-react [data-photo-zoom] input::-webkit-slider-thumb{border:1px solid var(--line);width:20px;height:20px;box-shadow:0 2px 4px var(--photo-thumb-drop), inset 0 1px 0 #fffc;cursor:grab;transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), box-shadow .15s;appearance:none;background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%;margin-top:-7px}.peach-react [data-photo-zoom] input::-moz-range-thumb{border:1px solid var(--line);width:18px;height:18px;box-shadow:0 2px 4px var(--photo-thumb-drop);background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%}.peach-react [data-photo-zoom] input:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px #ffffff38}.peach-react [data-photo-zoom] input:active::-webkit-slider-thumb{transition:scale 60ms ease-out;scale:1.18}.peach-react [data-photo-lightbox] [data-photo-zoom] input:focus-visible{outline:none}.peach-react [data-photo-zoom] input:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline:2px solid #fff}.peach-react [data-photo-detail]{box-sizing:border-box;z-index:var(--layer-popover);overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--ground);width:320px;max-width:calc(100vw - 16px);color:var(--ink);box-shadow:0 8px 24px var(--photo-card-drop);font-size:var(--fs-md);overflow-wrap:anywhere;pointer-events:auto;align-items:start;gap:14px;margin:0;padding:16px;line-height:1.5;display:grid;position:fixed;inset:auto;overflow:auto}.peach-react [data-photo-detail][hidden]{display:none}.peach-react [data-photo-detail-copy]{gap:4px;min-width:0;display:grid}.peach-react [data-photo-detail-copy] h2{font-size:var(--fs-sm);white-space:nowrap;margin:0;font-weight:700;overflow:hidden}.peach-react :is([data-photo-detail-meta],[data-photo-status]){color:var(--muted);font-size:var(--fs-xs)}.peach-react [data-photo-status]{flex:100%;min-width:0}.peach-react [data-photo-status]:empty{display:none}.peach-react [data-photo-reveal]{border:1px solid var(--line);border-radius:var(--control-radius);height:32px;color:var(--ink);cursor:pointer;background:0 0;justify-self:start;align-items:center;gap:7px;padding:0 10px;display:flex}.peach-react [data-photo-reveal]:hover{background:#ffffff1f}.peach-react [data-photo-reveal][hidden]{display:none}.peach-react [data-photo-reveal] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;display:block}.peach-react [data-photo-strip]{z-index:3;width:auto;height:72px;padding:0;position:absolute;bottom:14px;left:72px;right:72px}.peach-react [data-photo-lightbox]:not([data-has-strip]) [data-photo-strip]{display:none}.peach-react [data-photo-strip] .swiper-slide{border-radius:var(--control-radius);opacity:.5;cursor:pointer;width:auto;height:72px;overflow:hidden}.peach-react [data-photo-strip] .swiper-slide img{object-fit:cover;width:auto;max-width:none;height:100%;display:block}.peach-react [data-photo-strip] .swiper-slide-thumb-active{opacity:1;box-shadow:inset 0 0 0 2px #fff}@media (width<=640px){.peach-react [data-photo-zoom] input{width:72px}.peach-react [data-photo-zoom-readout]{display:none}.peach-react [data-photo-main] .swiper-zoom-container{padding:12px 12px 70px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:136px}.peach-react [data-photo-bar]{min-height:44px;bottom:10px;left:12px;right:12px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:80px}.peach-react [data-photo-reveal]{min-height:44px}.peach-react [data-photo-strip]{bottom:12px;left:56px;right:56px}.peach-react [data-photo-strip],.peach-react [data-photo-strip] .swiper-slide{height:56px}.peach-react [data-photo-close]{top:10px;right:10px}.peach-react [data-photo-nav=back]{left:8px}.peach-react [data-photo-nav=fwd]{right:8px}}@media (prefers-reduced-motion:reduce){.peach-react [data-photo-pagination] .swiper-pagination-bullet{transition:none}}.peach-react [data-index-grid] [data-index-cell]{background:var(--ground)}.peach-react [data-index-grid] [data-index-cell]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-index-grid] [data-index-cell]:hover{background:color-mix(in srgb, var(--ink) 6%, var(--ground))}}.peach-react [data-index-grid] [data-person-ring]{background:var(--sunk);color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif}.peach-react [data-index-grid] [data-index-readout]{color:var(--muted)}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}@keyframes peach-skeleton-sweep{to{transform:translate(-50%)}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000080;--elevation-xs:0 1px 2px 0 #0000008c;--elevation-sm:0 1px 2px 0 #00000080, 0 2px 6px 0 #0006;--elevation-md:0 2px 4px -1px #00000080, 0 4px 10px -1px #00000073;--elevation-lg:0 4px 6px -2px #00000073, 0 10px 20px -3px #0000008c;--elevation-xl:0 10px 10px -5px #0006, 0 20px 30px -5px #0009;--elevation-card:0 1px 2px 0 #0009, 0 2px 8px 0 #00000073;--elevation-dropdown:0 1px 2px 0 #0009, 0 4px 12px 0 #00000073;--elevation-sidebar:0 1px 0 0 #0000004d, 0 1px 12px 0 #00000073, 0 0 1px 0 #000000b3;--elevation-waitlist:0 0 6px 0 #0000004d, 0 0 64px 0 #00000080, 0 0 1px 0 #000000b3, 0 1px 12px 0 #00000059, 0 1px 0 0 #0003}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}.peach-react :is([data-review-filter],[data-filter-glass]){top:calc(var(--topH) + 8px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(160%) var(--glass-lume);isolation:isolate;color:var(--glass-text);border-radius:22px;overflow:visible}.peach-react [data-filter-glass][data-stuck]{box-shadow:inset 0 1px 0 var(--glass-rim), inset 1px 0 0 var(--glass-low), inset -1px 0 0 var(--glass-low), inset 0 -1px 0 var(--glass-low), var(--glass-lift)}.peach-react [data-filter-glass][data-stuck]:before{content:"";z-index:-1;background:var(--page);pointer-events:none;height:9px;position:absolute;top:-9px;left:-16px;right:-16px;-webkit-mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000);mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000)}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){background:var(--ground);-webkit-backdrop-filter:none;animation:none}}@media (prefers-reduced-motion:reduce){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){animation:none}}.peach-react:has([data-selection-dock]){padding-bottom:96px}.peach-react [data-tab-indicator]{width:var(--tab-width,0px);transform:translateX(var(--tab-x,0px))}.peach-react [data-tab-indicator][data-ready]{transition:transform calc(var(--spring-pane-ms,200) * 1ms) var(--spring-pane,ease), width calc(var(--spring-pane-ms,200) * 1ms) ease}@media (prefers-reduced-motion:reduce){.peach-react [data-tab-indicator][data-ready]{transition:none}}.peach-react [data-glass-segment][data-selected]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow)}@media not all and (width>=761px){.peach-react :is([data-index-search],[data-playlist-create]) input{font-size:16px}}.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{content:"";z-index:0;border-radius:inherit;border:1px solid var(--border-15);background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-mix-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-mix-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-mix-cover],.peach-react [data-mix-poster]{background:#000}.peach-react [data-mix-faces]{z-index:2;pointer-events:none;background:#000;position:absolute;inset:0}.peach-react [data-mix-face]{opacity:0;transform-origin:50% 88%;transition:transform .46s cubic-bezier(.34,.02,.24,1),opacity .4s;position:absolute;inset:0;transform:scale(.985)}.peach-react [data-mix-face=on]{opacity:1;z-index:2;transition:none;transform:none}.peach-react [data-mix-face=off]{opacity:0;z-index:3;transform:translateY(-11%)rotate(-3.4deg)scale(.94)}.peach-react [data-mix-face] img{object-fit:contain;background:#000;width:100%;height:100%;display:block}.peach-react [data-mix-badge]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c0808b8}.peach-react [data-mix-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-mix-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-mix-avatars]>*{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion))}.peach-react [data-mix-avatars]>*+*{margin-left:-22px}.peach-react [data-mix-avatars]>:first-child{z-index:5}.peach-react [data-mix-avatars]>:nth-child(2){z-index:4}.peach-react [data-mix-avatars]>:nth-child(3){z-index:3}.peach-react [data-mix-avatars]>:nth-child(4){z-index:2}.peach-react [data-mix-avatars]>:nth-child(5){z-index:1}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-tag-cat]{--tag-color:#7a91a8}.peach-react [data-tag-cat=general],.peach-react [data-tag-cat=r34-general]{--tag-color:#55a7ff}.peach-react [data-tag-cat=artist]{--tag-color:#f1a454}.peach-react [data-tag-cat=meta]{--tag-color:#7f909e}.peach-react [data-tag-cat=relationship]{--tag-color:#f1a454}.peach-react [data-tag-cat=role]{--tag-color:#ed78af}.peach-react [data-tag-cat=appearance]{--tag-color:#a989f5}.peach-react [data-tag-cat=scene]{--tag-color:#53b8a4}.peach-react [data-tag-cat=story]{--tag-color:#e19a5b}.peach-react [data-tag-cat=position]{--tag-color:#d66e8d}.peach-react [data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-tag-cat=r34-unknown]{--tag-color:var(--muted)}.peach-react [data-tag-pill][data-tag-cat=all]{--tag-color:initial}.peach-react [data-tag-dot]{background:var(--tag-color,var(--muted))}.peach-react [data-tag-pill][data-tag-cat=all] [data-tag-dot]{background:linear-gradient(135deg,#55a7ff,#d783ff)}.peach-react [data-tag-chip]{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{border-color:color-mix(in srgb, var(--tag-color) 32%, transparent)}}.peach-react [data-tag-chip]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{background:color-mix(in srgb, var(--tag-color) 7%, transparent)}}.peach-react [data-tag-chip]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]:hover{background:color-mix(in srgb, var(--tag-color) 13%, transparent)}}.peach-react [data-tag-chip][aria-pressed=true],.peach-react [data-alpha-tag][aria-pressed=true]{background:var(--picked);color:var(--color-text-primary)}.peach-react [data-tag-pill][aria-pressed=true]{border-color:var(--tag-color,var(--ink))}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color,var(--ink)) 45%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{background:var(--tag-color,var(--ink));border-style:solid}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color,var(--ink)) 12%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{color:var(--ink)}.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:color-mix(in srgb, var(--ink) 6%, transparent)}}.peach-react [data-alpha-group]{scroll-margin-top:calc(var(--topH) + 124px)}.peach-react [data-source-divider]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-follow-author-header][data-open]{border-bottom:1px solid var(--color-border-button-default)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-board-data-table]{border:1px solid var(--color-border-button-default);border-radius:var(--radius-surface);background:var(--color-background-primary-default);overflow:hidden}.peach-react [data-board-data-table] .bui-table th{border-top:0}.peach-react [data-board-data-table] .bui-table th,.peach-react [data-board-data-table] .bui-table tbody tr:not(:last-child){border-color:var(--color-border-button-default)}.peach-react [data-board-data-table] .bui-table tbody tr:hover,.peach-react [data-source-divider]>:hover{background-color:var(--color-background-primary-hover)}.peach-react [data-board-data-table] .bui-table tbody tr[data-follow-selected],.peach-react [data-board-data-table] .bui-table tbody tr[data-board-selected],.peach-react [data-source-divider]>[data-selected]{background-color:var(--color-background-secondary-default)}.peach-react [data-follow-table] [data-sort-indicator]{color:var(--color-text-tertiary);flex:none;transition:transform .15s,color .15s;display:inline-flex}.peach-react [data-follow-table] [data-sort-indicator][data-direction]{color:var(--color-text-secondary)}.peach-react [data-follow-table] [data-sort-indicator][data-direction=ascending]{transform:rotate(180deg)}.peach-react [data-follow-table] [data-sort-indicator] svg{width:24px;height:24px}.peach-react [data-expandable-ranking]{position:relative}.peach-react [data-expandable-ranking][data-expandable]{padding-bottom:28px}.peach-react [data-expandable-ranking-list]{max-height:var(--ranking-collapsed-height,none);overflow:hidden}.peach-react [data-expandable-ranking][data-expanded] [data-expandable-ranking-list]{max-height:var(--ranking-expanded-height,none)}.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list]{transition:max-height .2s var(--ease-in-out)}.peach-react [data-expandable-ranking][data-expandable]:not([data-expanded]) [data-expandable-ranking-list]{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}.peach-react [data-ranking-toggle]{z-index:1;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:40px;height:20px;box-shadow:var(--shadow-sm);color:var(--color-text-secondary);cursor:pointer;border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.peach-react [data-ranking-toggle]:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react [data-ranking-toggle]:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}.peach-react [data-ranking-toggle] svg{width:14px;height:14px;transition:transform .2s var(--ease-in-out)}.peach-react [data-ranking-toggle][aria-expanded=true] svg{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list],.peach-react [data-ranking-toggle] svg{transition:none}}.peach-react label[data-rac] input[type=checkbox]{appearance:none;outline:none;width:1px;height:1px}@keyframes checkbox-mark-enter{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}.animate-check-draw{transform-box:fill-box;transform-origin:50%;animation:checkbox-mark-enter .15s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.animate-check-draw{opacity:1;animation:none;transform:none}}.bui-table{border-collapse:collapse;text-align:left;width:100%}.bui-table th{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);text-align:left;vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));white-space:nowrap;color:var(--color-text-tertiary);--tw-outline-style:none;background-color:var(--color-background-secondary-default);border-top:1px solid var(--color-separator-border);border-bottom:1px solid var(--color-separator-border);outline-style:none;transition:padding .2s,font-size .2s}.bui-table td{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));color:var(--color-text-primary);--tw-outline-style:none;outline-style:none;transition:padding .2s,font-size .2s}.bui-table tbody tr:not(:last-child){border-bottom:1px solid var(--color-separator-border)}.bui-table tbody tr{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.15s;transition-duration:.15s}.bui-table tbody tr[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--color-border-focus-ring);--tw-ring-inset:inset}.bui-table.bui-table-sm th,.bui-table.bui-table-sm td{padding-inline:calc(var(--spacing) * 2.5);padding-block:calc(var(--spacing) * 1.5);font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:var(--font-mono-source), ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-950:oklch(27.4% .072 132.109);--color-green-100:oklch(96.2% .044 156.743);--color-green-800:oklch(44.8% .119 151.328);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:#3392ff;--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-800:oklch(39.8% .195 277.366);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-950:oklch(27.1% .105 12.094);--color-zinc-800:oklch(27.4% .006 286.033);--color-neutral-50:oklch(98.5% 0 none);--color-neutral-100:#f7f7f7;--color-neutral-200:#ebebeb;--color-neutral-300:oklch(87% 0 none);--color-neutral-400:oklch(70.8% 0 none);--color-neutral-500:oklch(55.6% 0 none);--color-neutral-600:oklch(43.9% 0 none);--color-neutral-700:oklch(37.1% 0 none);--color-neutral-800:oklch(26.9% 0 none);--color-neutral-900:oklch(20.5% 0 none);--color-neutral-950:oklch(14.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--shadow-sm:var(--elevation-sm);--drop-shadow-sm:0 1px 2px #00000026;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-neutral-925:#121212;--color-accent-50:var(--color-blue-50);--color-accent-100:var(--color-blue-100);--color-accent-200:var(--color-blue-200);--color-accent-300:var(--color-blue-300);--color-accent-400:var(--color-blue-400);--color-accent-500:var(--color-blue-500);--color-accent-600:var(--color-blue-600);--color-accent-700:var(--color-blue-700);--color-accent-800:var(--color-blue-800);--color-accent-900:var(--color-blue-900);--color-accent-950:var(--color-blue-950);--radius-2lg:10px;--radius-2-5xl:20px;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--shadow-card:var(--elevation-card);--color-foreground-full:var(--color-foreground-full);--color-foreground-icon-primary:var(--color-foreground-icon-primary);--color-foreground-icon-hover:var(--color-foreground-icon-hover);--color-foreground-icon-secondary:var(--color-foreground-icon-secondary);--color-foreground-icon-tertiary:var(--color-foreground-icon-tertiary);--color-foreground-icon-quaternary:var(--color-foreground-icon-quaternary);--color-foreground-icon-error:var(--color-foreground-icon-error);--color-foreground-icon-disabled:var(--color-foreground-icon-disabled);--color-foreground-disabled:var(--color-foreground-disabled);--color-foreground-disabled-danger:var(--color-foreground-disabled-danger);--color-input-disabled-foreground:var(--color-input-disabled-foreground);--color-icon-button-disabled-foreground:var(--color-icon-button-disabled-foreground);--color-button-primary-disabled-foreground:var(--color-button-primary-disabled-foreground);--color-text-primary:var(--color-text-primary);--color-text-secondary:var(--color-text-secondary);--color-text-tertiary:var(--color-text-tertiary);--color-text-disabled:var(--color-text-disabled);--color-text-disabled-danger:var(--color-text-disabled-danger);--color-text-placeholder:var(--color-text-placeholder);--color-text-error-primary:var(--color-text-error-primary);--color-input-disabled-text:var(--color-input-disabled-text);--color-text-white:var(--color-text-white);--color-background-full:var(--color-background-full);--color-background-primary-default:var(--color-background-primary-default);--color-background-inner-default:var(--color-background-inner-default);--color-background-primary-hover:var(--color-background-primary-hover);--color-background-primary-active:var(--color-background-primary-active);--color-background-primary-disabled:var(--color-background-primary-disabled);--color-input-disabled-background:var(--color-input-disabled-background);--color-background-secondary-default:var(--color-background-secondary-default);--color-background-secondary-hover:var(--color-background-secondary-hover);--color-background-tertiary-default:var(--color-background-tertiary-default);--color-background-tertiary-hover:var(--color-background-tertiary-hover);--color-background-tertiary-error:var(--color-background-tertiary-error);--color-background-recent-hire-role:var(--color-background-recent-hire-role);--color-avatar-neutral-background:var(--color-avatar-neutral-background);--color-background-quaternary-default:var(--color-background-quaternary-default);--color-background-quaternary-hover:var(--color-background-quaternary-hover);--color-background-quaternary-error:var(--color-background-quaternary-error);--color-file-upload-icon-background:var(--color-file-upload-icon-background);--color-file-upload-icon-foreground:var(--color-file-upload-icon-foreground);--color-file-upload-icon-foreground-hover:var(--color-file-upload-icon-foreground-hover);--color-border-button-default:var(--color-border-button-default);--color-border-button-hover:var(--color-border-button-hover);--color-border-button-active:var(--color-border-button-active);--color-border-button-white:var(--color-border-button-white);--color-border-error-default:var(--color-border-error-default);--color-border-checkbox-default:var(--color-border-checkbox-default);--color-border-checkbox-hover:var(--color-border-checkbox-hover);--color-border-checkbox-active:var(--color-border-checkbox-active);--color-border-checkbox-white:var(--color-border-checkbox-white);--color-border-component-detail-container:var(--color-border-component-detail-container);--color-border-ai-profile-card:var(--color-border-ai-profile-card);--color-border-table:var(--color-border-table);--color-border-button-group:var(--color-border-button-group);--color-border-sidebar-profile-hover:var(--color-border-sidebar-profile-hover);--color-separator-border:var(--color-separator-border);--color-separator-border-strong:var(--color-separator-border-strong);--color-border-focus-ring:var(--color-border-focus-ring);--color-state-success-text:var(--color-state-success-text);--color-state-success-base:var(--color-state-success-base);--color-control-indicator-background:var(--color-control-indicator-background);--color-control-indicator-background-subtle:var(--color-control-indicator-background-subtle);--color-switch-off-chip-start:var(--color-switch-off-chip-start);--color-switch-off-chip-end:var(--color-switch-off-chip-end);--color-switch-on-chip-start:var(--color-switch-on-chip-start);--color-switch-on-chip-end:var(--color-switch-on-chip-end);--color-stat-card-icon-background:var(--color-stat-card-icon-background);--color-segmented-control-background:var(--color-segmented-control-background);--color-segmented-control-selected-background:var(--color-segmented-control-selected-background);--color-theme-toggle-sidebar-background:var(--color-theme-toggle-sidebar-background);--color-theme-toggle-sidebar-selected-background:var(--color-theme-toggle-sidebar-selected-background);--color-ai-chat-composer-add-background:var(--color-ai-chat-composer-add-background);--color-ai-chat-composer-add-hover-background:var(--color-ai-chat-composer-add-hover-background);--color-composer-panel-tab-background:var(--color-composer-panel-tab-background);--color-composer-panel-add-background:var(--color-composer-panel-add-background);--color-composer-panel-add-hover-background:var(--color-composer-panel-add-hover-background);--color-composer-panel-tile-border:var(--color-composer-panel-tile-border);--color-composer-panel-rail-background:var(--color-composer-panel-rail-background);--color-questionnaire-key-background:var(--color-questionnaire-key-background);--color-questionnaire-key-hover-background:var(--color-questionnaire-key-hover-background);--color-agent-progress-ring:var(--color-agent-progress-ring);--color-button-ghost-background:var(--color-button-ghost-background);--color-button-ghost-hover:var(--color-button-ghost-hover);--color-button-ghost-active:var(--color-button-ghost-active);--color-button-ghost-disabled:var(--color-button-ghost-disabled);--color-button-ghost-foreground:var(--color-button-ghost-foreground);--color-button-ghost-disabled-foreground:var(--color-button-ghost-disabled-foreground);--color-dropdown-item-hover-background:var(--color-dropdown-item-hover-background);--color-kbd-background:var(--color-kbd-background);--color-kbd-foreground:var(--color-kbd-foreground);--color-docs-file-chip-background:var(--color-docs-file-chip-background);--color-docs-file-chip-border:var(--color-docs-file-chip-border);--color-docs-file-chip-foreground:var(--color-docs-file-chip-foreground);--color-docs-command-accent:var(--color-docs-command-accent);--color-docs-code-background:var(--color-docs-code-background);--color-docs-install-rail:var(--color-docs-install-rail);--color-badge-neutral-background:var(--color-badge-neutral-background);--color-team-menu-count-background:var(--color-team-menu-count-background);--color-team-menu-count-foreground:var(--color-team-menu-count-foreground);--color-badge-new-background:var(--color-badge-new-background);--color-badge-new-text:var(--color-badge-new-text);--color-tab-count-selected-background:var(--color-tab-count-selected-background);--color-pill-tab-blue-selected-background:var(--color-pill-tab-blue-selected-background);--color-pill-tab-blue-hover-background:var(--color-pill-tab-blue-hover-background);--color-notification-information-background:var(--color-notification-information-background);--color-notification-information-foreground:var(--color-notification-information-foreground);--color-notification-success-background:var(--color-notification-success-background);--color-notification-success-foreground:var(--color-notification-success-foreground);--color-notification-error-background:var(--color-notification-error-background);--color-notification-error-foreground:var(--color-notification-error-foreground);--color-notification-center-background:var(--color-notification-center-background);--color-status-lime-background:var(--color-status-lime-background);--color-status-lime-text:var(--color-status-lime-text);--color-status-yellow-background:var(--color-status-yellow-background);--color-status-yellow-text:var(--color-status-yellow-text);--color-status-rose-background:var(--color-status-rose-background);--color-status-rose-text:var(--color-status-rose-text);--color-status-cyan-background:var(--color-status-cyan-background);--color-status-cyan-text:var(--color-status-cyan-text);--color-status-blue-background:var(--color-status-blue-background);--color-status-blue-text:var(--color-status-blue-text);--color-status-purple-background:var(--color-status-purple-background);--color-status-purple-text:var(--color-status-purple-text);--color-status-dot-green-halo:var(--color-status-dot-green-halo);--color-status-dot-yellow-halo:var(--color-status-dot-yellow-halo);--color-status-dot-indigo-halo:var(--color-status-dot-indigo-halo);--color-date-range-background:var(--color-date-range-background);--color-date-range-edge-background:var(--color-date-range-edge-background);--color-calendar-event-blue-background:var(--color-calendar-event-blue-background);--color-calendar-event-blue-title:var(--color-calendar-event-blue-title);--color-calendar-event-blue-time:var(--color-calendar-event-blue-time);--color-calendar-event-pink-background:var(--color-calendar-event-pink-background);--color-calendar-event-pink-title:var(--color-calendar-event-pink-title);--color-calendar-event-pink-time:var(--color-calendar-event-pink-time);--color-calendar-event-purple-background:var(--color-calendar-event-purple-background);--color-calendar-event-purple-title:var(--color-calendar-event-purple-title);--color-calendar-event-purple-time:var(--color-calendar-event-purple-time);--color-calendar-event-lime-background:var(--color-calendar-event-lime-background);--color-calendar-event-lime-title:var(--color-calendar-event-lime-title);--color-calendar-event-lime-time:var(--color-calendar-event-lime-time);--color-calendar-event-emerald-background:var(--color-calendar-event-emerald-background);--color-calendar-event-emerald-title:var(--color-calendar-event-emerald-title);--color-calendar-event-emerald-time:var(--color-calendar-event-emerald-time);--color-text-error-placeholder:var(--color-text-error-placeholder);--color-chart-track:var(--color-chart-track);--color-chart-cursor:var(--color-chart-cursor);--color-chart-neutral:var(--color-chart-neutral);--color-chart-1:var(--color-chart-1);--color-chart-1-active:var(--color-chart-1-active);--color-chart-2:var(--color-chart-2);--color-chart-2-active:var(--color-chart-2-active);--color-chart-3:var(--color-chart-3);--color-chart-3-active:var(--color-chart-3-active);--color-chart-4:var(--color-chart-4);--color-chart-4-active:var(--color-chart-4-active);--color-chart-5:var(--color-chart-5);--color-chart-5-active:var(--color-chart-5-active);--color-chart-6:var(--color-chart-6);--color-chart-6-active:var(--color-chart-6-active);--color-chart-7:var(--color-chart-7);--color-chart-7-active:var(--color-chart-7-active);--color-chart-8:var(--color-chart-8);--color-chart-8-active:var(--color-chart-8-active);--color-chart-9:var(--color-chart-9);--color-chart-9-active:var(--color-chart-9-active);--color-chart-agents-bar:var(--color-chart-agents-bar);--color-chart-agents-bar-active:var(--color-chart-agents-bar-active);--button-transition-ms:.15s;--input-transition-ms:.15s;--text-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-regular:1.5rem;--text-title-1-regular--line-height:2.125rem;--text-title-1-regular--letter-spacing:0;--text-title-1-regular--font-weight:400;--text-title-1-medium:1.5rem;--text-title-1-medium--line-height:2.125rem;--text-title-1-medium--letter-spacing:0;--text-title-1-medium--font-weight:500;--text-title-1-semibold:1.5rem;--text-title-1-semibold--line-height:2.125rem;--text-title-1-semibold--letter-spacing:0;--text-title-1-semibold--font-weight:600;--text-title-2-regular:1.25rem;--text-title-2-regular--line-height:1.625rem;--text-title-2-regular--letter-spacing:0;--text-title-2-regular--font-weight:400;--text-title-2-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-medium:1.125rem;--text-title-3-medium--line-height:1.625rem;--text-title-3-medium--letter-spacing:0;--text-title-3-medium--font-weight:500;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-semibold:.875rem;--text-body-semibold--line-height:1.25rem;--text-body-semibold--letter-spacing:0;--text-body-semibold--font-weight:600;--text-body-bold:.875rem;--text-body-bold--line-height:1.25rem;--text-body-bold--letter-spacing:0;--text-body-bold--font-weight:700;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--spacing-crop-frame:50vh;--spacing-crop-preview:96px;--container-cover-crop:880px;--spacing-topbar:var(--topH,64px);--z-index-dialog:var(--layer-dialog,1000);--container-review-tabs:184px;--container-review-card:340px;--container-review-cover:132px;--container-review-cover-narrow:110px;--container-review-asset:92px;--spacing-review-card:440px;--spacing-review-card-tall:560px;--spacing-review-image:220px;--radius-surface:14px;--radius-floating:20px;--radius-glass-key:7px;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}:root,:host{--container-duplicate-cover:112px;--container-duplicate-cover-narrow:88px;--container-index-person:150px;--container-index-company:180px;--container-index-tag:200px;--spacing-empty-glyph:54px;--container-empty-copy:340px;--leading-empty-copy:1.55;--container-form-modal:540px;--tracking-caps:.12em}}.\@container{container-type:inline-size}.bg-button-danger{isolation:isolate;background-image:var(--gradient-button-danger-default);position:relative}.bg-button-danger:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-danger-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-danger:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-danger-active)}.bg-button-danger:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-danger:disabled,.bg-button-danger[aria-disabled=true]{background-image:var(--gradient-button-danger-disabled)}.bg-button-danger:disabled:before,.bg-button-danger[aria-disabled=true]:before{display:none}.bg-button-primary{isolation:isolate;background-image:var(--gradient-button-primary-default);position:relative}.bg-button-primary:before{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background-image:var(--gradient-button-primary-hover);opacity:0;transition:opacity var(--button-transition-ms) ease;position:absolute;inset:0}.bg-button-primary:hover:not(:disabled):not([aria-disabled=true]):before{opacity:1}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]){background-image:var(--gradient-button-primary-active)}.bg-button-primary:active:not(:disabled):not([aria-disabled=true]):before{opacity:0}.bg-button-primary:disabled,.bg-button-primary[aria-disabled=true]{background-image:var(--gradient-button-primary-disabled)}.bg-button-primary:disabled:before,.bg-button-primary[aria-disabled=true]:before{display:none}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.skeleton-sheen{overflow:hidden}.skeleton-sheen:after{content:"";border-radius:inherit;background:linear-gradient(to right, var(--hover), var(--skeleton-sheen) 50%, var(--hover));background-size:50% 100%;animation:1.5s ease-in-out infinite reverse peach-skeleton-sweep;position:absolute;inset:0 -200% 0 0}@media (prefers-reduced-motion:reduce){.skeleton-sheen:after{animation:none}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-\(--crop-b\){top:var(--crop-b)}.top-\(--crop-t\){top:var(--crop-t)}.top-\(--tile-top\){top:var(--tile-top)}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.top-\[3px\]{top:3px}.top-topbar{top:var(--spacing-topbar)}.-right-1\.5{right:calc(var(--spacing) * -1.5)}.-right-\[5\.5px\]{right:-5.5px}.right-0{right:0}.right-1{right:var(--spacing)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2\.25{right:calc(var(--spacing) * 2.25)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-1\.5{bottom:calc(var(--spacing) * -1.5)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-2\.25{bottom:calc(var(--spacing) * 2.25)}.-left-\[5\.5px\]{left:-5.5px}.left-\(--crop-l\){left:var(--crop-l)}.left-\(--crop-r\){left:var(--crop-r)}.left-\(--tile-left\){left:var(--tile-left)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-\[3px\]{left:3px}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-1{z-index:1}.z-6{z-index:6}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-dialog{z-index:var(--z-index-dialog)}.col-start-2{grid-column-start:2}.-col-end-1{grid-column-end:calc(1 * -1)}.row-span-2{grid-row:span 2/span 2}.container{width:100%}@media (width>=560px){.container{max-width:560px}}@media (width>=600px){.container{max-width:600px}}@media (width>=601px){.container{max-width:601px}}@media (width>=761px){.container{max-width:761px}}@media (width>=900px){.container{max-width:900px}}@media (width>=901px){.container{max-width:901px}}@media (width>=1000px){.container{max-width:1000px}}@media (width>=1120px){.container{max-width:1120px}}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-0\!{margin:0!important}.-mx-4{margin-inline:calc(var(--spacing) * -4)}.-mx-5{margin-inline:calc(var(--spacing) * -5)}.-mx-6{margin-inline:calc(var(--spacing) * -6)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing) * .5)}.-mt-2{margin-top:calc(var(--spacing) * -2)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-auto{margin-top:auto}.mr-1{margin-right:var(--spacing)}.mr-1\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-auto{margin-right:auto}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.-mb-5{margin-bottom:calc(var(--spacing) * -5)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-5\.5{margin-bottom:calc(var(--spacing) * 5.5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.-ml-3{margin-left:calc(var(--spacing) * -3)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-auto{margin-left:auto}.fieldset-split{grid-template-columns:minmax(0,1fr) auto;align-items:center;display:grid}@media not all and (width>=1001px){.fieldset-split{grid-template-columns:minmax(0,1fr)}}.duplicate-row{grid-template-columns:var(--container-duplicate-cover) minmax(0, 1fr) 84px 84px 84px;display:grid}@media not all and (width>=901px){.duplicate-row{grid-template-columns:var(--container-duplicate-cover-narrow) minmax(0, 1fr) auto auto}}.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-company), 1fr));display:grid}@media not all and (width>=761px){.index-grid-company{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr))}}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.card-grid-cover{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));display:grid}.index-grid-person{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-person), 1fr));display:grid}.index-tag-list{grid-template-columns:repeat(auto-fill, minmax(var(--container-index-tag), 1fr));display:grid}.link-stat-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));display:grid}.review-asset-grid{grid-template-columns:repeat(auto-fill, minmax(var(--container-review-asset), 1fr));display:grid}.review-grid{grid-template-columns:repeat(auto-fill, minmax(min(100%, var(--container-review-card)), 1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-3\/4{aspect-ratio:3/4}.aspect-16\/10{aspect-ratio:16/10}.aspect-auto{aspect-ratio:auto}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-1\.75{width:calc(var(--spacing) * 1.75);height:calc(var(--spacing) * 1.75)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-3\.75{width:calc(var(--spacing) * 3.75);height:calc(var(--spacing) * 3.75)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-4\.5{width:calc(var(--spacing) * 4.5);height:calc(var(--spacing) * 4.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-7\.5{width:calc(var(--spacing) * 7.5);height:calc(var(--spacing) * 7.5)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-9\.5{width:calc(var(--spacing) * 9.5);height:calc(var(--spacing) * 9.5)}.size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-17\.5{width:calc(var(--spacing) * 17.5);height:calc(var(--spacing) * 17.5)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-crop-preview{width:var(--spacing-crop-preview);height:var(--spacing-crop-preview)}.size-empty-glyph{width:var(--spacing-empty-glyph);height:var(--spacing-empty-glyph)}.size-full{width:100%;height:100%}.h-\(--crop-h\){height:var(--crop-h)}.h-\(--crop-t\){height:var(--crop-t)}.h-\(--tile-height\){height:var(--tile-height)}.h-0{height:0}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-7\.5{height:calc(var(--spacing) * 7.5)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-56{height:calc(var(--spacing) * 56)}.h-64{height:calc(var(--spacing) * 64)}.h-70{height:calc(var(--spacing) * 70)}.h-75{height:calc(var(--spacing) * 75)}.h-\[2px\]{height:2px}.h-auto{height:auto}.h-full{height:100%}.h-max{height:max-content}.h-review-card{height:var(--spacing-review-card)}.h-review-card-tall{height:var(--spacing-review-card-tall)}.h-review-image{height:var(--spacing-review-image)}.max-h-22{max-height:calc(var(--spacing) * 22)}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-130{max-height:calc(var(--spacing) * 130)}.max-h-\[240px\]{max-height:240px}.max-h-crop-frame{max-height:var(--spacing-crop-frame)}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-6{min-height:calc(var(--spacing) * 6)}.min-h-7{min-height:calc(var(--spacing) * 7)}.min-h-9{min-height:calc(var(--spacing) * 9)}.min-h-9\.5{min-height:calc(var(--spacing) * 9.5)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-11\.5{min-height:calc(var(--spacing) * 11.5)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-16{min-height:calc(var(--spacing) * 16)}.min-h-24{min-height:calc(var(--spacing) * 24)}.min-h-30{min-height:calc(var(--spacing) * 30)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-33{min-height:calc(var(--spacing) * 33)}.min-h-40{min-height:calc(var(--spacing) * 40)}.min-h-48{min-height:calc(var(--spacing) * 48)}.min-h-52{min-height:calc(var(--spacing) * 52)}.min-h-60{min-height:calc(var(--spacing) * 60)}.min-h-64{min-height:calc(var(--spacing) * 64)}.min-h-80{min-height:calc(var(--spacing) * 80)}.min-h-\[52px\]{min-height:52px}.w-\(--crop-l\){width:var(--crop-l)}.w-\(--crop-w\){width:var(--crop-w)}.w-\(--tile-width\){width:var(--tile-width)}.w-\(--trigger-width\){width:var(--trigger-width)}.w-0{width:0}.w-1{width:var(--spacing)}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-2\.5{width:calc(var(--spacing) * 2.5)}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing) * 3)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-24{width:calc(var(--spacing) * 24)}.w-37\.5{width:calc(var(--spacing) * 37.5)}.w-48{width:calc(var(--spacing) * 48)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[2px\]{width:2px}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-auto{width:auto}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-review-cover-narrow{width:var(--container-review-cover-narrow)}.max-w-80{max-width:calc(var(--spacing) * 80)}.max-w-90{max-width:calc(var(--spacing) * 90)}.max-w-190{max-width:calc(var(--spacing) * 190)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-cover-crop{max-width:var(--container-cover-crop)}.max-w-empty-copy{max-width:var(--container-empty-copy)}.max-w-form-modal{max-width:var(--container-form-modal)}.max-w-full{max-width:100%}.max-w-none{max-width:none}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.min-w-7\.5{min-width:calc(var(--spacing) * 7.5)}.min-w-25{min-width:calc(var(--spacing) * 25)}.min-w-31{min-width:calc(var(--spacing) * 31)}.min-w-32{min-width:calc(var(--spacing) * 32)}.min-w-35{min-width:calc(var(--spacing) * 35)}.min-w-40{min-width:calc(var(--spacing) * 40)}.min-w-50{min-width:calc(var(--spacing) * 50)}.min-w-64{min-width:calc(var(--spacing) * 64)}.min-w-80{min-width:calc(var(--spacing) * 80)}.min-w-160{min-width:calc(var(--spacing) * 160)}.flex-1{flex:1}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-50{flex-basis:calc(var(--spacing) * 50)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-3{--tw-translate-x:calc(var(--spacing) * 3);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-6{--tw-translate-x:calc(var(--spacing) * 6);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.button-press-motion{transition:background-color var(--button-transition-ms) ease, border-color var(--button-transition-ms) ease, box-shadow var(--button-transition-ms) ease, color var(--button-transition-ms) ease, transform .42s cubic-bezier(.4, 0, .2, 1)}.button-press-motion:active:not(:disabled):not([aria-disabled=true]){transition-duration:.15s,.15s,.15s,.15s,.22s;transform:scale(.98)}.button-press-motion:disabled,.button-press-motion[aria-disabled=true]{transform:none}@media (prefers-reduced-motion:reduce){.button-press-motion{transition:none;transform:none}}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dot-wave-0{animation:1.2s ease-in-out infinite peach-dot-wave}.dot-wave-1{animation:1.2s ease-in-out .15s infinite peach-dot-wave}.dot-wave-2{animation:1.2s ease-in-out .3s infinite peach-dot-wave}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-nwse-resize{cursor:nwse-resize}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize{resize:both}.scroll-mt-20{scroll-margin-top:calc(var(--spacing) * 20)}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.columns-2{columns:2}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-1\.75{gap:calc(var(--spacing) * 1.75)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-2\.25{gap:calc(var(--spacing) * 2.25)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[2px\]{gap:2px}.gap-\[5px\]{gap:5px}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-2\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-7{column-gap:calc(var(--spacing) * 7)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-0\.5{row-gap:calc(var(--spacing) * .5)}.gap-y-1{row-gap:var(--spacing)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.self-center{align-self:center}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2-5xl{border-radius:var(--radius-2-5xl)}.rounded-2lg{border-radius:var(--radius-2lg)}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.5px\]{border-radius:.5px}.rounded-\[0\.75px\]{border-radius:.75px}.rounded-\[1\.5px\]{border-radius:1.5px}.rounded-\[1px\]{border-radius:1px}.rounded-\[2px\]{border-radius:2px}.rounded-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-floating{border-radius:var(--radius-floating)}.rounded-full{border-radius:2147483647px}.rounded-glass-key{border-radius:var(--radius-glass-key)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-surface{border-radius:var(--radius-surface)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.rounded-b-surface{border-bottom-right-radius:var(--radius-surface);border-bottom-left-radius:var(--radius-surface)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-\[0\.5px\]{border-style:var(--tw-border-style);border-width:.5px}.border-\[0\.25px\]{border-style:var(--tw-border-style);border-width:.25px}.border-\[0\.375px\]{border-style:var(--tw-border-style);border-width:.375px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-\(--glass-low\){border-color:var(--glass-low)}.border-accent-600{border-color:var(--color-accent-600)}.border-border{border-color:var(--color-separator-border)}.border-border-button-default,.border-border-button-default\/50{border-color:var(--color-border-button-default)}@supports (color:color-mix(in lab, red, red)){.border-border-button-default\/50{border-color:color-mix(in oklab, var(--color-border-button-default) 50%, transparent)}}.border-border-checkbox-default{border-color:var(--color-border-checkbox-default)}.border-border-checkbox-hover{border-color:var(--color-border-checkbox-hover)}.border-border-error-default{border-color:var(--color-border-error-default)}.border-border\/50{border-color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.border-border\/50{border-color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.border-current,.border-current\/15{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/15{border-color:color-mix(in oklab, currentcolor 15%, transparent)}}.border-current\/20{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/20{border-color:color-mix(in oklab, currentcolor 20%, transparent)}}.border-current\/35{border-color:currentColor}@supports (color:color-mix(in lab, red, red)){.border-current\/35{border-color:color-mix(in oklab, currentcolor 35%, transparent)}}.border-separator-border{border-color:var(--color-separator-border)}.border-text-primary\/15{border-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.border-text-primary\/15{border-color:color-mix(in oklab, var(--color-text-primary) 15%, transparent)}}.border-transparent{border-color:#0000}.bg-\(--keep\)\/22{background-color:var(--keep)}@supports (color:color-mix(in lab, red, red)){.bg-\(--keep\)\/22{background-color:color-mix(in oklab, var(--keep) 22%, transparent)}}.bg-background{background-color:var(--color-background-primary-default)}.bg-background-full{background-color:var(--color-background-full)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.bg-background-primary-hover{background-color:var(--color-background-primary-hover)}.bg-background-secondary-default{background-color:var(--color-background-secondary-default)}.bg-background-tertiary-default{background-color:var(--color-background-tertiary-default)}.bg-background-tertiary-error{background-color:var(--color-background-tertiary-error)}.bg-background\/70{background-color:var(--color-background-primary-default)}@supports (color:color-mix(in lab, red, red)){.bg-background\/70{background-color:color-mix(in oklab, var(--color-background-primary-default) 70%, transparent)}}.bg-border-focus-ring{background-color:var(--color-border-focus-ring)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-card-footer{background-color:var(--card-footer,transparent)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5,.bg-chart-5\/10{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.bg-chart-5\/10{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.bg-chart-6,.bg-chart-6\/10{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.bg-chart-6\/10{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.bg-chart-7\/10{background-color:var(--color-chart-7)}@supports (color:color-mix(in lab, red, red)){.bg-chart-7\/10{background-color:color-mix(in oklab, var(--color-chart-7) 10%, transparent)}}.bg-chart-8\/10{background-color:var(--color-chart-8)}@supports (color:color-mix(in lab, red, red)){.bg-chart-8\/10{background-color:color-mix(in oklab, var(--color-chart-8) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-foreground{background-color:var(--color-text-primary)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-muted-foreground{background-color:var(--color-text-secondary)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-lime-text{background-color:var(--color-status-lime-text)}.bg-status-purple-background{background-color:var(--color-status-purple-background)}.bg-status-rose-background{background-color:var(--color-status-rose-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-status-yellow-text{background-color:var(--color-status-yellow-text)}.bg-text-primary\/10{background-color:var(--color-text-primary)}@supports (color:color-mix(in lab, red, red)){.bg-text-primary\/10{background-color:color-mix(in oklab, var(--color-text-primary) 10%, transparent)}}.bg-text-tertiary{background-color:var(--color-text-tertiary)}.bg-text-white{background-color:var(--color-text-white)}.bg-transparent{background-color:#0000}.bg-transparent\!{background-color:#0000!important}.bg-linear-to-b{--tw-gradient-position:to bottom}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-b{--tw-gradient-position:to bottom in oklab}}.bg-linear-to-b{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-linear-to-t{--tw-gradient-position:to top}@supports (background-image:linear-gradient(in lab, red, red)){.bg-linear-to-t{--tw-gradient-position:to top in oklab}}.bg-linear-to-t{background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\(image\:--crop-preview\){background-image:var(--crop-preview)}.from-accent-400{--tw-gradient-from:var(--color-accent-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-accent-500{--tw-gradient-from:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-control-indicator-background{--tw-gradient-from:var(--color-control-indicator-background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-off-chip-start{--tw-gradient-from:var(--color-switch-off-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-switch-on-chip-start{--tw-gradient-from:var(--color-switch-on-chip-start);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-\[43\.837\%\]{--tw-gradient-from-position:43.837%}.to-accent-500{--tw-gradient-to:var(--color-accent-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-accent-600{--tw-gradient-to:var(--color-accent-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-control-indicator-background-subtle{--tw-gradient-to:var(--color-control-indicator-background-subtle);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-off-chip-end{--tw-gradient-to:var(--color-switch-off-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-switch-on-chip-end{--tw-gradient-to:var(--color-switch-on-chip-end);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-\(length\:--crop-preview-size\){background-size:var(--crop-preview-size)}.bg-\(position\:--crop-preview-at\){background-position:var(--crop-preview-at)}.bg-no-repeat{background-repeat:no-repeat}.fill-background-secondary-default{fill:var(--color-background-secondary-default)}.fill-background-tertiary-default{fill:var(--color-background-tertiary-default)}.fill-border-focus-ring{fill:var(--color-border-focus-ring)}.fill-chart-1{fill:var(--color-chart-1)}.fill-chart-2{fill:var(--color-chart-2)}.fill-chart-3{fill:var(--color-chart-3)}.fill-chart-4{fill:var(--color-chart-4)}.fill-chart-5{fill:var(--color-chart-5)}.fill-chart-6{fill:var(--color-chart-6)}.fill-chart-track{fill:var(--color-chart-track)}.fill-current{fill:currentColor}.fill-text-secondary{fill:var(--color-text-secondary)}.stroke-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-\[1\.5px\]{padding:1.5px}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-1\.25{padding-block:calc(var(--spacing) * 1.25)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-px{padding-block:1px}.pt-0\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-10\.5{padding-bottom:calc(var(--spacing) * 10.5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-body-2-medium{font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}.text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.text-body-bold{font-size:var(--text-body-bold);line-height:var(--tw-leading,var(--text-body-bold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-bold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-bold--font-weight))}.text-body-medium{font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight))}.text-body-regular{font-size:var(--text-body-regular);line-height:var(--tw-leading,var(--text-body-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-regular--font-weight))}.text-body-semibold{font-size:var(--text-body-semibold);line-height:var(--tw-leading,var(--text-body-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-body-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-semibold--font-weight))}.text-caption-1-medium{font-size:var(--text-caption-1-medium);line-height:var(--tw-leading,var(--text-caption-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-medium--font-weight))}.text-caption-1-regular{font-size:var(--text-caption-1-regular);line-height:var(--tw-leading,var(--text-caption-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-regular--font-weight))}.text-caption-1-semibold{font-size:var(--text-caption-1-semibold);line-height:var(--tw-leading,var(--text-caption-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-caption-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-caption-1-semibold--font-weight))}.text-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-display-4-medium\!{font-size:var(--text-display-4-medium)!important;line-height:var(--tw-leading,var(--text-display-4-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))!important}.text-headline-medium{font-size:var(--text-headline-medium);line-height:var(--tw-leading,var(--text-headline-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-headline-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-headline-medium--font-weight))}.text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}.text-title-1-regular{font-size:var(--text-title-1-regular);line-height:var(--tw-leading,var(--text-title-1-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-regular--font-weight))}.text-title-1-semibold{font-size:var(--text-title-1-semibold);line-height:var(--tw-leading,var(--text-title-1-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-semibold--font-weight))}.text-title-2-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-medium\!{font-size:var(--text-title-2-medium)!important;line-height:var(--tw-leading,var(--text-title-2-medium--line-height))!important;letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing))!important;font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))!important}.text-title-2-regular{font-size:var(--text-title-2-regular);line-height:var(--tw-leading,var(--text-title-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-regular--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-medium{font-size:var(--text-title-3-medium);line-height:var(--tw-leading,var(--text-title-3-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-medium--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.leading-4\.5{--tw-leading:calc(var(--spacing) * 4.5);line-height:calc(var(--spacing) * 4.5)}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-empty-copy{--tw-leading:var(--leading-empty-copy);line-height:var(--leading-empty-copy)}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-caps{--tw-tracking:var(--tracking-caps);letter-spacing:var(--tracking-caps)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.text-\(--glass-text\)\/60{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/60{color:color-mix(in oklab, var(--glass-text) 60%, transparent)}}.text-\(--glass-text\)\/62{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.text-\(--glass-text\)\/62{color:color-mix(in oklab, var(--glass-text) 62%, transparent)}}.text-\(--keep\){color:var(--keep)}.text-accent-600{color:var(--color-accent-600)}.text-background{color:var(--color-background-primary-default)}.text-border,.text-border\/60{color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.text-border\/60{color:color-mix(in oklab, var(--color-separator-border) 60%, transparent)}}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.text-chart-5{color:var(--color-chart-5)}.text-chart-6{color:var(--color-chart-6)}.text-chart-7{color:var(--color-chart-7)}.text-chart-8{color:var(--color-chart-8)}.text-foreground{color:var(--color-text-primary)}.text-foreground-full{color:var(--color-foreground-full)}.text-foreground-icon-error{color:var(--color-foreground-icon-error)}.text-foreground-icon-primary{color:var(--color-foreground-icon-primary)}.text-foreground-icon-quaternary{color:var(--color-foreground-icon-quaternary)}.text-foreground-icon-secondary{color:var(--color-foreground-icon-secondary)}.text-foreground-icon-tertiary{color:var(--color-foreground-icon-tertiary)}.text-inherit{color:inherit}.text-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-muted-foreground{color:var(--color-text-secondary)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.text-status-blue-text{color:var(--color-status-blue-text)}.text-status-cyan-text{color:var(--color-status-cyan-text)}.text-status-lime-text{color:var(--color-status-lime-text)}.text-status-purple-text{color:var(--color-status-purple-text)}.text-status-rose-text{color:var(--color-status-rose-text)}.text-status-yellow-text{color:var(--color-status-yellow-text)}.text-text-disabled{color:var(--color-text-disabled)}.text-text-error-primary{color:var(--color-text-error-primary)}.text-text-primary{color:var(--color-text-primary)}.text-text-secondary{color:var(--color-text-secondary)}.text-text-tertiary{color:var(--color-text-tertiary)}.text-text-white{color:var(--color-text-white)}.uppercase{text-transform:uppercase}.not-italic{font-style:normal}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.reveal-content{opacity:0;filter:blur(2px);transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-content[data-revealed]{opacity:1;filter:none}.reveal-skeleton{transition:opacity var(--motion-reveal), filter var(--motion-reveal)}.reveal-skeleton[data-revealed]{opacity:0;filter:blur(2px)}.opacity-0{opacity:0}.opacity-15{opacity:.15}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_2px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 2px 2px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\,0_0\.75px_0_0_rgb\(0_0_0\/0\.05\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008), 0 .75px 0 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_3px_3px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 3px 3px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_4px_4px_0_rgb\(0_0_0\/0\.03\)\]{--tw-shadow:0 4px 4px 0 var(--tw-shadow-color,#00000008);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1\.5px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.75px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1.5px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .75px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_0_rgb\(255_255_255\/0\.25\)\,inset_0_0_0_0\.5px_var\(--color-accent-500\)\]{--tw-shadow:inset 0 1px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 .5px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-card{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-checkbox-selected{--tw-shadow:inset 0 2px 0 0 var(--tw-shadow-color,#ffffff40), inset 0 0 0 1px var(--tw-shadow-color,var(--color-accent-500));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-dropdown{--tw-shadow:var(--elevation-dropdown);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:var(--elevation-xl);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:var(--elevation-xs);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow\/xs{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-background-full{--tw-ring-color:var(--color-background-full)}.ring-border-button-active{--tw-ring-color:var(--color-border-button-active)}.ring-border-button-hover{--tw-ring-color:var(--color-border-button-hover)}.ring-border-focus-ring{--tw-ring-color:var(--color-border-focus-ring)}.ring-transparent{--tw-ring-color:transparent}.ring-offset-2{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow-sm{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--drop-shadow-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,color\]{transition-property:background-color,border-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\,padding\,font-size\]{transition-property:background-color,border-color,box-shadow,padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,border-color\,box-shadow\]{transition-property:background-color,border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\,color\]{transition-property:background-color,box-shadow,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[padding\,font-size\]{transition-property:padding,font-size;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}@media (hover:hover){.group-hover\:border-border-checkbox-hover:is(:where(.group):hover *){border-color:var(--color-border-checkbox-hover)}.group-hover\:bg-background-primary-hover:is(:where(.group):hover *){background-color:var(--color-background-primary-hover)}.group-hover\:bg-foreground:is(:where(.group):hover *){background-color:var(--color-text-primary)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-data-selected\:border-border-focus-ring:is(:where(.group)[data-selected] *){border-color:var(--color-border-focus-ring)}.group-data-selected\:bg-accent-600:is(:where(.group)[data-selected] *){background-color:var(--color-accent-600)}.group-data-selected\:bg-background-primary-hover:is(:where(.group)[data-selected] *){background-color:var(--color-background-primary-hover)}.group-data-selected\:opacity-100:is(:where(.group)[data-selected] *){opacity:1}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-y-0:after{content:var(--tw-content);inset-block:0}.after\:-left-4:after{content:var(--tw-content);left:calc(var(--spacing) * -4)}.after\:w-11:after{content:var(--tw-content);width:calc(var(--spacing) * 11)}.after\:content-\[\'\'\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pt-1:first-child{padding-top:var(--spacing)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pb-1:last-child{padding-bottom:var(--spacing)}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:border-solid:hover{--tw-border-style:solid;border-style:solid}.hover\:border-\(--glass-rim\):hover{border-color:var(--glass-rim)}.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-\(--glass-pick-fill\):hover{background-color:var(--glass-pick-fill)}.hover\:bg-background-primary-hover:hover,.hover\:bg-background-primary-hover\/60:hover{background-color:var(--color-background-primary-hover)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-background-primary-hover\/60:hover{background-color:color-mix(in oklab, var(--color-background-primary-hover) 60%, transparent)}}.hover\:bg-button-ghost-hover:hover{background-color:var(--color-button-ghost-hover)}.hover\:bg-dropdown-item-hover-background:hover{background-color:var(--color-dropdown-item-hover-background)}.hover\:text-\(--glass-text\):hover{color:var(--glass-text)}.hover\:text-foreground-icon-primary:hover{color:var(--color-foreground-icon-primary)}.hover\:text-text-primary:hover{color:var(--color-text-primary)}.hover\:text-text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}.not-data-selected\:hover\:bg-card-hover:not([data-selected]):hover{background-color:var(--card-hover,transparent)}}.focus\:placeholder\:text-text-primary:focus::placeholder{color:var(--color-text-primary)}.focus-visible\:bg-dropdown-item-hover-background:focus-visible{background-color:var(--color-dropdown-item-hover-background)}.focus-visible\:stroke-border-focus-ring:focus-visible{stroke:var(--color-border-focus-ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-border-focus-ring:focus-visible{--tw-ring-color:var(--color-border-focus-ring)}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-3:focus-visible{--tw-ring-offset-width:3px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:-outline-offset-3:focus-visible{outline-offset:calc(3px * -1)}.focus-visible\:outline-border-focus-ring:focus-visible{outline-color:var(--color-border-focus-ring)}.focus-visible\:ring-inset:focus-visible{--tw-ring-inset:inset}.active\:cursor-grabbing:active{cursor:grabbing}.active\:border-border-button-active:active{border-color:var(--color-border-button-active)}.active\:bg-background-primary-active:active{background-color:var(--color-background-primary-active)}.active\:bg-button-ghost-active:active{background-color:var(--color-button-ghost-active)}.active\:text-accent-800:active{color:var(--color-accent-800)}.active\:text-text-primary:active{color:var(--color-text-primary)}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:border-border-button-default:disabled{border-color:var(--color-border-button-default)}.disabled\:bg-background-primary-disabled:disabled{background-color:var(--color-background-primary-disabled)}.disabled\:bg-button-ghost-disabled:disabled{background-color:var(--color-button-ghost-disabled)}.disabled\:text-button-ghost-disabled-foreground:disabled{color:var(--color-button-ghost-disabled-foreground)}.disabled\:text-button-primary-disabled-foreground:disabled{color:var(--color-button-primary-disabled-foreground)}.disabled\:text-foreground-disabled-danger:disabled{color:var(--color-foreground-disabled-danger)}.disabled\:text-icon-button-disabled-foreground:disabled{color:var(--color-icon-button-disabled-foreground)}.disabled\:text-input-disabled-text:disabled{color:var(--color-input-disabled-text)}.disabled\:text-text-tertiary:disabled{color:var(--color-text-tertiary)}.disabled\:no-underline:disabled{text-decoration-line:none}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.disabled\:placeholder\:text-input-disabled-text:disabled::placeholder{color:var(--color-input-disabled-text)}.aria-busy\:cursor-wait[aria-busy=true]{cursor:wait}.aria-busy\:opacity-55[aria-busy=true]{opacity:.55}.aria-checked\:bg-background-tertiary-default[aria-checked=true]{background-color:var(--color-background-tertiary-default)}.aria-checked\:text-text-primary[aria-checked=true]{color:var(--color-text-primary)}.aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.aria-disabled\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-expanded\:bg-background-primary-hover[aria-expanded=true]{background-color:var(--color-background-primary-hover)}.aria-expanded\:text-foreground-icon-primary[aria-expanded=true]{color:var(--color-foreground-icon-primary)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:var(--color-chart-1)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-1\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-1) 10%, transparent)}}.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:var(--color-chart-2)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-2\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-2) 10%, transparent)}}.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:var(--color-chart-3)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-3\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-3) 10%, transparent)}}.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:var(--color-chart-4)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-4\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-4) 10%, transparent)}}.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:var(--color-chart-5)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-5\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-5) 10%, transparent)}}.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:var(--color-chart-6)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-chart-6\/10[aria-pressed=true]{background-color:color-mix(in oklab, var(--color-chart-6) 10%, transparent)}}.aria-pressed\:ring-1[aria-pressed=true]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-pressed\:ring-chart-1[aria-pressed=true]{--tw-ring-color:var(--color-chart-1)}.aria-pressed\:ring-chart-2[aria-pressed=true]{--tw-ring-color:var(--color-chart-2)}.aria-pressed\:ring-chart-3[aria-pressed=true]{--tw-ring-color:var(--color-chart-3)}.aria-pressed\:ring-chart-4[aria-pressed=true]{--tw-ring-color:var(--color-chart-4)}.aria-pressed\:ring-chart-5[aria-pressed=true]{--tw-ring-color:var(--color-chart-5)}.aria-pressed\:ring-chart-6[aria-pressed=true]{--tw-ring-color:var(--color-chart-6)}.aria-pressed\:ring-inset[aria-pressed=true]{--tw-ring-inset:inset}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:bg-background-primary-default[aria-selected=true]{background-color:var(--color-background-primary-default)}.aria-selected\:bg-background-tertiary-default[aria-selected=true]{background-color:var(--color-background-tertiary-default)}.aria-selected\:font-medium[aria-selected=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.aria-selected\:text-border-focus-ring[aria-selected=true]{color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.aria-selected\:shadow-card[aria-selected=true]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-disabled\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-selected\:border-border-button-active[data-selected]{border-color:var(--color-border-button-active)}.data-selected\:bg-background-primary-default[data-selected]{background-color:var(--color-background-primary-default)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-\(--glass-text\)[data-selected]{color:var(--glass-text)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.data-selected\:shadow-card[data-selected]{--tw-shadow:var(--elevation-card);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:shadow-none[data-selected]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.data-selected\:after\:pointer-events-none[data-selected]:after{content:var(--tw-content);pointer-events:none}.data-selected\:after\:absolute[data-selected]:after{content:var(--tw-content);position:absolute}.data-selected\:after\:inset-0[data-selected]:after{content:var(--tw-content);inset:0}.data-selected\:after\:z-1[data-selected]:after{content:var(--tw-content);z-index:1}.data-selected\:after\:rounded-\[inherit\][data-selected]:after{content:var(--tw-content);border-radius:inherit}.data-selected\:after\:border-2[data-selected]:after{content:var(--tw-content);border-style:var(--tw-border-style);border-width:2px}.data-selected\:after\:border-border-focus-ring[data-selected]:after{content:var(--tw-content);border-color:var(--color-border-focus-ring)}.data-\[entering\]\:scale-95[data-entering]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[entering\]\:opacity-0[data-entering]{opacity:0}.data-\[entering\]\:blur-\[2px\][data-entering]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[exiting\]\:scale-95[data-exiting]{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.data-\[exiting\]\:opacity-0[data-exiting]{opacity:0}.data-\[exiting\]\:blur-\[2px\][data-exiting]{--tw-blur:blur(2px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.data-\[placement\=bottom\]\:origin-top-left[data-placement=bottom]{transform-origin:0 0}.data-\[placement\=left\]\:origin-right[data-placement=left]{transform-origin:100%}.data-\[placement\=right\]\:origin-left[data-placement=right]{transform-origin:0}.data-\[placement\=top\]\:origin-bottom-left[data-placement=top]{transform-origin:0 100%}@media not all and (width>=1120px){.max-plain-stat-pair\:grid-flow-row{grid-auto-flow:row}.max-plain-stat-pair\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media not all and (width>=1001px){.max-\[1001px\]\:justify-start{justify-content:flex-start}.max-\[1001px\]\:pt-0{padding-top:0}}@media not all and (width>=901px){.max-duplicate-narrow\:col-span-full{grid-column:1/-1}.max-duplicate-narrow\:col-start-2{grid-column-start:2}.max-duplicate-narrow\:-col-end-1{grid-column-end:calc(1 * -1)}}@media not all and (width>=761px){.max-board-narrow\:order-1{order:1}.max-board-narrow\:order-2{order:2}.max-board-narrow\:order-3{order:3}.max-board-narrow\:block{display:block}.max-cleanup-tight\:min-h-0{min-height:0}.max-board-narrow\:max-w-none{max-width:none}.max-board-narrow\:min-w-0{min-width:0}.max-board-narrow\:basis-40{flex-basis:calc(var(--spacing) * 40)}.max-board-narrow\:flex-col{flex-direction:column}.max-board-narrow\:items-stretch{align-items:stretch}.max-board-narrow\:gap-0{gap:0}.max-cleanup-tight\:gap-3{gap:calc(var(--spacing) * 3)}.max-cleanup-tight\:p-4\.5{padding:calc(var(--spacing) * 4.5)}.max-board-narrow\:px-2\.25{padding-inline:calc(var(--spacing) * 2.25)}.max-cleanup-tight\:px-4\.5{padding-inline:calc(var(--spacing) * 4.5)}.max-board-narrow\:text-body-2-regular{font-size:var(--text-body-2-regular);line-height:var(--tw-leading,var(--text-body-2-regular--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-regular--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-regular--font-weight))}.max-board-narrow\:text-title-1-medium{font-size:var(--text-title-1-medium);line-height:var(--tw-leading,var(--text-title-1-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-1-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-1-medium--font-weight))}}@media not all and (width>=601px){.max-compact\:ml-0{margin-left:0}.max-compact\:w-full{width:100%}.max-compact\:flex-col{flex-direction:column}.max-compact\:items-start{align-items:flex-start}.max-compact\:gap-3{gap:calc(var(--spacing) * 3)}.max-compact\:p-4{padding:calc(var(--spacing) * 4)}}@media not all and (width>=560px){.max-plain-stat-single\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media not all and (width>=40rem){.max-sm\:-mx-4{margin-inline:calc(var(--spacing) * -4)}.max-sm\:size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.max-sm\:h-65{height:calc(var(--spacing) * 65)}.max-sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-1\.5{gap:calc(var(--spacing) * 1.5)}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:p-4{padding:calc(var(--spacing) * 4)}.max-sm\:px-3{padding-inline:calc(var(--spacing) * 3)}.max-sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.max-sm\:py-2{padding-block:calc(var(--spacing) * 2)}.max-sm\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (width>=600px){.review-tight\:min-h-10{min-height:calc(var(--spacing) * 10)}.review-tight\:w-review-cover{width:var(--container-review-cover)}.review-tight\:px-3{padding-inline:calc(var(--spacing) * 3)}.review-tight\:py-2\.5{padding-block:calc(var(--spacing) * 2.5)}}@media (width>=900px){.review-split\:sticky{position:sticky}.review-split\:top-topbar{top:var(--spacing-topbar)}.review-split\:w-review-tabs{width:var(--container-review-tabs)}.review-split\:shrink-0{flex-shrink:0}.review-split\:flex-col{flex-direction:column}.review-split\:flex-row-reverse{flex-direction:row-reverse}.review-split\:flex-nowrap{flex-wrap:nowrap}.review-split\:items-start{align-items:flex-start}.review-split\:items-stretch{align-items:stretch}.review-split\:gap-6{gap:calc(var(--spacing) * 6)}}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:gap-4{gap:calc(var(--spacing) * 4)}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:w-72{width:calc(var(--spacing) * 72)}.md\:w-80{width:calc(var(--spacing) * 80)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.dark\:bg-background-primary-default:where(.dark,.dark *){background-color:var(--color-background-primary-default)}.dark\:bg-background-secondary-default:where(.dark,.dark *){background-color:var(--color-background-secondary-default)}.dark\:text-border:where(.dark,.dark *),.dark\:text-border\/50:where(.dark,.dark *){color:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.dark\:text-border\/50:where(.dark,.dark *){color:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}@media (hover:hover){.dark\:hover\:bg-background-primary-hover:where(.dark,.dark *):hover{background-color:var(--color-background-primary-hover)}}.dark\:aria-selected\:bg-background-primary-hover:where(.dark,.dark *)[aria-selected=true],.dark\:data-selected\:bg-background-primary-hover:where(.dark,.dark *)[data-selected]{background-color:var(--color-background-primary-hover)}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--color-text-secondary)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:var(--color-separator-border)}@supports (color:color-mix(in lab, red, red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke=\#ccc]{stroke:color-mix(in oklab, var(--color-separator-border) 50%, transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--color-separator-border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--color-chart-track)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke=\#ccc]{stroke:var(--color-separator-border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke=\#fff]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_img\]\:absolute img{position:absolute}.\[\&_img\]\:inset-0 img{inset:0}.\[\&_img\]\:block img{display:block}.\[\&_img\]\:size-full img{width:100%;height:100%}.\[\&_img\]\:max-h-none img{max-height:none}.\[\&_img\]\:max-w-none img{max-width:none}.\[\&_img\]\:object-cover img{object-fit:cover}.\[\&_img\]\:object-\(--face\) img{object-position:var(--face)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing) * 3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing) * 2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing) * 3)}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--color-text-secondary)}@scope(.peach-react){*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}:root{--color-foreground-full:var(--color-white);--color-foreground-icon-primary:var(--color-neutral-950);--color-foreground-icon-hover:var(--color-black);--color-foreground-icon-secondary:var(--color-neutral-500);--color-foreground-icon-tertiary:var(--color-neutral-400);--color-foreground-icon-quaternary:var(--color-neutral-300);--color-foreground-icon-error:var(--color-red-600);--color-foreground-icon-disabled:var(--color-neutral-300);--color-foreground-disabled:var(--color-neutral-400);--color-foreground-disabled-danger:var(--color-red-300);--color-input-disabled-foreground:var(--color-neutral-300);--color-icon-button-disabled-foreground:var(--color-neutral-300);--color-button-primary-disabled-foreground:var(--color-neutral-400);--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-disabled-danger:var(--color-red-300);--color-text-placeholder:var(--color-neutral-400);--color-text-error-primary:var(--color-red-500);--color-input-disabled-text:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-inner-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-primary-active:var(--color-neutral-200);--color-background-primary-disabled:var(--color-neutral-100);--color-input-disabled-background:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-secondary-hover:var(--color-neutral-200);--color-background-tertiary-default:var(--color-neutral-200);--color-background-tertiary-hover:var(--color-neutral-300);--color-background-tertiary-error:var(--color-red-100);--color-background-recent-hire-role:var(--color-neutral-100);--color-avatar-neutral-background:var(--color-neutral-300);--color-background-quaternary-default:var(--color-neutral-300);--color-background-quaternary-hover:var(--color-neutral-400);--color-background-quaternary-error:var(--color-red-200);--color-file-upload-icon-background:var(--color-neutral-300);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-500);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-button-white:var(--color-white);--color-border-error-default:var(--color-red-500);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-checkbox-active:var(--color-neutral-400);--color-border-checkbox-white:var(--color-white);--color-border-component-detail-container:var(--color-neutral-200);--color-border-ai-profile-card:var(--color-neutral-200);--color-border-table:var(--color-neutral-200);--color-border-button-group:var(--color-neutral-200);--color-border-sidebar-profile-hover:var(--color-neutral-300);--color-separator-border:var(--color-neutral-200);--color-separator-border-strong:var(--color-neutral-200);--color-border-focus-ring:var(--color-accent-500);--color-state-success-text:var(--color-lime-800);--color-state-success-base:var(--color-lime-200);--color-control-indicator-background:var(--color-white);--color-control-indicator-background-subtle:var(--color-neutral-100);--color-switch-off-chip-start:var(--color-white);--color-switch-off-chip-end:var(--color-neutral-100);--color-switch-on-chip-start:#2673fe}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-start:color-mix(in oklab, var(--color-accent-500) 63%, var(--color-accent-600))}}:root{--color-switch-on-chip-end:#144be9}@supports (color:color-mix(in lab, red, red)){:root{--color-switch-on-chip-end:color-mix(in oklab, var(--color-accent-600) 16%, var(--color-accent-700))}}:root{--color-stat-card-icon-background:var(--color-white);--color-segmented-control-background:var(--color-neutral-100);--color-segmented-control-selected-background:var(--color-white);--color-theme-toggle-sidebar-background:var(--color-neutral-200);--color-theme-toggle-sidebar-selected-background:var(--color-white);--color-ai-chat-composer-add-background:var(--color-neutral-100);--color-ai-chat-composer-add-hover-background:var(--color-neutral-200);--color-composer-panel-tab-background:var(--color-neutral-200);--color-composer-panel-add-background:var(--color-neutral-200);--color-composer-panel-add-hover-background:var(--color-neutral-300);--color-composer-panel-tile-border:var(--color-neutral-200);--color-composer-panel-rail-background:var(--color-neutral-100);--color-questionnaire-key-background:var(--color-neutral-100);--color-questionnaire-key-hover-background:var(--color-neutral-200);--color-agent-progress-ring:var(--color-neutral-700);--color-button-ghost-background:var(--color-accent-100);--color-button-ghost-hover:var(--color-accent-200);--color-button-ghost-active:var(--color-accent-300);--color-button-ghost-disabled:var(--color-accent-50);--color-button-ghost-foreground:var(--color-accent-700);--color-button-ghost-disabled-foreground:var(--color-accent-300);--color-dropdown-item-hover-background:var(--color-neutral-100);--color-kbd-background:var(--color-neutral-300);--color-kbd-foreground:var(--color-neutral-500);--color-docs-file-chip-background:var(--color-purple-50);--color-docs-file-chip-border:var(--color-purple-100);--color-docs-file-chip-foreground:var(--color-purple-500);--color-docs-command-accent:var(--color-purple-400);--color-docs-code-background:var(--color-background-primary-default);--color-docs-install-rail:var(--color-border-button-default);--color-badge-neutral-background:var(--color-neutral-200);--color-team-menu-count-background:var(--color-neutral-200);--color-team-menu-count-foreground:var(--color-neutral-500);--color-badge-new-background:var(--color-accent-100);--color-badge-new-text:var(--color-accent-600);--color-tab-count-selected-background:var(--color-accent-100);--color-pill-tab-blue-selected-background:var(--color-accent-50);--color-pill-tab-blue-hover-background:var(--color-neutral-100);--color-notification-information-background:var(--color-blue-100);--color-notification-information-foreground:var(--color-blue-600);--color-notification-success-background:var(--color-lime-100);--color-notification-success-foreground:var(--color-lime-600);--color-notification-error-background:var(--color-rose-100);--color-notification-error-foreground:var(--color-rose-600);--color-notification-center-background:var(--color-white);--color-status-lime-background:var(--color-lime-200);--color-status-lime-text:var(--color-lime-800);--color-status-yellow-background:var(--color-yellow-200);--color-status-yellow-text:var(--color-yellow-800);--color-status-rose-background:var(--color-rose-200);--color-status-rose-text:var(--color-rose-800);--color-status-cyan-background:var(--color-cyan-200);--color-status-cyan-text:var(--color-cyan-800);--color-status-blue-background:var(--color-blue-200);--color-status-blue-text:var(--color-blue-800);--color-status-purple-background:var(--color-purple-100);--color-status-purple-text:var(--color-purple-600);--color-status-dot-green-halo:var(--color-green-100);--color-status-dot-yellow-halo:var(--color-yellow-200);--color-status-dot-indigo-halo:var(--color-indigo-100);--color-date-range-background:var(--color-accent-100);--color-date-range-edge-background:var(--color-accent-300);--color-calendar-event-blue-background:var(--color-blue-100);--color-calendar-event-blue-title:var(--color-blue-700);--color-calendar-event-blue-time:var(--color-blue-700);--color-calendar-event-pink-background:var(--color-pink-100);--color-calendar-event-pink-title:var(--color-pink-700);--color-calendar-event-pink-time:var(--color-pink-700);--color-calendar-event-purple-background:var(--color-purple-100);--color-calendar-event-purple-title:var(--color-purple-700);--color-calendar-event-purple-time:var(--color-purple-700);--color-calendar-event-lime-background:var(--color-lime-100);--color-calendar-event-lime-title:var(--color-lime-800);--color-calendar-event-lime-time:var(--color-lime-700);--color-calendar-event-emerald-background:var(--color-emerald-100);--color-calendar-event-emerald-title:var(--color-emerald-800);--color-calendar-event-emerald-time:var(--color-emerald-700);--color-text-error-placeholder:var(--color-red-400);--color-chart-track:var(--color-neutral-200);--color-chart-cursor:var(--color-neutral-300);--color-chart-neutral:var(--color-neutral-300);--color-chart-1:var(--color-teal-400);--color-chart-1-active:var(--color-teal-500);--color-chart-2:var(--color-lime-400);--color-chart-2-active:var(--color-lime-500);--color-chart-3:var(--color-pink-400);--color-chart-3-active:var(--color-pink-500);--color-chart-4:var(--color-sky-400);--color-chart-4-active:var(--color-sky-500);--color-chart-5:var(--color-purple-400);--color-chart-5-active:var(--color-purple-500);--color-chart-6:var(--color-blue-400);--color-chart-6-active:var(--color-blue-500);--color-chart-7:var(--color-emerald-400);--color-chart-7-active:var(--color-emerald-500);--color-chart-8:var(--color-yellow-400);--color-chart-8-active:var(--color-yellow-500);--color-chart-9:var(--color-indigo-400);--color-chart-9-active:var(--color-indigo-500);--color-chart-agents-bar:var(--color-purple-300);--color-chart-agents-bar-active:var(--color-purple-400);--gradient-button-primary-default:linear-gradient(180deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);--gradient-button-primary-hover:linear-gradient(180deg, var(--color-accent-400) 0%, var(--color-accent-500) 100%);--gradient-button-primary-active:linear-gradient(180deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-200) 0%, var(--color-neutral-300) 100%);--gradient-button-danger-default:linear-gradient(180deg, var(--color-red-500) 0%, var(--color-red-600) 100%);--gradient-button-danger-hover:linear-gradient(180deg, var(--color-red-400) 0%, var(--color-red-500) 100%);--gradient-button-danger-active:linear-gradient(180deg, var(--color-red-600) 0%, var(--color-red-700) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-100) 0%, var(--color-red-200) 100%)}.dark{--color-foreground-full:var(--color-neutral-700);--color-foreground-icon-primary:var(--color-neutral-50);--color-foreground-icon-hover:var(--color-white);--color-foreground-icon-error:var(--color-red-400);--color-foreground-icon-tertiary:var(--color-neutral-600);--color-foreground-icon-quaternary:var(--color-neutral-700);--color-foreground-icon-disabled:var(--color-neutral-800);--color-foreground-disabled:var(--color-neutral-700);--color-foreground-disabled-danger:var(--color-red-400);--color-input-disabled-foreground:var(--color-neutral-600);--color-icon-button-disabled-foreground:var(--color-neutral-500);--color-button-primary-disabled-foreground:var(--color-neutral-500);--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-text-error-primary:var(--color-red-400);--color-input-disabled-text:#73737366}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-text:color-mix(in srgb, var(--color-neutral-500) 40%, transparent)}}.dark{--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-inner-default:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-inner-default:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-background-primary-active:var(--color-neutral-800);--color-background-primary-disabled:var(--color-neutral-800);--color-input-disabled-background:#2626264d}@supports (color:color-mix(in lab, red, red)){.dark{--color-input-disabled-background:color-mix(in srgb, var(--color-neutral-800) 30%, transparent)}}.dark{--color-switch-off-chip-start:var(--color-background-tertiary-default);--color-switch-off-chip-end:var(--color-background-tertiary-default);--color-background-secondary-default:var(--color-neutral-900);--color-background-secondary-hover:var(--color-neutral-800);--color-background-tertiary-default:var(--color-neutral-800);--color-background-tertiary-hover:var(--color-neutral-700);--color-background-tertiary-error:#46080999}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-tertiary-error:color-mix(in srgb, var(--color-red-950) 60%, transparent)}}.dark{--color-background-quaternary-default:var(--color-neutral-700);--color-background-quaternary-hover:var(--color-neutral-600);--color-background-recent-hire-role:#17171799}@supports (color:color-mix(in lab, red, red)){.dark{--color-background-recent-hire-role:color-mix(in srgb, var(--color-neutral-900) 60%, transparent)}}.dark{--color-avatar-neutral-background:var(--color-background-primary-default);--color-file-upload-icon-background:var(--color-neutral-600);--color-file-upload-icon-foreground:var(--color-neutral-400);--color-file-upload-icon-foreground-hover:var(--color-neutral-300);--color-stat-card-icon-background:var(--color-neutral-800);--color-segmented-control-background:var(--color-neutral-925);--color-segmented-control-selected-background:var(--color-neutral-800);--color-theme-toggle-sidebar-background:var(--color-neutral-800);--color-theme-toggle-sidebar-selected-background:var(--color-neutral-700);--color-ai-chat-composer-add-background:var(--color-neutral-700);--color-ai-chat-composer-add-hover-background:var(--color-neutral-600);--color-composer-panel-tab-background:#40404080}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tab-background:color-mix(in srgb, var(--color-neutral-700) 50%, transparent)}}.dark{--color-composer-panel-add-background:var(--color-neutral-700);--color-composer-panel-add-hover-background:var(--color-neutral-600);--color-composer-panel-tile-border:#ffffff24}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-tile-border:color-mix(in srgb, var(--color-white) 14%, transparent)}}.dark{--color-composer-panel-rail-background:#17171780}@supports (color:color-mix(in lab, red, red)){.dark{--color-composer-panel-rail-background:color-mix(in srgb, var(--color-neutral-900) 50%, transparent)}}.dark{--color-questionnaire-key-background:var(--color-neutral-700);--color-questionnaire-key-hover-background:var(--color-neutral-600);--color-agent-progress-ring:#ffffff80}@supports (color:color-mix(in lab, red, red)){.dark{--color-agent-progress-ring:color-mix(in srgb, var(--color-white) 50%, transparent)}}.dark{--color-button-ghost-background:var(--color-accent-900);--color-button-ghost-hover:var(--color-accent-800);--color-button-ghost-active:var(--color-accent-700);--color-button-ghost-disabled:var(--color-neutral-800);--color-button-ghost-foreground:var(--color-accent-300);--color-button-ghost-disabled-foreground:var(--color-neutral-600);--color-dropdown-item-hover-background:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-dropdown-item-hover-background:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-kbd-background:var(--color-neutral-700);--color-kbd-foreground:var(--color-neutral-400);--color-docs-file-chip-background:#3c036680}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-file-chip-background:color-mix(in srgb, var(--color-purple-950) 50%, transparent)}}.dark{--color-docs-file-chip-border:var(--color-purple-800);--color-docs-file-chip-foreground:var(--color-purple-400);--color-docs-code-background:var(--color-background-full);--color-docs-install-rail:#26262699}@supports (color:color-mix(in lab, red, red)){.dark{--color-docs-install-rail:color-mix(in srgb, var(--color-neutral-800) 60%, transparent)}}.dark{--shadow-2xs:0 1px #00000029;--shadow-xs:0 1px 2px 0 #0000002e;--shadow-sm:0 1px 2px 0 #0000001f, 0 1px 3px 0 #00000029;--shadow-md:0 2px 4px -1px #0000001f, 0 4px 6px -1px #0000002e;--shadow-lg:0 4px 6px -2px #0000001a, 0 10px 15px -3px #0000002e;--shadow-xl:0 10px 10px -5px #00000014, 0 20px 25px -5px #0003;--shadow-card:0 1px 1px 0 #00000024;--shadow-dropdown:0 1px 1px 0 #00000024, 0 4px 4px 0 #0000001a;--shadow-sidebar:0 1px 0 0 #0000001a, 0 1px 12px 0 #00000029, 0 0 1px 0 #0000006b;--shadow-waitlist:0 0 6px 0 #0000001f, 0 0 64px 0 #00000038, 0 0 1px 0 #0000006b, 0 1px 12px 0 #00000024, 0 1px 0 0 #00000014;--color-badge-neutral-background:var(--color-neutral-800);--color-team-menu-count-background:var(--color-neutral-700);--color-team-menu-count-foreground:var(--color-neutral-400);--color-badge-new-background:var(--color-accent-950);--color-badge-new-text:var(--color-accent-400);--color-tab-count-selected-background:#193cb899}@supports (color:color-mix(in lab, red, red)){.dark{--color-tab-count-selected-background:color-mix(in srgb, var(--color-accent-800) 60%, transparent)}}.dark{--color-notification-information-background:#193cb880}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-information-background:color-mix(in srgb, var(--color-blue-800) 50%, transparent)}}.dark{--color-notification-information-foreground:var(--color-blue-300);--color-notification-success-background:#3d630080}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-success-background:color-mix(in srgb, var(--color-lime-800) 50%, transparent)}}.dark{--color-notification-success-foreground:var(--color-lime-300);--color-notification-error-background:#a3003780}@supports (color:color-mix(in lab, red, red)){.dark{--color-notification-error-background:color-mix(in srgb, var(--color-rose-800) 50%, transparent)}}.dark{--color-notification-error-foreground:var(--color-rose-300);--color-notification-center-background:var(--color-neutral-900);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-button-white:var(--color-zinc-800);--color-border-error-default:var(--color-red-400);--color-border-checkbox-default:var(--color-neutral-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-border-checkbox-active:var(--color-neutral-500);--color-border-component-detail-container:var(--color-neutral-800);--color-border-ai-profile-card:var(--color-neutral-800);--color-border-table:var(--color-neutral-800);--color-border-button-group:#52525299}@supports (color:color-mix(in lab, red, red)){.dark{--color-border-button-group:color-mix(in srgb, var(--color-neutral-600) 60%, transparent)}}.dark{--color-border-sidebar-profile-hover:var(--color-neutral-600);--color-separator-border:var(--color-neutral-800);--color-separator-border-strong:#40404099}@supports (color:color-mix(in lab, red, red)){.dark{--color-separator-border-strong:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark{--color-status-lime-background:#192e0399}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-lime-background:color-mix(in srgb, var(--color-lime-950) 60%, transparent)}}.dark{--color-status-lime-text:var(--color-lime-500);--color-status-yellow-background:#43200499}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-yellow-background:color-mix(in srgb, var(--color-yellow-950) 60%, transparent)}}.dark{--color-status-yellow-text:var(--color-yellow-500);--color-status-rose-background:#4d021899}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-rose-background:color-mix(in srgb, var(--color-rose-950) 60%, transparent)}}.dark{--color-status-rose-text:var(--color-rose-500);--color-status-cyan-background:#05334599}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-cyan-background:color-mix(in srgb, var(--color-cyan-950) 60%, transparent)}}.dark{--color-status-cyan-text:var(--color-cyan-400);--color-status-blue-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-blue-background:color-mix(in srgb, var(--color-blue-950) 60%, transparent)}}.dark{--color-status-blue-text:var(--color-blue-300);--color-status-purple-background:#59168b80}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-purple-background:color-mix(in srgb, var(--color-purple-900) 50%, transparent)}}.dark{--color-status-purple-text:var(--color-purple-300);--color-status-dot-green-halo:#01663066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-green-halo:color-mix(in srgb, var(--color-green-800) 40%, transparent)}}.dark{--color-status-dot-yellow-halo:#874b0066}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-yellow-halo:color-mix(in srgb, var(--color-yellow-800) 40%, transparent)}}.dark{--color-status-dot-indigo-halo:#372aac66}@supports (color:color-mix(in lab, red, red)){.dark{--color-status-dot-indigo-halo:color-mix(in srgb, var(--color-indigo-800) 40%, transparent)}}.dark{--color-date-range-background:var(--color-accent-950);--color-date-range-edge-background:var(--color-accent-800);--color-pill-tab-blue-selected-background:#16245699}@supports (color:color-mix(in lab, red, red)){.dark{--color-pill-tab-blue-selected-background:color-mix(in srgb, var(--color-accent-950) 60%, transparent)}}.dark{--color-pill-tab-blue-hover-background:var(--color-neutral-800);--color-calendar-event-blue-background:var(--color-blue-950);--color-calendar-event-blue-title:var(--color-blue-300);--color-calendar-event-blue-time:var(--color-blue-300);--color-calendar-event-pink-background:var(--color-pink-950);--color-calendar-event-pink-title:var(--color-pink-300);--color-calendar-event-pink-time:var(--color-pink-300);--color-calendar-event-purple-background:var(--color-purple-950);--color-calendar-event-purple-title:var(--color-purple-300);--color-calendar-event-purple-time:var(--color-purple-300);--color-calendar-event-lime-background:var(--color-lime-950);--color-calendar-event-lime-title:var(--color-lime-300);--color-calendar-event-lime-time:var(--color-lime-300);--color-calendar-event-emerald-background:var(--color-emerald-950);--color-calendar-event-emerald-title:var(--color-emerald-300);--color-calendar-event-emerald-time:var(--color-emerald-300);--gradient-button-primary-disabled:linear-gradient(180deg, var(--color-neutral-700) 0%, var(--color-neutral-800) 100%);--gradient-button-danger-disabled:linear-gradient(180deg, var(--color-red-900) 0%, var(--color-red-950) 100%);--color-chart-track:var(--color-neutral-800);--color-chart-cursor:var(--color-neutral-700);--color-chart-neutral:var(--color-neutral-800);--color-chart-agents-bar:var(--color-purple-500);--color-chart-agents-bar-active:var(--color-purple-600)}.dark[data-accent]{--color-badge-new-background:#16245680}@supports (color:color-mix(in lab, red, red)){.dark[data-accent]{--color-badge-new-background:color-mix(in srgb, var(--color-accent-950) 50%, transparent)}}.peach-react [data-media-sections]{flex-direction:column;gap:16px;min-width:0;display:flex}.peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-media-grid]>[data-media-card]:not([data-variant=resource],[data-variant=junk]){align-self:start}body[data-surface=\/trash] .peach-react [data-media-grid]>[data-media-card]{align-self:stretch}.peach-react [data-media-next-row]{gap:11px;display:flex}body[data-surface=\/trash] .peach-react [data-media-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card]{font:var(--board-body);border-radius:var(--surface-radius);cursor:pointer;transform-origin:50%;background:0 0;flex-direction:column;gap:8px;min-width:0;transition:transform .18s,filter .18s,background-color .15s,box-shadow .15s;display:flex;position:relative;overflow:visible}.peach-react [data-media-card][data-variant=short]{flex:none;width:214px}.peach-react [data-media-card][data-variant=next]{flex:none;width:216px}body[data-density=dense] .peach-react [data-media-card][data-variant=short]{width:107px}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):is(:hover,:focus-within){background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-media-card]:not([data-variant=resource],[data-variant=junk]):hover [data-media-pic]{filter:saturate(.9)brightness(.94)}.peach-react [data-select-mode] [data-media-card]{cursor:default}.peach-react [data-select-mode] :is([data-media-open],[data-media-preview],[data-media-later],[data-media-seek]),.peach-react [data-select-mode] :is([data-media-later],[data-media-seek]) button{pointer-events:none!important}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card][data-longhover]{z-index:8;filter:brightness(1.04);transform:translateY(-7px)scale(1.065)}}body[data-surface=\/trash] .peach-react [data-media-card]{border:1px solid var(--line-soft);background:var(--color-background-primary-default);gap:0;overflow:hidden}body[data-surface=\/trash] .peach-react [data-media-card] [data-media-pic]{border-radius:0}.peach-react [data-media-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-media-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-card]>:is([data-media-pic],[data-media-stack],[data-media-meta]){z-index:2;position:relative}.peach-react [data-media-meta]{--card-meta-byline:1lh;--card-meta-tags:0px;--card-meta-block:calc(var(--fs-md) * 2.7 + 3px + var(--card-meta-byline) + var(--card-meta-tags))}.peach-react [data-media-meta]:has(>[data-media-text]>[data-media-tags]){--card-meta-tags:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 3px)}.peach-react [data-media-card]:not([data-variant=next]) :is([data-media-pic],[data-media-meta]){content-visibility:auto}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]{pointer-events:none;contain-intrinsic-block-size:auto var(--card-meta-block);flex-shrink:0;margin:-8px;padding:8px}.peach-react [data-media-card]:not([data-variant=next]) [data-media-meta]>*{pointer-events:auto}.peach-react [data-media-pic]{aspect-ratio:var(--card-ratio,16 / 9);border-radius:var(--surface-radius);background:#000;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.peach-react [data-media-pic]:before{content:"";pointer-events:none;background:var(--cover-blur,none) center / cover no-repeat;filter:blur(26px)brightness(.5);position:absolute;inset:-8%}.peach-react [data-media-pic]:has(>[data-media-art=cover]){background:0 0}.peach-react [data-media-stack] [data-media-pic]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-card][data-selected] [data-media-pic]:after{content:"";z-index:6;box-sizing:border-box;border:2px solid var(--on-media);border-radius:inherit;pointer-events:none;position:absolute;inset:0}.peach-react [data-media-art]{display:block;position:absolute;inset:0}.peach-react [data-media-nopic]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.12em;text-transform:uppercase}.peach-react [data-media-pic]>:is(video,img){object-fit:contain;background:#000;width:100%;height:100%;display:block;position:absolute;inset:0}.peach-react [data-media-pic]>video{opacity:0;transition:opacity .2s}.peach-react [data-media-pic]>video[data-playing]{opacity:1}.peach-react [data-media-stack]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{content:"";z-index:0;border:1px solid var(--border-15);border-radius:inherit;background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-stack]:before,.peach-react [data-media-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-media-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-media-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-media-stack] [data-media-pic]{z-index:1}.peach-react [data-media-badge]{z-index:2;background:var(--glass-fill);min-height:24px;box-shadow:inset 0 1px 0 var(--glass-rim), var(--glass-shadow);-webkit-backdrop-filter:blur(16px)saturate(145%);backdrop-filter:blur(16px)saturate(145%);color:var(--color-text-secondary);font:var(--board-caption);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:4px;padding:4px;transition:opacity .15s;display:flex;position:absolute;top:6px;left:6px}.peach-react [data-media-badge]>span{background:0 0;width:20px;height:20px;padding:0}.peach-react [data-media-duration]{z-index:2;border-radius:var(--badge-radius);color:#f2eadf;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;background:#000000b3;padding:2px 6px;transition:opacity .15s;position:absolute;bottom:6px;right:6px}@media (hover:hover) and (pointer:fine){.peach-react [data-media-card]:hover :is([data-media-badge],[data-media-duration]){opacity:0}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react [data-media-badge]{background:var(--ground);-webkit-backdrop-filter:none}}.peach-react [data-media-group]{z-index:6;border-radius:var(--control-radius);color:#fff;min-height:27px;font-size:var(--fs-xs);-webkit-backdrop-filter:blur(10px);background:#0c0808b8;padding:5px 9px;font-weight:600;position:absolute;top:9px;right:9px}.peach-react [data-media-scrub]{z-index:2;background:#00000073;height:3px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-scrub]>i{width:var(--media-fill);background:var(--loupe);height:100%;display:block}.peach-react [data-media-progress]{z-index:5;background:#ffffff4d;height:4px;position:absolute;bottom:0;left:0;right:0}.peach-react [data-media-progress]>i{width:var(--media-fill);background:var(--tungsten);height:100%;display:block}.peach-react [data-media-check]{z-index:8;color:#ffffffb8;-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000057;border:1px solid #ffffff47;border-radius:50%;place-items:center;width:26px;height:26px;display:none;position:absolute;top:10px;right:10px}.peach-react :is([data-select-mode] [data-media-check],[data-media-card][data-selected] [data-media-check]){display:grid}.peach-react [data-media-card][data-selected] [data-media-check]{border-color:var(--on-media);background:var(--on-media);color:var(--on-media-ink);box-shadow:0 3px 12px #0008}.peach-react [data-media-trash-mark]{z-index:7;border-radius:var(--badge-radius);color:#ffb14a;height:28px;font-size:var(--fs-xs);-webkit-backdrop-filter:saturate(1.8)blur(12px);background:#00000094;border:1px solid #ffb14a66;align-items:center;gap:5px;padding:0 9px;font-weight:600;display:none;position:absolute;bottom:10px;left:10px}.peach-react [data-pending-delete] [data-media-trash-mark]{display:flex}.peach-react [data-pending-delete] :is([data-media-art]>img,[data-media-pic]>:is(video,img)){filter:grayscale(.9)brightness(.54);opacity:.68}.peach-react [data-pending-delete] [data-media-pic]:before{filter:blur(26px)grayscale(.9)brightness(.27);opacity:.68}.peach-react [data-pending-delete] [data-media-meta]{opacity:.58}.peach-react [data-pending-delete]:hover [data-media-meta]{opacity:.76}.peach-react [data-media-card] :is([data-media-check],[data-media-trash-mark],[data-media-later],[data-media-seek],[data-media-glyph],[data-media-kind-glyph],[data-media-resource-action]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.peach-react [data-media-check] svg{width:16px;height:16px}.peach-react [data-media-trash-mark] svg{width:14px;height:14px}.peach-react [data-media-preview]{z-index:4;color:#fff;cursor:pointer;opacity:0;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:0;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;transition:transform .15s,opacity .15s;display:grid;position:absolute;top:12px;right:12px}.peach-react [data-previewing] [data-media-preview]{opacity:1;pointer-events:auto}.peach-react [data-longhover] [data-media-preview]{opacity:0;pointer-events:none}.peach-react [data-media-preview]:hover{transform:scale(1.2)}.peach-react [data-media-preview]>svg:first-child{width:36px;height:36px;position:absolute;inset:0;transform:rotate(-90deg)}.peach-react [data-media-preview] circle{fill:none;stroke-width:2px}.peach-react [data-media-preview] circle:first-child{stroke:#ffffff2e}.peach-react [data-media-preview] circle:last-child{stroke:#fff;stroke-linecap:round;stroke-dasharray:106.814;stroke-dashoffset:106.814px}.peach-react [data-previewing] [data-media-preview] circle:last-child{animation:preview-arc var(--hover-delay) linear forwards}.peach-react [data-longhover] [data-media-preview] circle:last-child{animation:none}@keyframes preview-arc{to{stroke-dashoffset:0}}.peach-react [data-media-ring-play]{fill:none;stroke:#fff;stroke-width:2px;width:14px;height:14px;margin-left:1px;position:relative}.peach-react :is([data-media-later],[data-media-seek]){z-index:4;opacity:0;pointer-events:none;align-items:center;gap:14px;transition:opacity .15s;display:flex;position:absolute}.peach-react [data-media-seek]{inset:50% auto auto 50%;transform:translate(-50%,-50%)}.peach-react [data-media-later]{bottom:12px;right:12px}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]){opacity:1}.peach-react :is([data-media-later],[data-media-seek]) button{color:#fff;cursor:pointer;pointer-events:none;-webkit-backdrop-filter:saturate(180%)blur(12px);background:#0000003d;border:1px solid #ffffff1f;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;transition:transform .15s,background .15s;display:flex;position:relative}.peach-react :is([data-longhover] [data-media-seek],[data-media-card]:hover [data-media-later]) button{pointer-events:auto}.peach-react :is([data-media-later],[data-media-seek]) button:hover{background:#00000057;transform:scale(1.12)}.peach-react [data-media-seek] svg{width:34px;height:34px}.peach-react [data-media-later] button{width:36px;height:36px;padding:0}.peach-react [data-media-later] svg{width:21px;height:21px}.peach-react [data-media-later] button[aria-pressed=true]{background:var(--ink);color:var(--ground)}.peach-react [data-media-meta]{gap:10px;min-width:0;display:flex}.peach-react [data-media-avatar]{background:var(--sunk);width:38px;height:38px;color:inherit;cursor:pointer;border:0;border-radius:50%;flex:none;margin-top:2px;padding:0;position:relative;overflow:hidden}.peach-react button[data-media-avatar]:hover{box-shadow:0 0 0 2px var(--ink-2)}.peach-react [data-media-avatar]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-media-avatar]>span:first-child{color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif;font-size:var(--fs-sm);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-media-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-media-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-media-avatars]>[data-media-avatar]{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion));margin-top:0}.peach-react [data-media-avatars]>*+*{margin-left:-22px}.peach-react [data-media-avatars]>:first-child{z-index:5}.peach-react [data-media-avatars]>:nth-child(2){z-index:4}.peach-react [data-media-avatars]>:nth-child(3){z-index:3}.peach-react [data-media-avatars]>:nth-child(4){z-index:2}.peach-react [data-media-avatars]>:nth-child(5){z-index:1}.peach-react [data-media-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-media-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-variant=next] [data-media-avatars]>:nth-child(n+3){display:none}.peach-react [data-media-text]{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.peach-react [data-media-title]{width:100%;min-height:2.7em;max-height:2.7em;color:inherit;font-size:var(--fs-md);text-align:left;word-break:break-all;cursor:pointer;-webkit-line-clamp:2;background:0 0;border:0;-webkit-box-orient:vertical;padding:0;line-height:1.35;display:-webkit-box;overflow:hidden}.peach-react span[data-media-title]{cursor:default}.peach-react [data-media-byline]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.peach-react [data-media-who]{min-width:0;max-width:100%;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom;background:0 0;border:0;padding:0;display:inline-block;overflow:hidden}.peach-react button[data-media-who]{cursor:pointer}.peach-react span[data-media-who]{cursor:default}.peach-react [data-media-who-more]{color:var(--muted)}.peach-react [data-media-flags]{gap:3px;margin-left:auto;display:flex}.peach-react [data-media-flags]>i{width:6px;height:6px;display:block}.peach-react [data-flag=dislike]{background:var(--drop)}.peach-react [data-flag=seen]{background:var(--muted)}.peach-react [data-flag=dispose]{background:var(--meter)}.peach-react [data-flag=later]{background:var(--ink)}.peach-react [data-variant=next] [data-media-why]{color:var(--loupe)}.peach-react [data-variant=next] [data-media-byline]{flex-wrap:nowrap;overflow:hidden}.peach-react [data-variant=next] [data-media-who]{flex:0 auto;max-width:55%}.peach-react [data-variant=next] [data-media-who-more]{white-space:nowrap;flex:none}.peach-react [data-variant=next] [data-media-why]{text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.peach-react [data-variant=next] :is([data-media-size],[data-media-watch-count]){display:none}.peach-react [data-media-tags]{height:calc(var(--fs-xs) * 1.45 + var(--tag-pad-y) * 2 + 2px + 8px);pointer-events:none;flex-wrap:wrap;align-content:flex-start;gap:5px;min-width:0;margin:-4px;padding:4px;display:flex;overflow:hidden}.peach-react [data-media-tags]>*{pointer-events:auto}.peach-react [data-media-tag]{max-width:100%;padding:var(--tag-pad-y) var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;line-height:1.45;overflow:hidden}.peach-react [data-media-tag]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-media-tag]:disabled{cursor:not-allowed}@media (width<=760px){.peach-react [data-media-tags]>:nth-child(n+3){display:none}}body[data-density=dense] .peach-react [data-media-grid]>[data-media-card]{padding-top:7px}body[data-density=dense] .peach-react [data-media-card] [data-media-meta]{--card-meta-block:calc(2.7em + 36px)}body[data-density=dense] .peach-react [data-media-card] [data-media-text]{height:calc(var(--card-meta-block) + 8px);pointer-events:none;grid-template-rows:1.35em 1.35em 30px;gap:3px;margin:-4px;padding:4px;display:grid;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-text]>:not([data-media-tags]){pointer-events:auto}body[data-density=dense] .peach-react [data-media-card] [data-media-title]{text-overflow:ellipsis;white-space:nowrap;-webkit-line-clamp:unset;max-width:100%;min-height:1.35em;display:block;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-byline]{white-space:nowrap;flex-wrap:nowrap;height:1.35em;min-height:0;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-who]{flex:0 auto}body[data-density=dense] .peach-react [data-media-card] :is([data-media-who-more],[data-media-size]){white-space:nowrap;flex:none}body[data-density=dense] .peach-react [data-media-card] :is([data-media-why],[data-media-watch-count]){display:none}body[data-density=dense] .peach-react [data-media-card] [data-media-tags]{flex-wrap:nowrap;align-items:flex-start;height:38px;overflow:hidden}body[data-density=dense] .peach-react [data-media-card] [data-media-tag]:nth-child(n+2){display:none}.peach-react [data-media-glyph]{color:var(--muted);font-size:var(--fs-xs);letter-spacing:.08em;place-items:center;gap:8px;display:grid}.peach-react [data-media-glyph] svg{width:32px;height:32px}.peach-react [data-media-glyph] b{font-weight:inherit}.peach-react [data-media-kind-glyph]{cursor:default;place-items:center;display:grid}.peach-react [data-media-kind-glyph] svg{width:19px;height:19px}.peach-react [data-media-resource-action]{z-index:5;border-radius:var(--control-radius);color:#fff;min-height:32px;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:saturate(1.5)blur(10px);background:#000000a3;border:1px solid #ffffff40;align-items:center;gap:6px;padding:0 10px;display:inline-flex;position:absolute;bottom:10px;right:10px}.peach-react [data-media-resource-action]:hover:not([aria-busy]){background:var(--hover);color:var(--ink)}.peach-react [data-media-resource-action]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-media-resource-action][aria-busy]{cursor:wait;opacity:.72}.peach-react [data-media-resource-action] svg{width:15px;height:15px}.peach-react [data-shorts-strip]{border-radius:var(--floating-radius);background:var(--ground);font:var(--board-body);border:0;padding:16px}.peach-react [data-shorts-strip]>h2{font-size:var(--fs-lg);align-items:center;gap:10px;margin:0 0 11px;font-weight:600;display:flex}.peach-react [data-shorts-count]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-shorts-enter]{border-radius:var(--pill-radius);background:var(--overlay-5);min-height:48px;color:var(--ink);font-family:inherit;font-size:var(--fs-xs);cursor:pointer;-webkit-backdrop-filter:blur(12px);transition:background .14s, translate .14s, scale calc(var(--spring-press-ms) * 1ms) var(--spring-press);border:0;align-items:center;gap:7px;margin-left:auto;padding:0 16px;display:inline-flex}.peach-react [data-shorts-enter]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-shorts-enter]:hover{background:color-mix(in srgb, var(--ink) 16%, transparent)}}.peach-react [data-shorts-enter]:hover{translate:0 -1px}.peach-react [data-shorts-enter]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-shorts-enter] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-shorts-row]{scrollbar-width:none;gap:13px;padding-bottom:7px;display:flex;overflow-x:auto}.peach-react [data-shorts-row]::-webkit-scrollbar{display:none}@media (width>=761px){.peach-react [data-shorts-strip]{margin-left:calc(-1 * (var(--railW) + 16px));padding-left:calc(var(--railW) + 32px);border-radius:0 var(--floating-radius) var(--floating-radius) 0}.peach-react [data-shorts-row]{margin-left:calc(-1 * (var(--railW) + 32px));padding-left:calc(var(--railW) + 32px)}}.peach-react [data-mix-glyph]{border:1px solid var(--border-10);background:var(--overlay-5);width:40px;height:40px;color:var(--ink);border-radius:50%;flex:none;place-items:center;display:grid}.peach-react [data-mix-glyph] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px}.peach-react [data-media-grid]>[data-mix-card]{border-radius:var(--surface-radius);font:var(--board-body)}.peach-react [data-media-grid]>[data-mix-card] [data-mix-cover]{content-visibility:auto}.peach-react [data-media-grid] [data-mix-cover]:has(>[data-media-art=cover]){background:var(--page)}.peach-react [data-media-grid] [data-mix-badge]{letter-spacing:normal;line-height:inherit}.peach-react [data-media-grid] [data-mix-title]{font-family:inherit;font-size:var(--fs-md);letter-spacing:normal;color:inherit;font-weight:700;line-height:1.45}.peach-react [data-media-grid] [data-mix-caption]{font-family:inherit;font-size:var(--fs-xs);line-height:inherit;letter-spacing:normal;color:var(--muted);margin-top:2px}.peach-react [data-media-grid]>[data-mix-card]:is(:hover,:focus-within){border-radius:var(--surface-radius);background:var(--hover);box-shadow:0 0 0 8px var(--hover)}.peach-react [data-load-more]{min-height:42px;color:var(--muted);text-align:center;margin:18px auto 0;padding:12px}.peach-react [data-entity-more]{border:1px solid var(--line);min-width:124px;height:36px;min-height:36px;color:var(--ink);cursor:pointer;background:0 0;border-radius:10px;justify-content:center;align-items:center;margin:20px auto 0;padding:0 12px;font-size:14px;font-weight:500;display:flex}.peach-react [data-entity-more]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-entity-more][aria-busy]{cursor:wait;opacity:.5}.peach-react [data-grid-reveal]{position:relative}.peach-react [data-grid-reveal]>[data-grid-fade]{z-index:2;pointer-events:none;animation:grid-skeleton-out var(--motion-reveal) forwards;position:absolute;inset:0;overflow:hidden}.peach-react [data-grid-reveal]>:not([data-grid-fade]){animation:skel-reveal-in var(--motion-reveal) backwards}@keyframes grid-skeleton-out{0%{opacity:1;filter:blur()}to{opacity:0;filter:blur(2px)}}.peach-react [data-junk-count]{flex-direction:column;gap:16px;display:flex}.peach-react [data-junk-filters-frame]{min-width:0;position:relative}.peach-react [data-junk-filters]{scrollbar-width:none;border-radius:var(--surface-radius);background:var(--color-background-primary-default);min-width:0;color:var(--ink-2);font-size:var(--fs-xs);align-items:center;gap:8px;padding:12px;display:flex;overflow-x:auto}.peach-react [data-junk-filters]::-webkit-scrollbar{display:none}html:not(.dark) .peach-react [data-junk-filters]{background:var(--color-background-secondary-default)}.peach-react [data-junk-filters] a{box-sizing:border-box;border-radius:var(--control-radius);height:32px;color:var(--muted);font-size:var(--fs-sm);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:6px;padding:0 12px;font-weight:400;text-decoration:none;display:inline-flex}.peach-react [data-junk-filters] a:hover{color:var(--ink)}.peach-react [data-junk-filters] a[aria-current=page]{background:var(--picked);color:var(--ink)}.peach-react [data-junk-filters] a:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-filters] a>svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-junk-filters] [data-count-badge]{color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-junk-divider]{background:var(--line-soft);flex:none;width:1px;height:20px;margin:0 6px}.peach-react [data-media-grid][data-junk-grid]{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.peach-react [data-media-card][data-junk-card]{border:1px solid var(--line-soft);border-radius:var(--surface-radius);background:var(--color-background-primary-default);cursor:default;content-visibility:auto;contain-intrinsic-size:auto 360px;gap:0;overflow:hidden}.peach-react [data-junk-card] [data-media-art]>img{object-fit:contain}.peach-react [data-junk-card] [data-media-glyph] b{font-weight:700}.peach-react [data-junk-meta]{gap:6px;min-width:0;padding:20px;display:grid}.peach-react [data-junk-title]{width:100%;min-width:0;color:var(--ink);font:inherit;text-align:left;background:0 0;border:0;padding:0;font-weight:600;line-height:1.4;display:block}.peach-react button[data-junk-title]{cursor:pointer}.peach-react button[data-junk-title]:hover{color:var(--ink-2)}.peach-react button[data-junk-title]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px;border-radius:var(--control-radius)}.peach-react [data-junk-facts]{min-width:0;color:var(--muted);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:7px;display:flex}.peach-react [data-junk-why]{overflow-wrap:anywhere}.peach-react [data-junk-size]{white-space:nowrap;margin-left:auto}.peach-react [data-junk-actions]{border-top:1px solid var(--line-soft);background:var(--color-background-secondary-default);grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto;padding:12px;display:grid}.peach-react [data-junk-actions] button{box-sizing:border-box;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);min-width:0;height:36px;min-height:36px;box-shadow:var(--elevation-xs);color:var(--ink);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;display:inline-flex}.peach-react [data-junk-actions] button:hover:not([aria-busy]){background:var(--inset);color:var(--ink)}.peach-react [data-junk-actions] button:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-junk-actions] button[aria-busy]{cursor:wait;opacity:.64}.peach-react [data-junk-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:15px;height:15px}.peach-react [data-junk-spinner]{flex:none;display:inline-flex}.peach-react [data-junk-actions] button[data-junk-action=dispose]{isolation:isolate;background:var(--board-red);color:#fff;font:inherit;font-size:var(--fs-xs);border:0;padding:0 10px;position:relative}.peach-react [data-junk-actions] button[data-junk-action=dispose]:before{content:"";z-index:-1;border-radius:inherit;background:var(--board-red-hover);opacity:0;pointer-events:none;transition:opacity .15s;position:absolute;inset:0}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]){background:var(--board-red);color:#fff}.peach-react [data-junk-actions] button[data-junk-action=dispose]:hover:not([aria-busy]):before{opacity:1}.peach-react [data-junk-actions] button[data-junk-action=dispose]:active{background:var(--board-red-active)}.peach-react [data-junk-state]{color:var(--drop);font-size:var(--fs-xs);grid-column:1/-1}.peach-react [data-junk-state]:empty{display:none}.peach-react [data-select-mode] [data-junk-actions]{pointer-events:none;opacity:.52}body[data-density=dense] .peach-react [data-junk-actions] [data-junk-label]{display:none}@media (width<=760px){.peach-react [data-junk-filters] a{height:44px}.peach-react [data-junk-actions] button{min-height:44px}.peach-react [data-junk-actions] button[data-junk-action=dispose]{padding-inline:7px}}.peach-react [data-entity-card]{background:var(--ground);min-width:0;max-width:100%;color:var(--ink);font:var(--board-body);letter-spacing:0;border-radius:18px;flex-direction:column;margin:0 0 22px;display:flex;overflow:hidden}.peach-react [data-entity-card] :is(a,button,[tabindex]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-profile]{--portrait-size:120px;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;min-width:0;padding:20px;display:grid}.peach-react [data-entity-profile]:has(>[data-entity-identity]>[data-entity-links]):has(>[data-entity-identity]>[data-entry-marks]){--portrait-size:160px}#index[data-hero-wide] .peach-react [data-entity-profile]:has(>[data-entity-facts]){grid-template-columns:auto minmax(0,1fr) minmax(280px,360px)}.peach-react [data-entity-portrait-wrap]{align-self:stretch;align-items:center;width:max-content;max-width:100%;display:flex;position:relative}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]{top:calc((100% - var(--portrait-size)) / 2);height:var(--portrait-size);pointer-events:none;position:absolute;left:0;right:0}.peach-react [data-entity-portrait-wrap]>[data-avatar-picker]>*{pointer-events:auto}.peach-react [data-entity-portrait]{width:auto;max-width:100%;height:var(--portrait-size);aspect-ratio:1;background:var(--overlay-5);color:var(--muted);font-size:var(--fs-4xl);border-radius:50%;place-items:center;display:grid;position:relative;overflow:hidden}.peach-react [data-entity-portrait=square]{border-radius:var(--floating-radius)}.peach-react [data-entity-portrait]>span{grid-area:1/1}.peach-react [data-entity-portrait]:has(img)>span{display:none}.peach-react [data-entity-portrait] img{z-index:1;object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-entity-portrait]:is([data-fit-native=mark],[data-native-small=true]) img{width:var(--markw,100%);height:var(--markh,100%);object-fit:contain;max-width:100%;max-height:100%;margin:auto}.peach-react [data-entity-identity]{min-width:0;max-width:100%}.peach-react [data-entity-title]{align-items:center;gap:8px;min-width:0;margin:0 0 9px;display:flex}.peach-react [data-entity-title] h2{letter-spacing:0;overflow-wrap:anywhere;margin:0;font-size:24px;font-weight:500;line-height:32px}.peach-react [data-namepick-toggle]{border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);width:32px;height:32px;color:var(--muted);cursor:pointer;flex:none;place-items:center;padding:0;display:grid}.peach-react [data-namepick-toggle][data-hovered]{background:var(--hover);color:var(--ink)}.peach-react [data-namepick-toggle] svg,.peach-react [data-namepick-menu] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:16px;height:16px}.peach-react [data-entity-alias]{color:var(--muted);overflow-wrap:anywhere;margin-bottom:0;font-size:14px;line-height:20px}.peach-react [data-entity-alias] b{color:var(--ink);font-weight:inherit}.peach-react [data-entity-alias=meta]{flex-wrap:wrap;align-items:center;gap:4px 18px;display:flex}.peach-react [data-meta-item]{align-items:center;gap:6px;min-width:0;display:inline-flex}.peach-react [data-meta-item=names]{flex-wrap:wrap}.peach-react [data-meta-item]>svg,.peach-react [data-entity-facts] dt svg{width:16px;height:16px;color:var(--muted);fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none}.peach-react [data-alias-names]>span+span:before,.peach-react [data-hero-pop] dd>span+span:before{color:var(--muted);content:"·";margin:0 6px}.peach-react [data-entity-alias] a{color:var(--tungsten);cursor:pointer;text-decoration:none}.peach-react [data-entity-alias] a:hover{color:var(--ink)}.peach-react [data-hero-more]{border:1px solid var(--line);border-radius:var(--pill-radius);height:22px;color:var(--ink);font:inherit;font-size:var(--fs-xs);cursor:pointer;background:0 0;margin-left:4px;padding:0 8px}.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-more]:is(:hover,[aria-expanded=true]){background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-hero-more=fact]{margin-left:0}.peach-react [data-hero-pop]{z-index:var(--layer-popover);box-sizing:border-box;overscroll-behavior:contain;border:1px solid var(--line);background:var(--surface);width:max-content;max-width:min(440px,100vw - 16px);max-height:calc(100dvh - 16px);color:var(--ink);font-size:var(--fs-sm);text-align:left;transform-origin:0 0;border-radius:16px;gap:8px;margin:0;padding:12px 14px;line-height:1.5;animation:.15s ease-out backwards board-menu-in;display:grid;position:fixed;inset:auto;overflow:hidden auto;box-shadow:0 12px 24px -4px var(--lightningcss-light,#0000001a)var(--lightningcss-dark,#0000008c),0 4px 8px -2px var(--lightningcss-light,#0000000d)var(--lightningcss-dark,#00000073)}.peach-react [data-hero-pop]:not(:popover-open){display:none}.peach-react [data-hero-pop-head]{margin:0;font-weight:500}.peach-react [data-hero-pop] dl{grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0;display:grid}.peach-react [data-hero-pop] dt{color:var(--muted);white-space:nowrap}.peach-react [data-hero-pop] dd{overflow-wrap:anywhere;min-width:0;margin:0}.peach-react [data-hero-pop] dd[data-wide]{grid-column:1/-1}.peach-react [data-hero-pop] small{color:var(--muted);font-size:inherit;margin-left:4px}.peach-react [data-entity-facts]{border-left:1px solid var(--line-soft);min-width:0;font-size:var(--fs-sm);text-align:left;grid-template-columns:auto minmax(0,1fr);align-content:center;place-self:stretch stretch;gap:10px 16px;margin:0;padding:2px 0 2px 24px;line-height:22px;display:grid}#index:not([data-hero-wide]) .peach-react [data-entity-facts]{border-top:1px solid var(--line-soft);border-left:0;grid-column:1/-1;padding:14px 0 0}.peach-react [data-entity-facts] dt{color:var(--muted);white-space:nowrap;align-self:start;align-items:center;gap:6px;display:flex}.peach-react [data-entity-facts] dd{min-width:0;color:var(--ink);margin:0}.peach-react [data-entity-facts] :is([data-fact-tone=num],dd[data-fact=num]){font-variant-numeric:tabular-nums}.peach-react [data-entity-facts] [data-fact-tone=sub]{color:var(--muted)}.peach-react [data-entity-facts] dd[data-fact=clip]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react :is(dd[data-fact=tags],[data-fact-tags]){flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-fact-tag]{padding:0 var(--tag-pad-x);border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--tag-fill);color:var(--ink-2);font-size:var(--fs-xs);white-space:nowrap;line-height:20px}.peach-react [data-entity-links]{flex-wrap:wrap;gap:8px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entity-links]>:is(a,span)[data-link]{box-sizing:border-box;border:1px solid var(--line);min-width:0;max-width:100%;height:36px;min-height:0;box-shadow:none;color:var(--ink);background:0 0;border-radius:10px;align-items:center;gap:8px;padding:0 12px 0 8px;font-size:13px;font-weight:400;text-decoration:none;display:inline-flex;overflow:hidden}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{border-color:var(--line);background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entity-links]>a[data-link]:hover{text-decoration:none}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=private],[data-link=gone]){color:var(--muted);border-style:dashed}.peach-react [data-entity-card] [data-entity-links]>:is([data-link=icon],[data-link=gone]){justify-content:center;gap:0;width:36px;padding:0}.peach-react [data-entity-card] [data-entity-links]>[data-link=url]{letter-spacing:.02em}.peach-react [data-link-label]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-link-icon]{border-radius:var(--badge-radius);background:0 0;flex:none;place-items:center;width:20px;height:20px;display:grid;position:relative;overflow:hidden}.peach-react [data-link-icon] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-link-icon] img{background:var(--sunk);object-fit:cover;width:100%;max-width:none;height:100%;position:absolute;inset:0}.peach-react [data-link-icon=brand] svg{stroke:none;filter:none;width:100%;height:100%}.peach-react [data-entry-marks]{flex-wrap:wrap;align-items:center;gap:32px;max-width:100%;margin-top:14px;display:flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]{border-radius:var(--control-radius);min-width:0;min-height:20px;box-shadow:none;color:var(--ink);background:0 0;border:0;align-items:center;gap:6px;margin:-4px -8px;padding:4px 8px;font-weight:500;text-decoration:none;display:inline-flex}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entity-card] [data-entry-marks]>a[data-entry-mark]:hover{text-decoration:none}.peach-react [data-entry-mark] svg{width:auto;height:22px}.peach-react [data-entry-ordinal]{color:var(--muted);font-size:var(--fs-sm)}.peach-react [data-missav-mark]{font-family:Halant,Georgia,Times New Roman,serif;font-size:var(--fs-xl);letter-spacing:.01em;white-space:nowrap;font-weight:500;line-height:22px}.peach-react [data-missav-mark]>span:last-child{color:#fe628e}@keyframes entryfeed-breathe{0%,to{color:var(--ink)}50%{color:var(--feed-mark)}}.peach-react [data-entry-feed]{border-radius:var(--control-radius);color:var(--ink);cursor:pointer;align-items:center;margin:-4px;padding:4px;display:inline-flex;position:relative}.peach-react [data-entry-feed]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entry-feed]:hover{background:color-mix(in srgb, var(--ink) 8%, var(--ground))}}.peach-react [data-entry-feed]:has(:checked){color:var(--feed-mark)}.peach-react [data-entry-feed]:has(:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entry-feed]:has([aria-busy=true]){opacity:.6;cursor:progress}.peach-react [data-entry-feed]>svg{fill:none;stroke:currentColor;stroke-width:2px;width:22px;height:22px}.peach-react [data-entry-feed]:not(:has(:checked)){animation:2.4s ease-in-out infinite entryfeed-breathe}.peach-react [data-entry-feed]:not(:has(:checked)):is(:hover,:has(:focus-visible)){color:var(--feed-mark);animation:none}.peach-react [data-entity-feed]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.peach-react [data-entry-feed-tip]{z-index:var(--layer-tooltip);border-radius:var(--surface-radius);background:var(--ink);width:max-content;max-width:250px;color:var(--ground);font-size:var(--fs-sm);white-space:normal;pointer-events:none;border:0;margin:0;padding:6px 8px;font-weight:400;line-height:1.3;position:fixed;inset:auto;overflow:visible}.peach-react [data-entity-foot]{border-top:1px solid var(--line-soft);background:var(--board-card-foot);align-items:center;gap:16px;min-width:0;padding:12px 20px;display:flex}.peach-react [data-related-people]{scrollbar-width:none;overscroll-behavior-inline:contain;flex:1;align-items:center;gap:4px;min-width:0;margin-top:-3px;padding-top:3px;display:flex;overflow-x:auto}.peach-react [data-related-people]::-webkit-scrollbar{display:none}.peach-react [data-related-people]>button{width:76px;max-width:none;height:auto;color:var(--muted);font:var(--board-body-medium);text-align:center;white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;border-radius:12px;flex-direction:column;flex:none;align-items:center;gap:6px;padding:6px 4px;display:flex}.peach-react [data-related-people]>button:hover{background:var(--hover);color:var(--ink)}.peach-react [data-related-people]>button:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-hero-ring]{background:var(--ink);border-radius:50%;flex:none;width:48px;height:48px;margin:0;display:block;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react [data-hero-ring]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-hero-ring]{color:var(--muted);font:600 18px/24px var(--board-font)}.peach-react [data-hero-ring]>span{color:inherit;font:inherit;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.peach-react [data-hero-ring]>img{object-fit:cover;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0}.peach-react [data-hero-costar-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-namepick-menu]{width:min(260px,100vw - 16px);font:var(--board-body);letter-spacing:0}.peach-react [data-namepick-list],.peach-react [data-namepick-list]>section{outline:none;gap:2px;display:grid}.peach-react [data-namepick-menu] [role^=menuitem]{box-sizing:border-box;width:100%;min-height:36px;color:var(--muted);text-align:left;overflow-wrap:anywhere;cursor:pointer;background:0 0;border-radius:10px;outline:none;justify-content:flex-start;align-items:center;gap:8px;padding:8px;display:flex}.peach-react [data-namepick-menu] [role^=menuitem]:is([data-hovered],[data-focus-visible]){background:var(--hover);color:var(--ink)}.peach-react [data-namepick-menu] [role=menuitemradio] svg{visibility:hidden}.peach-react [data-namepick-menu] [aria-checked=true]{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-namepick-menu] [aria-checked=true]{background:color-mix(in srgb, var(--ink) 10%, var(--surface))}}.peach-react [data-namepick-menu] [aria-checked=true]{color:var(--ink)}.peach-react [data-namepick-menu] [aria-checked=true] svg{visibility:visible}.peach-react [data-namepick-rule]{border:0;border-top:1px solid var(--border-10);height:0;margin:4px 1px}@media (width<=760px){.peach-react [data-entity-profile]{text-align:center;grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px;padding:16px}.peach-react [data-entity-portrait-wrap]{--portrait-size:96px}.peach-react [data-entity-portrait]{width:96px}.peach-react [data-entity-identity]{width:100%}.peach-react [data-entity-foot]{padding:10px 16px}.peach-react [data-entity-title]{justify-content:center}.peach-react [data-namepick-toggle]{position:relative}.peach-react [data-namepick-toggle]:after{content:"";width:44px;height:44px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.peach-react [data-namepick-menu] [role^=menuitem]{min-height:44px}.peach-react [data-entity-alias]{margin-bottom:10px}.peach-react :is([data-entity-alias=meta],[data-meta-item=names]){justify-content:center}.peach-react [data-entity-links]{scrollbar-width:none;overscroll-behavior-inline:contain;margin-top:9px;margin-bottom:-4px;flex-wrap:nowrap;justify-content:safe center;max-width:none;margin-inline:-16px;padding-block:4px;padding-inline:16px;scroll-padding-inline:16px;overflow:auto hidden}.peach-react [data-entity-links]::-webkit-scrollbar{display:none}.peach-react [data-entity-card] [data-entity-links]>*{flex:none}.peach-react [data-entry-marks]{justify-content:center}}.peach-react [data-entity-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react :is([data-entity-filter-glass],[data-entity-combo]) :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-entity-press]{transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press)}.peach-react [data-entity-press]:active{transition:scale 60ms ease-out;scale:.96}.peach-react [data-entity-sep]{background:var(--field-ring-hover);flex:none;width:1px;height:19px;margin:0 3px}.peach-react [data-entity-media]{flex:none;align-items:center;gap:2px;display:inline-flex}.peach-react [data-media-view]{z-index:1;width:30px;height:30px;color:var(--glass-text);border-radius:50%;flex:0 0 30px;place-items:center;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-media-view]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-media-view]{cursor:pointer}.peach-react [data-media-view]:hover,.peach-react [data-media-view][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-media-view] svg{fill:none;stroke:currentColor;stroke-width:2px;width:20px;height:20px;display:block}.peach-react [data-media-view][data-media-icon=image] svg{fill:currentColor;stroke:none}.peach-react [data-entity-scroll]{flex:1;align-items:center;gap:6px;min-width:0;display:flex;position:relative}.peach-react [data-entity-states]{flex:none;align-items:center;gap:6px;display:flex}.peach-react [data-entity-state]{z-index:1;height:30px;color:var(--glass-text);border-radius:999px;flex:none;justify-content:center;align-items:center;padding:0 10px;display:inline-flex;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-state]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react [data-entity-state]{white-space:nowrap;cursor:pointer;font-size:13px;line-height:20px}.peach-react [data-entity-state]:hover,.peach-react [data-entity-state][aria-pressed=true]{color:var(--glass-text)}.peach-react [data-entity-tags]{overscroll-behavior-inline:contain;scrollbar-width:none;flex-wrap:nowrap;flex:1;align-items:center;gap:6px;min-width:0;display:flex;overflow:auto hidden}.peach-react [data-entity-tags]::-webkit-scrollbar{display:none}.peach-react [data-entity-tag]{color:var(--glass-text);border-style:solid;gap:0}.peach-react [data-entity-tag][aria-pressed=false]:hover{border-color:var(--field-ring);color:var(--ink)}.peach-react [data-entity-tag][aria-pressed=true]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow);border-color:#0000}.peach-react [data-entity-tag] [data-count-badge]{color:var(--glass-text);margin-left:6px}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-entity-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-tag]:is(:hover,[aria-pressed=true]) [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 80%, transparent)}}@media (width<=760px){.peach-react [data-entity-scroll]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow:auto hidden}.peach-react [data-entity-scroll]::-webkit-scrollbar{display:none}.peach-react [data-entity-scroll]>[data-entity-tags]{flex:none;min-width:auto;overflow:visible}}.peach-react [data-entity-readout]{color:var(--ink-2);letter-spacing:normal;white-space:nowrap;flex:none;margin:0;font-size:12px;font-weight:400;line-height:20px}.peach-react [data-entity-sorts]{scrollbar-width:none;margin-left:auto;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin-block:-14px;padding:14px 2px;display:flex;overflow-x:auto}.peach-react [data-entity-sorts]::-webkit-scrollbar{display:none}.peach-react [data-entity-sort]{height:30px;min-height:30px;color:var(--glass-text);border-radius:7px;flex:none;align-items:center;padding:0 8px;display:inline-flex}@supports (color:color-mix(in lab, red, red)){.peach-react [data-entity-sort]{color:color-mix(in srgb, var(--glass-text) 62%, transparent)}}.peach-react [data-entity-sort]{white-space:nowrap;cursor:pointer;font-size:12px;line-height:20px}.peach-react [data-entity-sort]:hover{color:var(--glass-text)}.peach-react [data-entity-sort][aria-pressed=true]{color:var(--glass-text);font-weight:500}.peach-react [data-entity-sort] svg{flex:none;width:14px;height:14px;margin-left:5px}.peach-react [data-entity-batch]{background:var(--board-blue);width:36px;height:30px;min-height:30px;box-shadow:var(--elevation-xs);color:#fff;cursor:pointer;border-radius:7px;flex:none;place-items:center;font-size:12px;font-weight:600;display:inline-grid}.peach-react [data-entity-batch]:hover{background:var(--board-blue-hover);color:#fff}.peach-react [data-entity-batch] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px}.peach-react [data-entity-batch][aria-busy=true]{cursor:wait}.peach-react [data-filter-row=bottom][aria-busy=true] [data-entity-batch] svg{--strand-dash:100;--strand-cycle:2.2s}.peach-react [data-entity-layout]{flex:none;gap:2px;margin:0 6px}.peach-react [data-entity-layout] svg{width:16px;height:16px}.peach-react [data-entity-layout] [data-glass-segment][data-selected]{-webkit-backdrop-filter:var(--glass-pick);backdrop-filter:var(--glass-pick)}@media (pointer:coarse){.peach-react :is([data-entity-sort],[data-entity-batch]){height:36px}}.peach-react [data-photo-back]{border:1px solid var(--glass-low);border-radius:var(--control-radius);height:30px;color:var(--glass-text);white-space:nowrap;cursor:pointer;flex:none;align-items:center;gap:4px;padding:0 10px 0 6px;font-size:12px;display:flex}.peach-react [data-photo-back]:hover{background:var(--overlay-5)}.peach-react [data-photo-back] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-entity-srctools]{display:contents}.peach-react [data-entity-srctools]>*{flex:none;margin:0}.peach-react [data-entity-srctools] [aria-live]{flex:none}@media (width<=760px){.peach-react [data-entity-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;touch-action:pan-x pan-y;flex-wrap:nowrap;gap:10px;overflow:auto hidden}.peach-react [data-entity-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}.peach-react [data-entity-sorts]{flex:none;width:max-content;max-width:none;overflow:visible}.peach-react [data-entity-filter-glass][data-filter-free]{top:var(--filter-free-top)}}.peach-react [data-entity-combo]{height:auto;font:var(--board-body);interpolate-size:allow-keywords;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;transition:height .22s cubic-bezier(0,0,.2,1),margin-bottom .22s cubic-bezier(0,0,.2,1);display:flex;overflow:hidden}.peach-react [data-entity-combo]:empty{height:0;margin-bottom:0}@media (prefers-reduced-motion:reduce){.peach-react [data-entity-combo]{transition:none}}.peach-react [data-combo-chip]{border:1px solid var(--line);border-radius:var(--tag-radius);background:var(--picked);min-height:30px;color:var(--ink-2);font-size:var(--fs-md);align-items:center;padding:0 0 0 11px;line-height:20px;display:inline-flex;overflow:hidden}.peach-react [data-combo-chip] button{width:28px;height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;place-items:center;margin-left:5px;font-weight:400;display:grid}.peach-react [data-combo-chip] button:hover{background:var(--drop)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-combo-chip] button:hover{background:color-mix(in srgb, var(--drop) 12%, transparent)}}.peach-react [data-combo-chip] button:hover{color:var(--drop)}.peach-react [data-combo-clear]{min-height:28px;color:var(--muted);font-size:var(--fs-xs);cursor:pointer;align-items:center;padding:0 6px;display:inline-flex}.peach-react [data-photo-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));gap:10px;display:grid}.peach-react [data-photo-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-photo-wall]{--photo-columns:4}.peach-react [data-photo-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-photo-wall]{--photo-columns:3}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-photo-wall]{--photo-columns:2;gap:8px}.peach-react [data-photo-wall][data-size=big]{--photo-columns:1}}.peach-react [data-photo-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-photo-cell]{aspect-ratio:1;border-radius:var(--surface-radius);background:var(--sunk);cursor:zoom-in;border:0;width:100%;margin:0;padding:0;line-height:0;display:block;overflow:hidden}.peach-react [data-photo-cell] img{object-fit:cover;background:var(--sunk);color:#0000;width:100%;height:100%;display:block}.peach-react [data-photo-cell]:hover img{filter:brightness(1.06)}.peach-react [data-photo-cell]:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]{aspect-ratio:auto;break-inside:avoid;margin:0 0 14px}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell] img{aspect-ratio:auto 1;height:auto}.peach-react [data-photo-wall][data-layout=masonry]>[data-photo-cell]:not(:has(img)){aspect-ratio:3/2}.peach-react [data-photo-group]{min-width:0;color:var(--muted);font-size:var(--fs-sm);align-items:baseline;gap:10px;margin:28px 2px 10px;line-height:20px;display:flex}.peach-react [data-photo-group]>b{color:var(--ink);font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-md);font-variant-numeric:tabular-nums;flex:none}.peach-react [data-photo-group-title]{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.peach-react [data-photo-group-meta]{flex:none;margin-left:auto}.peach-react [data-follow-feed]{font:var(--board-body);padding:4px 0 42px}.peach-react [data-follow-head]{justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;display:flex}.peach-react [data-follow-title]{font:var(--board-title);font-size:var(--fs-2xl);letter-spacing:0;margin:0}@media (width<=760px){.peach-react [data-follow-title]{font:var(--board-figure);font-size:var(--fs-xl)}}.peach-react [data-follow-head-actions]{flex:none;align-items:center;gap:8px;display:inline-flex}.peach-react button:is([data-follow-manage],[data-follow-older]):has(>svg){gap:0;padding-left:12px}.peach-react button:is([data-follow-manage],[data-follow-older])>svg{width:14px;height:14px}.peach-react :is([data-follow-authors],[data-follow-works]){overscroll-behavior-inline:contain;scrollbar-width:none;align-items:center;gap:4px;display:flex;overflow-x:auto}.peach-react :is([data-follow-authors],[data-follow-works])::-webkit-scrollbar{display:none}.peach-react [data-follow-authors]{margin:0 0 2px;padding:3px 0 10px}.peach-react [data-follow-works]{margin:0 0 2px;padding:0 0 10px}@media (width<=640px){.peach-react [data-follow-authors]{margin-right:-12px}}.peach-react :is(button[data-follow-author],button[data-follow-work]){color:var(--color-text-secondary);font:var(--board-body-medium);white-space:nowrap;cursor:pointer;transition:transform var(--lift-motion,var(--board-motion)), scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), background-color .2s ease-out, color .2s ease-out;background:0 0;border:0;flex:none}.peach-react :is(button[data-follow-author],button[data-follow-work]):active{transition:scale 60ms ease-out;scale:.96}.peach-react :is(button[data-follow-author],button[data-follow-work]):hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work])[aria-pressed=true]{background:var(--color-background-tertiary-default);color:var(--color-text-primary)}.peach-react :is(button[data-follow-author],button[data-follow-work]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react button[data-follow-author]{text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:6px;width:76px;padding:6px 4px;display:flex}.peach-react button[data-follow-work]{text-align:left;border-radius:12px;align-items:center;gap:8px;height:40px;padding:6px 12px 6px 6px;display:inline-flex}.peach-react :is([data-follow-ring],[data-follow-mark]){background:var(--color-text-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;margin:0;display:flex;position:relative;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.peach-react :is([data-follow-ring],[data-follow-mark]){background:color-mix(in srgb, var(--color-text-primary) 10%, var(--color-background-primary-default))}}.peach-react :is([data-follow-ring],[data-follow-mark]){color:var(--color-text-secondary)}.peach-react [data-follow-ring]{width:48px;height:48px;font:600 18px/24px var(--board-font)}.peach-react [data-follow-mark]{width:28px;height:28px;font:600 12px/16px var(--board-font)}.peach-react [data-follow-ring]>img,.peach-react [data-follow-mark]>img{object-fit:cover;width:100%;max-width:none;height:100%;display:block;position:absolute;inset:0}.peach-react [data-follow-mark]>img{object-position:50% 25%}.peach-react [data-follow-ring]>span{width:100%;height:100%;font:inherit;color:inherit;justify-content:center;align-items:center;display:flex}.peach-react [data-follow-name]{max-width:100%;color:inherit;font:var(--board-caption);text-align:center;text-overflow:ellipsis;display:block;overflow:hidden}.peach-react [data-follow-filter-glass]{z-index:60;font:var(--board-body);letter-spacing:normal}.peach-react [data-follow-filter-glass] :is(button,[role=radio]):focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]{overscroll-behavior-inline:contain;scrollbar-width:none;overflow-x:auto}.peach-react [data-follow-filter-glass]>[data-filter-row=bottom]::-webkit-scrollbar{display:none}@media (width<=760px){.peach-react [data-follow-filter-glass] [data-entity-sorts]{padding-left:0}}.peach-react [data-follow-filter-glass] :is([data-entity-scroll],[data-entity-states],[data-entity-tags]){gap:7px}.peach-react button[data-follow-provider]{border:1px dashed var(--glass-low);border-radius:var(--tag-radius);cursor:pointer;background:0 0;flex:none;justify-content:center;align-items:center;width:34px;height:30px;padding:0;display:inline-flex}.peach-react button[data-follow-provider]:hover{border-style:solid;border-color:var(--field-ring)}.peach-react button[data-follow-provider][aria-pressed=true]{border-style:solid;border-color:var(--field-ring);background:var(--picked)}.peach-react [data-follow-provider]>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-filter-glass] [data-follow-tag]{--tag-color:#55a7ff;color:var(--glass-text);gap:6px}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-filter-glass] [data-follow-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-filter-glass] [data-follow-tag]:hover{border-color:var(--field-ring)}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-style:solid;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color) 72%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color) 22%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag][aria-pressed=true]{color:var(--glass-text,var(--ink))}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:var(--glass-text)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{color:color-mix(in srgb, var(--glass-text) 55%, transparent)}}.peach-react [data-follow-filter-glass] [data-follow-tag] [data-count-badge]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:11px}.peach-react button[data-follow-images-only]{width:30px;height:30px;color:var(--glass-text);background:0 0;border:0;border-radius:7px;flex:none;place-items:center;padding:0;display:grid;position:relative}@supports (color:color-mix(in lab, red, red)){.peach-react button[data-follow-images-only]{color:color-mix(in srgb, var(--glass-text) 60%, transparent)}}.peach-react button[data-follow-images-only]{cursor:pointer}.peach-react button[data-follow-images-only]:is(:hover,[aria-pressed=true]){color:var(--glass-text)}.peach-react button[data-follow-images-only]>[data-view-glide]{inset:0}.peach-react button[data-follow-images-only] svg{z-index:1;fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;position:relative}.peach-react [data-follow-readout]{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace}.peach-react [data-follow-broken]>[role=alert]{margin:10px 0 14px}.peach-react [data-follow-broken] [data-follow-manage]{color:var(--tungsten);font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.peach-react [data-follow-pagination]{border-top:1px solid var(--line-soft);flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:18px;padding-top:14px;display:flex;overflow-x:auto}.peach-react [data-follow-page-action]{align-items:center;gap:12px;display:inline-flex}.peach-react [data-follow-pagination] [data-entity-more]{gap:4px;min-width:0;margin:0}.peach-react :is([data-follow-older],[data-follow-recheck])>span{gap:4px}.peach-react button[data-follow-older][aria-busy]{border-color:var(--line);background:var(--ground);color:var(--muted);box-shadow:none}.peach-react [data-follow-backfill]{color:var(--muted);font:var(--board-compact)}.peach-react [data-follow-list]{grid-template-columns:repeat(auto-fill, minmax(var(--tile), 1fr));gap:24px 16px;display:grid}.peach-react [data-follow-list]>[data-media-card]{align-self:start}.peach-react [data-follow-list]>[data-follow-empty]{grid-column:1/-1}.peach-react [data-follow-wall]{--photo-columns:5;grid-template-columns:repeat(var(--photo-columns), minmax(0, 1fr));align-items:start;gap:14px 10px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:3}@media (width<=1400px){.peach-react [data-follow-wall]{--photo-columns:4}.peach-react [data-follow-wall][data-size=big]{--photo-columns:2}}@media (width<=1000px){.peach-react [data-follow-wall]{--photo-columns:3}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}@media (width<=640px){.peach-react [data-follow-wall]{--photo-columns:2;gap:12px 8px}.peach-react [data-follow-wall][data-size=big]{--photo-columns:1}}.peach-react [data-follow-wall][data-layout=masonry]{column-count:var(--photo-columns);column-gap:10px;display:block}.peach-react [data-follow-wall][data-layout=masonry]>[data-follow-empty]{column-span:all}.peach-react [data-follow-wall][data-layout=masonry]>[data-media-card]{break-inside:avoid;margin:0 0 14px}.peach-react [data-follow-wall][data-images-only=true] [data-follow-item] :is([data-media-meta],[data-media-badge],[data-follow-collection],[data-follow-state]){display:none}.peach-react [data-follow-wall] [data-media-card] :is([data-media-pic],[data-media-meta]){content-visibility:visible}.peach-react [data-follow-wall] [data-media-card] [data-media-meta]{pointer-events:auto;contain-intrinsic-block-size:none;margin:0;padding:0}.peach-react [data-follow-item] [data-media-meta]{--card-meta-byline:max(1lh, 21px);--card-meta-badges:0px}.peach-react [data-follow-item] [data-media-meta]:has(>[data-media-text]>[data-follow-badges]){--card-meta-badges:calc(1lh + 6px + 3px)}.peach-react [data-follow-list]:not([data-follow-wall]) [data-follow-item] [data-media-meta]{contain-intrinsic-block-size:auto calc(var(--card-meta-block) + var(--card-meta-badges))}.peach-react [data-follow-item][data-status=ignored]{opacity:.62}.peach-react [data-follow-visual]{isolation:isolate;border-radius:var(--surface-radius);position:relative}.peach-react [data-follow-visual]>[data-media-pic]{z-index:1}.peach-react [data-follow-open]{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;padding:0;position:absolute;inset:0}.peach-react [data-follow-open]:focus-visible{outline:2px solid var(--tungsten);outline-offset:-2px}.peach-react [data-select-mode] :is([data-follow-open],[data-follow-actions],[data-follow-collection]){pointer-events:none!important}.peach-react [data-follow-nothumb]{color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid;position:absolute;inset:0}.peach-react :is([data-media-badge],[data-follow-nothumb])>img{border-radius:var(--badge-radius);object-fit:contain;width:18px;height:18px;margin:0}.peach-react [data-follow-image] [data-media-pic]{aspect-ratio:4/3;background:var(--sunk);min-height:0}.peach-react [data-follow-image] [data-media-pic]>img,.peach-react [data-follow-image] :is([data-mix-faces],[data-mix-face] img){background:var(--sunk)}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]{aspect-ratio:1}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]:has(>img[width][height]){aspect-ratio:auto}.peach-react [data-follow-wall][data-layout=masonry] [data-follow-image] [data-media-pic]>img[width][height]{aspect-ratio:auto 1;height:auto;position:static}.peach-react [data-follow-corner]{z-index:7;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:10px;right:10px}.peach-react [data-follow-collection]{border-radius:var(--control-radius);color:#fff;min-height:28px;font:inherit;cursor:pointer;pointer-events:auto;-webkit-backdrop-filter:blur(10px);background:#0c0808b8;border:0;align-items:center;gap:6px;padding:4px 9px;display:flex}.peach-react [data-follow-collection] svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px}.peach-react [data-follow-actions]{opacity:0;pointer-events:none;align-items:center;gap:6px;transition:opacity .15s;display:flex}.peach-react [data-follow-actions] button{color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(10px);background:#0000007a;border:1px solid #ffffff29;border-radius:50%;place-items:center;width:36px;height:36px;padding:0;display:grid}.peach-react [data-follow-actions] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:18px;height:18px}.peach-react [data-follow-actions] button:hover:not(:disabled){background:#ffffff2e;transform:scale(1.08)}.peach-react [data-follow-actions] button:disabled{opacity:.42;cursor:not-allowed}.peach-react [data-follow-actions] button[aria-busy]{cursor:wait;opacity:.72}@media (hover:hover) and (pointer:fine){.peach-react [data-follow-item]:hover [data-follow-actions]{opacity:1;pointer-events:auto}.peach-react [data-follow-item]:hover [data-follow-collection]{display:none}}@media (hover:none),(pointer:coarse){.peach-react [data-follow-item] [data-follow-actions]{opacity:1;pointer-events:auto}}.peach-react [data-follow-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);place-items:center;display:grid}.peach-react [data-follow-avatar]>img{border-radius:50%}.peach-react [data-follow-avatar]>span:first-child{width:100%;height:100%;color:var(--muted);font-family:var(--board-font);font-size:var(--fs-sm);place-items:center;display:grid}.peach-react [data-follow-byline]{min-width:0;min-height:21px;color:var(--muted);flex-wrap:nowrap;align-items:center;gap:6px;display:flex;overflow:hidden}.peach-react [data-follow-byline]>[data-follow-author]{min-width:0;color:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-byline]>time{font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}.peach-react [data-follow-credit]{color:var(--muted);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.peach-react [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-item] [data-media-tag]{--tag-color:#55a7ff;border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-item] [data-media-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-item] [data-media-tag]{cursor:default}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-follow-item] [data-media-tag][data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-follow-issue]{color:var(--drop);font-size:var(--fs-sm);margin:18px 0 8px;line-height:1.7;display:block}.peach-react [data-follow-state]{color:var(--drop);font-size:var(--fs-xs);flex:100%}.peach-react [data-follow-detail] [data-follow-detail-media]{--follow-image-arrow-inset:16px}.peach-react [data-follow-detail] [data-follow-detail-media=image]{background:var(--video-glow,#15202a)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-media=image]{background:color-mix(in srgb, var(--video-glow,#15202a) 12%, var(--surface) 88%)}}.peach-react [data-follow-detail] [data-follow-detail-poster]{z-index:1;object-fit:contain;background:0 0;width:auto;max-width:100%;height:auto;max-height:76vh;display:block;position:relative}.peach-react [data-follow-detail] [data-follow-detail-poster][data-zoomable]{cursor:zoom-in}.peach-react [data-follow-detail] [data-framed] [data-follow-detail-poster]{width:100%;aspect-ratio:var(--follow-frame-ratio)}.peach-react [data-follow-detail] [data-follow-detail-placeholder]{aspect-ratio:16/9;color:var(--muted);place-items:center;gap:10px;display:grid}.peach-react [data-follow-detail] [data-follow-detail-placeholder] img{width:34px;height:34px;margin:0}.peach-react [data-follow-detail] [data-follow-image-arrow]{box-sizing:border-box;z-index:4;cursor:pointer;color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.peach-react [data-follow-detail] [data-follow-image-arrow]:hover{background:#000000c7}.peach-react [data-follow-detail] [data-follow-image-arrow]:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}.peach-react [data-follow-detail] [data-follow-image-arrow] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-follow-detail] [data-follow-image-arrow=prev]{left:var(--follow-image-arrow-inset)}.peach-react [data-follow-detail] [data-follow-image-arrow=next]{right:var(--follow-image-arrow-inset)}.peach-react [data-follow-detail] [data-follow-image-dots]{z-index:4;border-radius:var(--pill-radius);background:#00000080;justify-content:center;align-items:center;gap:8px;max-width:calc(100% - 120px);padding:8px 11px;display:flex;position:absolute;bottom:18px;left:50%;overflow:hidden;transform:translate(-50%)}.peach-react [data-follow-detail] [data-follow-image-dots] button{cursor:pointer;background:#ffffff6b;border:0;border-radius:50%;flex:none;width:8px;height:8px;padding:0}.peach-react [data-follow-detail] [data-follow-image-dots] button[aria-current=true]{border-radius:var(--pill-radius);background:#fff;width:20px}.peach-react [data-follow-detail] [data-follow-queue-meta]{align-items:center;gap:6px;display:flex}.peach-react [data-follow-detail] [data-follow-queue-meta]>[data-follow-queue-source]{display:contents}.peach-react [data-follow-detail] [data-follow-queue-meta] img{flex:none;margin:0}.peach-react [data-follow-detail] [data-follow-queue-meta] time{white-space:nowrap;flex:none}.peach-react [data-follow-detail] [data-follow-variant]{border-radius:var(--badge-radius);text-overflow:ellipsis;vertical-align:-2px;background:var(--overlay-5);min-width:0;max-width:120px;color:var(--muted);font-size:var(--fs-xs);flex:0 auto;margin:0;padding:1px 7px;font-style:normal;display:inline-block;overflow:hidden}.peach-react [data-follow-detail] [data-follow-variant=wip]{color:var(--meter)}.peach-react [data-follow-detail] [data-follow-variant=alt]{color:var(--ink-2)}.peach-react [data-follow-detail] [data-follow-nothumb]{width:100%;height:100%;color:var(--muted);font-size:var(--fs-xs);place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-nothumb] svg{stroke:currentColor;fill:none;stroke-width:2px;width:22px;height:22px}.peach-react [data-follow-detail] [data-follow-detail-title]{align-items:flex-start;gap:5px;margin-bottom:8px;display:flex}.peach-react [data-follow-detail] [data-follow-detail-title]>[data-follow-detail-name]{width:auto;max-width:calc(100% - 35px);margin:0}.peach-react [data-follow-detail] [data-follow-origin]{flex:none;width:30px;height:30px;margin:0}.peach-react [data-follow-detail] [data-follow-detail-identity]{align-items:center;gap:10px;margin:2px 0 12px;display:flex}.peach-react [data-follow-detail] [data-follow-detail-identity] b,.peach-react [data-follow-detail] [data-follow-detail-identity] span{display:block}.peach-react [data-follow-detail] [data-follow-detail-identity]>div>span{color:var(--muted);font-size:var(--fs-xs);margin-top:3px}.peach-react [data-follow-detail] [data-follow-source-avatar]{cursor:default;background:var(--overlay-5);border:1px solid var(--line-soft);flex:none;place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-source-avatar]:hover{box-shadow:none}.peach-react [data-follow-detail] [data-follow-source-avatar]>*{object-fit:cover;border-radius:50%;outline:0;width:100%;height:100%;position:absolute;inset:0}.peach-react [data-follow-detail] [data-follow-source-avatar]>span{font-size:var(--fs-sm);color:var(--muted);place-items:center;display:grid}.peach-react [data-follow-detail] [data-follow-badges]{flex-wrap:nowrap;gap:5px;min-width:0;display:flex;overflow:hidden}.peach-react [data-follow-detail] [data-follow-detail-summary]{color:var(--ink-2);white-space:pre-line;margin:0 0 16px;line-height:1.6}.peach-react [data-follow-detail] [data-follow-media-issue]{font-size:var(--fs-sm);color:var(--drop);margin:18px 0 8px;line-height:1.7}.peach-react [data-follow-detail] [data-follow-media-issue][hidden]{display:none}.peach-react [data-follow-detail] [data-follow-resources]{flex-wrap:wrap;gap:8px;margin:0 0 16px;display:flex}.peach-react [data-follow-detail] [data-follow-resources] a{height:34px}.peach-react [data-follow-detail] [data-follow-detail-actions] button:disabled{opacity:.45;cursor:not-allowed}.peach-react [data-follow-detail] [data-follow-download]{box-sizing:border-box;background:var(--surface);width:36px;min-width:36px;height:36px;color:var(--ink-2);border:0;border-radius:8px;flex:0 0 36px;place-items:center;padding:0;display:grid}.peach-react [data-follow-detail] [data-follow-download]:hover{background:var(--hover);color:var(--ink)}.peach-react [data-follow-detail] [data-follow-download] svg{stroke:currentColor;fill:none;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px;margin:0;display:block}@media (width<=760px){.peach-react [data-follow-detail] [data-follow-detail-actions]{width:max-content;max-width:100%}.peach-react [data-follow-detail] [data-follow-detail-actions] :is(button,[data-follow-download]){flex:none}}.peach-react [data-follow-detail] [data-follow-hidden-media]{align-items:center;gap:10px;margin-top:14px;display:flex}.peach-react [data-follow-detail] [data-follow-hidden-label]{color:var(--muted);white-space:nowrap}.peach-react [data-follow-detail] [data-follow-hidden-thumbs]{flex-wrap:wrap;gap:6px;display:flex}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button{border:1px solid var(--border-15);border-radius:var(--control-radius);cursor:pointer;background:0 0;width:40px;height:40px;padding:0;position:relative;overflow:hidden}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] button:hover{border-color:var(--ink-3)}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] img{object-fit:cover;opacity:.55;width:100%;height:100%;display:block}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] i{background:var(--hover);width:16px;height:16px;color:var(--ink-2);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;bottom:2px;right:2px}.peach-react [data-follow-detail] [data-follow-hidden-thumbs] svg{stroke:currentColor;fill:none;width:11px;height:11px}.peach-react [data-follow-detail] [data-follow-state]{font-size:var(--fs-xs);color:var(--drop);flex:none}.peach-react [data-follow-detail] [data-follow-detail-tags]{margin:16px 0 0}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{text-overflow:clip;white-space:normal;text-align:left;max-width:none;color:var(--ink-2);border-color:var(--tag-color);font-family:inherit;overflow:visible}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{border-color:color-mix(in srgb, var(--tag-color) 42%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]{background:color-mix(in srgb, var(--tag-color) 10%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{border-color:color-mix(in srgb, var(--tag-color) 68%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{background:color-mix(in srgb, var(--tag-color) 18%, transparent)}}.peach-react [data-follow-detail] [data-follow-detail-tags] [data-follow-tag]:hover{color:var(--ink)}@media (width<=640px){.peach-react [data-follow-detail] [data-follow-detail-media]{--follow-image-arrow-inset:10px}.peach-react [data-follow-detail] [data-follow-image-arrow]{width:44px;height:44px}.peach-react [data-follow-detail] [data-follow-image-dots]{bottom:12px}}.peach-react [data-photo-lightbox]{z-index:200;font:var(--board-body);font-kerning:auto;font-variant-ligatures:normal;letter-spacing:0;--photo-card-drop:#00000029;--photo-thumb-drop:#0000001a;background:#000;display:block;position:fixed;inset:0;overflow:hidden}.dark .peach-react [data-photo-lightbox]{--photo-card-drop:#0009;--photo-thumb-drop:#00000080}.peach-react [data-photo-lightbox]:modal{color:#fff;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0}.peach-react [data-photo-lightbox] :focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.peach-react [data-photo-main]{width:100%;min-width:0;height:100%;min-height:0;position:absolute;inset:0;overflow:hidden}.peach-react [data-photo-main]>.swiper-wrapper{width:100%;height:100%;display:flex}.peach-react [data-photo-main]>.swiper-wrapper>.swiper-slide{flex:0 0 100%;place-items:center;width:100%;min-width:0;height:100%;min-height:0;display:grid}.peach-react [data-photo-main] .swiper-zoom-container{box-sizing:border-box;place-items:center;width:100%;min-width:0;height:100%;min-height:0;padding:24px 72px 76px;display:grid}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:148px}.peach-react [data-photo-main] img{object-fit:contain;min-width:0;max-width:100%;min-height:0;max-height:100%;display:block}.peach-react :is([data-photo-close],[data-photo-nav]){box-sizing:border-box;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;place-items:center;width:48px;height:48px;padding:0;display:grid;position:absolute}.peach-react [data-photo-close]:hover{background:#000000c7}.peach-react [data-photo-lightbox] :is([data-photo-close],[data-photo-nav]):focus-visible{outline-offset:3px}.peach-react :is([data-photo-close],[data-photo-nav]) svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px;display:block}.peach-react [data-photo-close]{z-index:5;top:12px;right:14px}.peach-react [data-photo-nav]{z-index:4;border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--ink-2);box-shadow:var(--elevation-xs);border-radius:10px;top:50%;transform:translateY(-50%)}.peach-react [data-photo-nav]:hover{background:var(--hover)}.peach-react [data-photo-nav] svg{width:20px;height:20px}.peach-react [data-photo-nav=back]{left:14px}.peach-react [data-photo-nav=fwd]{right:14px}.peach-react [data-photo-nav=fwd] svg{transform:rotate(180deg)}.peach-react [data-photo-nav].swiper-button-disabled{visibility:hidden;opacity:.4;pointer-events:none}.peach-react [data-photo-nav].swiper-button-lock{display:none}.peach-react [data-photo-bar]{z-index:4;pointer-events:none;grid-template-columns:1fr auto 1fr;align-items:center;min-height:48px;display:grid;position:absolute;bottom:14px;left:14px;right:14px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:98px}.peach-react [data-photo-bar]>*{pointer-events:auto}.peach-react [data-photo-count]{border-radius:var(--pill-radius);color:#ffffffd1;font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:center;padding:7px 11px}.peach-react [data-photo-pagination]{justify-content:center;align-items:center;gap:8px;max-width:160px;height:28px;margin-inline:auto;display:flex;overflow:hidden}.peach-react [data-photo-pagination] .swiper-pagination-bullet{opacity:1;background:#a3a3a3;border:0;border-radius:999px;flex:none;width:6px;height:6px;padding:0;transition:width .2s ease-out,background .2s ease-out;margin:0!important}.peach-react [data-photo-pagination] .swiper-pagination-bullet-active{background:#fafafa;width:16px}.peach-react [data-photo-detail-toggle]{color:#ffffffd1;cursor:pointer;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;border:0;border-radius:50%;justify-self:start;place-items:center;width:40px;height:40px;padding:0;display:grid}.peach-react [data-photo-detail-toggle]:is(:hover,[aria-expanded=true]){color:#fff;background:#000000c7}.peach-react [data-photo-detail-toggle] svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px;display:block}.peach-react [data-photo-zoom]{border-radius:var(--pill-radius);color:#ffffffd1;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0009;justify-self:end;align-items:center;gap:7px;padding:4px;display:flex}.peach-react [data-photo-zoom] button{color:#fff;cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:28px;height:28px;padding:0;display:grid}.peach-react [data-photo-zoom] button:hover{background:#ffffff38}.peach-react [data-photo-zoom] button svg{fill:none;stroke:currentColor;stroke-width:2px;width:15px;height:15px;display:block}.peach-react [data-photo-zoom] [data-photo-scale]{width:30px}.peach-react [data-photo-zoom] [data-photo-scale=original]{border-radius:var(--control-radius);width:38px}.peach-react [data-photo-zoom] :is([data-photo-scale=original],[data-photo-zoom-readout]){font-family:Cascadia Mono,Consolas,ui-monospace,Microsoft YaHei UI,PingFang SC,monospace;font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.peach-react [data-photo-zoom-readout]{text-align:right;width:38px;font-weight:400}.peach-react [data-photo-zoom] input{cursor:pointer;appearance:none;background:0 0;width:116px;height:20px;margin:2px}.peach-react [data-photo-zoom] input::-webkit-slider-runnable-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px;box-shadow:inset 0 1px 1px #0000000f}.peach-react [data-photo-zoom] input::-moz-range-track{background:linear-gradient(90deg, var(--color-accent-400) var(--board-range-value,0%), var(--inset) 0);border-radius:999px;height:6px}.peach-react [data-photo-zoom] input::-webkit-slider-thumb{border:1px solid var(--line);width:20px;height:20px;box-shadow:0 2px 4px var(--photo-thumb-drop), inset 0 1px 0 #fffc;cursor:grab;transition:scale calc(var(--spring-press-ms) * 1ms) var(--spring-press), box-shadow .15s;appearance:none;background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%;margin-top:-7px}.peach-react [data-photo-zoom] input::-moz-range-thumb{border:1px solid var(--line);width:18px;height:18px;box-shadow:0 2px 4px var(--photo-thumb-drop);background:radial-gradient(circle,#fff 3px,#e5e5e5 3.5px,#fff 4px);border-radius:50%}.peach-react [data-photo-zoom] input:hover::-webkit-slider-thumb{box-shadow:0 0 0 4px #ffffff38}.peach-react [data-photo-zoom] input:active::-webkit-slider-thumb{transition:scale 60ms ease-out;scale:1.18}.peach-react [data-photo-lightbox] [data-photo-zoom] input:focus-visible{outline:none}.peach-react [data-photo-zoom] input:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline:2px solid #fff}.peach-react [data-photo-detail]{box-sizing:border-box;z-index:var(--layer-popover);overscroll-behavior:contain;border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--ground);width:320px;max-width:calc(100vw - 16px);color:var(--ink);box-shadow:0 8px 24px var(--photo-card-drop);font-size:var(--fs-md);overflow-wrap:anywhere;pointer-events:auto;align-items:start;gap:14px;margin:0;padding:16px;line-height:1.5;display:grid;position:fixed;inset:auto;overflow:auto}.peach-react [data-photo-detail][hidden]{display:none}.peach-react [data-photo-detail-copy]{gap:4px;min-width:0;display:grid}.peach-react [data-photo-detail-copy] h2{font-size:var(--fs-sm);white-space:nowrap;margin:0;font-weight:700;overflow:hidden}.peach-react :is([data-photo-detail-meta],[data-photo-status]){color:var(--muted);font-size:var(--fs-xs)}.peach-react [data-photo-status]{flex:100%;min-width:0}.peach-react [data-photo-status]:empty{display:none}.peach-react [data-photo-reveal]{border:1px solid var(--line);border-radius:var(--control-radius);height:32px;color:var(--ink);cursor:pointer;background:0 0;justify-self:start;align-items:center;gap:7px;padding:0 10px;display:flex}.peach-react [data-photo-reveal]:hover{background:#ffffff1f}.peach-react [data-photo-reveal][hidden]{display:none}.peach-react [data-photo-reveal] svg{fill:none;stroke:currentColor;stroke-width:2px;width:16px;height:16px;display:block}.peach-react [data-photo-strip]{z-index:3;width:auto;height:72px;padding:0;position:absolute;bottom:14px;left:72px;right:72px}.peach-react [data-photo-lightbox]:not([data-has-strip]) [data-photo-strip]{display:none}.peach-react [data-photo-strip] .swiper-slide{border-radius:var(--control-radius);opacity:.5;cursor:pointer;width:auto;height:72px;overflow:hidden}.peach-react [data-photo-strip] .swiper-slide img{object-fit:cover;width:auto;max-width:none;height:100%;display:block}.peach-react [data-photo-strip] .swiper-slide-thumb-active{opacity:1;box-shadow:inset 0 0 0 2px #fff}@media (width<=640px){.peach-react [data-photo-zoom] input{width:72px}.peach-react [data-photo-zoom-readout]{display:none}.peach-react [data-photo-main] .swiper-zoom-container{padding:12px 12px 70px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-main] .swiper-zoom-container{padding-bottom:136px}.peach-react [data-photo-bar]{min-height:44px;bottom:10px;left:12px;right:12px}.peach-react [data-photo-lightbox][data-has-strip] [data-photo-bar]{bottom:80px}.peach-react [data-photo-reveal]{min-height:44px}.peach-react [data-photo-strip]{bottom:12px;left:56px;right:56px}.peach-react [data-photo-strip],.peach-react [data-photo-strip] .swiper-slide{height:56px}.peach-react [data-photo-close]{top:10px;right:10px}.peach-react [data-photo-nav=back]{left:8px}.peach-react [data-photo-nav=fwd]{right:8px}}@media (prefers-reduced-motion:reduce){.peach-react [data-photo-pagination] .swiper-pagination-bullet{transition:none}}.peach-react [data-index-grid] [data-index-cell]{background:var(--ground)}.peach-react [data-index-grid] [data-index-cell]:hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-index-grid] [data-index-cell]:hover{background:color-mix(in srgb, var(--ink) 6%, var(--ground))}}.peach-react [data-index-grid] [data-person-ring]{background:var(--sunk);color:var(--muted);font-family:Bahnschrift,Microsoft YaHei UI,Microsoft YaHei,PingFang SC,sans-serif}.peach-react [data-index-grid] [data-index-readout]{color:var(--muted)}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}@keyframes peach-skeleton-sweep{to{transform:translate(-50%)}}:root{--font-inter:"Inter Variable", "Inter";--elevation-2xs:0 1px #0000000d;--elevation-xs:0 1px 2px 0 #0000000d;--elevation-sm:0 1px 2px 0 #0000000f, 0 1px 3px 0 #0000001a;--elevation-md:0 2px 4px -1px #0000000f, 0 4px 6px -1px #0000001a;--elevation-lg:0 4px 6px -2px #0000000d, 0 10px 15px -3px #0000001a;--elevation-xl:0 10px 10px -5px #0000000a, 0 20px 25px -5px #0000001a;--elevation-card:0 1px 1px 0 #0000000d;--elevation-dropdown:0 1px 1px 0 #0000000a, 0 4px 4px 0 #00000005;--elevation-sidebar:0 1px 0 0 #00000005, 0 1px 12px 0 #0000000f, 0 0 1px 0 #00000052;--elevation-waitlist:0 0 6px 0 #0000000f, 0 0 64px 0 #00000029, 0 0 1px 0 #00000052, 0 1px 12px 0 #0000000f, 0 1px 0 0 #00000005}.dark{--elevation-2xs:0 1px #00000080;--elevation-xs:0 1px 2px 0 #0000008c;--elevation-sm:0 1px 2px 0 #00000080, 0 2px 6px 0 #0006;--elevation-md:0 2px 4px -1px #00000080, 0 4px 10px -1px #00000073;--elevation-lg:0 4px 6px -2px #00000073, 0 10px 20px -3px #0000008c;--elevation-xl:0 10px 10px -5px #0006, 0 20px 30px -5px #0009;--elevation-card:0 1px 2px 0 #0009, 0 2px 8px 0 #00000073;--elevation-dropdown:0 1px 2px 0 #0009, 0 4px 12px 0 #00000073;--elevation-sidebar:0 1px 0 0 #0000004d, 0 1px 12px 0 #00000073, 0 0 1px 0 #000000b3;--elevation-waitlist:0 0 6px 0 #0000004d, 0 0 64px 0 #00000080, 0 0 1px 0 #000000b3, 0 1px 12px 0 #00000059, 0 1px 0 0 #0003}.peach-react{font-family:var(--font-sans);color:var(--color-text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-ligatures:contextual;font-kerning:normal;--color-text-primary:var(--color-neutral-950);--color-text-secondary:var(--color-neutral-500);--color-text-tertiary:var(--color-neutral-400);--color-text-disabled:var(--color-neutral-300);--color-text-white:var(--color-white);--color-background-full:var(--color-white);--color-background-primary-default:var(--color-white);--color-background-primary-hover:var(--color-neutral-100);--color-background-secondary-default:var(--color-neutral-100);--color-background-tertiary-default:var(--color-neutral-200);--color-border-button-default:var(--color-neutral-200);--color-border-button-hover:var(--color-neutral-300);--color-border-button-active:var(--color-neutral-400);--color-border-checkbox-default:var(--color-neutral-300);--color-border-checkbox-hover:var(--color-neutral-400);--color-border-focus-ring:var(--color-accent-500);--color-separator-border:var(--color-neutral-200);line-height:1.5}.dark .peach-react{--color-text-primary:var(--color-neutral-50);--color-text-tertiary:var(--color-neutral-600);--color-text-disabled:var(--color-neutral-800);--color-background-full:var(--color-neutral-925);--color-background-primary-default:var(--color-neutral-800);--color-background-primary-hover:#40404099}@supports (color:color-mix(in lab, red, red)){.dark .peach-react{--color-background-primary-hover:color-mix(in srgb, var(--color-neutral-700) 60%, transparent)}}.dark .peach-react{--color-background-secondary-default:var(--color-neutral-900);--color-background-tertiary-default:var(--color-neutral-800);--color-border-button-default:var(--color-neutral-700);--color-border-button-hover:var(--color-neutral-500);--color-border-button-active:var(--color-neutral-600);--color-border-checkbox-default:var(--color-neutral-600);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-700)}:where(.peach-react){--card-footer:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-footer:color-mix(in srgb, var(--color-background-secondary-default) 98%, var(--color-text-primary))}}:where(.peach-react){--card-hover:var(--color-background-secondary-default)}@supports (color:color-mix(in lab, red, red)){:where(.peach-react){--card-hover:color-mix(in srgb, var(--color-background-secondary-default) 95%, var(--color-text-primary))}}.peach-react button[aria-haspopup=listbox]{height:calc(var(--spacing) * 9);padding-block:0}.peach-react button[aria-haspopup=listbox][class~=text-body-2-medium]{height:calc(var(--spacing) * 8)}.peach-react [class~=overflow-x-auto]{scrollbar-width:none}.peach-react [class~=overflow-x-auto]::-webkit-scrollbar{display:none}.peach-react :is([data-review-filter],[data-filter-glass]){top:calc(var(--topH) + 8px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(160%) var(--glass-lume);isolation:isolate;color:var(--glass-text);border-radius:22px;overflow:visible}.peach-react [data-filter-glass][data-stuck]{box-shadow:inset 0 1px 0 var(--glass-rim), inset 1px 0 0 var(--glass-low), inset -1px 0 0 var(--glass-low), inset 0 -1px 0 var(--glass-low), var(--glass-lift)}.peach-react [data-filter-glass][data-stuck]:before{content:"";z-index:-1;background:var(--page);pointer-events:none;height:9px;position:absolute;top:-9px;left:-16px;right:-16px;-webkit-mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000);mask-image:linear-gradient(90deg,#0000,#000 24px calc(100% - 24px),#0000)}.peach-react [data-selection-dock]{z-index:180;bottom:max(22px, env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 24px);-webkit-backdrop-filter:var(--glass-optic,blur(22px)) saturate(145%);border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;padding:9px 11px;display:flex;position:fixed;left:50%;transform:translate(-50%)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){background:var(--ground);-webkit-backdrop-filter:none;animation:none}}@media (prefers-reduced-motion:reduce){.peach-react :is([data-review-filter],[data-filter-glass],[data-selection-dock]){animation:none}}.peach-react:has([data-selection-dock]){padding-bottom:96px}.peach-react [data-tab-indicator]{width:var(--tab-width,0px);transform:translateX(var(--tab-x,0px))}.peach-react [data-tab-indicator][data-ready]{transition:transform calc(var(--spring-pane-ms,200) * 1ms) var(--spring-pane,ease), width calc(var(--spring-pane-ms,200) * 1ms) ease}@media (prefers-reduced-motion:reduce){.peach-react [data-tab-indicator][data-ready]{transition:none}}.peach-react [data-glass-segment][data-selected]{background:linear-gradient(180deg, var(--glass-sheen), transparent 62%), var(--glass-pick-fill);box-shadow:inset 0 0 0 1px var(--glass-rim), var(--glass-pick-shadow)}@media not all and (width>=761px){.peach-react :is([data-index-search],[data-playlist-create]) input{font-size:16px}}.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{content:"";z-index:0;border-radius:inherit;border:1px solid var(--border-15);background:var(--surface);position:absolute}@supports (color:color-mix(in lab, red, red)){.peach-react [data-mix-stack]:before,.peach-react [data-mix-stack]:after{background:color-mix(in srgb, var(--surface) 84%, var(--video-glow,#15202a))}}.peach-react [data-mix-stack]:before{opacity:.54;inset:0 12px 8px;transform:translateY(-7px)}.peach-react [data-mix-stack]:after{opacity:.78;inset:0 6px 4px;transform:translateY(-4px)}.peach-react [data-mix-cover],.peach-react [data-mix-poster]{background:#000}.peach-react [data-mix-faces]{z-index:2;pointer-events:none;background:#000;position:absolute;inset:0}.peach-react [data-mix-face]{opacity:0;transform-origin:50% 88%;transition:transform .46s cubic-bezier(.34,.02,.24,1),opacity .4s;position:absolute;inset:0;transform:scale(.985)}.peach-react [data-mix-face=on]{opacity:1;z-index:2;transition:none;transform:none}.peach-react [data-mix-face=off]{opacity:0;z-index:3;transform:translateY(-11%)rotate(-3.4deg)scale(.94)}.peach-react [data-mix-face] img{object-fit:contain;background:#000;width:100%;height:100%;display:block}.peach-react [data-mix-badge]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c0808b8}.peach-react [data-mix-avatars]{--lift-motion:calc(var(--spring-press-ms) * 1ms) var(--spring-press);flex:none;max-width:calc(100% - 48px);margin:-4px -2px -2px;padding:6px 2px 2px 5px;display:flex}.peach-react [data-mix-avatars]:has(:is(:hover,:focus-visible)){--lift-motion:var(--board-motion)}.peach-react [data-mix-avatars]>*{box-shadow:0 0 0 2px var(--ground);transform:translate(var(--lift-x,0), var(--lift-y,0)) scale(var(--lift-scale,1));transition:transform var(--lift-motion,var(--board-motion))}.peach-react [data-mix-avatars]>*+*{margin-left:-22px}.peach-react [data-mix-avatars]>:first-child{z-index:5}.peach-react [data-mix-avatars]>:nth-child(2){z-index:4}.peach-react [data-mix-avatars]>:nth-child(3){z-index:3}.peach-react [data-mix-avatars]>:nth-child(4){z-index:2}.peach-react [data-mix-avatars]>:nth-child(5){z-index:1}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible){z-index:6;box-shadow:0 0 0 2px var(--ink-2);--lift-y:-4px;--lift-scale:1.05}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*{--lift-y:-1.8px;--lift-x:10px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*{--lift-y:-.81px;--lift-x:20px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*{--lift-x:30px}.peach-react [data-mix-avatars]>:is(:hover,:focus-visible)+*+*+*+*{--lift-x:40px}.peach-react [data-tag-cat]{--tag-color:#7a91a8}.peach-react [data-tag-cat=general],.peach-react [data-tag-cat=r34-general]{--tag-color:#55a7ff}.peach-react [data-tag-cat=artist]{--tag-color:#f1a454}.peach-react [data-tag-cat=meta]{--tag-color:#7f909e}.peach-react [data-tag-cat=relationship]{--tag-color:#f1a454}.peach-react [data-tag-cat=role]{--tag-color:#ed78af}.peach-react [data-tag-cat=appearance]{--tag-color:#a989f5}.peach-react [data-tag-cat=scene]{--tag-color:#53b8a4}.peach-react [data-tag-cat=story]{--tag-color:#e19a5b}.peach-react [data-tag-cat=position]{--tag-color:#d66e8d}.peach-react [data-tag-cat=r34-artist]{--tag-color:#e36c6c}.peach-react [data-tag-cat=r34-character]{--tag-color:#68c76f}.peach-react [data-tag-cat=r34-copyright]{--tag-color:#d675d6}.peach-react [data-tag-cat=r34-metadata]{--tag-color:#f5a24a}.peach-react [data-tag-cat=r34-unknown]{--tag-color:var(--muted)}.peach-react [data-tag-pill][data-tag-cat=all]{--tag-color:initial}.peach-react [data-tag-dot]{background:var(--tag-color,var(--muted))}.peach-react [data-tag-pill][data-tag-cat=all] [data-tag-dot]{background:linear-gradient(135deg,#55a7ff,#d783ff)}.peach-react [data-tag-chip]{border-color:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{border-color:color-mix(in srgb, var(--tag-color) 32%, transparent)}}.peach-react [data-tag-chip]{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]{background:color-mix(in srgb, var(--tag-color) 7%, transparent)}}.peach-react [data-tag-chip]:hover{background:var(--tag-color)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-chip]:hover{background:color-mix(in srgb, var(--tag-color) 13%, transparent)}}.peach-react [data-tag-chip][aria-pressed=true],.peach-react [data-alpha-tag][aria-pressed=true]{background:var(--picked);color:var(--color-text-primary)}.peach-react [data-tag-pill][aria-pressed=true]{border-color:var(--tag-color,var(--ink))}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{border-color:color-mix(in srgb, var(--tag-color,var(--ink)) 45%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{background:var(--tag-color,var(--ink));border-style:solid}@supports (color:color-mix(in lab, red, red)){.peach-react [data-tag-pill][aria-pressed=true]{background:color-mix(in srgb, var(--tag-color,var(--ink)) 12%, transparent)}}.peach-react [data-tag-pill][aria-pressed=true]{color:var(--ink)}.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:var(--ink)}@supports (color:color-mix(in lab, red, red)){.peach-react [data-alpha-tag]:not([aria-pressed=true]):hover{background:color-mix(in srgb, var(--ink) 6%, transparent)}}.peach-react [data-alpha-group]{scroll-margin-top:calc(var(--topH) + 124px)}.peach-react [data-source-divider]>*+*{border-top:1px solid var(--color-border-button-default)}.peach-react [data-follow-author-header][data-open]{border-bottom:1px solid var(--color-border-button-default)}.peach-react [data-input-size]>div[data-rac]:not([data-hovered]):not([data-focus-within]){outline:1px solid var(--color-border-button-default);outline-offset:-1px}.peach-react [data-board-data-table]{border:1px solid var(--color-border-button-default);border-radius:var(--radius-surface);background:var(--color-background-primary-default);overflow:hidden}.peach-react [data-board-data-table] .bui-table th{border-top:0}.peach-react [data-board-data-table] .bui-table th,.peach-react [data-board-data-table] .bui-table tbody tr:not(:last-child){border-color:var(--color-border-button-default)}.peach-react [data-board-data-table] .bui-table tbody tr:hover,.peach-react [data-source-divider]>:hover{background-color:var(--color-background-primary-hover)}.peach-react [data-board-data-table] .bui-table tbody tr[data-follow-selected],.peach-react [data-board-data-table] .bui-table tbody tr[data-board-selected],.peach-react [data-source-divider]>[data-selected]{background-color:var(--color-background-secondary-default)}.peach-react [data-follow-table] [data-sort-indicator]{color:var(--color-text-tertiary);flex:none;transition:transform .15s,color .15s;display:inline-flex}.peach-react [data-follow-table] [data-sort-indicator][data-direction]{color:var(--color-text-secondary)}.peach-react [data-follow-table] [data-sort-indicator][data-direction=ascending]{transform:rotate(180deg)}.peach-react [data-follow-table] [data-sort-indicator] svg{width:24px;height:24px}.peach-react [data-expandable-ranking]{position:relative}.peach-react [data-expandable-ranking][data-expandable]{padding-bottom:28px}.peach-react [data-expandable-ranking-list]{max-height:var(--ranking-collapsed-height,none);overflow:hidden}.peach-react [data-expandable-ranking][data-expanded] [data-expandable-ranking-list]{max-height:var(--ranking-expanded-height,none)}.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list]{transition:max-height .2s var(--ease-in-out)}.peach-react [data-expandable-ranking][data-expandable]:not([data-expanded]) [data-expandable-ranking-list]{-webkit-mask-image:linear-gradient(#000 calc(100% - 44px),#0000);mask-image:linear-gradient(#000 calc(100% - 44px),#0000)}.peach-react [data-ranking-toggle]{z-index:1;border:1px solid var(--color-border-button-default);background:var(--color-background-primary-default);width:40px;height:20px;box-shadow:var(--shadow-sm);color:var(--color-text-secondary);cursor:pointer;border-radius:999px;place-items:center;padding:0;display:grid;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.peach-react [data-ranking-toggle]:hover{background:var(--color-background-primary-hover);color:var(--color-text-primary)}.peach-react [data-ranking-toggle]:focus-visible{outline:2px solid var(--color-border-focus-ring);outline-offset:2px}.peach-react [data-ranking-toggle] svg{width:14px;height:14px;transition:transform .2s var(--ease-in-out)}.peach-react [data-ranking-toggle][aria-expanded=true] svg{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.peach-react [data-expandable-ranking][data-animating] [data-expandable-ranking-list],.peach-react [data-ranking-toggle] svg{transition:none}}.peach-react label[data-rac] input[type=checkbox]{appearance:none;outline:none;width:1px;height:1px}@keyframes checkbox-mark-enter{0%{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}.animate-check-draw{transform-box:fill-box;transform-origin:50%;animation:checkbox-mark-enter .15s var(--ease-out) both}@media (prefers-reduced-motion:reduce){.animate-check-draw{opacity:1;animation:none;transform:none}}.bui-table{border-collapse:collapse;text-align:left;width:100%}.bui-table th{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);text-align:left;vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));white-space:nowrap;color:var(--color-text-tertiary);--tw-outline-style:none;background-color:var(--color-background-secondary-default);border-top:1px solid var(--color-separator-border);border-bottom:1px solid var(--color-separator-border);outline-style:none;transition:padding .2s,font-size .2s}.bui-table td{padding-inline:calc(var(--spacing) * 3);padding-block:calc(var(--spacing) * 2.5);vertical-align:middle;font-size:var(--text-body-medium);line-height:var(--tw-leading,var(--text-body-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-medium--font-weight));color:var(--color-text-primary);--tw-outline-style:none;outline-style:none;transition:padding .2s,font-size .2s}.bui-table tbody tr:not(:last-child){border-bottom:1px solid var(--color-separator-border)}.bui-table tbody tr{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.15s;transition-duration:.15s}.bui-table tbody tr[data-focus-visible]{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--color-border-focus-ring);--tw-ring-inset:inset}.bui-table.bui-table-sm th,.bui-table.bui-table-sm td{padding-inline:calc(var(--spacing) * 2.5);padding-block:calc(var(--spacing) * 1.5);font-size:var(--text-body-2-medium);line-height:var(--tw-leading,var(--text-body-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-body-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-body-2-medium--font-weight))}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index ad957e8fe..6c000ce79 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -8839,14 +8839,14 @@ function eee() {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var tee = /*#__PURE__*/ I.createContext(null);
-function cg() {
+var cg = /*#__PURE__*/ I.createContext(null);
+function lg() {
let e = eee();
- return (0, I.useContext)(tee) || e;
+ return (0, I.useContext)(cg) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var nee = Symbol.for("react-aria.i18n.locale"), ree = Symbol.for("react-aria.i18n.strings"), lg = void 0, ug = class e {
+var tee = Symbol.for("react-aria.i18n.locale"), nee = Symbol.for("react-aria.i18n.strings"), ug = void 0, dg = 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 nee = Symbol.for("react-aria.i18n.locale"), ree = Symbol.for("react-aria.i18
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = iee(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = ree(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[nee];
- if (lg === void 0) {
- let t = window[ree];
+ let n = window[tee];
+ if (ug === void 0) {
+ let t = window[nee];
if (!t) return null;
- lg = {};
- for (let r in t) lg[r] = new e({ [n]: t[r] }, n);
+ ug = {};
+ for (let r in t) ug[r] = new e({ [n]: t[r] }, n);
}
- let r = lg?.[t];
+ let r = ug?.[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 iee(e, t, n = "en-US") {
+function ree(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = aee(e), i = oee(e);
+ let r = iee(e), i = aee(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 aee(e) {
+function iee(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function oee(e) {
+function aee(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var dg = /* @__PURE__ */ new Map(), fg = /* @__PURE__ */ new Map(), see = class {
+var fg = /* @__PURE__ */ new Map(), pg = /* @__PURE__ */ new Map(), oee = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -8900,37 +8900,37 @@ var dg = /* @__PURE__ */ new Map(), fg = /* @__PURE__ */ new Map(), see = class
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = dg.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), dg.set(i, a)), r = t[a.select(e)] || t.other, 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;
}
number(e) {
- let t = fg.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), fg.set(this.locale, t)), t.format(e);
+ let t = pg.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), pg.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, pg = /* @__PURE__ */ new WeakMap();
-function cee(e) {
- let t = pg.get(e);
- return t || (t = new ug(e), pg.set(e, t)), t;
+}, mg = /* @__PURE__ */ new WeakMap();
+function see(e) {
+ let t = mg.get(e);
+ return t || (t = new dg(e), mg.set(e, t)), t;
}
-function lee(e, t) {
- return t && ug.getGlobalDictionaryForPackage(t) || cee(e);
+function cee(e, t) {
+ return t && dg.getGlobalDictionaryForPackage(t) || see(e);
}
-function mg(e, t) {
- let { locale: n } = cg(), r = lee(e, t);
- return (0, I.useMemo)(() => new see(n, r), [n, r]);
+function hg(e, t) {
+ let { locale: n } = lg(), r = cee(e, t);
+ return (0, I.useMemo)(() => new oee(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var uee = /* @__PURE__ */ new Set(["id"]), dee = /* @__PURE__ */ new Set([
+var lee = /* @__PURE__ */ new Set(["id"]), uee = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), fee = /* @__PURE__ */ new Set([
+]), dee = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -8938,52 +8938,52 @@ var uee = /* @__PURE__ */ new Set(["id"]), dee = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), pee = /* @__PURE__ */ new Set([
+]), fee = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), hg = /* @__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(".")), mee = /^(data-.*)$/;
-function gg(e, t = {}) {
+]), 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 = {}) {
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) && (uee.has(t) || n && dee.has(t) || r && fee.has(t) || i && pee.has(t) || a && (hg.has(t) || t.endsWith("Capture") && hg.has(t.slice(0, -7))) || o?.has(t) || mee.test(t)) && (s[t] = e[t]);
+ 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]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var _g = "default", vg = "", yg = /* @__PURE__ */ new WeakMap();
-function hee(e) {
+var vg = "default", yg = "", bg = /* @__PURE__ */ new WeakMap();
+function mee(e) {
if (Mp() && Pp()) {
- if (_g === "default") {
+ if (vg === "default") {
let t = Xf(e);
- vg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+ yg = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- _g = "disabled";
+ vg = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- yg.set(e, e.style[t]), e.style[t] = "none";
+ bg.set(e, e.style[t]), e.style[t] = "none";
}
}
-function bg(e) {
+function xg(e) {
if (Mp() && Pp()) {
- if (_g !== "disabled") return;
- _g = "restoring", setTimeout(() => {
+ if (vg !== "disabled") return;
+ vg = "restoring", setTimeout(() => {
Pm(() => {
- if (_g === "restoring") {
+ if (vg === "restoring") {
let t = Xf(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = vg || ""), vg = "", _g = "default";
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = yg || ""), yg = "", vg = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && yg.has(e)) {
- let t = yg.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), yg.delete(e);
+ } 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);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function gee(e, t) {
+function hee(e, t) {
let n = Zf(t), r = Xf(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
@@ -8991,18 +8991,18 @@ function gee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var xg = /* @__PURE__ */ new WeakMap();
-function Sg(e) {
- let t = Xf(e), n = xg.get(t);
- return n ??= gee("csp-nonce", t), n !== void 0 && xg.set(t, n), n;
+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;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Cg = I.createContext({ register: () => {} });
-Cg.displayName = "PressResponderContext";
+var wg = I.createContext({ register: () => {} });
+wg.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function wg() {
+function Tg() {
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 wg() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function _ee(e) {
- let t = (0, I.useContext)(Cg);
+function gee(e) {
+ let t = (0, I.useContext)(wg);
if (t) {
let { register: n, ref: r, ...i } = t;
e = H(i, e), n();
}
return dh(t, e.ref), e;
}
-var Tg = class {
+var Eg = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -9050,9 +9050,9 @@ var Tg = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Eg = Symbol("linkClicked"), Dg = "react-aria-pressable-style", Og = "data-react-aria-pressable";
-function kg(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 } = _ee(e), [m, h] = (0, I.useState)(!1), g = (0, I.useRef)({
+}, 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)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -9062,12 +9062,12 @@ function kg(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = wg(), y = (0, I.useCallback)((e, t) => {
+ }), { addGlobalListener: _, removeAllGlobalListeners: v } = Tg(), 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 Tg("pressstart", t, e);
+ let n = new Eg("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 kg(e) {
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Tg("pressend", r, e);
+ let t = new Eg("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Tg("press", r, e);
+ let n = new Eg("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -9099,14 +9099,14 @@ function kg(e) {
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Tg("pressup", t, e);
+ let r = new Eg("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(Mg(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || bg(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);
for (let e of t.disposables) e();
t.disposables = [];
}
@@ -9136,13 +9136,13 @@ function kg(e) {
}, [s, o]), O = (0, I.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (jg(t.nativeEvent, t.currentTarget) && op(t.currentTarget, V(t))) {
- Ng(V(t), t.key) && t.preventDefault();
+ if (Mg(t.nativeEvent, t.currentTarget) && op(t.currentTarget, V(t))) {
+ Fg(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) => {
- jg(t, i) && !t.repeat && op(i, V(t)) && e.target && S(Mg(e.target, t), "keyboard");
+ 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);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
@@ -9153,17 +9153,17 @@ function kg(e) {
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(Mg(t.currentTarget, t), r), a = x(Mg(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Ng(t.currentTarget, t), r), a = x(Ng(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 && jg(t, e.target)) {
- Ng(V(t), t.key) && t.preventDefault();
+ 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(Mg(e.target, t), "keyboard", r), r && D(t, e.target), v(), t.key !== "Enter" && Ag(e.target) && op(e.target, n) && !t[Eg] && (t[Eg] = !0, Up(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ 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);
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
let t = e.metaKeyEvents;
e.metaKeyEvents = void 0;
@@ -9180,7 +9180,7 @@ function kg(e) {
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 || hee(e.target), i = y(t, e.pointerType);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || mee(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);
}
@@ -9196,9 +9196,9 @@ function kg(e) {
}, t.onPointerUp = (t) => {
!op(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(Mg(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Ng(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Mg(e.target, t), e.pointerType, !1), T(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));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
@@ -9232,13 +9232,13 @@ function kg(e) {
return (0, I.useEffect)(() => {
if (!f) return;
let e = Xf(f.current);
- if (!e || !e.head || e.getElementById(Dg)) return;
+ if (!e || !e.head || e.getElementById(Og)) return;
let t = e.createElement("style");
- t.id = Dg;
- let n = Sg(e);
+ t.id = Og;
+ let n = Cg(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Og}] {
+ [${kg}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
@@ -9246,23 +9246,23 @@ function kg(e) {
}, [f]), (0, I.useEffect)(() => {
let e = g.current;
return () => {
- d || bg(e.target ?? void 0);
+ d || xg(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: H(p, O, { [Og]: !0 })
+ pressProps: H(p, O, { [kg]: !0 })
};
}
-function Ag(e) {
+function jg(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function jg(e, t) {
+function Mg(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 && !Pg(i, n) || i instanceof Zf(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Ag(i)) && n !== "Enter");
+ 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");
}
-function Mg(e, t) {
+function Ng(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -9275,13 +9275,13 @@ function Mg(e, t) {
key: t.key
};
}
-function vee(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ag(e);
+function Pg(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !jg(e);
}
-function Ng(e, t) {
- return kp() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Pg(e, t) : vee(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);
}
-var yee = /* @__PURE__ */ new Set([
+var Ig = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -9292,12 +9292,12 @@ var yee = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Pg(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : yee.has(e.type);
+function Lg(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : Ig.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function Fg(e, t) {
+function Rg(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 Fg(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = kg({
+ let { pressProps: _, isPressed: v } = Ag({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -9331,7 +9331,7 @@ function Fg(e, t) {
ref: t
}), { focusableProps: y } = mh(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = H(y, _, gg(e, { labelable: !0 }));
+ let b = H(y, _, _g(e, { labelable: !0 }));
return {
isPressed: v,
buttonProps: H(g, b, {
@@ -9346,7 +9346,7 @@ function Fg(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Ig = class {
+var zg = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -9449,45 +9449,45 @@ var Ig = class {
return null;
}
};
-function Lg(e, t, n, r) {
- return ap() ? new Ig(e, t, n, r) : e.createTreeWalker(t, n, r);
+function Bg(e, t, n, r) {
+ return ap() ? new zg(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Rg = /*#__PURE__*/ I.createContext(null), zg = "react-aria-focus-scope-restore", Bg = null;
-function Vg(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)(Rg) || {}, l = (0, I.useMemo)(() => new l_({ scopeRef: s }), [s]);
+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 || u_.root;
- if (u_.getTreeNode(e.scopeRef) && Bg && !Qg(Bg, e.scopeRef)) {
- let t = u_.getTreeNode(Bg);
+ let e = c || p_.root;
+ if (p_.getTreeNode(e.scopeRef) && Ug && !t_(Ug, e.scopeRef)) {
+ let t = p_.getTreeNode(Ug);
t && (e = t);
}
- e.addChild(l), u_.addNode(l);
+ e.addChild(l), p_.addNode(l);
}, [l, c]), bp(() => {
- let e = u_.getTreeNode(s);
+ let e = p_.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), bp(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(zg, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(Hg, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(zg, n);
+ for (let e of t) e.removeEventListener(Hg, n);
};
- }, [t]), r_(s, r, n), qg(s, n), a_(s, r, n), n_(s, i), (0, I.useEffect)(() => {
+ }, [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 (Yg(e, s.current)) {
- for (let n of u_.traverse()) n.scopeRef && Yg(e, n.scopeRef.current) && (t = n);
- t === u_.getTreeNode(s) && (Bg = t.scopeRef);
+ 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 = u_.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === Bg || Qg(s, Bg)) && (!e || u_.getTreeNode(e)) && (Bg = e), u_.removeTreeNode(s);
+ let e = p_.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === Ug || t_(s, Ug)) && (!e || p_.getTreeNode(e)) && (Ug = e), p_.removeTreeNode(s);
}, [s]);
- let u = (0, I.useMemo)(() => Hg(s), []), d = (0, I.useMemo)(() => ({
+ let u = (0, I.useMemo)(() => Gg(s), []), d = (0, I.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ I.createElement(Rg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {
+ return /*#__PURE__*/ I.createElement(Vg.Provider, { value: d }, /*#__PURE__*/ I.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
@@ -9497,68 +9497,68 @@ function Vg(e) {
ref: o
}));
}
-function Hg(e) {
+function Gg(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 = s_(Ug(n), {
+ 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), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Yg(s, n) ? s : c;
+ l.currentNode = Qg(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && $g(u, !0), u;
+ 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 = s_(Ug(n), {
+ 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), {
tabbable: i,
accept: o
}, n);
- l.currentNode = Yg(s, n) ? s : c;
+ l.currentNode = Qg(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && $g(u, !0), u;
+ 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 = s_(Ug(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = u_(Kg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && $g(o, !0), o;
+ return o && n_(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = s_(Ug(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = u_(Kg(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && $g(o, !0), o;
+ return o && n_(o, !0), o;
}
};
}
-function Ug(e) {
+function Kg(e) {
return e[0].parentElement;
}
-function Wg(e) {
- let t = u_.getTreeNode(Bg);
+function qg(e) {
+ let t = p_.getTreeNode(Ug);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function Gg(e) {
+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);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function Kg(e) {
+function Yg(e) {
if (e.checked) return !0;
- let t = Gg(e);
+ let t = Jg(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function qg(e, t) {
+function Xg(e, t) {
let n = (0, I.useRef)(void 0), r = (0, I.useRef)(void 0);
bp(() => {
let i = e.current;
@@ -9567,23 +9567,23 @@ function qg(e, t) {
return;
}
let a = Xf(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Wg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !qg(e) || t.isComposing) return;
let n = sp(a), r = e.current;
- if (!r || !Yg(n, r)) return;
- let i = s_(Ug(r), { tabbable: !0 }, r);
+ if (!r || !Qg(n, r)) return;
+ let i = u_(Kg(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 && ($g(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 Zf(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!Bg || Qg(Bg, e)) && Yg(V(t), e.current) ? (Bg = e, n.current = V(t)) : Wg(e) && !Xg(V(t), e) ? n.current ? $g(n.current) : Bg && Bg.current && t_(Bg.current) : Wg(e) && (n.current = V(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));
}, 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 && Wg(e) && !Xg(o, e)) {
- Bg = e;
+ if (!i && o && qg(e) && !$g(o, e)) {
+ Ug = e;
let r = V(t);
- r && r.isConnected ? (n.current = r, $g(n.current)) : Bg.current && t_(Bg.current);
+ r && r.isConnected ? (n.current = r, n_(n.current)) : Ug.current && i_(Ug.current);
}
});
};
@@ -9594,29 +9594,29 @@ function qg(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function Jg(e) {
- return Xg(e);
+function Zg(e) {
+ return $g(e);
}
-function Yg(e, t) {
+function Qg(e, t) {
return !e || !t ? !1 : t.some((t) => op(t, e));
}
-function Xg(e, t = null) {
+function $g(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of u_.traverse(u_.getTreeNode(t))) if (n && Yg(e, n.current)) return !0;
+ for (let { scopeRef: n } of p_.traverse(p_.getTreeNode(t))) if (n && Qg(e, n.current)) return !0;
return !1;
}
-function Zg(e) {
- return Xg(e, Bg);
+function e_(e) {
+ return $g(e, Ug);
}
-function Qg(e, t) {
- let n = u_.getTreeNode(t)?.parent;
+function t_(e, t) {
+ let n = p_.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function $g(e, t = !1) {
+function n_(e, t = !1) {
if (e != null && !t) try {
Fm(e);
} catch {}
@@ -9624,27 +9624,27 @@ function $g(e, t = !1) {
e.focus();
} catch {}
}
-function e_(e, t = !0) {
- let n = e[0].previousElementSibling, r = Ug(e), i = s_(r, { tabbable: t }, e);
+function r_(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Kg(e), i = u_(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = Ug(e), i = s_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Kg(e), i = u_(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function t_(e, t = !0) {
- $g(e_(e, t));
+function i_(e, t = !0) {
+ n_(r_(e, t));
}
-function n_(e, t) {
+function a_(e, t) {
let n = I.useRef(t);
(0, I.useEffect)(() => {
- n.current && (Bg = e, !Yg(sp(Xf(e.current ? e.current[0] : void 0)), Bg.current) && e.current && t_(e.current)), n.current = !1;
+ n.current && (Ug = e, !Qg(sp(Xf(e.current ? e.current[0] : void 0)), Ug.current) && e.current && i_(e.current)), n.current = !1;
}, [e]);
}
-function r_(e, t, n) {
+function o_(e, t, n) {
bp(() => {
if (t || n) return;
let r = e.current, i = Xf(r ? r[0] : void 0), a = (t) => {
let n = V(t);
- Yg(n, e.current) ? Bg = e : Jg(n) || (Bg = null);
+ Qg(n, e.current) ? Ug = e : Zg(n) || (Ug = 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,21 +9655,21 @@ function r_(e, t, n) {
n
]);
}
-function i_(e) {
- let t = u_.getTreeNode(Bg);
+function s_(e) {
+ let t = p_.getTreeNode(Ug);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function a_(e, t, n) {
+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);
if (!t || n) return;
let a = () => {
- (!Bg || Qg(Bg, e)) && Yg(sp(i), e.current) && (Bg = e);
+ (!Ug || t_(Ug, e)) && Qg(sp(i), e.current) && (Ug = 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));
@@ -9678,20 +9678,20 @@ function a_(e, t, n) {
let r = Xf(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !Wg(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !qg(e) || t.isComposing) return;
let n = r.activeElement;
- if (!Xg(n, e) || !i_(e)) return;
- let i = u_.getTreeNode(e);
+ if (!$g(n, e) || !s_(e)) return;
+ let i = p_.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = s_(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = u_(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 || !Xg(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !$g(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (Xg(s, e));
- t.preventDefault(), t.stopPropagation(), s ? $g(s, !0) : Jg(a) ? $g(a, !0) : n.blur();
+ while ($g(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? n_(s, !0) : Zg(a) ? n_(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -9704,28 +9704,28 @@ function a_(e, t, n) {
]), bp(() => {
let n = Xf(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = u_.getTreeNode(e);
+ let i = p_.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = u_.getTreeNode(e);
+ let r = p_.getTreeNode(e);
if (!r) return;
let i = r.nodeToRestore, a = sp(n);
- if (t && i && (a && Xg(a, e) || a === n.body && i_(e))) {
- let t = u_.clone();
+ if (t && i && (a && $g(a, e) || a === n.body && s_(e))) {
+ let t = p_.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- o_(n.nodeToRestore);
+ l_(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && u_.getTreeNode(n.scopeRef)) {
- let e = e_(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && p_.getTreeNode(n.scopeRef)) {
+ let e = r_(n.scopeRef.current, !0);
if (e) {
- o_(e);
+ l_(e);
return;
}
}
@@ -9737,21 +9737,21 @@ function a_(e, t, n) {
};
}, [e, t]);
}
-function o_(e) {
- e.dispatchEvent(new CustomEvent(zg, {
+function l_(e) {
+ e.dispatchEvent(new CustomEvent(Hg, {
bubbles: !0,
cancelable: !0
- })) && $g(e);
+ })) && n_(e);
}
-function s_(e, t, n) {
- let r = t?.tabbable ? vp : _p, i = Xf(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Lg(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return op(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Kg(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || Yg(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+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;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var c_ = class e {
+var d_ = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new l_({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new f_({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -9762,7 +9762,7 @@ var c_ = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new l_({ scopeRef: e });
+ let i = new f_({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -9773,7 +9773,7 @@ var c_ = 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 && Yg(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 && Qg(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 c_ = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, l_ = class {
+}, f_ = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -9795,13 +9795,13 @@ var c_ = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, u_ = new c_(), d_ = 7e3, f_ = null;
-function p_(e, t = "assertive", n = d_) {
- f_ ? f_.announce(e, t, n) : (f_ = new m_(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? f_.announce(e, t, n) : setTimeout(() => {
- f_?.isAttached() && f_?.announce(e, t, n);
+}, 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);
}, 100));
}
-var m_ = class {
+var __ = 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 m_ = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = d_) {
+ announce(e, t = "assertive", n = m_) {
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,7 +9839,7 @@ var m_ = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateEffect.mjs
-function h_(e, t) {
+function v_(e, t) {
let n = (0, I.useRef)(!0), r = (0, I.useRef)(null), i = Zh(e);
(0, I.useEffect)(() => (n.current = !0, () => {
n.current = !1;
@@ -9850,31 +9850,31 @@ function h_(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function g_(e, t) {
+function y_(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 __(e, t) {
+function b_(e, t) {
let n = e;
- for (g_(n, t) && (n = n.parentElement); n && !g_(n, t);) n = n.parentElement;
+ for (y_(n, t) && (n = n.parentElement); n && !y_(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function v_(e, t) {
+function x_(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (g_(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (y_(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function y_(e, t, n = {}) {
- e !== t && bee(e, t, t.getBoundingClientRect(), n);
+function S_(e, t, n = {}) {
+ e !== t && _ee(e, t, t.getBoundingClientRect(), n);
}
-function bee(e, t, n, r = {}) {
+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;
@@ -9897,7 +9897,7 @@ function bee(e, t, n, r = {}) {
top: o
});
}
-function b_(e, t = {}) {
+function C_(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -9910,46 +9910,46 @@ function b_(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = v_(e, !0);
- for (let t of i) y_(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = x_(e, !0);
+ for (let t of i) S_(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? v_(n, !0) : [];
- for (let e of i) y_(e, n, {
+ i = n ? x_(n, !0) : [];
+ for (let e of i) S_(e, n, {
block: "center",
inline: "center"
});
- for (let t of v_(e, !0)) y_(t, e);
+ for (let t of x_(e, !0)) S_(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var xee = 0, x_ = /* @__PURE__ */ new Map();
-function S_(e) {
+var vee = 0, w_ = /* @__PURE__ */ new Map();
+function T_(e) {
let [t, n] = (0, I.useState)();
return bp(() => {
if (!e) return;
- let t = x_.get(e);
+ let t = w_.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${xee++}`;
+ let r = `react-aria-description-${vee++}`;
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
- }, x_.set(e, t);
+ }, w_.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), x_.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), w_.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function C_(e, t, n) {
+function E_(e, t, n) {
let r = Zh((e) => {
n && !e.defaultPrevented && n(t);
});
@@ -9962,12 +9962,12 @@ function C_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function w_(e, t, n) {
+function D_(e, t, n) {
let { validationBehavior: r, focus: i } = e;
bp(() => {
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(Cee(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(bee(n.current));
}
});
let a = (0, I.useRef)(!1), o = Zh(() => {
@@ -9975,7 +9975,7 @@ function w_(e, t, n) {
}), s = Zh((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && wee(r) === n.current && (i ? i() : n.current?.focus(), Tm("keyboard")), e.preventDefault();
+ !e.defaultPrevented && n && r && xee(r) === n.current && (i ? i() : n.current?.focus(), Tm("keyboard")), e.preventDefault();
}), c = Zh(() => {
t.commitValidation();
});
@@ -9990,7 +9990,7 @@ function w_(e, t, n) {
};
}, [n, r]);
}
-function See(e) {
+function yee(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -10006,14 +10006,14 @@ function See(e) {
valid: t.valid
};
}
-function Cee(e) {
+function bee(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: See(e),
+ validationDetails: yee(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function wee(e) {
+function xee(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -10022,7 +10022,7 @@ function wee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Tee(e = !0) {
+function See(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -10030,8 +10030,8 @@ function Tee(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function T_(e = !0) {
- let t = Hm(), [n, r] = Tee(e);
+function O_(e = !0) {
+ let t = Hm(), [n, r] = See(e);
return {
id: r ? t : void 0,
ref: n
@@ -10039,7 +10039,7 @@ function T_(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var E_ = {
+var k_ = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -10051,18 +10051,18 @@ var E_ = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, D_ = {
- ...E_,
+}, A_ = {
+ ...k_,
customError: !0,
valid: !1
-}, O_ = {
+}, j_ = {
isInvalid: !1,
- validationDetails: E_,
+ validationDetails: k_,
validationErrors: []
-}, Eee = (0, I.createContext)({}), k_ = "__reactAriaFormValidationState";
-function A_(e) {
+}, Cee = (0, I.createContext)({}), M_ = "__reactAriaFormValidationState";
+function N_(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[k_];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[M_];
return {
realtimeValidation: t,
displayValidation: n,
@@ -10071,71 +10071,71 @@ function A_(e) {
commitValidation: a
};
}
- return Dee(e);
+ return wee(e);
}
-function Dee(e) {
+function wee(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: D_
- }, l = (0, I.useMemo)(() => !o || i == null ? null : M_(Oee(o, i)), [o, i]);
+ validationDetails: A_
+ }, l = (0, I.useMemo)(() => !o || i == null ? null : F_(Tee(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, I.useContext)(Eee), 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);
+ 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);
u !== f && (p(u), h(!1));
- 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 = () => {
+ 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 = () => {
if (!S) return;
C(!1);
let e = l || a || _.current;
- N_(e, b.current) || (b.current = e, y(e));
+ I_(e, b.current) || (b.current = e, y(e));
}, [S, C] = (0, I.useState)(!1);
return (0, I.useEffect)(x), {
- realtimeValidation: c || g || l || a || O_,
+ realtimeValidation: c || g || l || a || j_,
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
updateValidation(e) {
- s === "aria" && !N_(v, e) ? y(e) : _.current = e;
+ s === "aria" && !I_(v, e) ? y(e) : _.current = e;
},
resetValidation() {
- let e = O_;
- N_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = j_;
+ I_(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
},
commitValidation() {
s === "native" && C(!0), h(!0);
}
};
}
-function j_(e) {
+function P_(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Oee(e, t) {
+function Tee(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return j_(n);
+ if (n && typeof n != "boolean") return P_(n);
}
return [];
}
-function M_(e) {
+function F_(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: D_
+ validationDetails: A_
} : null;
}
-function N_(e, t) {
+function I_(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 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_({
+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_({
...e,
value: t.isSelected
}), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- w_(e, b, n);
+ D_(e, b, n);
let w = (e) => {
e.stopPropagation(), t.setSelected(V(e).checked);
- }, { pressProps: T, isPressed: E } = kg({
+ }, { pressProps: T, isPressed: E } = Ag({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
@@ -10143,7 +10143,7 @@ function P_(e, t, n) {
onPressUp: v,
onClick: y,
isDisabled: r
- }), [D, O] = (0, I.useState)(!1), { pressProps: k } = kg({
+ }), [D, O] = (0, I.useState)(!1), { pressProps: k } = Ag({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
@@ -10172,13 +10172,13 @@ function P_(e, t, n) {
return;
}
_?.(r), t.toggle(), n.current?.focus();
- let { [k_]: i } = e, { commitValidation: a } = i || b;
+ let { [M_]: i } = e, { commitValidation: a } = i || b;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = mh(e, n), j = H(T, A), M = gg(e, { labelable: !0 });
- C_(n, t.defaultSelected, t.setSelected);
- let N = T_(), P = T_();
+ }), { 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_();
return {
labelProps: H(k, { onClick: (e) => e.preventDefault() }),
inputProps: H(M, {
@@ -10215,8 +10215,8 @@ function P_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-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;
+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;
return (0, I.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
@@ -10235,10 +10235,10 @@ function F_(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var kee = /* @__PURE__ */ new WeakMap();
+var Eee = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function I_(e) {
+function z_(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
t = Hm(t);
let o = Hm(), s = {};
@@ -10258,8 +10258,8 @@ function I_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function L_(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = I_(e), s = Wm([
+function B_(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = z_(e), s = Wm([
!!t,
!!n,
r,
@@ -10283,8 +10283,8 @@ function L_(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function R_(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, I.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = wg(), c = (0, I.useCallback)((e) => {
+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));
}, [
n,
@@ -10324,14 +10324,14 @@ function R_(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var Aee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};
-function z_(e, t, n) {
+var Dee = typeof document < "u" ? I.useInsertionEffect ?? I.useLayoutEffect : () => {};
+function H_(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;
- Aee(() => {
+ Dee(() => {
a.current = c;
});
let [, l] = (0, I.useReducer)(() => ({}), {});
@@ -10342,8 +10342,8 @@ function z_(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function B_(e = {}) {
- let { isReadOnly: t } = e, [n, r] = z_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);
+function U_(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = H_(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, I.useState)(n);
function a(e) {
t || r(e);
}
@@ -10359,26 +10359,26 @@ function B_(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function jee(e, t, n) {
- let r = B_({
+function Oee(e, t, n) {
+ let r = U_({
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 } = kee.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = Eee.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = A_({
+ let { realtimeValidation: l } = N_({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, I.useRef)(O_), d = () => {
+ }), u = (0, I.useRef)(j_), 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 = F_({
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = R_({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -10386,7 +10386,7 @@ function jee(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [k_]: {
+ [M_]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -10410,12 +10410,12 @@ function jee(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function V_(e, t = -Infinity, n = Infinity) {
+function W_(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 H_ = {
+var G_ = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -10427,38 +10427,38 @@ var H_ = {
width: "1px",
whiteSpace: "nowrap"
};
-function U_(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = R_({
+function K_(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, I.useState)(!1), { focusWithinProps: a } = V_({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
}), o = (0, I.useMemo)(() => r ? t : t ? {
- ...H_,
+ ...G_,
...t
- } : H_, [r]);
+ } : G_, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function W_(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = U_(e);
+function q_(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = K_(e);
return /*#__PURE__*/ I.createElement(n, H(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function Mee(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = z_(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = mh(e, t), d = A_({
+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_({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = L_({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = B_({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = gg(e, { labelable: !0 }), b = {
+ }), y = _g(e, { labelable: !0 }), b = {
type: o,
pattern: e.pattern
}, [x] = (0, I.useState)(c);
- return C_(t, e.defaultValue ?? x, l), w_(e, d, t), {
+ return E_(t, e.defaultValue ?? x, l), D_(e, d, t), {
labelProps: h,
inputProps: H(y, n === "input" ? b : void 0, {
disabled: r,
@@ -10505,13 +10505,13 @@ function Mee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var Nee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function G_(e) {
+var Aee = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function J_(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var K_ = /* @__PURE__ */ new WeakMap(), q_ = [];
-function J_(e, t) {
- let n = Zf(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && Nee, 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 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) => {
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()) {
@@ -10527,19 +10527,19 @@ function J_(e, t) {
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;
return NodeFilter.FILTER_ACCEPT;
- }, n = Lg(Xf(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = Bg(Xf(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 = K_.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), K_.set(e, t + 1));
+ let t = Y_.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), Y_.set(e, t + 1));
};
- q_.length && q_[q_.length - 1].disconnect(), d(i);
+ X_.length && X_[X_.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) && G_(e) ? o.add(e) : e instanceof Element && d(e);
+ 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()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10556,7 +10556,7 @@ function J_(e, t) {
if (ap()) 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) && G_(e) ? o.add(e) : e instanceof Element && d(e);
+ 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()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
@@ -10583,59 +10583,59 @@ function J_(e, t) {
p.disconnect();
}
};
- return q_.push(h), () => {
+ return X_.push(h), () => {
if (p.disconnect(), ap()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = K_.get(e);
- t != null && (t === 1 ? (l(e, !1), K_.delete(e)) : K_.set(e, t - 1));
+ let t = Y_.get(e);
+ t != null && (t === 1 ? (l(e, !1), Y_.delete(e)) : Y_.set(e, t - 1));
}
- h === q_[q_.length - 1] ? (q_.pop(), q_.length && q_[q_.length - 1].observe()) : q_.splice(q_.indexOf(h), 1);
+ h === X_[X_.length - 1] ? (X_.pop(), X_.length && X_[X_.length - 1].observe()) : X_.splice(X_.indexOf(h), 1);
};
}
-function Pee(e) {
- let t = q_[q_.length - 1];
+function jee(e) {
+ let t = X_[X_.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 Y_ = /* @__PURE__ */ new WeakMap();
-function Fee(e) {
+var Q_ = /* @__PURE__ */ new WeakMap();
+function Mee(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Iee(e, t) {
- let n = Y_.get(e);
+function Nee(e, t) {
+ let n = Q_.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${Fee(t)}`;
+ return `${n.id}-option-${Mee(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function X_(e) {
+function $_(e) {
return Np() ? e.altKey : e.ctrlKey;
}
-function Z_(e, t) {
+function ev(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 Q_ = /* @__PURE__ */ new WeakMap();
-function Lee(e) {
+var tv = /* @__PURE__ */ new WeakMap();
+function Pee(e) {
let t = Hm();
- return Q_.set(e, t), t;
+ return tv.set(e, t), t;
}
-function Ree(e) {
- return Q_.get(e);
+function Fee(e) {
+ return tv.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var $_ = class {
+var nv = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Z_(this.ref, e);
+ let n = e == null ? null : ev(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -10661,12 +10661,12 @@ var $_ = class {
height: e?.clientHeight ?? 0
};
}
-}, ev = class {
+}, rv = 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 $_(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 $_(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 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.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -10706,14 +10706,14 @@ var $_ = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Z_(this.ref, e);
+ let t = this.getNextKey(e), n = ev(this.ref, e);
if (t != null) {
- let e = Z_(this.ref, t);
+ let e = ev(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Z_(this.ref, r);
+ let e = ev(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -10747,7 +10747,7 @@ var $_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !g_(t)) return this.getFirstKey();
+ if (t && !y_(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 $_ = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !g_(t)) return this.getLastKey();
+ if (t && !y_(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 $_ = class {
}
return null;
}
-}, tv = {};
-tv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, iv = {};
+iv = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var nv = {};
-nv = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var av = {};
+av = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var rv = {};
-rv = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var ov = {};
+ov = { 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 iv = {};
-iv = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var sv = {};
+sv = { 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 av = {};
-av = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var cv = {};
+cv = { 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 ov = {};
-ov = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var lv = {};
+lv = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var sv = {};
-sv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var uv = {};
+uv = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var cv = {};
-cv = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var dv = {};
+dv = { 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 lv = {};
-lv = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var fv = {};
+fv = { 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 uv = {};
-uv = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var pv = {};
+pv = { 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 dv = {};
-dv = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var mv = {};
+mv = { 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 fv = {};
-fv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var hv = {};
+hv = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var pv = {};
-pv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var gv = {};
+gv = { 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 mv = {};
-mv = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var _v = {};
+_v = { 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 hv = {};
-hv = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var vv = {};
+vv = { 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 gv = {};
-gv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var yv = {};
+yv = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var _v = {};
-_v = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var bv = {};
+bv = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var vv = {};
-vv = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var xv = {};
+xv = { 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 yv = {};
-yv = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var Sv = {};
+Sv = { 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 bv = {};
-bv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var Cv = {};
+Cv = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var xv = {};
-xv = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var wv = {};
+wv = { 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 Sv = {};
-Sv = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var Tv = {};
+Tv = { 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 Cv = {};
-Cv = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var Ev = {};
+Ev = { 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 wv = {};
-wv = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Dv = {};
+Dv = { 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 Tv = {};
-Tv = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Ov = {};
+Ov = { 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 Ev = {};
-Ev = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var kv = {};
+kv = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var Dv = {};
-Dv = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Av = {};
+Av = { 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 Ov = {};
-Ov = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var jv = {};
+jv = { 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 kv = {};
-kv = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Mv = {};
+Mv = { 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 Av = {};
-Av = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Nv = {};
+Nv = { 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 jv = {};
-jv = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var Pv = {};
+Pv = { 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 Mv = {};
-Mv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var Fv = {};
+Fv = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var Nv = {};
-Nv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var Iv = {};
+Iv = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var Pv = {};
-Pv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Lv = {};
+Lv = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var Fv = {};
-Fv = {
- "ar-AE": tv,
- "bg-BG": nv,
- "cs-CZ": rv,
- "da-DK": iv,
- "de-DE": av,
- "el-GR": ov,
- "en-US": sv,
- "es-ES": cv,
- "et-EE": lv,
- "fi-FI": uv,
- "fr-FR": dv,
- "he-IL": fv,
- "hr-HR": pv,
- "hu-HU": mv,
- "it-IT": hv,
- "ja-JP": gv,
- "ko-KR": _v,
- "lt-LT": vv,
- "lv-LV": yv,
- "nb-NO": bv,
- "nl-NL": xv,
- "pl-PL": Sv,
- "pt-BR": Cv,
- "pt-PT": wv,
- "ro-RO": Tv,
- "ru-RU": Ev,
- "sk-SK": Dv,
- "sl-SI": Ov,
- "sr-SP": kv,
- "sv-SE": Av,
- "tr-TR": jv,
- "uk-UA": Mv,
- "zh-CN": Nv,
- "zh-TW": Pv
+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
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var zee = 500;
-function Iv(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = zee, accessibilityDescription: s } = e, c = (0, I.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = wg(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = kg({
+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({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -10990,12 +10990,12 @@ function Iv(e) {
});
}
});
- return { longPressProps: H(f, S_(a && !t ? s : void 0)) };
+ return { longPressProps: H(f, T_(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function Bee(e) {
- let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = Iv({
+function Lee(e) {
+ let { onContextMenu: t } = e, n = (0, I.useRef)(!1), { longPressProps: r } = zv({
onLongPressStart() {
n.current = !1;
},
@@ -11038,13 +11038,13 @@ function Bee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var Lv = /* @__PURE__ */ new WeakMap();
-function Vee(e) {
+var Bv = /* @__PURE__ */ new WeakMap();
+function Ree(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
(0, I.useEffect)(() => !n || r === null ? void 0 : np(cp(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 || Lv.get(t.current);
+ let i = r || Bv.get(t.current);
i && i();
}, !0), [
n,
@@ -11054,10 +11054,10 @@ function Vee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function Hee(e, t, n) {
+function zee(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
(0, I.useEffect)(() => {
- n && n.current && Lv.set(n.current, t.close);
+ n && n.current && Bv.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
@@ -11074,11 +11074,11 @@ function Hee(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function Uee(e) {
+function Bee(e) {
return e && e.__esModule ? e.default : e;
}
-function Rv(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Hm(), { triggerProps: s, overlayProps: c } = Hee({ type: r }, t, n), l = (e, n, r = "first") => {
+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") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
}, { keyboardProps: u } = lh({
@@ -11093,7 +11093,7 @@ function Rv(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = mg(Uee(Fv), "@react-aria/menu"), { longPressProps: f } = Iv({
+ }), d = hg(Bee(Rv), "@react-aria/menu"), { longPressProps: f } = zv({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -11112,7 +11112,7 @@ function Rv(e, t, n) {
}
};
delete s.onPress;
- let { contextMenuProps: m } = Bee({ onContextMenu(e) {
+ let { contextMenuProps: m } = Lee({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
@@ -11157,8 +11157,8 @@ function Rv(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var zv = 1e3;
-function Bv(e) {
+var Hv = 1e3;
+function Uv(e) {
let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, I.useRef)({
search: "",
timeout: void 0
@@ -11177,11 +11177,11 @@ function Bv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, zv);
+ }, Hv);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = Wee(e.key);
+ let a = Vee(e.key);
if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !op(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);
@@ -11193,17 +11193,17 @@ function Bv(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, zv);
+ }, Hv);
}
} : void 0
} };
}
-function Wee(e) {
+function Vee(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function Vv(e, t) {
+function Wv(e, t) {
let n = (0, I.useRef)(!0), r = (0, I.useRef)(null);
bp(() => (n.current = !0, () => {
n.current = !1;
@@ -11213,14 +11213,14 @@ function Vv(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Hv(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 } = cg(), _ = Vp(), v = (e, n, i) => {
+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) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !X_(e)) {
+ if (t.isLink(n) && m === "selection" && l && !$_(e)) {
(0, Ch.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Z_(r, n), o = t.getItemProps(n);
+ let a = ev(r, n), o = t.getItemProps(n);
if (a) {
_.open(a, e, o.href, o.routerOptions);
return;
@@ -11232,7 +11232,7 @@ function Hv(e) {
t.extendSelection(n);
return;
}
- if (l && !X_(e)) {
+ if (l && !$_(e)) {
t.replaceSelection(n);
return;
}
@@ -11332,7 +11332,7 @@ function Hv(e) {
return !1;
}, k = () => {
if (!f && r.current) {
- let e = s_(r.current, { tabbable: !0 }), t, n;
+ let e = u_(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
@@ -11395,8 +11395,8 @@ function Hv(e) {
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
} else p.current && (p.current.scrollTop = P.current.top, p.current.scrollLeft = P.current.left);
if (t.focusedKey != null && p.current) {
- let e = Z_(r, t.focusedKey);
- e instanceof HTMLElement && (!lp(e) && !d && Gf(e), (i === "keyboard" || h && i === "virtual") && b_(e, { containingElement: r.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 }));
}
}, F = (e) => {
op(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
@@ -11406,14 +11406,14 @@ function Hv(e) {
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (te.current = !0);
} : void 0);
let ne = n.getFirstKey?.() ?? null;
- Vv(() => {
+ 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]), Vv(() => {
+ }, [ne, t.collection.size]), Wv(() => {
t.collection.size > 0 && (te.current = !1);
}, [t.focusedKey]), Qh(r, Vh, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
@@ -11436,10 +11436,10 @@ function Hv(e) {
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 = Z_(r, t.focusedKey);
+ let e = wm(), n = ev(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
(e === "keyboard" || ie.current) && (oe.current && cancelAnimationFrame(oe.current), oe.current = requestAnimationFrame(() => {
- p.current && (y_(p.current, n), e !== "virtual" && b_(n, { containingElement: r.current }));
+ p.current && (S_(p.current, n), e !== "virtual" && C_(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;
@@ -11455,14 +11455,14 @@ function Hv(e) {
onMouseDown(e) {
p.current === V(e) && e.preventDefault();
}
- }, { typeSelectProps: ce } = Bv({
+ }, { typeSelectProps: ce } = Uv({
keyboardDelegate: n,
selectionManager: t
});
u || (se = H(ce, se));
let L;
d || (L = t.focusedKey == null ? 0 : -1);
- let le = Lee(t.collection);
+ let le = Pee(t.collection);
return { collectionProps: H(se, {
tabIndex: L,
"data-collection": le
@@ -11470,13 +11470,13 @@ function Hv(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function Uv(e, t) {
+function Kv(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function Wv(e) {
- return Gv(e, 0);
+function qv(e) {
+ return Jv(e, 0);
}
-function Gv(e, t) {
+function Jv(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -11484,45 +11484,45 @@ function Gv(e, t) {
n++;
}
}
-function Kv(e) {
+function Yv(e) {
let t;
for (let n of e) t = n;
return t;
}
-function qv(e, t, n) {
+function Xv(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Jv(e, t), t], i = [...Jv(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Zv(e, t), t], i = [...Zv(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 Jv(e, t) {
+function Zv(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 Yv = /* @__PURE__ */ new WeakMap();
-function Xv(e) {
- let t = Yv.get(e);
+var Qv = /* @__PURE__ */ new WeakMap();
+function $v(e) {
+ let t = Qv.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(Uv(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(Kv(i, e)) : i.type === "item" && n++;
};
- return r(e), Yv.set(e, n), n;
+ return r(e), Qv.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var Zv = /* @__PURE__ */ new Map();
-function Qv(e) {
- let { locale: t } = cg(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (Zv.has(n)) return Zv.get(n);
+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);
let r = new Intl.Collator(t, e);
- return Zv.set(n, r), r;
+ return ey.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-var Gee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
- let r = (0, I.useRef)(!1), i = (0, I.useContext)(Cg), a = H(i || {}, {
+var Hee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
+ let r = (0, I.useRef)(!1), i = (0, I.useContext)(wg), a = H(i || {}, {
...t,
register() {
r.current = !0, i && i.register();
@@ -11530,46 +11530,46 @@ var Gee = /*#__PURE__*/ I.forwardRef(({ children: e, ...t }, n) => {
});
return a.ref = uh(n || i?.ref), dh(i, a.ref), (0, I.useEffect)(() => {
r.current ||= !0;
- }, []), /*#__PURE__*/ I.createElement(Cg.Provider, { value: a }, e);
+ }, []), /*#__PURE__*/ I.createElement(wg.Provider, { value: a }, e);
});
-function $v({ children: e }) {
+function Uee({ children: e }) {
let t = (0, I.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ I.createElement(Cg.Provider, { value: t }, e);
+ return /*#__PURE__*/ I.createElement(wg.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var ey = /*#__PURE__*/ (0, I.createContext)({});
-function ty(e) {
- let { getContainer: t } = e, { getContainer: n } = ny();
- return /*#__PURE__*/ I.createElement(ey.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+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);
}
-function ny() {
- return (0, I.useContext)(ey) ?? {};
+function iy() {
+ return (0, I.useContext)(ny) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var ry = /*#__PURE__*/ I.createContext(null);
-function iy(e) {
+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)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = ny();
+ }), [i, a]), { getContainer: s } = iy();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Vg, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ I.createElement(Wg, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ I.createElement(ry.Provider, { value: o }, /*#__PURE__*/ I.createElement($v, null, /*#__PURE__*/ I.createElement(fh.Provider, { value: null }, c))), /*#__PURE__*/ Ch.createPortal(c, n);
+ }, 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);
}
-function ay() {
- let e = (0, I.useContext)(ry)?.setContain;
+function sy() {
+ let e = (0, I.useContext)(ay)?.setContain;
bp(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function Kee(e, t) {
+function Wee(e, t) {
let { role: n = "dialog" } = e, r = Wm();
r = e["aria-label"] ? void 0 : r;
let i = Wm();
@@ -11585,11 +11585,11 @@ function Kee(e, t) {
clearTimeout(e);
};
}
- }, [t]), ay(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});
+ }, [t]), sy(), (0, I.useRef)(!1), (0, I.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...gg(e, { labelable: !0 }),
+ ..._g(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -11604,7 +11604,7 @@ function Kee(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function oy(e = {}) {
+function cy(e = {}) {
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, I.useRef)({
isFocused: !1,
isFocusVisible: t || Cm()
@@ -11620,7 +11620,7 @@ function oy(e = {}) {
let { focusProps: d } = Ym({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = R_({
+ }), { focusWithinProps: f } = V_({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -11632,36 +11632,36 @@ function oy(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function qee(e = {}) {
- let { locale: t } = cg();
+function Gee(e = {}) {
+ let { locale: t } = lg();
return (0, I.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var sy = !1, cy = 0;
-function Jee() {
- sy = !0, setTimeout(() => {
- sy = !1;
+var ly = !1, uy = 0;
+function Kee() {
+ ly = !0, setTimeout(() => {
+ ly = !1;
}, 500);
}
-function ly(e) {
- e.pointerType === "touch" && Jee();
+function dy(e) {
+ e.pointerType === "touch" && Kee();
}
-function Yee() {
+function qee() {
let e = Xf(null);
- if (e !== void 0) return cy === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", ly), cy++, () => {
- cy--, !(cy > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", ly);
+ 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 uy(e) {
+function fy(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)(Yee, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = wg(), { hoverProps: u, triggerHoverEnd: d } = (0, I.useMemo)(() => {
+ (0, I.useEffect)(qee, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = Tg(), { 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;
s.isHovered = !0;
@@ -11682,7 +11682,7 @@ function uy(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- sy && t.pointerType === "mouse" || e(t, t.pointerType);
+ ly && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
!i && op(e.currentTarget, V(e)) && a(e, e.pointerType);
}), {
@@ -11707,12 +11707,12 @@ function uy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Xee(e) {
+function Jee(e) {
let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, I.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
}), o = Zh((e) => {
- n && dy(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ n && py(e, t) && (i && i(e), a.current.isPointerDown = !0);
}), s = Zh((e) => {
n && n(e);
});
@@ -11722,7 +11722,7 @@ function Xee(e) {
let n = t.current, i = Xf(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && dy(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && py(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,7 +11730,7 @@ function Xee(e) {
}
}, [t, r]);
}
-function dy(e, t) {
+function py(e, t) {
if (e.button > 0) return !1;
let n = V(e);
if (n) {
@@ -11741,8 +11741,8 @@ function dy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ar-AE.mjs
-var fy = {};
-fy = {
+var my = {};
+my = {
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 @@ fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/bg-BG.mjs
-var py = {};
-py = {
+var hy = {};
+hy = {
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 @@ py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/cs-CZ.mjs
-var my = {};
-my = {
+var gy = {};
+gy = {
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 @@ my = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/da-DK.mjs
-var hy = {};
-hy = {
+var _y = {};
+_y = {
deselectedItem: (e) => `${e.item} ikke valgt.`,
longPressToSelect: "Lav et langt tryk for at aktivere valgtilstand.",
select: "Vælg",
@@ -11801,8 +11801,8 @@ hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/de-DE.mjs
-var gy = {};
-gy = {
+var vy = {};
+vy = {
deselectedItem: (e) => `${e.item} nicht ausgew\xe4hlt.`,
longPressToSelect: "Gedrückt halten, um Auswahlmodus zu öffnen.",
select: "Auswählen",
@@ -11816,8 +11816,8 @@ gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/el-GR.mjs
-var _y = {};
-_y = {
+var yy = {};
+yy = {
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 @@ _y = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/en-US.mjs
-var vy = {};
-vy = {
+var by = {};
+by = {
deselectedItem: (e) => `${e.item} not selected.`,
select: "Select",
selectedCount: (e, t) => `${t.plural(e.count, {
@@ -11846,8 +11846,8 @@ vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/es-ES.mjs
-var yy = {};
-yy = {
+var xy = {};
+xy = {
deselectedItem: (e) => `${e.item} no seleccionado.`,
longPressToSelect: "Mantenga pulsado para abrir el modo de selección.",
select: "Seleccionar",
@@ -11861,8 +11861,8 @@ yy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/et-EE.mjs
-var by = {};
-by = {
+var Sy = {};
+Sy = {
deselectedItem: (e) => `${e.item} pole valitud.`,
longPressToSelect: "Valikurežiimi sisenemiseks vajutage pikalt.",
select: "Vali",
@@ -11876,8 +11876,8 @@ by = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fi-FI.mjs
-var xy = {};
-xy = {
+var Cy = {};
+Cy = {
deselectedItem: (e) => `Kohdetta ${e.item} ei valittu.`,
longPressToSelect: "Siirry valintatilaan painamalla pitkään.",
select: "Valitse",
@@ -11891,8 +11891,8 @@ xy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/fr-FR.mjs
-var Sy = {};
-Sy = {
+var wy = {};
+wy = {
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 @@ Sy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/he-IL.mjs
-var Cy = {};
-Cy = {
+var Ty = {};
+Ty = {
deselectedItem: (e) => `${e.item} \u{5DC}\u{5D0} \u{5E0}\u{5D1}\u{5D7}\u{5E8}.`,
longPressToSelect: "הקשה ארוכה לכניסה למצב בחירה.",
select: "בחר",
@@ -11921,8 +11921,8 @@ Cy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hr-HR.mjs
-var wy = {};
-wy = {
+var Ey = {};
+Ey = {
deselectedItem: (e) => `Stavka ${e.item} nije odabrana.`,
longPressToSelect: "Dugo pritisnite za ulazak u način odabira.",
select: "Odaberite",
@@ -11936,8 +11936,8 @@ wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/hu-HU.mjs
-var Ty = {};
-Ty = {
+var Dy = {};
+Dy = {
deselectedItem: (e) => `${e.item} nincs kijel\xf6lve.`,
longPressToSelect: "Nyomja hosszan a kijelöléshez.",
select: "Kijelölés",
@@ -11951,8 +11951,8 @@ Ty = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/it-IT.mjs
-var Ey = {};
-Ey = {
+var Oy = {};
+Oy = {
deselectedItem: (e) => `${e.item} non selezionato.`,
longPressToSelect: "Premi a lungo per passare alla modalità di selezione.",
select: "Seleziona",
@@ -11966,8 +11966,8 @@ Ey = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ja-JP.mjs
-var Dy = {};
-Dy = {
+var ky = {};
+ky = {
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 @@ Dy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ko-KR.mjs
-var Oy = {};
-Oy = {
+var Ay = {};
+Ay = {
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 @@ Oy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lt-LT.mjs
-var ky = {};
-ky = {
+var jy = {};
+jy = {
deselectedItem: (e) => `${e.item} nepasirinkta.`,
longPressToSelect: "Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",
select: "Pasirinkti",
@@ -12011,8 +12011,8 @@ ky = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/lv-LV.mjs
-var Ay = {};
-Ay = {
+var My = {};
+My = {
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 @@ Ay = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nb-NO.mjs
-var jy = {};
-jy = {
+var Ny = {};
+Ny = {
deselectedItem: (e) => `${e.item} er ikke valgt.`,
longPressToSelect: "Bruk et langt trykk for å gå inn i valgmodus.",
select: "Velg",
@@ -12041,8 +12041,8 @@ jy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/nl-NL.mjs
-var My = {};
-My = {
+var Py = {};
+Py = {
deselectedItem: (e) => `${e.item} niet geselecteerd.`,
longPressToSelect: "Druk lang om de selectiemodus te openen.",
select: "Selecteren",
@@ -12056,8 +12056,8 @@ My = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pl-PL.mjs
-var Ny = {};
-Ny = {
+var Fy = {};
+Fy = {
deselectedItem: (e) => `Nie zaznaczono ${e.item}.`,
longPressToSelect: "Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",
select: "Zaznacz",
@@ -12071,8 +12071,8 @@ Ny = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-BR.mjs
-var Py = {};
-Py = {
+var Iy = {};
+Iy = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Mantenha pressionado para entrar no modo de seleção.",
select: "Selecionar",
@@ -12086,8 +12086,8 @@ Py = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/pt-PT.mjs
-var Fy = {};
-Fy = {
+var Ly = {};
+Ly = {
deselectedItem: (e) => `${e.item} n\xe3o selecionado.`,
longPressToSelect: "Prima continuamente para entrar no modo de seleção.",
select: "Selecionar",
@@ -12101,8 +12101,8 @@ Fy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ro-RO.mjs
-var Iy = {};
-Iy = {
+var Ry = {};
+Ry = {
deselectedItem: (e) => `${e.item} neselectat.`,
longPressToSelect: "Apăsați lung pentru a intra în modul de selectare.",
select: "Selectare",
@@ -12116,8 +12116,8 @@ Iy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/ru-RU.mjs
-var Ly = {};
-Ly = {
+var zy = {};
+zy = {
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 @@ Ly = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sk-SK.mjs
-var Ry = {};
-Ry = {
+var By = {};
+By = {
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 @@ Ry = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sl-SI.mjs
-var zy = {};
-zy = {
+var Vy = {};
+Vy = {
deselectedItem: (e) => `Element ${e.item} ni izbran.`,
longPressToSelect: "Za izbirni način pritisnite in dlje časa držite.",
select: "Izberite",
@@ -12161,8 +12161,8 @@ zy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sr-SP.mjs
-var By = {};
-By = {
+var Hy = {};
+Hy = {
deselectedItem: (e) => `${e.item} nije izabrano.`,
longPressToSelect: "Dugo pritisnite za ulazak u režim biranja.",
select: "Izaberite",
@@ -12176,8 +12176,8 @@ By = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/sv-SE.mjs
-var Vy = {};
-Vy = {
+var Uy = {};
+Uy = {
deselectedItem: (e) => `${e.item} ej markerat.`,
longPressToSelect: "Tryck länge när du vill öppna väljarläge.",
select: "Markera",
@@ -12191,8 +12191,8 @@ Vy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/tr-TR.mjs
-var Hy = {};
-Hy = {
+var Wy = {};
+Wy = {
deselectedItem: (e) => `${e.item} se\xe7ilmedi.`,
longPressToSelect: "Seçim moduna girmek için uzun basın.",
select: "Seç",
@@ -12206,8 +12206,8 @@ Hy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/uk-UA.mjs
-var Uy = {};
-Uy = {
+var Gy = {};
+Gy = {
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 @@ Uy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-CN.mjs
-var Wy = {};
-Wy = {
+var Ky = {};
+Ky = {
deselectedItem: (e) => `\u{672A}\u{9009}\u{62E9} ${e.item}\u{3002}`,
longPressToSelect: "长按以进入选择模式。",
select: "选择",
@@ -12236,8 +12236,8 @@ Wy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/grid/zh-TW.mjs
-var Gy = {};
-Gy = {
+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 @@ Gy = {
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/intlStrings.mjs
-var Ky = {};
-Ky = {
- "ar-AE": fy,
- "bg-BG": py,
- "cs-CZ": my,
- "da-DK": hy,
- "de-DE": gy,
- "el-GR": _y,
- "en-US": vy,
- "es-ES": yy,
- "et-EE": by,
- "fi-FI": xy,
- "fr-FR": Sy,
- "he-IL": Cy,
- "hr-HR": wy,
- "hu-HU": Ty,
- "it-IT": Ey,
- "ja-JP": Dy,
- "ko-KR": Oy,
- "lt-LT": ky,
- "lv-LV": Ay,
- "nb-NO": jy,
- "nl-NL": My,
- "pl-PL": Ny,
- "pt-BR": Py,
- "pt-PT": Fy,
- "ro-RO": Iy,
- "ru-RU": Ly,
- "sk-SK": Ry,
- "sl-SI": zy,
- "sr-SP": By,
- "sv-SE": Vy,
- "tr-TR": Hy,
- "uk-UA": Uy,
- "zh-CN": Wy,
- "zh-TW": Gy
+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
};
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionAnnouncement.mjs
-function Zee(e) {
+function Yee(e) {
return e && e.__esModule ? e.default : e;
}
-function Qee(e, t) {
- let { getRowText: n = (e) => t.collection.getTextValue?.(e) ?? t.collection.getItem(e)?.textValue } = e, r = mg(Zee(Ky), "@react-aria/grid"), i = t.selectionManager.rawSelection, a = (0, I.useRef)(i), o = (0, I.useCallback)(() => {
+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)(() => {
if (!t.selectionManager.isFocused || i === a.current) {
a.current = i;
return;
}
- let e = qy(i, a.current), o = qy(a.current, i), s = t.selectionManager.selectionBehavior === "replace", c = [];
+ let e = Yy(i, a.current), o = Yy(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 Qee(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 && p_(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 && g_(c.join(" ")), a.current = i;
}, [
i,
t.selectionManager.selectedKeys,
@@ -12330,7 +12330,7 @@ function Qee(e, t) {
n,
r
]);
- h_(() => {
+ v_(() => {
if (t.selectionManager.isFocused) o();
else {
let e = requestAnimationFrame(o);
@@ -12338,7 +12338,7 @@ function Qee(e, t) {
}
}, [i, t.selectionManager.isFocused]);
}
-function qy(e, t) {
+function Yy(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 qy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
-function Jy(e, t) {
+function Xy(e, t) {
let n = t?.isDisabled, [r, i] = (0, I.useState)(!1);
return bp(() => {
if (e?.current && !n) {
let t = () => {
if (e.current) {
- let t = s_(e.current, { tabbable: !0 });
+ let t = u_(e.current, { tabbable: !0 });
i(!!t.nextNode());
}
};
@@ -12371,12 +12371,12 @@ function Jy(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useHighlightSelectionDescription.mjs
-function $ee(e) {
+function Zee(e) {
return e && e.__esModule ? e.default : e;
}
-function ete(e) {
- let t = mg($ee(Ky), "@react-aria/grid"), n = Em(), r = (n === "pointer" || n === "virtual" || n == null) && typeof window < "u" && "ontouchstart" in window;
- return S_((0, I.useMemo)(() => {
+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)(() => {
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 ete(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Yy(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Qv({
+function Zy(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = ty({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new ev({
+ }), l = t.disabledBehavior, u = (0, I.useMemo)(() => a || new rv({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -12410,7 +12410,7 @@ function Yy(e) {
c,
l,
s
- ]), { collectionProps: d } = Hv({
+ ]), { collectionProps: d } = Gv({
...e,
ref: i,
selectionManager: t,
@@ -12420,11 +12420,11 @@ function Yy(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Xy(e) {
+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);
let p = (e) => {
- if (e.pointerType === "keyboard" && X_(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && $_(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -12467,22 +12467,22 @@ function Xy(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 || Qy(e.key)) && p(e);
+ C.current = e.pointerType, T.current = w, e.pointerType === "keyboard" && (!S || eb(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" && !Zy(e.key)) return;
+ if (e.pointerType === "keyboard" && !$y(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 || Qy(e.key))) && p(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);
}, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Zy(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 && $y(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
});
- let A = Ree(n.collection);
+ let A = Fee(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));
@@ -12498,9 +12498,9 @@ function Xy(e) {
"onPressUp",
"onClick"
]) D[e] && (k[e] = Im(k[e], D[e]));
- let { pressProps: j, isPressed: M } = kg(k), N = x ? (e) => {
+ let { pressProps: j, isPressed: M } = Ag(k), N = x ? (e) => {
C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: P } = Iv({
+ } : void 0, { longPressProps: P } = zv({
isDisabled: !w,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
@@ -12549,22 +12549,22 @@ function Xy(e) {
hasAction: S
};
}
-function Zy(e) {
+function $y(e) {
return e === "Enter";
}
-function Qy(e) {
+function eb(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGridSelectionCheckbox.mjs
-function tte(e) {
+function $ee(e) {
return e && e.__esModule ? e.default : e;
}
-function nte(e, t) {
+function ete(e, t) {
let { key: n } = e, r = t.selectionManager, i = Hm(), a = !t.selectionManager.canSelectItem(n), o = t.selectionManager.isSelected(n);
return { checkboxProps: {
id: i,
- "aria-label": mg(tte(Ky), "@react-aria/grid").format("select"),
+ "aria-label": hg($ee(Jy), "@react-aria/grid").format("select"),
isSelected: o,
isDisabled: a,
onChange: () => r.toggleSelection(n)
@@ -12572,22 +12572,22 @@ function nte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function rte(e, t, n) {
- let r = gg(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+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");
i === "toggle" && o === "action" && (o = "override");
- let { listProps: s } = Yy({
+ let { listProps: s } = Zy({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = R_({
+ }), { focusWithinProps: c } = V_({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
}), l = Hm(e.id);
- Y_.set(t, {
+ Q_.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -12597,7 +12597,7 @@ function rte(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = I_({
+ let { labelProps: u, fieldProps: d } = z_({
...e,
id: l,
labelElementType: "span"
@@ -12613,7 +12613,7 @@ function rte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function ite(e) {
+function nte(e) {
let { heading: t, "aria-label": n } = e, r = Hm();
return {
itemProps: { role: "presentation" },
@@ -12633,8 +12633,8 @@ function ite(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function ate(e, t, n) {
- let { key: r } = e, i = Y_.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 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 = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -12644,9 +12644,9 @@ function ate(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"] = Xv(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = $v(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Iee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Xy({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Nee(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Qy({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -12659,12 +12659,12 @@ function ate(e, t, n) {
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = uy({
+ }), { hoverProps: S } = fy({
isDisabled: a || !c,
onHoverStart() {
Cm() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = gg(m?.props);
+ }), C = _g(m?.props);
delete C.id;
let w = qp(m?.props);
return {
@@ -12686,13 +12686,13 @@ function ate(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/utils.mjs
-var $y = /* @__PURE__ */ new WeakMap();
+var tb = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenu.mjs
-function ote(e, t, n) {
+function ite(e, t, n) {
let { shouldFocusWrap: r = !0, onKeyDown: i, onKeyUp: a, ...o } = e;
!e["aria-label"] && e["aria-labelledby"];
- let s = gg(e, { labelable: !0 }), { listProps: c } = Yy({
+ let s = _g(e, { labelable: !0 }), { listProps: c } = Zy({
...o,
ref: n,
selectionManager: t.selectionManager,
@@ -12701,7 +12701,7 @@ function ote(e, t, n) {
shouldFocusWrap: r,
linkBehavior: "override"
});
- return $y.set(t, {
+ return tb.set(t, {
onClose: e.onClose,
onAction: e.onAction,
shouldUseVirtualFocus: e.shouldUseVirtualFocus
@@ -12718,8 +12718,8 @@ function ote(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuItem.mjs
-function ste(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 = $y.get(t), k = t.collection.getItem(i), A = e.onClose || O.onClose, j = Vp(), M = () => {
+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 = () => {
if (!w && (k?.props?.onAction ? k.props.onAction() : e.onAction && e.onAction(i), O.onAction)) {
let e = O.onAction;
e(i, k?.value);
@@ -12743,7 +12743,7 @@ function ste(e, t, n) {
};
if (C.selectionMode !== "none" && !w && (te["aria-checked"] = D), s) {
let e = Number(k?.index);
- te["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, te["aria-setsize"] = Xv(t.collection);
+ te["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, te["aria-setsize"] = $v(t.collection);
}
let ne = (0, I.useRef)(!1), re = (e) => {
f?.(e), ne.current = e;
@@ -12753,7 +12753,7 @@ function ste(e, t, n) {
m?.(e), M(), Jp(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 } = Xy({
+ }, { itemProps: se, isFocused: ce } = Qy({
id: r,
selectionManager: C,
key: i,
@@ -12762,14 +12762,14 @@ function ste(e, t, n) {
allowsDifferentPressOrigin: !0,
linkBehavior: "none",
shouldUseVirtualFocus: O.shouldUseVirtualFocus
- }), { pressProps: L, isPressed: le } = kg({
+ }), { pressProps: L, isPressed: le } = Ag({
onPressStart: l,
onPress: d,
onPressUp: ae,
onPressChange: re,
onPressEnd: p,
isDisabled: E
- }), { hoverProps: ue } = uy({
+ }), { hoverProps: ue } = fy({
isDisabled: E,
onHoverStart(e) {
!Cm() && !(T && c) && (C.setFocused(!0), C.setFocusedKey(i)), h?.(e);
@@ -12806,7 +12806,7 @@ function ste(e, t, n) {
onBlur: S,
onFocus: b,
onFocusChange: x
- }, n), de = gg(k?.props);
+ }, n), de = _g(k?.props);
delete de.id;
let fe = qp(k?.props);
return {
@@ -12831,7 +12831,7 @@ function ste(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuSection.mjs
-function cte(e) {
+function ote(e) {
let { heading: t, "aria-label": n } = e, r = Hm();
return {
itemProps: { role: "presentation" },
@@ -12848,15 +12848,15 @@ function cte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function lte() {
+function ste() {
return window.ResizeObserver !== void 0;
}
-function eb(e) {
+function nb(e) {
let { ref: t, box: n, onResize: r } = e, i = Zh(r);
(0, I.useEffect)(() => {
let e = t?.current;
if (e) {
- if (lte()) {
+ if (ste()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -12872,189 +12872,189 @@ function eb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var tb = {};
-tb = { dismiss: "تجاهل" };
+var rb = {};
+rb = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var nb = {};
-nb = { dismiss: "Отхвърляне" };
+var ib = {};
+ib = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var rb = {};
-rb = { dismiss: "Odstranit" };
+var ab = {};
+ab = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var ib = {};
-ib = { dismiss: "Luk" };
+var ob = {};
+ob = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var ab = {};
-ab = { dismiss: "Schließen" };
+var sb = {};
+sb = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var ob = {};
-ob = { dismiss: "Απόρριψη" };
+var cb = {};
+cb = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var sb = {};
-sb = { dismiss: "Dismiss" };
+var lb = {};
+lb = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var cb = {};
-cb = { dismiss: "Descartar" };
+var ub = {};
+ub = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var lb = {};
-lb = { dismiss: "Lõpeta" };
+var db = {};
+db = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var ub = {};
-ub = { dismiss: "Hylkää" };
+var fb = {};
+fb = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var db = {};
-db = { dismiss: "Rejeter" };
+var pb = {};
+pb = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var fb = {};
-fb = { dismiss: "התעלם" };
+var mb = {};
+mb = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var pb = {};
-pb = { dismiss: "Odbaci" };
+var hb = {};
+hb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var mb = {};
-mb = { dismiss: "Elutasítás" };
+var gb = {};
+gb = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var hb = {};
-hb = { dismiss: "Ignora" };
+var _b = {};
+_b = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var gb = {};
-gb = { dismiss: "閉じる" };
+var vb = {};
+vb = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var _b = {};
-_b = { dismiss: "무시" };
+var yb = {};
+yb = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var vb = {};
-vb = { dismiss: "Atmesti" };
+var bb = {};
+bb = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var yb = {};
-yb = { dismiss: "Nerādīt" };
+var xb = {};
+xb = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var bb = {};
-bb = { dismiss: "Lukk" };
+var Sb = {};
+Sb = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var xb = {};
-xb = { dismiss: "Negeren" };
+var Cb = {};
+Cb = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Sb = {};
-Sb = { dismiss: "Zignoruj" };
+var wb = {};
+wb = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Cb = {};
-Cb = { dismiss: "Descartar" };
+var Tb = {};
+Tb = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var wb = {};
-wb = { dismiss: "Dispensar" };
+var Eb = {};
+Eb = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var Tb = {};
-Tb = { dismiss: "Revocare" };
+var Db = {};
+Db = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var Eb = {};
-Eb = { dismiss: "Пропустить" };
+var Ob = {};
+Ob = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var Db = {};
-Db = { dismiss: "Zrušiť" };
+var kb = {};
+kb = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Ob = {};
-Ob = { dismiss: "Opusti" };
+var Ab = {};
+Ab = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var kb = {};
-kb = { dismiss: "Odbaci" };
+var jb = {};
+jb = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Ab = {};
-Ab = { dismiss: "Avvisa" };
+var Mb = {};
+Mb = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var jb = {};
-jb = { dismiss: "Kapat" };
+var Nb = {};
+Nb = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Mb = {};
-Mb = { dismiss: "Скасувати" };
+var Pb = {};
+Pb = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Nb = {};
-Nb = { dismiss: "取消" };
+var Fb = {};
+Fb = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Pb = {};
-Pb = { dismiss: "關閉" };
+var Ib = {};
+Ib = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var Fb = {};
-Fb = {
- "ar-AE": tb,
- "bg-BG": nb,
- "cs-CZ": rb,
- "da-DK": ib,
- "de-DE": ab,
- "el-GR": ob,
- "en-US": sb,
- "es-ES": cb,
- "et-EE": lb,
- "fi-FI": ub,
- "fr-FR": db,
- "he-IL": fb,
- "hr-HR": pb,
- "hu-HU": mb,
- "it-IT": hb,
- "ja-JP": gb,
- "ko-KR": _b,
- "lt-LT": vb,
- "lv-LV": yb,
- "nb-NO": bb,
- "nl-NL": xb,
- "pl-PL": Sb,
- "pt-BR": Cb,
- "pt-PT": wb,
- "ro-RO": Tb,
- "ru-RU": Eb,
- "sk-SK": Db,
- "sl-SI": Ob,
- "sr-SP": kb,
- "sv-SE": Ab,
- "tr-TR": jb,
- "uk-UA": Mb,
- "zh-CN": Nb,
- "zh-TW": Pb
+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
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function ute(e) {
+function cte(e) {
return e && e.__esModule ? e.default : e;
}
-function Ib(e) {
- let { onDismiss: t, ...n } = e, r = $h(n, mg(ute(Fb), "@react-aria/overlays").format("dismiss")), i = () => {
+function Rb(e) {
+ let { onDismiss: t, ...n } = e, r = $h(n, hg(cte(Lb), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ I.createElement(W_, null, /*#__PURE__*/ I.createElement("button", {
+ return /*#__PURE__*/ I.createElement(q_, null, /*#__PURE__*/ I.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -13066,22 +13066,22 @@ function Ib(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Lb = [];
-function Rb(e, t) {
+var zb = [];
+function Bb(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 && !Lb.includes(t)) return Lb.push(t), () => {
- let e = Lb.indexOf(t);
- e >= 0 && Lb.splice(e, 1);
+ if (i && !zb.includes(t)) return zb.push(t), () => {
+ let e = zb.indexOf(t);
+ e >= 0 && zb.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Lb[Lb.length - 1] === t && n && n();
+ zb[zb.length - 1] === t && n && n();
}, u = (e) => {
- let n = Lb[Lb.length - 1];
+ let n = zb[zb.length - 1];
c.current = n, (!s || s(V(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(V(e))) && (Lb[Lb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(V(e))) && (zb[zb.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = lh({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -13089,15 +13089,15 @@ function Rb(e, t) {
}
return !1;
} } });
- Xee({
+ Jee({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = R_({
+ let { focusWithinProps: p } = V_({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || Zg(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || e_(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -13110,26 +13110,26 @@ function Rb(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var zb = typeof document < "u" && window.visualViewport, Bb = 0, Vb;
-function Hb(e = {}) {
+var Vb = typeof document < "u" && window.visualViewport, Hb = 0, Ub;
+function Wb(e = {}) {
let { isDisabled: t } = e;
bp(() => {
- if (!t) return Bb++, Bb === 1 && (Vb = Mp() && Pp() ? fte() : dte()), () => {
- Bb--, Bb === 0 && Vb();
+ if (!t) return Hb++, Hb === 1 && (Ub = Mp() && Pp() ? ute() : lte()), () => {
+ Hb--, Hb === 0 && Ub();
};
}, [t]);
}
-function dte() {
+function lte() {
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"));
}
-function fte() {
+function ute() {
let e = rp(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = V(e);
- t = g_(r) ? r : __(r, !0), n = !1;
+ t = y_(r) ? r : b_(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 = Sg();
+ }, i = document.createElement("style"), a = Cg();
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,7 +13141,7 @@ function fte() {
}
}, s = (e) => {
let t = V(e), n = e.relatedTarget;
- n && Yh(n) ? (n.focus({ preventScroll: !0 }), Ub(n, Yh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && Yh(n) ? (n.focus({ preventScroll: !0 }), Gb(n, Yh(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -13151,7 +13151,7 @@ function fte() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Ub(this, n);
+ }), (!e || !e.preventScroll) && Gb(this, n);
}
});
let l = Im(np(document, "touchstart", r, {
@@ -13169,18 +13169,18 @@ function fte() {
});
};
}
-function Ub(e, t) {
- t || !zb ? Wb(e) : zb.addEventListener("resize", () => Wb(e), { once: !0 });
+function Gb(e, t) {
+ t || !Vb ? Kb(e) : Vb.addEventListener("resize", () => Kb(e), { once: !0 });
}
-function Wb(e) {
+function Kb(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = __(n);
+ let e = b_(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;
- zb && (n = Math.min(n, zb.offsetTop + zb.height));
+ Vb && (n = Math.min(n, Vb.offsetTop + Vb.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 Wb(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function pte(e, t, n) {
- let { overlayProps: r, underlayProps: i } = Rb({
+function dte(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = Bb({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Hb({ isDisabled: !t.isOpen }), ay(), (0, I.useEffect)(() => {
- if (t.isOpen && n.current) return J_([n.current], { shouldUseInert: !0 });
+ return Wb({ isDisabled: !t.isOpen }), sy(), (0, I.useEffect)(() => {
+ if (t.isOpen && n.current) return Z_([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
underlayProps: i
@@ -13208,32 +13208,32 @@ function pte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Gb = {
+var qb = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, Kb = {
+}, Jb = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, mte = {
+}, fte = {
top: "left",
left: "top"
-}, qb = {
+}, Yb = {
top: "height",
left: "width"
-}, Jb = {
+}, Xb = {
width: "totalWidth",
height: "totalHeight"
-}, Yb = {}, hte = () => typeof document < "u" ? window.visualViewport : null;
-function Xb(e, t) {
+}, Zb = {}, pte = () => typeof document < "u" ? window.visualViewport : null;
+function Qb(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} = nx(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } 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), {
width: n,
height: r,
@@ -13244,7 +13244,7 @@ function Xb(e, t) {
left: s
};
}
-function gte(e) {
+function mte(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -13252,11 +13252,11 @@ function gte(e) {
height: e.scrollHeight
};
}
-function Zb(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[qb[e]], l = o[e] + r.scroll[Gb[e]] + a, u = o[e] + r.scroll[Gb[e]] + c - a, d = t - s + r.scroll[Gb[e]] + o[e] - r[Gb[e]], f = t - s + n + r.scroll[Gb[e]] + o[e] - r[Gb[e]];
+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]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function _te(e) {
+function hte(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -13265,55 +13265,55 @@ function _te(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function Qb(e) {
- if (Yb[e]) return Yb[e];
- let [t, n] = e.split(" "), r = Gb[t] || "right", i = mte[r];
- Gb[n] || (n = "center");
- let a = qb[r], o = qb[i];
- return Yb[e] = {
+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] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Yb[e];
+ }, Zb[e];
}
-function $b(e, t, n, r, i, a, o, s, c, l, u) {
+function tx(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] = V_(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Jb[h]];
- _[Kb[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = W_(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[Xb[h]];
+ _[Jb[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function vte(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Jb.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+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 = {
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 ex(e, t, n, r, i, a, o, s) {
+function nx(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[Kb[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[Kb[l]] - i);
+ 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);
}
-function yte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = Qb(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = $b(t, s, n, v, u, d, l, f, m, h, c), T = u, E = ex(s, l, t, i, a + u, v, c, g);
+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);
if (o && n[y] > E) {
- let e = Qb(`${Kb[S]} ${C}`), r = $b(t, s, n, e, u, d, l, f, m, h, c);
- ex(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ 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 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 = Zb(b, w[b], n[x], s, c, a, l);
+ let O = $b(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = vte(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = $b(t, s, n, v, T, d, l, f, m, h, c), O = Zb(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, j = t[b] - w[b] - i[Gb[b]], M = j + .5 * t[x], N = m / 2 + h, P = Gb[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ee = n[x] - P - m / 2 - h;
- A[b] = V_(V_(M, t[b] + m / 2 - (w[b] + i[Gb[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Gb[b]])), N, ee), {placement: S, crossPlacement: C} = v, m ? j = A[b] : C === "right" ? j += t[x] : C === "center" && (j += t[x] / 2);
+ 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
@@ -13327,17 +13327,17 @@ function yte(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: te
};
}
-function bte(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 = hte(), h = r instanceof HTMLElement ? xte(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? nx(n, !1, p) : rx(n, h, !1, p);
+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);
if (!g) {
let { marginTop: e, marginLeft: t } = window.getComputedStyle(n);
y.top += parseInt(e, 10) || 0, y.left += parseInt(t, 10) || 0;
}
- let b = nx(r, !0), x = _te(r);
+ let b = ix(r, !0), x = hte(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = gte(i), C = Xb(s, m), w = Xb(h, m), T;
+ let S = mte(i), C = Qb(s, m), w = Qb(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = tx(h, !1);
+ let e = rx(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -13349,11 +13349,11 @@ function bte(e) {
left: 0,
width: 0,
height: 0
- } : rx(s, h, !1);
+ } : ax(s, h, !1);
let E = op(s, h);
- return yte(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return _te(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function tx(e, t) {
+function rx(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 tx(e, t) {
height: a
};
}
-function nx(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || tx(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+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;
return {
top: r + s - l,
left: i + c - u,
@@ -13371,30 +13371,30 @@ function nx(e, t, n) {
height: o
};
}
-function rx(e, t, n, r) {
+function ax(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || tx(e, n);
+ if (i.position === "fixed") a = r || rx(e, n);
else {
- a = nx(e, n, r);
- let i = nx(t, n), o = window.getComputedStyle(t);
+ a = ix(e, n, r);
+ let i = ix(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 xte(e) {
+function yte(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !ix(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !ix(t);) t = t.parentElement;
+ 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;
return t || document.documentElement;
}
-function ix(e) {
+function ox(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 ax = typeof document < "u" ? window.visualViewport : null;
-function Ste(e) {
- let { direction: t } = cg(), { 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 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 = [
p,
s,
i.current,
@@ -13411,12 +13411,12 @@ function Ste(e) {
g,
_,
n
- ], S = (0, I.useRef)(ax?.scale);
+ ], S = (0, I.useRef)(sx?.scale);
(0, I.useEffect)(() => {
- m && (S.current = ax?.scale);
+ m && (S.current = sx?.scale);
}, [m]);
let C = (0, I.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || ax?.scale !== S.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || sx?.scale !== S.current) return;
let e = null;
if (o.current && lp(o.current)) {
let t = sp()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -13427,8 +13427,8 @@ function Ste(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 = bte({
- placement: wte(s, t),
+ let y = vte({
+ placement: Ste(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -13438,7 +13438,7 @@ function Ste(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? tx(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? rx(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -13451,10 +13451,10 @@ function Ste(e) {
}
b(y);
}, x);
- bp(C, x), Cte(C), eb({
+ bp(C, x), xte(C), nb({
ref: i,
onResize: C
- }), eb({
+ }), nb({
ref: r,
onResize: C
});
@@ -13467,16 +13467,16 @@ function Ste(e) {
}, n = () => {
w.current && t();
};
- ax?.addEventListener("resize", t), ax?.addEventListener("scroll", n);
+ sx?.addEventListener("resize", t), sx?.addEventListener("scroll", n);
let r = np(cp(window), "scroll", n);
return () => {
- ax?.removeEventListener("resize", t), ax?.removeEventListener("scroll", n), r();
+ sx?.removeEventListener("resize", t), sx?.removeEventListener("scroll", n), r();
};
}, [C]);
let T = (0, I.useCallback)(() => {
w.current || h?.();
}, [h, w]);
- return Vee({
+ return Ree({
triggerRef: r,
isOpen: m,
onClose: h && T
@@ -13502,25 +13502,25 @@ function Ste(e) {
updatePosition: C
};
}
-function Cte(e) {
+function xte(e) {
bp(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function wte(e, t) {
+function Ste(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 Tte(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 } = Rb({
+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({
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 } = Ste({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = bte({
...c,
targetRef: n,
overlayRef: r,
@@ -13528,15 +13528,15 @@ function Tte(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)
});
- Hb({ isDisabled: a || !t.isOpen }), (0, I.useEffect)(() => {
- if (t.isOpen && r.current) return a ? Pee(i?.current ?? r.current) : J_([i?.current ?? r.current], { shouldUseInert: !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 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = R_(e);
+ let { focusWithinProps: g } = V_(e);
return {
popoverProps: H(u, f, g),
arrowProps: p,
@@ -13547,13 +13547,13 @@ function Tte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var ox = /* @__PURE__ */ new WeakMap();
+var cx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Ete(e, t, n) {
+function wte(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: _ } = kg({
+ }, { pressProps: g, isPressed: _ } = Ag({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13561,7 +13561,7 @@ function Ete(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = kg({
+ }), { pressProps: v, isPressed: y } = Ag({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -13571,11 +13571,11 @@ function Ete(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 = gg(e, { labelable: !0 }), C = -1;
+ }), { focusableProps: b } = mh(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = H(g, b), S = _g(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 } = ox.get(t);
- C_(n, t.defaultSelectedValue, t.setSelectedValue), w_({ validationBehavior: O }, t, n);
- let k = T_();
+ 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_();
return {
labelProps: H(v, (0, I.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
@@ -13607,13 +13607,13 @@ function Ete(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Dte(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = cg(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = L_({
+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_({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = gg(e, { labelable: !0 }), { focusWithinProps: v } = R_({
+ }), _ = _g(e, { labelable: !0 }), { focusWithinProps: v } = V_({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -13621,7 +13621,7 @@ function Dte(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = s_(n.currentTarget, {
+ let r = u_(n.currentTarget, {
from: V(n),
accept: (e) => e instanceof Zf(e).HTMLInputElement && e.type === "radio"
}), i;
@@ -13636,7 +13636,7 @@ function Dte(e, t) {
},
allowRepeats: !0
}), x = Hm(n);
- return ox.set(t, {
+ return cx.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -13665,18 +13665,18 @@ function Dte(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var sx = /* @__PURE__ */ new WeakMap();
-function Ote(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Qv({
+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({
usage: "search",
sensitivity: "base"
- }), u = (0, I.useMemo)(() => r || new ev(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, I.useMemo)(() => r || new rv(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = Rv({
+ ]), { menuTriggerProps: d, menuProps: f } = Vv({
isDisabled: i,
type: "listbox"
}, t, n), { keyboardProps: p } = lh({
@@ -13695,21 +13695,21 @@ function Ote(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = Bv({
+ }), { typeSelectProps: m } = Uv({
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 } = L_({
+ }), { isInvalid: h, validationErrors: g, validationDetails: _ } = t.displayValidation, { labelProps: v, fieldProps: y, descriptionProps: b, errorMessageProps: x } = B_({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = gg(e, { labelable: !0 }), C = H(m, d, y), w = Hm();
- return sx.set(t, {
+ let S = _g(e, { labelable: !0 }), C = H(m, d, y), w = Hm();
+ return lx.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -13770,13 +13770,13 @@ function Ote(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function kte(e, t, n) {
- let r = sx.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = U_({ style: {
+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: {
position: "fixed",
top: 0,
left: 0
} });
- C_(e.selectRef, t.defaultValue, t.setValue), w_({
+ E_(e.selectRef, t.defaultValue, t.setValue), D_({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
@@ -13806,8 +13806,8 @@ function kte(e, t, n) {
}
};
}
-function Ate(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 } = kte({
+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({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -13831,7 +13831,7 @@ function Ate(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = sx.get(t) || {};
+ let { validationBehavior: e } = lx.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -13862,8 +13862,8 @@ function Ate(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs
-function jte(e) {
- let t = gg(e, { labelable: !0 }), n;
+function kte(e) {
+ let t = _g(e, { labelable: !0 }), n;
return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {
...t,
role: "separator",
@@ -13872,8 +13872,8 @@ function jte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Mte(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = P_(e, t, n);
+function Ate(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = L_(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -13887,10 +13887,10 @@ function Mte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/grid/GridKeyboardDelegate.mjs
-var cx = class {
+var ux = 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 Nte(e.layout) : new $_(e.ref)), this.focusMode = e.focusMode ?? "row";
+ this.layoutDelegate = e.layoutDelegate || (e.layout ? new jte(e.layout) : new nv(e.ref)), this.focusMode = e.focusMode ?? "row";
}
isCell(e) {
return e.type === "cell";
@@ -13926,7 +13926,7 @@ var cx = class {
let n = this.collection.getItem(e);
if (!n) return null;
let r = 0;
- for (let e of Uv(n, this.collection)) {
+ for (let e of Kv(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 cx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Uv(t, this.collection);
- return (this.direction === "rtl" ? Kv(e)?.key : Wv(e)?.key) ?? null;
+ let e = Kv(t, this.collection);
+ return (this.direction === "rtl" ? Yv(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 = Uv(n, this.collection), i = (this.direction === "rtl" ? Gv(r, t.index - 1) : Gv(r, t.index + 1)) ?? null;
+ let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index - 1) : Jv(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 cx = class {
let t = this.collection.getItem(e);
if (!t) return null;
if (this.isRow(t)) {
- let e = Uv(t, this.collection);
- return (this.direction === "rtl" ? Wv(e)?.key : Kv(e)?.key) ?? null;
+ let e = Kv(t, this.collection);
+ return (this.direction === "rtl" ? qv(e)?.key : Yv(e)?.key) ?? null;
}
if (this.isCell(t) && t.parentKey != null) {
let n = this.collection.getItem(t.parentKey);
if (!n) return null;
- let r = Uv(n, this.collection), i = (this.direction === "rtl" ? Gv(r, t.index + 1) : Gv(r, t.index - 1)) ?? null;
+ let r = Kv(n, this.collection), i = (this.direction === "rtl" ? Jv(r, t.index + 1) : Jv(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 cx = 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 ? Wv(Uv(e, this.collection))?.key ?? null : null;
+ return e ? qv(Kv(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 = Wv(Uv(e, this.collection))?.key ?? null;
+ n = qv(Kv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -14008,13 +14008,13 @@ var cx = 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 ? Kv(Uv(e, this.collection))?.key ?? null : null;
+ return e ? Yv(Kv(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 = Kv(Uv(e, this.collection))?.key ?? null;
+ n = Yv(Kv(e, this.collection))?.key ?? null;
}
return n;
}
@@ -14050,13 +14050,13 @@ var cx = 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" ? Wv(Uv(t, this.collection))?.key ?? null : t.key;
+ if (this.collator.compare(n, e) === 0) return this.isRow(t) && this.focusMode === "cell" ? qv(Kv(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;
}
-}, Nte = class {
+}, jte = class {
constructor(e) {
this.layout = e;
}
@@ -14069,16 +14069,16 @@ var cx = class {
getVisibleRect() {
return this.layout.virtualizer.visibleRect;
}
-}, lx = /* @__PURE__ */ new WeakMap();
+}, dx = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/grid/useGrid.mjs
-function Pte(e, t, n) {
+function Mte(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 = Qv({
+ let h = ty({
usage: "search",
sensitivity: "base"
- }), { direction: g } = cg(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new cx({
+ }), { direction: g } = lg(), _ = t.selectionManager.disabledBehavior, v = (0, I.useMemo)(() => a || new ux({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: _,
@@ -14095,7 +14095,7 @@ function Pte(e, t, n) {
g,
h,
o
- ]), { collectionProps: y } = Hv({
+ ]), { collectionProps: y } = Gv({
ref: n,
selectionManager: m,
keyboardDelegate: v,
@@ -14104,7 +14104,7 @@ function Pte(e, t, n) {
disallowTypeAhead: i,
escapeKeyBehavior: d
}), b = Hm(e.id);
- lx.set(t, {
+ dx.set(t, {
keyboardDelegate: v,
actions: {
onRowAction: l,
@@ -14113,10 +14113,10 @@ function Pte(e, t, n) {
shouldSelectOnPressUp: f,
keyboardNavigationBehavior: p
});
- let x = ete({
+ let x = Qee({
selectionManager: m,
hasItemActions: !!(l || u)
- }), S = gg(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {
+ }), S = _g(e, { labelable: !0 }), C = (0, I.useCallback)((e) => {
if (m.isFocused) {
op(e.currentTarget, V(e)) || m.setFocused(!1);
return;
@@ -14125,36 +14125,36 @@ function Pte(e, t, n) {
}, [m]), w = (0, I.useMemo)(() => ({
onBlur: y.onBlur,
onFocus: C
- }), [C, y.onBlur]), T = Jy(n, { isDisabled: t.collection.size !== 0 }), E = H(S, {
+ }), [C, y.onBlur]), T = Xy(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), Qee({ getRowText: c }, t), { gridProps: E };
+ return r && (E["aria-rowcount"] = t.collection.size, E["aria-colcount"] = t.collection.columnCount), Xee({ getRowText: c }, t), { gridProps: E };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/utils.mjs
-var ux = /* @__PURE__ */ new WeakMap();
-function dx(e) {
+var fx = /* @__PURE__ */ new WeakMap();
+function px(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function Fte(e, t) {
- let n = ux.get(e);
+function Nte(e, t) {
+ let n = fx.get(e);
if (!n) throw Error("Unknown grid");
- return `${n}-${dx(t)}`;
+ return `${n}-${px(t)}`;
}
-function fx(e, t, n) {
- let r = ux.get(e);
+function mx(e, t, n) {
+ let r = fx.get(e);
if (!r) throw Error("Unknown grid");
- return `${r}-${dx(t)}-${dx(n)}`;
+ return `${r}-${px(t)}-${px(n)}`;
}
-function px(e, t) {
- return [...e.collection.rowHeaderColumnKeys].map((n) => fx(e, t, n)).join(" ");
+function hx(e, t) {
+ return [...e.collection.rowHeaderColumnKeys].map((n) => mx(e, t, n)).join(" ");
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ar-AE.mjs
-var mx = {};
-mx = {
+var gx = {};
+gx = {
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 @@ mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/bg-BG.mjs
-var hx = {};
-hx = {
+var _x = {};
+_x = {
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 @@ hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/cs-CZ.mjs
-var gx = {};
-gx = {
+var vx = {};
+vx = {
ascending: "vzestupně",
ascendingSort: (e) => `\u{159}azeno vzestupn\u{11B} podle sloupce ${e.columnName}`,
collapse: "Sbalit",
@@ -14201,8 +14201,8 @@ gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/da-DK.mjs
-var _x = {};
-_x = {
+var yx = {};
+yx = {
ascending: "stigende",
ascendingSort: (e) => `sorteret efter kolonne ${e.columnName} i stigende r\xe6kkef\xf8lge`,
collapse: "Skjul",
@@ -14217,8 +14217,8 @@ _x = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/de-DE.mjs
-var vx = {};
-vx = {
+var bx = {};
+bx = {
ascending: "aufsteigend",
ascendingSort: (e) => `sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,
collapse: "Reduzieren",
@@ -14233,8 +14233,8 @@ vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/el-GR.mjs
-var yx = {};
-yx = {
+var xx = {};
+xx = {
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 @@ yx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/en-US.mjs
-var bx = {};
-bx = {
+var Sx = {};
+Sx = {
select: "Select",
selectAll: "Select All",
sortable: "sortable column",
@@ -14265,8 +14265,8 @@ bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/es-ES.mjs
-var xx = {};
-xx = {
+var Cx = {};
+Cx = {
ascending: "ascendente",
ascendingSort: (e) => `ordenado por columna ${e.columnName} en sentido ascendente`,
collapse: "Contraer",
@@ -14281,8 +14281,8 @@ xx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/et-EE.mjs
-var Sx = {};
-Sx = {
+var wx = {};
+wx = {
ascending: "tõusev järjestus",
ascendingSort: (e) => `sorditud veeru j\xe4rgi ${e.columnName} t\xf5usvas j\xe4rjestuses`,
collapse: "Ahenda",
@@ -14297,8 +14297,8 @@ Sx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fi-FI.mjs
-var Cx = {};
-Cx = {
+var Tx = {};
+Tx = {
ascending: "nouseva",
ascendingSort: (e) => `lajiteltu sarakkeen ${e.columnName} mukaan nousevassa j\xe4rjestyksess\xe4`,
collapse: "Pienennä",
@@ -14313,8 +14313,8 @@ Cx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/fr-FR.mjs
-var wx = {};
-wx = {
+var Ex = {};
+Ex = {
ascending: "croissant",
ascendingSort: (e) => `tri\xe9 en fonction de la colonne\xa0${e.columnName} par ordre croissant`,
collapse: "Réduire",
@@ -14329,8 +14329,8 @@ wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/he-IL.mjs
-var Tx = {};
-Tx = {
+var Dx = {};
+Dx = {
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 @@ Tx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hr-HR.mjs
-var Ex = {};
-Ex = {
+var Ox = {};
+Ox = {
ascending: "rastući",
ascendingSort: (e) => `razvrstano po stupcima ${e.columnName} rastu\u{107}em redoslijedom`,
collapse: "Sažmi",
@@ -14361,8 +14361,8 @@ Ex = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/hu-HU.mjs
-var Dx = {};
-Dx = {
+var kx = {};
+kx = {
ascending: "növekvő",
ascendingSort: (e) => `rendezve a(z) ${e.columnName} oszlop szerint, n\xf6vekv\u{151} sorrendben`,
collapse: "Összecsukás",
@@ -14377,8 +14377,8 @@ Dx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/it-IT.mjs
-var Ox = {};
-Ox = {
+var Ax = {};
+Ax = {
ascending: "crescente",
ascendingSort: (e) => `in ordine crescente in base alla colonna ${e.columnName}`,
collapse: "Comprimi",
@@ -14393,8 +14393,8 @@ Ox = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ja-JP.mjs
-var kx = {};
-kx = {
+var jx = {};
+jx = {
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 @@ kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ko-KR.mjs
-var Ax = {};
-Ax = {
+var Mx = {};
+Mx = {
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 @@ Ax = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lt-LT.mjs
-var jx = {};
-jx = {
+var Nx = {};
+Nx = {
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 @@ jx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/lv-LV.mjs
-var Mx = {};
-Mx = {
+var Px = {};
+Px = {
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 @@ Mx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nb-NO.mjs
-var Nx = {};
-Nx = {
+var Fx = {};
+Fx = {
ascending: "stigende",
ascendingSort: (e) => `sortert etter kolonne ${e.columnName} i stigende rekkef\xf8lge`,
collapse: "Skjul",
@@ -14473,8 +14473,8 @@ Nx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/nl-NL.mjs
-var Px = {};
-Px = {
+var Ix = {};
+Ix = {
ascending: "oplopend",
ascendingSort: (e) => `gesorteerd in oplopende volgorde in kolom ${e.columnName}`,
collapse: "Samenvouwen",
@@ -14489,8 +14489,8 @@ Px = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pl-PL.mjs
-var Fx = {};
-Fx = {
+var Lx = {};
+Lx = {
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 @@ Fx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-BR.mjs
-var Ix = {};
-Ix = {
+var Rx = {};
+Rx = {
ascending: "crescente",
ascendingSort: (e) => `classificado pela coluna ${e.columnName} em ordem crescente`,
collapse: "Recolher",
@@ -14521,8 +14521,8 @@ Ix = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/pt-PT.mjs
-var Lx = {};
-Lx = {
+var zx = {};
+zx = {
ascending: "ascendente",
ascendingSort: (e) => `Ordenar por coluna ${e.columnName} em ordem ascendente`,
collapse: "Colapsar",
@@ -14537,8 +14537,8 @@ Lx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ro-RO.mjs
-var Rx = {};
-Rx = {
+var Bx = {};
+Bx = {
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 @@ Rx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/ru-RU.mjs
-var zx = {};
-zx = {
+var Vx = {};
+Vx = {
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 @@ zx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sk-SK.mjs
-var Bx = {};
-Bx = {
+var Hx = {};
+Hx = {
ascending: "vzostupne",
ascendingSort: (e) => `zoraden\xe9 zostupne pod\u{13E}a st\u{13A}pca ${e.columnName}`,
collapse: "Zbaliť",
@@ -14585,8 +14585,8 @@ Bx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sl-SI.mjs
-var Vx = {};
-Vx = {
+var Ux = {};
+Ux = {
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 @@ Vx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sr-SP.mjs
-var Hx = {};
-Hx = {
+var Wx = {};
+Wx = {
ascending: "rastući",
ascendingSort: (e) => `sortirano po kolonama ${e.columnName} rastu\u{107}im redosledom`,
collapse: "Skupi",
@@ -14617,8 +14617,8 @@ Hx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/sv-SE.mjs
-var Ux = {};
-Ux = {
+var Gx = {};
+Gx = {
ascending: "stigande",
ascendingSort: (e) => `sorterat p\xe5 kolumn ${e.columnName} i stigande ordning`,
collapse: "Dölj",
@@ -14633,8 +14633,8 @@ Ux = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/tr-TR.mjs
-var Wx = {};
-Wx = {
+var Kx = {};
+Kx = {
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 @@ Wx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/uk-UA.mjs
-var Gx = {};
-Gx = {
+var qx = {};
+qx = {
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 @@ Gx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-CN.mjs
-var Kx = {};
-Kx = {
+var Jx = {};
+Jx = {
ascending: "升序",
ascendingSort: (e) => `\u{6309}\u{5217} ${e.columnName} \u{5347}\u{5E8F}\u{6392}\u{5E8F}`,
collapse: "折叠",
@@ -14681,8 +14681,8 @@ Kx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/intl/table/zh-TW.mjs
-var qx = {};
-qx = {
+var Yx = {};
+Yx = {
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 @@ qx = {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/intlStrings.mjs
-var Jx = {};
-Jx = {
- "ar-AE": mx,
- "bg-BG": hx,
- "cs-CZ": gx,
- "da-DK": _x,
- "de-DE": vx,
- "el-GR": yx,
- "en-US": bx,
- "es-ES": xx,
- "et-EE": Sx,
- "fi-FI": Cx,
- "fr-FR": wx,
- "he-IL": Tx,
- "hr-HR": Ex,
- "hu-HU": Dx,
- "it-IT": Ox,
- "ja-JP": kx,
- "ko-KR": Ax,
- "lt-LT": jx,
- "lv-LV": Mx,
- "nb-NO": Nx,
- "nl-NL": Px,
- "pl-PL": Fx,
- "pt-BR": Ix,
- "pt-PT": Lx,
- "ro-RO": Rx,
- "ru-RU": zx,
- "sk-SK": Bx,
- "sl-SI": Vx,
- "sr-SP": Hx,
- "sv-SE": Ux,
- "tr-TR": Wx,
- "uk-UA": Gx,
- "zh-CN": Kx,
- "zh-TW": qx
+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
};
//#endregion
//#region node_modules/react-aria/dist/private/table/TableKeyboardDelegate.mjs
-var Ite = class extends cx {
+var Pte = class extends ux {
isCell(e) {
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
}
@@ -14744,7 +14744,7 @@ var Ite = class extends cx {
let n = this.collection.getItem(e);
if (!n) return null;
if (n.type === "column") {
- let e = Wv(Uv(n, this.collection));
+ let e = qv(Kv(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 Ite = class extends cx {
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 Uv(n, this.collection)) if (e.type === "column") return e.key;
+ for (let e of Kv(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 = [...Uv(n, this.collection)];
+ let n = this.collection.headerRows[e.level], r = [...Kv(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 Ite = class extends cx {
let t = o.textValue.slice(0, e.length);
if (this.collator.compare(t, e) === 0) return o.key;
}
- for (let r of Uv(o, this.collection)) {
+ for (let r of Kv(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 Ite = class extends cx {
};
//#endregion
//#region node_modules/react-aria/dist/private/table/useTable.mjs
-function Lte(e) {
+function Fte(e) {
return e && e.__esModule ? e.default : e;
}
-function Rte(e, t, n) {
- let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = Qv({
+function Ite(e, t, n) {
+ let { keyboardDelegate: r, isVirtualized: i, layoutDelegate: a, layout: o } = e, s = ty({
usage: "search",
sensitivity: "base"
- }), { direction: c } = cg(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new Ite({
+ }), { direction: c } = lg(), l = t.selectionManager.disabledBehavior, u = (0, I.useMemo)(() => r || new Pte({
collection: t.collection,
disabledKeys: t.disabledKeys,
disabledBehavior: l,
@@ -14841,34 +14841,34 @@ function Rte(e, t, n) {
a,
o
]), d = Hm(e.id);
- ux.set(t, d);
- let { gridProps: f } = Pte({
+ fx.set(t, d);
+ let { gridProps: f } = Mte({
...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 = mg(Lte(Jx), "@react-aria/table"), g = (0, I.useMemo)(() => {
+ let { column: p, direction: m } = t.sortDescriptor || {}, h = hg(Fte(Xx), "@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
- ]), _ = S_(g);
- return h_(() => {
- g && p_(g, "assertive", 500);
+ ]), _ = T_(g);
+ return v_(() => {
+ g && g_(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 Yx(e, t, n) {
- let { node: r, isVirtualized: i, focusMode: a, allowsArrowNavigation: o, shouldSelectOnPressUp: s, onAction: c } = e, { direction: l } = cg(), { keyboardDelegate: u, actions: { onCellAction: d }, keyboardNavigationBehavior: f } = lx.get(t), p = a ?? (f === "tab" ? "cell" : "child"), m = (0, I.useRef)(null), h = () => {
+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 = () => {
if (n.current) {
- let e = s_(n.current);
+ let e = u_(n.current);
if (p === "child") {
if (lp(n.current) && n.current !== sp(Xf(n.current))) return;
- let r = t.selectionManager.childFocusStrategy === "last" ? Xx(e) : e.firstChild();
+ let r = t.selectionManager.childFocusStrategy === "last" ? Qx(e) : e.firstChild();
if (r) {
Fm(r);
return;
@@ -14876,7 +14876,7 @@ function Yx(e, t, n) {
}
(m.current != null && r.key !== m.current || !lp(n.current)) && Fm(n.current);
}
- }, { itemProps: g, isPressed: _ } = Xy({
+ }, { itemProps: g, isPressed: _ } = Qy({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -14890,29 +14890,29 @@ function Yx(e, t, n) {
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 = s_(n.current);
+ let a = u_(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), b_(t, { containingElement: __(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Fm(t), C_(t, { containingElement: b_(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), b_(n.current, { containingElement: __(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? a.firstChild() : Xx(a), t && (Fm(t), b_(t, { containingElement: __(n.current) })));
+ 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) })));
}
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), b_(t, { containingElement: __(n.current) });
+ if (p === "child" && t === n.current && (t = null), e.preventDefault(), e.stopPropagation(), t) Fm(t), C_(t, { containingElement: b_(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), b_(n.current, { containingElement: __(n.current) })) : (a.currentNode = n.current, t = l === "rtl" ? Xx(a) : a.firstChild(), t && (Fm(t), b_(t, { containingElement: __(n.current) })));
+ 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) })));
}
break;
}
@@ -14928,7 +14928,7 @@ function Yx(e, t, n) {
return;
}
if (e.key === "Tab" && f === "tab") {
- let t = s_(n.current, { tabbable: !0 });
+ let t = u_(n.current, { tabbable: !0 });
t.currentNode = r, (e.shiftKey ? t.previousNode() : t.nextNode()) && e.stopPropagation();
}
}
@@ -14957,7 +14957,7 @@ function Yx(e, t, n) {
isPressed: _
};
}
-function Xx(e) {
+function Qx(e) {
let t = null, n = null;
do
n = e.lastChild(), n && (t = n);
@@ -14966,23 +14966,23 @@ function Xx(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableCell.mjs
-function zte(e, t, n) {
- let { gridCellProps: r, isPressed: i } = Yx(e, t, n), a = e.node.column?.key;
- return a != null && t.collection.rowHeaderColumnKeys.has(a) && (r.role = "rowheader", r.id = fx(t, e.node.parentKey, a)), {
+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)), {
gridCellProps: r,
isPressed: i
};
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableColumnHeader.mjs
-function Bte(e) {
+function Rte(e) {
return e && e.__esModule ? e.default : e;
}
-function Vte(e, t, n) {
- let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Yx({
+function zte(e, t, n) {
+ let { node: r } = e, i = r.props.allowsSorting, { gridCellProps: a } = Zx({
focusMode: "child",
...e
- }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = kg({
+ }, t, n), o = r.props.isSelectionCell && t.selectionManager.selectionMode === "single", { pressProps: s, isPressed: c } = Ag({
isDisabled: !i || o,
onPress() {
t.sort(r.key);
@@ -14990,9 +14990,9 @@ function Vte(e, t, n) {
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 = mg(Bte(Jx), "@react-aria/table"), m;
+ let p = hg(Rte(Xx), "@react-aria/table"), m;
i && (m = `${p.format("sortable")}`, d && f && Ip() && (m = `${m}, ${p.format(f)}`));
- let h = S_(m), g = t.collection.size === 0;
+ let h = T_(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 Vte(e, t, n) {
columnHeaderProps: {
...H(l, a, s, h, g ? { tabIndex: -1 } : null),
role: "columnheader",
- id: Fte(t, r.key),
+ id: Nte(t, r.key),
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
"aria-sort": u
},
@@ -15012,14 +15012,14 @@ function Vte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableHeaderRow.mjs
-function Hte(e, t, n) {
+function Bte(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 Ute(e, t, n) {
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: a, onAction: o } = e, { actions: s, shouldSelectOnPressUp: c } = lx.get(t), l = s.onRowAction ? () => s.onRowAction?.(r.key) : o, { itemProps: u, ...d } = Xy({
+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({
selectionManager: t.selectionManager,
key: r.key,
ref: n,
@@ -15040,10 +15040,10 @@ function Ute(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRow.mjs
-function Wte(e) {
+function Hte(e) {
return e && e.__esModule ? e.default : e;
}
-var Zx = {
+var $x = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -15053,21 +15053,21 @@ var Zx = {
rtl: "ArrowRight"
}
};
-function Gte(e, t, n) {
- let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Ute(e, t, n), { direction: s } = cg();
+function Ute(e, t, n) {
+ let { node: r, isVirtualized: i } = e, { rowProps: a, ...o } = Vte(e, t, n), { direction: s } = lg();
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 = mg(Wte(Jx), "@react-aria/table"), u = $h({
+ let c = t.treeColumn != null && (t.expandedKeys === "all" || t.expandedKeys.has(r.key)), l = hg(Hte(Xx), "@react-aria/table"), u = $h({
"aria-label": c ? l.format("collapse") : l.format("expand"),
- "aria-labelledby": px(t, r.key)
+ "aria-labelledby": hx(t, r.key)
}), d = {}, f = {};
if (t.treeColumn != null) {
let e = t.collection.getItem(r.key);
if (e != null) {
- let n = Qx(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 = Qx(t.collection, a);
+ 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);
for (; l && l.type !== "item" && l.prevKey != null;) l = t.collection.getItem(l.prevKey);
d = {
onKeyDown: (n) => {
- n.key === Zx.expand[s] && t.selectionManager.focusedKey === e.key && i && t.expandedKeys !== "all" && !t.expandedKeys.has(e.key) ? (t.toggleKey(e.key), n.stopPropagation()) : n.key === Zx.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 === $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()));
},
"aria-expanded": i ? t.expandedKeys === "all" || t.expandedKeys.has(r.key) : void 0,
"aria-level": e.level + 1,
@@ -15089,41 +15089,41 @@ function Gte(e, t, n) {
return {
rowProps: {
...H(a, d, m),
- "aria-labelledby": px(t, r.key)
+ "aria-labelledby": hx(t, r.key)
},
expandButtonProps: f,
...o
};
}
-function Qx(e, t) {
+function eS(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 Kte() {
+function Wte() {
return { rowGroupProps: { role: "rowgroup" } };
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableRowGroup.mjs
-function $x() {
- return Kte();
+function tS() {
+ return Wte();
}
//#endregion
//#region node_modules/react-aria/dist/private/table/useTableSelectionCheckbox.mjs
-function qte(e) {
+function Gte(e) {
return e && e.__esModule ? e.default : e;
}
-function Jte(e, t) {
- let { key: n } = e, { checkboxProps: r } = nte(e, t);
+function Kte(e, t) {
+ let { key: n } = e, { checkboxProps: r } = ete(e, t);
return { checkboxProps: {
...r,
- "aria-labelledby": `${r.id} ${px(t, n)}`
+ "aria-labelledby": `${r.id} ${hx(t, n)}`
} };
}
-function Yte(e) {
+function qte(e) {
let { isEmpty: t, isSelectAll: n, selectionMode: r } = e.selectionManager;
return { checkboxProps: {
- "aria-label": mg(qte(Jx), "@react-aria/table").format(r === "single" ? "select" : "selectAll"),
+ "aria-label": hg(Gte(Xx), "@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,21 +15132,21 @@ function Yte(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/utils.mjs
-var eS = /* @__PURE__ */ new WeakMap();
-function tS(e, t, n) {
- return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${eS.get(e)}-${n}-${t}`) : "";
+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}`) : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
-function Xte(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 } = Xy({
+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({
selectionManager: o,
key: r,
ref: n,
isDisabled: l,
shouldSelectOnPressUp: a ?? u?.props.href != null,
linkBehavior: "selection"
- }), p = tS(t, r, "tab"), m = tS(t, r, "tabpanel"), { tabIndex: h } = d, g = gg(u?.props, { labelable: !0 });
+ }), p = rS(t, r, "tab"), m = rS(t, r, "tabpanel"), { tabIndex: h } = d, g = _g(u?.props, { labelable: !0 });
delete g.id;
let _ = qp(u?.props), { focusableProps: v } = mh({
...u?.props,
@@ -15168,7 +15168,7 @@ function Xte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
-var Zte = class {
+var Yte = 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 Zte = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
-function Qte(e, t, n) {
- let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = cg(), { collectionProps: l } = Hv({
+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({
ref: n,
selectionManager: o,
- keyboardDelegate: (0, I.useMemo)(() => new Zte(a, c, r, s), [
+ keyboardDelegate: (0, I.useMemo)(() => new Yte(a, c, r, s), [
a,
s,
r,
@@ -15227,7 +15227,7 @@ function Qte(e, t, n) {
scrollRef: n,
linkBehavior: "selection"
}), u = Hm();
- return eS.set(t, u), { tabListProps: {
+ return nS.set(t, u), { tabListProps: {
...H(l, $h({
...e,
id: u
@@ -15239,12 +15239,12 @@ function Qte(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
-function $te(e, t, n) {
- let r = Jy(n) ? void 0 : 0, i = tS(t, e.id ?? t?.selectedKey, "tabpanel");
+function Zte(e, t, n) {
+ let r = Xy(n) ? void 0 : 0, i = rS(t, e.id ?? t?.selectedKey, "tabpanel");
return { tabPanelProps: H($h({
...e,
id: i,
- "aria-labelledby": tS(t, t?.selectedKey, "tab")
+ "aria-labelledby": rS(t, t?.selectedKey, "tab")
}), {
tabIndex: r,
role: "tabpanel",
@@ -15254,7 +15254,7 @@ function $te(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var ene = /* @__PURE__ */ F(((e) => {
+var Qte = /* @__PURE__ */ F(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -15453,10 +15453,10 @@ var ene = /* @__PURE__ */ F(((e) => {
}
};
};
-})), tne = /* @__PURE__ */ F(((e, t) => {
- t.exports = ene();
-})), nne = /* @__PURE__ */ F(((e) => {
- var t = tne(), n = oe(), r = bh();
+})), $te = /* @__PURE__ */ F(((e, t) => {
+ t.exports = Qte();
+})), ene = /* @__PURE__ */ F(((e) => {
+ var t = $te(), n = oe(), r = bh();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -23866,7 +23866,7 @@ var ene = /* @__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);
};
-})), nS = (/* @__PURE__ */ F(((e, t) => {
+})), iS = (/* @__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 ene = /* @__PURE__ */ F(((e) => {
console.error(e);
}
}
- n(), t.exports = nne();
-})))(), rne = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+ n(), t.exports = ene();
+})))(), tne = ({ 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 ene = /* @__PURE__ */ F(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), ine = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), nne = ({ 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 ene = /* @__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" })), rS = ({ 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" })), 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,
@@ -23899,7 +23899,7 @@ var ene = /* @__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" })), iS = ({ 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" })), 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,
@@ -23907,7 +23907,7 @@ var ene = /* @__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" })), aS = ({ 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" })), sS = ({ 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 ene = /* @__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" })), ane = ({ 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" })), rne = ({ 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 ene = /* @__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" })), oS = ({ 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" })), 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,
@@ -23931,7 +23931,7 @@ var ene = /* @__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" })), sS = ({ 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" })), 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,
@@ -23939,7 +23939,7 @@ var ene = /* @__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" })), one = ({ 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" })), ine = ({ 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 ene = /* @__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" })), cS = ({ 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" })), 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,
@@ -23955,7 +23955,7 @@ var ene = /* @__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" })), lS = ({ 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" })), 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,
@@ -23963,7 +23963,7 @@ var ene = /* @__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" })), uS = ({ 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" })), 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,
@@ -23971,7 +23971,7 @@ var ene = /* @__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" })), dS = ({ 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" })), 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,
@@ -23979,7 +23979,7 @@ var ene = /* @__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" })), sne = ({ 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" })), ane = ({ 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 ene = /* @__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" })), 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 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), 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,
@@ -23995,7 +23995,7 @@ var ene = /* @__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" })), pS = ({ 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" })), 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,
@@ -24003,7 +24003,7 @@ var ene = /* @__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" })), cne = ({ 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" })), 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,
@@ -24011,7 +24011,7 @@ var ene = /* @__PURE__ */ F(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), lne = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => I.createElement("svg", {
+}, I.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), _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,
@@ -24019,7 +24019,7 @@ var ene = /* @__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" })), 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 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 ene = /* @__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" })), hS = ({ 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" })), 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,
@@ -24035,7 +24035,7 @@ var ene = /* @__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" })), une = ({ 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" })), 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,
@@ -24043,7 +24043,7 @@ var ene = /* @__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" })), dne = ({ 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" })), 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,
@@ -24051,7 +24051,7 @@ var ene = /* @__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" })), fne = ({ 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" })), SS = ({ 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 ene = /* @__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" })), pne = ({ 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" })), 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,
@@ -24067,7 +24067,7 @@ var ene = /* @__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" })), mne = ({ 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" })), 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,
@@ -24075,7 +24075,7 @@ var ene = /* @__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" })), hne = ({ 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" })), 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,
@@ -24083,7 +24083,7 @@ var ene = /* @__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" })), gS = ({ 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" })), 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,
@@ -24091,7 +24091,7 @@ var ene = /* @__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" })), _S = ({ 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" })), 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,
@@ -24099,7 +24099,7 @@ var ene = /* @__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" })), vS = ({ 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" })), 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,
@@ -24107,7 +24107,7 @@ var ene = /* @__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" })), yS = ({ 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" })), 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,
@@ -24115,7 +24115,7 @@ var ene = /* @__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" })), bS = ({ 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" })), 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,
@@ -24123,7 +24123,7 @@ var ene = /* @__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" })), xS = ({ 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" })), 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,
@@ -24131,7 +24131,7 @@ var ene = /* @__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" })), SS = ({ 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" })), 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,
@@ -24139,7 +24139,7 @@ var ene = /* @__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" })), CS = ({ 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" })), 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,
@@ -24147,7 +24147,7 @@ var ene = /* @__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" })), wS = ({ 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" })), 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,
@@ -24155,7 +24155,7 @@ var ene = /* @__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" })), TS = ({ 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" })), 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,
@@ -24163,7 +24163,7 @@ var ene = /* @__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" })), ES = ({ 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" })), 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,
@@ -24171,100 +24171,100 @@ var ene = /* @__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" })), DS = (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" })), LS = (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;
-}, OS = (e, t) => ({
+}, RS = (e, t) => ({
classGroupId: e,
validator: t
-}), kS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), zS = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), AS = "-", jS = [], MS = "arbitrary..", NS = (e) => {
- let t = IS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), BS = "-", VS = [], HS = "arbitrary..", US = (e) => {
+ let t = KS(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return FS(e);
- let n = e.split(AS);
- return PS(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return GS(e);
+ let n = e.split(BS);
+ return WS(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? DS(i, t) : t : i || jS;
+ return t ? i ? LS(i, t) : t : i || VS;
}
- return n[e] || jS;
+ return n[e] || VS;
}
};
-}, PS = (e, t, n) => {
+}, WS = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = PS(e, t + 1, i);
+ let n = WS(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(AS) : e.slice(t).join(AS), s = a.length;
+ let o = t === 0 ? e.join(BS) : e.slice(t).join(BS), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, FS = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, GS = (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 ? MS + r : void 0;
-})(), IS = (e) => {
+ return r ? HS + r : void 0;
+})(), KS = (e) => {
let { theme: t, classGroups: n } = e;
- return LS(n, t);
-}, LS = (e, t) => {
- let n = kS();
+ return qS(n, t);
+}, qS = (e, t) => {
+ let n = zS();
for (let r in e) {
let i = e[r];
- RS(i, n, r, t);
+ JS(i, n, r, t);
}
return n;
-}, RS = (e, t, n, r) => {
+}, JS = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- zS(i, t, n, r);
+ YS(i, t, n, r);
}
-}, zS = (e, t, n, r) => {
+}, YS = (e, t, n, r) => {
if (typeof e == "string") {
- BS(e, t, n);
+ XS(e, t, n);
return;
}
if (typeof e == "function") {
- VS(e, t, n, r);
+ ZS(e, t, n, r);
return;
}
- HS(e, t, n, r);
-}, BS = (e, t, n) => {
- let r = e === "" ? t : US(t, e);
+ QS(e, t, n, r);
+}, XS = (e, t, n) => {
+ let r = e === "" ? t : $S(t, e);
r.classGroupId = n;
-}, VS = (e, t, n, r) => {
- if (WS(e)) {
- RS(e(r), t, n, r);
+}, ZS = (e, t, n, r) => {
+ if (eC(e)) {
+ JS(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(OS(n, e));
-}, HS = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(RS(n, e));
+}, QS = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- RS(o, US(t, a), n, r);
+ JS(o, $S(t, a), n, r);
}
-}, US = (e, t) => {
- let n = e, r = t.split(AS), i = r.length;
+}, $S = (e, t) => {
+ let n = e, r = t.split(BS), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = kS(), n.nextPart.set(t, i)), n = i;
+ i || (i = zS(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, WS = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, GS = (e) => {
+}, eC = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, tC = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -24282,19 +24282,19 @@ var ene = /* @__PURE__ */ F(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, KS = "!", qS = ":", JS = [], YS = (e, t, n, r, i) => ({
+}, nC = "!", rC = ":", iC = [], aC = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), XS = (e) => {
+}), oC = (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 === qS) {
+ if (o === rC) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -24306,13 +24306,13 @@ var ene = /* @__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(KS) ? (c = s.slice(0, -1), l = !0) : s.startsWith(KS) && (c = s.slice(1), l = !0);
+ s.endsWith(nC) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nC) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return YS(t, l, c, u);
+ return aC(t, l, c, u);
};
if (t) {
- let e = t + qS, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : YS(JS, !1, t, void 0, !0);
+ let e = t + rC, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : aC(iC, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -24322,7 +24322,7 @@ var ene = /* @__PURE__ */ F(((e) => {
});
}
return r;
-}, ZS = (e) => {
+}, sC = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -24334,18 +24334,18 @@ var ene = /* @__PURE__ */ F(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, QS = (e) => ({
- cache: GS(e.cacheSize),
- parseClassName: XS(e),
- sortModifiers: ZS(e),
- postfixLookupClassGroupIds: $S(e),
- ...NS(e)
-}), $S = (e) => {
+}, cC = (e) => ({
+ cache: tC(e.cacheSize),
+ parseClassName: oC(e),
+ sortModifiers: sC(e),
+ postfixLookupClassGroupIds: lC(e),
+ ...US(e)
+}), lC = (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;
-}, eC = /\s+/, tC = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(eC), l = "";
+}, uC = /\s+/, dC = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(uC), 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 ene = /* @__PURE__ */ F(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + KS : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nC : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -24380,34 +24380,34 @@ var ene = /* @__PURE__ */ F(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, nC = (...e) => {
+}, fC = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = rC(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = pC(n)) && (i && (i += " "), i += r);
return i;
-}, rC = (e) => {
+}, pC = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = rC(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = pC(e[r])) && (n && (n += " "), n += t);
return n;
-}, iC = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = QS(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, 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) => {
let t = r(e);
if (t) return t;
- let a = tC(e, n);
+ let a = dC(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(nC(...e));
-}, aC = [], oC = (e) => {
- let t = (t) => t[e] || aC;
+ return a = o, (...e) => a(fC(...e));
+}, hC = [], gC = (e) => {
+ let t = (t) => t[e] || hC;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, sC = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, cC = /^\((?:(\w[\w-]*):)?(.+)\)$/i, lC = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, uC = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, dC = /\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$/, fC = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, pC = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, mC = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, hC = (e) => lC.test(e), gC = (e) => !!e && !Number.isNaN(Number(e)), _C = (e) => !!e && Number.isInteger(Number(e)), vC = (e) => e.endsWith("%") && gC(e.slice(0, -1)), yC = (e) => uC.test(e), bC = () => !0, xC = (e) => dC.test(e) && !fC.test(e), SC = () => !1, CC = (e) => pC.test(e), wC = (e) => mC.test(e), TC = (e) => !U(e) && !W(e), EC = (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)), DC = (e) => HC(e, KC, SC), U = (e) => sC.test(e), OC = (e) => HC(e, qC, xC), kC = (e) => HC(e, JC, gC), AC = (e) => HC(e, XC, bC), jC = (e) => HC(e, YC, SC), MC = (e) => HC(e, WC, SC), NC = (e) => HC(e, GC, wC), PC = (e) => HC(e, ZC, CC), W = (e) => cC.test(e), FC = (e) => UC(e, qC), IC = (e) => UC(e, YC), LC = (e) => UC(e, WC), RC = (e) => UC(e, KC), zC = (e) => UC(e, GC), BC = (e) => UC(e, ZC, !0), VC = (e) => UC(e, XC, !0), HC = (e, t, n) => {
- let r = sC.exec(e);
+}, _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);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, UC = (e, t, n = !1) => {
- let r = cC.exec(e);
+}, $C = (e, t, n = !1) => {
+ let r = vC.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, WC = (e) => e === "position" || e === "percentage", GC = (e) => e === "image" || e === "url", KC = (e) => e === "length" || e === "size" || e === "bg-size", qC = (e) => e === "length", JC = (e) => e === "number", YC = (e) => e === "family-name", XC = (e) => e === "number" || e === "weight", ZC = (e) => e === "shadow", QC = () => {
- let e = oC("color"), t = oC("font"), n = oC("text"), r = oC("font-weight"), i = oC("tracking"), a = oC("leading"), o = oC("breakpoint"), s = oC("container"), c = oC("spacing"), l = oC("radius"), u = oC("shadow"), d = oC("inset-shadow"), f = oC("text-shadow"), p = oC("drop-shadow"), m = oC("blur"), h = oC("perspective"), g = oC("aspect"), _ = oC("ease"), v = oC("animate"), y = () => [
+}, 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 = () => [
"auto",
"avoid",
"all",
@@ -24449,12 +24449,12 @@ var ene = /* @__PURE__ */ F(((e) => {
U,
c
], T = () => [
- hC,
+ TC,
"full",
"auto",
...w()
], E = () => [
- _C,
+ DC,
"none",
"subgrid",
W,
@@ -24463,15 +24463,15 @@ var ene = /* @__PURE__ */ F(((e) => {
"auto",
{ span: [
"full",
- _C,
+ DC,
W,
U
] },
- _C,
+ DC,
W,
U
], O = () => [
- _C,
+ DC,
"auto",
W,
U
@@ -24501,7 +24501,7 @@ var ene = /* @__PURE__ */ F(((e) => {
"center-safe",
"end-safe"
], M = () => ["auto", ...w()], N = () => [
- hC,
+ TC,
"auto",
"full",
"dvw",
@@ -24516,7 +24516,7 @@ var ene = /* @__PURE__ */ F(((e) => {
...w()
], P = () => [
s,
- hC,
+ TC,
"screen",
"full",
"dvw",
@@ -24527,7 +24527,7 @@ var ene = /* @__PURE__ */ F(((e) => {
"fit",
...w()
], ee = () => [
- hC,
+ TC,
"screen",
"full",
"lh",
@@ -24544,8 +24544,8 @@ var ene = /* @__PURE__ */ F(((e) => {
U
], te = () => [
...b(),
- LC,
- MC,
+ qC,
+ HC,
{ position: [W, U] }
], ne = () => ["no-repeat", { repeat: [
"",
@@ -24557,13 +24557,13 @@ var ene = /* @__PURE__ */ F(((e) => {
"auto",
"cover",
"contain",
- RC,
- DC,
+ JC,
+ LC,
{ size: [W, U] }
], ie = () => [
- vC,
- FC,
- OC
+ OC,
+ GC,
+ RC
], ae = () => [
"",
"none",
@@ -24573,9 +24573,9 @@ var ene = /* @__PURE__ */ F(((e) => {
U
], oe = () => [
"",
- gC,
- FC,
- OC
+ EC,
+ GC,
+ RC
], se = () => [
"solid",
"dashed",
@@ -24599,10 +24599,10 @@ var ene = /* @__PURE__ */ F(((e) => {
"color",
"luminosity"
], I = () => [
- gC,
- vC,
- LC,
- MC
+ EC,
+ OC,
+ qC,
+ HC
], L = () => [
"",
"none",
@@ -24611,20 +24611,20 @@ var ene = /* @__PURE__ */ F(((e) => {
U
], le = () => [
"none",
- gC,
+ EC,
W,
U
], ue = () => [
"none",
- gC,
+ EC,
W,
U
], R = () => [
- gC,
+ EC,
W,
U
], z = () => [
- hC,
+ TC,
"full",
...w()
];
@@ -24638,17 +24638,17 @@ var ene = /* @__PURE__ */ F(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [yC],
- breakpoint: [yC],
- color: [bC],
- container: [yC],
- "drop-shadow": [yC],
+ blur: [kC],
+ breakpoint: [kC],
+ color: [AC],
+ container: [kC],
+ "drop-shadow": [kC],
ease: [
"in",
"out",
"in-out"
],
- font: [TC],
+ font: [FC],
"font-weight": [
"thin",
"extralight",
@@ -24660,7 +24660,7 @@ var ene = /* @__PURE__ */ F(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [yC],
+ "inset-shadow": [kC],
leading: [
"none",
"tight",
@@ -24677,11 +24677,11 @@ var ene = /* @__PURE__ */ F(((e) => {
"distant",
"none"
],
- radius: [yC],
- shadow: [yC],
- spacing: ["px", gC],
- text: [yC],
- "text-shadow": [yC],
+ radius: [kC],
+ shadow: [kC],
+ spacing: ["px", EC],
+ text: [kC],
+ "text-shadow": [kC],
tracking: [
"tighter",
"tight",
@@ -24695,7 +24695,7 @@ var ene = /* @__PURE__ */ F(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- hC,
+ TC,
U,
W,
g
@@ -24708,9 +24708,9 @@ var ene = /* @__PURE__ */ F(((e) => {
W,
U
] }],
- "container-named": [EC],
+ "container-named": [IC],
columns: [{ columns: [
- gC,
+ EC,
"auto",
U,
W,
@@ -24810,13 +24810,13 @@ var ene = /* @__PURE__ */ F(((e) => {
"collapse"
],
z: [{ z: [
- _C,
+ DC,
"auto",
W,
U
] }],
basis: [{ basis: [
- hC,
+ TC,
"full",
"auto",
s,
@@ -24834,8 +24834,8 @@ var ene = /* @__PURE__ */ F(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- gC,
- hC,
+ EC,
+ TC,
"auto",
"initial",
"none",
@@ -24843,18 +24843,18 @@ var ene = /* @__PURE__ */ F(((e) => {
] }],
grow: [{ grow: [
"",
- gC,
+ EC,
W,
U
] }],
shrink: [{ shrink: [
"",
- gC,
+ EC,
W,
U
] }],
order: [{ order: [
- _C,
+ DC,
"first",
"last",
"none",
@@ -24966,15 +24966,15 @@ var ene = /* @__PURE__ */ F(((e) => {
"font-size": [{ text: [
"base",
n,
- FC,
- OC
+ GC,
+ RC
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- VC,
- AC
+ ZC,
+ BC
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -24986,12 +24986,12 @@ var ene = /* @__PURE__ */ F(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- vC,
+ OC,
U
] }],
"font-family": [{ font: [
- IC,
- jC,
+ KC,
+ VC,
t
] }],
"font-features": [{ "font-features": [U] }],
@@ -25007,10 +25007,10 @@ var ene = /* @__PURE__ */ F(((e) => {
U
] }],
"line-clamp": [{ "line-clamp": [
- gC,
+ EC,
"none",
W,
- kC
+ zC
] }],
leading: [{ leading: [
"none",
@@ -25048,15 +25048,15 @@ var ene = /* @__PURE__ */ F(((e) => {
],
"text-decoration-style": [{ decoration: [...se(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- gC,
+ EC,
"from-font",
"auto",
W,
- OC
+ RC
] }],
"text-decoration-color": [{ decoration: F() }],
"underline-offset": [{ "underline-offset": [
- gC,
+ EC,
"auto",
W,
U
@@ -25080,7 +25080,7 @@ var ene = /* @__PURE__ */ F(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- _C,
+ DC,
W,
U
] }],
@@ -25158,7 +25158,7 @@ var ene = /* @__PURE__ */ F(((e) => {
"l",
"tl"
] },
- _C,
+ DC,
W,
U
],
@@ -25169,13 +25169,13 @@ var ene = /* @__PURE__ */ F(((e) => {
],
conic: [
"",
- _C,
+ DC,
W,
U
]
},
- zC,
- NC
+ YC,
+ UC
] }],
"bg-color": [{ bg: F() }],
"gradient-from-pos": [{ from: ie() }],
@@ -25242,15 +25242,15 @@ var ene = /* @__PURE__ */ F(((e) => {
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- gC,
+ EC,
W,
U
] }],
"outline-w": [{ outline: [
"",
- gC,
- FC,
- OC
+ EC,
+ GC,
+ RC
] }],
"outline-color": [{ outline: F() }],
shadow: [{ shadow: [
@@ -25258,33 +25258,33 @@ var ene = /* @__PURE__ */ F(((e) => {
"inner",
"none",
u,
- BC,
- PC
+ XC,
+ WC
] }],
"shadow-color": [{ shadow: F() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- BC,
- PC
+ XC,
+ WC
] }],
"inset-shadow-color": [{ "inset-shadow": F() }],
"ring-w": [{ ring: oe() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: F() }],
- "ring-offset-w": [{ "ring-offset": [gC, OC] }],
+ "ring-offset-w": [{ "ring-offset": [EC, RC] }],
"ring-offset-color": [{ "ring-offset": F() }],
"inset-ring-w": [{ "inset-ring": oe() }],
"inset-ring-color": [{ "inset-ring": F() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- BC,
- PC
+ XC,
+ WC
] }],
"text-shadow-color": [{ "text-shadow": F() }],
opacity: [{ opacity: [
- gC,
+ EC,
W,
U
] }],
@@ -25308,7 +25308,7 @@ var ene = /* @__PURE__ */ F(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [gC] }],
+ "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() }],
@@ -25348,7 +25348,7 @@ var ene = /* @__PURE__ */ F(((e) => {
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [gC] }],
+ "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() }],
@@ -25383,12 +25383,12 @@ var ene = /* @__PURE__ */ F(((e) => {
] }],
blur: [{ blur: L() }],
brightness: [{ brightness: [
- gC,
+ EC,
W,
U
] }],
contrast: [{ contrast: [
- gC,
+ EC,
W,
U
] }],
@@ -25396,35 +25396,35 @@ var ene = /* @__PURE__ */ F(((e) => {
"",
"none",
p,
- BC,
- PC
+ XC,
+ WC
] }],
"drop-shadow-color": [{ "drop-shadow": F() }],
grayscale: [{ grayscale: [
"",
- gC,
+ EC,
W,
U
] }],
"hue-rotate": [{ "hue-rotate": [
- gC,
+ EC,
W,
U
] }],
invert: [{ invert: [
"",
- gC,
+ EC,
W,
U
] }],
saturate: [{ saturate: [
- gC,
+ EC,
W,
U
] }],
sepia: [{ sepia: [
"",
- gC,
+ EC,
W,
U
] }],
@@ -25436,45 +25436,45 @@ var ene = /* @__PURE__ */ F(((e) => {
] }],
"backdrop-blur": [{ "backdrop-blur": L() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- gC,
+ EC,
W,
U
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- gC,
+ EC,
W,
U
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- gC,
+ EC,
W,
U
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- gC,
+ EC,
W,
U
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- gC,
+ EC,
W,
U
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- gC,
+ EC,
W,
U
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- gC,
+ EC,
W,
U
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- gC,
+ EC,
W,
U
] }],
@@ -25497,7 +25497,7 @@ var ene = /* @__PURE__ */ F(((e) => {
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- gC,
+ EC,
"initial",
W,
U
@@ -25510,7 +25510,7 @@ var ene = /* @__PURE__ */ F(((e) => {
U
] }],
delay: [{ delay: [
- gC,
+ EC,
W,
U
] }],
@@ -25555,7 +25555,7 @@ var ene = /* @__PURE__ */ F(((e) => {
"translate-z": [{ "translate-z": z() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- _C,
+ DC,
W,
U
] }],
@@ -25699,10 +25699,10 @@ var ene = /* @__PURE__ */ F(((e) => {
] }],
fill: [{ fill: ["none", ...F()] }],
"stroke-w": [{ stroke: [
- gC,
- FC,
- OC,
- kC
+ EC,
+ GC,
+ RC,
+ zC
] }],
stroke: [{ stroke: ["none", ...F()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -25960,16 +25960,16 @@ var ene = /* @__PURE__ */ F(((e) => {
"selection"
]
};
-}, $C = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (ew(e, "cacheSize", t), ew(e, "prefix", n), ew(e, "experimentalParseClassName", r), tw(e.theme, a.theme), tw(e.classGroups, a.classGroups), tw(e.conflictingClassGroups, a.conflictingClassGroups), tw(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ew(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), ew(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), nw(e.theme, i.theme), nw(e.classGroups, i.classGroups), nw(e.conflictingClassGroups, i.conflictingClassGroups), nw(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), rw(e, i, "postfixLookupClassGroups"), rw(e, i, "orderSensitiveModifiers"), e), ew = (e, t, n) => {
+}, 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) => {
n !== void 0 && (e[t] = n);
-}, tw = (e, t) => {
- if (t) for (let n in t) ew(e, n, t[n]);
-}, nw = (e, t) => {
- if (t) for (let n in t) rw(e, t, n);
-}, rw = (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) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, iw = (e, ...t) => typeof e == "function" ? iC(QC, e, ...t) : iC(() => $C(QC(), e), ...t), aw = [
+}, mw = (e, ...t) => typeof e == "function" ? mC(cw, e, ...t) : mC(() => lw(cw(), e), ...t), hw = [
"large-title",
"display-1",
"display-2",
@@ -25983,18 +25983,18 @@ var ene = /* @__PURE__ */ F(((e) => {
"body-2",
"caption-1",
"caption-2"
-], ow = [
+], gw = [
"regular",
"medium",
"semibold",
"bold"
-], sw = iw({ extend: { classGroups: { "font-size": [{ text: aw.flatMap((e) => ow.map((t) => `${e}-${t}`)) }] } } });
-function cw(e) {
+], _w = mw({ extend: { classGroups: { "font-size": [{ text: hw.flatMap((e) => gw.map((t) => `${e}-${t}`)) }] } } });
+function vw(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var lw = cw({
+var yw = vw({
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 lw = cw({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function uw({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function bw({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("span", {
ref: r,
- className: sw(lw.base, lw.variant[e], lw.color[t], n),
+ className: _w(yw.base, yw.variant[e], yw.color[t], n),
...i
});
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var dw = cw({
+var xw = vw({
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, leadi
return /* @__PURE__ */ (0, L.jsxs)("button", {
ref: c,
type: s,
- className: sw(dw.base, dw.size[t], dw.variant[e], n && dw.iconOnlySize[t], o),
+ className: _w(xw.base, xw.size[t], xw.variant[e], n && xw.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: dw.icon[t],
+ className: xw.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: dw.label[t],
+ className: xw.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {
- className: dw.icon[t],
+ className: xw.icon[t],
"aria-hidden": !0
}) : null
]
});
}
-function fw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {
+function Sw({ 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: sw(dw.base, dw.size[t], dw.variant[e], n && dw.iconOnlySize[t], o),
+ className: _w(xw.base, xw.size[t], xw.variant[e], n && xw.iconOnlySize[t], o),
...c,
children: [
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: dw.icon[t],
+ className: xw.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, L.jsx)("span", {
- className: dw.label[t],
+ className: xw.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, L.jsx)(i, {
- className: dw.icon[t],
+ className: xw.icon[t],
"aria-hidden": !0
}) : null
]
@@ -26122,13 +26122,13 @@ function fw({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/api.ts
-var pw = class extends Error {
+var Cw = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(d(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, mw = (e) => {
+}, ww = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -26141,7 +26141,7 @@ var pw = class extends Error {
}
return "";
}, K = (e) => d(e);
-async function hw(e, t) {
+async function Tw(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -26150,7 +26150,7 @@ async function hw(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new pw(mw(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new Cw(ww(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 pw(mw(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new Cw(ww(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/card.tsx
-var gw = "min-w-0", _w = {
+var Ew = "min-w-0", Dw = {
filled: "bg-background-secondary-default",
outlined: "border border-separator-border bg-background-primary-default",
raised: "bg-background-primary-default"
-}, vw = {
+}, Ow = {
default: "rounded-2xl shadow-card",
chart: "rounded-2-5xl",
surface: "rounded-surface",
plain: "rounded-2xl"
-}, yw = {
+}, kw = {
line: "border border-border-button-default",
soft: "border border-separator-border"
-}, bw = {
+}, Aw = {
none: "",
default: "p-5"
-}, xw = "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", Sw = "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 Cw(e = {}) {
+}, 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 = {}) {
let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");
return [
- gw,
- _w[t],
- vw[s],
- bw[n],
- a ? yw[a] : "",
- r ? xw : "",
- i ? Sw : "",
+ Ew,
+ Dw[t],
+ Ow[s],
+ Aw[n],
+ a ? kw[a] : "",
+ r ? jw : "",
+ i ? Mw : "",
o ?? ""
].filter(Boolean).join(" ");
}
//#endregion
//#region src/react/components/empty-state.tsx
-var ww = {
+var Pw = {
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 Tw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
+function Fw({ 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 ${ww[i]}`,
+ className: `flex flex-col items-center gap-2 text-center ${Pw[i]}`,
children: [
a ? /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -26242,7 +26242,7 @@ function Tw({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function Ew({ label: e, inline: t = !1 }) {
+function Iw({ 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 Dw({ children: e }) {
+function Lw({ 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 Dw({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-var Ow = 100, kw = .4;
-function Aw({ 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 * Ow;
+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;
return /* @__PURE__ */ (0, L.jsxs)("svg", {
role: "progressbar",
"aria-label": e,
"aria-valuemin": 0,
"aria-valuemax": n,
"aria-valuenow": t,
- viewBox: `0 0 ${Ow} 1`,
+ viewBox: `0 0 ${Rw} 1`,
preserveAspectRatio: "none",
className: "h-1.5 w-full overflow-hidden rounded-full",
children: [
/* @__PURE__ */ (0, L.jsx)("rect", {
- width: Ow,
+ width: Rw,
height: 1,
className: "fill-background-tertiary-default"
}),
@@ -26341,7 +26341,7 @@ function Aw({ label: e, value: t, max: n = 100, stops: r = [] }) {
}),
r.map((e) => /* @__PURE__ */ (0, L.jsx)("rect", {
x: a(e),
- width: kw,
+ width: one,
height: 1,
className: "fill-background-secondary-default"
}, e))
@@ -26350,7 +26350,7 @@ function Aw({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/settings/use-action.ts
-function jw(e = "") {
+function Bw(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) {
@@ -26388,11 +26388,11 @@ var X = new bt({ defaultOptions: { queries: {
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), Mw = "/api/tasks", Nw = ["tasks"], gne = (e, t) => hw(`${Mw}?${new URLSearchParams({
+} } }), Vw = "/api/tasks", Hw = ["tasks"], sne = (e, t) => Tw(`${Vw}?${new URLSearchParams({
before_finished_at: e.finished_at || "",
before_id: String(e.id)
})}`, t);
-function Pw(...e) {
+function Uw(...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 Pw(...e) {
return n === r ? t.id - e.id : n < r ? 1 : -1;
});
}
-var _ne = 2e3, vne = 1e4, yne = (e) => e?.running.length ? _ne : vne, Fw = (e) => hw(Mw, e);
-async function bne(e) {
+var cne = 2e3, lne = 1e4, une = (e) => e?.running.length ? cne : lne, Ww = (e) => Tw(Vw, e);
+async function dne(e) {
await X.fetchQuery({
- queryKey: Nw,
- queryFn: () => Fw(e)
+ queryKey: Hw,
+ queryFn: () => Ww(e)
});
}
-var Iw = {
+var Gw = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, xne = {
+}, fne = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, Sne = (e) => xne[e] || e, Cne = {
+}, pne = (e) => fne[e] || e, mne = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -26449,7 +26449,7 @@ var Iw = {
source: "来源",
cover_network: "封面连不上图片主机"
};
-function wne(e) {
+function hne(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 wne(e) {
}
return t;
}
-function Tne(e, t) {
+function gne(e, t) {
let n = [], r = /* @__PURE__ */ new Map();
for (let i of e) {
if (!t(i)) {
@@ -26480,19 +26480,19 @@ function Tne(e, t) {
}
return n;
}
-var Ene = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Lw = (e) => e.status === "pending" || e.status === "running";
-function Dne(e) {
+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) {
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 || Bw(e.result_summary) || (Lw(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
+ return [r, e.error || Yw(e.result_summary) || (Kw(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");
}
-function Rw(e) {
+function qw(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 zw(e) {
+function Jw(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -26502,7 +26502,7 @@ function zw(e) {
minute: "2-digit"
});
}
-var One = /* @__PURE__ */ new Set([
+var yne = /* @__PURE__ */ new Set([
"blocked_by",
"status",
"run_id",
@@ -26511,28 +26511,28 @@ var One = /* @__PURE__ */ new Set([
"completed_at",
"finished_at"
]);
-function Bw(e) {
- return Object.entries(e || {}).filter(([e, t]) => !One.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Cne[e] || e} ${t}`).join(" · ");
+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(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var kne = {
+var bne = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Vw({ status: e }) {
- return /* @__PURE__ */ (0, L.jsx)(uw, {
- color: kne[e] ?? "neutral",
- children: Sne(e)
+function Xw({ status: e }) {
+ return /* @__PURE__ */ (0, L.jsx)(bw, {
+ color: bne[e] ?? "neutral",
+ children: pne(e)
});
}
-function Ane({ rows: e }) {
+function xne({ rows: e }) {
return /* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex min-w-0 flex-col",
children: e.map((e) => {
- let t = Dne(e);
+ let t = vne(e);
return /* @__PURE__ */ (0, L.jsxs)("li", {
"data-status": e.status,
"data-followup-key": e.followup_key,
@@ -26542,7 +26542,7 @@ function Ane({ rows: e }) {
className: "min-w-0 break-words text-caption-1-regular text-text-primary",
children: e.task_label
}),
- /* @__PURE__ */ (0, L.jsx)(Vw, { 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 Ane({ rows: e }) {
})
});
}
-function Hw({ run: e, meta: t, children: n, footer: r, followups: i }) {
+function Zw({ 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: Cw({
+ className: Nw({
padding: "none",
bordered: "line",
className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"
@@ -26571,7 +26571,7 @@ function Hw({ 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)(Vw, { 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 Hw({ run: e, meta: t, children: n, footer: r, followups: i }) {
n
]
}),
- i?.length ? /* @__PURE__ */ (0, L.jsx)(Ane, { rows: i }) : null,
+ i?.length ? /* @__PURE__ */ (0, L.jsx)(xne, { 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 Hw({ run: e, meta: t, children: n, footer: r, followups: i }) {
]
});
}
-function jne({ run: e, followups: t }) {
- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Rw(e.elapsed_seconds), o = [Iw[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, L.jsx)(Hw, {
+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, {
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)(Aw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(zw, {
label: i,
value: r,
max: n
@@ -26614,20 +26614,20 @@ function jne({ run: e, followups: t }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Ew, { label: i })
+ }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: i })
});
}
-function Uw({ run: e, followups: t, runs: n }) {
- let r = Bw(e.result_summary), i = Rw(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [
- Iw[e.trigger] || e.trigger,
+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,
`近 ${n.length} 轮`,
- `${zw(a.finished_at)} – ${zw(e.finished_at)}`
+ `${Jw(a.finished_at)} – ${Jw(e.finished_at)}`
] : [
- Iw[e.trigger] || e.trigger,
- zw(e.finished_at),
+ Gw[e.trigger] || e.trigger,
+ Jw(e.finished_at),
i && `用时 ${i}`
]).filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, L.jsx)(Hw, {
+ return /* @__PURE__ */ (0, L.jsx)(Zw, {
run: e,
meta: o,
footer: e.error,
@@ -26638,7 +26638,7 @@ function Uw({ run: e, followups: t, runs: n }) {
}) : null
});
}
-function Ww({ title: e, children: t }) {
+function $w({ title: e, children: t }) {
let n = (0, I.useId)();
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-labelledby": n,
@@ -26650,41 +26650,41 @@ function Ww({ title: e, children: t }) {
}), t]
});
}
-function Gw({ live: e = !1, children: t }) {
+function eT({ 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 Mne(e) {
+function Cne(e) {
let t = Nt({
- queryKey: Nw,
- queryFn: ({ signal: e }) => Fw(e),
- refetchInterval: (e) => yne(e.state.data)
+ queryKey: Hw,
+ queryFn: ({ signal: e }) => Ww(e),
+ refetchInterval: (e) => une(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(Pw(i, c)));
+ r !== c && (l(r), i.length && c && a(Uw(i, c)));
let u = Pt({
- mutationFn: ({ oldest: e }) => gne(e),
+ mutationFn: ({ oldest: e }) => sne(e),
onSuccess: (e, { shown: t }) => {
- a((n) => Pw(n, t, e.finished || [])), s(!!e.finished_has_more);
+ a((n) => Uw(n, t, e.finished || [])), s(!!e.finished_has_more);
}
}), d = t.error ? K(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: d || "读取任务中心失败"
}) });
- let f = Pw(n.finished || [], i), p = [
+ let f = Uw(n.finished || [], i), p = [
...n.running || [],
...n.skipped || [],
...f
- ], m = wne(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 = 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 = () => {
!u.isPending && v && u.mutate({
oldest: v,
shown: f
});
- }, x = _.filter((e) => m.get(e.id)?.some(Lw)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Tne(w, (e) => Ene(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;
- return /* @__PURE__ */ (0, L.jsxs)(Dw, { children: [
+ }, 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: [
d ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: d
@@ -26693,20 +26693,20 @@ function Mne(e) {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- E ? /* @__PURE__ */ (0, L.jsx)(Tw, {
+ E ? /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: hS,
+ icon: yS,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(Ww, {
+ /* @__PURE__ */ (0, L.jsx)($w, {
title: "正在进行",
- children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(Gw, {
+ children: S.length || x.length ? /* @__PURE__ */ (0, L.jsxs)(eT, {
live: !0,
- children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(jne, {
+ children: [S.map((e) => /* @__PURE__ */ (0, L.jsx)(Sne, {
run: e,
followups: m.get(e.id)
- }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(Uw, {
+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, L.jsx)(Qw, {
run: e,
followups: m.get(e.id)
}, e.id))]
@@ -26715,17 +26715,17 @@ function Mne(e) {
children: "没有任务在跑。"
})
}),
- C.length ? /* @__PURE__ */ (0, L.jsx)(Ww, {
+ C.length ? /* @__PURE__ */ (0, L.jsx)($w, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, L.jsx)(Gw, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(Uw, {
+ children: /* @__PURE__ */ (0, L.jsx)(eT, { children: C.map((e) => /* @__PURE__ */ (0, L.jsx)(Qw, {
run: e,
followups: m.get(e.id)
}, e.id)) })
}) : null,
- w.length || y ? /* @__PURE__ */ (0, L.jsxs)(Ww, {
+ w.length || y ? /* @__PURE__ */ (0, L.jsxs)($w, {
title: "最近完成",
children: [
- w.length ? /* @__PURE__ */ (0, L.jsx)(Gw, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(Uw, {
+ w.length ? /* @__PURE__ */ (0, L.jsx)(eT, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, L.jsx)(Qw, {
run: e,
runs: t,
followups: m.get(e.id)
@@ -26737,7 +26737,7 @@ function Mne(e) {
y ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: rS,
+ leadingIcon: aS,
className: "self-start",
...Y(u.isPending),
onClick: b,
@@ -26750,56 +26750,56 @@ function Mne(e) {
}
//#endregion
//#region src/jav-artwork.ts
-function Nne(e) {
+function wne(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Kw(e, t) {
- return e.is_jav && e.code && e.has_cover && (Nne(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+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 qw(e, t) {
+function nT(e, t) {
let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));
return t && n.set("exclude_vertical", "1"), n.toString();
}
-var Pne = (e, t) => [
+var Tne = (e, t) => [
"catalog-grid",
"catalog",
e,
t
-], Fne = (e, t) => [
+], Ene = (e, t) => [
"catalog-grid",
"entity",
e,
t
];
-async function Ine(e, t, n, r, i) {
+async function Dne(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 hw(`/api/items?${a}`, i), s = {
+ let o = await Tw(`/api/items?${a}`, i), s = {
...o,
items: o.items || [],
offset: t
};
- return !t && !s.items.length && !r && (s.libraryEmpty = (await hw("/api/items?limit=1&thumb=0", i)).total === 0), s;
+ return !t && !s.items.length && !r && (s.libraryEmpty = (await Tw("/api/items?limit=1&thumb=0", i)).total === 0), s;
}
-var Lne = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Rne = (e, t) => {
+var One = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, kne = (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 Jw(e) {
- let t = qw(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
+function rT(e) {
+ let t = nT(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";
return {
- queryKey: Pne(t, e.revision || 0),
+ queryKey: Tne(t, e.revision || 0),
queryFn: async ({ pageParam: i, signal: a }) => {
- let o = await Ine(t, i, n, r, a);
+ let o = await Dne(t, i, n, r, a);
return e.cache(o.items), o;
},
initialPageParam: 0,
- getNextPageParam: Lne(n)
+ getNextPageParam: One(n)
};
}
-function zne(e) {
+function Ane(e) {
return {
- queryKey: Fne(e.entityKey || "", e.revision || 0),
+ queryKey: Ene(e.entityKey || "", e.revision || 0),
queryFn: async ({ pageParam: t, signal: n }) => {
if (!e.fetchPage) return {
items: [],
@@ -26814,12 +26814,12 @@ function zne(e) {
};
},
initialPageParam: 0,
- getNextPageParam: Rne
+ getNextPageParam: kne
};
}
-async function Bne(e, t) {
+async function jne(e, t) {
if (e.mode !== "catalog") return;
- let n = Jw(e);
+ let n = rT(e);
await X.fetchInfiniteQuery({
...n,
queryFn: ({ pageParam: e }) => n.queryFn({
@@ -26828,7 +26828,7 @@ async function Bne(e, t) {
})
});
}
-function Vne(e, t, n) {
+function Mne(e, t, n) {
return n ? e.filter((e) => {
let n = e.part_group?.key;
if (n) {
@@ -26843,28 +26843,28 @@ function Vne(e, t, n) {
return !0;
}) : [...e];
}
-var Yw = (e, t) => !!e && !!Kw(e, t);
-function Hne(e, t) {
+var iT = (e, t) => !!e && !!tT(e, t);
+function Nne(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 Une(e, t) {
- let n = (e) => Yw(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) => Yw(e, t)) || e[e.length - 1];
+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 Wne(e, { collapse: t, mix: n, javImage: r }) {
+function Fne(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 = Vne(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({
+ let e = Mne(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 = Une(e, r);
+ let t = Pne(e, r);
t && l.splice(7, 0, {
kind: "mix",
seed: t
@@ -26877,16 +26877,16 @@ function Wne(e, { collapse: t, mix: n, javImage: r }) {
pageStarts: s
};
}
-function Gne(e, t, n) {
+function Ine(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 Kne(e, t) {
+function Lne(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 qne(e, t) {
+function Rne(e, t) {
let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;
for (let t of n) r.push({
start: i,
@@ -26901,7 +26901,7 @@ function qne(e, t) {
}
//#endregion
//#region src/react/components/grid-reveal.tsx
-function Xw(e, t) {
+function aT(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);
@@ -26927,7 +26927,7 @@ function Xw(e, t) {
fading: n === "fade"
};
}
-function Zw({ message: e, onRetry: t }) {
+function oT({ message: e, onRetry: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-error": "",
onClick: (e) => {
@@ -26941,21 +26941,21 @@ function Zw({ message: e, onRetry: t }) {
}
//#endregion
//#region src/react/catalog-grid/artwork.ts
-var Qw = {
+var sT = {
kind: "",
html: ""
};
-function $w(e, t, n, i, a) {
- let o = Kw(e, i);
- if (!o) return Qw;
+function cT(e, t, n, i, a) {
+ let o = tT(e, i);
+ if (!o) return sT;
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 eT(e, t, n, i, a) {
- if (e.is_jav) return $w(e, t, n, i, a);
+function lT(e, t, n, i, a) {
+ if (e.is_jav) return cT(e, t, n, i, a);
let o = n ? "eager" : "lazy";
return e.follow_thumb_url ? {
kind: "thumb",
@@ -26963,11 +26963,11 @@ function eT(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}">`
- } : Qw;
+ } : sT;
}
//#endregion
//#region src/react/components/art-slot.tsx
-function tT({ artwork: e, identity: t = e.html, relayout: n }) {
+function uT({ artwork: e, identity: t = e.html, relayout: n }) {
let [r, i] = (0, I.useState)({
identity: t,
artwork: e
@@ -26987,25 +26987,25 @@ function tT({ artwork: e, identity: t = e.html, relayout: n }) {
}
//#endregion
//#region src/react/components/media-card.tsx
-var nT = .75, Jne = 9 / 16;
-function rT({ name: e }) {
+var dT = .75, zne = 9 / 16;
+function fT({ 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 Yne = {
+var Bne = {
image: "图片",
audio: "音频",
archive: "压缩包",
other: "其它文件"
-}, Xne = (e) => e.is_jav ? "女优" : "艺人";
-function Zne(e, t, n) {
- return t === "short" || n.portrait ? Jne : n.active && e.is_jav && n.size === "big" ? nT : 16 / 9;
+}, 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;
}
-function Qne(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 = Xne(e);
+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);
return {
avatar: c ? /* @__PURE__ */ (0, L.jsx)("div", {
"data-media-avatars": "",
@@ -27051,7 +27051,7 @@ function Qne(e, t) {
})
};
}
-function $ne() {
+function Wne() {
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-media-preview": "",
@@ -27070,7 +27070,7 @@ function $ne() {
})]
});
}
-function ere({ item: e, actions: t }) {
+function Gne({ 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 +27088,15 @@ function ere({ item: e, actions: t }) {
},
"aria-busy": i || void 0,
"aria-disabled": i || void 0,
- children: /* @__PURE__ */ (0, L.jsx)(rT, { name: o ? "check" : "bookmark-plus" })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: o ? "check" : "bookmark-plus" })
})
});
}
-function iT(e, t) {
+function pT(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 tre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekSeconds: s, helpers: c, actions: l, onOpen: u }) {
+function Kne({ 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 +27108,7 @@ function tre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
let 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 = eT(e, _, !1, n.javImage, c.coverHtml), y = _ === "small" ? v.html : eT(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 } = Qne(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 = 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 = [
e.feedback === "dislike" && "dislike",
e.feedback === "seen" && "seen",
e.disposal === "trash" && "dispose",
@@ -27142,9 +27142,9 @@ function tre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
u(e, r);
}, A = /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-pic": "",
- style: { "--card-ratio": String(Zne(e, t, n)) },
+ style: { "--card-ratio": String(Hne(e, t, n)) },
children: [
- v.html ? /* @__PURE__ */ (0, L.jsx)(tT, {
+ v.html ? /* @__PURE__ */ (0, L.jsx)(uT, {
artwork: v,
identity: y,
relayout: (e) => c.relayoutArt(e, _)
@@ -27158,11 +27158,11 @@ function tre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(rT, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "check" })
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, L.jsx)(rT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
}),
m ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-group": "",
@@ -27189,8 +27189,8 @@ function tre({ 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)($ne, {}),
- /* @__PURE__ */ (0, L.jsx)(ere, {
+ /* @__PURE__ */ (0, L.jsx)(Wne, {}),
+ /* @__PURE__ */ (0, L.jsx)(Gne, {
item: e,
actions: l
}),
@@ -27200,27 +27200,27 @@ function tre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), iT(d.current, -s);
+ e.stopPropagation(), pT(d.current, -s);
},
title: `后退 ${s} 秒`,
"aria-label": `后退 ${s} 秒`,
- children: /* @__PURE__ */ (0, L.jsx)(rT, { name: "rotate-ccw" })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "rotate-ccw" })
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
onClick: (e) => {
- e.stopPropagation(), iT(d.current, s);
+ e.stopPropagation(), pT(d.current, s);
},
title: `前进 ${s} 秒`,
"aria-label": `前进 ${s} 秒`,
- children: /* @__PURE__ */ (0, L.jsx)(rT, { name: "rotate-cw" })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "rotate-cw" })
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-open": "",
title: "打开详情",
"aria-label": "打开详情",
- children: /* @__PURE__ */ (0, L.jsx)(rT, { name: "expand" })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "expand" })
})
]
})
@@ -27296,8 +27296,8 @@ function tre({ item: e, variant: t, layout: n, selected: r, selectMode: o, seekS
]
});
}
-function nre({ 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") ? "网址快捷方式" : Yne[e.medium || ""] || "其它文件", m = d ? "pics" : p === "网址快捷方式" ? "globe" : "hard-drive", h = e.disposal === "trash" ? "restore" : "dispose", g = h === "restore" ? "还原" : "移入回收站", _ = (t) => {
+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) => {
t.preventDefault(), t.stopPropagation(), !l && (u(!0), o.resourceOperation(e, h).catch(() => {}).finally(() => u(!1)));
}, v = (t) => {
if (c.current) {
@@ -27323,7 +27323,7 @@ function nre({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, L.jsx)(rT, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]
+ children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: m }), /* @__PURE__ */ (0, L.jsx)("b", { children: p })]
}),
d ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "thumb",
@@ -27335,11 +27335,11 @@ function nre({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(rT, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: "check" })
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-trash-mark": "",
- children: [/* @__PURE__ */ (0, L.jsx)(rT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(fT, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("b", { children: "回收站" })]
}),
/* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
@@ -27349,7 +27349,7 @@ function nre({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
onClick: _,
"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)(rT, { 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: 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 })] })
})
]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -27358,7 +27358,7 @@ function nre({ 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)(rT, { name: m })
+ children: /* @__PURE__ */ (0, L.jsx)(fT, { name: m })
}), /* @__PURE__ */ (0, L.jsxs)("div", {
"data-media-text": "",
children: [/* @__PURE__ */ (0, L.jsx)("span", {
@@ -27387,14 +27387,14 @@ function nre({ item: e, selected: t, selectMode: n, helpers: i, actions: o, onOp
})]
});
}
-function rre(e) {
- return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(nre, { ...e }) : /* @__PURE__ */ (0, L.jsx)(tre, { ...e });
+function Jne(e) {
+ return e.variant === "resource" ? /* @__PURE__ */ (0, L.jsx)(qne, { ...e }) : /* @__PURE__ */ (0, L.jsx)(Kne, { ...e });
}
-var aT = (0, I.memo)(rre), ire = { "text-aa": 1.435 }, oT = /* @__PURE__ */ new Map();
-function sT(e) {
- let t = oT.get(e);
+var mT = (0, I.memo)(Jne), Yne = { "text-aa": 1.435 }, hT = /* @__PURE__ */ new Map();
+function gT(e) {
+ let t = hT.get(e);
if (t) return t;
- let n = ire[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, L.jsx)("svg", {
+ let n = Yne[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 +27408,18 @@ function sT(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})`, oT.set(e, r), r;
+ return r.displayName = `SpriteGlyph(${e})`, hT.set(e, r), r;
}
//#endregion
//#region src/react/components/use-stack-flip.ts
-var are = 1100, ore = 340, sre = 5e3;
-function cre(e, t, n) {
+var Xne = 1100, Zne = 340, Qne = 5e3;
+function $ne(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, sre);
+ }, s = () => o(!1), c = setTimeout(s, Qne);
t.cancels.add(s), i.onerror = s, i.onload = () => {
if (!i.naturalWidth) {
o(!1);
@@ -27429,7 +27429,7 @@ function cre(e, t, n) {
}, i.src = e;
});
}
-function cT({ load: e, canFlip: t, referrerPolicy: n }) {
+function _T({ 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 +27471,11 @@ function cT({ load: e, canFlip: t, referrerPolicy: n }) {
return;
}
if (!r() || !u.current.canFlip() || a.length < 2) return;
- let s = await Promise.all(a.map((t) => cre(t, e, n)));
+ let s = await Promise.all(a.map((t) => $ne(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, are);
+ p(), e.cycle = setInterval(p, Xne);
}));
};
return (0, I.useEffect)(() => d, [d]), {
@@ -27484,7 +27484,7 @@ function cT({ 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(ore, () => {
+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Zne, () => {
e.armed = null, m();
});
},
@@ -27495,8 +27495,8 @@ function cT({ load: e, canFlip: t, referrerPolicy: n }) {
}
//#endregion
//#region src/react/components/mix-card.tsx
-var lT = sT("play");
-function lre({ src: e }) {
+var vT = gT("play");
+function ere({ src: e }) {
let [t, n] = (0, I.useState)(!1);
return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {
"data-mix-poster": "",
@@ -27507,8 +27507,8 @@ function lre({ src: e }) {
className: "absolute inset-0 block size-full object-contain"
});
}
-var uT = "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 ure({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
+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 }) {
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 +27516,18 @@ function ure({ faces: e, fallback: t, faceAvatar: n, onOpenEntity: r }) {
title: `打开资料页:${e.name}`,
"aria-label": `打开资料页:${e.name}`,
onClick: () => r(e.kind, e.name),
- className: `${uT} cursor-pointer outline-none`,
+ className: `${yT} cursor-pointer outline-none`,
dangerouslySetInnerHTML: { __html: n(e) }
}, `${e.kind}:${e.id}`))
}) : /* @__PURE__ */ (0, L.jsx)("span", {
"data-mix-initial": "",
"aria-hidden": !0,
- className: `${uT} mt-0.5`,
+ className: `${yT} mt-0.5`,
children: t
});
}
-function dT({ 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 = cT({
+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({
load: i,
canFlip: a
}), S = (0, I.useRef)(x.onPointerLeave);
@@ -27554,11 +27554,11 @@ function dT({ 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)(tT, {
+ p?.html ? /* @__PURE__ */ (0, L.jsx)(uT, {
artwork: p,
identity: m,
relayout: h
- }) : r ? /* @__PURE__ */ (0, L.jsx)(lre, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
+ }) : r ? /* @__PURE__ */ (0, L.jsx)(ere, { src: r }, r) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",
children: "无预览"
}),
@@ -27588,7 +27588,7 @@ function dT({ 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)(lT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(vT, {
"aria-hidden": !0,
className: "size-3.75"
}), _ ?? `${n} 个视频`]
@@ -27601,8 +27601,8 @@ function dT({ 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)(lT, {})
- }) : /* @__PURE__ */ (0, L.jsx)(ure, {
+ children: /* @__PURE__ */ (0, L.jsx)(vT, {})
+ }) : /* @__PURE__ */ (0, L.jsx)(tre, {
faces: o,
fallback: e.slice(0, 1),
faceAvatar: s,
@@ -27627,21 +27627,21 @@ function dT({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip:
}
//#endregion
//#region src/react/catalog-grid/catalog-grid-page.tsx
-var fT = "";
-function pT(e) {
- if (e.mode === "items") return /* @__PURE__ */ (0, L.jsx)(fre, { ...e });
- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${qw(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;
- return /* @__PURE__ */ (0, L.jsx)(pre, { ...e }, t);
+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);
}
-function dre({ name: e }) {
+function nre({ 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 fre(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)(aT, {
+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, {
item: i,
variant: r,
layout: e.layout,
@@ -27661,8 +27661,8 @@ function fre(e) {
children: i
});
}
-function pre(e) {
- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? zne(e) : Jw(e), s = i && e.initial ? {
+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 ? {
pages: [{
...e.initial,
items: e.initial.items || [],
@@ -27682,7 +27682,7 @@ function pre(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)(() => Wne(c.data?.pages || [], {
+ let { tiles: u, pageStarts: f } = (0, I.useMemo)(() => Fne(c.data?.pages || [], {
collapse: e.groupCollapse !== !1,
mix: !!e.mix && !a,
javImage: r.javImage
@@ -27692,14 +27692,14 @@ function pre(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 = Xw(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = mre(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 = aT(c.isPending, e.skeletonHtml), g = (0, I.useRef)(null), _ = are(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}`;
- fT && (t.dataset.popCount = fT), fT = n, w(t, n);
+ xT && (t.dataset.popCount = xT), xT = n, w(t, n);
}, [
c.data,
m,
@@ -27708,12 +27708,12 @@ function pre(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)(gre, {
+ }, [c.fetchNextPage]), S = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, L.jsx)(sre, {
seed: i.seed,
layout: r,
helpers: t,
actions: n
- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(aT, {
+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, L.jsx)(mT, {
item: i.item,
variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",
layout: r,
@@ -27730,7 +27730,7 @@ function pre(e) {
"data-grid-reveal": h.fading ? "" : void 0,
children: [h.layer, (() => {
if (c.isPending) return null;
- if (!c.data) return /* @__PURE__ */ (0, L.jsx)(Zw, {
+ if (!c.data) return /* @__PURE__ */ (0, L.jsx)(oT, {
message: d(c.error),
onRetry: () => void c.refetch()
});
@@ -27747,15 +27747,15 @@ function pre(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: qne(u, _).map((t) => /* @__PURE__ */ (0, L.jsxs)(I.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
+ children: Rne(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)(hre, {
+ }), t.strip ? /* @__PURE__ */ (0, L.jsx)(ore, {
cut: t.strip,
props: e,
onOpen: b
}) : null] }, t.start))
- }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(mT, {
+ }), c.hasNextPage ? /* @__PURE__ */ (0, L.jsx)(CT, {
entity: i,
load: x,
enabled: () => e.canLoadMore?.() !== !1
@@ -27763,7 +27763,7 @@ function pre(e) {
})()]
});
}
-function mT({ entity: e, load: t, enabled: n, children: r }) {
+function CT({ 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: ""
@@ -27824,12 +27824,12 @@ function mT({ entity: e, load: t, enabled: n, children: r }) {
...p,
onClick: () => void u(!0),
dangerouslySetInnerHTML: { __html: b("继续载入中…") }
- }), s.error ? /* @__PURE__ */ (0, L.jsx)(Zw, {
+ }), s.error ? /* @__PURE__ */ (0, L.jsx)(oT, {
message: s.error,
onRetry: () => void u(!0)
}) : null] });
}
-function mre(e, t, n, r, i) {
+function are(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 +27838,7 @@ function mre(e, t, n, r, i) {
let r = new AbortController();
d.current.push(r);
let i = n - 1;
- hw(`/api/items?${Kne(e.filters || {}, l.current)}`, r.signal).then((t) => {
+ Tw(`/api/items?${Lne(e.filters || {}, l.current)}`, r.signal).then((t) => {
let n = t.items || [];
if (!n.length) {
l.current = 0;
@@ -27854,7 +27854,7 @@ function mre(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 = Gne(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 = Ine(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 +27864,7 @@ function mre(e, t, n, r, i) {
}]);
}, [s]), a;
}
-function hre({ cut: e, props: t, onOpen: n }) {
+function ore({ 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 +27880,12 @@ function hre({ cut: e, props: t, onOpen: n }) {
type: "button",
"data-shorts-enter": "",
onClick: () => t.actions.openShorts(),
- children: [/* @__PURE__ */ (0, L.jsx)(dre, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "进入沉浸模式" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(nre, { 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)(aT, {
+ children: e.items.map((e) => /* @__PURE__ */ (0, L.jsx)(mT, {
item: e,
variant: "short",
layout: t.layout,
@@ -27899,9 +27899,9 @@ function hre({ cut: e, props: t, onOpen: n }) {
})]
});
}
-function hT(e, t, n, r) {
+function wT(e, t, n, r) {
let i = t.active && !!e.is_jav;
- return e.is_jav ? $w(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
+ return e.is_jav ? cT(e, i ? t.size : "small", n, t.javImage, r.coverHtml) : !e.has_thumb && !e.has_local_poster ? {
kind: "",
html: ""
} : {
@@ -27909,18 +27909,18 @@ function hT(e, t, n, r) {
html: `<img class="poster" src="/poster?id=${e.id}&c=4" alt="" loading="${n ? "eager" : "lazy"}">`
};
}
-function gre({ seed: e, layout: t, helpers: n, actions: r }) {
+function sre({ 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 = Hne(e, n.tagLabel), s = (0, I.useCallback)(async () => {
- let t = a.current, o = [e, ...await r.mixRelated(e.id)].filter((e) => Yw(e, t.javImage)).slice(0, 9);
- return i.current = new Map(o.map((e) => [String(e.id), hT(e, t, !0, n).html])), o.map((e) => String(e.id));
+ 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));
}, [
e,
r,
n
- ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = hT(e, t, !1, n);
- return /* @__PURE__ */ (0, L.jsx)(dT, {
+ ]), c = t.active && !!e.is_jav, l = c ? t.size : "small", u = wT(e, t, !1, n);
+ return /* @__PURE__ */ (0, L.jsx)(bT, {
"data-mix-seed": String(e.id),
name: `Mix · ${o}`,
caption: `${n.displayName(e, e.name || "")}及相似作品`,
@@ -27930,12 +27930,12 @@ function gre({ seed: e, layout: t, helpers: n, actions: r }) {
wholeCard: !0,
poster: null,
artwork: u,
- artworkIdentity: l === "small" ? u.html : hT(e, {
+ artworkIdentity: l === "small" ? u.html : wT(e, {
...t,
size: "small"
}, !1, n).html,
relayoutArt: (e) => n.relayoutArt(e, l),
- ratio: c && t.size === "big" ? nT : 16 / 9,
+ ratio: c && t.size === "big" ? dT : 16 / 9,
flipImages: s,
faceHtml: (e) => i.current.get(e) || "",
canFlip: r.canFlip,
@@ -27948,12 +27948,12 @@ function gre({ seed: e, layout: t, helpers: n, actions: r }) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var gT = Symbol("default");
-function _T({ values: e, children: t }) {
+var TT = Symbol("default");
+function ET({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ I.createElement(n.Provider, { value: r }, t);
return t;
}
-function vT(e) {
+function DT(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 +27987,11 @@ function vT(e) {
c
]);
}
-function yT(e, t) {
+function OT(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 || gT;
+ let e = t || TT;
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 +28000,8 @@ function yT(e, t) {
}
return n;
}
-function bT(e, t, n) {
- let { ref: r, ...i } = yT(n, e.slot) || {}, a = uh((0, I.useMemo)(() => Gm(t, r), [t, r])), o = H(i, e);
+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);
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,7 +28019,7 @@ function bT(e, t, n) {
...e.style
}), [o, a];
}
-function xT(e = !0) {
+function AT(e = !0) {
let [t, n] = (0, I.useState)(e), r = (0, I.useRef)(!1), i = (0, I.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -28027,12 +28027,12 @@ function xT(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function ST(e) {
+function jT(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function _re(e, t, 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]);
let s = {
@@ -28041,19 +28041,19 @@ function _re(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ I.createElement(e, s);
}
-var CT = {}, wT = new Proxy({}, { get(e, t) {
+var MT = {}, NT = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = CT[t];
- return n || (n = /*#__PURE__*/ (0, I.forwardRef)(_re.bind(null, t)), CT[t] = n), n;
-} }), TT = /*#__PURE__*/ (0, I.createContext)(null), ET = /*#__PURE__*/ (0, I.createContext)(null), DT = /*#__PURE__*/ (0, I.createContext)(null), OT = {
+ 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 = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return kT(e, null, t);
+ return RT(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return kT(e, t, n);
+ return RT(e, t, n);
}
};
-function kT(e, t, n) {
+function RT(e, t, n) {
return Uf({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -28064,11 +28064,11 @@ function kT(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, vre(e, t, n));
+ }), r, lre(e, t, n));
}
});
}
-function vre(e, t, n) {
+function lre(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 +28087,25 @@ function vre(e, t, n) {
}
return s;
}
-var AT = /*#__PURE__*/ (0, I.createContext)(OT);
-function jT(e) {
+var zT = /*#__PURE__*/ (0, I.createContext)(LT);
+function BT(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 MT = /*#__PURE__*/ (0, I.createContext)({}), yre = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, MT);
- let { elementType: n = "label", ...r } = e, i = wT[n];
+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];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), bre = /*#__PURE__*/ (0, I.createContext)(null), NT = /*#__PURE__*/ (0, I.createContext)({}), PT = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, NT);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Fg(e, t);
- i = Sre(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = oy(e), { hoverProps: l, isHovered: u } = uy({
+}), 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({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -28115,7 +28115,7 @@ var MT = /*#__PURE__*/ (0, I.createContext)({}), yre = /*#__PURE__*/ _h(function
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = vT({
+ }, f = DT({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -28124,15 +28124,15 @@ var MT = /*#__PURE__*/ (0, I.createContext)({}), yre = /*#__PURE__*/ _h(function
let g = (0, I.useRef)(r);
(0, I.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && p_(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && g_(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = gg(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ I.createElement(wT.button, {
+ let _ = _g(e, { global: !0 });
+ return delete _.onClick, /*#__PURE__*/ I.createElement(NT.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -28146,62 +28146,62 @@ var MT = /*#__PURE__*/ (0, I.createContext)({}), yre = /*#__PURE__*/ _h(function
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ I.createElement(bre.Provider, { value: { id: m } }, f.children));
-}), xre = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Sre(e, t) {
+ }, /*#__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) {
if (t) {
- for (let t in e) t.startsWith("on") && !xre.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !fre.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 FT = /*#__PURE__*/ (0, I.createContext)({}), IT = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, FT);
- let { children: n, level: r = 3, className: i, ...a } = e, o = wT[`h${r}`];
+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}`];
return /*#__PURE__*/ I.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), LT = /*#__PURE__*/ (0, I.createContext)({}), Cre = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, LT);
- let { elementType: n = "span", ...r } = e, i = wT[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];
return /*#__PURE__*/ I.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), RT = /*#__PURE__*/ (0, I.createContext)(null), zT = /*#__PURE__*/ (0, I.createContext)(null), BT = /*#__PURE__*/ (0, I.createContext)(null), VT = /*#__PURE__*/ (0, I.createContext)(null), wre = /*#__PURE__*/ (0, I.createContext)(null), HT = /*#__PURE__*/ (0, I.createContext)(null);
-function Tre(e, t) {
- let { validationBehavior: n } = yT(zT) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useContext)(wre), a = uh((0, I.useMemo)(() => Gm(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...ST(e),
+}), 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),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? jee(o, i, a) : F_(o, B_(e), a), a];
+ return [i ? Oee(o, i, a) : R_(o, U_(e), a), a];
}
-var Ere = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var _re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bT(r, t, BT);
- let [i, a] = Tre(e, n);
- return /*#__PURE__*/ I.createElement(HT.Provider, { value: {
+ [e, t] = kT(r, t, YT);
+ let [i, a] = gre(e, n);
+ return /*#__PURE__*/ I.createElement(ZT.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ I.createElement(Dre, {
+ } }, /*#__PURE__*/ I.createElement(vre, {
...e,
ref: t
}));
-}), Dre = /*#__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)(HT), { isFocused: p, isFocusVisible: m, focusProps: h } = oy(), g = a || o, { hoverProps: _, isHovered: v } = uy({
+}), 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({
...e,
isDisabled: g
- }), y = vT({
+ }), y = DT({
...e,
defaultClassName: u,
values: {
@@ -28216,8 +28216,8 @@ var Ere = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = gg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(wT.label, {
+ }), b = _g(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(NT.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -28231,20 +28231,20 @@ var Ere = /*#__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(W_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(q_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, h),
ref: l
})), y.children);
-}), UT = /*#__PURE__*/ (0, I.createContext)({}), Ore = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, UT);
+}), QT = /*#__PURE__*/ (0, I.createContext)({}), yre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [e, t] = kT(e, t, QT);
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 } = uy({
+ let { hoverProps: l, isHovered: u } = fy({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = oy({ within: !0 }), m = vT({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = cy({ within: !0 }), m = DT({
...e,
values: {
isHovered: u,
@@ -28255,7 +28255,7 @@ var Ere = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ I.createElement(wT.div, {
+ return /*#__PURE__*/ I.createElement(NT.div, {
...H(c, p, l),
...m,
ref: t,
@@ -28268,18 +28268,18 @@ var Ere = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), WT = /*#__PURE__*/ (0, I.createContext)({}), kre = (e) => {
+}), $T = /*#__PURE__*/ (0, I.createContext)({}), bre = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Are = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, WT);
- let { hoverProps: n, isHovered: r } = uy({
+}, xre = /*#__PURE__*/ _h(function(e, t) {
+ [e, t] = kT(e, t, $T);
+ let { hoverProps: n, isHovered: r } = fy({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = oy({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = cy({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = vT({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = DT({
...e,
values: {
isHovered: r,
@@ -28290,8 +28290,8 @@ var Ere = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ I.createElement(wT.input, {
- ...H(kre(e), o, n),
+ return /*#__PURE__*/ I.createElement(NT.input, {
+ ...H(bre(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -28300,8 +28300,8 @@ var Ere = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), GT = {};
-GT = {
+}), eE = {};
+eE = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -28309,8 +28309,8 @@ GT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var KT = {};
-KT = {
+var tE = {};
+tE = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -28318,8 +28318,8 @@ KT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var qT = {};
-qT = {
+var nE = {};
+nE = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -28327,8 +28327,8 @@ qT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var JT = {};
-JT = {
+var rE = {};
+rE = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -28336,8 +28336,8 @@ JT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var YT = {};
-YT = {
+var iE = {};
+iE = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -28345,8 +28345,8 @@ YT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var XT = {};
-XT = {
+var aE = {};
+aE = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -28354,8 +28354,8 @@ XT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var ZT = {};
-ZT = {
+var oE = {};
+oE = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -28363,8 +28363,8 @@ ZT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var QT = {};
-QT = {
+var sE = {};
+sE = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -28372,8 +28372,8 @@ QT = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var $T = {};
-$T = {
+var cE = {};
+cE = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -28381,8 +28381,8 @@ $T = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var eE = {};
-eE = {
+var lE = {};
+lE = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -28390,8 +28390,8 @@ eE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var tE = {};
-tE = {
+var uE = {};
+uE = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -28399,8 +28399,8 @@ tE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var nE = {};
-nE = {
+var dE = {};
+dE = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -28408,8 +28408,8 @@ nE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var rE = {};
-rE = {
+var fE = {};
+fE = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -28417,8 +28417,8 @@ rE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var iE = {};
-iE = {
+var pE = {};
+pE = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -28426,8 +28426,8 @@ iE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var aE = {};
-aE = {
+var mE = {};
+mE = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -28435,8 +28435,8 @@ aE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var oE = {};
-oE = {
+var hE = {};
+hE = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -28444,8 +28444,8 @@ oE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var sE = {};
-sE = {
+var gE = {};
+gE = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -28453,8 +28453,8 @@ sE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var cE = {};
-cE = {
+var _E = {};
+_E = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -28462,8 +28462,8 @@ cE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var lE = {};
-lE = {
+var vE = {};
+vE = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -28471,8 +28471,8 @@ lE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var uE = {};
-uE = {
+var yE = {};
+yE = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -28480,8 +28480,8 @@ uE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var dE = {};
-dE = {
+var bE = {};
+bE = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -28489,8 +28489,8 @@ dE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var fE = {};
-fE = {
+var xE = {};
+xE = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -28498,8 +28498,8 @@ fE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var pE = {};
-pE = {
+var SE = {};
+SE = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28507,8 +28507,8 @@ pE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var mE = {};
-mE = {
+var CE = {};
+CE = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -28516,8 +28516,8 @@ mE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var hE = {};
-hE = {
+var wE = {};
+wE = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -28525,8 +28525,8 @@ hE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var gE = {};
-gE = {
+var TE = {};
+TE = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -28534,8 +28534,8 @@ gE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var _E = {};
-_E = {
+var EE = {};
+EE = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -28543,8 +28543,8 @@ _E = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var vE = {};
-vE = {
+var DE = {};
+DE = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -28552,8 +28552,8 @@ vE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var yE = {};
-yE = {
+var OE = {};
+OE = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -28561,8 +28561,8 @@ yE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var bE = {};
-bE = {
+var kE = {};
+kE = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -28570,8 +28570,8 @@ bE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var xE = {};
-xE = {
+var AE = {};
+AE = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -28579,8 +28579,8 @@ xE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var SE = {};
-SE = {
+var jE = {};
+jE = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -28588,8 +28588,8 @@ SE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var CE = {};
-CE = {
+var ME = {};
+ME = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -28597,8 +28597,8 @@ CE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var wE = {};
-wE = {
+var NE = {};
+NE = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -28606,52 +28606,52 @@ wE = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var TE = {};
-TE = {
- "ar-AE": GT,
- "bg-BG": KT,
- "cs-CZ": qT,
- "da-DK": JT,
- "de-DE": YT,
- "el-GR": XT,
- "en-US": ZT,
- "es-ES": QT,
- "et-EE": $T,
- "fi-FI": eE,
- "fr-FR": tE,
- "he-IL": nE,
- "hr-HR": rE,
- "hu-HU": iE,
- "it-IT": aE,
- "ja-JP": oE,
- "ko-KR": sE,
- "lt-LT": cE,
- "lv-LV": lE,
- "nb-NO": uE,
- "nl-NL": dE,
- "pl-PL": fE,
- "pt-BR": pE,
- "pt-PT": mE,
- "ro-RO": hE,
- "ru-RU": gE,
- "sk-SK": _E,
- "sl-SI": vE,
- "sr-SP": yE,
- "sv-SE": bE,
- "tr-TR": xE,
- "uk-UA": SE,
- "zh-CN": CE,
- "zh-TW": wE
+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
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var EE = /*#__PURE__*/ (0, I.createContext)({}), DE = /*#__PURE__*/ (0, I.createContext)(null), jre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { render: n } = (0, I.useContext)(DE);
+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);
return /*#__PURE__*/ I.createElement(I.Fragment, null, n(e, t));
});
-function OE(e, t) {
+function LE(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(jre, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ I.createElement(Sre, { target: e });
}, [
t?.target,
r,
@@ -28659,7 +28659,7 @@ function OE(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function kE(e, t, n) {
+function RE(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 +28682,14 @@ function kE(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var AE = /*#__PURE__*/ (0, I.createContext)({}), Mre = /*#__PURE__*/ (0, I.createContext)(null);
-function jE(e) {
+var zE = /*#__PURE__*/ (0, I.createContext)({}), Cre = /*#__PURE__*/ (0, I.createContext)(null);
+function BE(e) {
let t = (0, I.useRef)({});
- return /*#__PURE__*/ I.createElement(Mre.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ I.createElement(Cre.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var ME = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), NE = /*#__PURE__*/ (0, I.createContext)({}), Nre = /*#__PURE__*/ Fh(class extends Nf {
+var VE = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), HE = /*#__PURE__*/ (0, I.createContext)({}), wre = /*#__PURE__*/ Fh(class extends Nf {
static {
this.type = "separator";
}
@@ -28702,14 +28702,14 @@ var ME = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), NE = /*#__PURE_
return null;
}
}, function(e, t) {
- [e, t] = bT(e, t, NE);
+ [e, t] = kT(e, t, HE);
let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";
c === "hr" && r === "vertical" && (c = "div");
- let l = wT[c], { separatorProps: u } = jte({
+ let l = NT[c], { separatorProps: u } = kte({
...s,
elementType: n,
orientation: r
- }), d = gg(e, { global: !0 });
+ }), d = _g(e, { global: !0 });
return /*#__PURE__*/ I.createElement(l, {
render: e.render,
...H(d, u),
@@ -28721,13 +28721,13 @@ var ME = /*#__PURE__*/ (0, I.createContext)({ isSelected: !1 }), NE = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function PE(e) {
+function UE(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 FE = class {
+var WE = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -28771,20 +28771,20 @@ var FE = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, IE = class e extends Set {
+}, GE = 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 Pre(e, t) {
+function Tre(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function LE(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] = z_((0, I.useMemo)(() => RE(e.selectedKeys), [e.selectedKeys]), (0, I.useMemo)(() => RE(e.defaultSelectedKeys, new IE()), [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 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);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, I.useRef)(i);
return (0, I.useEffect)(() => {
@@ -28811,18 +28811,18 @@ function LE(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Pre(e, d)) && f(e);
+ (r || !Tre(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function RE(e, t) {
- return e ? e === "all" ? "all" : new IE(e) : t;
+function qE(e, t) {
+ return e ? e === "all" ? "all" : new GE(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var zE = class e {
+var JE = 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 +28878,7 @@ var zE = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && qv(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Xv(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28886,7 +28886,7 @@ var zE = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && qv(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Xv(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -28905,10 +28905,10 @@ var zE = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new IE([t], t, t);
+ if (this.state.selectedKeys === "all") n = new GE([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new IE(e, r, t);
+ n = new GE(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 +28916,7 @@ var zE = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? qv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Xv(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 +28942,19 @@ var zE = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new IE(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new GE(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 IE([t], t, t) : new IE();
+ let n = this.canSelectItem(t) ? new GE([t], t, t) : new GE();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new IE();
+ let t = new GE();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -28966,7 +28966,7 @@ var zE = 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(Wv(Uv(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(qv(Kv(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -28977,7 +28977,7 @@ var zE = 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 IE());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new GE());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -29018,9 +29018,9 @@ var zE = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Fre = class {
+}, Ere = class {
build(e, t) {
- return this.context = t, BE(() => this.iterateCollection(e));
+ return this.context = t, YE(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -29102,10 +29102,10 @@ var zE = class e {
...a,
key: l,
index: s,
- wrapper: Ire(e.wrapper, a.wrapper)
+ wrapper: Dre(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 <${VE(t.type)}> in <${VE(r?.type ?? "unknown parent type")}>. Only <${VE(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 <${XE(t.type)}> in <${XE(r?.type ?? "unknown parent type")}>. Only <${XE(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -29127,7 +29127,7 @@ var zE = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: BE(function* () {
+ childNodes: YE(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -29146,7 +29146,7 @@ var zE = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function BE(e) {
+function YE(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -29154,18 +29154,18 @@ function BE(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Ire(e, t) {
+function Dre(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function VE(e) {
+function XE(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function HE(e, t, n) {
- let r = (0, I.useMemo)(() => new Fre(), []), { children: i, items: a, collection: o } = e;
+function ZE(e, t, n) {
+ let r = (0, I.useMemo)(() => new Ere(), []), { children: i, items: a, collection: o } = e;
return (0, I.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -29180,27 +29180,27 @@ function HE(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function UE(e) {
- let { filter: t, layoutDelegate: n } = e, r = LE(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = HE(e, (0, I.useCallback)((e) => t ? new FE(t(e)) : new FE(e), [t]), (0, I.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, I.useMemo)(() => new zE(a, r, { layoutDelegate: n }), [
+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 }), [
a,
r,
n
]);
- return WE(a, o), {
+ return $E(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Lre(e, t) {
+function Ore(e, t) {
let n = (0, I.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return WE(n, r), {
+ return $E(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function WE(e, t) {
+function $E(e, t) {
let n = (0, I.useRef)(null);
(0, I.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -29228,7 +29228,7 @@ function WE(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function GE(e, t) {
+function eD(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, I.useRef)(null), s = Zh((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -29236,7 +29236,7 @@ function GE(e, t) {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: __(t?.current),
+ root: b_(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -29252,42 +29252,42 @@ function GE(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var KE = /*#__PURE__*/ (0, I.createContext)(null), qE = /*#__PURE__*/ (0, I.createContext)(null), Rre = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, KE);
- let n = (0, I.useContext)(qE);
- return n ? /*#__PURE__*/ I.createElement(JE, {
+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, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ I.createElement(Dh, { content: /*#__PURE__*/ I.createElement(zh, e) }, (n) => /*#__PURE__*/ I.createElement(zre, {
+ }) : /*#__PURE__*/ I.createElement(Dh, { content: /*#__PURE__*/ I.createElement(zh, e) }, (n) => /*#__PURE__*/ I.createElement(Are, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function zre({ props: e, listBoxRef: t, collection: n }) {
+function Are({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, I.useContext)(AT), i = UE({
+ let { layoutDelegate: r } = (0, I.useContext)(zT), i = QE({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ I.createElement(JE, {
+ return /*#__PURE__*/ I.createElement(rD, {
state: i,
props: e,
listBoxRef: t
});
}
-function JE({ state: e, props: t, listBoxRef: n }) {
- [t, n] = bT(t, n, TT);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Lre(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = cg(), { disabledBehavior: p, disabledKeys: m } = l, h = Qv({
+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({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(AT), b = (0, I.useMemo)(() => t.keyboardDelegate || new ev({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, I.useContext)(zT), b = (0, I.useMemo)(() => t.keyboardDelegate || new rv({
collection: c,
collator: h,
ref: n,
@@ -29308,7 +29308,7 @@ function JE({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: x } = rte({
+ ]), { listBoxProps: x } = tte({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -29340,7 +29340,7 @@ function JE({ state: e, props: t, listBoxRef: n }) {
dropTargetDelegate: e
}, C, n), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = oy(), j = s.collection.size === 0, M = {
+ let { focusProps: O, isFocused: k, isFocusVisible: A } = cy(), j = s.collection.size === 0, M = {
isDropTarget: T,
isEmpty: j,
isFocused: k,
@@ -29348,7 +29348,7 @@ function JE({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, N = vT({
+ }, N = DT({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -29358,8 +29358,8 @@ function JE({ state: e, props: t, listBoxRef: n }) {
role: "option",
style: { display: "contents" }
}, t.renderEmptyState(M)));
- let ee = gg(t, { global: !0 });
- return /*#__PURE__*/ I.createElement(Vg, null, /*#__PURE__*/ I.createElement(wT.div, {
+ let ee = _g(t, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Wg, null, /*#__PURE__*/ I.createElement(NT.div, {
...H(ee, N, x, O, w?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -29370,55 +29370,55 @@ function JE({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": A || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ I.createElement(_T, { values: [
- [KE, t],
- [qE, s],
- [EE, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [tD, t],
+ [nD, s],
+ [FE, {
dragAndDropHooks: r,
dragState: S,
dropState: C
}],
- [NE, { elementType: "div" }],
- [DE, { render: Hre }],
- [DT, {
+ [HE, { elementType: "div" }],
+ [IE, { render: Nre }],
+ [IT, {
name: "ListBoxSection",
- render: Bre
+ render: jre
}]
- ] }, /*#__PURE__*/ I.createElement(jE, null, /*#__PURE__*/ I.createElement(y, {
+ ] }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: kE(l, r, C),
- renderDropIndicator: OE(r, C)
+ persistedKeys: RE(l, r, C),
+ renderDropIndicator: LE(r, C)
}))), P, E));
}
-function Bre(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, I.useContext)(qE), { dragAndDropHooks: a, dropState: o } = (0, I.useContext)(EE), { CollectionBranch: s } = (0, I.useContext)(AT), [c, l] = xT(), { headingProps: u, groupProps: d } = ite({
+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({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = vT({
+ }), f = DT({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = gg(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ I.createElement(wT.section, {
+ }), p = _g(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ I.createElement(NT.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ I.createElement(AE.Provider, { value: {
+ }, /*#__PURE__*/ I.createElement(zE.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ I.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: OE(a, o)
+ renderDropIndicator: LE(a, o)
})));
}
-var Vre = /*#__PURE__*/ Fh(If, function(e, t, n) {
- let r = uh(t), i = (0, I.useContext)(qE), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(EE), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = ate({
+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({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = uy({
+ }, i, r), { hoverProps: p, isHovered: m } = fy({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
@@ -29434,7 +29434,7 @@ var Vre = /*#__PURE__*/ Fh(If, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = vT({
+ let y = o && o.isDragging(n.key), b = DT({
...e,
id: void 0,
children: e.children,
@@ -29452,7 +29452,7 @@ var Vre = /*#__PURE__*/ Fh(If, function(e, t, n) {
(0, I.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? wT.a : wT.div, S = gg(e, { global: !0 });
+ let x = e.href ? NT.a : NT.div, S = _g(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 +29466,29 @@ var Vre = /*#__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(_T, { values: [[LT, { slots: {
- [gT]: u,
+ }, /*#__PURE__*/ I.createElement(ET, { values: [[KT, { slots: {
+ [TT]: u,
label: u,
description: d
- } }], [ME, { isSelected: f.isSelected }]] }, b.children));
+ } }], [VE, { isSelected: f.isSelected }]] }, b.children));
});
-function Hre(e, t) {
+function Nre(e, t) {
t = uh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(EE), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ I.createElement(Wre, {
+ 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, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Ure(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = vT({
+function Pre(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = DT({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(wT.div, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(NT.div, {
...n,
...a,
role: "option",
@@ -29496,10 +29496,10 @@ function Ure(e, t) {
"data-drop-target": r || void 0
}));
}
-var Wre = /*#__PURE__*/ (0, I.forwardRef)(Ure);
+var Fre = /*#__PURE__*/ (0, I.forwardRef)(Pre);
Fh(Ff, function(e, t, n) {
- let r = (0, I.useContext)(qE), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- GE((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(nD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ eD((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -29509,7 +29509,7 @@ Fh(Ff, function(e, t, n) {
o,
r?.collection
]), c);
- let l = vT({
+ let l = DT({
...s,
id: void 0,
children: n.rendered,
@@ -29522,7 +29522,7 @@ Fh(Ff, function(e, t, n) {
width: 0,
height: 0
},
- inert: PE(!0)
+ inert: UE(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -29531,8 +29531,8 @@ Fh(Ff, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(wT.div, {
- ...H(gg(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(NT.div, {
+ ...H(_g(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -29540,11 +29540,11 @@ Fh(Ff, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Gre = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
+var Ire = /*#__PURE__*/ (0, I.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function YE(e) {
- let [t, n] = z_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
+function iD(e) {
+ let [t, n] = H_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, I.useState)(null);
return {
isOpen: t,
setOpen: n,
@@ -29563,13 +29563,13 @@ function YE(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function XE(e, t = !0) {
+function aD(e, t = !0) {
let [n, r] = (0, I.useState)(!0), i = n && t;
return bp(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), QE(e, i, (0, I.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), sD(e, i, (0, I.useCallback)(() => r(!1), [])), i;
}
-function ZE(e, t) {
+function oD(e, t) {
let [n, r] = (0, I.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -29579,11 +29579,11 @@ function ZE(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return QE(e, i, (0, I.useCallback)(() => {
+ return sD(e, i, (0, I.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function QE(e, t, n) {
+function sD(e, t, n) {
bp(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -29612,9 +29612,9 @@ function QE(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var $E = /*#__PURE__*/ (0, I.createContext)(null), eD = /*#__PURE__*/ (0, I.createContext)(null), tD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, $E);
- let n = (0, I.useContext)(dD), r = YE(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ZE(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = vh(), { direction: c } = cg();
+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();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -29625,7 +29625,7 @@ var $E = /*#__PURE__*/ (0, I.createContext)(null), eD = /*#__PURE__*/ (0, I.crea
defaultChildren: null
})), /*#__PURE__*/ I.createElement(I.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Kre, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ I.createElement(Lre, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -29634,13 +29634,13 @@ var $E = /*#__PURE__*/ (0, I.createContext)(null), eD = /*#__PURE__*/ (0, I.crea
dir: c
});
});
-function Kre({ 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)(eD), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Tte({
+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({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = XE(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = vT({
+ }, e), m = i.popoverRef, h = aD(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = DT({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -29666,7 +29666,7 @@ function Kre({ 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]), eb({
+ bp(w, [w]), nb({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: w
});
@@ -29675,8 +29675,8 @@ function Kre({ 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(wT.div, {
- ...H(gg(i, { global: !0 }), l),
+ }, E = /*#__PURE__*/ I.createElement(NT.div, {
+ ...H(_g(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
role: y ? "dialog" : void 0,
@@ -29691,17 +29691,17 @@ function Kre({ 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(Ib, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Gre.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ I.createElement(Rb, { onDismiss: e.close }), /*#__PURE__*/ I.createElement(Ire.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ I.createElement(Ib, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ I.createElement(iy, {
+ } }, x), /*#__PURE__*/ I.createElement(Rb, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ I.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ I.createElement(iy, {
+ }, E) : /*#__PURE__*/ I.createElement(oy, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
isExiting: t,
@@ -29716,15 +29716,15 @@ function Kre({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContext
}), /*#__PURE__*/ I.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ I.createElement(eD.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ I.createElement(lD.Provider, { value: o }, E)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Keyboard.mjs
-var qre = /*#__PURE__*/ (0, I.createContext)({});
+var Rre = /*#__PURE__*/ (0, I.createContext)({});
//#endregion
//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs
-function nD(e) {
- let t = YE(e), [n, r] = (0, I.useState)(null), [i, a] = (0, I.useState)([]), o = () => {
+function dD(e) {
+ let t = iD(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 +29750,7 @@ function nD(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs
-var Jre = class {
+var zre = 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 +29794,8 @@ var Jre = class {
};
//#endregion
//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs
-function Yre(e) {
- let { onExpandedChange: t } = e, [n, r] = z_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = LE(e), a = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = HE(e, (0, I.useCallback)((e) => new Jre(e, { expandedKeys: n }), [n]), null);
+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);
return (0, I.useEffect)(() => {
i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);
}, [o, i.focusedKey]), {
@@ -29803,32 +29803,32 @@ function Yre(e) {
expandedKeys: n,
disabledKeys: a,
toggleKey: (e) => {
- r(Xre(n, e));
+ r(Vre(n, e));
},
setExpandedKeys: r,
- selectionManager: new zE(o, i)
+ selectionManager: new JE(o, i)
};
}
-function Xre(e, t) {
+function Vre(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 rD = /*#__PURE__*/ (0, I.createContext)(null), iD = /*#__PURE__*/ (0, I.createContext)(null), aD = /*#__PURE__*/ (0, I.createContext)(null), oD = /*#__PURE__*/ (0, I.createContext)(null);
-function Zre(e) {
- let t = nD(e), n = (0, I.useRef)(null), { menuTriggerProps: r, menuProps: i } = Rv({
+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({
...e,
type: "menu"
}, t, n), a = (0, I.useRef)(null);
- return vh() ? null : /*#__PURE__*/ I.createElement(_T, { values: [
- [rD, {
+ return vh() ? null : /*#__PURE__*/ I.createElement(ET, { values: [
+ [fD, {
...i,
ref: a
}],
- [dD, t],
- [aD, t],
- [$E, {
+ [bD, t],
+ [mD, t],
+ [cD, {
trigger: "MenuTrigger",
triggerRef: n,
scrollRef: a,
@@ -29836,13 +29836,13 @@ function Zre(e) {
"aria-labelledby": i["aria-labelledby"],
offset: e.trigger === "contextMenu" ? 0 : void 0
}]
- ] }, /*#__PURE__*/ I.createElement(Gee, {
+ ] }, /*#__PURE__*/ I.createElement(Hee, {
...r,
ref: n,
isPressed: t.isOpen
}, e.children));
}
-var Qre = /*#__PURE__*/ (0, I.createContext)(null);
+var Ure = /*#__PURE__*/ (0, I.createContext)(null);
(class extends Nf {
static {
this.type = "submenutrigger";
@@ -29856,24 +29856,24 @@ var Qre = /*#__PURE__*/ (0, I.createContext)(null);
return null;
}
});
-var $re = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return [e, t] = bT(e, t, rD), /*#__PURE__*/ I.createElement(Dh, { content: /*#__PURE__*/ I.createElement(zh, e) }, (n) => /*#__PURE__*/ I.createElement(eie, {
+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, {
props: e,
collection: n,
menuRef: t
}));
});
-function eie({ props: e, collection: t, menuRef: n }) {
- [e, n] = bT(e, n, TT);
- let { filter: r, ...i } = e, a = (0, I.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = Yre({
+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({
...e,
collection: a,
children: void 0
- }), s = (0, I.useContext)(aD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(AT), { menuProps: u } = ote({
+ }), s = (0, I.useContext)(mD), { isVirtualized: c, CollectionRoot: l } = (0, I.useContext)(zT), { menuProps: u } = ite({
...e,
isVirtualized: c,
onClose: e.onClose || s?.close
- }, o, n), d = vT({
+ }, o, n), d = DT({
...e,
children: void 0,
defaultClassName: "react-aria-Menu",
@@ -29883,36 +29883,36 @@ function eie({ props: e, collection: t, menuRef: n }) {
role: "menuitem",
style: { display: "contents" }
}, e.renderEmptyState()));
- let p = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Vg, null, /*#__PURE__*/ I.createElement(wT.div, {
+ let p = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Wg, null, /*#__PURE__*/ I.createElement(NT.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(_T, { values: [
- [iD, o],
- [NE, { elementType: "div" }],
- [DT, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [pD, o],
+ [HE, { elementType: "div" }],
+ [IT, {
name: "MenuSection",
- render: sD
+ render: gD
}],
- [Qre, {
+ [Ure, {
parentMenuRef: n,
shouldUseVirtualFocus: i?.shouldUseVirtualFocus
}],
- [lD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
- [TT, null],
- [ET, null],
- [oD, o.selectionManager],
- [aD, s ?? nD({})]
- ] }, /*#__PURE__*/ I.createElement(jE, null, /*#__PURE__*/ I.createElement(l, {
+ [vD, { shouldCloseOnSelect: e.shouldCloseOnSelect }],
+ [PT, null],
+ [FT, null],
+ [hD, o.selectionManager],
+ [mD, s ?? dD({})]
+ ] }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(l, {
collection: o.collection,
- persistedKeys: jT(o.selectionManager.focusedKey),
+ persistedKeys: BT(o.selectionManager.focusedKey),
scrollRef: n
}))), f));
}
-var tie = class extends zE {
+var Kre = class extends JE {
constructor(e, t) {
super(e.collection, t), this.parent = e;
}
@@ -29932,11 +29932,11 @@ var tie = class extends zE {
return this.parent.childFocusStrategy;
}
};
-function sD(e, t, n, r = "react-aria-MenuSection") {
- let i = (0, I.useContext)(iD), { CollectionBranch: a } = (0, I.useContext)(AT), [o, s] = xT(), { headingProps: c, groupProps: l } = cte({
+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({
heading: s,
"aria-label": n.props["aria-label"] ?? void 0
- }), u = vT({
+ }), u = DT({
...e,
id: void 0,
children: void 0,
@@ -29944,31 +29944,31 @@ function sD(e, t, n, r = "react-aria-MenuSection") {
className: n.props?.className,
style: n.props?.style,
values: void 0
- }), d = (0, I.useContext)(oD), f = LE(e), p = e.selectionMode == null ? d : new tie(d, f), m = yT(lD)?.shouldCloseOnSelect, h = gg(e, { global: !0 });
- return delete h.id, /*#__PURE__*/ I.createElement(wT.section, {
+ }), 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, {
...H(h, u, l),
ref: t
- }, /*#__PURE__*/ I.createElement(_T, { values: [
- [AE, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [zE, {
...c,
ref: o
}],
- [oD, p],
- [lD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
+ [hD, p],
+ [vD, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]
] }, /*#__PURE__*/ I.createElement(a, {
collection: i.collection,
parent: n
})));
}
-var cD = /*#__PURE__*/ Ih(Lf, sD), lD = /*#__PURE__*/ (0, I.createContext)(null), uD = /*#__PURE__*/ Fh(If, function(e, t, n) {
- [e, t] = bT(e, t, lD);
- let r = yT(lD)?.id, i = (0, I.useContext)(iD), a = uh(t), o = (0, I.useContext)(oD), { isVirtualized: s } = (0, I.useContext)(AT), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = ste({
+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({
...e,
id: r,
key: n.key,
selectionManager: o,
isVirtualized: s
- }, i, a), { hoverProps: p, isHovered: m } = uy({ isDisabled: f.isDisabled }), h = vT({
+ }, i, a), { hoverProps: p, isHovered: m } = fy({ isDisabled: f.isDisabled }), h = DT({
...e,
id: void 0,
children: n.rendered,
@@ -29982,7 +29982,7 @@ var cD = /*#__PURE__*/ Ih(Lf, sD), lD = /*#__PURE__*/ (0, I.createContext)(null)
hasSubmenu: !!e["aria-haspopup"],
isOpen: e["aria-expanded"] === "true"
}
- }), g = e.href ? wT.a : wT.div, _ = gg(e, { global: !0 });
+ }), g = e.href ? NT.a : NT.div, _ = _g(e, { global: !0 });
return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(g, {
...H(_, h, c, p),
ref: a,
@@ -29995,19 +29995,19 @@ var cD = /*#__PURE__*/ Ih(Lf, sD), lD = /*#__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(_T, { values: [
- [LT, { slots: {
- [gT]: l,
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [KT, { slots: {
+ [TT]: l,
label: l,
description: u
} }],
- [qre, d],
- [ME, { isSelected: f.isSelected }]
+ [Rre, d],
+ [VE, { isSelected: f.isSelected }]
] }, h.children));
});
Fh(Ff, function(e, t, n) {
- let r = (0, I.useContext)(iD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
- GE((0, I.useMemo)(() => ({
+ let r = (0, I.useContext)(pD), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, I.useRef)(null);
+ eD((0, I.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -30017,7 +30017,7 @@ Fh(Ff, function(e, t, n) {
o,
r?.collection
]), c);
- let l = vT({
+ let l = DT({
...s,
id: void 0,
children: n.rendered,
@@ -30030,7 +30030,7 @@ Fh(Ff, function(e, t, n) {
width: 0,
height: 0
},
- inert: PE(!0)
+ inert: UE(!0)
}, /*#__PURE__*/ I.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -30039,8 +30039,8 @@ Fh(Ff, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(wT.div, {
- ...H(gg(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(NT.div, {
+ ...H(_g(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "menuitem",
ref: t
@@ -30048,56 +30048,56 @@ Fh(Ff, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var nie = /*#__PURE__*/ (0, I.createContext)(null), dD = /*#__PURE__*/ (0, I.createContext)(null), fD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+var qre = /*#__PURE__*/ (0, I.createContext)(null), bD = /*#__PURE__*/ (0, I.createContext)(null), xD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = bT(e, t, nie);
- let { dialogProps: r, titleProps: i, contentProps: a } = Kee({
+ [e, t] = kT(e, t, qre);
+ let { dialogProps: r, titleProps: i, contentProps: a } = Wee({
...e,
"aria-labelledby": n
- }, t), o = (0, I.useContext)(dD);
+ }, t), o = (0, I.useContext)(bD);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = vT({
+ let s = DT({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(wT.section, {
+ }), c = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(NT.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ I.createElement(_T, { values: [
- [FT, { slots: {
- [gT]: {},
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [WT, { slots: {
+ [TT]: {},
title: {
...i,
level: 2
}
} }],
- [LT, { slots: {
- [gT]: {},
+ [KT, { slots: {
+ [TT]: {},
description: a
} }],
- [NT, { slots: {
- [gT]: {},
+ [HT, { slots: {
+ [TT]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), pD = typeof document < "u" && window.visualViewport;
-function rie() {
+}), SD = typeof document < "u" && window.visualViewport;
+function Jre() {
let e = om(), [t, n] = (0, I.useState)(() => e ? {
width: 0,
height: 0
- } : mD());
+ } : CD());
return (0, I.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- pD && pD.scale > 1 || e(mD());
+ SD && SD.scale > 1 || e(CD());
}, r, i = (t) => {
- pD && pD.scale > 1 || Yh(V(t)) && (r = requestAnimationFrame(() => {
+ SD && SD.scale > 1 || Yh(V(t)) && (r = requestAnimationFrame(() => {
let t = sp();
(!t || !Yh(t)) && e({
width: document.documentElement.clientWidth,
@@ -30105,26 +30105,26 @@ function rie() {
});
}));
};
- return e(mD()), Mp() && Pp() && window.addEventListener("blur", i, !0), pD ? pD.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), Mp() && Pp() && window.removeEventListener("blur", i, !0), pD ? pD.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ 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);
};
}, []), t;
}
-function mD() {
+function CD() {
return {
- width: pD ? Math.min(pD.width * pD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: pD ? pD.height * pD.scale : document.documentElement.clientHeight
+ width: SD ? Math.min(SD.width * SD.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: SD ? SD.height * SD.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var iie = /*#__PURE__*/ (0, I.createContext)(null), hD = /*#__PURE__*/ (0, I.createContext)(null), aie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- if ((0, I.useContext)(hD)) return /*#__PURE__*/ I.createElement(_D, {
+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, {
...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(gD, {
+ return /*#__PURE__*/ I.createElement(TD, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -30134,15 +30134,15 @@ var iie = /*#__PURE__*/ (0, I.createContext)(null), hD = /*#__PURE__*/ (0, I.cre
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ I.createElement(_D, {
+ }, /*#__PURE__*/ I.createElement(ED, {
...f,
modalRef: t
}, s));
});
-function oie(e, t) {
- [e, t] = bT(e, t, iie);
- let n = (0, I.useContext)(dD), r = YE(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = uh(t), o = (0, I.useRef)(null), s = ZE(a, i.isOpen), c = ZE(o, i.isOpen), l = s || c || e.isExiting || !1, u = om();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ I.createElement(sie, {
+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, {
...e,
state: i,
isExiting: l,
@@ -30150,9 +30150,9 @@ function oie(e, t) {
modalRef: o
});
}
-var gD = /*#__PURE__*/ (0, I.forwardRef)(oie);
-function sie({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = pte(t, r, n), o = XE(t.overlayRef) || t.isEntering || !1, s = vT({
+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({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -30160,9 +30160,9 @@ function sie({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = rie(), l, u;
+ }), c = Jre(), l, u;
if (typeof document < "u") {
- let e = g_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
+ let e = y_(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 +30172,25 @@ function sie({ 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(iy, {
+ return /*#__PURE__*/ I.createElement(oy, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ I.createElement(wT.div, {
- ...H(gg(t, { global: !0 }), a),
+ }, /*#__PURE__*/ I.createElement(NT.div, {
+ ...H(_g(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ I.createElement(_T, { values: [[hD, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [[wD, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [dD, r]] }, s.children)));
+ }], [bD, r]] }, s.children)));
}
-function _D(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, I.useContext)(hD), a = (0, I.useContext)(dD), o = uh((0, I.useMemo)(() => Gm(e.modalRef, n), [e.modalRef, n])), s = XE(o), c = vT({
+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({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -30199,19 +30199,19 @@ function _D(e) {
state: a
}
});
- return /*#__PURE__*/ I.createElement(wT.div, {
- ...H(gg(e, { global: !0 }), t),
+ return /*#__PURE__*/ I.createElement(NT.div, {
+ ...H(_g(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ I.createElement(Ib, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ I.createElement(Rb, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var cie = Math.round(Math.random() * 1e10), lie = 0;
-function uie(e) {
- let t = (0, I.useMemo)(() => e.name || `radio-group-${cie}-${++lie}`, [e.name]), [n, r] = z_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, I.useState)(n), [a, o] = (0, I.useState)(null), s = A_({
+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_({
...e,
value: n
}), c = (t) => {
@@ -30234,16 +30234,16 @@ function uie(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var die = /*#__PURE__*/ (0, I.createContext)(null), fie = /*#__PURE__*/ (0, I.createContext)(null), vD = /*#__PURE__*/ (0, I.createContext)(null), yD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, die);
- let { validationBehavior: n } = yT(zT) || {}, r = e.validationBehavior ?? n ?? "native", i = uie({
+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({
...e,
validationBehavior: r
- }), [a, o] = xT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Dte({
+ }), [a, o] = AT(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Tte({
...e,
label: o,
validationBehavior: r
- }, i), f = vT({
+ }, i), f = DT({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -30254,8 +30254,8 @@ var die = /*#__PURE__*/ (0, I.createContext)(null), fie = /*#__PURE__*/ (0, I.cr
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(wT.div, {
+ }), p = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(NT.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -30264,39 +30264,39 @@ var die = /*#__PURE__*/ (0, I.createContext)(null), fie = /*#__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(_T, { values: [
- [vD, i],
- [MT, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [DD, i],
+ [VT, {
...c,
ref: a,
elementType: "span"
}],
- [LT, { slots: {
+ [KT, { slots: {
description: l,
errorMessage: u
} }],
- [RT, d]
- ] }, /*#__PURE__*/ I.createElement(jE, null, f.children)));
-}), bD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ [qT, d]
+ ] }, /*#__PURE__*/ I.createElement(BE, null, f.children)));
+}), kD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bT(r, t, fie);
- let i = I.useContext(vD), a = uh((0, I.useMemo)(() => Gm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ete({
- ...ST(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),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ I.createElement(xD.Provider, { value: {
+ return /*#__PURE__*/ I.createElement(AD.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ I.createElement(pie, {
+ } }, /*#__PURE__*/ I.createElement(iie, {
...e,
ref: t
}));
-}), xD = /*#__PURE__*/ (0, I.createContext)(null), pie = /*#__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)(xD), l = I.useContext(vD), { isFocused: u, isFocusVisible: d, focusProps: f } = oy(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = uy({
+}), 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({
...e,
isDisabled: p
- }), g = vT({
+ }), g = DT({
...e,
defaultClassName: s,
values: {
@@ -30310,8 +30310,8 @@ var die = /*#__PURE__*/ (0, I.createContext)(null), fie = /*#__PURE__*/ (0, I.cr
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = gg(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(wT.label, {
+ }), _ = _g(e, { global: !0 });
+ return delete _.id, delete _.onClick, /*#__PURE__*/ I.createElement(NT.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -30323,19 +30323,19 @@ var die = /*#__PURE__*/ (0, I.createContext)(null), fie = /*#__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(W_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(q_, { 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 mie(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = YE(e), [i, a] = (0, I.useState)(null), o = (0, I.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+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, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = z_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = H_((0, I.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -30347,12 +30347,12 @@ function mie(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = UE({
+ }, d = QE({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, I.useMemo)(() => hie(l), [l]),
+ selectedKeys: (0, I.useMemo)(() => oie(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -30362,7 +30362,7 @@ function mie(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 = A_({
+ }), 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_({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
}), [h, g] = (0, I.useState)(!1), [_] = (0, I.useState)(l);
@@ -30389,16 +30389,16 @@ function mie(e) {
setFocused: g
};
}
-function hie(e) {
+function oie(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 gie(e) {
+function sie(e) {
return e && e.__esModule ? e.default : e;
}
-var SD = /*#__PURE__*/ (0, I.createContext)(null), CD = /*#__PURE__*/ (0, I.createContext)(null), _ie = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, SD);
+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);
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 +30413,24 @@ var SD = /*#__PURE__*/ (0, I.createContext)(null), CD = /*#__PURE__*/ (0, I.crea
i,
a
]);
- return /*#__PURE__*/ I.createElement(Dh, { content: o }, (n) => /*#__PURE__*/ I.createElement(yie, {
+ return /*#__PURE__*/ I.createElement(Dh, { content: o }, (n) => /*#__PURE__*/ I.createElement(uie, {
props: e,
collection: n,
selectRef: t
}));
-}), vie = [
- MT,
- NT,
- LT
+}), lie = [
+ VT,
+ HT,
+ KT
];
-function yie({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = yT(zT) || {}, i = e.validationBehavior ?? r ?? "native", a = mie({
+function uie({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = OT(JT) || {}, i = e.validationBehavior ?? r ?? "native", a = aie({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = oy({ within: !0 }), c = (0, I.useRef)(null), [l, u] = xT(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Ote({
- ...ST(e),
+ }), { 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),
label: u,
validationBehavior: i
}, a, c), y = (0, I.useMemo)(() => ({
@@ -30447,48 +30447,48 @@ function yie({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = vT({
+ ]), b = DT({
...e,
values: y,
defaultClassName: "react-aria-Select"
- }), x = gg(e, { global: !0 });
+ }), x = _g(e, { global: !0 });
delete x.id;
let S = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(_T, { values: [
- [SD, e],
- [CD, a],
- [wD, p],
- [MT, {
+ return /*#__PURE__*/ I.createElement(ET, { values: [
+ [jD, e],
+ [MD, a],
+ [ND, p],
+ [VT, {
...d,
ref: l,
elementType: "span"
}],
- [NT, {
+ [HT, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [dD, a],
- [$E, {
+ [bD, a],
+ [cD, {
trigger: "Select",
triggerRef: c,
scrollRef: S,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: vie
+ clearContexts: lie
}],
- [KE, {
+ [tD, {
...m,
ref: S
}],
- [qE, a],
- [LT, { slots: {
+ [nD, a],
+ [KT, { slots: {
description: h,
errorMessage: g
} }],
- [RT, v]
- ] }, /*#__PURE__*/ I.createElement(wT.div, {
+ [qT, v]
+ ] }, /*#__PURE__*/ I.createElement(NT.div, {
...H(x, b, s),
ref: t,
slot: e.slot || void 0,
@@ -30498,14 +30498,14 @@ function yie({ 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(Ate, {
+ }, b.children, /*#__PURE__*/ I.createElement(Ote, {
..._,
autoComplete: e.autoComplete
})));
}
-for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, wD);
- let n = (0, I.useContext)(CD), { placeholder: r } = yT(SD), i = n.selectedItems.map((e) => {
+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) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -30517,7 +30517,7 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = qee(), 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 = 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), [
s,
a,
o
@@ -30532,7 +30532,7 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
a,
o,
i
- ]), u = mg(gie(TE), "react-aria-components"), d = vT({
+ ]), u = hg(sie(PE), "react-aria-components"), d = DT({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -30543,33 +30543,33 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(wT.span, {
+ }), f = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(NT.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ I.createElement(LT.Provider, { value: void 0 }, d.children));
-}), xie = /*#__PURE__*/ (0, I.createContext)(null), TD = /*#__PURE__*/ (0, I.createContext)(null), Sie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ }, /*#__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) {
let { inputRef: n = null, ...r } = e;
- [e, t] = bT(r, t, xie);
- let i = uh((0, I.useMemo)(() => Gm(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = B_(e), o = Mte({
- ...ST(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),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ I.createElement(_T, { values: [[TD, a], [ED, {
+ return /*#__PURE__*/ I.createElement(ET, { values: [[PD, a], [FD, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ I.createElement(Cie, {
+ }]] }, /*#__PURE__*/ I.createElement(mie, {
...e,
ref: t
}));
-}), ED = /*#__PURE__*/ (0, I.createContext)(null), 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, isRequired: d } = (0, I.useContext)(ED), { isFocused: f, isFocusVisible: p, focusProps: m } = oy(), h = a || o, g = (0, I.useContext)(TD), { hoverProps: _, isHovered: v } = uy({
+}), 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({
...e,
isDisabled: h
- }), y = vT({
+ }), y = DT({
...e,
defaultClassName: u,
values: {
@@ -30584,8 +30584,8 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
isRequired: d || !1,
state: g
}
- }), b = gg(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(wT.label, {
+ }), b = _g(e, { global: !0 });
+ return delete b.id, delete b.onClick, /*#__PURE__*/ I.createElement(NT.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -30598,11 +30598,11 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ I.createElement(W_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
+ }, /*#__PURE__*/ I.createElement(q_, { elementType: "span" }, /*#__PURE__*/ I.createElement("input", {
...H(r, m),
ref: l
})), y.children);
-}), DD = 10, OD = 5, wie = class {
+}), ID = 10, LD = 5, hie = class {
setup(e, t, n) {
this.delegate = e, this.state = t, this.direction = n;
}
@@ -30612,7 +30612,7 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__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) > OD && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > DD && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {
+ 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") {
let t = this.state.collection.getKeyBefore(e.key);
for (; t != null;) {
let e = this.state.collection.getItem(t);
@@ -30691,11 +30691,11 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
lastSwitchX: n
});
let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);
- if (Math.abs(r - c.lastSwitchY) > OD && i) {
+ if (Math.abs(r - c.lastSwitchY) > LD && 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 > DD && a) {
+ if (l > ID && 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 +30710,7 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
boundaryContext: null
};
}
-}, Tie = class {
+}, gie = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
let t = (r) => {
@@ -30780,8 +30780,8 @@ for (var wD = /*#__PURE__*/ (0, I.createContext)(null), bie = /*#__PURE__*/ _h(f
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, kD = "row-header-column-" + Math.random().toString(36).slice(2), AD = "row-header-column-" + Math.random().toString(36).slice(2); kD === AD;) AD = "row-header-column-" + Math.random().toString(36).slice(2);
-function jD(e, t) {
+}, 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) {
if (t.length === 0) return [];
let n = [], r = /* @__PURE__ */ new Map();
for (let i of t) {
@@ -30865,13 +30865,13 @@ function jD(e, t) {
textValue: ""
}));
}
-var Eie = class extends Tie {
+var _ie = class extends gie {
constructor(e, t, n) {
let r = /* @__PURE__ */ new Set(), i = null, a = [];
if (n?.showSelectionCheckboxes) {
let e = {
type: "column",
- key: kD,
+ key: RD,
value: null,
textValue: "",
level: 0,
@@ -30886,7 +30886,7 @@ var Eie = class extends Tie {
if (n?.showDragButtons) {
let e = {
type: "column",
- key: AD,
+ key: zD,
value: null,
textValue: "",
level: 0,
@@ -30913,7 +30913,7 @@ var Eie = class extends Tie {
for (let t of e.childNodes) c(t);
};
for (let t of e) c(t);
- let l = jD(s, a);
+ let l = BD(s, a);
if (l.forEach((e, t) => o.splice(t, 0, e)), super({
columnCount: a.length,
items: o,
@@ -30939,10 +30939,10 @@ var Eie = class extends Tie {
return this.keyMap.get(e)?.nextKey ?? null;
}
getFirstKey() {
- return Wv(this.body.childNodes)?.key ?? null;
+ return qv(this.body.childNodes)?.key ?? null;
}
getLastKey() {
- return Kv(this.body.childNodes)?.key ?? null;
+ return Yv(this.body.childNodes)?.key ?? null;
}
getItem(e) {
return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;
@@ -30974,19 +30974,19 @@ var Eie = class extends Tie {
};
//#endregion
//#region node_modules/react-stately/dist/private/grid/useGridState.mjs
-function Die(e) {
- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || LE(e), i = (0, I.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;
+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;
r.setFocusedKey = (e, r) => {
if (n === "cell" && e != null) {
let n = t.getItem(e);
if (n?.type === "item") {
- let i = Uv(n, t);
- e = r === "last" ? Kv(i)?.key ?? null : Wv(i)?.key ?? null;
+ let i = Kv(n, t);
+ e = r === "last" ? Yv(i)?.key ?? null : qv(i)?.key ?? null;
}
}
a(e, r);
};
- let o = (0, I.useMemo)(() => new zE(t, r), [t, r]), s = (0, I.useRef)(null);
+ let o = (0, I.useMemo)(() => new JE(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 +31006,7 @@ function Die(e) {
}
}
if (u) {
- let i = u.hasChildNodes ? [...Uv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;
+ let i = u.hasChildNodes ? [...Kv(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 +31025,11 @@ function Die(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/table/useTableState.mjs
-var Oie = {
+var yie = {
ascending: "descending",
descending: "ascending"
};
-function kie(e) {
+function bie(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 +31040,11 @@ function kie(e) {
i,
r,
a
- ]), c = HE(e, (0, I.useCallback)((e) => new Eie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Die({
+ ]), c = ZE(e, (0, I.useCallback)((e) => new _ie(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = vie({
...e,
collection: c,
disabledBehavior: e.disabledBehavior || "selection"
- }), [d, f] = z_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ }), [d, f] = H_(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 +31056,7 @@ function kie(e) {
sort(t, n) {
e.onSortChange?.({
column: t,
- direction: n ?? (e.sortDescriptor?.column === t ? Oie[e.sortDescriptor.direction] : "ascending")
+ direction: n ?? (e.sortDescriptor?.column === t ? yie[e.sortDescriptor.direction] : "ascending")
});
},
expandedKeys: d,
@@ -31069,7 +31069,7 @@ function kie(e) {
treeColumn: o
};
}
-function Aie(e, t) {
+function xie(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 +31079,7 @@ function Aie(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Table.mjs
-var jie = class extends Rf {
+var Sie = class extends Rf {
withExpandedKeys(e) {
let t = this.clone();
return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;
@@ -31094,7 +31094,7 @@ var jie = class extends Rf {
}
get body() {
for (let e of this) if (e.type === "tablebody") return e;
- return new RD(-2);
+ return new qD(-2);
}
commit(e, t, n = !1) {
this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];
@@ -31120,7 +31120,7 @@ var jie = 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 = jD(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 = 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");
}
get columnCount() {
return this.columns.length;
@@ -31201,11 +31201,11 @@ var jie = class extends Rf {
return r.join(" ");
}
constructor(...e) {
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new FD(-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 WD(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();
}
-}, Mie = /*#__PURE__*/ (0, I.createContext)(null), Nie = /*#__PURE__*/ (0, I.createContext)(null), MD = /*#__PURE__*/ (0, I.createContext)(null), ND = /*#__PURE__*/ (0, I.createContext)(null), Pie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, Nie);
- let n = LE(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, I.useMemo)(() => ({
+}, 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)(() => ({
selectionBehavior: i === "none" ? null : r,
selectionMode: i,
disallowEmptySelection: a,
@@ -31215,26 +31215,26 @@ var jie = class extends Rf {
i,
a,
o
- ]), c = /*#__PURE__*/ I.createElement(Lie.Provider, { value: s }, /*#__PURE__*/ I.createElement(zh, e));
+ ]), c = /*#__PURE__*/ I.createElement(Oie.Provider, { value: s }, /*#__PURE__*/ I.createElement(zh, e));
return /*#__PURE__*/ I.createElement(Dh, {
content: c,
- createCollection: () => new jie()
- }, (r) => /*#__PURE__*/ I.createElement(Iie, {
+ createCollection: () => new Sie()
+ }, (r) => /*#__PURE__*/ I.createElement(Die, {
props: e,
forwardedRef: t,
selectionState: n,
collection: r
}));
-}), Fie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}), Eie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.table, {
+ }) : /*#__PURE__*/ I.createElement(NT.table, {
...e,
ref: t
});
-}), PD = {
+}), UD = {
expand: {
ltr: "ArrowRight",
rtl: "ArrowLeft"
@@ -31244,26 +31244,26 @@ var jie = class extends Rf {
rtl: "ArrowRight"
}
};
-function Iie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
- [e, t] = bT(e, t, TT);
- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, I.useContext)(Mie);
+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] = z_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);
+ let [l, u] = H_(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 = kie({
+ let d = bie({
...s,
collection: r,
children: void 0,
UNSAFE_selectionState: n,
expandedKeys: l,
onExpandedChange: u
- }), f = Aie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(AT), { dragAndDropHooks: _ } = e, { gridProps: v } = Rte({
+ }), f = xie(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, I.useContext)(zT), { dragAndDropHooks: _ } = e, { gridProps: v } = Ite({
...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 } = cg(), [k] = (0, I.useState)(() => new wie());
+ let S, C, w, T = !1, E = null, D = (0, I.useRef)(null), { direction: O } = lg(), [k] = (0, I.useState)(() => new hie());
if (b && _) {
S = _.useDraggableCollectionState({
collection: f.collection,
@@ -31278,7 +31278,7 @@ function Iie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
collection: f.collection,
selectionManager: y
});
- let e = new ev({
+ let e = new rv({
collection: f.collection,
disabledKeys: y.disabledKeys,
disabledBehavior: y.disabledBehavior,
@@ -31298,12 +31298,12 @@ function Iie({ 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 === PD.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === PD.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(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);
}
}
}, C, t), T = C.isDropTarget({ type: "root" });
}
- let { focusProps: A, isFocused: j, isFocusVisible: M } = oy(), N = vT({
+ let { focusProps: A, isFocused: j, isFocusVisible: M } = cy(), N = DT({
...e,
children: void 0,
defaultClassName: "react-aria-Table",
@@ -31319,19 +31319,19 @@ function Iie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
tableLayout: "fixed",
width: "min-content"
}));
- let te = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(_T, { values: [
- [MD, f],
- [ND, F],
- [EE, {
+ let te = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(ET, { values: [
+ [VD, f],
+ [HD, F],
+ [FE, {
dragAndDropHooks: _,
dragState: S,
dropState: C
}],
- [DE, { render: qie }],
- [TT, null],
- [ET, null]
- ] }, /*#__PURE__*/ I.createElement(Vg, null, /*#__PURE__*/ I.createElement(Fie, {
+ [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,
ref: t,
@@ -31341,46 +31341,46 @@ function Iie({ props: e, forwardedRef: t, selectionState: n, collection: r }) {
"data-drop-target": T || void 0,
"data-focused": j || void 0,
"data-focus-visible": M || void 0
- }, /*#__PURE__*/ I.createElement(jE, null, /*#__PURE__*/ I.createElement(g, {
+ }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(g, {
collection: f.collection,
scrollRef: c?.scrollRef ?? t,
- persistedKeys: kE(y, _, C)
+ persistedKeys: RE(y, _, C)
})))), E);
}
-var Lie = /*#__PURE__*/ (0, I.createContext)(null), FD = class extends Nf {
+var Oie = /*#__PURE__*/ (0, I.createContext)(null), WD = class extends Nf {
static {
this.type = "tableheader";
}
-}, Rie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}, kie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.thead, {
+ }) : /*#__PURE__*/ I.createElement(NT.thead, {
...e,
ref: t
});
-}), ID = /*#__PURE__*/ Ih(FD, (e, t) => {
- let n = (0, I.useContext)(MD).collection, r = Uf({
+}), GD = /*#__PURE__*/ Ih(WD, (e, t) => {
+ let n = (0, I.useContext)(VD).collection, r = Uf({
items: n.headerRows,
children: (0, I.useCallback)((e) => {
switch (e.type) {
- case "headerrow": return /*#__PURE__*/ I.createElement(Bie, { item: e });
+ case "headerrow": return /*#__PURE__*/ I.createElement(jie, { item: e });
default: throw Error("Unsupported node type in TableHeader: " + e.type);
}
}, [])
- }), { rowGroupProps: i } = $x(), { hoverProps: a, isHovered: o } = uy({
+ }), { rowGroupProps: i } = tS(), { hoverProps: a, isHovered: o } = fy({
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), s = vT({
+ }), s = DT({
...e,
children: void 0,
defaultClassName: "react-aria-TableHeader",
values: { isHovered: o }
});
- return /*#__PURE__*/ I.createElement(Rie, {
- ...H(gg(e, { global: !0 }), i, a),
+ return /*#__PURE__*/ I.createElement(kie, {
+ ...H(_g(e, { global: !0 }), i, a),
...s,
ref: t,
"data-hovered": o || void 0
@@ -31388,8 +31388,8 @@ var Lie = /*#__PURE__*/ (0, I.createContext)(null), FD = class extends Nf {
}, (e) => /*#__PURE__*/ I.createElement(zh, {
dependencies: e.dependencies,
items: e.columns
-}, e.children)), zie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
+}, e.children)), Aie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
return n ? /*#__PURE__*/ I.createElement("div", {
...e,
ref: t
@@ -31398,41 +31398,41 @@ var Lie = /*#__PURE__*/ (0, I.createContext)(null), FD = class extends Nf {
ref: t
});
});
-function Bie({ item: e }) {
- let t = (0, I.useRef)(null), n = (0, I.useContext)(MD), { isVirtualized: r, CollectionBranch: i } = (0, I.useContext)(AT), { rowProps: a } = Hte({
+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({
node: e,
isVirtualized: r
- }, n, t), { checkboxProps: o } = Yte(n);
- return /*#__PURE__*/ I.createElement(zie, {
+ }, n, t), { checkboxProps: o } = qte(n);
+ return /*#__PURE__*/ I.createElement(Aie, {
...a,
ref: t
- }, /*#__PURE__*/ I.createElement(_T, { values: [[BT, { slots: { selection: o } }], [VT, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [[YT, { slots: { selection: o } }], [XT, { slots: { selection: o } }]] }, /*#__PURE__*/ I.createElement(i, {
collection: n.collection,
parent: e
})));
}
-var Vie = class extends Nf {
+var Mie = class extends Nf {
static {
this.type = "column";
}
-}, Hie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}, Nie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.th, {
+ }) : /*#__PURE__*/ I.createElement(NT.th, {
...e,
ref: t
});
-}), LD = /*#__PURE__*/ Fh(Vie, (e, t, n) => {
- let r = uh(t), i = (0, I.useContext)(MD), { isVirtualized: a } = (0, I.useContext)(AT), { columnHeaderProps: o, isPressed: s } = Vte({
+}), 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({
node: n,
isVirtualized: a,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = oy(), d = (0, I.useContext)(ND), f = !1;
+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = cy(), d = (0, I.useContext)(HD), f = !1;
d && (f = d.resizingColumn === n.key);
- let { hoverProps: p, isHovered: m } = uy({ isDisabled: !e.allowsSorting }), h = vT({
+ let { hoverProps: p, isHovered: m } = fy({ isDisabled: !e.allowsSorting }), h = DT({
...e,
id: void 0,
children: n.rendered,
@@ -31458,8 +31458,8 @@ var Vie = class extends Nf {
...g,
width: d.getColumnWidth(n.key)
});
- let _ = gg(e, { global: !0 });
- return delete _.id, /*#__PURE__*/ I.createElement(Hie, {
+ let _ = _g(e, { global: !0 });
+ return delete _.id, /*#__PURE__*/ I.createElement(Nie, {
...H(_, o, u, p),
...h,
style: g,
@@ -31471,28 +31471,28 @@ var Vie = 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(_T, { values: [[Uie, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [[Pie, {
column: n,
triggerRef: r
- }], [AT, OT]] }, h.children));
-}), Uie = /*#__PURE__*/ (0, I.createContext)(null), RD = class extends Pf {
+ }], [zT, LT]] }, h.children));
+}), Pie = /*#__PURE__*/ (0, I.createContext)(null), qD = class extends Pf {
static {
this.type = "tablebody";
}
-}, Wie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}, Fie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.tbody, {
+ }) : /*#__PURE__*/ I.createElement(NT.tbody, {
...e,
ref: t
});
-}), zD = /*#__PURE__*/ Ih(RD, (e, t, n) => {
- let r = (0, I.useContext)(MD), { isVirtualized: i } = (0, I.useContext)(AT), a = r.collection, { CollectionBranch: o } = (0, I.useContext)(AT), { dragAndDropHooks: s, dropState: c } = (0, I.useContext)(EE), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {
+}), 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 = {
isDropTarget: u,
isEmpty: d
- }, p = vT({
+ }, p = DT({
...e,
id: void 0,
children: void 0,
@@ -31501,25 +31501,25 @@ var Vie = 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(VD, {
+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ I.createElement(XD, {
role: "row",
...t,
style: r
- }, /*#__PURE__*/ I.createElement(UD, {
+ }, /*#__PURE__*/ I.createElement(QD, {
role: "rowheader",
...n,
style: r
}, e.renderEmptyState(f)));
}
- let { rowGroupProps: g } = $x(), _ = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(Wie, {
+ let { rowGroupProps: g } = tS(), _ = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(Fie, {
...H(_, p, g),
ref: t,
"data-empty": d || void 0
- }, l && /*#__PURE__*/ I.createElement(Qie, null), /*#__PURE__*/ I.createElement(o, {
+ }, l && /*#__PURE__*/ I.createElement(Uie, null), /*#__PURE__*/ I.createElement(o, {
collection: a,
parent: n,
- renderDropIndicator: OE(s, c)
+ renderDropIndicator: LE(s, c)
}), m);
});
(class extends Pf {
@@ -31527,7 +31527,7 @@ var Vie = class extends Nf {
this.type = "tablefooter";
}
});
-var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gie = class extends Nf {
+var YD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Iie = class extends Nf {
static {
this.type = "item";
}
@@ -31539,31 +31539,31 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
}
return null;
}
-}, VD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}, XD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.tr, {
+ }) : /*#__PURE__*/ I.createElement(NT.tr, {
...e,
ref: t
});
-}), HD = /*#__PURE__*/ Ih(Gie, (e, t, n) => {
- let r = uh(t), i = (0, I.useContext)(MD), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, I.useContext)(EE), { isVirtualized: c, CollectionBranch: l } = (0, I.useContext)(AT), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = Gte({
+}), 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({
node: n,
shouldSelectOnPressUp: !!o,
isVirtualized: c
- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = oy(), { isFocusVisible: _, focusProps: v } = oy({ within: !0 }), { hoverProps: y, isHovered: b } = uy({
+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = cy(), { isFocusVisible: _, focusProps: v } = cy({ within: !0 }), { hoverProps: y, isHovered: b } = fy({
isDisabled: !p.allowsSelection && !p.hasAction && !u,
onHoverStart: e.onHoverStart,
onHoverChange: e.onHoverChange,
onHoverEnd: e.onHoverEnd
- }), { checkboxProps: x } = Jte({ key: n.key }, i), S;
+ }), { checkboxProps: x } = Kte({ 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 } = U_();
+ let C, w = (0, I.useRef)(null), { visuallyHiddenProps: T } = K_();
s && a && (C = a.useDropIndicator({ target: {
type: "item",
key: n.key,
@@ -31573,7 +31573,7 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
(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 = vT({
+ 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({
...k,
id: void 0,
defaultClassName: "react-aria-Row",
@@ -31594,11 +31594,11 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
isExpanded: j,
level: n.level + 1
}
- }), N = gg(e, { global: !0 });
- return delete N.id, delete N.onClick, /*#__PURE__*/ I.createElement(I.Fragment, null, C && !C.isHidden && /*#__PURE__*/ I.createElement(VD, {
+ }), 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, {
role: "row",
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(UD, {
+ }, /*#__PURE__*/ I.createElement(QD, {
role: "gridcell",
colSpan: i.collection.columnCount,
style: { padding: 0 }
@@ -31607,7 +31607,7 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
...T,
...C.dropIndicatorProps,
ref: w
- }))), /*#__PURE__*/ I.createElement(VD, {
+ }))), /*#__PURE__*/ I.createElement(XD, {
...H(N, M, d, g, y, S?.dragProps, v),
ref: r,
"data-disabled": p.isDisabled || void 0,
@@ -31623,17 +31623,17 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
"data-expanded": j || void 0,
"data-has-child-items": A || void 0,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(_T, { values: [
- [BT, { slots: {
- [gT]: {},
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [YT, { slots: {
+ [TT]: {},
selection: x
} }],
- [VT, { slots: {
- [gT]: {},
+ [XT, { slots: {
+ [TT]: {},
selection: x
} }],
- [NT, { slots: {
- [gT]: {},
+ [HT, { slots: {
+ [TT]: {},
chevron: f,
drag: {
...S?.dragButtonProps,
@@ -31641,8 +31641,8 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
style: { pointerEvents: "none" }
}
} }],
- [ME, { isSelected: p.isSelected }],
- [BD, { isFocusVisibleWithinRow: _ }]
+ [VE, { isSelected: p.isSelected }],
+ [YD, { isFocusVisibleWithinRow: _ }]
] }, /*#__PURE__*/ I.createElement(l, {
collection: i.collection,
parent: n
@@ -31655,29 +31655,29 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
items: e.columns,
idScope: e.id
}, e.children);
-}), Kie = class extends Nf {
+}), Lie = class extends Nf {
static {
this.type = "cell";
}
-}, UD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}, QD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.td, {
+ }) : /*#__PURE__*/ I.createElement(NT.td, {
...e,
ref: t
});
-}), WD = /*#__PURE__*/ Fh(Kie, (e, t, n) => {
- let r = uh(t), i = (0, I.useContext)(MD), { dragState: a } = (0, I.useContext)(EE), { isVirtualized: o } = (0, I.useContext)(AT);
+}), $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);
n.column = i.collection.columns[n.index];
- let { gridCellProps: s, isPressed: c } = zte({
+ let { gridCellProps: s, isPressed: c } = Lte({
node: n,
shouldSelectOnPressUp: !!a,
isVirtualized: o,
focusMode: e.focusMode,
allowsArrowNavigation: e.allowsArrowNavigation
- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = oy(), { hoverProps: f, isHovered: p } = uy({}), { isFocusVisibleWithinRow: m } = (0, I.useContext)(BD), 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 = vT({
+ }, 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({
...e,
id: void 0,
defaultClassName: "react-aria-Cell",
@@ -31696,8 +31696,8 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
level: _.level + 1,
isTreeColumn: n.column.key === i.treeColumn
}
- }), S = gg(e, { global: !0 });
- return delete S.id, /*#__PURE__*/ I.createElement(UD, {
+ }), S = _g(e, { global: !0 });
+ return delete S.id, /*#__PURE__*/ I.createElement(QD, {
...H(S, x, s, d, f),
ref: r,
"data-focused": l || void 0,
@@ -31711,14 +31711,14 @@ var BD = /*#__PURE__*/ (0, I.createContext)({ isFocusVisibleWithinRow: !1 }), Gi
"data-level": _.level + 1,
"data-tree-column": n.column.key === i.treeColumn || void 0,
"data-disabled": b || void 0
- }, /*#__PURE__*/ I.createElement(AT.Provider, { value: OT }, x.children));
+ }, /*#__PURE__*/ I.createElement(zT.Provider, { value: LT }, x.children));
});
-function qie(e, t) {
+function Rie(e, t) {
t = uh(t);
- let { dragAndDropHooks: n, dropState: r } = (0, I.useContext)(EE), i = (0, I.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);
+ 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);
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(Zie, {
+ return /*#__PURE__*/ I.createElement(Hie, {
...e,
dropIndicatorProps: a,
isDropTarget: s,
@@ -31727,40 +31727,40 @@ function qie(e, t) {
ref: t
});
}
-var Jie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+var zie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.tr, {
+ }) : /*#__PURE__*/ I.createElement(NT.tr, {
...e,
ref: t
});
-}), Yie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- let { isVirtualized: n } = (0, I.useContext)(AT);
- return n ? /*#__PURE__*/ I.createElement(wT.div, {
+}), Bie = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ let { isVirtualized: n } = (0, I.useContext)(zT);
+ return n ? /*#__PURE__*/ I.createElement(NT.div, {
...e,
ref: t
- }) : /*#__PURE__*/ I.createElement(wT.td, {
+ }) : /*#__PURE__*/ I.createElement(NT.td, {
...e,
ref: t
});
});
-function Xie(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, I.useContext)(MD), { visuallyHiddenProps: c } = U_(), l = vT({
+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({
...o,
defaultClassName: "react-aria-DropIndicator",
defaultStyle: { "--table-row-level": a + 1 },
values: { isDropTarget: r }
});
- return /*#__PURE__*/ I.createElement(Jie, {
- ...gg(e, { global: !0 }),
+ return /*#__PURE__*/ I.createElement(zie, {
+ ..._g(e, { global: !0 }),
...l,
role: "row",
ref: t,
"data-drop-target": r || void 0,
"aria-level": a
- }, /*#__PURE__*/ I.createElement(Yie, {
+ }, /*#__PURE__*/ I.createElement(Bie, {
role: "gridcell",
colSpan: s.collection.columnCount,
style: { padding: 0 }
@@ -31771,14 +31771,14 @@ function Xie(e, t) {
ref: i
}), l.children));
}
-var Zie = /*#__PURE__*/ (0, I.forwardRef)(Xie);
-function Qie() {
- let e = (0, I.useContext)(MD), { dragAndDropHooks: t, dropState: n } = (0, I.useContext)(EE), r = (0, I.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = U_();
- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ I.createElement(VD, {
+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, {
role: "row",
"aria-hidden": i["aria-hidden"],
style: { height: 0 }
- }, /*#__PURE__*/ I.createElement(UD, {
+ }, /*#__PURE__*/ I.createElement(QD, {
role: "gridcell",
colSpan: e.collection.columnCount,
style: { padding: 0 }
@@ -31790,8 +31790,8 @@ function Qie() {
})));
}
Fh(Ff, function(e, t, n) {
- let r = (0, I.useContext)(MD), { isVirtualized: i } = (0, I.useContext)(AT), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, I.useRef)(null);
- GE((0, I.useMemo)(() => ({
+ 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)(() => ({
onLoadMore: o,
collection: r?.collection,
sentinelRef: u,
@@ -31801,7 +31801,7 @@ Fh(Ff, function(e, t, n) {
s,
r?.collection
]), u);
- let d = vT({
+ let d = DT({
...c,
id: void 0,
children: n.rendered,
@@ -31809,10 +31809,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(VD, {
+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(XD, {
style: { height: 0 },
- inert: PE(!0)
- }, /*#__PURE__*/ I.createElement(UD, { style: {
+ inert: UE(!0)
+ }, /*#__PURE__*/ I.createElement(QD, { style: {
padding: 0,
border: 0
} }, /*#__PURE__*/ I.createElement("div", {
@@ -31823,14 +31823,14 @@ Fh(Ff, function(e, t, n) {
height: 1,
width: 1
}
- }))), a && d.children && /*#__PURE__*/ I.createElement(VD, {
- ...H(gg(e, { global: !0 }), f),
+ }))), a && d.children && /*#__PURE__*/ I.createElement(XD, {
+ ...H(_g(e, { global: !0 }), f),
...d,
role: "row",
ref: t,
"aria-level": n.level + 1,
"data-level": n.level + 1
- }, /*#__PURE__*/ I.createElement(UD, {
+ }, /*#__PURE__*/ I.createElement(QD, {
role: "rowheader",
...p,
style: m
@@ -31838,8 +31838,8 @@ Fh(Ff, function(e, t, n) {
});
//#endregion
//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
-function $ie(e) {
- let [t, n] = z_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, I.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = UE({
+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({
...e,
selectionMode: "single",
disallowEmptySelection: !0,
@@ -31862,24 +31862,24 @@ function $ie(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
-function eae(e) {
- let t = $ie({
+function Gie(e) {
+ let t = Wie({
...e,
onSelectionChange: e.onSelectionChange ? (t) => {
t != null && e.onSelectionChange?.(t);
} : void 0,
suppressTextValueWarning: !0,
- defaultSelectedKey: e.defaultSelectedKey ?? GD(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ defaultSelectedKey: e.defaultSelectedKey ?? eO(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 = GD(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 = 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;
}), {
...t,
isDisabled: e.isDisabled || !1
};
}
-function GD(e, t) {
+function eO(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 +31889,24 @@ function GD(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Tabs.mjs
-var KD = /*#__PURE__*/ (0, I.createContext)(null), qD = /*#__PURE__*/ (0, I.createContext)(null), JD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- [e, t] = bT(e, t, KD);
+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);
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(tae, {
+ }) : n, [n, r]), /*#__PURE__*/ I.createElement(Dh, { content: n }, (n) => /*#__PURE__*/ I.createElement(Kie, {
props: e,
collection: n,
tabsRef: t
}));
});
-function tae({ props: e, tabsRef: t, collection: n }) {
- let { orientation: r = "horizontal" } = e, i = eae({
+function Kie({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Gie({
...e,
collection: n,
children: void 0
- }), { focusProps: a, isFocused: o, isFocusVisible: s } = oy({ within: !0 }), c = (0, I.useMemo)(() => ({
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = cy({ within: !0 }), c = (0, I.useMemo)(() => ({
orientation: r,
isFocusWithin: o,
isFocusVisible: s
@@ -31914,12 +31914,12 @@ function tae({ props: e, tabsRef: t, collection: n }) {
r,
o,
s
- ]), l = vT({
+ ]), l = DT({
...e,
defaultClassName: "react-aria-Tabs",
values: c
- }), u = gg(e, { global: !0 });
- return /*#__PURE__*/ I.createElement(wT.div, {
+ }), u = _g(e, { global: !0 });
+ return /*#__PURE__*/ I.createElement(NT.div, {
...H(u, l, a),
ref: t,
slot: e.slot || void 0,
@@ -31927,20 +31927,20 @@ function tae({ props: e, tabsRef: t, collection: n }) {
"data-orientation": r,
"data-focus-visible": s || void 0,
"data-disabled": i.isDisabled || void 0
- }, /*#__PURE__*/ I.createElement(_T, { values: [[KD, e], [qD, i]] }, l.children));
+ }, /*#__PURE__*/ I.createElement(ET, { values: [[tO, e], [nO, i]] }, l.children));
}
-var YD = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- return (0, I.useContext)(qD) ? /*#__PURE__*/ I.createElement(nae, {
+var iO = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
+ return (0, I.useContext)(nO) ? /*#__PURE__*/ I.createElement(qie, {
props: e,
forwardedRef: t
}) : /*#__PURE__*/ I.createElement(zh, e);
});
-function nae({ props: e, forwardedRef: t }) {
- let n = (0, I.useContext)(qD), { CollectionRoot: r } = (0, I.useContext)(AT), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = yT(KD), o = uh(t), { tabListProps: s } = Qte({
+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({
...e,
orientation: i,
keyboardActivation: a
- }, n, o), c = vT({
+ }, n, o), c = DT({
...e,
children: null,
defaultClassName: "react-aria-TabList",
@@ -31948,30 +31948,30 @@ function nae({ props: e, forwardedRef: t }) {
orientation: i,
state: n
}
- }), l = gg(e, { global: !0 });
- return delete l.id, /*#__PURE__*/ I.createElement(wT.div, {
+ }), l = _g(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ I.createElement(NT.div, {
...H(l, c, s),
ref: o,
"data-orientation": i || void 0
- }, /*#__PURE__*/ I.createElement(jE, null, /*#__PURE__*/ I.createElement(r, {
+ }, /*#__PURE__*/ I.createElement(BE, null, /*#__PURE__*/ I.createElement(r, {
collection: n.collection,
- persistedKeys: jT(n.selectionManager.focusedKey)
+ persistedKeys: BT(n.selectionManager.focusedKey)
})));
}
-var XD = /*#__PURE__*/ Fh(class extends Nf {
+var aO = /*#__PURE__*/ Fh(class extends Nf {
static {
this.type = "item";
}
}, (e, t, n) => {
- let r = (0, I.useContext)(qD), i = uh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Xte({
+ let r = (0, I.useContext)(nO), i = uh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = Jte({
key: n.key,
...e
- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = oy(), { hoverProps: f, isHovered: p } = uy({
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = cy(), { hoverProps: f, isHovered: p } = fy({
isDisabled: s,
onHoverStart: e.onHoverStart,
onHoverEnd: e.onHoverEnd,
onHoverChange: e.onHoverChange
- }), m = vT({
+ }), m = DT({
...e,
id: void 0,
children: n.rendered,
@@ -31984,7 +31984,7 @@ var XD = /*#__PURE__*/ Fh(class extends Nf {
isPressed: c,
isHovered: p
}
- }), h = n.props.href ? wT.a : wT.div, g = gg(e, { global: !0 });
+ }), h = n.props.href ? NT.a : NT.div, g = _g(e, { global: !0 });
return delete g.id, delete g.onClick, /*#__PURE__*/ I.createElement(h, {
...H(g, m, a, l, f),
ref: i,
@@ -31994,58 +31994,58 @@ var XD = /*#__PURE__*/ Fh(class extends Nf {
"data-focus-visible": d || void 0,
"data-pressed": c || void 0,
"data-hovered": p || void 0
- }, /*#__PURE__*/ I.createElement(ME.Provider, { value: { isSelected: o } }, m.children));
-}), ZD = /*#__PURE__*/ _h(function(e, t) {
- let n = (0, I.useContext)(qD), r = uh(t), i = n.selectedKey === e.id, [a, o] = (0, I.useState)(n.selectedKey == null ? null : i);
+ }, /*#__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);
a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
- let s = ZE(r, i);
- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(rae, {
+ let s = oD(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ I.createElement(Jie, {
...e,
tabPanelRef: r,
isInitiallySelected: a || !1,
isExiting: s
});
});
-function rae(e) {
- let t = (0, I.useContext)(qD), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = $te(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = oy(), d = t.selectedKey === e.id, f = XE(r) && !i, p = vT({
+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({
...e,
defaultClassName: "react-aria-TabPanel",
values: {
isFocused: l,
isFocusVisible: u,
- isInert: PE(!d),
+ isInert: UE(!d),
isEntering: f,
isExiting: a,
state: t
}
- }), m = gg(o, { global: !0 });
+ }), m = _g(o, { global: !0 });
delete m.id;
let h = d ? H(m, s, c, p) : H(m, p);
- return /*#__PURE__*/ I.createElement(wT.div, {
+ return /*#__PURE__*/ I.createElement(NT.div, {
...h,
ref: r,
"data-focused": l || void 0,
"data-focus-visible": u || void 0,
- inert: PE(!d || e.inert),
+ inert: UE(!d || e.inert),
"data-inert": d ? void 0 : "true",
"data-entering": f || void 0,
"data-exiting": a || void 0
- }, /*#__PURE__*/ I.createElement(_T, { values: [[KD, null], [qD, null]] }, /*#__PURE__*/ I.createElement(AT.Provider, { value: OT }, p.children)));
+ }, /*#__PURE__*/ I.createElement(ET, { values: [[tO, null], [nO, null]] }, /*#__PURE__*/ I.createElement(zT.Provider, { value: LT }, p.children)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/TextArea.mjs
-var iae = /*#__PURE__*/ (0, I.createContext)({}), aae = /*#__PURE__*/ (0, I.createContext)(null), oae = /*#__PURE__*/ _h(function(e, t) {
- [e, t] = bT(e, t, aae);
- let { validationBehavior: n } = yT(zT) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, I.useRef)(null);
- [e, i] = bT(e, i, ET);
- let [a, o] = xT(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, I.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Mee({
- ...ST(e),
+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),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, I.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = vT({
+ }, [i]), h = DT({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -32054,8 +32054,8 @@ var iae = /*#__PURE__*/ (0, I.createContext)({}), aae = /*#__PURE__*/ (0, I.crea
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = gg(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ I.createElement(wT.div, {
+ }), g = _g(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ I.createElement(NT.div, {
...g,
...h,
ref: t,
@@ -32064,31 +32064,31 @@ var iae = /*#__PURE__*/ (0, I.createContext)({}), aae = /*#__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(_T, { values: [
- [MT, {
+ }, /*#__PURE__*/ I.createElement(ET, { values: [
+ [VT, {
...l,
ref: a
}],
- [WT, {
+ [$T, {
...u,
ref: m
}],
- [iae, {
+ [Yie, {
...u,
ref: m
}],
- [UT, {
+ [QT, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [LT, { slots: {
+ [KT, { slots: {
description: d,
errorMessage: f
} }],
- [RT, p]
+ [qT, p]
] }, h.children));
-}), QD = cw({
+}), sO = vw({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -32109,21 +32109,21 @@ var iae = /*#__PURE__*/ (0, I.createContext)({}), aae = /*#__PURE__*/ (0, I.crea
small: "size-4 shrink-0"
}
});
-function $D({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function cO({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
ref: i,
type: r,
- className: sw(QD.base, QD.size[t], n),
+ className: _w(sO.base, sO.size[t], n),
...a,
children: /* @__PURE__ */ (0, L.jsx)(e, {
- className: QD.icon[t],
+ className: sO.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var sae = cw({
+var Qie = vw({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -32185,23 +32185,23 @@ var sae = cw({
}
}
});
-function cae({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = sae[t];
+function $ie({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = Qie[t];
return /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
- className: sw("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? sw("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: _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: sw("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: sw("border-solid bg-linear-to-t from-[43.837%]", r.chip, r.chipRadius[n], e.isSelected ? "border-accent-600 from-switch-on-chip-start to-switch-on-chip-end" : "border-border-button-default/50 from-switch-off-chip-start to-switch-off-chip-end") })
+ className: _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 eO({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)(Sie, {
+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) => sw("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)(cae, {
+ 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
@@ -32211,7 +32211,7 @@ function eO({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
})] })
});
}
-function tO(e) {
+function uO(e) {
return {
x0: 0,
y0: 0,
@@ -32219,7 +32219,7 @@ function tO(e) {
y1: e.height
};
}
-function nO(e) {
+function dO(e) {
return {
x0: Math.round(e.x0),
y0: Math.round(e.y0),
@@ -32227,40 +32227,40 @@ function nO(e) {
y1: Math.round(e.y1)
};
}
-function rO(e) {
+function fO(e) {
return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
}
-function iO(e, t) {
- if (!rO(e)) return {
+function pO(e, t) {
+ if (!fO(e)) return {
x0: 0,
y0: 0,
x1: 0,
y1: 0
};
- if (t == null || !(t > 0)) return tO(e);
+ 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 nO({
+ return dO({
x0: i,
y0: a,
x1: i + n,
y1: a + r
});
}
-function lae(e, t) {
- if (!rO(e) || !(t > 0)) return tO(e);
+function eae(e, t) {
+ if (!fO(e) || !(t > 0)) return uO(e);
let n = Math.min(e.width, e.height * t);
- return nO({
+ return dO({
x0: e.width - n,
y0: 0,
x1: e.width,
y1: e.height
});
}
-function uae(e, t, n) {
- if (!rO(t) || !(n > 0)) return tO(t);
- let r = aO(e, t), i = iO({
+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);
@@ -32271,8 +32271,8 @@ function uae(e, t, n) {
y1: r.y0 + i.y1
};
}
-function aO(e, t, n = null, r = "width") {
- if (!rO(t)) return {
+function mO(e, t, n = null, r = "width") {
+ if (!fO(t)) return {
x0: 0,
y0: 0,
x1: 0,
@@ -32281,43 +32281,43 @@ function aO(e, t, n = null, r = "width") {
let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));
n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));
let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));
- return nO({
+ return dO({
x0: s,
y0: c,
x1: s + a,
y1: c + o
});
}
-function oO(e, t, n, r) {
+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 nO({
+ return dO({
x0: o,
y0: s,
x1: o + i,
y1: s + a
});
}
-function sO(e, t, n, r = null) {
- if (!rO(n) || !(t > 0)) return e;
+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 aO({
+ return mO({
x0: i - o / 2,
y0: a - s / 2,
x1: i + o / 2,
y1: a + s / 2
}, n, r);
}
-function dae(e, t, n, r, i = null) {
+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 aO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
+ return mO(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");
}
-function fae(e, t) {
- return rO(t) ? {
+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,
@@ -32329,8 +32329,8 @@ function fae(e, t) {
height: 0
};
}
-function pae(e, t) {
- if (!rO(t)) return {
+function iae(e, t) {
+ if (!fO(t)) return {
size: "cover",
position: "50% 50%"
};
@@ -32340,7 +32340,7 @@ function pae(e, t) {
position: `${i(e.x0, t.width, n)}% ${i(e.y0, t.height, r)}%`
};
}
-function mae(e, 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}%`,
@@ -32349,25 +32349,25 @@ function mae(e, t) {
height: `${t.height / r * 100}%`
};
}
-function cO(e, t, n) {
+function _O(e, t, n) {
return t > 0 ? e * n / t : 0;
}
//#endregion
//#region src/react/components/modal-frame.tsx
-var hae = {
+var oae = {
"avatar-picker": "max-w-avatar-picker",
"cover-crop": "max-w-cover-crop",
form: "max-w-form-modal"
};
-function lO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
- return /* @__PURE__ */ (0, L.jsx)(gD, {
+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)(aie, {
- className: `flex max-h-full w-full ${hae[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,
- children: /* @__PURE__ */ (0, L.jsx)(fD, {
+ 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
@@ -32375,7 +32375,7 @@ function lO({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {
})
});
}
-function uO({ children: e }) {
+function yO({ 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",
@@ -32384,19 +32384,19 @@ function uO({ children: e }) {
}
//#endregion
//#region src/react/components/overlay-host.ts
-function gae(e) {
+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 _ae(e) {
+function cae(e) {
let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");
- return gae(n ?? t.body);
+ return sae(n ?? t.body);
}
//#endregion
//#region src/react/components/overlay-scrollbar.ts
-function dO() {
+function bO() {
let e = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
h(e.current);
@@ -32404,8 +32404,8 @@ function dO() {
}
//#endregion
//#region src/react/crop/crop-frame.tsx
-var vae = .02, fO = 1.08;
-function pO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {
+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);
@@ -32416,8 +32416,8 @@ function pO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
dx: 0,
dy: 0
} : {
- dx: cO(e, n.clientWidth, r.width),
- dy: cO(t, n.clientHeight, r.height)
+ dx: _O(e, n.clientWidth, r.width),
+ dy: _O(t, n.clientHeight, r.height)
};
}, [r]);
function f(e) {
@@ -32435,29 +32435,29 @@ function pO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
if (!n || !a || !r) return;
let o = d(e.clientX - n.x, e.clientY - n.y);
if (n.mode === "move") {
- i(oO(n.box, o.dx, o.dy, r));
+ i(hO(n.box, o.dx, o.dy, r));
return;
}
- i(dae(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));
+ 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) * vae), o = {
+ 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(oO(n, o[e.key][0], o[e.key][1], r));
+ e.preventDefault(), i(hO(n, o[e.key][0], o[e.key][1], r));
return;
}
- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(sO(n, e.key === "-" ? 1 / fO : fO, r, t)));
+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(gO(n, e.key === "-" ? 1 / xO : xO, r, t)));
}
- let g = n && r ? fae(aO(n, r, t), r) : null, _ = g ? {
+ let g = n && r ? rae(mO(n, r, t), r) : null, _ = g ? {
"--crop-l": `${g.left}%`,
"--crop-t": `${g.top}%`,
"--crop-w": `${g.width}%`,
@@ -32476,7 +32476,7 @@ function pO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
draggable: !1,
onLoad: (e) => {
let t = e.currentTarget;
- rO({
+ fO({
width: t.naturalWidth,
height: t.naturalHeight
}) && a({
@@ -32515,7 +32515,7 @@ function pO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
onPointerCancel: m,
onKeyDown: h,
onWheel: (e) => {
- !n || !r || i(sO(n, e.deltaY > 0 ? fO : 1 / fO, r, t));
+ !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", {
@@ -32537,11 +32537,11 @@ function pO({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o
}
//#endregion
//#region src/react/cover-crop/cover-crop.ts
-var yae = "/api/cover-crop", bae = (e, t) => q(yae, {
+var uae = "/api/cover-crop", dae = (e, t) => q(uae, {
code: e,
box: t
-}), mO = .704;
-function hO({ className: e }) {
+}), CO = .704;
+function wO({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -32554,7 +32554,7 @@ function hO({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-crop" })
});
}
-function xae({ code: e, coverUrl: t, box: n, onSaved: r }) {
+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,
@@ -32565,15 +32565,15 @@ function xae({ code: e, coverUrl: t, box: n, onSaved: r }) {
title: "裁剪封面:框出正封那一块",
onClick: () => a(!0),
className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",
- children: /* @__PURE__ */ (0, L.jsx)(hO, { className: "size-3.75" })
- }), /* @__PURE__ */ (0, L.jsx)(ty, {
- getContainer: () => _ae(o.current),
- children: /* @__PURE__ */ (0, L.jsx)(lO, {
+ 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)(Sae, {
+ children: /* @__PURE__ */ (0, L.jsx)(pae, {
code: e,
coverUrl: t,
box: n,
@@ -32583,9 +32583,9 @@ function xae({ code: e, coverUrl: t, box: n, onSaved: r }) {
})
})] });
}
-function Sae({ 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 = dO(), f = Pt({
- mutationFn: (t) => bae(e, t),
+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();
}
@@ -32597,19 +32597,19 @@ function Sae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
y0: n.y0,
x1: n.x1,
y1: n.y1
- } : lae(e, mO);
- c(aO(t, e, null));
+ } : 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)(uO, { children: /* @__PURE__ */ (0, L.jsx)(hO, { className: "size-6" }) }),
+ /* @__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)(IT, {
+ /* @__PURE__ */ (0, L.jsx)(GT, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "裁剪封面"
@@ -32624,8 +32624,8 @@ function Sae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
- icon: cS,
+ /* @__PURE__ */ (0, L.jsx)(cO, {
+ icon: uS,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -32635,24 +32635,24 @@ function Sae({ code: e, coverUrl: t, box: n, onSaved: r, close: 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)(pO, {
+ children: /* @__PURE__ */ (0, L.jsx)(SO, {
src: t,
- aspect: l ? mO : null,
+ aspect: l ? CO : null,
box: s,
size: a,
label: `${e} 的正封取景框`,
onSize: (e) => {
- rO(e) && p(e);
+ fO(e) && p(e);
},
onBox: c
})
}),
/* @__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)(eO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(lO, {
isSelected: l,
onChange: (e) => {
- u(e), e && s && a && c(aO(s, a, mO));
+ u(e), e && s && a && c(mO(s, a, CO));
},
children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
@@ -32681,32 +32681,32 @@ function Sae({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {
}
//#endregion
//#region src/react/media-sources.ts
-var Cae = "/api/sources", gO = ["media-sources"], _O = (e) => hw(Cae, e);
-async function vO(e) {
+var mae = "/api/sources", TO = ["media-sources"], EO = (e) => Tw(mae, e);
+async function DO(e) {
await X.fetchQuery({
- queryKey: gO,
- queryFn: () => _O(e)
+ queryKey: TO,
+ queryFn: () => EO(e)
});
}
-var wae = [
+var hae = [
"local",
"115",
"pikpak"
-], Tae = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Eae = "/api/duplicates?limit=120", yO = ["duplicates"], Dae = "/api/batch", bO = (e) => hw(Eae, e);
-async function Oae(e) {
+], 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: yO,
- queryFn: () => bO(e)
- }), vO(e)]);
+ queryKey: OO,
+ queryFn: () => kO(e)
+ }), DO(e)]);
}
-var xO = {
+var AO = {
largest: "最大的一个",
longest: "最长的一个",
115: "115(没有则留最大)",
pikpak: "PikPak(没有则留最大)",
all: "零个文件"
-}, kae = (e, t) => t.filter((t) => e.some((e) => e.location === t)), SO = (e, t) => kae(e, t).filter((t) => e.some((e) => e.location !== t)), Aae = (e, t) => t.filter((t) => e.some((e) => SO(e.files, [t]).length));
-function jae(e, t) {
+}, 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") {
@@ -32725,47 +32725,47 @@ function jae(e, t) {
}
return n;
}
-function Mae(e, t) {
+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);
}
-async function CO(e, t) {
- for (let n = 0; n < e.length; n += 200) await q(Dae, {
+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
});
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var wO = "/api/library-processing", TO = ["library-processing"], EO = (e) => hw(wO, e);
-async function DO(e) {
+var NO = "/api/library-processing", PO = ["library-processing"], FO = (e) => Tw(NO, e);
+async function IO(e) {
await X.fetchQuery({
- queryKey: TO,
- queryFn: () => EO(e)
+ queryKey: PO,
+ queryFn: () => FO(e)
});
}
-var Nae = 2e3, Pae = 1e4, OO = "连接中断,正在重新读取处理进度";
-function Fae(e, t) {
- return e?.status === "running" ? Nae : t ? Pae : !1;
+var wae = 2e3, Tae = 1e4, LO = "连接中断,正在重新读取处理进度";
+function Eae(e, t) {
+ return e?.status === "running" ? wae : t ? Tae : !1;
}
-var Iae = {
+var Dae = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, kO = {
+}, RO = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function Lae(e) {
- let t = Object.entries(e).filter(([e, t]) => kO[e] && t > 0).map(([e, t]) => `${kO[e]} ${t} 部`);
+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 AO(e) {
- let t = Iae[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+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 Rae(e) {
+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} 项`,
@@ -32779,21 +32779,21 @@ function Rae(e) {
log: e.issues_log || ""
} : null;
}
-var jO = "peach.library-processing.announced", zae = 120;
-function MO(e, t, n) {
+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 < zae;
+ 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(jO) === e.job_id) return;
- e.job_id && localStorage.setItem(jO, e.job_id);
+ 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} 条`);
}
}
//#endregion
//#region src/react/media-repair/media-repair.ts
-var NO = "/api/media-repair", PO = ["media-repair"], FO = ["media-repair", "libraries"], IO = {
+var VO = "/api/media-repair", HO = ["media-repair"], UO = ["media-repair", "libraries"], Mae = {
status: "idle",
library: "",
stage: "",
@@ -32805,33 +32805,33 @@ var NO = "/api/media-repair", PO = ["media-repair"], FO = ["media-repair", "libr
missing_tool: 0,
skipped: 0,
message: ""
-}, LO = (e) => hw(NO, e), RO = async (e) => (await hw("/api/libraries", e)).libraries || [];
-async function Bae(e) {
+}, WO = (e) => Tw(VO, e), GO = async (e) => (await Tw("/api/libraries", e)).libraries || [];
+async function Nae(e) {
await Promise.all([X.fetchQuery({
- queryKey: PO,
- queryFn: () => LO(e)
+ queryKey: HO,
+ queryFn: () => WO(e)
}), X.fetchQuery({
- queryKey: FO,
- queryFn: () => RO(e)
+ queryKey: UO,
+ queryFn: () => GO(e)
})]);
}
-var zO = (e) => Number(e).toLocaleString();
-function Vae(e) {
+var KO = (e) => Number(e).toLocaleString();
+function qO(e) {
if (e.status === "running") {
- let t = e.total ? `${zO(e.checked)} / ${zO(e.total)}` : "准备中";
+ 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 ? `修好 ${zO(e.repaired)} 部,${zO(e.failed)} 部修不了` : `修好 ${zO(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${KO(e.repaired)} 部,${KO(e.failed)} 部修不了` : `修好 ${KO(e.repaired)} 部` : "";
}
-var BO = (e) => `${zO(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, VO = "/api/quality-goals?limit=200", HO = ["quality-goals"], UO = (e) => hw(VO, e);
-async function WO(e) {
+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: HO,
- queryFn: () => UO(e)
+ queryKey: JO,
+ queryFn: () => YO(e)
});
}
-var Hae = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function GO(e, t, n = 1) {
+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;
@@ -32851,21 +32851,21 @@ function GO(e, t, n = 1) {
t
];
}
-function KO(e, t) {
+function $O(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function qO(e, t) {
+function ek(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
//#endregion
//#region src/selection.ts
-function Uae(e, t, n, r, i, a = i || !e.has(r)) {
+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 JO(e) {
+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);
@@ -32874,7 +32874,7 @@ function JO(e) {
}
//#endregion
//#region src/react/review/review.ts
-var Wae = "/api/review", Gae = "/api/review/decision", Kae = "/api/review/genre", YO = ["review"], XO = {
+var Lae = "/api/review", Rae = "/api/review/decision", zae = "/api/review/genre", nk = ["review"], rk = {
metadata_fields: "元数据字段",
creator_tags: "创作者标签",
studio_logos: "厂牌 Logo",
@@ -32884,15 +32884,15 @@ var Wae = "/api/review", Gae = "/api/review/decision", Kae = "/api/review/genre"
fc2_markings: "FC2 评论标记",
fc2_similarity: "FC2 跨号相似",
video_endcards: "片尾/出处证据"
-}, qae = Object.keys(XO), ZO = "metadata_fields", QO = (e) => typeof e == "string" && Object.hasOwn(XO, e), $O = {
+}, Bae = Object.keys(rk), Vae = "metadata_fields", ik = (e) => typeof e == "string" && Object.hasOwn(rk, e), Hae = {
creator_tags: "creator",
western_identity: "creator"
};
-function ek(e, t) {
+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 tk(e, t) {
+function ok(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -32909,43 +32909,43 @@ function tk(e, t) {
}
return [...n.values()];
}
-function nk(e, t, n) {
- return n && tk(e, t).find((e) => e.key === n)?.rows || e;
+function sk(e, t, n) {
+ return n && ok(e, t).find((e) => e.key === n)?.rows || e;
}
-function rk(e, t) {
- let n = KO(e.length, 20), r = qO(t, n);
+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 ik(e) {
+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 ak(e, t, n, r, i, a) {
- return Uae(e, t, n, r, i, a);
+function uk(e, t, n, r, i, a) {
+ return Iae(e, t, n, r, i, a);
}
-function ok(e, t) {
+function dk(e, t) {
return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";
}
-function sk(e, t) {
+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 ck = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";
-function Jae(e, t) {
- let n = sk(e, t), r = ck(e, t);
+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 Yae = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Xae = (e) => String(e.tags || "").split("|").filter(Boolean), Zae = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];
-function Qae(e) {
+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 lk(e, t, n, r) {
+function vk(e, t, n, r) {
let i = !!t.asset_path && t.asset_mutation_revision != null;
return {
category: e,
@@ -32961,19 +32961,19 @@ function lk(e, t, n, r) {
...i ? { expected_revision: t.asset_mutation_revision } : {}
};
}
-var $ae = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", uk = (e) => hw(Wae, e), dk = (e) => q(Gae, e), eoe = (e, t) => q(Kae, {
+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 toe(e) {
+async function Kae(e) {
await X.fetchQuery({
- queryKey: YO,
- queryFn: () => uk(e)
+ queryKey: nk,
+ queryFn: () => yk(e)
});
}
-function fk(e, t) {
+function xk(e, t) {
let n = new Set(t);
- n.size && X.setQueryData(YO, (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 : {
@@ -32989,161 +32989,161 @@ function fk(e, t) {
};
});
}
-var noe = () => X.invalidateQueries({
- queryKey: YO,
+var qae = () => X.invalidateQueries({
+ queryKey: nk,
exact: !0
});
-function roe(e, t) {
- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${JO(e.fetched_at)} 的缓存` : e?.error || t;
+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 ioe = "/api/links", pk = "/api/links/check", mk = "/api/links/prune", hk = ["links"], gk = ["links", "check"], _k = ["links", "prune"], vk = {
+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: "资料出处"
};
-async function yk(e) {
+async function Ok(e) {
let t = await e;
if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");
return t;
}
-var bk = (e) => hw(ioe, e), xk = (e) => q(pk, { status_only: !0 }, "POST", e), aoe = ({ retry: e, checkId: t }) => yk(q(pk, e ? {
+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 })), Sk = (e) => hw(mk, e), Ck = (e) => yk(q(mk, {
+} : { restart: !0 })), jk = (e) => Tw(Ck, e), Zae = (e) => Ok(q(Ck, {
confirm: !0,
check_id: e,
background: !0
-})), wk = (e) => Number(e || 0).toLocaleString(), Tk = (e) => `已删除 ${wk(e.removed)} 条;${e.marked ? `已隐退女优的 ${wk(e.marked)} 条留作不可点的记录;` : ""}保留 ${wk(e.recovered)} 条未确认失效的链接。`;
-function Ek(e) {
+})), 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 ? "已重验" : "已检查"} ${wk(e.checked)} / ${wk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
+ return e.total ? `${t ? "已重验" : "已检查"} ${Mk(e.checked)} / ${Mk(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";
}
//#endregion
//#region src/react/data-cleanup/organize.ts
-var Dk = "/api/organize", Ok = "/api/organize/preview", kk = "/api/organize/apply", Ak = "/api/organize/rollback", jk = "/api/settings", Mk = ["organize"], Nk = (e) => hw(Dk, e);
-async function Pk(e) {
+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: Mk,
- queryFn: () => Nk(e)
+ queryKey: Pk,
+ queryFn: () => Fk(e)
});
}
-var Fk = (e) => q(Ok, e), Ik = (e) => e.kind === "apply" ? q(kk, {
+var Lk = (e) => q(toe, e), Rk = (e) => e.kind === "apply" ? q(noe, {
...e.request,
confirm: !0
-}) : q(Ak, { confirm: !0 });
-async function Lk(e) {
- X.setQueryData(Mk, (t) => t && {
+}) : q(roe, { confirm: !0 });
+async function zk(e) {
+ X.setQueryData(Pk, (t) => t && {
...t,
templates: e
});
try {
- await q(jk, { organizeTemplates: e });
+ await q(Nk, { organizeTemplates: e });
} catch {}
}
-var Rk = (e, t) => e && {
+var Bk = (e, t) => e && {
...e,
...t
-}, zk = /目录模板|分隔符|盘符|`\.`/;
-function Bk(e) {
+}, Vk = /目录模板|分隔符|盘符|`\.`/;
+function Hk(e) {
let t = String(e || "");
return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);
}
-var Vk = (e) => Number(e || 0).toLocaleString();
-function Hk(e) {
- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Vk(t)}`).join(" · ");
- return Number(e.counts?.change || 0) ? `${Vk(e.counts.change)} 个文件会改名或移动,${Vk(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;
+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 Uk(e) {
+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 ? `已退回 ${Vk(r)} 个文件${n ? `,${Vk(n)} 行未能退回` : ""}。` : `已整理 ${Vk(r)} 个文件${n ? `,${Vk(n)} 行未能处理` : ""}。`,
+ 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 Wk = "/api/resource-sync/scan", Gk = "/api/resource-sync/apply", Kk = ["resource-sync", "scan"], qk = ["resource-sync", "apply"], Jk = (e) => q(Wk, {
+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), Yk = () => q(Wk, {
+}, "POST", e), Zk = () => q(Kk, {
background: !0,
restart: !0
-}), Xk = (e) => hw(Gk, e), Zk = (e) => q(Gk, {
+}), Qk = (e) => Tw(qk, e), $k = (e) => q(qk, {
confirm: !0,
clean_cache: !0,
scan_id: e,
background: !0
-}), Qk = (e) => (e?.sources ?? []).some((e) => wae.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);
-async function $k(e) {
- Qk(X.getQueryData(gO)) && await Promise.all([X.fetchQuery({
- queryKey: Kk,
- queryFn: () => Jk(e)
- }), X.fetchQuery({
- queryKey: qk,
+}), 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 eA = (e) => !!(e?.missing || e?.empty || e?.cache?.files), tA = {
+var nA = (e) => !!(e?.missing || e?.empty || e?.cache?.files), rA = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, nA = (e) => Number(e || 0).toLocaleString(), ooe = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", soe = (e) => `将永久删除文件已不在盘上的 ${nA(e.missing)} 条记录和 ${nA(e.empty)} 个空文件夹,并清理 ${nA(e.cache?.files)} 个闲置缓存。这一步不可撤销。`, coe = (e) => `将永久删除文件已不在盘上的 ${nA(e.missing)} 条记录(含回收站里的)、${nA(e.empty)} 个空文件夹,并清理 ${nA(e.cache?.files)} 个闲置缓存。来源根目录保留。这一步不可撤销。`, loe = (e) => e.online ? [
- `找不到文件 · 共 ${nA(e.total)} 项`,
- e.empty ? `空文件夹 ${nA(e.empty)} 个` : "",
- e.unreadable ? `${nA(e.unreadable)} 个目录读取失败,已跳过` : ""
-].filter(Boolean).join(" · ") : `馆藏中有 ${nA(e.total)} 项`;
-function rA(e) {
+}, 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 ? `${nA(t.length)} 条记录没有删除(${o})` : "",
- n ? `${nA(n)} 个文件夹没有删除` : "",
- r.length ? `${nA(r.length)} 个缓存没有清理` : ""
+ t.length ? `${iA(t.length)} 条记录没有删除(${o})` : "",
+ n ? `${iA(n)} 个文件夹没有删除` : "",
+ r.length ? `${iA(r.length)} 个缓存没有清理` : ""
].filter(Boolean).join(",")
};
}
-var uoe = (e, t) => {
- let { rest: n } = rA(e), r = `已永久删除 ${nA(e.purged)} 条失效记录和 ${nA(e.dirs_removed)} 个空文件夹,清理 ${nA(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。`;
+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;
-}, doe = "/api/review?counts=1", iA = ["review", "counts"], foe = "/api/ads?limit=1", aA = ["junk-summary"], oA = "/api/items?state=trash&limit=1", sA = ["trash-summary"], poe = [
+}, 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", "其它"]
-], cA = (e) => hw(doe, e), lA = (e) => hw(foe, e), uA = (e) => {
+], fA = (e) => Tw(soe, e), pA = (e) => Tw(coe, e), mA = (e) => {
let t = sessionStorage.getItem("peach.library");
- return hw(t ? `${oA}&library=${encodeURIComponent(t)}` : oA, e);
-}, dA = (e) => Number(e || 0).toLocaleString();
-function moe(e) {
- let t = XO, 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 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(" · ")
};
}
-function hoe(e) {
+function doe(e) {
if (!e) return "";
- let t = poe.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${dA(e.counts[t])}`);
- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${dA(e.dismissed_total)}`), t.join(" · ");
-}
-var goe = [
- [iA, ({ signal: e }) => cA(e)],
- [HO, ({ signal: e }) => UO(e)],
- [sA, ({ signal: e }) => uA(e)],
- [hk, ({ signal: e }) => bk(e)],
- [gk, ({ signal: e }) => xk(e)],
- [_k, ({ signal: e }) => Sk(e)]
+ 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 _oe(e) {
- let t = location.hash === "#resource-sync", n = goe.map(([n, r]) => {
+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 })
@@ -33156,49 +33156,49 @@ async function _oe(e) {
await Promise.all([
...n,
X.fetchQuery({
- queryKey: aA,
- queryFn: () => lA(e)
+ queryKey: lA,
+ queryFn: () => pA(e)
}),
X.fetchQuery({
- queryKey: yO,
- queryFn: () => bO(e)
+ queryKey: OO,
+ queryFn: () => kO(e)
}),
- vO(e).then(() => $k(e)),
- DO(e),
- Bae(e),
- Pk(e)
+ DO(e).then(() => tA(e)),
+ IO(e),
+ Nae(e),
+ Ik(e)
]);
}
//#endregion
//#region src/react/components/stat-card.tsx
-var voe = [
+var moe = [
"text-chart-6",
"text-chart-5",
"text-chart-7",
"text-chart-8"
-], yoe = [
+], hoe = [
"bg-chart-6/10",
"bg-chart-5/10",
"bg-chart-7/10",
"bg-chart-8/10"
];
-function fA(e = {}) {
- return `${Cw({
+function gA(e = {}) {
+ return `${Nw({
...e,
padding: "none"
})} flex flex-col overflow-hidden pt-4 text-left`;
}
-var pA = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", boe = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";
-function mA({ interactive: e = !1 } = {}) {
- return Cw({
+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"
});
}
-var xoe = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";
-function hA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {
+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",
@@ -33231,13 +33231,13 @@ function hA({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta
})
] });
}
-function gA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
+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 ${voe[n % 4]} ${yoe[n % 4]}`,
+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${moe[n % 4]} ${hoe[n % 4]}`,
children: /* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
className: "size-4"
@@ -33259,7 +33259,7 @@ function gA({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var _A = cw({
+var xA = vw({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -33283,15 +33283,15 @@ var _A = cw({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function vA({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = sw(_A.base, _A.size[t], _A.variant[e], a), l = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+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: _A.icon[t],
+ className: xA.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, L.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, L.jsx)(r, {
- className: _A.icon[t],
+ className: xA.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -33318,7 +33318,7 @@ function vA({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var yA = [
+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",
@@ -33326,74 +33326,74 @@ var yA = [
"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(" "), Soe = "w-[266px]", Coe = "flex w-full flex-col gap-1 outline-none", bA = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), xA = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].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 woe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", Toe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Eoe = Cw({
+var boe = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", xoe = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Soe = Nw({
padding: "none",
bordered: "line",
className: "overflow-hidden"
-}), Doe = {
+}), 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"
-}, Ooe = {
+}, 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"
-}, koe = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Aoe = {
+}, 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"
-}, joe = Cw({
+}, Doe = Nw({
padding: "none",
radius: "surface",
bordered: "line",
className: "overflow-hidden"
-}), SA = "border-t border-border-button-default p-4 first:border-t-0";
-function CA({ tone: e = "neutral", status: t, children: n }) {
+}), EA = "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: `${koe} ${Aoe[e]}`,
+ 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]
});
}
-function wA({ id: e, children: t }) {
+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 TA({ id: e, gap: t = "none", children: n }) {
+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 EA({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {
+function AA({ 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: `${Eoe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
+ className: `${Soe} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
- className: Doe[e],
+ className: Coe[e],
children: a
}), i ? /* @__PURE__ */ (0, L.jsx)("footer", {
- className: Ooe[e],
+ className: woe[e],
children: i
}) : null]
});
}
//#endregion
//#region src/react/components/path-line.tsx
-function Moe({ className: e }) {
+function Ooe({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33406,8 +33406,8 @@ function Moe({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-open" })
});
}
-var Noe = "打开文件管理器失败,请重试";
-function DA({ path: e, prefix: t, className: n, onRevealed: r }) {
+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;
@@ -33418,7 +33418,7 @@ function DA({ path: e, prefix: t, className: n, onRevealed: r }) {
try {
await q("/api/reveal", { path: e }), r?.("已在资源管理器中显示");
} catch (e) {
- c.current && s(e instanceof pw ? e.message : Noe);
+ c.current && s(e instanceof Cw ? e.message : koe);
} finally {
c.current && a(!1);
}
@@ -33429,10 +33429,10 @@ function DA({ path: e, prefix: t, className: n, onRevealed: r }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, L.jsxs)("p", {
- className: sw("min-w-0 break-all", n),
+ className: _w("min-w-0 break-all", n),
children: [t, e]
- }), /* @__PURE__ */ (0, L.jsx)($D, {
- icon: Moe,
+ }), /* @__PURE__ */ (0, L.jsx)(cO, {
+ icon: Ooe,
size: "small",
className: "shrink-0",
"aria-label": "在资源管理器中显示",
@@ -33447,21 +33447,21 @@ function DA({ path: e, prefix: t, className: n, onRevealed: r }) {
}
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Poe({ className: e, children: t }) {
+function Aoe({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: sw("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: _w("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function OA({ className: e, children: t }) {
+function MA({ className: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
- className: sw("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: _w("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function kA({ label: e, description: t, children: n }) {
+function NA({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: sw("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: _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", {
@@ -33476,14 +33476,14 @@ function kA({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function AA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+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)(OA, { children: e })
+ children: /* @__PURE__ */ (0, L.jsx)(MA, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, L.jsx)(OA, { children: e }), /* @__PURE__ */ (0, L.jsx)(Poe, { children: i })] });
+ }) : /* @__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,
@@ -33498,13 +33498,13 @@ function AA({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function jA({ children: e }) {
+function FA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function MA({ divided: e = !1, children: t }) {
+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
@@ -33513,7 +33513,7 @@ function MA({ divided: e = !1, children: t }) {
children: t
});
}
-function NA({ status: e, children: t }) {
+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", {
@@ -33522,43 +33522,43 @@ function NA({ status: e, children: t }) {
}) : null, t]
});
}
-function PA({ role: e, children: t }) {
+function RA({ role: e, children: t }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function FA({ children: e }) {
+function zA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function IA({ children: e }) {
+function BA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function LA({ href: e, children: t }) {
- return /* @__PURE__ */ (0, L.jsx)(vA, {
+function VA({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, L.jsx)(SA, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: fS,
+ trailingIcon: mS,
children: t
});
}
-function RA({ children: e }) {
+function HA({ children: e }) {
return /* @__PURE__ */ (0, L.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function zA({ term: e, children: t }) {
+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", {
@@ -33570,7 +33570,7 @@ function zA({ term: e, children: t }) {
})]
});
}
-function BA({ summary: e, defaultOpen: t = !1, children: n }) {
+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) => {
@@ -33583,7 +33583,7 @@ function BA({ summary: e, defaultOpen: t = !1, children: n }) {
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)(aS, {
+ 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]
@@ -33598,7 +33598,7 @@ function BA({ summary: e, defaultOpen: t = !1, children: n }) {
})]
});
}
-function VA({ name: e }) {
+function GA({ name: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -33607,29 +33607,29 @@ function VA({ name: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: `#i-${e}` })
});
}
-function HA({ mark: e }) {
+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)(VA, { name: e });
+ }) : /* @__PURE__ */ (0, L.jsx)(GA, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function UA({ toast: e, mode: t, monitor: n }) {
+function qA({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = Nt({
- queryKey: TO,
- queryFn: ({ signal: e }) => EO(e),
- refetchInterval: (e) => Fae(e.state.data, r)
+ 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") && MO(c, e, r);
+ r && o(c), (r || t === "notice") && jae(c, e, r);
}, [
c,
t,
@@ -33642,29 +33642,29 @@ function UA({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var WA = [
+var JA = [
{
label: "扫描并补全资料",
- icon: uS,
+ icon: fS,
command: {}
},
{
label: "只扫描",
- icon: mS,
+ icon: vS,
command: { stage: "scan" }
},
{
label: "只采集",
- icon: lne,
+ icon: _S,
command: { stage: "collect" }
}
-], GA = sw(bA, xA, "text-body-2-medium"), KA = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", qA = (e) => {
+], 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(",")}。`;
-}, JA = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + qA(e);
-function YA({ busy: e, onRun: t }) {
+}, 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));
};
@@ -33673,14 +33673,14 @@ function YA({ busy: e, onRun: t }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: uS,
+ leadingIcon: fS,
onClick: () => a({}),
...Y(e),
children: "扫描并补全资料"
}), /* @__PURE__ */ (0, L.jsx)(G, {
ref: n,
iconOnly: !0,
- leadingIcon: rS,
+ leadingIcon: aS,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
@@ -33689,19 +33689,19 @@ function YA({ busy: e, onRun: t }) {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ }), /* @__PURE__ */ (0, L.jsx)(uD, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: yA,
- children: /* @__PURE__ */ (0, L.jsx)(fD, {
+ className: CA,
+ children: /* @__PURE__ */ (0, L.jsx)(xD, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: WA.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
+ children: JA.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: GA,
+ className: YA,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, L.jsx)(t, {
"aria-hidden": !0,
@@ -33711,8 +33711,8 @@ function YA({ busy: e, onRun: t }) {
})
})] });
}
-function XA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
- let a = Rae(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Lae(e.notes || {}), c = dO();
+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",
@@ -33720,7 +33720,7 @@ function XA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
e.status === "running" && e.stalled ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "处理较慢",
- children: KA
+ children: XA
}) : null,
t || e.status === "failed" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -33732,7 +33732,7 @@ function XA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
}) : 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)(BA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(WA, {
summary: a.label,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -33763,7 +33763,7 @@ function XA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
})
}), 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)(DA, {
+ children: /* @__PURE__ */ (0, L.jsx)(jA, {
path: a.log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33777,13 +33777,13 @@ function XA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
n?.status === "complete" ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "处理完成",
- children: JA(n)
+ 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)(DA, {
+ children: /* @__PURE__ */ (0, L.jsx)(jA, {
path: e.issues_log,
prefix: "完整记录:",
className: "text-caption-1-regular",
@@ -33795,38 +33795,38 @@ function XA({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {
]
});
}
-function ZA(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = UA(e), o = Pt({
- mutationFn: (e) => q(wO, e),
+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(TO, e), X.invalidateQueries({ queryKey: TO });
+ a(), X.setQueryData(PO, e), X.invalidateQueries({ queryKey: PO });
}
});
(0, I.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? K(o.error) : r.isError ? r.data ? OO : K(r.error) : "", l = o.isPending || s.status === "running", u = AO(s), d = (e) => {
+ 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)(EA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(AA, {
layout: "split",
label: "扫描与采集",
footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(vA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
href: "/scraping",
size: "small",
- trailingIcon: iS,
+ trailingIcon: oS,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, L.jsx)(vA, {
+ s.candidates ? /* @__PURE__ */ (0, L.jsx)(SA, {
href: "/review",
size: "small",
- trailingIcon: iS,
+ trailingIcon: oS,
children: "复核资料"
}) : null,
- /* @__PURE__ */ (0, L.jsx)(YA, {
+ /* @__PURE__ */ (0, L.jsx)($A, {
busy: l,
onRun: d
})
@@ -33834,14 +33834,14 @@ function ZA(e) {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(TA, { children: "扫描与采集" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "扫描与采集" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: woe
+ 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)(Aw, {
+ children: s.total ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(zw, {
label: u,
value: s.checked || 0,
max: s.total
@@ -33855,11 +33855,11 @@ function ZA(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, L.jsx)(Ew, { label: u })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: u })
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(XA, {
+ }), /* @__PURE__ */ (0, L.jsx)(ej, {
state: s,
problem: c,
settled: i,
@@ -33875,7 +33875,7 @@ function ZA(e) {
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function QA(e) {
+function nj(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -33889,7 +33889,7 @@ function QA(e) {
})
});
}
-function $A(e) {
+function rj(e) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
viewBox: "0 0 24 24",
fill: "none",
@@ -33903,7 +33903,7 @@ function $A(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function ej(e, t, n) {
+function ij(e, t, n) {
(0, I.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -33917,7 +33917,7 @@ function ej(e, t, n) {
n
]);
}
-function tj(e, t) {
+function aj(e, t) {
let n = (0, I.useRef)(!1);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -33931,33 +33931,33 @@ function tj(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var nj = (0, I.createContext)("md");
-function rj({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+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);
- ej(d, () => f(!1), [l, u]);
- let p = tj(d, l);
- return /* @__PURE__ */ (0, L.jsx)(_ie, {
+ 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: sw("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsxs)(PT, {
+ 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: sw("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)(bie, {
- className: sw("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ 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)(QA, { className: sw("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ }), /* @__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: sw(Soe, yA, "p-2", n),
- children: /* @__PURE__ */ (0, L.jsx)(Rre, {
+ className: _w(voe, CA, "p-2", n),
+ children: /* @__PURE__ */ (0, L.jsx)(kre, {
items: a,
- className: sw(Coe, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, L.jsx)(nj.Provider, {
+ className: _w(yoe, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, L.jsx)(oj.Provider, {
value: r,
children: i
})
@@ -33965,19 +33965,19 @@ function rj({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function ij({ className: e, children: t, ...n }) {
- let r = (0, I.useContext)(nj);
- return /* @__PURE__ */ (0, L.jsx)(Vre, {
+function cj({ className: e, children: t, ...n }) {
+ let r = (0, I.useContext)(oj);
+ return /* @__PURE__ */ (0, L.jsx)(Mre, {
...n,
- className: (t) => sw(bA, r === "sm" ? "px-2 py-1.5 text-body-2-medium" : "text-body-medium", (t.isFocused || t.isSelected) && "bg-dropdown-item-hover-background", t.isDisabled && "cursor-not-allowed text-text-disabled", typeof e == "function" ? e(t) : e),
+ className: (t) => _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
});
}
//#endregion
//#region src/react/background-job.ts
-var aj = 2e3, oj = (e) => e, sj = (e, t) => t;
-function cj(e) {
- let { queryKey: t, jobOf: n = oj, withJob: r = sj, idlePollMs: i } = e, [a, o] = (0, I.useState)(!1), [s, c] = (0, I.useState)(null), l = (0, I.useRef)(e);
+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;
});
@@ -33986,7 +33986,7 @@ function cj(e) {
queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),
refetchInterval: (e) => {
let t = e.state.data;
- return t !== void 0 && n(t)?.status === "running" ? aj : i ?? !1;
+ return t !== void 0 && n(t)?.status === "running" ? lj : i ?? !1;
}
}), d = Pt({
mutationFn: (e) => l.current.start(e),
@@ -34017,32 +34017,32 @@ function cj(e) {
}
//#endregion
//#region src/react/media-repair/media-repair-card.tsx
-var lj = (e) => m[e] || e, uj = (e) => X.setQueryData(PO, e);
-function dj() {
+var pj = (e) => m[e] || e, mj = (e) => X.setQueryData(HO, e);
+function hj() {
let e = Nt({
- queryKey: PO,
- queryFn: ({ signal: e }) => LO(e),
- refetchInterval: (e) => e.state.data?.status === "running" && aj
+ queryKey: HO,
+ queryFn: ({ signal: e }) => WO(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && lj
}), t = Nt({
- queryKey: FO,
- queryFn: ({ signal: e }) => RO(e)
- }), [n, r] = (0, I.useState)(""), i = jw(), a = e.data ?? IO, 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 = () => {
+ 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 () => uj(await q(NO, {
+ onConfirm: async () => mj(await q(VO, {
library: c.id,
restart: !0
}))
});
- }, u = () => void i.run("stop", (e) => q(NO, { stop: !0 }, "POST", e), uj), d = Vae(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");
+ }, 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)(EA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(AA, {
layout: "split",
label: "媒体修复",
- footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(rj, {
+ footer: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "媒体库",
className: "w-48",
selectedKey: c?.id ?? null,
@@ -34050,10 +34050,10 @@ function dj() {
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(ij, {
+ children: o.map((e) => /* @__PURE__ */ (0, L.jsxs)(cj, {
id: e.id,
textValue: e.name,
- children: [/* @__PURE__ */ (0, L.jsx)(HA, { mark: lj(e.icon) }), e.name]
+ children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: pj(e.icon) }), e.name]
}, e.id))
}), s ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: u,
@@ -34067,12 +34067,12 @@ function dj() {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(TA, { children: "媒体修复" }),
+ /* @__PURE__ */ (0, L.jsx)(kA, { children: "媒体修复" }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Toe
+ children: xoe
}),
- s && a.total ? /* @__PURE__ */ (0, L.jsx)(Aw, {
+ s && a.total ? /* @__PURE__ */ (0, L.jsx)(zw, {
label: "修复进度",
value: a.checked,
max: a.total
@@ -34096,7 +34096,7 @@ function dj() {
f && a.missing_tool ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "warning",
title: "缺少 untrunc",
- children: BO(a)
+ children: Pae(a)
}) : null,
p ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34108,7 +34108,7 @@ function dj() {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var fj = {
+var gj = {
md: {
box: "size-4",
glyph: "size-4",
@@ -34122,11 +34122,11 @@ var fj = {
gap: "gap-1.5"
}
};
-function pj({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = fj[t], c = n || r, l = o && !a;
+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: sw("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? sw("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : sw("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: _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",
@@ -34150,36 +34150,36 @@ function pj({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function mj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = fj[n];
- return /* @__PURE__ */ (0, L.jsx)(Ere, {
+function vj({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = gj[n];
+ return /* @__PURE__ */ (0, L.jsx)(_re, {
ref: r,
...i,
- className: (t) => sw("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)(pj, {
+ 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: sw(a.label, "text-text-primary"),
+ className: _w(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/table/table.tsx
-function hj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
+function yj({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: sw("w-full overflow-x-auto", n),
- children: /* @__PURE__ */ (0, L.jsx)(Pie, {
+ className: _w("w-full overflow-x-auto", n),
+ children: /* @__PURE__ */ (0, L.jsx)(Tie, {
ref: r,
...i,
- className: sw("bui-table", e === "sm" && "bui-table-sm", t)
+ className: _w("bui-table", e === "sm" && "bui-table-sm", t)
})
});
}
//#endregion
//#region src/react/components/row-click.ts
-var gj = [
+var bj = [
"a",
"button",
"input",
@@ -34192,15 +34192,15 @@ var gj = [
"[role=\"link\"]",
"[role=\"menu\"]"
].join(",");
-function _j(e, t) {
+function xj(e, t) {
let n = e.target;
if (!(n instanceof Element) || !t.contains(n)) return !1;
- let r = n.closest(gj);
+ let r = n.closest(bj);
return !r || !t.contains(r) || r === t;
}
//#endregion
//#region src/react/components/data-table-frame.tsx
-function vj({ children: e, follow: t = !1, onRowClick: n }) {
+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,
@@ -34208,15 +34208,15 @@ function vj({ children: e, follow: t = !1, onRowClick: n }) {
let t = e.target;
if (!(t instanceof Element)) return;
let r = t.closest("[role=\"row\"][data-key]");
- r && _j(e, r) && n(r.dataset.key);
+ r && xj(e, r) && n(r.dataset.key);
} : void 0,
children: e
});
}
//#endregion
//#region src/react/data-cleanup/link-manager.tsx
-var yj = sT("unlink"), bj = sT("rotate-cw"), xj = "站点返回 404 或 410,确认这个地址不存在。", Sj = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Cj = "删除前会逐条重验一次;此操作不可撤销。", wj = "暂时无法读取进度,正在重新连接…", Tj = (e) => Number(e || 0).toLocaleString();
-function Ej({ label: e, value: t, note: n }) {
+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 }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col gap-0.5",
children: [
@@ -34235,11 +34235,11 @@ function Ej({ label: e, value: t, note: n }) {
]
});
}
-function Dj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {
+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: SA,
+ className: EA,
children: [
/* @__PURE__ */ (0, L.jsxs)("h4", {
className: "mb-1 text-body-semibold text-text-primary",
@@ -34252,13 +34252,13 @@ function Dj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
className: "mb-3 text-caption-1-regular text-text-secondary",
children: n
}),
- /* @__PURE__ */ (0, L.jsx)(vj, { children: /* @__PURE__ */ (0, L.jsxs)(hj, {
+ /* @__PURE__ */ (0, L.jsx)(Sj, { children: /* @__PURE__ */ (0, L.jsxs)(yj, {
"aria-label": e,
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(ID, { children: [
- i ? /* @__PURE__ */ (0, L.jsx)(LD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(GD, { children: [
+ i ? /* @__PURE__ */ (0, L.jsx)(KD, {
id: "pick",
- children: /* @__PURE__ */ (0, L.jsx)(mj, {
+ children: /* @__PURE__ */ (0, L.jsx)(vj, {
slot: null,
"aria-label": "全选本次未访问成功的链接",
isSelected: s,
@@ -34266,44 +34266,44 @@ function Dj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
onChange: (e) => i(e ? t.map((e) => e.id) : [])
})
}) : null,
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "entity",
isRowHeader: !0,
children: "所属"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "kind",
children: "类型"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "label",
children: "标签"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "note",
children: "结果"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "url",
children: "地址"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(zD, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(HD, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(JD, { children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(ZD, {
id: e.id,
children: [
- i ? /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)(mj, {
+ 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)(WD, { children: e.entity }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: vk[e.link_kind] || e.link_kind }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: e.label || "" }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__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)(WD, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
+ /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsxs)("a", {
href: e.url,
target: "_blank",
rel: "noreferrer",
@@ -34313,7 +34313,7 @@ function Dj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
"data-middle-truncate": !0,
className: "min-w-0 truncate",
children: e.url
- }), /* @__PURE__ */ (0, L.jsx)(fS, {
+ }), /* @__PURE__ */ (0, L.jsx)(mS, {
"aria-hidden": !0,
className: "size-3.5 shrink-0"
})]
@@ -34325,40 +34325,40 @@ function Dj({ title: e, items: t, hint: n, picked: r, onPick: i, children: a })
]
});
}
-function Oj({ line: e, value: t, total: n }) {
+function Mj({ line: e, value: t, total: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: `${SA} flex flex-col gap-1.5`,
- children: n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Aw, {
+ 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)(Ew, { label: e })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: e })
});
}
-function kj() {
+function Nj() {
let e = Nt({
- queryKey: hk,
- queryFn: ({ signal: e }) => bk(e)
- }), [t, n] = (0, I.useState)([]), r = cj({
- queryKey: _k,
- queryFn: ({ signal: e }) => Sk(e),
- start: Ck,
+ 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: hk,
+ queryKey: wk,
exact: !0
}), X.invalidateQueries({
- queryKey: gk,
+ queryKey: Tk,
exact: !0
});
}
- }), i = cj({
- queryKey: gk,
- queryFn: ({ signal: e }) => xk(e),
- start: aoe,
+ }), i = fj({
+ queryKey: Tk,
+ queryFn: ({ signal: e }) => Ak(e),
+ start: Xae,
onStarted: () => {
r.dismiss(), n([]);
}
@@ -34388,7 +34388,7 @@ function kj() {
else if (v) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "success",
title: "完成",
- children: Tk(v)
+ children: Qae(v)
});
else if (y) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34398,7 +34398,7 @@ function kj() {
else if (i.query.isError && a) b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: wj
+ children: Oj
});
else if (a?.status === "failed") b = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -34408,48 +34408,48 @@ function kj() {
else if (a && a.status !== "idle") {
let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";
b = /* @__PURE__ */ (0, L.jsxs)("div", {
- className: joe,
+ className: Doe,
children: [
- a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(Oj, {
- line: Ek(a),
+ a.status === "running" ? /* @__PURE__ */ (0, L.jsx)(Mj, {
+ line: $ae(a),
value: a.checked,
total: a.total
}) : null,
- c ? /* @__PURE__ */ (0, L.jsx)(Oj, {
+ c ? /* @__PURE__ */ (0, L.jsx)(Mj, {
line: r.job?.message || "正在重验并删除失效链接…",
value: r.job?.checked,
total: r.job?.total
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Dj, {
+ /* @__PURE__ */ (0, L.jsx)(jj, {
title: "地址已失效",
items: u,
- hint: xj
+ hint: Tj
}),
- /* @__PURE__ */ (0, L.jsx)(Dj, {
+ /* @__PURE__ */ (0, L.jsx)(jj, {
title: "本次未访问成功",
items: d,
- hint: Sj,
+ 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)(CA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: bj,
+ 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: bj,
+ leadingIcon: wj,
...Y(s),
onClick: () => h(f.map((e) => e.id)),
children: `全部重试(${f.length})`
})] })
}) : null
}),
- l && u.length ? /* @__PURE__ */ (0, L.jsx)(CA, {
+ l && u.length ? /* @__PURE__ */ (0, L.jsx)(DA, {
tone: "error",
- status: Cj,
+ status: Dj,
children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "danger",
...Y(c),
@@ -34458,7 +34458,7 @@ function kj() {
})
}) : null,
l && !u.length && !d.length ? /* @__PURE__ */ (0, L.jsx)("p", {
- className: `${SA} text-body-regular text-notification-success-foreground`,
+ className: `${EA} text-body-regular text-notification-success-foreground`,
children: "全部链接均可访问。"
}) : null
]
@@ -34469,20 +34469,20 @@ function kj() {
"aria-labelledby": "link-manager-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(wA, {
+ /* @__PURE__ */ (0, L.jsx)(OA, {
id: "link-manager-title",
children: "链接管理"
}),
- /* @__PURE__ */ (0, L.jsxs)(EA, {
+ /* @__PURE__ */ (0, L.jsxs)(AA, {
layout: "split",
labelledBy: "link-manager-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: yj,
+ leadingIcon: Cj,
...Y(s),
onClick: () => h(),
children: s ? "检查中" : l ? "重新检查" : "检查死链"
}),
- children: [/* @__PURE__ */ (0, L.jsx)(TA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(kA, {
id: "link-manager-box",
gap: "small",
children: "站外链接"
@@ -34492,13 +34492,13 @@ function kj() {
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)(Ej, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Aj, {
label: "链接总数",
- value: Tj(p.total),
- note: `分布在 ${Tj(p.entities)} 个女优、厂牌与系列`
- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(Ej, {
- label: vk[e] || e,
- value: Tj(t)
+ 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",
@@ -34521,11 +34521,11 @@ function kj() {
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Aj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsxs)(yre, {
+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: sw("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ 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", {
@@ -34533,7 +34533,7 @@ function Aj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, L.jsx)(dne, {
+ n && /* @__PURE__ */ (0, L.jsx)(xS, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -34542,33 +34542,33 @@ function Aj({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function jj({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, L.jsx)(Cre, {
+function Fj({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, L.jsx)(mre, {
slot: e ? "errorMessage" : "description",
...n,
- className: sw("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: _w("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
});
}
//#endregion
//#region src/react/boardui/components/base/input/input.tsx
-var Mj = (0, I.createContext)({});
-function Nj({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, L.jsx)(Mj.Provider, {
+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)(oae, {
+ children: /* @__PURE__ */ (0, L.jsx)(Zie, {
...a,
"data-input-size": e,
- className: sw("group flex h-max w-full flex-col items-start gap-1", r),
+ className: _w("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-Nj.displayName = "TextField";
-var Pj = cw({
+Lj.displayName = "TextField";
+var Rj = vw({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -34597,44 +34597,44 @@ var Pj = cw({
].join(" "),
icon: "size-5 shrink-0"
});
-function Fj({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, I.useContext)(Mj), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, L.jsx)(Ore, {
+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 }) => sw(Pj.field, d ? Pj.fieldWithAddonSize[u] : Pj.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => _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: Pj.content,
+ className: Rj.content,
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Pj.leftSection,
+ className: Rj.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, L.jsx)(t, {
- className: Pj.icon,
+ className: Rj.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, L.jsx)(Are, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(xre, {
ref: o,
...c,
- className: sw(Pj.input, l.inputClassName, a)
+ className: _w(Rj.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, L.jsx)(n, {
- className: Pj.icon,
+ className: Rj.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Fj.displayName = "InputBase";
-function Ij({ 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)(Nj, {
+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)(Aj, {
+ e && /* @__PURE__ */ (0, L.jsx)(Pj, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(Fj, {
+ /* @__PURE__ */ (0, L.jsx)(zj, {
ref: c,
groupRef: l,
placeholder: r,
@@ -34643,28 +34643,28 @@ function Ij({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, L.jsx)(jj, {
+ t && /* @__PURE__ */ (0, L.jsx)(Fj, {
isInvalid: d,
children: t
})
] })
});
}
-Ij.displayName = "Input";
+Bj.displayName = "Input";
//#endregion
//#region src/react/data-cleanup/organize-card.tsx
-var Lj = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Rj = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", zj = 8;
-function Bj({ plan: e }) {
+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, zj).map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ 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: Bk(e.current_path)
+ children: Hk(e.current_path)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
@@ -34674,7 +34674,7 @@ function Bj({ plan: e }) {
"data-middle-truncate": !0,
title: e.target_path,
className: "min-w-0 truncate text-text-primary",
- children: Bk(e.target_path)
+ children: Hk(e.target_path)
})
]
}, e.current_path))
@@ -34683,10 +34683,10 @@ function Bj({ plan: e }) {
children: "只列出前 8 行,完整计划在计划 CSV 里。"
}) : null] });
}
-function Vj({ toast: t, failure: n }) {
+function Gj({ toast: t, failure: n }) {
let r = Nt({
- queryKey: Mk,
- queryFn: ({ signal: e }) => Nk(e)
+ 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 ?? "",
@@ -34699,8 +34699,8 @@ function Vj({ toast: t, failure: n }) {
file_template: f.file.trim(),
dir_template: f.dir.trim()
}), x = Pt({
- mutationFn: Fk,
- onSuccess: (e, t) => void Lk({
+ mutationFn: Lk,
+ onSuccess: (e, t) => void zk({
...i?.templates ?? {},
[t.location]: {
file: t.file_template,
@@ -34708,29 +34708,29 @@ function Vj({ toast: t, failure: n }) {
}
}),
onError: (e) => {
- let t = zk.test(K(e)) ? "dir" : "file";
+ let t = Vk.test(K(e)) ? "dir" : "file";
_(t), (t === "dir" ? y : v).current?.focus();
}
- }), S = cj({
- queryKey: Mk,
- queryFn: ({ signal: e }) => Nk(e),
- start: Ik,
+ }), S = fj({
+ queryKey: Pk,
+ queryFn: ({ signal: e }) => Fk(e),
+ start: Rk,
jobOf: (e) => e,
- withJob: Rk,
+ withJob: Bk,
onStarted: () => x.reset(),
onFinish: (e) => {
if (X.invalidateQueries({
- queryKey: Mk,
+ queryKey: Pk,
exact: !0
}), e.status !== "complete") return;
- let { text: r, failed: i } = Uk(e);
+ 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: Lj(E),
+ body: Vj(E),
confirmLabel: "整理文件",
onConfirm: () => S.start.mutateAsync({
kind: "apply",
@@ -34738,7 +34738,7 @@ function Vj({ toast: t, failure: n }) {
})
}), A = () => void g({
title: "回滚上一批整理",
- body: Rj,
+ body: Hj,
confirmLabel: "回滚整理",
onConfirm: () => S.start.mutateAsync({ kind: "rollback" })
}), j = null, M = S.job, N = S.outcome;
@@ -34746,7 +34746,7 @@ function Vj({ toast: t, failure: n }) {
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)(Aw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(zw, {
label: e,
value: M.checked || 0,
max: M.total
@@ -34754,14 +34754,14 @@ function Vj({ toast: t, failure: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Ew, { label: 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 } = Uk(N);
+ let { text: e, failed: t } = Gk(N);
j = /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "整理结果",
@@ -34771,16 +34771,16 @@ function Vj({ toast: t, failure: n }) {
tone: "error",
title: "整理失败",
children: K(S.start.error)
- }) : x.isPending ? j = /* @__PURE__ */ (0, L.jsx)(Ew, { label: "正在按模板算计划…" }) : x.isError ? j = /* @__PURE__ */ (0, L.jsx)(J, {
+ }) : 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: Hk(w)
- }), T ? /* @__PURE__ */ (0, L.jsx)(Bj, { plan: w }) : null] }));
- return /* @__PURE__ */ (0, L.jsxs)(EA, {
+ 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",
@@ -34804,7 +34804,7 @@ function Vj({ toast: t, failure: n }) {
}) : null
] }),
children: [
- /* @__PURE__ */ (0, L.jsx)(TA, {
+ /* @__PURE__ */ (0, L.jsx)(kA, {
id: "cleanup-organize-title",
gap: "medium",
children: "整理"
@@ -34824,20 +34824,20 @@ function Vj({ toast: t, failure: n }) {
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "mt-3 flex flex-col gap-3",
children: [
- a.length ? /* @__PURE__ */ (0, L.jsx)(rj, {
+ 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)(ij, {
+ children: a.map((t) => /* @__PURE__ */ (0, L.jsxs)(cj, {
id: t.location,
textValue: e[t.location] || t.location,
- children: [/* @__PURE__ */ (0, L.jsx)(HA, { mark: m[t.location] || "database" }), 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)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
label: "文件名模板",
placeholder: "{number}[ {title}]",
value: f.file,
@@ -34848,7 +34848,7 @@ function Vj({ toast: t, failure: n }) {
p({ file: e }), _(null);
}
}),
- /* @__PURE__ */ (0, L.jsx)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
label: "目录模板",
placeholder: "留空表示原地改名",
value: f.dir,
@@ -34888,91 +34888,91 @@ function Vj({ toast: t, failure: n }) {
}
//#endregion
//#region src/react/data-cleanup/resource-sync-card.tsx
-var Hj = sT("git-compare"), Uj = sT("rotate-cw"), Wj = "暂时无法读取进度,正在重新连接…", Gj = "清理失效条目", Kj = "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", qj = (e) => Number(e || 0).toLocaleString();
-function Foe({ scan: e }) {
+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: Kj,
+ className: Xj,
children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, L.jsx)("article", {
- className: mA(),
- children: /* @__PURE__ */ (0, L.jsx)(hA, {
- label: tA[e.location] || "媒体来源",
- mark: /* @__PURE__ */ (0, L.jsx)(HA, { mark: m[e.location] ?? "database" }),
+ 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 ? `${qj(e.missing)} 项` : "—",
- meta: loe(e),
+ figure: e.online ? `${Zj(e.missing)} 项` : "—",
+ meta: aoe(e),
wrapMeta: !0
})
}, e.location))
}), /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Kj,
+ className: Xj,
children: [
/* @__PURE__ */ (0, L.jsx)("article", {
- className: mA(),
- children: /* @__PURE__ */ (0, L.jsx)(hA, {
+ className: vA(),
+ children: /* @__PURE__ */ (0, L.jsx)(yA, {
label: "待永久删除",
- figure: `${qj(e.missing)} 项`,
+ figure: `${Zj(e.missing)} 项`,
meta: "文件已不在盘上,含回收站"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: mA(),
- children: /* @__PURE__ */ (0, L.jsx)(hA, {
+ className: vA(),
+ children: /* @__PURE__ */ (0, L.jsx)(yA, {
label: "空文件夹",
- figure: `${qj(e.empty)} 个`,
+ figure: `${Zj(e.empty)} 个`,
meta: "保留来源根目录"
})
}),
/* @__PURE__ */ (0, L.jsx)("article", {
- className: mA(),
- children: /* @__PURE__ */ (0, L.jsx)(hA, {
+ className: vA(),
+ children: /* @__PURE__ */ (0, L.jsx)(yA, {
label: "可清理的缓存",
- figure: `${qj(t.files)} 个`,
+ figure: `${Zj(t.files)} 个`,
meta: t.files ? a(t.bytes) : ""
})
})
]
})] });
}
-function Ioe({ toast: e }) {
- let t = cj({
- queryKey: qk,
- queryFn: ({ signal: e }) => Xk(e),
- start: Zk,
+function joe({ toast: e }) {
+ let t = fj({
+ queryKey: Yk,
+ queryFn: ({ signal: e }) => Qk(e),
+ start: $k,
onFinish: (t) => {
if (X.invalidateQueries({
- queryKey: sA,
+ queryKey: dA,
exact: !0
}), X.invalidateQueries({
- queryKey: Kk,
+ queryKey: Jk,
exact: !0
}), t.status !== "complete") return;
- let { done: n, left: r } = rA(t);
- r ? e(`已完成 ${qj(n)} 项,${qj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
+ let { done: n, left: r } = sA(t);
+ r ? e(`已完成 ${Zj(n)} 项,${Zj(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");
}
- }), n = cj({
- queryKey: Kk,
- queryFn: ({ signal: e }) => Jk(e),
- start: Yk,
+ }), 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: Gj,
- body: coe(e),
- confirmLabel: Gj,
+ title: Yj,
+ body: ioe(e),
+ confirmLabel: Yj,
danger: !0,
onConfirm: () => t.start.mutateAsync(e.scan_id || "")
}), u = t.outcome, d = (e) => {
- let t = rA(e).left > 0;
+ let t = sA(e).left > 0;
return /* @__PURE__ */ (0, L.jsx)(J, {
tone: t ? "warning" : "success",
title: t ? "部分完成" : "清理结果",
- children: uoe(e, a)
+ children: ooe(e, a)
});
}, f = null;
if (u?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
@@ -34981,7 +34981,7 @@ function Ioe({ toast: e }) {
children: u.error || "任务失败"
});
else if (u) f = d(u);
- else if (t.running) f = /* @__PURE__ */ (0, L.jsx)(Ew, { label: t.job?.message || "正在复核并清理失效条目…" });
+ 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: "扫描失败",
@@ -34990,20 +34990,20 @@ function Ioe({ toast: e }) {
else if (n.query.isError && r) f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "任务状态",
- children: Wj
+ children: Jj
});
else if (r?.status === "running") {
- let e = ooe(r);
+ 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)(Aw, {
+ 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)(Ew, { label: "正在检查本地磁盘和网盘…" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在检查本地磁盘和网盘…" })
});
} else if (r?.status === "failed") f = /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
@@ -35016,13 +35016,13 @@ function Ioe({ toast: e }) {
children: "这次检查的结果已经清理,重新扫描可再核对。"
});
else if (r?.status === "complete") {
- let e = eA(r);
+ let e = nA(r);
f = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
- /* @__PURE__ */ (0, L.jsx)(Foe, { scan: r }),
+ /* @__PURE__ */ (0, L.jsx)(Qj, { scan: r }),
e ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
title: "清理内容",
- children: soe(r)
+ children: oA(r)
}) : null,
/* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-wrap items-center justify-end gap-2",
@@ -35030,7 +35030,7 @@ function Ioe({ toast: e }) {
variant: "danger",
...Y(o),
onClick: () => l(r),
- children: o ? "正在复核并清理…" : Gj
+ children: o ? "正在复核并清理…" : Yj
}) : /* @__PURE__ */ (0, L.jsx)("p", {
className: "mr-auto text-body-regular text-notification-success-foreground",
children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"
@@ -35047,23 +35047,23 @@ function Ioe({ toast: e }) {
"aria-labelledby": "resource-sync-title",
className: "flex scroll-mt-20 flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsx)(wA, {
+ /* @__PURE__ */ (0, L.jsx)(OA, {
id: "resource-sync-title",
children: "资源同步"
}),
- /* @__PURE__ */ (0, L.jsxs)(EA, {
+ /* @__PURE__ */ (0, L.jsxs)(AA, {
layout: "split",
labelledBy: "resource-sync-box",
footer: /* @__PURE__ */ (0, L.jsx)(G, {
"data-resource-scan": !0,
- leadingIcon: s && !i ? Uj : Hj,
+ leadingIcon: s && !i ? qj : Kj,
...Y(i),
onClick: () => {
i || n.start.mutate();
},
children: c
}),
- children: [/* @__PURE__ */ (0, L.jsx)(TA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(kA, {
id: "resource-sync-box",
gap: "small",
children: "文件与记录核对"
@@ -35082,16 +35082,16 @@ function Ioe({ toast: e }) {
}
//#endregion
//#region src/react/data-cleanup/data-cleanup-page.tsx
-function Jj(e, t) {
+function $j(e, t) {
return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);
}
-function Yj({ section: e, label: t, icon: n, value: r, open: i }) {
+function eM({ section: e, label: t, icon: n, value: r, open: i }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
- className: mA({ interactive: !0 }),
+ className: vA({ interactive: !0 }),
"data-cleanup-go": e,
onClick: () => i(e),
- children: /* @__PURE__ */ (0, L.jsx)(hA, {
+ children: /* @__PURE__ */ (0, L.jsx)(yA, {
label: t,
icon: n,
figure: r.figure,
@@ -35099,80 +35099,80 @@ function Yj({ section: e, label: t, icon: n, value: r, open: i }) {
})
});
}
-var Loe = sT("square-check-big"), Roe = sT("sparkles"), zoe = sT("file-stack"), Boe = sT("file-archive"), Voe = sT("trash"), Hoe = [
- iA,
- HO,
- yO
-], Uoe = () => {
- for (let e of Hoe) X.invalidateQueries({
+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 Woe({ toast: e, failure: t, open: n }) {
+function zoe({ toast: e, failure: t, open: n }) {
let r = Nt({
- queryKey: iA,
- queryFn: ({ signal: e }) => cA(e)
+ queryKey: cA,
+ queryFn: ({ signal: e }) => fA(e)
}), i = Nt({
- queryKey: HO,
- queryFn: ({ signal: e }) => UO(e)
+ queryKey: JO,
+ queryFn: ({ signal: e }) => YO(e)
}), o = Nt({
- queryKey: yO,
- queryFn: ({ signal: e }) => bO(e)
+ queryKey: OO,
+ queryFn: ({ signal: e }) => kO(e)
}), s = Nt({
- queryKey: aA,
- queryFn: ({ signal: e }) => lA(e)
+ queryKey: lA,
+ queryFn: ({ signal: e }) => pA(e)
}), c = Nt({
- queryKey: sA,
- queryFn: ({ signal: e }) => uA(e)
+ queryKey: dA,
+ queryFn: ({ signal: e }) => mA(e)
}), l = Nt({
- queryKey: gO,
- queryFn: ({ signal: e }) => _O(e)
+ queryKey: TO,
+ queryFn: ({ signal: e }) => EO(e)
}), u = (t) => e(t);
- return /* @__PURE__ */ (0, L.jsxs)(Dw, { children: [
+ return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: xoe,
+ className: _oe,
children: [
- /* @__PURE__ */ (0, L.jsx)(Yj, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
section: "review",
label: "人工复核",
- icon: Loe,
+ icon: Moe,
open: n,
- value: Jj(r, moe)
+ value: $j(r, uoe)
}),
- /* @__PURE__ */ (0, L.jsx)(Yj, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
section: "quality",
label: "高清版",
- icon: Roe,
+ icon: Noe,
open: n,
- value: Jj(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
+ value: $j(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))
}),
- /* @__PURE__ */ (0, L.jsx)(Yj, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
section: "duplicates",
label: "重复文件",
- icon: zoe,
+ icon: Poe,
open: n,
- value: Jj(o, (e) => Number(e.total || 0) ? {
+ 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)(Yj, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
section: "ads",
label: "垃圾文件",
- icon: Boe,
+ icon: Foe,
open: n,
- value: Jj(s, (e) => ({
+ value: $j(s, (e) => ({
figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,
- meta: hoe(e)
+ meta: doe(e)
}))
}),
- /* @__PURE__ */ (0, L.jsx)(Yj, {
+ /* @__PURE__ */ (0, L.jsx)(eM, {
section: "trash",
label: "回收站",
- icon: Voe,
+ icon: Ioe,
open: n,
- value: Jj(c, (e) => ({
+ value: $j(c, (e) => ({
figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,
meta: e.total ? `占用 ${a(e.bytes || 0)}` : ""
}))
@@ -35185,29 +35185,29 @@ function Woe({ toast: e, failure: t, open: n }) {
/* @__PURE__ */ (0, L.jsx)("div", {
id: "libraryProcessing",
className: "scroll-mt-20",
- children: /* @__PURE__ */ (0, L.jsx)(ZA, {
+ children: /* @__PURE__ */ (0, L.jsx)(tj, {
toast: u,
monitor: !0,
- onComplete: Uoe
+ onComplete: Roe
})
}),
/* @__PURE__ */ (0, L.jsx)("div", {
id: "mediaRepair",
- children: /* @__PURE__ */ (0, L.jsx)(dj, {})
+ children: /* @__PURE__ */ (0, L.jsx)(hj, {})
}),
- /* @__PURE__ */ (0, L.jsx)(Vj, {
+ /* @__PURE__ */ (0, L.jsx)(Gj, {
toast: u,
failure: t
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(kj, {}),
- Qk(l.data) ? /* @__PURE__ */ (0, L.jsx)(Ioe, { toast: e }) : null
+ /* @__PURE__ */ (0, L.jsx)(Nj, {}),
+ eA(l.data) ? /* @__PURE__ */ (0, L.jsx)(joe, { toast: e }) : null
] });
}
//#endregion
//#region src/react/components/collection-summary.tsx
-function Xj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {
+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
@@ -35234,7 +35234,7 @@ function Xj({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !
}
//#endregion
//#region src/react/components/use-stuck.ts
-function Zj(e) {
+function nM(e) {
(0, I.useEffect)(() => {
let t = e.current;
if (!t) return;
@@ -35252,9 +35252,9 @@ function Zj(e) {
}
//#endregion
//#region src/react/components/filter-glass.tsx
-function Goe({ title: e, children: t }) {
+function Boe({ title: e, children: t }) {
let n = (0, I.useRef)(null);
- return Zj(n), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return nM(n), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: n,
role: "group",
"aria-label": e,
@@ -35267,51 +35267,51 @@ function Goe({ title: e, children: t }) {
}), t]
});
}
-function Qj({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {
+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 Zj(d), /* @__PURE__ */ (0, L.jsxs)("div", {
+ return nM(d), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: d,
role: "group",
"aria-label": e,
"data-filter-glass": !0,
"data-glass-pane": "",
...c,
- className: sw("sticky top-topbar z-10 mb-5.5 flex flex-col", i),
+ 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: sw("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),
+ 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: sw("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
+ className: _w("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),
children: r
})
]
});
}
-var Koe = "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 $j({ children: e, pressed: t, onPress: n, className: r, ...i }) {
+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: sw(Koe, r),
+ className: _w(Voe, r),
onClick: n,
children: e
});
}
-var qoe = "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 eM({ children: e, onPress: t, busy: n = !1 }) {
+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: qoe,
+ className: Hoe,
"aria-busy": n || void 0,
"aria-disabled": n || void 0,
onClick: () => {
@@ -35322,29 +35322,29 @@ function eM({ children: e, onPress: t, busy: n = !1 }) {
}
//#endregion
//#region src/react/duplicates/duplicates-page.tsx
-var Joe = sT("play"), Yoe = sT("file-stack"), Xoe = Cw({
+var Uoe = gT("play"), Woe = gT("file-stack"), Goe = Nw({
padding: "none",
radius: "surface",
className: "mb-6 overflow-hidden dark:bg-background-primary-default"
-}), tM = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", nM = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", rM = "font-mono text-caption-1-regular leading-5 text-text-secondary", iM = () => {
+}), 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: yO,
+ queryKey: OO,
exact: !0
}), X.invalidateQueries({
- queryKey: sA,
+ queryKey: dA,
exact: !0
});
};
-function Zoe(e) {
+function Koe(e) {
return e.identical ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${nM} text-(--keep)`,
+ className: `${sM} text-(--keep)`,
children: "sha1 一致"
}) : /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${nM} text-text-secondary`,
+ className: `${sM} text-text-secondary`,
children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"
});
}
-function Qoe({ file: t, openItem: n }) {
+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",
@@ -35354,7 +35354,7 @@ function Qoe({ file: t, openItem: n }) {
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)(Joe, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Uoe, {
"aria-hidden": !0,
className: "size-6"
}), /* @__PURE__ */ (0, L.jsx)("img", {
@@ -35378,55 +35378,55 @@ function Qoe({ file: t, openItem: n }) {
}), 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: `${tM} not-italic bg-background-primary-hover text-text-secondary`,
+ className: `${oM} not-italic bg-background-primary-hover text-text-secondary`,
children: "最大"
}) : null, t.is_longest ? /* @__PURE__ */ (0, L.jsx)("i", {
- className: `${tM} not-italic bg-(--keep)/22 text-(--keep)`,
+ className: `${oM} not-italic bg-(--keep)/22 text-(--keep)`,
children: "最长"
}) : null]
}) : null]
}),
/* @__PURE__ */ (0, L.jsxs)("span", {
- className: `${rM} flex min-w-0 items-center gap-1.5`,
- children: [/* @__PURE__ */ (0, L.jsx)(HA, { mark: m[t.location] || "database" }), /* @__PURE__ */ (0, L.jsx)("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.jsx)("span", {
- className: rM,
+ className: cM,
children: a(t.size || 0)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
- className: rM,
+ className: cM,
children: i(t.duration)
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-middle-truncate": !0,
title: t.path ?? "",
- className: `${rM} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,
+ 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 $oe({ openItem: t, toast: n, failure: r }) {
+function Joe({ openItem: t, toast: n, failure: r }) {
let i = Nt({
- queryKey: yO,
- queryFn: ({ signal: e }) => bO(e)
+ queryKey: OO,
+ queryFn: ({ signal: e }) => kO(e)
}), o = Nt({
- queryKey: gO,
- queryFn: ({ signal: e }) => _O(e)
+ queryKey: TO,
+ queryFn: ({ signal: e }) => EO(e)
}), [s, c] = (0, I.useState)(""), l = Pt({
- mutationFn: (e) => CO(e, "dispose"),
+ mutationFn: (e) => MO(e, "dispose"),
onSuccess: (e, t) => {
- iM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
+ lM(), n(`已把 ${t.length} 项移入回收站`, { undo: async () => {
try {
- await CO(t, "restore");
+ await MO(t, "restore");
} catch (e) {
r("撤销移入回收站", e);
} finally {
- iM();
+ lM();
}
} });
},
@@ -35440,12 +35440,12 @@ function $oe({ openItem: t, toast: n, failure: r }) {
children: i.error ? K(i.error) : "读取重复文件失败"
})
});
- let d = u.groups ?? [], f = Tae(o.data), p = ({ groups: e, keep: t, key: n }) => {
+ let d = u.groups ?? [], f = gae(o.data), p = ({ groups: e, keep: t, key: n }) => {
if (l.isPending) return;
- let r = jae(e, t);
+ let r = Sae(e, t);
r.length && g({
title: "移入回收站",
- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${xO[t] ?? xO.largest}。文件共 ${a(Mae(e, r))},记录可从回收站还原。`,
+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${AO[t] ?? AO.largest}。文件共 ${a(Cae(e, r))},记录可从回收站还原。`,
confirmLabel: "移入回收站",
onConfirm: () => (c(n), l.mutateAsync(r))
});
@@ -35453,15 +35453,15 @@ function $oe({ openItem: t, toast: n, failure: r }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "mx-auto w-full max-w-board pb-10.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(Xj, {
+ /* @__PURE__ */ (0, L.jsx)(tM, {
label: "重复内容",
figure: `${Number(u.total || 0).toLocaleString()} 组`,
detail: `${u.files} 个文件 · 可回收 ${a(u.reclaimable)}`
}),
- d.length ? /* @__PURE__ */ (0, L.jsxs)(Goe, {
+ d.length ? /* @__PURE__ */ (0, L.jsxs)(Boe, {
title: "批量保留",
children: [
- /* @__PURE__ */ (0, L.jsx)(eM, {
+ /* @__PURE__ */ (0, L.jsx)(aM, {
busy: s === "all:largest",
onPress: () => p({
groups: d,
@@ -35470,7 +35470,7 @@ function $oe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最大"
}),
- /* @__PURE__ */ (0, L.jsx)(eM, {
+ /* @__PURE__ */ (0, L.jsx)(aM, {
busy: s === "all:longest",
onPress: () => p({
groups: d,
@@ -35479,7 +35479,7 @@ function $oe({ openItem: t, toast: n, failure: r }) {
}),
children: "全部保留最长"
}),
- Aae(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(eM, {
+ xae(d, f).map((t) => /* @__PURE__ */ (0, L.jsx)(aM, {
busy: s === `all:${t}`,
onPress: () => p({
groups: d,
@@ -35502,7 +35502,7 @@ function $oe({ openItem: t, toast: n, failure: r }) {
let i = [n], o = (e) => `${r}:${e}`;
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": n.code,
- className: Xoe,
+ 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: [
@@ -35514,9 +35514,9 @@ function $oe({ openItem: t, toast: n, failure: r }) {
className: "font-mono text-caption-1-regular leading-5 text-text-primary",
children: `${n.count} 个 · 可回收 ${a(n.reclaimable)}`
}),
- Zoe(n),
+ Koe(n),
n.cross_drive ? /* @__PURE__ */ (0, L.jsx)("span", {
- className: `${nM} text-text-secondary`,
+ className: `${sM} text-text-secondary`,
children: `跨盘 ${n.drives.join(" ")}`
}) : null,
/* @__PURE__ */ (0, L.jsxs)("span", {
@@ -35544,7 +35544,7 @@ function $oe({ openItem: t, toast: n, failure: r }) {
}),
children: "留最长"
}),
- SO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
+ jO(n.files, f).map((t) => /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
...m(o(t)),
@@ -35569,13 +35569,13 @@ function $oe({ openItem: t, toast: n, failure: r }) {
]
})
]
- }), /* @__PURE__ */ (0, L.jsx)("div", { children: n.files.map((e) => /* @__PURE__ */ (0, L.jsx)(Qoe, {
+ }), /* @__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)(Tw, {
- icon: Yoe,
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: Woe,
title: "没有找到重复文件",
children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"
})
@@ -35584,43 +35584,43 @@ function $oe({ openItem: t, toast: n, failure: r }) {
}
//#endregion
//#region src/react/follow/online-vocab.ts
-var ese = "/api/follow/authors", tse = "/api/follow/tags", nse = (e) => [
+var Yoe = "/api/follow/authors", Xoe = "/api/follow/tags", Zoe = (e) => [
"follow",
"authors",
e
-], rse = (e, t) => [
+], Qoe = (e, t) => [
"follow",
"tags",
e,
t
];
-function ise(e, t, n) {
+function $oe(e, t, n) {
let r = new URLSearchParams({
limit: String(t),
offset: String(n)
});
- return e && r.set("q", e), `${ese}?${r}`;
+ return e && r.set("q", e), `${Yoe}?${r}`;
}
-function ase(e, t, n, r) {
+function ese(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), `${tse}?${i}`;
+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Xoe}?${i}`;
}
-var ose = (e, t, n, r) => hw(ise(e, t, n), r), sse = (e, t, n, r, i) => hw(ase(e, t, n, r), i), cse = "/api/index", aM = {
+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: "标签"
-}, lse = {
+}, ise = {
performers: "performer",
creators: "creator",
studios: "studio",
agencies: "agency"
-}, oM = [
+}, dM = [
["all", "全部"],
["meta", "影片属性"],
["relationship", "人物关系"],
@@ -35630,26 +35630,26 @@ var ose = (e, t, n, r) => hw(ise(e, t, n), r), sse = (e, t, n, r, i) => hw(ase(e
["story", "故事剧情"],
["position", "性交体位"],
["general", "其他内容"]
-], sM = [
+], fM = [
["all", "全部"],
["general", "通用"],
["artist", "创作者"],
["character", "角色"],
["copyright", "作品"],
["metadata", "元数据"]
-], cM = {
+], pM = {
people: 120,
tags: 180
-}, lM = (e) => e !== "tags", uM = (e) => e === "studios" || e === "agencies";
-function dM(e) {
- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = (t === "online" ? sM : oM).some(([t]) => t === e.category);
+}, 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 fM(e) {
+function _M(e) {
let { kind: t, q: n, scope: r, category: i } = e;
return t === "tags" ? r === "online" ? {
what: "online-tags",
@@ -35668,50 +35668,50 @@ function fM(e) {
q: n
};
}
-var pM = (e, t, n = "all") => [
+var vM = (e, t, n = "all") => [
"index",
e,
t,
...e === "tags" ? [n] : []
];
-function mM(e, t, n, r, i) {
+function yM(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), `${cse}?${a}`;
+ return t && a.set("q", t), e === "tags" && n !== "all" && a.set("category", n), `${rse}?${a}`;
}
-function hM(e) {
- let t = e.what === "people" || e.what === "online-authors" ? cM.people : cM.tags, n = {
+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: pM(e.kind, e.q),
- queryFn: ({ pageParam: n, signal: r }) => hw(mM(e.kind, e.q, "all", t, n), r)
+ 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: pM("tags", e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => hw(mM("tags", e.q, e.category, t, n), r)
+ 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: nse(e.q),
- queryFn: ({ pageParam: n, signal: r }) => ose(e.q, t, n, r)
+ queryKey: Zoe(e.q),
+ queryFn: ({ pageParam: n, signal: r }) => tse(e.q, t, n, r)
};
case "online-tags": return {
...n,
- queryKey: rse(e.q, e.category),
- queryFn: ({ pageParam: n, signal: r }) => sse(e.q, e.category, t, n, r)
+ queryKey: Qoe(e.q, e.category),
+ queryFn: ({ pageParam: n, signal: r }) => nse(e.q, e.category, t, n, r)
};
}
}
-async function use(e, t) {
- let n = hM(fM(dM(e)));
+async function ase(e, t) {
+ let n = bM(_M(gM(e)));
X.removeQueries({
queryKey: n.queryKey,
exact: !0
@@ -35725,13 +35725,13 @@ async function use(e, t) {
getNextPageParam: n.getNextPageParam
});
}
-var dse = (e) => e ? e.pages.flatMap((e) => e.items) : [], fse = (e, t) => `${e}${t ? "+" : ""} 项`, gM = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", pse = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), mse = {
+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 hse(e, t) {
+function use(e, t) {
let n = /* @__PURE__ */ new Map();
- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", mse))) {
+ 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]);
}
@@ -35739,7 +35739,7 @@ function hse(e, t) {
}
//#endregion
//#region src/react/index/index-people.tsx
-function _M({ html: e, face: t, company: n, big: r }) {
+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");
@@ -35751,18 +35751,18 @@ function _M({ html: e, face: t, company: n, big: r }) {
dangerouslySetInnerHTML: { __html: e }
});
}
-var gse = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";
-function vM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
+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: Cw({
+ className: Nw({
radius: "plain",
padding: "none",
interactive: !0,
- className: `${gse} ${n ? "items-stretch text-left" : "items-center text-center"}`
+ className: `${dse} ${n ? "items-stretch text-left" : "items-center text-center"}`
}),
children: [
r,
@@ -35779,8 +35779,8 @@ function vM({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {
]
});
}
-function yM({ kind: e, items: t, layout: n, props: r }) {
- let i = lse[e], a = uM(e), o = n === "big";
+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,
@@ -35788,14 +35788,14 @@ function yM({ kind: e, items: t, layout: n, props: r }) {
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)(vM, {
+ return /* @__PURE__ */ (0, L.jsx)(CM, {
"data-k": t.k,
"data-kind": i,
name: t.k,
- readout: pse(e, t),
+ readout: cse(e, t),
big: o,
onPress: () => r.openEntity(i, t.k),
- children: /* @__PURE__ */ (0, L.jsx)(_M, {
+ children: /* @__PURE__ */ (0, L.jsx)(SM, {
html: n.html,
face: n.face,
company: a,
@@ -35805,21 +35805,21 @@ function yM({ kind: e, items: t, layout: n, props: r }) {
})
});
}
-function _se({ items: e, layout: t, props: n }) {
+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)(vM, {
+ 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)(_M, {
+ children: /* @__PURE__ */ (0, L.jsx)(SM, {
html: n.authorAvatar(e),
company: !1,
big: r
@@ -35829,7 +35829,7 @@ function _se({ items: e, layout: t, props: n }) {
}
//#endregion
//#region src/board-controls.ts
-function vse(e) {
+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");
@@ -35841,8 +35841,8 @@ function vse(e) {
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox.ts
-var bM = "/vendor/swiper/14.2.0/", xM = null, yse = () => xM ??= Promise.all([new Promise((e, t) => {
- let n = `${bM}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);
+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;
@@ -35856,11 +35856,11 @@ var bM = "/vendor/swiper/14.2.0/", xM = null, yse = () => xM ??= Promise.all([ne
return;
}
let r = document.createElement("script");
- r.src = `${bM}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);
+ 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 xM = null, e;
+ throw EM = null, e;
});
-function bse(e, t, n) {
+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);
@@ -35881,48 +35881,48 @@ function bse(e, t, n) {
}
};
}
-var SM = (e) => {
+var DM = (e) => {
let t = Number(e) || 0;
return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : a(t)).replace(" ", "\xA0") : "大小未知";
-}, xse = (e) => e.asset?.name || e.name || "未命名图片";
-function Sse(t, n) {
+}, gse = (e) => e.asset?.name || e.name || "未命名图片";
+function _se(t, n) {
let r = t.asset;
- if (r) return [e[r.location ?? ""] || r.location || "来源未知", SM(r.size)].join(" · ");
+ 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 ? SM(t.size) : ""
+ t.size ? DM(t.size) : ""
].filter(Boolean).join(" · ");
}
//#endregion
//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx
-var CM = null, wM = null, Cse = 0;
-function wse() {
- return (!wM || !CM?.isConnected) && (wM?.unmount(), CM = document.createElement("div"), CM.className = "peach-react", CM.dataset.photoLightboxHost = "", document.body.append(CM), wM = (0, nS.createRoot)(CM)), wM;
+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 TM(e, t, n) {
+async function AM(e, t, n) {
if (!t.length || e < 0 || e >= t.length) return;
let r;
try {
- r = await yse();
+ r = await mse();
} catch {
window.open(t[e].src, "_blank", "noopener");
return;
}
- let i = wse();
- (0, Ch.flushSync)(() => i.render(/* @__PURE__ */ (0, L.jsx)(Tse, {
+ let i = yse();
+ (0, Ch.flushSync)(() => i.render(/* @__PURE__ */ (0, L.jsx)(bse, {
slides: t,
index: e,
Swiper: r,
host: n ?? null
- }, ++Cse)));
+ }, ++vse)));
}
-function EM() {
- wM && (0, Ch.flushSync)(() => wM.render(null));
+function jM() {
+ kM && (0, Ch.flushSync)(() => kM.render(null));
}
-function Tse({ slides: e, index: t, Swiper: n, host: r }) {
+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: ""
@@ -35965,7 +35965,7 @@ function Tse({ slides: e, index: t, Swiper: n, host: r }) {
y(this.activeIndex), i(this.activeIndex);
} }
});
- i(t, 0), g.current = bse(e, a, x);
+ 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();
};
@@ -35982,13 +35982,13 @@ function Tse({ slides: e, index: t, Swiper: n, host: r }) {
});
v.observe(e);
let b = (e) => {
- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), _.current?.isOpen() ? _.current.dismiss(!0) : EM());
+ 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 && vse(h.current);
+ 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;
@@ -36019,18 +36019,18 @@ function Tse({ slides: e, index: t, Swiper: n, host: r }) {
"data-photo-lightbox": "",
"data-has-strip": i ? "" : void 0,
onCancel: (e) => {
- e.preventDefault(), EM();
+ e.preventDefault(), jM();
},
onClick: (e) => {
let t = e.target;
- _.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && EM();
+ _.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: EM,
+ onClick: jM,
dangerouslySetInnerHTML: { __html: s("x") }
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36163,10 +36163,10 @@ function Tse({ slides: e, index: t, Swiper: n, host: r }) {
id: `${a}-title`,
"data-middle-truncate": "",
tabIndex: -1,
- children: xse(N)
+ children: gse(N)
}, v), /* @__PURE__ */ (0, L.jsx)("span", {
"data-photo-detail-meta": "",
- children: Sse(N, S[v])
+ children: _se(N, S[v])
})]
}),
/* @__PURE__ */ (0, L.jsx)("button", {
@@ -36205,33 +36205,33 @@ function Tse({ slides: e, index: t, Swiper: n, host: r }) {
}
//#endregion
//#region src/react/entity-body/entity-body-page.tsx
-function Ese(e) {
- return e.view === "people" && e.roster ? /* @__PURE__ */ (0, L.jsx)(Dse, {
+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)(Ose, { ...e }, e.revision) : e.view === "photos" && e.photos ? /* @__PURE__ */ (0, L.jsx)(jse, {
+ }) : 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 Dse({ roster: e, props: t }) {
+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)(yM, {
+ return /* @__PURE__ */ (0, L.jsx)(wM, {
kind: e.kind,
items: e.people,
layout: e.layout,
props: i
});
}
-function Ose(e) {
- let t = Xw(!e.items, e.skeletonHtml);
+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)(pT, {
+ children: [t.layer, e.items ? /* @__PURE__ */ (0, L.jsx)(ST, {
mode: "entity",
entityKey: `${e.kind}:${e.name}`,
revision: e.revision,
@@ -36251,16 +36251,16 @@ function Ose(e) {
}) : null]
});
}
-var kse = (e) => Array.from({ length: e.n }, (t, n) => ({
+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 || "官方样张"
-})), DM = (e) => e.sample === !0, OM = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, kM = (e) => DM(e) ? `/sample-thumb?${OM(e)}` : `/photo-thumb?id=${e.id}`, Ase = (e) => DM(e) ? {
- src: `/sample-image?${OM(e)}`,
- thumb: kM(e),
+})), 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,
@@ -36268,18 +36268,18 @@ var kse = (e) => Array.from({ length: e.n }, (t, n) => ({
total: e.total
} : {
src: `/photo?id=${e.id}`,
- thumb: kM(e),
+ thumb: PM(e),
name: e.name || "",
asset: e
};
-function jse({ photos: e, props: t }) {
- let { photoSize: n, photoLayout: r, actions: i, canLoadMore: a } = t, o = (0, I.useMemo)(() => [...e.codeSets.flatMap(kse), ...e.items], [e]), [s, c] = (0, I.useState)(() => /* @__PURE__ */ new Set()), l = (0, I.useCallback)((e) => c((t) => {
+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) => {
- TM(e, o.map(Ase), { revealSource: i.revealSource });
- }, [i, o]), d = (e, t) => /* @__PURE__ */ (0, L.jsx)(Mse, {
+ 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),
@@ -36297,7 +36297,7 @@ function jse({ photos: e, props: 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)(AM, {
+ 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: [
@@ -36309,7 +36309,7 @@ function jse({ photos: e, props: t }) {
...f,
children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))
})] }, e.code)),
- m.length && e.total ? /* @__PURE__ */ (0, L.jsx)(AM, {
+ m.length && e.total ? /* @__PURE__ */ (0, L.jsx)(FM, {
label: "本地图片",
meta: `${e.total.toLocaleString()} 张`
}) : null,
@@ -36318,14 +36318,14 @@ function jse({ photos: e, props: t }) {
"data-local-wall": "",
children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))
}),
- e.hasMore ? /* @__PURE__ */ (0, L.jsx)(mT, {
+ e.hasMore ? /* @__PURE__ */ (0, L.jsx)(CT, {
entity: !0,
load: i.loadMorePhotos,
enabled: () => a?.() !== !1
}, e.items.length) : null
] });
}
-function AM({ label: e, title: t, meta: n }) {
+function FM({ label: e, title: t, meta: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-photo-group": "",
children: [
@@ -36342,7 +36342,7 @@ function AM({ label: e, title: t, meta: n }) {
]
});
}
-function Mse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
+function Dse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
let a = e.name ?? "";
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
@@ -36351,7 +36351,7 @@ function Mse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
title: a,
onClick: () => i(t),
children: n ? null : /* @__PURE__ */ (0, L.jsx)("img", {
- src: kM(e),
+ src: PM(e),
alt: a,
loading: "lazy",
decoding: "async",
@@ -36362,10 +36362,10 @@ function Mse({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {
}
//#endregion
//#region src/react/components/segmented.tsx
-var jM = "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", MM = "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", Nse = "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", NM = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", PM = "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)";
+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 Pse(e, t) {
+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;
@@ -36381,11 +36381,11 @@ function Pse(e, t) {
h: e.offsetHeight
};
}
-function FM(e, t, n, r) {
+function BM(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 ? Pse(l, c) : null;
+ let l = s && s.offsetWidth ? r ?? s.querySelector(n) : null, u = l && c ? kse(l, c) : null;
if (!u || !u.w) {
o.hidden = !0;
return;
@@ -36423,19 +36423,19 @@ function FM(e, t, n, r) {
}
//#endregion
//#region src/react/entity-filter/entity-filter.ts
-var Fse = (e) => e === "videos", IM = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var Ase = (e) => e === "videos", VM = () => /* @__PURE__ */ (0, L.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
});
-function Ise(e) {
- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = Fse(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), _ = FM(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = FM(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);
+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}`);
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)(Rse, {
+ }, [c]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Nse, {
items: o,
hidden: !l,
actions: s
- }), /* @__PURE__ */ (0, L.jsx)(Qj, {
+ }), /* @__PURE__ */ (0, L.jsx)(rM, {
label: "筛选与排序",
topLabel: "媒体与标签",
attrs: {
@@ -36455,13 +36455,13 @@ function Ise(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)(Lse, {
+ top: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [n ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Mse, {
keys: n,
view: t,
row: p,
glide: v,
onView: s.setView
- }), l ? /* @__PURE__ */ (0, L.jsx)(IM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
+ }), l ? /* @__PURE__ */ (0, L.jsx)(VM, {}) : null] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -36481,11 +36481,11 @@ function Ise(e) {
r !== e.k && s.setState(e.k);
},
children: e.label
- }, e.k)), /* @__PURE__ */ (0, L.jsx)(IM, {})]
+ }, e.k)), /* @__PURE__ */ (0, L.jsx)(VM, {})]
}), /* @__PURE__ */ (0, L.jsx)("div", {
ref: h,
"data-entity-tags": "",
- children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)($j, {
+ children: l ? a.map((e) => /* @__PURE__ */ (0, L.jsxs)(iM, {
"data-entity-tag": e.k,
"data-entity-press": "",
pressed: e.selected,
@@ -36497,10 +36497,10 @@ function Ise(e) {
}, e.k)) : null
})]
})] }),
- bottom: /* @__PURE__ */ (0, L.jsx)(zse, { ...e })
+ bottom: /* @__PURE__ */ (0, L.jsx)(Pse, { ...e })
})] });
}
-function Lse({ keys: e, view: t, row: n, glide: r, onView: i }) {
+function Mse({ keys: e, view: t, row: n, glide: r, onView: i }) {
let a = [];
return e.people && a.push({
value: "people",
@@ -36542,7 +36542,7 @@ function Lse({ keys: e, view: t, row: n, glide: r, onView: i }) {
})
});
}
-function Rse({ items: e, hidden: t, actions: n }) {
+function Nse({ items: e, hidden: t, actions: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-combo": "",
hidden: t,
@@ -36562,7 +36562,7 @@ function Rse({ items: e, hidden: t, actions: n }) {
})] }) : null
});
}
-function zse(e) {
+function Pse(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 +36574,22 @@ function zse(e) {
dangerouslySetInnerHTML: { __html: s("chevron-left") }
}), /* @__PURE__ */ (0, L.jsx)("span", { children: "全部照片" })]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Bse, {
+ /* @__PURE__ */ (0, L.jsx)(Fse, {
text: n,
busy: r
}),
- t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(Vse, {
+ t === "videos" && i ? /* @__PURE__ */ (0, L.jsx)(Ise, {
head: i,
actions: o
}) : null,
- t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(Hse, {
+ t === "photos" && a ? /* @__PURE__ */ (0, L.jsx)(Lse, {
head: a,
actions: o,
helpers: c
}) : null
] });
}
-function Bse({ text: e, busy: t }) {
+function Fse({ text: e, busy: t }) {
return /* @__PURE__ */ (0, L.jsx)("h3", {
"data-entity-readout": "",
children: t ? /* @__PURE__ */ (0, L.jsx)("span", {
@@ -36599,21 +36599,21 @@ function Bse({ text: e, busy: t }) {
}) : e
});
}
-function LM({ label: e, value: t, options: n, onChange: r }) {
- return /* @__PURE__ */ (0, L.jsx)(yD, {
+function HM({ label: e, value: t, options: n, onChange: r }) {
+ return /* @__PURE__ */ (0, L.jsx)(OD, {
"aria-label": e,
orientation: "horizontal",
value: t,
onChange: r,
"data-entity-layout": "",
- className: NM,
+ className: RM,
children: n.map(([e, t, n]) => {
- let r = sT(n);
- return /* @__PURE__ */ (0, L.jsx)(bD, {
+ let r = gT(n);
+ return /* @__PURE__ */ (0, L.jsx)(kD, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: PM,
+ className: zM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -36623,7 +36623,7 @@ function LM({ label: e, value: t, options: n, onChange: r }) {
})
});
}
-function RM({ onPress: e, busy: t = !1 }) {
+function UM({ onPress: e, busy: t = !1 }) {
return /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-entity-batch": "",
@@ -36637,19 +36637,19 @@ function RM({ onPress: e, busy: t = !1 }) {
dangerouslySetInnerHTML: { __html: t ? D("正在换一批") : s("shuffle") }
});
}
-function Vse({ head: e, actions: t }) {
+function Ise({ head: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-entity-sorts": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(RM, { onPress: () => void t.reshuffle() }),
- e.jav ? /* @__PURE__ */ (0, L.jsx)(LM, {
+ /* @__PURE__ */ (0, L.jsx)(UM, { onPress: () => void t.reshuffle() }),
+ e.jav ? /* @__PURE__ */ (0, L.jsx)(HM, {
label: "JAV 卡片版式",
value: e.jav.layout,
options: e.jav.options,
onChange: t.setJavLayout
}) : null,
e.sorts.map((e) => {
- let n = sT(e.dir === "asc" ? "arrow-up" : "arrow-down");
+ let n = gT(e.dir === "asc" ? "arrow-up" : "arrow-down");
return /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
"data-entity-sort": e.key,
@@ -36663,20 +36663,20 @@ function Vse({ head: e, actions: t }) {
]
});
}
-function Hse({ head: e, actions: t, helpers: n }) {
+function Lse({ 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)(RM, {
+ e.shuffle ? /* @__PURE__ */ (0, L.jsx)(UM, {
onPress: () => {
i(!0), t.reshuffle().finally(() => i(!1));
},
busy: r
}) : null,
- /* @__PURE__ */ (0, L.jsx)(LM, {
+ /* @__PURE__ */ (0, L.jsx)(HM, {
label: "图片布局",
value: e.layout,
options: e.layouts,
@@ -36692,61 +36692,61 @@ function Hse({ head: e, actions: t, helpers: n }) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var Use = "/api/avatar-choices", zM = "/api/avatar-pick", Wse = "/api/avatar-code-cover", Gse = "/avatar-choice", BM = (e, t) => [
+var Rse = "/api/avatar-choices", WM = "/api/avatar-pick", zse = "/api/avatar-code-cover", Bse = "/avatar-choice", GM = (e, t) => [
"avatar-choices",
e,
t
-], VM = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, HM = (e, t, n) => `${Gse}${VM(e, t)}&ref=${encodeURIComponent(n)}`, Kse = (e, t, n) => hw(Use + VM(e, t), n), qse = (e) => q(Wse, { code: e });
-function UM(e, t, n) {
+], 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 ? uae(e.focus, t, n) : iO(t, n);
+ return e.focus && r ? tae(e.focus, t, n) : pO(t, n);
}
-var Jse = (e) => e.crop && rO({
+var Use = (e) => e.crop && fO({
width: e.width,
height: e.height
});
-async function Yse(e, t, n) {
+async function Wse(e, t, n) {
if (!("file" in n)) {
- await q(zM, {
+ await q(WM, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${zM}${VM(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${WM}${KM(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 pw(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new Cw(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function Xse(e, t) {
+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}:图库里没有这个名字,用下面两种方式换。`;
}
-var Zse = (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 ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Zse(e.index_age_hours)}没更新,新收的人像这里还查不到。`;
+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)}没更新,新收的人像这里还查不到。`;
}
-var WM = (e) => e.cast > 1, $se = (e) => WM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, ece = {
+var YM = (e) => e.cast > 1, Jse = (e) => YM(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Yse = {
gfriends: "图库",
history: "用过的",
asset: "作品画面",
code: "番号封面"
};
-function tce(e) {
+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;
}
-var nce = (e) => `${ece[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (WM(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), rce = 8, ice = 3 / 4;
-function ace({ kind: e, entityId: t, name: n, onPicked: r }) {
+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", {
className: "absolute right-1 bottom-1 z-10",
@@ -36756,17 +36756,17 @@ function ace({ 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)(rne, {
+ children: /* @__PURE__ */ (0, L.jsx)(tne, {
"aria-hidden": !0,
className: "size-4"
})
})
- }), /* @__PURE__ */ (0, L.jsx)(lO, {
+ }), /* @__PURE__ */ (0, L.jsx)(vO, {
isOpen: i,
onOpenChange: a,
width: "avatar-picker",
label: "更换头像",
- children: /* @__PURE__ */ (0, L.jsx)(oce, {
+ children: /* @__PURE__ */ (0, L.jsx)(tce, {
kind: e,
entityId: t,
name: n,
@@ -36775,50 +36775,50 @@ function ace({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function oce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, I.useRef)(null), o = dO(), [s, c] = (0, I.useState)(""), [l, u] = (0, I.useState)(""), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(null), h = BM(e, t), g = (0, I.useRef)(!1), _ = Nt({
+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({
queryKey: h,
- queryFn: ({ signal: n }) => Kse(e, t, n),
+ queryFn: ({ signal: n }) => Vse(e, t, n),
retryOnMount: !0
});
(0, I.useEffect)(() => () => {
- g.current && X.removeQueries({ queryKey: BM(e, t) });
+ g.current && X.removeQueries({ queryKey: GM(e, t) });
}, [e, t]);
let v = Pt({
- mutationFn: (n) => Yse(e, t, n),
+ mutationFn: (n) => Wse(e, t, n),
onSuccess: () => {
g.current = !0, i(), r();
}
}), y = Pt({
- mutationFn: (e) => qse(e),
+ mutationFn: (e) => Hse(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 ? "" : qse(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)(uO, { children: /* @__PURE__ */ (0, L.jsx)(wS, { className: "size-6" }) }),
+ /* @__PURE__ */ (0, L.jsx)(yO, { children: /* @__PURE__ */ (0, L.jsx)(PS, { 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)(IT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(GT, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: p ? "框出头像那一块" : "更换头像"
- }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(uw, {
+ }), !p && S.length ? /* @__PURE__ */ (0, L.jsxs)(bw, {
color: "soft",
children: [S.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: p ? $se(p) : Xse(n, x)
+ children: p ? Jse(p) : Gse(n, x)
}),
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "neutral",
@@ -36830,14 +36830,14 @@ function oce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
- icon: cS,
+ /* @__PURE__ */ (0, L.jsx)(cO, {
+ icon: uS,
size: "small",
"aria-label": "关闭",
onClick: i
})
]
- }), p ? /* @__PURE__ */ (0, L.jsx)(cce, {
+ }), p ? /* @__PURE__ */ (0, L.jsx)(rce, {
kind: e,
entityId: t,
choice: p,
@@ -36860,7 +36860,7 @@ function oce({ 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: rce }, (e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: _.isPending ? Array.from({ length: Qse }, (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 +36873,15 @@ function oce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: nce(n),
+ title: Zse(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)(sce, {
- src: HM(e, t, n.ref),
+ /* @__PURE__ */ (0, L.jsx)(nce, {
+ src: qM(e, t, n.ref),
choice: n
}),
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -36890,15 +36890,15 @@ function oce({ 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)(uw, {
+ children: /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "gray",
children: "在用"
})
}) : null,
- WM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ YM(n) ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsxs)(uw, {
+ children: /* @__PURE__ */ (0, L.jsxs)(bw, {
variant: "caption",
color: "gray",
children: [n.cast, " 人"]
@@ -36917,7 +36917,7 @@ function oce({ 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)(Ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(Bj, {
"aria-label": "番号",
placeholder: "番号,如 ABW-232",
value: l,
@@ -36952,7 +36952,7 @@ function oce({ 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)(Ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(Bj, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
@@ -36972,7 +36972,7 @@ function oce({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
})]
})] })] });
}
-function sce({ src: e, choice: t }) {
+function nce({ 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 +36980,7 @@ function sce({ src: e, choice: t }) {
let a = {
width: t.width,
height: t.height
- }, o = Jse(t) ? mae(UM(t, a, ice), a) : null, s = r ? !0 : void 0;
+ }, o = Use(t) ? aae(JM(t, a, $se), 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 +37005,23 @@ function sce({ src: e, choice: t }) {
})]
});
}
-function cce({ 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 = HM(e, t, s), m = dO();
+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 h(e) {
c(e), u(null), f(null);
}
- let g = d && l ? pae(d, l) : null;
+ let g = d && l ? iae(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)(pO, {
+ children: [/* @__PURE__ */ (0, L.jsx)(SO, {
src: p,
aspect: 1,
box: d,
size: l,
label: `${n.label} 的头像取景框`,
onSize: (e) => {
- u(e), rO(e) && f(s === n.ref ? UM(n, e, 1) : iO(e, 1));
+ u(e), fO(e) && f(s === n.ref ? JM(n, e, 1) : pO(e, 1));
},
onBox: f
}), o.length > 1 ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -37035,7 +37035,7 @@ function cce({ 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: tce(e)
+ children: Xse(e)
}, e))
}) : null]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -37069,12 +37069,12 @@ function cce({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })
}
//#endregion
//#region src/react/entity-hero/glyph.tsx
-var lce = {
+var ice = {
"text-aa": 1.435,
"mark-javdb": 326 / 111
};
-function GM({ name: e }) {
- let t = lce[e];
+function XM({ name: e }) {
+ let t = ice[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 +37084,19 @@ function GM({ name: e }) {
}
//#endregion
//#region src/react/entity-hero/hero-pop.tsx
-function KM(e, t) {
+function ZM(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 JM(e, t, n, r) {
+var QM = (e) => !!e?.isConnected && e.matches(":popover-open");
+function $M(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) ? KM(t.current, n.current) : i.current();
+ t.current && QM(n.current) ? ZM(t.current, n.current) : i.current();
};
return addEventListener("scroll", r, {
capture: !0,
@@ -37110,17 +37110,17 @@ function JM(e, t, n, r) {
n
]);
}
-function YM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
+function eN({ 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, QM(s.current) && s.current.hidePopover(), l(!1);
}, p = () => {
- clearTimeout(d.current), !(!s.current || !o.current || qM(s.current)) && (s.current.showPopover(), KM(o.current, s.current), l(!0));
+ clearTimeout(d.current), !(!s.current || !o.current || QM(s.current)) && (s.current.showPopover(), ZM(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 JM(c, o, s, f), (0, I.useEffect)(() => {
+ return $M(c, o, s, f), (0, I.useEffect)(() => {
if (!c) return;
let e = (e) => {
let t = e.target;
@@ -37146,7 +37146,7 @@ function YM({ 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" && QM(s.current) && (e.preventDefault(), f());
},
children: ["+", t]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -37164,16 +37164,16 @@ function YM({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {
}), a]
})] });
}
-function uce({ following: e, busy: t, onToggle: n, tip: r }) {
+function ace({ 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);
+ QM(o.current) && o.current.hidePopover(), c(!1);
}, d = () => {
- l.current || !o.current || !i.current || qM(o.current) || (o.current.showPopover(), KM(i.current, o.current), c(!0));
+ l.current || !o.current || !i.current || QM(o.current) || (o.current.showPopover(), ZM(i.current, o.current), c(!0));
}, f = () => {
l.current = !1, u();
};
- return JM(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
- i.current && qM(o.current) && KM(i.current, o.current);
+ return $M(s, i, o, () => c(!1)), (0, I.useEffect)(() => {
+ i.current && QM(o.current) && ZM(i.current, o.current);
}, [r]), /* @__PURE__ */ (0, L.jsxs)("label", {
ref: i,
"data-entry-feed": "",
@@ -37182,7 +37182,7 @@ function uce({ following: e, busy: t, onToggle: n, tip: r }) {
a.current?.matches(":focus-visible") || f();
},
children: [
- /* @__PURE__ */ (0, L.jsx)(GM, { name: "rss" }),
+ /* @__PURE__ */ (0, L.jsx)(XM, { name: "rss" }),
/* @__PURE__ */ (0, L.jsx)("input", {
ref: a,
type: "checkbox",
@@ -37217,29 +37217,29 @@ function uce({ following: e, busy: t, onToggle: n, tip: r }) {
}
//#endregion
//#region src/react/entity-hero/name-picker.tsx
-function dce({ current: e, choices: t, onChoose: n, onAddAlias: r }) {
+function oce({ 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)(Zre, {
+ }, []), /* @__PURE__ */ (0, L.jsxs)(Hre, {
isOpen: i,
onOpenChange: a,
- children: [/* @__PURE__ */ (0, L.jsx)(PT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(UT, {
ref: o,
"data-namepick-toggle": "",
"aria-label": "名字与别名",
- children: /* @__PURE__ */ (0, L.jsx)(GM, { name: "chevron-down" })
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ children: /* @__PURE__ */ (0, L.jsx)(XM, { name: "chevron-down" })
+ }), /* @__PURE__ */ (0, L.jsx)(uD, {
placement: "bottom start",
offset: 8,
containerPadding: 8,
- className: yA,
+ className: CA,
"data-namepick-menu": "",
- children: /* @__PURE__ */ (0, L.jsxs)($re, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Wre, {
"aria-label": "名字与别名",
"data-namepick-list": "",
children: [
- /* @__PURE__ */ (0, L.jsx)(cD, {
+ /* @__PURE__ */ (0, L.jsx)(_D, {
selectionMode: "single",
disallowEmptySelection: !0,
selectedKeys: [e],
@@ -37247,31 +37247,31 @@ function dce({ 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)(uD, {
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsxs)(yD, {
id: e,
textValue: e,
"data-namepick-name": e,
- children: [/* @__PURE__ */ (0, L.jsx)(GM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
+ children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "check" }), /* @__PURE__ */ (0, L.jsx)("span", { children: e })]
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(Nre, { "data-namepick-rule": "" }),
- /* @__PURE__ */ (0, L.jsx)(cD, { children: /* @__PURE__ */ (0, L.jsxs)(uD, {
+ /* @__PURE__ */ (0, L.jsx)(wre, { "data-namepick-rule": "" }),
+ /* @__PURE__ */ (0, L.jsx)(_D, { children: /* @__PURE__ */ (0, L.jsxs)(yD, {
id: "alias",
textValue: "添加别名",
"data-namepick-alias": "",
onAction: r,
- children: [/* @__PURE__ */ (0, L.jsx)(GM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
+ children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "plus" }), /* @__PURE__ */ (0, L.jsx)("span", { children: "添加别名…" })]
}) })
]
})
})]
});
}
-var fce = (e) => e === "studio" || e === "agency", pce = (e) => e === "performer" || e === "creator", mce = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
-function hce(e) {
+var sce = (e) => e === "studio" || e === "agency", cce = (e) => e === "performer" || e === "creator", lce = (e) => e ? "已订阅新作:库里还没有的新片排在资料卡下面。再点一下取消订阅。" : "订阅新作:定时去 JavDB 查这位有没有出新片,库里还没有的排在资料卡下面。";
+function uce(e) {
return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);
}
-function XM(e) {
+function tN(e) {
if (e.agency) return {
name: e.agency.canonical_name,
linked: !0
@@ -37282,13 +37282,13 @@ function XM(e) {
linked: !1
} : null;
}
-function ZM(e, t) {
+function nN(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 QM = (e) => ({ site: c(e) });
-function gce(e, n) {
- let r = XM(e)?.name || "", i = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({
+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) => ({
type: "icon",
url: e.url,
title: e.label,
@@ -37298,7 +37298,7 @@ function gce(e, n) {
let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";
return {
type: "gone",
- title: `${ZM(e, r)} · ${t}`
+ title: `${nN(e, r)} · ${t}`
};
}
let i = e.url || "";
@@ -37309,8 +37309,8 @@ function gce(e, n) {
if (n === "performer" && e.link_kind !== "social") return {
type: "icon",
url: i,
- title: ZM(e, r),
- mark: QM(e)
+ title: nN(e, r),
+ mark: rN(e)
};
if (e.link_kind === "social") {
let n = t(i);
@@ -37318,7 +37318,7 @@ function gce(e, n) {
type: "icon",
url: i,
title: e.label || "",
- mark: n ? { brand: n } : QM(e)
+ mark: n ? { brand: n } : rN(e)
};
}
return {
@@ -37326,13 +37326,13 @@ function gce(e, n) {
url: i,
title: e.label || "",
text: u(e, n, a),
- mark: QM(e)
+ mark: rN(e)
};
});
return [...i, ...o];
}
-var $M = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
-function _ce(e) {
+var iN = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");
+function fce(e) {
if (!e) return [];
let t = [];
e.birth_date && t.push({
@@ -37389,14 +37389,14 @@ function _ce(e) {
tags: e.tags
}), t;
}
-function vce(e) {
+function pce(e) {
let t = e.length > 5 ? 4 : e.length;
return {
shown: e.slice(0, t),
rest: e.length - t
};
}
-function yce(e) {
+function mce(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 +37407,8 @@ function yce(e) {
}
//#endregion
//#region src/react/entity-hero/entity-hero-page.tsx
-function bce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o, helpers: s }) {
- let c = pce(e), l = fce(e), u = e === "performer" ? _ce(n.profile) : [], d = gce(n, e), f = $M(n), p = e === "agency" ? [] : n.related_performers || [], m = (0, I.useRef)(null), h = (0, I.useRef)(null);
+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);
return (0, I.useEffect)(() => {
s.wireScroller(m.current);
}, [s, d.length]), (0, I.useEffect)(() => {
@@ -37421,7 +37421,7 @@ function bce({ 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)(xce, {
+ children: [/* @__PURE__ */ (0, L.jsx)(gce, {
kind: e,
name: t,
helpers: s,
@@ -37429,7 +37429,7 @@ function bce({ 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)(ace, {
+ children: /* @__PURE__ */ (0, L.jsx)(ece, {
kind: e,
entityId: Number(n.id),
name: n.canonical_name || t,
@@ -37442,14 +37442,14 @@ function bce({ 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)(dce, {
+ children: [/* @__PURE__ */ (0, L.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, L.jsx)(oce, {
current: n.canonical_name,
- choices: hce(n),
+ choices: uce(n),
onChoose: o.chooseName,
onAddAlias: o.addAlias
})]
}),
- /* @__PURE__ */ (0, L.jsx)(Sce, {
+ /* @__PURE__ */ (0, L.jsx)(_ce, {
kind: e,
entity: n,
actions: o
@@ -37457,9 +37457,9 @@ function bce({ 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)(Ece, { link: e }, t))
+ children: d.map((e, t) => /* @__PURE__ */ (0, L.jsx)(xce, { link: e }, t))
}) : null,
- f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Dce, {
+ f.length || n.feed ? /* @__PURE__ */ (0, L.jsx)(Sce, {
entity: n,
actions: o,
helpers: s
@@ -37468,11 +37468,11 @@ function bce({ 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)(wce, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(yce, {
glyph: e.glyph,
label: e.label,
clip: e.clip,
- children: e.tags ? /* @__PURE__ */ (0, L.jsx)(Tce, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: e.tags ? /* @__PURE__ */ (0, L.jsx)(bce, { 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 +37499,14 @@ function bce({ kind: e, name: t, entity: n, feedNew: i, feedHost: a, actions: o,
}, e.k))
})
}) : null]
- }), a ? (0, Ch.createPortal)(/* @__PURE__ */ (0, L.jsx)(Oce, {
+ }), a ? (0, Ch.createPortal)(/* @__PURE__ */ (0, L.jsx)(Cce, {
feedNew: i,
host: a,
actions: o,
helpers: s
}), a) : null] });
}
-function xce({ kind: e, name: t, helpers: n, people: i, company: a }) {
+function gce({ 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 +37515,8 @@ function xce({ kind: e, name: t, helpers: n, people: i, company: a }) {
dangerouslySetInnerHTML: { __html: o }
});
}
-function Sce({ kind: e, entity: t, actions: r }) {
- let i = XM(t), a = (e, t) => (n) => {
+function _ce({ kind: e, entity: t, actions: r }) {
+ let i = tN(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 +37525,36 @@ function Sce({ 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 = yce(t.name_groups);
+ let e = mce(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)(GM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
+ children: [/* @__PURE__ */ (0, L.jsx)(XM, { name: "film" }), /* @__PURE__ */ (0, L.jsx)("span", { children: s })]
}),
o ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-meta-item": "",
title: "事务所",
- children: [/* @__PURE__ */ (0, L.jsx)(GM, { name: "briefcase" }), /* @__PURE__ */ (0, L.jsx)("span", { children: o })]
+ children: [/* @__PURE__ */ (0, L.jsx)(XM, { 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)(GM, { name: "id-card" }),
+ /* @__PURE__ */ (0, L.jsx)(XM, { 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)(YM, {
+ e.rest > 0 ? /* @__PURE__ */ (0, L.jsx)(eN, {
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)(Cce, {
+ children: /* @__PURE__ */ (0, L.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, L.jsx)(vce, {
label: e.label,
names: e.names
}, t)) })
@@ -37589,25 +37589,25 @@ function Sce({ kind: e, entity: t, actions: r }) {
]
});
}
-function Cce({ label: e, names: t }) {
+function vce({ 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 wce({ 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)(GM, { name: e }), t] }), /* @__PURE__ */ (0, L.jsx)("dd", {
+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", {
"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,
title: n,
children: r
})] });
}
-function Tce({ tags: e }) {
- let { shown: t, rest: n } = vce(e);
+function bce({ tags: e }) {
+ let { shown: t, rest: n } = pce(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)(YM, {
+ }, e)), n ? /* @__PURE__ */ (0, L.jsx)(eN, {
id: "entityTagPop",
hook: "fact",
rest: n,
@@ -37622,10 +37622,10 @@ function Tce({ tags: e }) {
})
}) : null] });
}
-function eN({ mark: e }) {
+function aN({ mark: e }) {
if ("brand" in e) return /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-icon": "brand",
- children: /* @__PURE__ */ (0, L.jsx)(GM, { name: e.brand })
+ children: /* @__PURE__ */ (0, L.jsx)(XM, { 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 +37633,7 @@ function eN({ mark: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-function Ece({ link: e }) {
+function xce({ link: e }) {
switch (e.type) {
case "icon": return /* @__PURE__ */ (0, L.jsx)("a", {
"data-link": "icon",
@@ -37642,19 +37642,19 @@ function Ece({ link: e }) {
rel: "noreferrer",
title: e.title,
"aria-label": e.title,
- children: /* @__PURE__ */ (0, L.jsx)(eN, { mark: e.mark })
+ children: /* @__PURE__ */ (0, L.jsx)(aN, { 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)(eN, { mark: { globe: !0 } })
+ children: /* @__PURE__ */ (0, L.jsx)(aN, { mark: { globe: !0 } })
});
case "private": return /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link": "private",
title: "私人馆藏来源记录,不直接打开下载页",
- children: [/* @__PURE__ */ (0, L.jsx)(eN, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(aN, { mark: { globe: !0 } }), /* @__PURE__ */ (0, L.jsxs)("span", {
"data-link-label": "",
children: ["来源 · ", e.label]
})]
@@ -37665,14 +37665,14 @@ function Ece({ link: e }) {
target: "_blank",
rel: "noreferrer",
title: e.title,
- children: [/* @__PURE__ */ (0, L.jsx)(eN, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(aN, { mark: e.mark }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-link-label": "",
children: e.text
})]
});
}
}
-function Dce({ entity: e, actions: t, helpers: n }) {
+function Sce({ 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 +37690,31 @@ function Dce({ entity: e, actions: t, helpers: n }) {
};
return /* @__PURE__ */ (0, L.jsxs)("div", {
"data-entry-marks": "",
- children: [$M(e).map((e, t) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ children: [iN(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)(GM, { name: e.mark }) : /* @__PURE__ */ (0, L.jsxs)("span", {
+ children: [e.mark ? /* @__PURE__ */ (0, L.jsx)(XM, { 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)(uce, {
+ }, t)), e.feed ? /* @__PURE__ */ (0, L.jsx)(ace, {
following: r,
busy: a,
onToggle: (e) => {
l(e);
},
- tip: mce(r)
+ tip: lce(r)
}) : null]
});
}
-function Oce({ feedNew: e, host: t, actions: n, helpers: r }) {
+function Cce({ 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 +37738,7 @@ function Oce({ feedNew: e, host: t, actions: n, helpers: r }) {
}
//#endregion
//#region src/follow-sort.ts
-var tN = [
+var oN = [
["checked", "检查时间"],
["added", "添加时间"],
["name", "创作者名称"],
@@ -37746,7 +37746,7 @@ var tN = [
["source", "来源名称"],
["provider", "站点"],
["status", "状态"]
-], kce = "checked", nN = {
+], wce = "checked", sN = {
checked: "desc",
added: "desc",
name: "asc",
@@ -37754,32 +37754,32 @@ var tN = [
source: "asc",
provider: "asc",
status: "asc"
-}, Ace = (e) => tN.some(([t]) => t === e);
-function rN(e, t) {
- let n = Ace(e) ? e : kce;
+}, Tce = (e) => oN.some(([t]) => t === e);
+function cN(e, t) {
+ let n = Tce(e) ? e : wce;
return {
sort: n,
- dir: t === "asc" || t === "desc" ? t : nN[n]
+ dir: t === "asc" || t === "desc" ? t : sN[n]
};
}
//#endregion
//#region src/react/follow-manage/follow-manage.ts
-var iN = "/api/follow", aN = "/api/follow/credentials", oN = "/api/follow/check", sN = "/api/follow/source", cN = "/api/follow/resolve", jce = "/api/follow/suggest", lN = "/api/follow/author-alias", Mce = "/api/follow/credential", uN = "/api/follow/status", Nce = "/api/feeds", dN = "/api/feeds/source", Pce = "/api/feeds/check", Fce = "/api/feeds/lookup", fN = ["follow-manage"], pN = ["follow-manage", "credentials"], Ice = ["follow-manage", "check"], Lce = ["follow-manage", "resolve"], mN = ["follow-manage", "feeds"], Rce = (e) => [
+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) => [
"follow-manage",
"suggest",
e
-], hN = [["default", "默认视图"], ["table", "表格视图"]], gN = [
+], bN = [["default", "默认视图"], ["table", "表格视图"]], xN = [
10,
20,
50,
100
-], zce = Object.fromEntries(tN), _N = {
+], Pce = Object.fromEntries(oN), SN = {
author: "name",
source: "source",
provider: "provider",
status: "status",
checked: "checked"
-}, vN = (e) => hN.some(([t]) => t === e), yN = (e) => gN.includes(Number(e)) ? Number(e) : 20, bN = {
+}, Fce = (e) => bN.some(([t]) => t === e), Ice = (e) => xN.includes(Number(e)) ? Number(e) : 20, Lce = {
checked: ["从近到远", "从远到近"],
added: ["从近到远", "从远到近"],
name: ["倒序", "正序"],
@@ -37787,25 +37787,25 @@ var iN = "/api/follow", aN = "/api/follow/credentials", oN = "/api/follow/check"
source: ["倒序", "正序"],
provider: ["倒序", "正序"],
status: ["倒序", "正序"]
-}, xN = (e, t) => `按${zce[e]}${bN[e][t === "asc" ? 0 : 1]}排序`;
-function SN(e) {
+}, Rce = (e, t) => `按${Pce[e]}${Lce[e][t === "asc" ? 0 : 1]}排序`;
+function CN(e) {
let t = e.last_status;
return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;
}
-function CN(e) {
+function wN(e) {
return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";
}
-var wN = (e) => e.last_status === "error" || e.last_status === "unauthorized", TN = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), EN = {
- source: TN,
- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || TN(e, t),
- status: (e, t) => SN(e) - SN(t) || TN(e, t)
-}, DN = (e) => Date.parse(e || "") || 0, ON = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();
-function kN(e, t = []) {
+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 = []) {
if (!e.length) return "";
- let n = (e) => String(e.author_name || "").trim() || ON(e.label), r = e.find((e) => e.entity_name);
+ let n = (e) => String(e.author_name || "").trim() || kN(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 ON(i.canonical_name);
+ if (i) return kN(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 +37813,18 @@ function kN(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 AN(e) {
+function jN(e) {
let t = e.trim().match(/[A-Za-z0-9]/);
return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();
}
-function jN(e) {
+function MN(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 MN(e) {
+function NN(e) {
let t = [], n = /* @__PURE__ */ new Map();
for (let r of e) {
let e = r.author_key || `source:${r.id}`;
@@ -37832,32 +37832,32 @@ function MN(e) {
}
return t.map((e) => n.get(e));
}
-function NN(e, t, n, r = []) {
- let i = MN(e), a = n === nN[t] ? 1 : -1, o = (e) => kN(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = EN[t];
+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];
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) => DN(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => DN(e.created_at)));
+ let l = (e) => Math.max(...e.map((e) => ON(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => ON(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 PN(e, t, n, r = []) {
+function FN(e, t, n, r = []) {
let i = e.flatMap((e) => {
- let t = kN(e, r);
+ let t = AN(e, r);
return e.map((n) => ({
source: n,
group: e,
author: t
}));
- }), a = EN[t];
+ }), a = DN[t];
if (a) {
- let e = n === nN[t] ? 1 : -1;
+ let e = n === sN[t] ? 1 : -1;
i.sort((t, n) => e * a(t.source, n.source));
}
return i;
}
-function FN(e, t, n) {
- let r = KO(e, t), i = qO(n, r), a = (i - 1) * t;
+function IN(e, t, n) {
+ let r = $O(e, t), i = ek(n, r), a = (i - 1) * t;
return {
page: i,
pages: r,
@@ -37866,91 +37866,91 @@ function FN(e, t, n) {
end: Math.min(a + t, e)
};
}
-function IN(e, t) {
+function LN(e, t) {
let n = new Set(t.map((e) => e.id));
return new Set([...e].filter((e) => n.has(e)));
}
-function LN(e, t) {
+function RN(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 RN(e, t, n) {
+function zN(e, t, n) {
let r = new Set(e);
for (let e of t) n ? r.add(e) : r.delete(e);
return r;
}
-var zN = (e) => hw(`${iN}?summary=1`, e), BN = (e) => hw(aN, e), VN = (e) => hw(oN, e), HN = (e) => hw(cN, e), UN = (e, t) => hw(`${jce}?q=${encodeURIComponent(e)}`, t), WN = (e) => q(oN, {
+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, {
...e?.length ? { sources: e } : {},
background: !0
-}), GN = (e) => q(cN, {
+}), KN = (e) => q(pN, {
lines: e,
background: !0
-}), KN = (e, t) => q(sN, {
+}), qN = (e, t) => q(fN, {
action: "enabled",
id: e,
enabled: t
-}), qN = (e) => q(sN, {
+}), JN = (e) => q(fN, {
action: "remove",
id: e
-}), JN = (e) => q(sN, {
+}), YN = (e) => q(fN, {
action: "add",
url: e.url,
label: e.label,
author: e.author || "",
aliases: e.aliases || [],
defer_check: !0
-}), YN = (e, t) => q(lN, {
+}), XN = (e, t) => q(mN, {
action: "add",
canonical: e,
alias: t
-}), XN = (e) => q(lN, {
+}), ZN = (e) => q(mN, {
action: "remove",
alias: e
-}), ZN = (e, t) => q(Mce, {
+}), QN = (e, t) => q(Dce, {
provider: e,
values: t
-}), QN = (e, t) => q(uN, {
+}), $N = (e, t) => q(hN, {
item: e,
to: t
-}), $N = () => hw(`${iN}?status=new&limit=1000`);
-async function eP(e) {
- let t = await hw(Nce, e);
+}), eP = () => Tw(`${lN}?status=new&limit=1000`);
+async function tP(e) {
+ let t = await Tw(Oce, e);
if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");
return t;
}
-var tP = (e, t, n) => q(dN, {
+var nP = (e, t, n) => q(gN, {
action: "enabled",
id: e,
enabled: t
-}, "POST", n), nP = (e, t) => q(dN, {
+}, "POST", n), rP = (e, t) => q(gN, {
action: "remove",
id: e
-}, "POST", t), rP = (e, t) => q(Pce, t?.length ? { sources: t } : { all: !0 }, "POST", e), iP = (e, t) => hw(`${Fce}?q=${encodeURIComponent(e)}`, t), aP = (e, t, n) => q(dN, {
+}, "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, {
action: "follow-name",
name: e,
ids: t
}, "POST", n);
-async function oP(e, t = "") {
+async function sP(e, t = "") {
await Promise.all([
X.fetchQuery({
- queryKey: fN,
- queryFn: () => zN(e)
+ queryKey: _N,
+ queryFn: () => BN(e)
}),
X.fetchQuery({
- queryKey: pN,
- queryFn: () => BN(e)
+ queryKey: vN,
+ queryFn: () => VN(e)
}),
t === "feeds" ? X.fetchQuery({
- queryKey: mN,
- queryFn: () => eP(e)
+ queryKey: yN,
+ queryFn: () => tP(e)
}) : null
]);
}
-function sP(e, t) {
- X.setQueryData(fN, (n) => n && {
+function cP(e, t) {
+ X.setQueryData(_N, (n) => n && {
...n,
sources: n.sources.map((n) => n.id === e ? {
...n,
@@ -37958,24 +37958,24 @@ function sP(e, t) {
} : n)
});
}
-function cP(e) {
+function lP(e) {
let t = new Set(e);
- X.setQueryData(fN, (e) => e && {
+ X.setQueryData(_N, (e) => e && {
...e,
sources: e.sources.filter((e) => !t.has(e.id))
});
}
-var lP = () => X.invalidateQueries({
- queryKey: fN,
+var uP = () => X.invalidateQueries({
+ queryKey: _N,
exact: !0
});
-function uP(e) {
+function dP(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 dP = (e) => (e?.results || []).filter((e) => !e.ok), fP = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", pP = (e) => e.last_checked_at ? JO(e.last_checked_at) : "未检查", mP = /* @__PURE__ */ new Set([
+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([
"fanbox",
"patreon",
"subscribestar",
@@ -37988,50 +37988,50 @@ var dP = (e) => (e?.results || []).filter((e) => !e.ok), fP = (e) => (e?.results
"gofile",
"f95zone",
"simpcity"
-]), hP = (e) => mP.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", gP = {
+]), gP = (e) => hP.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", _P = {
required: "需要",
optional: "可选",
none: "不需要",
blocked: "接不进来"
-}, _P = (e) => !!e.present && !e.missing.length, vP = [
+}, vP = (e) => !!e.present && !e.missing.length, yP = [
["", "全部"],
["new", "未看"],
["saved", "已保存"],
["ignored", "已忽略"]
-], yP = [
+], bP = [
["new", "更新时间"],
["hot", "热度"],
["dur", "时长"]
-], bP = {
+], xP = {
new: ["从新到旧", "从旧到新"],
hot: ["从高到低", "从低到高"],
dur: ["从长到短", "从短到长"]
};
-function xP(e, t) {
+function SP(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 SP(e, t) {
+function CP(e, t) {
return {
queryKey: [
"follow-feed",
- xP(e, 0),
+ SP(e, 0),
t
],
- queryFn: ({ pageParam: t, signal: n }) => hw(xP(e, t), n),
+ queryFn: ({ pageParam: t, signal: n }) => Tw(SP(e, t), n),
initialPageParam: 0,
getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,
placeholderData: Me
};
}
-var CP = ["follow-feed", "credentials"], wP = (e) => hw(aN, e).catch(() => ({ providers: [] }));
-async function TP(e, t) {
- let n = SP(e.view, e.revision);
+var wP = ["follow-feed", "credentials"], TP = (e) => Tw(uN, e).catch(() => ({ providers: [] }));
+async function EP(e, t) {
+ let n = CP(e.view, e.revision);
X.removeQueries({
queryKey: n.queryKey,
exact: !0
}), X.removeQueries({
- queryKey: CP,
+ queryKey: wP,
exact: !0
}), await Promise.all([X.fetchInfiniteQuery({
queryKey: n.queryKey,
@@ -38042,11 +38042,11 @@ async function TP(e, t) {
initialPageParam: 0,
getNextPageParam: n.getNextPageParam
}), X.fetchQuery({
- queryKey: CP,
- queryFn: () => wP(t)
+ queryKey: wP,
+ queryFn: () => TP(t)
})]);
}
-function EP(e) {
+function DP(e) {
if (!e?.pages.length) return null;
let t = e.pages, n = t[t.length - 1];
return {
@@ -38055,10 +38055,10 @@ function EP(e) {
groups: t.flatMap((e) => e.groups || [])
};
}
-function DP(e, t, n) {
+function OP(e, t, n) {
return [...e].sort((e, r) => f(n, t(e)) - f(n, t(r)) || String(t(e)).localeCompare(String(t(r))));
}
-function OP(e) {
+function kP(e) {
let t = /* @__PURE__ */ new Set();
return [
e.primary,
@@ -38066,33 +38066,75 @@ function OP(e) {
...e.duplicates
].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));
}
-function kP(e) {
- return OP(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));
-}
function AP(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);
+ if (r) return {
+ item: r,
+ group: t,
+ sources: n.sources || [],
+ aliases: n.author_aliases || []
+ };
+ }
+ }
+ return null;
+}
+function jP(e) {
+ X.setQueriesData({
+ queryKey: ["follow-feed"],
+ predicate: (e) => Array.isArray(e.state.data?.pages)
+ }, (t) => t && {
+ ...t,
+ pages: t.pages.map((t) => ({
+ ...t,
+ groups: (t.groups || []).map((t) => {
+ let n = (t) => t.id === e.id ? e : t;
+ return kP(t).some((t) => t.id === e.id) ? {
+ ...t,
+ primary: n(t.primary),
+ variants: t.variants.map(n),
+ duplicates: t.duplicates.map(n)
+ } : t;
+ })
+ }))
+ });
+}
+function MP(e, t) {
+ X.setQueriesData({
+ queryKey: ["follow-feed"],
+ predicate: (e) => Array.isArray(e.state.data?.pages)
+ }, (n) => n && UP(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 PP(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 jP(e) {
+function FP(e) {
let t = /* @__PURE__ */ new Set();
- return OP(e).forEach((e) => AP(e).forEach((e) => t.add(e))), t;
+ return kP(e).forEach((e) => PP(e).forEach((e) => t.add(e))), t;
}
-function MP(e, t) {
+function IP(e, t) {
let n = t === "images" ? "image" : "video";
- return kP(e).find((e) => AP(e).has(n)) || e.primary;
+ return NP(e).find((e) => PP(e).has(n)) || e.primary;
}
-function NP(e) {
- return kP(e).filter((e) => e.playable && e.media_kind === "video");
+function LP(e) {
+ return NP(e).filter((e) => e.playable && e.media_kind === "video");
}
-var PP = {
+var RP = {
video: "个视频",
image: "张图片",
mixed: "个媒体"
};
-function FP({ 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} ${PP[s] || PP.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];
+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] : [];
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,
@@ -38101,14 +38143,14 @@ function FP({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r
faces: d.length > 1 ? d.slice(0, i) : []
};
}
-function IP(e) {
+function BP(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 LP(e, t, n) {
- return e === t ? bP[e] ? {
+function VP(e, t, n) {
+ return e === t ? xP[e] ? {
sort: e,
dir: n === "asc" ? "desc" : "asc"
} : null : {
@@ -38116,13 +38158,13 @@ function LP(e, t, n) {
dir: "desc"
};
}
-function RP(e, t, n, r) {
- let i = LP(e, n, r);
+function HP(e, t, n, r) {
+ let i = VP(e, n, r);
if (!i) return "";
- let a = bP[i.sort];
+ let a = xP[i.sort];
return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;
}
-function zP(e, t, n, r) {
+function UP(e, t, n, r) {
let i = "", a = e.pages.map((e) => ({
...e,
groups: (e.groups || []).flatMap((e) => {
@@ -38135,7 +38177,7 @@ function zP(e, t, n, r) {
variants: e.variants.map(o),
duplicates: e.duplicates.map(o)
};
- return a && t.status && s.primary.id === n && r !== t.status ? [] : [s];
+ return a && t?.status && s.primary.id === n && r !== t.status ? [] : [s];
})
}));
return !i || i === r ? {
@@ -38152,7 +38194,7 @@ function zP(e, t, n, r) {
})
};
}
-function BP(e, t) {
+function WP(e, t) {
let n = [];
return e.author && n.push({
kind: "创作者",
@@ -38172,7 +38214,7 @@ function BP(e, t) {
label: e
})), n;
}
-function VP(e, t) {
+function GP(e, t) {
return t.kind === "创作者" ? {
...e,
author: ""
@@ -38187,7 +38229,7 @@ function VP(e, t) {
tags: e.tags.filter((e) => e !== t.key)
};
}
-function HP(e, t) {
+function KP(e, t) {
for (let n of e) {
let e = n.primary?.tag_types?.[t];
if (e) return e;
@@ -38195,12 +38237,799 @@ function HP(e, t) {
return "general";
}
//#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);
+ for (let t of n.groups || []) {
+ let r = kP(t).find((t) => t.id === e);
+ if (r) return {
+ item: r,
+ group: t,
+ sources: n.sources || [],
+ aliases: n.author_aliases || []
+ };
+ }
+ 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)
+ });
+ r ? X.setQueryData(n, {
+ ...r,
+ item: r.item
+ }) : await X.fetchQuery({
+ queryKey: n,
+ queryFn: () => ZP(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);
+ return {
+ embedded: i,
+ selected: s,
+ kind: p,
+ images: c,
+ position: l,
+ carousel: u,
+ embeddedQueue: d,
+ collection: f,
+ frameRatio: p === "image" ? m.length ? Math.min(...m.map((e) => e.width / e.height)) : +!!u : 0,
+ 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 = {
+ "gofile.io": "Gofile",
+ "pixeldrain.com": "Pixeldrain",
+ "mega.nz": "MEGA",
+ "mega.io": "MEGA",
+ "mediafire.com": "MediaFire",
+ "drive.google.com": "Google Drive"
+}, nF = {
+ gofile: "Gofile",
+ pixeldrain: "Pixeldrain",
+ mega: "MEGA",
+ mediafire: "MediaFire",
+ google_drive: "Google Drive"
+};
+function rF(e) {
+ try {
+ let t = new URL(e).hostname.replace(/^www\./, "");
+ return tF[t] || t;
+ } catch {
+ return "外部文件页";
+ }
+}
+function iF(e, t) {
+ return nF[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";
+}
+function aF(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;
+ return {
+ label: r,
+ 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([
+ "artist",
+ "character",
+ "copyright",
+ "metadata",
+ "unknown"
+]);
+function lF(e, t) {
+ let n = sF(e, t);
+ return `r34-${cF.has(n) ? n : "general"}`;
+}
+var uF = [
+ "copyright",
+ "character",
+ "artist",
+ "general",
+ "metadata"
+];
+function dF(e, t) {
+ let n = e.detail_tags || e.tags || [], r = (t) => {
+ let n = uF.indexOf(sF(e, t));
+ return n < 0 ? uF.length : n;
+ };
+ return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));
+}
+function fF(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) => ({
+ sources: e.sources,
+ aliases: e.aliases,
+ credentials: t
+}), mF = (e) => e?.size ? { size: e.size } : {};
+function hF(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),
+ 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),
+ position: 1,
+ total: 1
+ }] : e.thumb_url ? [{
+ src: e.thumb_url,
+ thumb: e.thumb_url,
+ name: e.title,
+ source: e.provider_label || e.provider || "在线图片",
+ position: 1,
+ total: 1
+ }] : [];
+}
+var gF = (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 }) {
+ return /* @__PURE__ */ (0, L.jsxs)("aside", {
+ className: "mixqueue",
+ "data-queue-kind": e,
+ ...c,
+ children: [/* @__PURE__ */ (0, L.jsxs)("div", {
+ className: "mixqueuehead",
+ children: [/* @__PURE__ */ (0, L.jsxs)("div", { children: [/* @__PURE__ */ (0, L.jsx)("h2", {
+ className: "font-semibold",
+ children: t
+ }), /* @__PURE__ */ (0, L.jsx)("span", { children: n })] }), /* @__PURE__ */ (0, L.jsxs)("div", {
+ className: "mixqueueactions",
+ children: [i, /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ "data-queue-close": "",
+ title: "关闭",
+ "aria-label": "关闭",
+ onClick: r,
+ dangerouslySetInnerHTML: { __html: s("x") }
+ })]
+ })]
+ }), /* @__PURE__ */ (0, L.jsx)("div", {
+ className: "mixlist",
+ ref: a,
+ children: o
+ })]
+ });
+}
+function vF({ current: e, pic: t, children: n, ...r }) {
+ return /* @__PURE__ */ (0, L.jsx)("div", {
+ className: "mixrow",
+ children: /* @__PURE__ */ (0, L.jsxs)("button", {
+ type: "button",
+ className: e ? "mixitem current" : "mixitem",
+ "aria-current": e ? "true" : "false",
+ ...r,
+ children: [/* @__PURE__ */ (0, L.jsx)("span", {
+ className: "mixitempic",
+ children: t
+ }), /* @__PURE__ */ (0, L.jsx)("span", {
+ className: "mixitemtext",
+ children: n
+ })]
+ })
+ });
+}
+var yF = ({ 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", {
+ 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)
+ }), 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, {
+ ...e,
+ data: r.data,
+ context: pF(r.data, a),
+ mediaIndex: o,
+ onMedia: s
+ }) : /* @__PURE__ */ (0, L.jsx)("div", {
+ className: "sgrid",
+ "data-follow-detail": "",
+ 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", {
+ "data-follow-detail-placeholder": "",
+ children: r.isError ? /* @__PURE__ */ (0, L.jsx)(oT, {
+ message: d(r.error),
+ onRetry: () => void r.refetch()
+ }) : null
+ })]
+ })
+ });
+}
+var wF = ({ onClose: e }) => /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ className: "closestage",
+ id: "closeStage",
+ title: "关闭",
+ "aria-label": "关闭",
+ 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)({
+ key: "",
+ kind: ""
+ }), m = {
+ failed: () => p({
+ key: d,
+ kind: "failed"
+ }),
+ thumbFallback: () => p({
+ key: d,
+ kind: "thumb"
+ })
+ };
+ (0, I.useLayoutEffect)(() => {
+ o.present(s, l.kind);
+ }, [
+ o,
+ s,
+ l.kind
+ ]);
+ let h = !l.embedded.length && l.collection ? eF(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, L.jsx)(jF, {
+ item: s,
+ current: l.selected.index,
+ helpers: a,
+ actions: o,
+ onMedia: r
+ }) : l.collection ? h ? /* @__PURE__ */ (0, L.jsx)(jF, {
+ item: h,
+ current: null,
+ helpers: a,
+ actions: o,
+ onMedia: r,
+ currentId: s.id
+ }) : /* @__PURE__ */ (0, L.jsx)(AF, {
+ group: l.collection,
+ itemId: s.id,
+ helpers: a,
+ actions: o
+ }) : null;
+ return /* @__PURE__ */ (0, L.jsxs)("div", {
+ className: g ? "sgrid mixgrid" : "sgrid",
+ "data-follow-detail": "",
+ children: [
+ /* @__PURE__ */ (0, L.jsx)(EF, {
+ item: s,
+ media: l,
+ helpers: a,
+ actions: o,
+ onMedia: r,
+ issues: m
+ }, d),
+ g,
+ /* @__PURE__ */ (0, L.jsx)(MF, {
+ item: s,
+ data: e,
+ context: t,
+ media: l,
+ write: u,
+ issue: f.key === d ? f.kind : "",
+ helpers: a,
+ actions: o
+ })
+ ]
+ });
+}
+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)({
+ item: e,
+ selected: c
+ });
+ (0, I.useLayoutEffect)(() => {
+ let e = w.current;
+ if (e) return r.mountPlayer(e, T.current.item, T.current.selected);
+ }, [r]), (0, I.useLayoutEffect)(() => {
+ let e = m.current, t = e?.querySelector("[data-follow-detail-poster]"), n = e?.querySelector("[data-follow-image-step]");
+ if (!e || !t || !n) return;
+ let r = () => {
+ if (!t.naturalWidth || !t.naturalHeight) return;
+ let r = e.getBoundingClientRect(), i = Math.min(r.width, r.height * (t.naturalWidth / t.naturalHeight)), a = Math.max(0, (r.width - i) / 2), o = matchMedia("(max-width:640px)").matches ? 10 : 16;
+ g(Math.round(a >= n.offsetWidth + o * 2 ? (a - n.offsetWidth) / 2 : o));
+ }, i = new ResizeObserver(r);
+ return i.observe(e), t.addEventListener("load", r), () => {
+ i.disconnect(), t.removeEventListener("load", r);
+ };
+ }, [S]);
+ let E = (e) => i(u[(d + e + u.length) % u.length].index);
+ return /* @__PURE__ */ (0, L.jsxs)("div", {
+ ref: m,
+ className: "vwrap",
+ "data-follow-detail-media": o || "none",
+ "data-framed": p ? "" : void 0,
+ style: {
+ "--follow-frame-ratio": p ? p.toFixed(4) : void 0,
+ "--follow-image-arrow-inset": h === null ? void 0 : `${h}px`
+ },
+ children: [
+ /* @__PURE__ */ (0, L.jsx)(wF, { onClose: r.close }),
+ y ? /* @__PURE__ */ (0, L.jsx)("video", {
+ ref: w,
+ className: "video-js vjs-big-play-centered",
+ controls: !0,
+ playsInline: !0,
+ preload: "metadata",
+ poster: e.thumb_url || void 0,
+ onError: a.failed
+ }) : b ? /* @__PURE__ */ (0, L.jsx)("img", {
+ "data-follow-detail-poster": "",
+ "data-zoomable": _.length ? "" : void 0,
+ src: S,
+ alt: e.title,
+ referrerPolicy: "no-referrer",
+ onClick: _.length ? () => void AM(Math.max(0, d), _) : void 0,
+ onError: () => {
+ if (x && S !== x) {
+ C(x), a.thumbFallback();
+ return;
+ }
+ a.failed();
+ }
+ }) : /* @__PURE__ */ (0, L.jsxs)("div", {
+ "data-follow-detail-placeholder": "",
+ children: [/* @__PURE__ */ (0, L.jsx)("span", {
+ className: "contents",
+ dangerouslySetInnerHTML: { __html: n.sourceIcon(e.resource_provider || e.provider) }
+ }), /* @__PURE__ */ (0, L.jsx)("span", { children: "没有可用预览" })]
+ }),
+ f ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+ /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ "data-follow-image-step": "-1",
+ "data-follow-image-arrow": "prev",
+ "aria-label": "上一张图片",
+ title: "上一张",
+ onClick: () => E(-1),
+ dangerouslySetInnerHTML: { __html: s("chevron-left") }
+ }),
+ /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ "data-follow-image-step": "1",
+ "data-follow-image-arrow": "next",
+ "aria-label": "下一张图片",
+ title: "下一张",
+ onClick: () => E(1),
+ dangerouslySetInnerHTML: { __html: s("chevron-right") }
+ }),
+ /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-follow-image-dots": "",
+ role: "group",
+ "aria-label": `${u.length} 张图片`,
+ children: u.map((e, t) => /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ "data-follow-image-item": e.index,
+ "aria-current": t === d ? "true" : "false",
+ "aria-label": `第 ${t + 1} 张,共 ${u.length} 张`,
+ title: `第 ${t + 1} 张`,
+ onClick: () => i(e.index)
+ }, e.index))
+ })
+ ] }) : null
+ ]
+ });
+}
+var DF = ({ kind: e }) => /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-follow-nothumb": "",
+ dangerouslySetInnerHTML: { __html: s(e === "image" ? "image-off" : "play") }
+});
+function OF({ src: e }) {
+ let [t, n] = (0, I.useState)(!1);
+ return t ? null : /* @__PURE__ */ (0, L.jsx)("img", {
+ src: e,
+ alt: "",
+ loading: "lazy",
+ referrerPolicy: "no-referrer",
+ onError: () => n(!0)
+ });
+}
+function kF(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, {
+ kind: "collection",
+ "data-follow-queue": "",
+ title: "视频合集",
+ onClose: r.close,
+ 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, {
+ 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", {
+ className: "dur mono",
+ children: i(a.duration)
+ }) : null] }),
+ children: [/* @__PURE__ */ (0, L.jsx)("b", {
+ "data-truncate-end": "",
+ children: s.title
+ }), /* @__PURE__ */ (0, L.jsxs)("span", {
+ "data-follow-queue-meta": "",
+ children: [c ? /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-follow-queue-source": "",
+ dangerouslySetInnerHTML: { __html: c }
+ }) : /* @__PURE__ */ (0, L.jsx)("i", {
+ "data-follow-variant": a.variant_kind || "",
+ children: s.label
+ }), /* @__PURE__ */ (0, L.jsx)("time", {
+ dateTime: a.published_at || "",
+ children: n.when(a)
+ })]
+ })]
+ }, a.id);
+ })
+ });
+}
+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 = [];
+ o.forEach((e) => {
+ let t = e.resource_group || "ungrouped", n = c.find((e) => e.key === t);
+ n || (n = {
+ key: t,
+ label: e.resource_group_label || "",
+ items: []
+ }, 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, {
+ 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, {
+ label: n.label,
+ count: n.items.length
+ }, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, L.jsxs)(vF, {
+ 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 || "" }),
+ children: [/* @__PURE__ */ (0, L.jsx)("b", {
+ "data-middle-truncate": "",
+ children: oF(n)
+ }), /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-truncate-end": "",
+ children: n.media_kind === "image" ? "图片" : "视频"
+ })]
+ }, n.index))])
+ });
+}
+function MF({ 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) ? {
+ "aria-busy": !0,
+ "aria-disabled": !0
+ } : {};
+ return /* @__PURE__ */ (0, L.jsx)("div", {
+ className: "side",
+ "data-follow-detail-side": "",
+ children: /* @__PURE__ */ (0, L.jsxs)("div", {
+ className: "sidecontent",
+ children: [
+ /* @__PURE__ */ (0, L.jsxs)("div", {
+ "data-follow-detail-title": "",
+ children: [/* @__PURE__ */ (0, L.jsx)("div", {
+ className: "stitle",
+ "data-follow-detail-name": "",
+ "data-reveal-line": "",
+ dangerouslySetInnerHTML: { __html: u.titleMarks(h, e) + r(e.title) }
+ }), e.url ? /* @__PURE__ */ (0, L.jsx)("a", {
+ className: "externallink",
+ "data-follow-origin": "",
+ href: e.url,
+ target: "_blank",
+ rel: "noreferrer noopener",
+ title: "打开来源页面",
+ "aria-label": "打开来源页面",
+ dangerouslySetInnerHTML: { __html: SF }
+ }) : null]
+ }),
+ /* @__PURE__ */ (0, L.jsxs)("div", {
+ "data-follow-detail-identity": "",
+ children: [/* @__PURE__ */ (0, L.jsx)("span", {
+ className: "mav",
+ "data-follow-source-avatar": "",
+ dangerouslySetInnerHTML: { __html: _.avatar }
+ }), /* @__PURE__ */ (0, L.jsxs)("div", { children: [
+ /* @__PURE__ */ (0, L.jsx)("b", { children: _.author }),
+ v ? /* @__PURE__ */ (0, L.jsxs)("span", { children: ["发布者 ", v] }) : null,
+ _.credited ? /* @__PURE__ */ (0, L.jsxs)("span", { children: ["署名含 ", _.credited] }) : null
+ ] })]
+ }),
+ /* @__PURE__ */ (0, L.jsxs)("div", {
+ className: "smeta mono",
+ "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,
+ g ? /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-follow-badges": "",
+ dangerouslySetInnerHTML: { __html: g }
+ }) : null
+ ]
+ }),
+ e.summary ? /* @__PURE__ */ (0, L.jsx)("p", {
+ "data-follow-detail-summary": "",
+ children: e.summary
+ }) : null,
+ y ? /* @__PURE__ */ (0, L.jsx)("p", {
+ "data-follow-media-issue": "",
+ children: y
+ }) : null,
+ /* @__PURE__ */ (0, L.jsx)("p", {
+ "data-follow-media-issue": "",
+ "data-media-load-issue": "",
+ hidden: l !== "failed",
+ children: "媒体未取回:上游这一次没有返回内容,多半是站点限流,过一阵再打开。"
+ }),
+ /* @__PURE__ */ (0, L.jsx)("p", {
+ "data-follow-media-issue": "",
+ "data-media-thumb-fallback": "",
+ hidden: l !== "thumb",
+ children: "原图未取回,先显示缩略图:上游拦下了这一次请求。"
+ }),
+ e.resource_urls?.length ? /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-follow-resources": "",
+ children: e.resource_urls.map((e) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ className: "externallink",
+ href: e,
+ target: "_blank",
+ rel: "noreferrer noopener",
+ children: [rF(e), /* @__PURE__ */ (0, L.jsx)("span", {
+ className: "contents",
+ dangerouslySetInnerHTML: { __html: SF }
+ })]
+ }, e))
+ }) : null,
+ /* @__PURE__ */ (0, L.jsxs)("div", {
+ className: "fb",
+ "data-follow-detail-actions": "",
+ children: [
+ /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ className: "later",
+ "data-follow-detail-save": "",
+ "aria-label": x ? "已保存" : "保存到账本",
+ title: x ? "已保存" : "保存到账本",
+ disabled: x,
+ ...C("save"),
+ onClick: c.save,
+ dangerouslySetInnerHTML: { __html: s(x ? "check" : "bookmark-plus") }
+ }),
+ /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ className: "seen",
+ "data-follow-detail-status": "seen",
+ "aria-label": "标记已看",
+ title: "标记已看",
+ "aria-pressed": e.status === "seen",
+ ...C("seen"),
+ onClick: () => c.status("seen"),
+ dangerouslySetInnerHTML: { __html: s("eye") }
+ }),
+ /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ className: "dislike",
+ "data-follow-detail-status": "ignored",
+ "aria-label": "忽略",
+ title: "忽略",
+ "aria-pressed": e.status === "ignored",
+ ...C("ignored"),
+ onClick: () => c.status("ignored"),
+ dangerouslySetInnerHTML: { __html: s("eye-off") }
+ }),
+ e.status === "seen" || e.status === "ignored" ? /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ "data-follow-detail-status": "new",
+ "aria-label": "恢复未看",
+ title: "恢复未看",
+ ...C("new"),
+ onClick: () => c.status("new"),
+ dangerouslySetInnerHTML: { __html: s("rotate-ccw") }
+ }) : null,
+ f === "image" && p ? /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ className: "dislike",
+ "data-follow-media-hide": p.index,
+ "aria-label": "隐藏这张图",
+ title: "隐藏这张图",
+ ...C(`hide:${p.index}`),
+ onClick: () => c.hide(p.index),
+ dangerouslySetInnerHTML: { __html: s("image-off") }
+ }) : null,
+ m ? /* @__PURE__ */ (0, L.jsx)("a", {
+ "data-follow-download": "",
+ href: `${m}${m.includes("?") ? "&" : "?"}download=1`,
+ download: "",
+ "aria-label": "下载到本地",
+ title: "下载到本地",
+ dangerouslySetInnerHTML: { __html: s("download") }
+ }) : null
+ ]
+ }),
+ e.hidden_media?.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
+ "data-follow-hidden-media": "",
+ children: [/* @__PURE__ */ (0, L.jsxs)("span", {
+ "data-follow-hidden-label": "",
+ children: [
+ "已隐藏 ",
+ e.hidden_media.length,
+ " 张"
+ ]
+ }), /* @__PURE__ */ (0, L.jsx)("div", {
+ "data-follow-hidden-thumbs": "",
+ children: e.hidden_media.map((e) => /* @__PURE__ */ (0, L.jsxs)("button", {
+ type: "button",
+ "data-follow-media-restore": e.index,
+ title: `恢复显示 ${e.name || ""}`,
+ "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") } })]
+ }, e.index))
+ })]
+ }) : null,
+ /* @__PURE__ */ (0, L.jsx)("span", {
+ "data-follow-state": "",
+ "aria-live": "polite",
+ children: c.failure
+ }),
+ b.length ? /* @__PURE__ */ (0, L.jsx)("div", {
+ className: "stags",
+ "data-follow-detail-tags": "",
+ children: b.map((t) => /* @__PURE__ */ (0, L.jsx)("button", {
+ type: "button",
+ className: "tg",
+ "data-tag-cat": lF(e, t),
+ "data-follow-tag": t,
+ onClick: () => d.openTag(t),
+ children: u.tagLabel(t)
+ }, t))
+ }) : null
+ ]
+ })
+ });
+}
+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) => {
+ let r = new Set(n);
+ return t ? r.add(e) : r.delete(e), r;
+ }), u = (e) => {
+ X.setQueryData(i, (t) => t && {
+ ...t,
+ item: {
+ ...t.item,
+ status: e
+ }
+ }), MP(r, e);
+ }, f = (e) => {
+ c(d(e) || "操作失败"), t.failure("更新关注状态", e);
+ }, p = Pt({
+ mutationFn: ({ to: e }) => q(hN, {
+ 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, {
+ item: r,
+ to: i
+ }), u(i);
+ } });
+ },
+ onError: f,
+ onSettled: (e, t, { to: n }) => l(n, !1)
+ }), m = Pt({
+ mutationFn: () => q(YP, { item: r }),
+ onSuccess: () => {
+ u("saved"), c(""), t.toast("已保存到账本");
+ },
+ onError: f,
+ onSettled: () => l("save", !1)
+ }), h = Pt({
+ mutationFn: async ({ index: e, hidden: t }) => {
+ await q(XP, {
+ item: r,
+ media: e,
+ hidden: t
+ }), await X.invalidateQueries({
+ queryKey: i,
+ exact: !0
+ });
+ },
+ onSuccess: (e, { hidden: r, next: a }) => {
+ let o = X.getQueryData(i);
+ o && jP(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");
+ },
+ onError: f,
+ onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)
+ });
+ return {
+ busy: a,
+ failure: s,
+ save: () => {
+ l("save", !0), m.mutate();
+ },
+ status: (t) => {
+ l(t, !0), p.mutate({
+ to: t,
+ was: e.status
+ });
+ },
+ hide: (t) => {
+ let n = (e.media_items || []).find((e) => e.index !== t && e.media_kind === "image");
+ l(`hide:${t}`, !0), h.mutate({
+ index: t,
+ hidden: !0,
+ next: n ? n.index : null
+ });
+ },
+ restore: (e) => {
+ l(`restore:${e}`, !0), h.mutate({
+ index: e,
+ hidden: !1,
+ next: e
+ });
+ }
+ };
+}
+//#endregion
+//#region src/sidebar.ts
+function PF(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 UP = (e) => Number(e) > 0;
-function WP(e) {
+var FF = (e) => Number(e) > 0;
+function IF(e) {
return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;
}
-function GP({ src: e, width: t, height: n, onLearn: r }) {
+function LF({ 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,
@@ -38216,8 +39045,8 @@ function GP({ src: e, width: t, height: n, onLearn: r }) {
} : void 0
});
}
-function KP(e) {
- let { group: t, authorSources: n, media: a, context: o, selected: c, selectMode: l, busy: u, failure: d, helpers: f, actions: p } = e, m = MP(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" ? NP(t) : [], C = (m.media_items || []).length > 1 ? m.id : S[0]?.id || m.id, w = FP({
+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({
cover: _,
coverFace: (g?.thumb_url ? g : m).face,
stack: t.stack,
@@ -38225,7 +39054,7 @@ function KP(e) {
limit: 9
}), T = (0, I.useRef)(w.faces);
T.current = w.faces;
- let E = cT({
+ let E = _T({
load: async () => T.current,
canFlip: () => T.current.length > 1 && p.canFlip(),
referrerPolicy: "no-referrer"
@@ -38267,7 +39096,7 @@ function KP(e) {
"data-follow-open": "",
"aria-label": `打开 ${m.title} 详情`
}),
- _ ? /* @__PURE__ */ (0, L.jsx)(GP, {
+ _ ? /* @__PURE__ */ (0, L.jsx)(LF, {
src: _,
width: b?.width,
height: b?.height,
@@ -38302,7 +39131,7 @@ function KP(e) {
},
dangerouslySetInnerHTML: { __html: s("check") }
}),
- UP(m.duration) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ FF(m.duration) ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-duration": "",
children: i(m.duration)
}) : null,
@@ -38395,7 +39224,7 @@ function KP(e) {
}), /* @__PURE__ */ (0, L.jsx)("time", {
dateTime: m.published_at || "",
title: A,
- children: WP(A)
+ children: IF(A)
})]
}),
k.credited ? /* @__PURE__ */ (0, L.jsx)("div", {
@@ -38431,10 +39260,10 @@ function KP(e) {
]
});
}
-var qP = (0, I.memo)(KP), JP = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var zF = (0, I.memo)(RF), BF = () => /* @__PURE__ */ (0, L.jsx)("span", {
"data-entity-sep": "",
"aria-hidden": "true"
-}), YP = sT("settings"), XP = sT("chevron-down"), ZP = sT("history"), QP = [[
+}), VF = gT("settings"), HF = gT("chevron-down"), UF = gT("history"), WF = [[
"fixed",
"固定比例",
"layout-grid"
@@ -38443,19 +39272,19 @@ var qP = (0, I.memo)(KP), JP = () => /* @__PURE__ */ (0, L.jsx)("span", {
"瀑布流",
"columns-2"
]];
-function $P(e, t, n) {
+function GF(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 = DP([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = DP(o.works || [], (e) => e[0], n).slice(0, 24);
+ let f = OP([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = OP(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 = DP([...u], (e) => e[0], n).slice(0, 20);
+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = OP([...u], (e) => e[0], n).slice(0, 20);
t.tags.forEach((e) => {
h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);
});
@@ -38463,7 +39292,7 @@ function $P(e, t, n) {
videos: 0,
images: 0
};
- r.forEach((e) => jP(e).forEach((e) => {
+ r.forEach((e) => FP(e).forEach((e) => {
g[e === "image" ? "images" : "videos"] += 1;
}));
let _ = t.media === "images" ? "image" : "video";
@@ -38478,7 +39307,7 @@ function $P(e, t, n) {
workRows: p,
allCount: m,
mediaCounts: g,
- visible: r.filter((e) => jP(e).has(_)),
+ visible: r.filter((e) => FP(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]])),
@@ -38491,32 +39320,31 @@ function $P(e, t, n) {
n
]);
}
-function eF(e) {
- let { view: t, seed: n, revision: r, helpers: i, actions: a } = e, o = SP(t, r), s = Ft(o), c = Nt({
- queryKey: CP,
- queryFn: ({ signal: e }) => wP(e)
- }), l = (0, I.useMemo)(() => EP(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 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)(() => ({
sources: l?.sources || [],
aliases: l?.author_aliases || [],
credentials: u
- }), [l, u]), p = $P(l, t, n), m = s.isPending || s.isPlaceholderData, h = !m && l;
+ }), [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]);
(0, I.useEffect)(() => {
- h && a.loaded(h, p.visible, u);
+ h && a.loaded(g);
}, [
h,
- p.visible,
- u,
+ g,
a
]);
- let g = tF(e, !!l);
- if (!l) return s.isError ? /* @__PURE__ */ (0, L.jsx)(Zw, {
+ let _ = qF(e, !!l);
+ if (!l) return s.isError ? /* @__PURE__ */ (0, L.jsx)(oT, {
message: d(s.error),
onRetry: () => void s.refetch()
}) : null;
- let _ = (e) => a.route({
+ let v = (e) => a.route({
...t,
...e
- }), v = BP({
+ }), y = WP({
...t,
author: p.author,
provider: p.provider
@@ -38524,11 +39352,11 @@ function eF(e) {
authors: new Map([...p.authorSources].map(([e, t]) => [e, i.authorName(t, f)])),
providers: p.providers,
works: p.workNames
- }), y = t.status ? p.counts[t.status] || 0 : p.allCount, b = p.sources.some((e) => e.can_backfill);
+ }), b = t.status ? p.counts[t.status] || 0 : p.allCount, x = p.sources.some((e) => e.can_backfill);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("div", {
- ref: g.host,
+ ref: _.host,
"data-follow-progress": ""
- }, g.generation), /* @__PURE__ */ (0, L.jsxs)("div", {
+ }, _.generation), /* @__PURE__ */ (0, L.jsxs)("div", {
"data-follow-feed": "",
"data-select-mode": e.selectMode ? "" : void 0,
children: [
@@ -38541,7 +39369,7 @@ function eF(e) {
"data-follow-head-actions": "",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
- leadingIcon: YP,
+ leadingIcon: VF,
"data-follow-manage": "",
onClick: a.openManage,
children: "管理关注"
@@ -38549,91 +39377,91 @@ function eF(e) {
variant: "primary",
"data-follow-recheck": "",
"aria-label": "检查每个来源的更新",
- "aria-busy": g.busy || void 0,
- onClick: () => void g.start(!1),
- children: g.starting === "check" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ "aria-busy": _.busy || void 0,
+ onClick: () => void _.start(!1),
+ children: _.starting === "check" ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "contents",
dangerouslySetInnerHTML: { __html: D("检查中") }
}) : "检查更新"
}) : null]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(nF, {
+ /* @__PURE__ */ (0, L.jsx)(JF, {
facets: p,
pressed: p.author,
context: f,
props: e,
- onPick: (e) => _({ author: p.author === e ? "" : e })
+ onPick: (e) => v({ author: p.author === e ? "" : e })
}),
- /* @__PURE__ */ (0, L.jsx)(rF, {
+ /* @__PURE__ */ (0, L.jsx)(YF, {
rows: p.workRows,
pressed: t.work,
props: e,
- onPick: (e) => _({ work: t.work === e ? "" : e })
+ onPick: (e) => v({ work: t.work === e ? "" : e })
}),
- /* @__PURE__ */ (0, L.jsx)(iF, {
+ /* @__PURE__ */ (0, L.jsx)(XF, {
facets: p,
view: t,
- total: y,
+ total: b,
busy: m,
props: e,
- route: _
+ route: v
}),
- /* @__PURE__ */ (0, L.jsx)(aF, {
- conditions: v,
- onDrop: (e) => a.route(VP(t, e)),
- onClear: () => _({
+ /* @__PURE__ */ (0, L.jsx)(ZF, {
+ conditions: y,
+ onDrop: (e) => a.route(GP(t, e)),
+ onClear: () => v({
author: "",
provider: "",
work: "",
tags: []
})
}),
- p.broken.length ? /* @__PURE__ */ (0, L.jsx)(oF, {
+ p.broken.length ? /* @__PURE__ */ (0, L.jsx)(QF, {
count: p.broken.length,
onManage: a.openManage
}) : null,
- /* @__PURE__ */ (0, L.jsx)(sF, {
+ /* @__PURE__ */ (0, L.jsx)($F, {
pending: m,
facets: p,
data: l,
context: f,
props: e
}, o.queryKey.join("\0")),
- l.has_more || b ? /* @__PURE__ */ (0, L.jsxs)("div", {
+ l.has_more || x ? /* @__PURE__ */ (0, L.jsxs)("div", {
"data-follow-pagination": "",
children: [l.has_more ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-follow-page-action": "",
- children: /* @__PURE__ */ (0, L.jsxs)(mT, {
+ children: /* @__PURE__ */ (0, L.jsxs)(CT, {
entity: !0,
- enabled: () => !g.busyRef.current,
+ enabled: () => !_.busyRef.current,
load: async () => {
await s.fetchNextPage({ throwOnError: !0 });
},
- children: [/* @__PURE__ */ (0, L.jsx)(XP, { className: "size-3.5" }), "加载更多"]
+ children: [/* @__PURE__ */ (0, L.jsx)(HF, { className: "size-3.5" }), "加载更多"]
}, s.data?.pages.length)
- }) : null, b ? /* @__PURE__ */ (0, L.jsxs)("span", {
+ }) : null, x ? /* @__PURE__ */ (0, L.jsxs)("span", {
"data-follow-page-action": "",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
- leadingIcon: g.olderBusy ? void 0 : ZP,
+ leadingIcon: _.olderBusy ? void 0 : UF,
"data-follow-older": "",
- "aria-busy": g.busy || void 0,
- onClick: () => void g.start(!0),
- children: g.olderBusy ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("span", {
+ "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("抓取中") }
}), /* @__PURE__ */ (0, L.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"
}), /* @__PURE__ */ (0, L.jsx)("span", {
"data-follow-backfill": "",
- children: IP(p.sources)
+ children: BP(p.sources)
})]
}) : null]
}) : null
]
})] });
}
-function tF(e, t) {
+function qF(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
@@ -38648,7 +39476,7 @@ function tF(e, t) {
return h.current.helpers.jobProgress({
host: e,
active: () => t,
- read: (e) => hw(oN, e),
+ read: (e) => Tw(dN, e),
busy: (e) => {
t && (p.current = e, s(e));
},
@@ -38673,7 +39501,7 @@ function tF(e, t) {
p.current = !0, l(e ? "older" : "check");
let t = !1;
try {
- let n = await q(oN, e ? {
+ let n = await q(dN, e ? {
older: !0,
background: !0
} : { background: !0 });
@@ -38691,7 +39519,7 @@ function tF(e, t) {
olderBusy: c === "older" || u && o
};
}
-function nF({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
+function JF({ 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);
@@ -38717,7 +39545,7 @@ function nF({ facets: e, pressed: t, context: n, props: r, onPick: i }) {
})
}) : null;
}
-function rF({ rows: e, pressed: t, props: n, onPick: r }) {
+function YF({ rows: e, pressed: t, props: n, onPick: r }) {
let i = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
n.helpers.wireDrag(i.current);
@@ -38738,13 +39566,13 @@ function rF({ rows: e, pressed: t, props: n, onPick: r }) {
}, e[0]))
}) : null;
}
-function iF({ 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 = FM(l, d, "[data-follow-filter][aria-pressed=\"true\"]", t.status), _ = FM(u, f, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${h}`);
+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}`);
(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)(Qj, {
+ return /* @__PURE__ */ (0, L.jsx)(rM, {
label: "筛选与排序",
topLabel: h ? "媒体与关注筛选" : "关注筛选",
attrs: {
@@ -38796,7 +39624,7 @@ function iF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: s(i) }
}, e);
})
- }), /* @__PURE__ */ (0, L.jsx)(JP, {})] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
+ }), /* @__PURE__ */ (0, L.jsx)(BF, {})] }) : null, /* @__PURE__ */ (0, L.jsxs)("div", {
ref: p,
"data-entity-scroll": "",
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -38805,7 +39633,7 @@ function iF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
"aria-label": "状态",
"data-entity-states": "",
onPointerLeave: g.leave,
- children: [vP.map(([e, n]) => /* @__PURE__ */ (0, L.jsx)("button", {
+ children: [yP.map(([e, n]) => /* @__PURE__ */ (0, L.jsx)("button", {
type: "button",
"data-entity-state": e,
"data-follow-filter": e,
@@ -38816,7 +39644,7 @@ function iF({ 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)(JP, {}) : null]
+ }, e)), y ? /* @__PURE__ */ (0, L.jsx)(BF, {}) : null]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
ref: m,
"data-entity-tags": "",
@@ -38831,11 +39659,11 @@ function iF({ 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)(JP, {}) : null,
- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, L.jsxs)($j, {
+ v.length && e.tagRows.length ? /* @__PURE__ */ (0, L.jsx)(BF, {}) : null,
+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, L.jsxs)(iM, {
"data-follow-tag": n,
"data-entity-press": "",
- "data-tag-cat": `r34-${HP(e.groups, n)}`,
+ "data-tag-cat": `r34-${KP(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", {
@@ -38853,11 +39681,11 @@ function iF({ 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)(RM, { onPress: c.shuffle }),
- b ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(LM, {
+ /* @__PURE__ */ (0, L.jsx)(UM, { onPress: c.shuffle }),
+ b ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(HM, {
label: "图片布局",
value: i.photoLayout,
- options: QP,
+ options: WF,
onChange: (e) => c.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
@@ -38874,17 +39702,17 @@ function iF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
dangerouslySetInnerHTML: { __html: s("captions-off") }
})]
})] }) : null,
- yP.map(([e, n]) => {
- let r = t.sort === e, i = sT(t.dir === "asc" ? "arrow-up" : "arrow-down");
+ bP.map(([e, n]) => {
+ let r = t.sort === e, i = gT(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": RP(e, n, t.sort, t.dir) || void 0,
+ "aria-label": HP(e, n, t.sort, t.dir) || void 0,
onClick: () => {
- let n = LP(e, t.sort, t.dir);
+ let n = VP(e, t.sort, t.dir);
n && a(n);
},
children: [n, r ? /* @__PURE__ */ (0, L.jsx)(i, { className: "size-3.5" }) : null]
@@ -38894,7 +39722,7 @@ function iF({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {
})] })
});
}
-function aF({ conditions: e, onDrop: t, onClear: n }) {
+function ZF({ conditions: e, onDrop: t, onClear: n }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-entity-combo": "",
"data-follow-combo": "",
@@ -38919,7 +39747,7 @@ function aF({ conditions: e, onDrop: t, onClear: n }) {
})] }) : null
});
}
-function oF({ count: e, onManage: t }) {
+function QF({ count: e, onManage: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-follow-broken": "",
onClick: (e) => {
@@ -38928,12 +39756,12 @@ function oF({ 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 sF({ pending: e, facets: t, data: n, context: r, props: i }) {
- let { view: a, helpers: o } = i, s = a.media === "images", c = Xw(e, () => o.listSkeletonHtml(a.media));
+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));
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)(cF, {
+ children: [c.layer, e ? null : /* @__PURE__ */ (0, L.jsx)(eI, {
facets: t,
data: n,
context: r,
@@ -38942,39 +39770,39 @@ function sF({ pending: e, facets: t, data: n, context: r, props: i }) {
})]
});
}
-function cF({ facets: e, data: t, context: n, props: r, images: i }) {
- let { view: a, helpers: o, actions: s } = r, c = fF(r), l = 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 ? {
"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)(qP, {
+ return /* @__PURE__ */ (0, L.jsx)(zF, {
group: t,
authorSources: l,
media: a.media,
context: n,
- selected: r.selected.has(lF(t, a)),
+ selected: r.selected.has(tI(t, a)),
selectMode: r.selectMode,
- busy: c.busy.get(lF(t, a)) || "",
- failure: c.failures.get(lF(t, a)) || "",
+ busy: c.busy.get(tI(t, a)) || "",
+ failure: c.failures.get(tI(t, a)) || "",
helpers: o,
actions: s,
onStatus: c.status,
onSave: c.save
}, `${u}:${a.media}`);
- }) : /* @__PURE__ */ (0, L.jsx)(uF, { data: t }), /* @__PURE__ */ (0, L.jsx)("div", {
+ }) : /* @__PURE__ */ (0, L.jsx)(nI, { data: t }), /* @__PURE__ */ (0, L.jsx)("div", {
"data-follow-list": "",
"data-follow-wall": i ? "" : void 0,
...l,
children: u
});
}
-function lF(e, t) {
- return MP(e, t.media).id;
+function tI(e, t) {
+ return IP(e, t.media).id;
}
-function uF({ data: e }) {
+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>" });
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-follow-empty": "",
@@ -38982,22 +39810,22 @@ function uF({ data: e }) {
dangerouslySetInnerHTML: { __html: t }
});
}
-var dF = {
+var rI = {
new: "已恢复未看",
seen: "已标记已看",
ignored: "已忽略"
};
-function fF(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 = SP(t, n).queryKey, l = (e, t, n) => n((n) => {
+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) => {
let r = new Map(n);
return t ? r.set(e, t) : r.delete(e), r;
}), u = (e, n) => {
- X.setQueryData(c, (r) => r && zP(r, t, e, n));
+ X.setQueryData(c, (r) => r && UP(r, t, e, n));
}, f = () => void X.invalidateQueries({
queryKey: c,
exact: !0
}), p = (e) => {
- let t = EP(X.getQueryData(c));
+ let t = DP(X.getQueryData(c));
for (let n of t?.groups || []) for (let t of [
n.primary,
...n.variants,
@@ -39005,13 +39833,13 @@ function fF(e) {
]) if (t.id === e) return t.status;
return "new";
}, m = Pt({
- mutationFn: ({ id: e, to: t }) => q(uN, {
+ mutationFn: ({ id: e, to: t }) => q(hN, {
item: e,
to: t
}),
onSuccess: (e, { id: t, to: n, was: i }) => {
- u(t, n), f(), r.toast(dF[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
- await q(uN, {
+ u(t, n), f(), r.toast(rI[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {
+ await q(hN, {
item: t,
to: i
}), u(t, i), f();
@@ -39056,8 +39884,8 @@ function fF(e) {
}
//#endregion
//#region src/react/follow-manage/source-view.tsx
-function pF({ provider: e, label: t }) {
- let n = hP(e), [r, i] = (0, I.useState)(!1);
+function aI({ provider: e, label: t }) {
+ let n = gP(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: "",
@@ -39066,10 +39894,10 @@ function pF({ provider: e, label: t }) {
loading: "lazy",
onError: () => i(!0),
className: "size-3.5 shrink-0 rounded-sm object-contain"
- }), t ? /* @__PURE__ */ (0, L.jsx)(W_, { children: t }) : null] });
+ }), t ? /* @__PURE__ */ (0, L.jsx)(q_, { children: t }) : null] });
}
-function mF({ group: e, name: t }) {
- let { src: n, fallback: r } = jN(e), [i, a] = (0, I.useState)(0), o = [n, r].filter(Boolean)[i];
+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];
return o ? /* @__PURE__ */ (0, L.jsx)("img", {
src: o,
alt: "",
@@ -39082,18 +39910,18 @@ function mF({ 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: AN(t)
+ children: jN(t)
});
}
-function hF({ source: e }) {
- let t = wN(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";
- return /* @__PURE__ */ (0, L.jsx)(uw, {
+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, {
variant: "caption",
color: t,
- children: CN(e)
+ children: wN(e)
});
}
-function gF({ source: e }) {
+function cI({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("a", {
href: e.url,
target: "_blank",
@@ -39105,11 +39933,11 @@ function gF({ source: e }) {
}
//#endregion
//#region src/react/follow-manage/add-source.tsx
-var _F = sw(bA, xA, "text-body-2-medium"), vF = "粘贴来源链接,或输入创作者名、id…", yF = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", bF = "识别中…", xF = "站内没有查到来源", SF = (e, t) => `${e}:${t.url}`;
-function CF({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {
+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 }) {
return (0, I.useEffect)(() => {
t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });
- }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(tD, {
+ }, [t, r]), /* @__PURE__ */ (0, L.jsxs)(uD, {
ref: t,
triggerRef: e,
isOpen: !0,
@@ -39121,17 +39949,17 @@ function CF({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
placement: "bottom start",
offset: 4,
"aria-label": "来源建议",
- className: sw(yA, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),
+ className: _w(CA, "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)(Ew, { label: "正在查找建议" })
+ children: /* @__PURE__ */ (0, L.jsx)(Iw, { 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 ? sw(_F, "bg-background-secondary-default") : _F,
+ className: t === r ? _w(lI, "bg-background-secondary-default") : lI,
onMouseDown: (e) => e.preventDefault(),
onClick: () => a(e.value),
children: [
@@ -39151,7 +39979,7 @@ function CF({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCl
})] }, `${e.group}-${e.value}`))]
});
}
-function wF({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
+function Vce({ 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);
@@ -39159,20 +39987,20 @@ function wF({ 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: cne,
+ leadingIcon: gS,
"aria-haspopup": "dialog",
"aria-expanded": a,
"aria-label": l,
onClick: () => o(!0),
children: l
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ }), /* @__PURE__ */ (0, L.jsx)(uD, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom end",
offset: 4,
- className: yA,
- children: /* @__PURE__ */ (0, L.jsxs)(fD, {
+ className: CA,
+ children: /* @__PURE__ */ (0, L.jsxs)(xD, {
"aria-label": "来源筛选",
className: "flex w-64 flex-col gap-1 outline-none",
children: [s.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -39188,16 +40016,16 @@ function wF({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
onClick: () => n(new Set(s.map((e) => e.provider_label))),
children: "全不选"
})]
- }) : /* @__PURE__ */ (0, L.jsx)(PA, { children: "暂无可用来源" }), s.map((e) => {
+ }) : /* @__PURE__ */ (0, L.jsx)(RA, { 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)(mj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(vj, {
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)(pF, { provider: e.provider }), e.provider_label]
+ children: [/* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider }), e.provider_label]
})
}), n ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
@@ -39213,7 +40041,7 @@ function wF({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {
})
})] });
}
-function TF({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
+function Hce({ 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,
@@ -39221,7 +40049,7 @@ function TF({ 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: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-2 p-4"
}),
@@ -39231,15 +40059,15 @@ function TF({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
children: e.line
}),
a.length ? a.map((e) => {
- let n = SF(t, e);
- return /* @__PURE__ */ (0, L.jsx)(mj, {
+ let n = pI(t, e);
+ return /* @__PURE__ */ (0, L.jsx)(vj, {
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)(pF, { provider: e.provider }),
+ /* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider }),
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium",
children: e.provider_label
@@ -39255,22 +40083,22 @@ function TF({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {
]
})
}, n);
- }) : /* @__PURE__ */ (0, L.jsx)(PA, { children: xF }),
+ }) : /* @__PURE__ */ (0, L.jsx)(RA, { children: zce }),
(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)(LA, {
+ }), /* @__PURE__ */ (0, L.jsx)(VA, {
href: e.url,
children: `${e.label}:${e.query}`
})]
}, e.url)),
- o.length ? /* @__PURE__ */ (0, L.jsx)(PA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
+ o.length ? /* @__PURE__ */ (0, L.jsx)(RA, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null
]
});
}
-function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {
+function Uce({ 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();
@@ -39282,18 +40110,18 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
return () => clearTimeout(t);
}, [a]);
let D = Nt({
- queryKey: Rce(l),
- queryFn: ({ signal: e }) => UN(l, e),
+ queryKey: Nce(l),
+ queryFn: ({ signal: e }) => WN(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 } = cj({
- queryKey: Lce,
- queryFn: ({ signal: e }) => HN(e),
- start: (e) => GN([e]),
+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = fj({
+ queryKey: Mce,
+ queryFn: ({ signal: e }) => UN(e),
+ start: (e) => KN([e]),
onStarted: () => S(/* @__PURE__ */ new Set()),
onError: (e) => w(K(e)),
onFinish: (e) => {
@@ -39327,14 +40155,14 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
}, re = j?.results || [], ie = re.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({
candidate: e,
- key: SF(t, e)
+ key: pI(t, e)
})).filter((e) => !x.has(e.key))), ae = Pt({
mutationFn: async (e) => {
let t = [], n = [];
E(0);
for (let r of e) {
try {
- let e = await JN(r.candidate);
+ let e = await YN(r.candidate);
n.push(e.source);
} catch (e) {
t.push(`${r.candidate.label}:${K(e)}`);
@@ -39342,7 +40170,7 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
E((e) => e + 1);
}
if (n.length) try {
- await WN(n);
+ await GN(n);
} catch (e) {
t.push(K(e));
}
@@ -39352,7 +40180,7 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
};
},
onSuccess: (e) => {
- if (lP(), e.failures.length) {
+ if (uP(), e.failures.length) {
w(e.failures.join(";"));
return;
}
@@ -39361,7 +40189,7 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onError: (e) => w(K(e))
}), oe = e.suggestions || [], se = !s.includes("/");
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -39381,15 +40209,15 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
let t = e.relatedTarget;
!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);
},
- children: [/* @__PURE__ */ (0, L.jsx)(Ij, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Bj, {
"aria-label": "来源链接、名字或 id",
- placeholder: vF,
+ placeholder: uI,
value: a,
- leadingIcon: yS,
+ leadingIcon: kS,
isDisabled: n,
onChange: o,
onKeyDown: ne
- }), F ? /* @__PURE__ */ (0, L.jsx)(CF, {
+ }), F ? /* @__PURE__ */ (0, L.jsx)(Bce, {
field: _,
menu: v,
options: O,
@@ -39399,7 +40227,7 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
onClose: te
}) : null]
}),
- /* @__PURE__ */ (0, L.jsx)(wF, {
+ /* @__PURE__ */ (0, L.jsx)(Vce, {
credentials: t,
hidden: y,
onHidden: b,
@@ -39417,11 +40245,11 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
/* @__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)(Aw, {
+ children: [A || M.isPending ? k?.total ? /* @__PURE__ */ (0, L.jsx)(zw, {
label: k.message || `查找中:${k.checked || 0}/${k.total}`,
value: k.checked || 0,
max: k.total
- }) : /* @__PURE__ */ (0, L.jsx)(Ew, { label: se ? yF : bF }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: se ? dI : fI }) : null, C ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "这一次没有完成",
children: C
@@ -39430,8 +40258,8 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
re.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(IA, { children: "查找结果" }),
- re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(TF, {
+ /* @__PURE__ */ (0, L.jsx)(BA, { children: "查找结果" }),
+ re.map((e, t) => /* @__PURE__ */ (0, L.jsx)(Hce, {
row: e,
at: t,
hidden: y,
@@ -39486,16 +40314,16 @@ function EF({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i
}
//#endregion
//#region src/react/follow-manage/alias-manager.tsx
-var DF = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, OF = (e) => e.alias;
-function kF(e, t, n) {
+var Wce = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, mI = (e) => e.alias;
+function Gce(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 AF({ sources: e, name: t, canonicalKey: n }) {
+function hI({ sources: e, name: t, canonicalKey: n }) {
return /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(mF, {
- group: kF(e, t, n),
+ children: [/* @__PURE__ */ (0, L.jsx)(oI, {
+ group: Gce(e, t, n),
name: t
}), /* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium",
@@ -39503,15 +40331,15 @@ function AF({ sources: e, name: t, canonicalKey: n }) {
})]
});
}
-function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {
+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({
mutationFn: async (e) => {
let t = 0;
for (let n of e) {
try {
- await YN(n.canonical, n.alias);
+ await XN(n.canonical, n.alias);
} catch (n) {
- throw t && lP(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
+ throw t && uP(), Error(`${K(n)}(还有 ${e.length - t} 组没有合并)`);
}
t += 1;
}
@@ -39521,19 +40349,19 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
};
},
onSuccess: (e) => {
- c(""), o(/* @__PURE__ */ new Set()), lP(), i(`已合并 ${e.done} 组创作者别名`);
+ c(""), o(/* @__PURE__ */ new Set()), uP(), i(`已合并 ${e.done} 组创作者别名`);
},
onError: (e) => c(K(e))
}), m = Pt({
- mutationFn: (e) => YN(e.canonical, e.alias),
+ mutationFn: (e) => XN(e.canonical, e.alias),
onSuccess: () => {
- c(""), u(""), f(""), lP(), i("已保存创作者别名");
+ c(""), u(""), f(""), uP(), i("已保存创作者别名");
},
onError: (e) => c(K(e))
}), h = Pt({
- mutationFn: (e) => XN(e),
+ mutationFn: (e) => ZN(e),
onSuccess: () => {
- c(""), lP(), i("已移除创作者别名");
+ c(""), uP(), i("已移除创作者别名");
},
onError: (e) => c(K(e))
}), _ = (e, t) => {
@@ -39543,9 +40371,9 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
confirmLabel: t ? "合并全部别名" : "合并所选别名",
onConfirm: () => p.mutateAsync(e)
});
- }, v = t.filter((e) => a.has(OF(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);
+ }, v = t.filter((e) => a.has(mI(e))), y = t.length > 0 && v.length === t.length, b = Y(p.isPending);
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -39556,10 +40384,10 @@ function jF({ 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)(IA, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "手动添加别名" }), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
"aria-label": "规范创作者名",
placeholder: "规范创作者名",
value: l,
@@ -39567,7 +40395,7 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
isDisabled: r,
className: "w-56"
}),
- /* @__PURE__ */ (0, L.jsx)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
"aria-label": "平台别名",
placeholder: "平台别名",
value: d,
@@ -39588,13 +40416,13 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
]
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(FA, { children: s }) : null,
+ s ? /* @__PURE__ */ (0, L.jsx)(zA, { 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)(IA, { children: "待合并" }),
+ /* @__PURE__ */ (0, L.jsx)(BA, { children: "待合并" }),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "mr-auto text-body-2-regular text-text-secondary",
children: `${t.length} 组`
@@ -39616,44 +40444,44 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
children: `全部合并(${t.length})`
})
]
- }), /* @__PURE__ */ (0, L.jsx)(vj, { children: /* @__PURE__ */ (0, L.jsxs)(hj, {
+ }), /* @__PURE__ */ (0, L.jsx)(Sj, { children: /* @__PURE__ */ (0, L.jsxs)(yj, {
"aria-label": "待合并创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(ID, { children: [
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(GD, { children: [
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "select",
- children: /* @__PURE__ */ (0, L.jsx)(mj, {
+ children: /* @__PURE__ */ (0, L.jsx)(vj, {
slot: null,
isSelected: y,
isIndeterminate: v.length > 0 && !y,
"aria-label": "全选待合并别名",
- onChange: (e) => o(e ? new Set(t.map(OF)) : /* @__PURE__ */ new Set())
+ onChange: (e) => o(e ? new Set(t.map(mI)) : /* @__PURE__ */ new Set())
})
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "canonical",
children: "规范创作者"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "alias",
isRowHeader: !0,
children: "平台别名"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "evidence",
children: "依据"
}),
- /* @__PURE__ */ (0, L.jsx)(LD, {
+ /* @__PURE__ */ (0, L.jsx)(KD, {
id: "actions",
children: "操作"
})
- ] }), /* @__PURE__ */ (0, L.jsx)(zD, { children: t.map((e) => {
- let t = OF(e);
- return /* @__PURE__ */ (0, L.jsxs)(HD, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(JD, { children: t.map((e) => {
+ let t = mI(e);
+ return /* @__PURE__ */ (0, L.jsxs)(ZD, {
id: t,
"data-board-selected": a.has(t) || void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)(mj, {
+ /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(vj, {
slot: null,
isSelected: a.has(t),
"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,
@@ -39662,16 +40490,16 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
e ? n.add(t) : n.delete(t), o(n);
}
}) }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)(AF, {
+ /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(hI, {
sources: n,
name: e.canonical
}) }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: e.alias }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ /* @__PURE__ */ (0, L.jsx)($D, { children: e.alias }),
+ /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: e.evidence
}) }),
- /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
disabled: r,
@@ -39688,27 +40516,27 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
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)(IA, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "已保存别名" }), /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
children: `${e.length} 组`
})]
- }), e.length ? /* @__PURE__ */ (0, L.jsx)(vj, { children: /* @__PURE__ */ (0, L.jsxs)(hj, {
+ }), e.length ? /* @__PURE__ */ (0, L.jsx)(Sj, { children: /* @__PURE__ */ (0, L.jsxs)(yj, {
"aria-label": "已保存创作者别名",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsxs)(ID, { children: [/* @__PURE__ */ (0, L.jsx)(LD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(GD, { children: [/* @__PURE__ */ (0, L.jsx)(KD, {
id: "canonical",
isRowHeader: !0,
children: "规范创作者"
- }), /* @__PURE__ */ (0, L.jsx)(LD, {
+ }), /* @__PURE__ */ (0, L.jsx)(KD, {
id: "aliases",
children: "平台别名"
- })] }), /* @__PURE__ */ (0, L.jsx)(zD, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(HD, {
+ })] }), /* @__PURE__ */ (0, L.jsx)(JD, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(ZD, {
id: e.canonical_key,
- children: [/* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)(AF, {
+ children: [/* @__PURE__ */ (0, L.jsx)($D, { children: /* @__PURE__ */ (0, L.jsx)(hI, {
sources: n,
name: e.canonical_name,
canonicalKey: e.canonical_key
- }) }), /* @__PURE__ */ (0, L.jsx)(WD, { children: /* @__PURE__ */ (0, L.jsx)("span", {
+ }) }), /* @__PURE__ */ (0, L.jsx)($D, { 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",
@@ -39716,13 +40544,13 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
variant: "ghost",
size: "xs",
iconOnly: !0,
- leadingIcon: cS,
+ leadingIcon: uS,
"aria-label": `移除别名 ${e.name}`,
disabled: r,
...Y(h.isPending),
onClick: () => void g({
title: "移除创作者别名",
- body: DF(e.name),
+ body: Wce(e.name),
confirmLabel: "移除创作者别名",
onConfirm: () => h.mutateAsync(e.name)
})
@@ -39730,9 +40558,9 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}, e.key))
}) })]
}, e.canonical_key)) })]
- }) }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: wS,
+ icon: PS,
title: "还没有保存创作者别名",
children: "填写规范创作者名和平台别名以添加。"
})]
@@ -39742,33 +40570,33 @@ function jF({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i
}
//#endregion
//#region src/react/follow-manage/credentials.tsx
-var MF = "这些账号信息存在哪里", NF = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", PF = "将清除这个来源在本机和共享副本中的登录凭据。", FF = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
-function IF(e, t) {
+var qce = "这些账号信息存在哪里", Jce = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", Yce = "将清除这个来源在本机和共享副本中的登录凭据。", Xce = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";
+function Zce(e, t) {
return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";
}
-function LF({ row: e }) {
- if (_P(e)) return /* @__PURE__ */ (0, L.jsx)(uw, {
+function Qce({ row: e }) {
+ if (vP(e)) return /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "lime",
children: "已配置"
});
let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";
- return /* @__PURE__ */ (0, L.jsx)(uw, {
+ return /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: t,
- children: gP[e.requirement] || ""
+ children: _P[e.requirement] || ""
});
}
-function RF({ row: e, readOnly: t, toast: n }) {
- let [r, i] = (0, I.useState)({}), [a, o] = (0, I.useState)(""), s = _P(e), c = Pt({
- mutationFn: (t) => ZN(e.provider, t),
+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),
onSuccess: (e, t) => {
if (e.note) {
o(e.note);
return;
}
o(""), i({}), X.invalidateQueries({
- queryKey: pN,
+ queryKey: vN,
exact: !0
}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");
},
@@ -39784,17 +40612,17 @@ function RF({ row: e, readOnly: t, toast: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsxs)(PA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(LA, {
+ /* @__PURE__ */ (0, L.jsxs)(RA, { children: [e.why, e.where ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [" ", /* @__PURE__ */ (0, L.jsx)(VA, {
href: e.where,
children: "去取"
})] }) : null] }),
- e.howto ? /* @__PURE__ */ (0, L.jsx)(PA, { children: e.howto }) : null,
+ e.howto ? /* @__PURE__ */ (0, L.jsx)(RA, { 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)(Ij, {
+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, L.jsx)(Bj, {
type: "password",
label: n,
- placeholder: IF(e, n),
+ placeholder: Zce(e, n),
autoComplete: "off",
spellCheck: "false",
isDisabled: t,
@@ -39822,7 +40650,7 @@ function RF({ row: e, readOnly: t, toast: n }) {
...Y(c.isPending),
onClick: () => void g({
title: "清除来源凭据",
- body: PF,
+ body: Yce,
confirmLabel: "清除来源凭据",
danger: !0,
onConfirm: () => c.mutateAsync({})
@@ -39830,9 +40658,9 @@ function RF({ row: e, readOnly: t, toast: n }) {
children: "清除"
}) : null]
}),
- a ? /* @__PURE__ */ (0, L.jsx)(FA, { children: a }) : null,
- (e.shared_fields || []).length ? /* @__PURE__ */ (0, L.jsx)(PA, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,
- e.path ? /* @__PURE__ */ (0, L.jsx)(DA, {
+ 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, {
path: e.path,
className: "font-mono text-caption-1-regular text-text-tertiary",
onRevealed: n
@@ -39840,25 +40668,25 @@ function RF({ row: e, readOnly: t, toast: n }) {
e.world_readable ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "凭据文件权限过宽",
- children: FF
+ children: Xce
}) : null
]
});
}
-function zF({ row: e, readOnly: t, toast: n }) {
+function ele({ 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)(pF, { provider: e.provider })
+ children: /* @__PURE__ */ (0, L.jsx)(aI, { provider: e.provider })
}),
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium text-text-primary",
children: e.provider_label
}),
- /* @__PURE__ */ (0, L.jsx)(LF, { row: e }),
- e.missing.length ? /* @__PURE__ */ (0, L.jsx)(uw, {
+ /* @__PURE__ */ (0, L.jsx)(Qce, { row: e }),
+ e.missing.length ? /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "rose",
children: `缺 ${e.missing.join("、")}`
@@ -39867,13 +40695,13 @@ function zF({ 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)(PA, { children: e.why }) : null]
+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, L.jsx)(RA, { 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)(BA, {
- summary: _P(e) ? "修改凭据" : "填写凭据",
- defaultOpen: e.requirement === "required" && !_P(e),
- children: /* @__PURE__ */ (0, L.jsx)(RF, {
+ children: [r, /* @__PURE__ */ (0, L.jsx)(WA, {
+ summary: vP(e) ? "修改凭据" : "填写凭据",
+ defaultOpen: e.requirement === "required" && !vP(e),
+ children: /* @__PURE__ */ (0, L.jsx)($ce, {
row: e,
readOnly: t,
toast: n
@@ -39881,10 +40709,10 @@ function zF({ row: e, readOnly: t, toast: n }) {
})]
});
}
-function BF({ data: e, readOnly: t, toast: n }) {
- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !_P(e));
+function tle({ data: e, readOnly: t, toast: n }) {
+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !vP(e));
return r.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -39900,11 +40728,11 @@ function BF({ data: e, readOnly: t, toast: n }) {
}) : null]
}),
/* @__PURE__ */ (0, L.jsx)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col overflow-hidden"
}),
- children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(zF, {
+ children: r.map((e) => /* @__PURE__ */ (0, L.jsx)(ele, {
row: e,
readOnly: t,
toast: n
@@ -39915,13 +40743,13 @@ function BF({ data: e, readOnly: t, toast: n }) {
children: [
/* @__PURE__ */ (0, L.jsx)("b", {
className: "text-body-medium text-text-primary",
- children: MF
+ children: qce
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: NF
+ children: Jce
}),
- /* @__PURE__ */ (0, L.jsx)(DA, {
+ /* @__PURE__ */ (0, L.jsx)(jA, {
path: e.root,
prefix: "凭据文件在 ",
className: "text-body-2-regular text-text-secondary",
@@ -39930,16 +40758,16 @@ function BF({ data: e, readOnly: t, toast: n }) {
]
})
]
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: pne,
+ icon: CS,
title: "没有可配置的来源",
children: "已接入的站点及其凭据状态会显示在这里。"
});
}
//#endregion
//#region node_modules/@tanstack/table-core/build/lib/index.mjs
-function VF() {
+function gI() {
return {
accessor: (e, t) => typeof e == "function" ? {
...t,
@@ -39952,24 +40780,24 @@ function VF() {
group: (e) => e
};
}
-function HF(e, t) {
+function _I(e, t) {
return typeof e == "function" ? e(t) : e;
}
-function UF(e, t) {
+function vI(e, t) {
return (n) => {
t.setState((t) => ({
...t,
- [e]: HF(n, t[e])
+ [e]: _I(n, t[e])
}));
};
}
-function WF(e) {
+function yI(e) {
return e instanceof Function;
}
-function GF(e) {
+function nle(e) {
return Array.isArray(e) && e.every((e) => typeof e == "number");
}
-function KF(e, t) {
+function rle(e, t) {
let n = [], r = (e) => {
e.forEach((e) => {
n.push(e);
@@ -39979,7 +40807,7 @@ function KF(e, t) {
};
return r(e), n;
}
-function qF(e, t, n) {
+function bI(e, t, n) {
let r = [], i;
return (a) => {
let o;
@@ -40001,21 +40829,21 @@ function qF(e, t, n) {
return i;
};
}
-function JF(e, t, n, r) {
+function xI(e, t, n, r) {
return {
debug: () => e?.debugAll ?? e[t],
key: !1,
onChange: r
};
}
-function YF(e, t, n, r) {
+function ile(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: qF(() => [
+ getContext: bI(() => [
e,
n,
t,
@@ -40027,13 +40855,13 @@ function YF(e, t, n, r) {
cell: r,
getValue: r.getValue,
renderValue: r.renderValue
- }), JF(e.options, "debugCells", "cell.getContext"))
+ }), xI(e.options, "debugCells", "cell.getContext"))
};
return e._features.forEach((r) => {
r.createCell == null || r.createCell(i, n, t, e);
}, {}), i;
}
-function XF(e, t, n, r) {
+function ale(e, t, n, r) {
let i = {
...e._getDefaultColumnDef(),
...t
@@ -40050,17 +40878,17 @@ function XF(e, t, n, r) {
depth: n,
columnDef: i,
columns: [],
- getFlatColumns: qF(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], JF(e.options, "debugColumns", "column.getFlatColumns")),
- getLeafColumns: qF(() => [e._getOrderColumnsFn()], (e) => {
+ getFlatColumns: bI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], xI(e.options, "debugColumns", "column.getFlatColumns")),
+ getLeafColumns: bI(() => [e._getOrderColumnsFn()], (e) => {
var t;
return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];
- }, JF(e.options, "debugColumns", "column.getLeafColumns"))
+ }, xI(e.options, "debugColumns", "column.getLeafColumns"))
};
for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
return c;
}
-var ZF = "debugHeaders";
-function QF(e, t, n) {
+var SI = "debugHeaders";
+function CI(e, t, n) {
let r = {
id: n.id ?? t.id,
column: t,
@@ -40088,42 +40916,42 @@ function QF(e, t, n) {
t.createHeader == null || t.createHeader(r, e);
}), r;
}
-var $F = { createTable: (e) => {
- e.getHeaderGroups = qF(() => [
+var ole = { createTable: (e) => {
+ e.getHeaderGroups = bI(() => [
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 eI(t, [
+ return wI(t, [
...a,
...s,
...o
], e);
- }, JF(e.options, ZF, "getHeaderGroups")), e.getCenterHeaderGroups = qF(() => [
+ }, xI(e.options, SI, "getHeaderGroups")), e.getCenterHeaderGroups = bI(() => [
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))), eI(t, n, e, "center")), JF(e.options, ZF, "getCenterHeaderGroups")), e.getLeftHeaderGroups = qF(() => [
+ ], (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(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.left
- ], (t, n, r) => eI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), JF(e.options, ZF, "getLeftHeaderGroups")), e.getRightHeaderGroups = qF(() => [
+ ], (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(() => [
e.getAllColumns(),
e.getVisibleLeafColumns(),
e.getState().columnPinning.right
- ], (t, n, r) => eI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), JF(e.options, ZF, "getRightHeaderGroups")), e.getFooterGroups = qF(() => [e.getHeaderGroups()], (e) => [...e].reverse(), JF(e.options, ZF, "getFooterGroups")), e.getLeftFooterGroups = qF(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), JF(e.options, ZF, "getLeftFooterGroups")), e.getCenterFooterGroups = qF(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), JF(e.options, ZF, "getCenterFooterGroups")), e.getRightFooterGroups = qF(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), JF(e.options, ZF, "getRightFooterGroups")), e.getFlatHeaders = qF(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JF(e.options, ZF, "getFlatHeaders")), e.getLeftFlatHeaders = qF(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JF(e.options, ZF, "getLeftFlatHeaders")), e.getCenterFlatHeaders = qF(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JF(e.options, ZF, "getCenterFlatHeaders")), e.getRightFlatHeaders = qF(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), JF(e.options, ZF, "getRightFlatHeaders")), e.getCenterLeafHeaders = qF(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
+ ], (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) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), JF(e.options, ZF, "getCenterLeafHeaders")), e.getLeftLeafHeaders = qF(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
+ }), xI(e.options, SI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = bI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), JF(e.options, ZF, "getLeftLeafHeaders")), e.getRightLeafHeaders = qF(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
+ }), xI(e.options, SI, "getLeftLeafHeaders")), e.getRightLeafHeaders = bI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
var t;
return !((t = e.subHeaders) != null && t.length);
- }), JF(e.options, ZF, "getRightLeafHeaders")), e.getLeafHeaders = qF(() => [
+ }), xI(e.options, SI, "getRightLeafHeaders")), e.getLeafHeaders = bI(() => [
e.getLeftHeaderGroups(),
e.getCenterHeaderGroups(),
e.getRightHeaderGroups()
@@ -40131,9 +40959,9 @@ var $F = { createTable: (e) => {
...e[0]?.headers ?? [],
...t[0]?.headers ?? [],
...n[0]?.headers ?? []
- ].map((e) => e.getLeafHeaders()).flat(), JF(e.options, ZF, "getLeafHeaders"));
+ ].map((e) => e.getLeafHeaders()).flat(), xI(e.options, SI, "getLeafHeaders"));
} };
-function eI(e, t, n, r) {
+function wI(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;
@@ -40151,7 +40979,7 @@ function eI(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 = QF(n, c, {
+ let i = CI(n, c, {
id: [
r,
t,
@@ -40168,7 +40996,7 @@ function eI(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) => QF(n, e, {
+ s(t.map((e, t) => CI(n, e, {
depth: i,
index: t
})), i - 1), o.reverse();
@@ -40186,7 +41014,7 @@ function eI(e, t, n, r) {
});
return c(o[0]?.headers ?? []), o;
}
-var tI = (e, t, n, r, i, a, o) => {
+var sle = (e, t, n, r, i, a, o) => {
let s = {
id: t,
index: r,
@@ -40207,7 +41035,7 @@ var tI = (e, t, n, r, i, a, o) => {
},
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
subRows: a ?? [],
- getLeafRows: () => KF(s.subRows, (e) => e.subRows),
+ getLeafRows: () => rle(s.subRows, (e) => e.subRows),
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
getParentRows: () => {
let e = [], t = s;
@@ -40218,95 +41046,95 @@ var tI = (e, t, n, r, i, a, o) => {
}
return e.reverse();
},
- getAllCells: qF(() => [e.getAllLeafColumns()], (t) => t.map((t) => YF(e, s, t, t.id)), JF(e.options, "debugRows", "getAllCells")),
- _getAllCellsByColumnId: qF(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), JF(e.options, "debugRows", "getAllCellsByColumnId"))
+ 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"))
};
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;
-}, nI = { createColumn: (e, t) => {
+}, cle = { 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();
};
-} }, rI = (e, t, n) => {
+} }, TI = (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));
};
-rI.autoRemove = (e) => pI(e);
-var iI = (e, t, n) => {
+TI.autoRemove = (e) => FI(e);
+var EI = (e, t, n) => {
var r;
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
};
-iI.autoRemove = (e) => pI(e);
-var aI = (e, t, n) => {
+EI.autoRemove = (e) => FI(e);
+var DI = (e, t, n) => {
var r;
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
};
-aI.autoRemove = (e) => pI(e);
-var oI = (e, t, n) => e.getValue(t)?.includes(n);
-oI.autoRemove = (e) => pI(e);
-var sI = (e, t, n) => !n.some((n) => {
+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) => {
var r;
return !((r = e.getValue(t)) != null && r.includes(n));
});
-sI.autoRemove = (e) => pI(e) || !(e != null && e.length);
-var cI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
-cI.autoRemove = (e) => pI(e) || !(e != null && e.length);
-var lI = (e, t, n) => e.getValue(t) === n;
-lI.autoRemove = (e) => pI(e);
-var uI = (e, t, n) => e.getValue(t) == n;
-uI.autoRemove = (e) => pI(e);
-var dI = (e, t, 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) => {
let [r, i] = n, a = e.getValue(t);
return a >= r && a <= i;
};
-dI.resolveFilterValue = (e) => {
+NI.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];
-}, dI.autoRemove = (e) => pI(e) || pI(e[0]) && pI(e[1]);
-var fI = {
- includesString: rI,
- includesStringSensitive: iI,
- equalsString: aI,
- arrIncludes: oI,
- arrIncludesAll: sI,
- arrIncludesSome: cI,
- equals: lI,
- weakEquals: uI,
- inNumberRange: dI
+}, 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
};
-function pI(e) {
+function FI(e) {
return e == null || e === "";
}
-var Bce = {
+var lle = {
getDefaultColumnDef: () => ({ filterFn: "auto" }),
getInitialState: (e) => ({
columnFilters: [],
...e
}),
getDefaultOptions: (e) => ({
- onColumnFiltersChange: UF("columnFilters", e),
+ onColumnFiltersChange: vI("columnFilters", e),
filterFromLeafRows: !1,
maxLeafRowFilterDepth: 100
}),
createColumn: (e, t) => {
e.getAutoFilterFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- return typeof n == "string" ? fI.includesString : typeof n == "number" ? fI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? fI.equals : Array.isArray(n) ? fI.arrIncludes : fI.weakEquals;
- }, e.getFilterFn = () => WF(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? fI[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" ? 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 = () => {
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 = HF(n, i ? i.value : void 0);
- if (mI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
+ 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 o = {
id: e.id,
value: a
@@ -40321,19 +41149,19 @@ var Bce = {
createTable: (e) => {
e.setColumnFilters = (t) => {
let n = e.getAllLeafColumns();
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => HF(t, e)?.filter((e) => {
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => _I(t, e)?.filter((e) => {
let t = n.find((t) => t.id === e.id);
- return !(t && mI(t.getFilterFn(), e.value, t));
+ return !(t && II(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 mI(e, t, n) {
+function II(e, t, n) {
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
}
-var hI = {
+var LI = {
sum: (e, t, n) => n.reduce((t, n) => {
let r = n.getValue(e);
return t + (typeof r == "number" ? r : 0);
@@ -40369,7 +41197,7 @@ var hI = {
median: (e, t) => {
if (!t.length) return;
let n = t.map((t) => t.getValue(e));
- if (!GF(n)) return;
+ if (!nle(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];
@@ -40377,7 +41205,7 @@ var hI = {
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
-}, Vce = {
+}, ule = {
getDefaultColumnDef: () => ({
aggregatedCell: (e) => {
var t;
@@ -40390,7 +41218,7 @@ var hI = {
...e
}),
getDefaultOptions: (e) => ({
- onGroupingChange: UF("grouping", e),
+ onGroupingChange: vI("grouping", e),
groupedColumnMode: "reorder"
}),
createColumn: (e, t) => {
@@ -40403,11 +41231,11 @@ var hI = {
};
}, e.getAutoAggregationFn = () => {
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
- if (typeof n == "number") return hI.sum;
- if (Object.prototype.toString.call(n) === "[object Date]") return hI.extent;
+ if (typeof n == "number") return LI.sum;
+ if (Object.prototype.toString.call(n) === "[object Date]") return LI.extent;
}, e.getAggregationFn = () => {
if (!e) throw Error();
- return WF(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? hI[e.columnDef.aggregationFn];
+ return yI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? LI[e.columnDef.aggregationFn];
};
},
createTable: (e) => {
@@ -40429,27 +41257,27 @@ var hI = {
};
}
};
-function Hce(e, t, n) {
+function dle(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 Uce = {
+var fle = {
getInitialState: (e) => ({
columnOrder: [],
...e
}),
- getDefaultOptions: (e) => ({ onColumnOrderChange: UF("columnOrder", e) }),
+ getDefaultOptions: (e) => ({ onColumnOrderChange: vI("columnOrder", e) }),
createColumn: (e, t) => {
- e.getIndex = qF((e) => [xI(t, e)], (t) => t.findIndex((t) => t.id === e.id), JF(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => xI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
- let r = xI(t, n);
+ 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);
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 = qF(() => [
+ }, e._getOrderColumnsFn = bI(() => [
e.getState().columnOrder,
e.getState().grouping,
e.options.groupedColumnMode
@@ -40464,18 +41292,18 @@ var Uce = {
}
i = [...i, ...n];
}
- return Hce(i, t, n);
- }, JF(e.options, "debugTable", "_getOrderColumnsFn"));
+ return dle(i, t, n);
+ }, xI(e.options, "debugTable", "_getOrderColumnsFn"));
}
-}, gI = () => ({
+}, RI = () => ({
left: [],
right: []
-}), Wce = {
+}), ple = {
getInitialState: (e) => ({
- columnPinning: gI(),
+ columnPinning: RI(),
...e
}),
- getDefaultOptions: (e) => ({ onColumnPinningChange: UF("columnPinning", e) }),
+ getDefaultOptions: (e) => ({ onColumnPinningChange: vI("columnPinning", e) }),
createColumn: (e, t) => {
e.pin = (n) => {
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -40499,75 +41327,75 @@ var Uce = {
};
},
createRow: (e, t) => {
- e.getCenterVisibleCells = qF(() => [
+ e.getCenterVisibleCells = bI(() => [
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));
- }, JF(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = qF(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ }, 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) => ({
...e,
position: "left"
- })), JF(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = qF(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
+ })), 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) => ({
...e,
position: "right"
- })), JF(t.options, "debugRows", "getRightVisibleCells"));
+ })), xI(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 ? gI() : e.initialState?.columnPinning ?? gI()), e.getIsSomeColumnsPinned = (t) => {
+ 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) => {
let n = e.getState().columnPinning;
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
- }, e.getLeftLeafColumns = qF(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), JF(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = qF(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), JF(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = qF(() => [
+ }, 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.getAllLeafColumns(),
e.getState().columnPinning.left,
e.getState().columnPinning.right
], (e, t, n) => {
let r = [...t ?? [], ...n ?? []];
return e.filter((e) => !r.includes(e.id));
- }, JF(e.options, "debugColumns", "getCenterLeafColumns"));
+ }, xI(e.options, "debugColumns", "getCenterLeafColumns"));
}
};
-function Gce(e) {
+function mle(e) {
return e || (typeof document < "u" ? document : null);
}
-var _I = {
+var zI = {
size: 150,
minSize: 20,
maxSize: 2 ** 53 - 1
-}, vI = () => ({
+}, BI = () => ({
startOffset: null,
startSize: null,
deltaOffset: null,
deltaPercentage: null,
isResizingColumn: !1,
columnSizingStart: []
-}), Kce = {
- getDefaultColumnDef: () => _I,
+}), hle = {
+ getDefaultColumnDef: () => zI,
getInitialState: (e) => ({
columnSizing: {},
- columnSizingInfo: vI(),
+ columnSizingInfo: BI(),
...e
}),
getDefaultOptions: (e) => ({
columnResizeMode: "onEnd",
columnResizeDirection: "ltr",
- onColumnSizingChange: UF("columnSizing", e),
- onColumnSizingInfoChange: UF("columnSizingInfo", e)
+ onColumnSizingChange: vI("columnSizing", e),
+ onColumnSizingInfoChange: vI("columnSizingInfo", e)
}),
createColumn: (e, t) => {
e.getSize = () => {
let n = t.getState().columnSizing[e.id];
- return Math.min(Math.max(e.columnDef.minSize ?? _I.minSize, n ?? e.columnDef.size ?? _I.size), e.columnDef.maxSize ?? _I.maxSize);
- }, e.getStart = qF((e) => [
+ 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) => [
e,
- xI(t, e),
+ UI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), JF(t.options, "debugColumns", "getStart")), e.getAfter = qF((e) => [
+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), xI(t.options, "debugColumns", "getStart")), e.getAfter = bI((e) => [
e,
- xI(t, e),
+ UI(t, e),
t.getState().columnSizing
- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), JF(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), xI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
t.setColumnSizing((t) => {
let { [e.id]: n, ...r } = t;
return r;
@@ -40589,8 +41417,8 @@ var _I = {
}, e.getResizeHandler = (n) => {
let r = t.getColumn(e.column.id), i = r?.getCanResize();
return (a) => {
- if (!r || !i || (a.persist == null || a.persist(), bI(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 = bI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
+ 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) => {
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) => {
@@ -40615,7 +41443,7 @@ var _I = {
deltaPercentage: null,
columnSizingStart: []
}));
- }, p = Gce(n), m = {
+ }, p = mle(n), m = {
moveHandler: (e) => d(e.clientX),
upHandler: (e) => {
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -40625,8 +41453,8 @@ var _I = {
upHandler: (e) => {
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
}
- }, g = qce() ? { passive: !1 } : !1;
- bI(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 = 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) => ({
...e,
startOffset: c,
startSize: o,
@@ -40642,12 +41470,12 @@ var _I = {
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 ? vI() : e.initialState.columnSizingInfo ?? vI());
+ e.setColumnSizingInfo(t ? BI() : e.initialState.columnSizingInfo ?? BI());
}, 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;
}
-}, yI = null;
-function qce() {
- if (typeof yI == "boolean") return yI;
+}, VI = null;
+function gle() {
+ if (typeof VI == "boolean") return VI;
let e = !1;
try {
let t = { get passive() {
@@ -40657,17 +41485,17 @@ function qce() {
} catch {
e = !1;
}
- return yI = e, yI;
+ return VI = e, VI;
}
-function bI(e) {
+function HI(e) {
return e.type === "touchstart";
}
-var Jce = {
+var _le = {
getInitialState: (e) => ({
columnVisibility: {},
...e
}),
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: UF("columnVisibility", e) }),
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: vI("columnVisibility", e) }),
createColumn: (e, t) => {
e.toggleVisibility = (n) => {
e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -40682,7 +41510,7 @@ var Jce = {
};
},
createRow: (e, t) => {
- e._getAllVisibleCells = qF(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), JF(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = qF(() => [
+ e._getAllVisibleCells = bI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), xI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = bI(() => [
e.getLeftVisibleCells(),
e.getCenterVisibleCells(),
e.getRightVisibleCells()
@@ -40690,10 +41518,10 @@ var Jce = {
...e,
...t,
...n
- ], JF(t.options, "debugRows", "getVisibleCells"));
+ ], xI(t.options, "debugRows", "getVisibleCells"));
},
createTable: (e) => {
- let t = (t, n) => qF(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), JF(e.options, "debugColumns", t));
+ 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));
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) => {
@@ -40706,20 +41534,20 @@ var Jce = {
};
}
};
-function xI(e, t) {
+function UI(e, t) {
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
}
-var Yce = { createTable: (e) => {
+var vle = { 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();
};
-} }, Xce = {
+} }, yle = {
getInitialState: (e) => ({
globalFilter: void 0,
...e
}),
getDefaultOptions: (e) => ({
- onGlobalFilterChange: UF("globalFilter", e),
+ onGlobalFilterChange: vI("globalFilter", e),
globalFilterFn: "auto",
getColumnCanGlobalFilter: (t) => {
var n;
@@ -40731,22 +41559,22 @@ var Yce = { 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 = () => fI.includesString, e.getGlobalFilterFn = () => {
+ e.getGlobalAutoFilterFn = () => PI.includesString, e.getGlobalFilterFn = () => {
let { globalFilterFn: t } = e.options;
- return WF(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? fI[t];
+ return yI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? PI[t];
}, e.setGlobalFilter = (t) => {
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
}, e.resetGlobalFilter = (t) => {
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
};
}
-}, Zce = {
+}, ble = {
getInitialState: (e) => ({
expanded: {},
...e
}),
getDefaultOptions: (e) => ({
- onExpandedChange: UF("expanded", e),
+ onExpandedChange: vI("expanded", e),
paginateExpandedRows: !0
}),
createTable: (e) => {
@@ -40817,18 +41645,18 @@ var Yce = { createTable: (e) => {
};
};
}
-}, SI = 0, CI = 10, wI = () => ({
- pageIndex: SI,
- pageSize: CI
-}), Qce = {
+}, WI = 0, GI = 10, KI = () => ({
+ pageIndex: WI,
+ pageSize: GI
+}), xle = {
getInitialState: (e) => ({
...e,
pagination: {
- ...wI(),
+ ...KI(),
...e?.pagination
}
}),
- getDefaultOptions: (e) => ({ onPaginationChange: UF("pagination", e) }),
+ getDefaultOptions: (e) => ({ onPaginationChange: vI("pagination", e) }),
createTable: (e) => {
let t = !1, n = !1;
e._autoResetPageIndex = () => {
@@ -40844,11 +41672,11 @@ var Yce = { createTable: (e) => {
e.resetPageIndex(), n = !1;
});
}
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => HF(t, e)), e.resetPagination = (t) => {
- e.setPagination(t ? wI() : e.initialState.pagination ?? wI());
+ }, 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.setPageIndex = (t) => {
e.setPagination((n) => {
- let r = HF(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
+ let r = _I(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
@@ -40856,13 +41684,13 @@ var Yce = { createTable: (e) => {
});
}, e.resetPageIndex = (t) => {
var n;
- e.setPageIndex(t ? SI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? SI);
+ e.setPageIndex(t ? WI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? WI);
}, e.resetPageSize = (t) => {
var n;
- e.setPageSize(t ? CI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? CI);
+ e.setPageSize(t ? GI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? GI);
}, e.setPageSize = (t) => {
e.setPagination((e) => {
- let n = Math.max(1, HF(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
+ let n = Math.max(1, _I(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
return {
...e,
pageIndex: i,
@@ -40870,28 +41698,28 @@ var Yce = { createTable: (e) => {
};
});
}, e.setPageCount = (t) => e.setPagination((n) => {
- let r = HF(t, e.options.pageCount ?? -1);
+ let r = _I(t, e.options.pageCount ?? -1);
return typeof r == "number" && (r = Math.max(-1, r)), {
...n,
pageCount: r
};
- }), e.getPageOptions = qF(() => [e.getPageCount()], (e) => {
+ }), e.getPageOptions = bI(() => [e.getPageCount()], (e) => {
let t = [];
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
- }, JF(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
+ }, xI(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;
}
-}, TI = () => ({
+}, qI = () => ({
top: [],
bottom: []
-}), $ce = {
+}), Sle = {
getInitialState: (e) => ({
- rowPinning: TI(),
+ rowPinning: qI(),
...e
}),
- getDefaultOptions: (e) => ({ onRowPinningChange: UF("rowPinning", e) }),
+ getDefaultOptions: (e) => ({ onRowPinningChange: vI("rowPinning", e) }),
createRow: (e, t) => {
e.pin = (n, r, i) => {
let a = r ? e.getLeafRows().map((e) => {
@@ -40930,7 +41758,7 @@ var Yce = { createTable: (e) => {
};
},
createTable: (e) => {
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? TI() : e.initialState?.rowPinning ?? TI()), e.getIsSomeRowsPinned = (t) => {
+ 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) => {
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) => {
@@ -40939,22 +41767,22 @@ var Yce = { createTable: (e) => {
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
...e,
position: r
- })), e.getTopRows = qF(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), JF(e.options, "debugRows", "getTopRows")), e.getBottomRows = qF(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), JF(e.options, "debugRows", "getBottomRows")), e.getCenterRows = qF(() => [
+ })), 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.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));
- }, JF(e.options, "debugRows", "getCenterRows"));
+ }, xI(e.options, "debugRows", "getCenterRows"));
}
-}, ele = {
+}, Cle = {
getInitialState: (e) => ({
rowSelection: {},
...e
}),
getDefaultOptions: (e) => ({
- onRowSelectionChange: UF("rowSelection", e),
+ onRowSelectionChange: vI("rowSelection", e),
enableRowSelection: !0,
enableMultiRowSelection: !0,
enableSubRowSelection: !0
@@ -40973,21 +41801,21 @@ var Yce = { createTable: (e) => {
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
return e.getRowModel().rows.forEach((t) => {
- EI(i, t.id, r, !0, e);
+ JI(i, t.id, r, !0, e);
}), i;
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = qF(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? DI(e, n) : {
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = bI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? YI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, JF(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = qF(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? DI(e, n) : {
+ }, xI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = bI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? YI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, JF(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = qF(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? DI(e, n) : {
+ }, xI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = bI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? YI(e, n) : {
rows: [],
flatRows: [],
rowsById: {}
- }, JF(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
+ }, xI(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 = () => {
@@ -41011,17 +41839,17 @@ var Yce = { createTable: (e) => {
t.setRowSelection((a) => {
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
let o = { ...a };
- return EI(o, e.id, n, r?.selectChildren ?? !0, t), o;
+ return JI(o, e.id, n, r?.selectChildren ?? !0, t), o;
});
}, e.getIsSelected = () => {
let { rowSelection: n } = t.getState();
- return OI(e, n);
+ return XI(e, n);
}, e.getIsSomeSelected = () => {
let { rowSelection: n } = t.getState();
- return kI(e, n) === "some";
+ return ZI(e, n) === "some";
}, e.getIsAllSubRowsSelected = () => {
let { rowSelection: n } = t.getState();
- return kI(e, n) === "all";
+ return ZI(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) => {
@@ -41029,16 +41857,16 @@ var Yce = { createTable: (e) => {
};
};
}
-}, EI = (e, t, n, r, i) => {
+}, 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) => EI(e, t.id, n, r, i));
+ 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 DI(e, t) {
+function YI(e, t) {
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
return e.map((e) => {
var t;
- let o = OI(e, n);
+ 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)
@@ -41051,32 +41879,32 @@ function DI(e, t) {
rowsById: i
};
}
-function OI(e, t) {
+function XI(e, t) {
return t[e.id] ?? !1;
}
-function kI(e, t, n) {
+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() && (OI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
- let n = kI(e, t);
+ 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 AI = /([0-9]+)/gm, tle = (e, t, n) => NI(MI(e.getValue(n)).toLowerCase(), MI(t.getValue(n)).toLowerCase()), nle = (e, t, n) => NI(MI(e.getValue(n)), MI(t.getValue(n))), rle = (e, t, n) => jI(MI(e.getValue(n)).toLowerCase(), MI(t.getValue(n)).toLowerCase()), ile = (e, t, n) => jI(MI(e.getValue(n)), MI(t.getValue(n))), ale = (e, t, n) => {
+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;
-}, ole = (e, t, n) => jI(e.getValue(n), t.getValue(n));
-function jI(e, t) {
+}, kle = (e, t, n) => $I(e.getValue(n), t.getValue(n));
+function $I(e, t) {
return e === t ? 0 : e > t ? 1 : -1;
}
-function MI(e) {
+function eL(e) {
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
}
-function NI(e, t) {
- let n = e.split(AI).filter(Boolean), r = t.split(AI).filter(Boolean);
+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])) {
@@ -41090,22 +41918,22 @@ function NI(e, t) {
}
return n.length - r.length;
}
-var PI = {
- alphanumeric: tle,
- alphanumericCaseSensitive: nle,
- text: rle,
- textCaseSensitive: ile,
- datetime: ale,
- basic: ole
-}, sle = [
- $F,
- Jce,
- Uce,
- Wce,
- nI,
- Bce,
- Yce,
- Xce,
+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: [],
@@ -41116,7 +41944,7 @@ var PI = {
sortUndefined: 1
}),
getDefaultOptions: (e) => ({
- onSortingChange: UF("sorting", e),
+ onSortingChange: vI("sorting", e),
isMultiSortEvent: (e) => e.shiftKey
}),
createColumn: (e, t) => {
@@ -41124,13 +41952,13 @@ var PI = {
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 PI.datetime;
- if (typeof n == "string" && (r = !0, n.split(AI).length > 1)) return PI.alphanumeric;
+ 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 ? PI.text : PI.basic;
+ 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 WF(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? PI[e.columnDef.sortingFn];
+ 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) => {
@@ -41167,15 +41995,15 @@ var PI = {
}, 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());
}
},
- Vce,
- Zce,
- Qce,
- $ce,
- ele,
- Kce
+ ule,
+ ble,
+ xle,
+ Sle,
+ Cle,
+ hle
];
-function cle(e) {
- let t = [...sle, ...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) : {
+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 ?? {} };
@@ -41201,7 +42029,7 @@ function cle(e) {
n.setState(n.initialState);
},
setOptions: (e) => {
- let t = HF(e, n.options);
+ let t = _I(e, n.options);
n.options = i(t);
},
getState: () => n.options.state,
@@ -41216,7 +42044,7 @@ function cle(e) {
if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();
return r;
},
- _getDefaultColumnDef: qF(() => [n.options.defaultColumn], (e) => (e ??= {}, {
+ _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;
@@ -41227,20 +42055,20 @@ function cle(e) {
},
...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
...e
- }), JF(e, "debugColumns", "_getDefaultColumnDef")),
+ }), xI(e, "debugColumns", "_getDefaultColumnDef")),
_getColumnDefs: () => n.options.columns,
- getAllColumns: qF(() => [n._getColumnDefs()], (e) => {
+ getAllColumns: bI(() => [n._getColumnDefs()], (e) => {
let t = function(e, r, i) {
return i === void 0 && (i = 0), e.map((e) => {
- let a = XF(n, e, i, r), o = 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);
- }, JF(e, "debugColumns", "getAllColumns")),
- getAllFlatColumns: qF(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), JF(e, "debugColumns", "getAllFlatColumns")),
- _getAllFlatColumnsById: qF(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), JF(e, "debugColumns", "getAllFlatColumnsById")),
- getAllLeafColumns: qF(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), JF(e, "debugColumns", "getAllLeafColumns")),
+ }, 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);
@@ -41250,8 +42078,8 @@ function cle(e) {
}
return n;
}
-function FI() {
- return (e) => qF(() => [e.options.data], (t) => {
+function rL() {
+ return (e) => bI(() => [e.options.data], (t) => {
let n = {
rows: [],
flatRows: [],
@@ -41260,7 +42088,7 @@ function FI() {
i === void 0 && (i = 0);
let o = [];
for (let c = 0; c < t.length; c++) {
- let l = tI(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
+ 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));
@@ -41269,9 +42097,9 @@ function FI() {
return o;
};
return n.rows = r(t), n;
- }, JF(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
+ }, xI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
}
-function lle(e) {
+function Mle(e) {
let t = [], n = (e) => {
var r;
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -41282,8 +42110,8 @@ function lle(e) {
rowsById: e.rowsById
};
}
-function ule(e) {
- return (e) => qF(() => [
+function Nle(e) {
+ return (e) => bI(() => [
e.getState().pagination,
e.getPrePaginationRowModel(),
e.options.paginateExpandedRows ? void 0 : e.getState().expanded
@@ -41296,7 +42124,7 @@ function ule(e) {
rows: a,
flatRows: o,
rowsById: s
- } : lle({
+ } : Mle({
rows: a,
flatRows: o,
rowsById: s
@@ -41305,32 +42133,32 @@ function ule(e) {
u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);
};
return u.rows.forEach(d), u;
- }, JF(e.options, "debugTable", "getPaginationRowModel"));
+ }, xI(e.options, "debugTable", "getPaginationRowModel"));
}
//#endregion
//#region node_modules/@tanstack/react-table/build/lib/index.mjs
-function II(e, t) {
- return e ? dle(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;
+function iL(e, t) {
+ return e ? Ple(e) ? /*#__PURE__*/ I.createElement(e, t) : e : null;
}
-function dle(e) {
- return fle(e) || typeof e == "function" || ple(e);
+function Ple(e) {
+ return Fle(e) || typeof e == "function" || Ile(e);
}
-function fle(e) {
+function Fle(e) {
return typeof e == "function" && (() => {
let t = Object.getPrototypeOf(e);
return t.prototype && t.prototype.isReactComponent;
})();
}
-function ple(e) {
+function Ile(e) {
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
}
-function LI(e) {
+function aL(e) {
let t = {
state: {},
onStateChange: () => {},
renderFallbackValue: null,
...e
- }, [n] = I.useState(() => ({ current: cle(t) })), [r, i] = I.useState(() => n.current.initialState);
+ }, [n] = I.useState(() => ({ current: jle(t) })), [r, i] = I.useState(() => n.current.initialState);
return n.current.setOptions((t) => ({
...t,
...e,
@@ -41345,10 +42173,10 @@ function LI(e) {
}
//#endregion
//#region src/react/components/legacy-avatar.ts
-var RI = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover";
+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 zI({ children: e, count: t, label: n }) {
+function sL({ children: e, count: t, label: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": n,
@@ -41363,8 +42191,8 @@ function zI({ children: e, count: t, label: n }) {
}
//#endregion
//#region src/react/follow-manage/add-feed.tsx
-var mle = "输入女优名,到 JavDB 找她的演员页";
-function hle(e, t) {
+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 {
@@ -41383,10 +42211,10 @@ function hle(e, t) {
blocked: !1
};
}
-function gle({ card: e, picked: t, onPick: n }) {
+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)(mj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: t,
onChange: n,
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -41396,7 +42224,7 @@ function gle({ card: e, picked: t, onPick: n }) {
className: "min-w-0 break-words",
children: e.names.join("、")
}),
- e.record ? /* @__PURE__ */ (0, L.jsx)(uw, {
+ e.record ? /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "neutral",
children: e.record
@@ -41407,16 +42235,16 @@ function gle({ card: e, picked: t, onPick: n }) {
}) : null
]
})
- }), /* @__PURE__ */ (0, L.jsx)(LA, {
+ }), /* @__PURE__ */ (0, L.jsx)(VA, {
href: e.url,
children: e.id
})]
});
}
-function _le({ 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 = jw(), u = () => {
+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) => iP(t, e), (e) => {
+ !t || e || l.run("lookup", (e) => aP(t, e), (e) => {
o(e), c(new Set(e.suggested));
});
}, d = (e) => {
@@ -41424,12 +42252,12 @@ function _le({ readOnly: e, toast: t, onAdded: n }) {
}, f = () => {
o(null), c(/* @__PURE__ */ new Set()), l.setError("");
}, p = () => {
- a && l.run("follow", (e) => aP(a.q, [...s], e), (e) => {
+ 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 ? hle(a, s) : null;
+ }, m = a ? Rle(a, s) : null;
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -41442,11 +42270,11 @@ function _le({ readOnly: e, toast: t, onAdded: n }) {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-64 grow",
- children: /* @__PURE__ */ (0, L.jsx)(Ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(Bj, {
"aria-label": "女优名",
- placeholder: mle,
+ placeholder: Lle,
value: r,
- leadingIcon: yS,
+ leadingIcon: kS,
isDisabled: e,
onChange: i,
onKeyDown: d
@@ -41467,16 +42295,16 @@ function _le({ readOnly: e, toast: t, onAdded: n }) {
a ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(IA, { children: "JavDB 上的演员卡" }),
- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, L.jsx)(gle, {
+ /* @__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)(PA, { children: "JavDB 上没有搜到这个名字。" }),
- a.candidates.length ? /* @__PURE__ */ (0, L.jsx)(PA, {
+ }, 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,
@@ -41503,7 +42331,7 @@ function _le({ readOnly: e, toast: t, onAdded: n }) {
}
//#endregion
//#region src/react/follow-manage/feed-sources.tsx
-var vle = {
+var Vle = {
select: "选择",
name: "名称",
kind: "类型",
@@ -41513,33 +42341,33 @@ var vle = {
fetched: "上次拉取",
fresh: "上次新增",
actions: "操作"
-}, yle = /* @__PURE__ */ new Set(["select", "actions"]), BI = () => X.invalidateQueries({
- queryKey: mN,
+}, Hle = /* @__PURE__ */ new Set(["select", "actions"]), cL = () => X.invalidateQueries({
+ queryKey: yN,
exact: !0
-}), VI = (e) => e.name || e.url, ble = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;
-function xle(e) {
+}), 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;
}
}
-function Sle({ source: e }) {
- return e.last_error ? /* @__PURE__ */ (0, L.jsx)(uw, {
+function Gle({ source: e }) {
+ return e.last_error ? /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "rose",
children: "拉取失败"
- }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(uw, {
+ }) : e.enabled ? /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "lime",
children: "正常"
- }) : /* @__PURE__ */ (0, L.jsx)(uw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "neutral",
children: "已暂停"
});
}
-function Cle({ source: e, avatarInner: t }) {
+function Kle({ source: e, avatarInner: t }) {
let n = e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
@@ -41547,31 +42375,31 @@ function Cle({ source: e, avatarInner: t }) {
} : 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 ${RI}`,
- dangerouslySetInnerHTML: { __html: t(VI(e), n, null, "performer") }
+ 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") }
});
}
-var wle = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";
-function Tle(e) {
+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 HI(e, t) {
+function uL(e, t) {
let n = e.length === 1 ? e[0] : null;
return g({
title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,
- body: n ? `将移除订阅源「${VI(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
+ body: n ? `将移除订阅源「${lL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",
confirmLabel: n ? "移除订阅源" : "移除所选订阅源",
danger: !0,
onConfirm: t
});
}
-function Ele({ readOnly: e, toast: t, avatarInner: n }) {
+function Yle({ readOnly: e, toast: t, avatarInner: n }) {
let r = Nt({
- queryKey: mN,
- queryFn: ({ signal: e }) => eP(e)
- }), i = jw(), a = r.data, o = (0, I.useMemo)(() => a?.sources ?? [], [a]), [s, c] = (0, I.useState)(/* @__PURE__ */ new Set());
+ 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)));
@@ -41581,7 +42409,7 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
let u = Pt({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await nP(t) : await tP(t, e.action === "enabled");
+ e.action === "remove" ? await rP(t) : await nP(t, e.action === "enabled");
});
return {
...e,
@@ -41590,13 +42418,13 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
},
onSuccess: (e) => {
let n = e.results.filter((e) => !e.ok), r = e.ids.length - n.length;
- if (c(/* @__PURE__ */ new Set()), BI(), e.action === "remove" && r && t(`已移除 ${r} 条订阅源`), 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)(() => Tle(o), [o]), f = (0, I.useRef)({
+ }), d = (0, I.useMemo)(() => Jle(o), [o]), f = (0, I.useRef)({
readOnly: e,
avatarInner: n,
shared: d,
@@ -41610,34 +42438,34 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
avatarInner: n,
shared: d,
busy: i.busy,
- toggle: (e, t) => void i.run(`enabled-${e.id}`, (n) => tP(e.id, t, n), () => void BI()),
- fetch: (e) => void i.run(`check-${e.id}`, (t) => rP(t, [e.id]), () => void BI()),
- remove: (e) => void HI([e], async () => {
- await nP(e.id), t(`已移除订阅源「${VI(e)}」`), BI();
+ 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 = VF(), t = (e) => () => vle[e] || e;
+ let e = gI(), t = (e) => () => Vle[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(mj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(vj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
- "aria-label": `选择 ${VI(e.row.original)}`
+ "aria-label": `选择 ${lL(e.row.original)}`
})
}),
- e.accessor(VI, {
+ e.accessor(lL, {
id: "name",
header: t("name"),
cell: (e) => {
- let t = wle(e.row.original, f.current.shared);
+ 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)(Cle, {
+ /* @__PURE__ */ (0, L.jsx)(Kle, {
source: e.row.original,
avatarInner: f.current.avatarInner
}),
@@ -41668,15 +42496,15 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
rel: "noreferrer noopener",
title: "打开来源页面",
className: "text-text-primary underline-offset-2 hover:underline",
- children: xle(e.getValue())
+ children: Wle(e.getValue())
})
}),
e.display({
id: "status",
header: t("status"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(Sle, { source: e.row.original })
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(Gle, { source: e.row.original })
}),
- e.accessor((e) => ble(e.interval_minutes), {
+ e.accessor((e) => Ule(e.interval_minutes), {
id: "interval",
header: t("interval"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -41684,7 +42512,7 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
children: e.getValue()
})
}),
- e.accessor((e) => e.last_fetched_at ? JO(e.last_fetched_at) : "还没拉过", {
+ e.accessor((e) => e.last_fetched_at ? tk(e.last_fetched_at) : "还没拉过", {
id: "fetched",
header: t("fetched"),
cell: (e) => /* @__PURE__ */ (0, L.jsx)("span", {
@@ -41706,8 +42534,8 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, L.jsx)(eO, {
- "aria-label": `启用 ${VI(e.row.original)}`,
+ /* @__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)
@@ -41716,8 +42544,8 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: _S,
- "aria-label": `拉取 ${VI(e.row.original)}`,
+ 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)
@@ -41726,8 +42554,8 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
variant: "secondary",
size: "xs",
iconOnly: !0,
- leadingIcon: dS,
- "aria-label": `移除 ${VI(e.row.original)}`,
+ leadingIcon: pS,
+ "aria-label": `移除 ${lL(e.row.original)}`,
disabled: f.current.readOnly,
onClick: () => f.current.remove(e.row.original)
})
@@ -41735,7 +42563,7 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
})
})
];
- }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = LI({
+ }, []), m = (0, I.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), h = aL({
data: o,
columns: p,
getRowId: (e) => String(e.id),
@@ -41745,28 +42573,28 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
let t = typeof e == "function" ? e(m) : e;
c(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));
},
- getCoreRowModel: FI()
+ getCoreRowModel: rL()
});
if (!a) return r.error ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "打不开订阅源",
children: K(r.error)
- }) : /* @__PURE__ */ (0, L.jsx)(PA, { children: "正在读订阅源。" });
- let g = () => void i.run("check", (e) => rP(e), () => void BI()), _ = (e) => c((t) => {
+ }) : /* @__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)(_le, {
+ /* @__PURE__ */ (0, L.jsx)(Ble, {
readOnly: e,
toast: t,
- onAdded: () => void BI()
+ onAdded: () => void cL()
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center justify-between gap-3",
- children: [/* @__PURE__ */ (0, L.jsx)(PA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(RA, {
role: "status",
children: a.unread ? `有 ${a.unread} 条新作还没看` : "新作都看过了"
}), /* @__PURE__ */ (0, L.jsx)(G, {
@@ -41780,11 +42608,11 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
className: "flex flex-col gap-3",
children: [y.map((e) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
- title: `${VI(e)} 拉取失败`,
+ title: `${lL(e)} 拉取失败`,
children: e.last_error
- }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: i.error }) : null]
+ }, e.id)), i.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: i.error }) : null]
}) : null,
- v.length ? /* @__PURE__ */ (0, L.jsxs)(zI, {
+ v.length ? /* @__PURE__ */ (0, L.jsxs)(sL, {
label: "订阅源批量操作",
count: `已选 ${v.length} 条订阅源`,
children: [
@@ -41815,7 +42643,7 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
size: "small",
disabled: e,
...Y(u.isPending),
- onClick: () => void HI(v, () => u.mutateAsync({
+ onClick: () => void uL(v, () => u.mutateAsync({
ids: v.map((e) => e.id),
action: "remove"
})),
@@ -41829,26 +42657,26 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
})
]
}) : null,
- o.length ? /* @__PURE__ */ (0, L.jsx)(vj, {
+ o.length ? /* @__PURE__ */ (0, L.jsx)(Sj, {
onRowClick: (e) => _(Number(e)),
- children: /* @__PURE__ */ (0, L.jsxs)(hj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(yj, {
"aria-label": "JAV 订阅源",
size: "sm",
- children: [/* @__PURE__ */ (0, L.jsx)(ID, { children: h.getHeaderGroups()[0].headers.map((e) => {
- let t = II(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)(LD, {
+ 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: yle.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(W_, { children: t }) : t
+ children: Hle.has(e.column.id) ? /* @__PURE__ */ (0, L.jsx)(q_, { children: t }) : t
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(zD, { children: h.getRowModel().rows.map((e) => /* @__PURE__ */ (0, L.jsx)(HD, {
+ }) }), /* @__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)(WD, { children: II(e.column.columnDef.cell, e.getContext()) }, e.id))
+ 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)(Tw, {
- icon: vS,
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: OS,
title: "还没有订阅源",
shell: "plain",
children: "在上面按女优名添加,或在人物页点「订阅新作」。"
@@ -41858,19 +42686,19 @@ function Ele({ readOnly: e, toast: t, avatarInner: n }) {
}
//#endregion
//#region src/react/follow-manage/source-list.tsx
-var Dle = Object.fromEntries(Object.entries(_N).map(([e, t]) => [t, e])), UI = 740;
-function Ole() {
+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 < UI));
- r.observe(e), n.current = r, t(e.clientWidth < UI);
+ 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 kle = {
+var Qle = {
select: "选择",
author: "创作者",
source: "来源",
@@ -41879,7 +42707,7 @@ var kle = {
checked: "上次检查",
actions: "操作"
};
-function Ale({ page: e, pages: t, onPage: n }) {
+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",
@@ -41893,7 +42721,7 @@ function Ale({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: GO(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ 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: "…"
@@ -41916,22 +42744,22 @@ function Ale({ page: e, pages: t, onPage: n }) {
]
});
}
-function jle({ source: e, selected: t, onToggle: n, handlers: r }) {
+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) => {
- _j(e, e.currentTarget) && n(!t);
+ xj(e, e.currentTarget) && n(!t);
},
children: [
- /* @__PURE__ */ (0, L.jsx)(mj, {
+ /* @__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)(gF, { source: e }), e.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
+ 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]
@@ -41939,17 +42767,17 @@ function jle({ source: e, selected: t, onToggle: n, handlers: r }) {
/* @__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)(pF, {
+ children: /* @__PURE__ */ (0, L.jsx)(aI, {
provider: e.provider,
label: e.provider_label
})
}),
- /* @__PURE__ */ (0, L.jsx)(hF, { source: e }),
+ /* @__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: pP(e)
+ children: mP(e)
}),
- /* @__PURE__ */ (0, L.jsx)(eO, {
+ /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": `启用 ${e.label}`,
isSelected: e.enabled,
isDisabled: r.readOnly,
@@ -41961,7 +42789,7 @@ function jle({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: _S,
+ leadingIcon: DS,
"aria-label": `检查 ${e.label} 的更新`,
disabled: !e.enabled || r.readOnly,
...Y(r.busy),
@@ -41970,7 +42798,7 @@ function jle({ source: e, selected: t, onToggle: n, handlers: r }) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: dS,
+ leadingIcon: pS,
"aria-label": `移除 ${e.label}`,
disabled: r.readOnly,
onClick: () => r.remove(e)
@@ -41979,11 +42807,11 @@ function jle({ source: e, selected: t, onToggle: n, handlers: r }) {
]
});
}
-function Mle({ 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(wN).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = LN(r, c);
+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: Cw({
+ className: Nw({
variant: "raised",
padding: "none",
className: "flex flex-col overflow-hidden p-2"
@@ -41993,7 +42821,7 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
"data-open": n || void 0,
className: "flex flex-wrap items-center gap-3 px-2 py-2.5",
children: [
- /* @__PURE__ */ (0, L.jsx)(mF, {
+ /* @__PURE__ */ (0, L.jsx)(oI, {
group: e,
name: t
}),
@@ -42005,7 +42833,7 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: _S,
+ leadingIcon: DS,
"aria-label": `检查 ${t} 的全部来源`,
disabled: !l.length || i.readOnly,
...Y(i.busy),
@@ -42014,7 +42842,7 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex shrink-0 items-center gap-1",
title: d,
- children: [e.map((e) => /* @__PURE__ */ (0, L.jsx)(pF, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, L.jsx)(W_, { children: `来源:${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",
@@ -42023,7 +42851,7 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: sS,
+ leadingIcon: lS,
"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false",
"aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,
onClick: () => o(!p.all),
@@ -42034,7 +42862,7 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
size: "small",
"aria-expanded": n,
"aria-controls": f,
- leadingIcon: n ? oS : rS,
+ leadingIcon: n ? cS : aS,
"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,
onClick: () => a(!n),
children: n ? "收起" : "展开"
@@ -42044,7 +42872,7 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
id: f,
hidden: !n,
"data-source-divider": !0,
- children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(jle, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(eue, {
source: e,
handlers: i,
selected: r.has(e.id),
@@ -42053,37 +42881,37 @@ function Mle({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,
})]
});
}
-function Nle(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] = Ole(), [T, E] = (0, I.useState)(""), D = (0, I.useMemo)(() => NN(v, n, r, y), [
+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)(() => PN(D, n, r, y), [
+ ]), O = (0, I.useMemo)(() => FN(D, n, r, y), [
D,
n,
r,
y
- ]), { job: k, running: A, outcome: j, start: M } = cj({
- queryKey: Ice,
- queryFn: ({ signal: e }) => VN(e),
- start: (e) => WN(e),
+ ]), { 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) => {
- lP(), h(e.status === "failed" ? e.error || "检查失败" : uP(e));
+ uP(), h(e.status === "failed" ? e.error || "检查失败" : dP(e));
}
}), N = (e) => {
A || M.isPending || (E(""), M.mutate(e));
- }, P = (e, t) => m(RN(s, [e], t)), ee = (e, t) => m(RN(s, e, t)), F = Pt({
- mutationFn: (e) => qN(e),
+ }, P = (e, t) => m(zN(s, [e], t)), ee = (e, t) => m(zN(s, e, t)), F = Pt({
+ mutationFn: (e) => JN(e),
onSuccess: (e, t) => {
- cP([t]), m(RN(s, [t], !1)), h("已取消关注来源");
+ lP([t]), m(zN(s, [t], !1)), h("已取消关注来源");
},
onError: (e) => E(K(e))
}), te = Pt({
- mutationFn: (e) => KN(e.id, e.enabled),
+ mutationFn: (e) => qN(e.id, e.enabled),
onSuccess: (e, t) => {
- sP(t.id, { enabled: t.enabled }), E("");
+ cP(t.id, { enabled: t.enabled }), E("");
},
onError: (e) => E(K(e))
}), ne = (e) => void g({
@@ -42095,7 +42923,7 @@ function Nle(e) {
}), re = Pt({
mutationFn: async (e) => {
let t = await l(e.ids, 4, async (t) => {
- e.action === "remove" ? await qN(t) : await KN(t, e.action === "enabled");
+ e.action === "remove" ? await JN(t) : await qN(t, e.action === "enabled");
});
return {
...e,
@@ -42104,9 +42932,9 @@ function Nle(e) {
};
},
onSuccess: (e) => {
- if (e.action === "remove") cP(e.done);
- else for (let t of e.done) sP(t, { enabled: e.action === "enabled" });
- m(RN(s, e.done, !1));
+ 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)}`);
@@ -42119,18 +42947,18 @@ function Nle(e) {
onError: (e) => E(K(e))
}), ie = Pt({
mutationFn: async (e) => {
- let t = ((await $N()).groups || []).flatMap((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) => QN(t, e))).filter((e) => !e.ok)
+ failed: (await l(t, 6, (t) => $N(t, e))).filter((e) => !e.ok)
};
},
onSuccess: (e) => {
- if (lP(), e.failed.length) {
+ if (uP(), e.failed.length) {
E(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);
return;
}
@@ -42155,12 +42983,12 @@ function Nle(e) {
readOnly: c
};
let se = oe.current, ce = (0, I.useMemo)(() => {
- let e = VF(), t = (e) => () => kle[e] || e;
+ let e = gI(), t = (e) => () => Qle[e] || e;
return [
e.display({
id: "select",
header: t("select"),
- cell: (e) => /* @__PURE__ */ (0, L.jsx)(mj, {
+ cell: (e) => /* @__PURE__ */ (0, L.jsx)(vj, {
slot: null,
isSelected: e.row.getIsSelected(),
onChange: (t) => e.row.toggleSelected(t),
@@ -42172,7 +43000,7 @@ function Nle(e) {
header: t("author"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex min-w-0 items-center gap-2",
- children: [/* @__PURE__ */ (0, L.jsx)(mF, {
+ children: [/* @__PURE__ */ (0, L.jsx)(oI, {
group: e.row.original.group,
name: e.row.original.author
}), /* @__PURE__ */ (0, L.jsx)("span", {
@@ -42186,7 +43014,7 @@ function Nle(e) {
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)(gF, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, L.jsx)("small", {
+ 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]
@@ -42197,18 +43025,18 @@ function Nle(e) {
header: t("provider"),
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(pF, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]
+ 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)(hF, { source: e.row.original.source })
+ 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) => pP(e.row.original.source)
+ cell: (e) => mP(e.row.original.source)
}),
e.display({
id: "actions",
@@ -42216,7 +43044,7 @@ function Nle(e) {
cell: (e) => /* @__PURE__ */ (0, L.jsxs)("span", {
className: "flex items-center gap-1",
children: [
- /* @__PURE__ */ (0, L.jsx)(eO, {
+ /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": `启用 ${e.row.original.source.label}`,
isSelected: e.row.original.source.enabled,
isDisabled: se.readOnly,
@@ -42226,7 +43054,7 @@ function Nle(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: _S,
+ leadingIcon: DS,
"aria-label": `检查 ${e.row.original.source.label} 的更新`,
disabled: !e.row.original.source.enabled || se.readOnly,
...Y(se.busy),
@@ -42236,7 +43064,7 @@ function Nle(e) {
variant: "secondary",
size: "small",
iconOnly: !0,
- leadingIcon: dS,
+ leadingIcon: pS,
"aria-label": `移除 ${e.row.original.source.label}`,
disabled: se.readOnly,
onClick: () => oe.current.remove(e.row.original.source)
@@ -42246,12 +43074,12 @@ function Nle(e) {
})
];
}, [se]), le = (0, I.useMemo)(() => {
- let e = Dle[n];
+ 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 = FN(R ? O.length : D.length, o, i), de = LI({
+ }, [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),
@@ -42268,7 +43096,7 @@ function Nle(e) {
onSortingChange: (e) => {
let t = (typeof e == "function" ? e(le) : e)[0];
if (!t) return;
- let n = _N[t.id];
+ let n = SN[t.id];
n && u(n, t.desc ? "desc" : "asc");
},
onRowSelectionChange: (e) => {
@@ -42282,11 +43110,11 @@ function Nle(e) {
}, n = typeof e == "function" ? e(t) : e;
n.pageSize === o ? n.pageIndex !== t.pageIndex && d(n.pageIndex + 1) : p(n.pageSize);
},
- getCoreRowModel: FI(),
- getPaginationRowModel: ule()
- }), 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 = LN(s, pe), he = [...s], ge = dP(j), _e = fP(j), ve = D.length > 0 && x.size >= D.length;
+ 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: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"
}),
@@ -42305,7 +43133,7 @@ function Nle(e) {
}),
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "primary",
- leadingIcon: _S,
+ leadingIcon: DS,
disabled: c,
"aria-label": "检查全部",
iconOnly: w,
@@ -42320,28 +43148,28 @@ function Nle(e) {
children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: mne,
- "aria-label": hN[0][1],
+ leadingIcon: wS,
+ "aria-label": bN[0][1],
"aria-pressed": !R,
onClick: () => f("default")
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "ghost",
iconOnly: !0,
- leadingIcon: bS,
- "aria-label": hN[1][1],
+ leadingIcon: AS,
+ "aria-label": bN[1][1],
"aria-pressed": R,
onClick: () => f("table")
})]
}),
- /* @__PURE__ */ (0, L.jsx)(rj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "关注列表排序",
selectedKey: n,
onSelectionChange: (e) => {
if (e === null) return;
let t = String(e);
- u(t, nN[t]);
+ u(t, sN[t]);
},
- children: tN.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: oN.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: t
}, e))
@@ -42349,14 +43177,14 @@ function Nle(e) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
iconOnly: !0,
- leadingIcon: r === "asc" ? ane : ine,
- "aria-label": xN(n, r),
+ 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 ? rS : oS,
+ 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 ? "全部展开" : "全部收起"
@@ -42367,11 +43195,11 @@ function Nle(e) {
"aria-live": "polite",
className: "flex flex-col gap-3 empty:hidden",
children: [
- A ? k?.total ? /* @__PURE__ */ (0, L.jsx)(Aw, {
+ 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)(Ew, { label: k?.message || "正在准备检查任务" }) : null,
+ }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: k?.message || "正在准备检查任务" }) : null,
T ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "操作未完成",
@@ -42392,7 +43220,7 @@ function Nle(e) {
}) : null
]
}),
- he.length ? /* @__PURE__ */ (0, L.jsxs)(zI, {
+ he.length ? /* @__PURE__ */ (0, L.jsxs)(sL, {
label: "关注来源批量操作",
count: `已选 ${he.length} 个来源`,
children: [
@@ -42451,10 +43279,10 @@ function Nle(e) {
})
]
}) : null,
- R ? /* @__PURE__ */ (0, L.jsx)(vj, {
+ R ? /* @__PURE__ */ (0, L.jsx)(Sj, {
follow: !0,
onRowClick: (e) => P(Number(e), !s.has(Number(e))),
- children: /* @__PURE__ */ (0, L.jsxs)(hj, {
+ children: /* @__PURE__ */ (0, L.jsxs)(yj, {
"aria-label": "关注来源",
size: "sm",
sortDescriptor: le[0] ? {
@@ -42465,9 +43293,9 @@ function Nle(e) {
id: String(e.column),
desc: e.direction === "descending"
}]),
- children: [/* @__PURE__ */ (0, L.jsx)(ID, { children: de.getHeaderGroups()[0].headers.map((e) => {
- let t = e.column.id in _N, n = II(e.column.columnDef.header, e.getContext());
- return /* @__PURE__ */ (0, L.jsx)(LD, {
+ 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",
@@ -42476,20 +43304,20 @@ function Nle(e) {
children: [n, /* @__PURE__ */ (0, L.jsx)("span", {
"data-sort-indicator": !0,
"data-direction": e || void 0,
- children: /* @__PURE__ */ (0, L.jsx)($A, {})
+ children: /* @__PURE__ */ (0, L.jsx)(rj, {})
})]
- }) : /* @__PURE__ */ (0, L.jsx)(W_, { children: n })
+ }) : /* @__PURE__ */ (0, L.jsx)(q_, { children: n })
}, e.id);
- }) }), /* @__PURE__ */ (0, L.jsx)(zD, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(JD, {
renderEmptyState: () => "这一页没有来源",
- children: fe.map((e) => /* @__PURE__ */ (0, L.jsx)(HD, {
+ 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)(WD, { children: II(e.column.columnDef.cell, e.getContext()) }, e.id))
+ 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)(mj, {
+ }) : /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: me.all,
isIndeterminate: me.some,
onChange: (e) => ee(pe, e),
@@ -42499,9 +43327,9 @@ function Nle(e) {
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)(Mle, {
+ return /* @__PURE__ */ (0, L.jsx)(tue, {
group: e,
- name: kN(e, y),
+ name: AN(e, y),
handlers: se,
selected: s,
open: !x.has(t),
@@ -42521,19 +43349,19 @@ function Nle(e) {
className: "text-body-2-regular text-text-secondary",
children: `${z.start + 1}–${z.end} / ${z.total} ${R ? "个来源" : "位创作者"}`
}),
- /* @__PURE__ */ (0, L.jsx)(rj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "每页显示数量",
size: "sm",
selectedKey: String(o),
onSelectionChange: (e) => {
e !== null && de.setPageSize(Number(e));
},
- children: gN.map((e) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: xN.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: String(e),
children: `每页 ${e} ${R ? "条" : "位"}`
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(Ale, {
+ /* @__PURE__ */ (0, L.jsx)($le, {
page: z.page,
pages: z.pages,
onPage: (e) => de.setPageIndex(e - 1)
@@ -42582,11 +43410,11 @@ function Nle(e) {
]
}) : null
]
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: vS,
+ icon: OS,
title: "还没有关注来源",
- actions: /* @__PURE__ */ (0, L.jsx)(fw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "primary",
size: "small",
href: "/follow-manage?tab=add",
@@ -42597,15 +43425,15 @@ function Nle(e) {
}
//#endregion
//#region src/react/follow-manage/follow-manage-page.tsx
-var WI = [
+var fL = [
["list", "关注列表"],
["add", "添加关注"],
["feeds", "JAV 订阅源"],
["source", "来源和凭证"]
-], GI = (e) => WI.some(([t]) => t === e);
-function KI({ term: e, figure: t, unit: n }) {
+], pL = (e) => fL.some(([t]) => t === e);
+function mL({ term: e, figure: t, unit: n }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"
}),
@@ -42621,23 +43449,23 @@ function KI({ term: e, figure: t, unit: n }) {
})]
});
}
-function Ple(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, I.useState)(GI(e.tab) ? e.tab : "list"), [u, d] = (0, I.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, I.useState)(() => rN(e.sort, e.dir).sort), [m, h] = (0, I.useState)(() => rN(e.sort, e.dir).dir), [g, _] = (0, I.useState)(vN(e.layout) ? e.layout : "default"), [v, y] = (0, I.useState)(yN(e.pageSize)), [b, x] = (0, I.useState)(/* @__PURE__ */ new Set()), S = Nt({
- queryKey: fN,
- queryFn: ({ signal: e }) => zN(e)
- }), C = Nt({
- queryKey: pN,
+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: mN,
- queryFn: ({ signal: e }) => eP(e)
+ queryKey: yN,
+ queryFn: ({ signal: e }) => tP(e)
}), T = S.data || { sources: [] }, E = C.data || {
root: "",
providers: []
}, D = T.sources;
(0, I.useEffect)(() => {
x((e) => {
- let t = IN(e, D);
+ let t = LN(e, D);
return t.size === e.size ? e : t;
});
}, [D]);
@@ -42647,10 +43475,10 @@ function Ple(e) {
tab: e.tab ?? c,
page: e.page ?? u,
sort: n === "checked" ? "" : n,
- dir: r === nN[n] ? "" : r
+ dir: r === sN[n] ? "" : r
});
- }, k = MN(D), A = D.filter(wN).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !_P(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
- return /* @__PURE__ */ (0, L.jsxs)(Dw, { children: [
+ }, 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: "本机只能浏览",
@@ -42665,62 +43493,62 @@ function Ple(e) {
children: o
}) : null,
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: boe,
+ className: goe,
"aria-label": "关注概览",
children: [
- /* @__PURE__ */ (0, L.jsx)(KI, {
+ /* @__PURE__ */ (0, L.jsx)(mL, {
term: "关注创作者",
figure: k.length,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(KI, {
+ /* @__PURE__ */ (0, L.jsx)(mL, {
term: "启用来源",
figure: j,
unit: `/ ${D.length}`
}),
- /* @__PURE__ */ (0, L.jsx)(KI, {
+ /* @__PURE__ */ (0, L.jsx)(mL, {
term: "检查失败",
figure: A,
unit: "个来源"
}),
- /* @__PURE__ */ (0, L.jsx)(KI, {
+ /* @__PURE__ */ (0, L.jsx)(mL, {
term: "未看更新",
figure: T.counts?.new || 0,
unit: "条"
}),
- /* @__PURE__ */ (0, L.jsx)(KI, {
+ /* @__PURE__ */ (0, L.jsx)(mL, {
term: "JAV 订阅",
figure: N,
unit: "位"
}),
- /* @__PURE__ */ (0, L.jsx)(KI, {
+ /* @__PURE__ */ (0, L.jsx)(mL, {
term: "未看新作",
figure: w.data?.unread || 0,
unit: "条"
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(JD, {
+ /* @__PURE__ */ (0, L.jsxs)(rO, {
selectedKey: c,
onSelectionChange: (e) => {
let t = String(e);
- GI(t) && (l(t), O({ tab: t }));
+ pL(t) && (l(t), O({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
- /* @__PURE__ */ (0, L.jsx)(YD, {
+ /* @__PURE__ */ (0, L.jsx)(iO, {
"aria-label": "关注管理区域",
- className: jM,
- children: WI.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(XD, {
+ className: IM,
+ children: fL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(aO, {
id: e,
- className: MM,
+ className: LM,
children: e === "source" && M ? `${t}(${M})` : t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "list",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(Nle, {
+ children: /* @__PURE__ */ (0, L.jsx)(nue, {
data: T,
sort: f,
dir: m,
@@ -42750,10 +43578,10 @@ function Ple(e) {
}
})
}),
- /* @__PURE__ */ (0, L.jsxs)(ZD, {
+ /* @__PURE__ */ (0, L.jsxs)(oO, {
id: "add",
className: "flex flex-col gap-8",
- children: [/* @__PURE__ */ (0, L.jsx)(EF, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Uce, {
data: T,
credentials: E,
readOnly: a,
@@ -42761,7 +43589,7 @@ function Ple(e) {
openCredentials: () => {
l("source"), O({ tab: "source" });
}
- }), /* @__PURE__ */ (0, L.jsx)(jF, {
+ }), /* @__PURE__ */ (0, L.jsx)(Kce, {
groups: T.author_aliases || [],
readOnly: a,
toast: r,
@@ -42769,19 +43597,19 @@ function Ple(e) {
sources: T.sources
})]
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "feeds",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(Ele, {
+ children: /* @__PURE__ */ (0, L.jsx)(Yle, {
readOnly: a,
toast: r,
avatarInner: e.avatarInner
})
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "source",
className: "flex flex-col gap-4",
- children: /* @__PURE__ */ (0, L.jsx)(BF, {
+ children: /* @__PURE__ */ (0, L.jsx)(tle, {
data: E,
readOnly: a,
toast: r
@@ -42793,15 +43621,15 @@ function Ple(e) {
}
//#endregion
//#region src/react/components/board-tabs.tsx
-function Fle({ 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 Ile = "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 qI({ tabs: e, value: t, label: n, onChange: r }) {
+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 }) {
let i = (0, I.useRef)(null), a = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
let e = i.current;
@@ -42829,14 +43657,14 @@ function qI({ 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 ? sT(e.symbol) : null, i = e.value === t;
+ let n = e.symbol ? gT(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: Ile,
+ className: aue,
onClick: () => {
i || r(e.value);
},
@@ -42852,23 +43680,23 @@ function qI({ tabs: e, value: t, label: n, onChange: r }) {
}
//#endregion
//#region src/react/index/index-tags.tsx
-var JI = () => /* @__PURE__ */ (0, L.jsx)("span", {
+var gL = () => /* @__PURE__ */ (0, L.jsx)("span", {
"aria-hidden": !0,
"data-tag-dot": "",
className: "size-1.75 flex-none rounded-full"
});
-function Lle({ tag: e, actions: t }) {
+function oue({ 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": gM(t.online, e.cat),
+ "data-tag-cat": xM(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)(JI, {}),
+ /* @__PURE__ */ (0, L.jsx)(gL, {}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "min-w-0 flex-1 truncate",
children: e.label
@@ -42880,23 +43708,23 @@ function Lle({ tag: e, actions: t }) {
]
});
}
-function Rle({ groups: e, actions: t }) {
+function sue({ 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: Cw({
+ className: Nw({
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)(Fle, { 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)(Lle, {
+ children: n.map((e) => /* @__PURE__ */ (0, L.jsx)(oue, {
tag: e,
actions: t
}, e.k))
@@ -42904,8 +43732,8 @@ function Rle({ groups: e, actions: t }) {
}, e))
});
}
-var zle = "\xA0";
-function Ble({ tags: e, actions: t }) {
+var cue = "\xA0";
+function lue({ tags: e, actions: t }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
"data-tag-cloud": "",
className: "flex flex-wrap gap-1.75",
@@ -42913,11 +43741,11 @@ function Ble({ tags: e, actions: t }) {
type: "button",
"data-tag-chip": "",
"data-k": e.k,
- "data-tag-cat": gM(t.online, e.cat),
+ "data-tag-cat": xM(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 + zle, /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [e.label + cue, /* @__PURE__ */ (0, L.jsx)("span", {
"data-tag-n": "",
className: "text-caption-1-regular opacity-60",
children: e.n.toLocaleString()
@@ -42925,7 +43753,7 @@ function Ble({ tags: e, actions: t }) {
}, e.k))
});
}
-var Vle = [[
+var uue = [[
"cloud",
"标签云",
"tags"
@@ -42934,16 +43762,16 @@ var Vle = [[
"字母表",
"text-aa"
]];
-function Hle({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {
- return /* @__PURE__ */ (0, L.jsx)(Qj, {
+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, {
label: "标签筛选",
topLabel: "标签类型",
- top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)($j, {
+ top: e.map(([e, r]) => /* @__PURE__ */ (0, L.jsxs)(iM, {
"data-tag-pill": "",
- "data-tag-cat": e === "all" ? "all" : gM(n, e),
+ "data-tag-cat": e === "all" ? "all" : xM(n, e),
pressed: t === e,
onPress: () => o(e),
- children: [/* @__PURE__ */ (0, L.jsx)(JI, {}), r]
+ children: [/* @__PURE__ */ (0, L.jsx)(gL, {}), r]
}, e)),
bottom: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("span", {
@@ -42962,19 +43790,19 @@ function Hle({ categories: e, category: t, online: n, readout: r, letters: i, vi
children: e
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(yD, {
+ /* @__PURE__ */ (0, L.jsx)(OD, {
"aria-label": "标签视图",
orientation: "horizontal",
value: a,
onChange: (e) => c(e),
- className: `ml-auto ${NM}`,
- children: Vle.map(([e, t, n]) => {
- let r = sT(n);
- return /* @__PURE__ */ (0, L.jsx)(bD, {
+ className: `ml-auto ${RM}`,
+ children: uue.map(([e, t, n]) => {
+ let r = gT(n);
+ return /* @__PURE__ */ (0, L.jsx)(kD, {
value: e,
"aria-label": t,
"data-glass-segment": "",
- className: PM,
+ className: zM,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -42986,12 +43814,12 @@ function Hle({ categories: e, category: t, online: n, readout: r, letters: i, vi
] })
});
}
-function Ule({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
- return /* @__PURE__ */ (0, L.jsxs)(zI, {
+function fue({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
+ return /* @__PURE__ */ (0, L.jsxs)(sL, {
label: "所选标签操作",
count: `已选 ${e} 个标签`,
children: [
- /* @__PURE__ */ (0, L.jsx)(mj, {
+ /* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: t === "any",
onChange: (e) => n(e ? "any" : "all"),
children: /* @__PURE__ */ (0, L.jsxs)("span", {
@@ -43023,7 +43851,7 @@ function Ule({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {
}
//#endregion
//#region src/react/index/index-page.tsx
-var Wle = [{
+var pue = [{
value: "studios",
label: "厂牌",
symbol: "clapperboard"
@@ -43031,7 +43859,7 @@ var Wle = [{
value: "agencies",
label: "事务所",
symbol: "briefcase"
-}], YI = [{
+}], _L = [{
value: "local",
label: "本地",
symbol: "hard-drive"
@@ -43039,7 +43867,7 @@ var Wle = [{
value: "online",
label: "在线",
symbol: "rss"
-}], Gle = {
+}], mue = {
people: [[
"big",
"大图 · 竖幅头像",
@@ -43059,20 +43887,20 @@ var Wle = [{
"layout-grid"
]]
};
-function Kle({ kind: e, layout: t, onChange: n }) {
- return /* @__PURE__ */ (0, L.jsx)(yD, {
- "aria-label": `${aM[e]}索引版式`,
+function hue({ kind: e, layout: t, onChange: n }) {
+ return /* @__PURE__ */ (0, L.jsx)(OD, {
+ "aria-label": `${uM[e]}索引版式`,
orientation: "horizontal",
value: t,
onChange: (e) => n(e),
"data-index-layout": "",
- className: `flex-none max-board-narrow:order-3 ${jM}`,
- children: Gle[uM(e) ? "company" : "people"].map(([e, t, n]) => {
- let r = sT(n);
- return /* @__PURE__ */ (0, L.jsx)(bD, {
+ 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, {
value: e,
"aria-label": t,
- className: Nse,
+ className: Ose,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: t,
className: "contents",
@@ -43082,8 +43910,8 @@ function Kle({ kind: e, layout: t, onChange: n }) {
})
});
}
-var qle = sT("search");
-function Jle({ label: e, value: t, onQuery: n }) {
+var gue = gT("search");
+function _ue({ 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) => {
@@ -43098,15 +43926,15 @@ function Jle({ label: e, value: t, onQuery: n }) {
onCompositionEnd: (e) => {
a.current = !1, s(e.target.value);
},
- children: /* @__PURE__ */ (0, L.jsx)(Nj, {
+ children: /* @__PURE__ */ (0, L.jsx)(Lj, {
"aria-label": e,
value: r,
onChange: (e) => {
i(e), a.current || s(e);
},
- children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: /* @__PURE__ */ (0, L.jsx)(zj, {
type: "search",
- leadingIcon: qle,
+ leadingIcon: gue,
spellCheck: !1,
autoComplete: "off",
onKeyDown: (e) => {
@@ -43116,14 +43944,14 @@ function Jle({ label: e, value: t, onQuery: n }) {
})
});
}
-function Yle(e) {
- let [t, n] = (0, I.useState)(() => dM({
+function vue(e) {
+ let [t, n] = (0, I.useState)(() => gM({
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 = aM[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 = uM[u], _ = u === "tags" && p === "online", v = u === "performers" && p === "online";
(0, I.useEffect)(() => {
e.selectMode || o(/* @__PURE__ */ new Set());
}, [e.selectMode]);
@@ -43133,7 +43961,7 @@ function Yle(e) {
...r
};
x(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });
- }, C = hM(fM(t)), w = Ft({
+ }, C = bM(_M(t)), w = Ft({
queryKey: C.queryKey,
queryFn: ({ pageParam: e, signal: t }) => C.queryFn({
pageParam: e,
@@ -43142,21 +43970,21 @@ function Yle(e) {
initialPageParam: 0,
getNextPageParam: C.getNextPageParam,
placeholderData: b ? Me : void 0
- }), T = dse(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = fse(T.length, !!w.hasNextPage);
+ }), T = ose(w.data), E = !!w.hasNextPage && !w.isPlaceholderData, D = sse(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" ? hse(O, (t) => e.tagLabel(t)) : [], [
+ })) : [], [T, u]), k = (0, I.useMemo)(() => u === "tags" && m === "alphabet" ? use(O, (t) => e.tagLabel(t)) : [], [
O,
m,
u
]), A = (t) => {
i(t), e.savePreference({ layout: t });
- }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(qI, {
- tabs: YI,
+ }, j = u === "tags" ? /* @__PURE__ */ (0, L.jsx)(hL, {
+ tabs: _L,
value: p,
label: "词表",
onChange: (e) => {
@@ -43166,15 +43994,15 @@ function Yle(e) {
view: e === "online" ? "alphabet" : m
});
}
- }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(qI, {
- tabs: YI,
+ }) : u === "performers" ? /* @__PURE__ */ (0, L.jsx)(hL, {
+ tabs: _L,
value: p,
label: "名册",
onChange: (t) => {
t === "online" && e.exitSelectMode(), S({ scope: t });
}
- }) : uM(u) ? /* @__PURE__ */ (0, L.jsx)(qI, {
- tabs: Wle,
+ }) : hM(u) ? /* @__PURE__ */ (0, L.jsx)(hL, {
+ tabs: pue,
value: u,
label: "公司类型",
onChange: (e) => S({ kind: e })
@@ -43191,7 +44019,7 @@ function Yle(e) {
let n = new Set(e);
return n.delete(t) || n.add(t), n;
});
- }, N = (_ ? sM : oM).filter(([e]) => e === "all" || Number(w.data?.pages[0]?.categories?.[e] || 0) > 0);
+ }, N = (_ ? fM : 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,
@@ -43206,12 +44034,12 @@ function Yle(e) {
className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",
children: g
}),
- lM(u) ? /* @__PURE__ */ (0, L.jsx)("span", {
+ mM(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,
- lM(u) ? /* @__PURE__ */ (0, L.jsx)(Kle, {
+ mM(u) ? /* @__PURE__ */ (0, L.jsx)(hue, {
kind: u,
layout: r,
onChange: A
@@ -43220,7 +44048,7 @@ function Yle(e) {
"aria-hidden": !0,
className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"
}),
- /* @__PURE__ */ (0, L.jsx)(Jle, {
+ /* @__PURE__ */ (0, L.jsx)(_ue, {
label: `过滤${g}`,
value: f,
onQuery: (e) => {
@@ -43230,7 +44058,7 @@ function Yle(e) {
]
}),
j,
- u === "tags" ? /* @__PURE__ */ (0, L.jsx)(Hle, {
+ u === "tags" ? /* @__PURE__ */ (0, L.jsx)(due, {
categories: N,
category: h,
online: _,
@@ -43255,8 +44083,8 @@ function Yle(e) {
mode: m
}) }
});
- if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Tw, {
- icon: sT("search"),
+ if (w.isError) return /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: gT("search"),
title: `没能读取${g}`,
actions: /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
@@ -43265,18 +44093,18 @@ function Yle(e) {
}),
children: d(w.error)
});
- if (!T.length) return /* @__PURE__ */ (0, L.jsx)(Zle, {
+ if (!T.length) return /* @__PURE__ */ (0, L.jsx)(bue, {
kind: u,
filtered: !!f || u === "tags" && h !== "all",
online: _ || v,
configurable: e.configurable
});
- if (v) return /* @__PURE__ */ (0, L.jsx)(_se, {
+ if (v) return /* @__PURE__ */ (0, L.jsx)(fse, {
items: T,
layout: r,
props: e
});
- if (lM(u)) return /* @__PURE__ */ (0, L.jsx)(yM, {
+ if (mM(u)) return /* @__PURE__ */ (0, L.jsx)(wM, {
kind: u,
items: T,
layout: r,
@@ -43287,10 +44115,10 @@ function Yle(e) {
picked: a,
press: M
};
- return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(Rle, {
+ return m === "alphabet" ? /* @__PURE__ */ (0, L.jsx)(sue, {
groups: k,
actions: t
- }) : /* @__PURE__ */ (0, L.jsx)(Ble, {
+ }) : /* @__PURE__ */ (0, L.jsx)(lue, {
tags: O,
actions: t
});
@@ -43305,13 +44133,13 @@ function Yle(e) {
disabled: w.isFetchingNextPage,
"aria-busy": w.isFetchingNextPage || void 0,
onClick: () => void w.fetchNextPage(),
- children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Ew, {
+ children: w.isFetchingNextPage ? /* @__PURE__ */ (0, L.jsx)(Iw, {
inline: !0,
label: "继续载入中…"
}) : "载入更多"
})
}) : null,
- u === "tags" && !_ && e.selectMode && a.size ? /* @__PURE__ */ (0, L.jsx)(Ule, {
+ u === "tags" && !_ && e.selectMode && a.size ? /* @__PURE__ */ (0, L.jsx)(fue, {
count: a.size,
match: s,
onMatch: c,
@@ -43324,31 +44152,31 @@ function Yle(e) {
]
});
}
-var Xle = {
+var yue = {
tags: "标签",
performers: "艺人",
creators: "创作者",
studios: "厂牌",
agencies: "事务所"
};
-function Zle({ kind: e, filtered: t, online: n, configurable: r }) {
- if (t) return /* @__PURE__ */ (0, L.jsx)(Tw, {
- icon: sT("search"),
+function bue({ kind: e, filtered: t, online: n, configurable: r }) {
+ if (t) return /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: gT("search"),
title: "没有符合条件的内容",
- actions: /* @__PURE__ */ (0, L.jsx)(fw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "primary",
href: "/?loc=&thumb=0",
children: "查看全部内容"
}),
children: "清除筛选或搜索条件后查看全部内容。"
});
- let i = n && e === "performers" ? "创作者" : Xle[e], a = /* @__PURE__ */ (0, L.jsx)(fw, {
+ let i = n && e === "performers" ? "创作者" : yue[e], a = /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: !r || n ? "primary" : "secondary",
href: "/follow-manage?tab=add",
children: "添加关注"
});
- return /* @__PURE__ */ (0, L.jsx)(Tw, {
- icon: sT(e === "tags" ? "tags" : "user-round"),
+ return /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: gT(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",
@@ -43358,15 +44186,15 @@ function Zle({ kind: e, filtered: t, online: n, configurable: r }) {
children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"
});
}
-var XI = {
+var vL = {
video: ["视频", "play"],
image: ["图片", "pics"],
archive: ["压缩包", "file-archive"],
audio: ["音频", "file-audio"],
url: ["网址快捷方式", "globe"],
other: ["其它文件", "hard-drive"]
-}, Qle = (e) => XI[e.junk_kind || "other"] || XI.other;
-function $le(e) {
+}, xue = (e) => vL[e.junk_kind || "other"] || vL.other;
+function Sue(e) {
return e === "dismissed" ? {
operation: "reconsider-junk",
label: "重新判断",
@@ -43377,21 +44205,21 @@ function $le(e) {
glyph: "check"
};
}
-var eue = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), tue = (e, t) => [
+var Cue = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), wue = (e, t) => [
"junk-queue",
e.view,
e.kind,
t
];
-function nue({ kind: e, view: t }) {
+function Tue({ kind: e, view: t }) {
let n = new URLSearchParams({
limit: "200",
status: t
});
return e && n.set("kind", e), n.toString();
}
-async function rue(e, t) {
- let n = await hw(`/api/ads?${nue(e)}`, t);
+async function Eue(e, t) {
+ let n = await Tw(`/api/ads?${Tue(e)}`, t);
return {
...n,
items: n.items || []
@@ -43399,19 +44227,19 @@ async function rue(e, t) {
}
//#endregion
//#region src/react/junk-queue/junk-card.tsx
-function ZI({ name: e }) {
+function yL({ 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 QI = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;
-function iue({ 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] = Qle(e), g = String(e.name || ""), _ = $le(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]") || QI(i, t) && (t.preventDefault(), s.toggleSelection(e.id, t.shiftKey));
+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));
}, x = (t) => {
- if (t.stopPropagation(), QI(i, t)) {
+ if (t.stopPropagation(), bL(i, t)) {
t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);
return;
}
@@ -43453,7 +44281,7 @@ function iue({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
children: [
/* @__PURE__ */ (0, L.jsxs)("span", {
"data-media-glyph": "",
- children: [/* @__PURE__ */ (0, L.jsx)(ZI, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]
+ children: [/* @__PURE__ */ (0, L.jsx)(yL, { name: h }), /* @__PURE__ */ (0, L.jsx)("b", { children: m })]
}),
v ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-media-art": "thumb",
@@ -43465,7 +44293,7 @@ function iue({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
}),
/* @__PURE__ */ (0, L.jsx)("span", {
"data-media-check": "",
- children: /* @__PURE__ */ (0, L.jsx)(ZI, { name: "check" })
+ children: /* @__PURE__ */ (0, L.jsx)(yL, { name: "check" })
})
]
}),
@@ -43502,7 +44330,7 @@ function iue({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
children: [l === "reveal" ? /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-spinner": "",
dangerouslySetInnerHTML: { __html: D("正在定位") }
- }) : /* @__PURE__ */ (0, L.jsx)(ZI, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ }) : /* @__PURE__ */ (0, L.jsx)(yL, { name: "folder-open" }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: "打开位置"
})]
@@ -43514,7 +44342,7 @@ function iue({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
"aria-label": _.label,
...w(_.operation),
onClick: C(_.operation),
- children: [/* @__PURE__ */ (0, L.jsx)(ZI, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(yL, { name: _.glyph }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: _.label
})]
@@ -43526,7 +44354,7 @@ function iue({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
"aria-label": "移入回收站",
...w("dispose"),
onClick: C("dispose"),
- children: [/* @__PURE__ */ (0, L.jsx)(ZI, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {
+ children: [/* @__PURE__ */ (0, L.jsx)(yL, { name: "trash" }), /* @__PURE__ */ (0, L.jsx)("span", {
"data-junk-label": "",
children: "移入回收站"
})]
@@ -43541,7 +44369,7 @@ function iue({ item: e, view: t, selected: n, selectMode: i, helpers: o, actions
]
});
}
-var aue = (0, I.memo)(iue), oue = [
+var Oue = (0, I.memo)(Due), kue = [
[
"",
"全部",
@@ -43578,53 +44406,53 @@ var aue = (0, I.memo)(iue), oue = [
"hard-drive"
]
];
-function $I(e = "", t = "pending") {
+function xL(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 sue(e) {
+function Aue(e) {
return e === "dismissed" ? {
view: "pending",
label: "返回待判断",
glyph: "rotate-ccw",
- href: $I("", "pending")
+ href: xL("", "pending")
} : {
view: "dismissed",
label: "已排除",
glyph: "eye-off",
- href: $I("", "dismissed")
+ href: xL("", "dismissed")
};
}
-var cue = (e) => e === "dismissed" ? "已排除" : "待判断";
+var jue = (e) => e === "dismissed" ? "已排除" : "待判断";
//#endregion
//#region src/react/junk-queue/junk-count.tsx
-function eL({ name: e }) {
+function SL({ 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 tL({ scope: e, count: t }) {
+function CL({ 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 lue({ route: e, page: t, failed: n, onNavigate: r }) {
- let i = dO(), { kind: a, view: o } = e, s = sue(o), c = (e) => {
+function Mue({ route: e, page: t, failed: n, onNavigate: r }) {
+ let i = bO(), { kind: a, view: o } = e, s = Aue(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") || $I()));
+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || xL()));
}, 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)(Xj, {
- label: cue(o),
+ children: /* @__PURE__ */ (0, L.jsx)(tM, {
+ label: jue(o),
figure: l,
pending: !t && !n,
flush: !0
@@ -43637,16 +44465,16 @@ function lue({ route: e, page: t, failed: n, onNavigate: r }) {
"aria-label": "垃圾文件分类",
onClick: c,
children: [
- oue.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {
- href: $I(e, o),
+ kue.map(([e, n, r]) => /* @__PURE__ */ (0, L.jsxs)("a", {
+ href: xL(e, o),
"data-junk-kind-link": e,
"aria-current": e === a ? "page" : void 0,
children: [
- /* @__PURE__ */ (0, L.jsx)(eL, { name: r }),
+ /* @__PURE__ */ (0, L.jsx)(SL, { name: r }),
n,
- /* @__PURE__ */ (0, L.jsx)(tL, {
+ /* @__PURE__ */ (0, L.jsx)(CL, {
scope: e,
- count: t ? eue(t, e) : 0
+ count: t ? Cue(t, e) : 0
})
]
}, e || "all")),
@@ -43659,9 +44487,9 @@ function lue({ 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)(eL, { name: s.glyph }),
+ /* @__PURE__ */ (0, L.jsx)(SL, { name: s.glyph }),
s.label,
- /* @__PURE__ */ (0, L.jsx)(tL, {
+ /* @__PURE__ */ (0, L.jsx)(CL, {
scope: "dismissed",
count: Number(t?.dismissed_total || 0)
})
@@ -43674,38 +44502,38 @@ function lue({ route: e, page: t, failed: n, onNavigate: r }) {
}
//#endregion
//#region src/react/junk-queue/junk-queue-page.tsx
-var uue = sT("check"), due = (e, t) => e[1] === t.view && e[2] === t.kind;
-function fue(e) {
+var Nue = gT("check"), Pue = (e, t) => e[1] === t.view && e[2] === t.kind;
+function Fue(e) {
let t = {
kind: e.kind,
view: e.view
}, n = (0, I.useRef)(e.cache);
n.current = e.cache;
let r = Nt({
- queryKey: tue(t, e.revision),
+ queryKey: wue(t, e.revision),
queryFn: async ({ signal: e }) => {
- let r = await rue(t, e);
+ let r = await Eue(t, e);
return n.current(r.items), r;
},
- placeholderData: (e, n) => n && due(n.queryKey, t) ? e : void 0
+ placeholderData: (e, n) => n && Pue(n.queryKey, t) ? e : void 0
});
(0, I.useEffect)(() => {
r.isFetching || e.settled?.(e.revision);
}, [r.isFetching, e.revision]);
- let i = pue(e.countRow), a = r.isPending;
+ let i = Iue(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]);
- let { navigate: o } = e.actions, s = i ? (0, Ch.createPortal)(/* @__PURE__ */ (0, L.jsx)(lue, {
+ let { navigate: o } = e.actions, s = i ? (0, Ch.createPortal)(/* @__PURE__ */ (0, L.jsx)(Mue, {
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)(mue, {
+ return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [s, /* @__PURE__ */ (0, L.jsx)(Lue, {
props: e,
data: r.data,
pending: a,
@@ -43713,7 +44541,7 @@ function fue(e) {
retry: () => void r.refetch()
}, `${t.view}:${t.kind}`)] });
}
-function pue(e) {
+function Iue(e) {
let [t, n] = (0, I.useState)(null);
return (0, I.useLayoutEffect)(() => {
if (!e) return;
@@ -43723,8 +44551,8 @@ function pue(e) {
};
}, [e]), t;
}
-function mue({ props: e, data: t, pending: n, error: r, retry: i }) {
- let a = Xw(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 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)(() => {
f?.() !== !1 && c((e) => e + 1);
}, [f]);
return /* @__PURE__ */ (0, L.jsxs)("div", {
@@ -43732,14 +44560,14 @@ function mue({ 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)(Zw, {
+ if (!t) return /* @__PURE__ */ (0, L.jsx)(oT, {
message: d(r),
onRetry: i
});
if (!l.length) {
let t = e.view === "dismissed";
- return /* @__PURE__ */ (0, L.jsx)(Tw, {
- icon: uue,
+ return /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: Nue,
title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",
children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"
});
@@ -43748,7 +44576,7 @@ function mue({ 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)(aue, {
+ children: u.map((t) => /* @__PURE__ */ (0, L.jsx)(Oue, {
item: t,
view: e.view,
selected: e.selected.has(t.id),
@@ -43756,11 +44584,11 @@ function mue({ 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)(hue, { onMore: p }, s) : null] });
+ }), u.length < l.length ? /* @__PURE__ */ (0, L.jsx)(Rue, { onMore: p }, s) : null] });
})()]
});
}
-function hue({ onMore: e }) {
+function Rue({ onMore: e }) {
let t = (0, I.useRef)(null);
return (0, I.useEffect)(() => {
let n = t.current;
@@ -43778,12 +44606,12 @@ function hue({ onMore: e }) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var nL = "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", gue = {
- gray: `${nL} border-separator-border bg-background-secondary-default text-text-secondary`,
- warning: `${nL} border-current/35 bg-status-yellow-background text-status-yellow-text`,
- error: `${nL} border-current/35 bg-background-tertiary-error text-text-error-primary`
+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`
};
-function _ue({ value: e, max: t }) {
+function Bue({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, L.jsxs)("svg", {
role: "progressbar",
@@ -43811,16 +44639,16 @@ function _ue({ value: e, max: t }) {
})]
});
}
-function vue(e) {
- let { job: t } = UA(e), n = t.data, r = t.isError ? n ? OO : K(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+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";
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 ? "扫描与资料采集未完成" : AO(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? fne : sne;
+ 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;
return /* @__PURE__ */ (0, L.jsxs)("aside", {
role: a ? "alert" : "status",
- className: gue[s],
+ className: zue[s],
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, L.jsx)(_ue, {
+ children: [o && l ? /* @__PURE__ */ (0, L.jsx)(Bue, {
value: c,
max: l
}) : /* @__PURE__ */ (0, L.jsx)(d, {
@@ -43830,42 +44658,42 @@ function vue(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, L.jsx)(vA, {
+ }), /* @__PURE__ */ (0, L.jsx)(SA, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: iS,
+ trailingIcon: oS,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/playlists/playlists.ts
-var yue = "/api/playlists", rL = "/api/playlist", iL = ["playlists"], aL = (e) => hw(yue, e);
-async function bue(e) {
+var Hue = "/api/playlists", TL = "/api/playlist", EL = ["playlists"], DL = (e) => Tw(Hue, e);
+async function Uue(e) {
await X.fetchQuery({
- queryKey: iL,
- queryFn: () => aL(e),
+ queryKey: EL,
+ queryFn: () => DL(e),
staleTime: 0
});
}
-var oL = () => X.invalidateQueries({
- queryKey: iL,
+var OL = () => X.invalidateQueries({
+ queryKey: EL,
exact: !0
-}), xue = (e) => e.current_asset_id || e.preview_asset_id || null, sL = (e) => `/poster?id=${e}&c=4`, Sue = (e) => q(rL, {
+}), Wue = (e) => e.current_asset_id || e.preview_asset_id || null, kL = (e) => `/poster?id=${e}&c=4`, Gue = (e) => q(TL, {
action: "create",
name: e,
asset_ids: []
-}), cL = (e, t) => q(rL, {
+}), AL = (e, t) => q(TL, {
action: "rename",
id: e,
name: t
-}), lL = (e) => q(rL, {
+}), jL = (e) => q(TL, {
action: "delete",
id: e
-}), Cue = (e) => hw(`${rL}?id=${e}`).catch(() => null);
-function wue(e) {
+}), Kue = (e) => Tw(`${TL}?id=${e}`).catch(() => null);
+function que(e) {
let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;
- return q(rL, {
+ return q(TL, {
action: "create",
name: e.name,
asset_ids: t,
@@ -43875,18 +44703,18 @@ function wue(e) {
}
//#endregion
//#region src/react/playlists/playlists-page.tsx
-var Tue = sT("ellipsis"), Eue = sT("pencil"), Due = sT("trash"), Oue = sT("playlist"), uL = sw(bA, xA, "text-body-2-medium"), dL = "播放列表名称不能为空", fL = (e) => async () => {
+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 () => {
try {
await e();
} finally {
- oL();
+ OL();
}
};
-function kue({ toast: e }) {
+function Que({ toast: e }) {
let [t, n] = (0, I.useState)(""), [r, i] = (0, I.useState)(""), a = Pt({
- mutationFn: (e) => Sue(e),
+ mutationFn: (e) => Gue(e),
onSuccess: (t) => {
- n(""), i(""), oL(), e("已新建播放列表", { undo: fL(() => lL(t.playlist.id)) });
+ n(""), i(""), OL(), e("已新建播放列表", { undo: PL(() => jL(t.playlist.id)) });
},
onError: (e) => i(K(e) || "新建失败")
});
@@ -43896,7 +44724,7 @@ function kue({ toast: e }) {
onSubmit: (e) => {
if (e.preventDefault(), !a.isPending) {
if (!t.trim()) {
- i(dL);
+ i(NL);
return;
}
a.mutate(t);
@@ -43905,7 +44733,7 @@ function kue({ 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)(Ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(Bj, {
label: "新播放列表",
placeholder: "输入名称",
maxLength: 80,
@@ -43924,7 +44752,7 @@ function kue({ toast: e }) {
})]
});
}
-function Aue({ target: e, close: t, toast: n }) {
+function $ue({ 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;
@@ -43935,13 +44763,13 @@ function Aue({ target: e, close: t, toast: n }) {
return () => cancelAnimationFrame(t);
}, [e]);
let c = Pt({
- mutationFn: ({ row: e, value: t }) => cL(e.id, t),
+ mutationFn: ({ row: e, value: t }) => AL(e.id, t),
onSuccess: (e, { row: r }) => {
- t(), oL(), n("已重命名播放列表", { undo: fL(() => cL(r.id, r.name)) });
+ t(), OL(), n("已重命名播放列表", { undo: PL(() => AL(r.id, r.name)) });
},
onError: (e) => o(K(e))
});
- return /* @__PURE__ */ (0, L.jsx)(lO, {
+ return /* @__PURE__ */ (0, L.jsx)(vO, {
isOpen: !!e,
onOpenChange: (e) => {
e || t();
@@ -43953,7 +44781,7 @@ function Aue({ target: e, close: t, toast: n }) {
if (t.preventDefault(), !e || c.isPending) return;
let n = r.trim();
if (!n) {
- o(dL);
+ o(NL);
return;
}
c.mutate({
@@ -43964,11 +44792,11 @@ function Aue({ 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)(IT, {
+ children: [/* @__PURE__ */ (0, L.jsx)(GT, {
slot: "title",
className: "text-title-2-semibold text-text-primary",
children: "编辑名称"
- }), /* @__PURE__ */ (0, L.jsx)(Ij, {
+ }), /* @__PURE__ */ (0, L.jsx)(Bj, {
ref: s,
label: "名称",
placeholder: "输入名称",
@@ -43996,7 +44824,7 @@ function Aue({ target: e, close: t, toast: n }) {
})
});
}
-function jue({ name: e, onRename: t, onDelete: n }) {
+function ede({ name: e, onRename: t, onDelete: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -44010,33 +44838,33 @@ function jue({ 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)(Tue, {
+ children: /* @__PURE__ */ (0, L.jsx)(Jue, {
"aria-hidden": !0,
className: "size-4.5"
})
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ }), /* @__PURE__ */ (0, L.jsx)(uD, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: yA,
- children: /* @__PURE__ */ (0, L.jsxs)(fD, {
+ className: CA,
+ children: /* @__PURE__ */ (0, L.jsxs)(xD, {
"aria-label": `播放列表操作:${e}`,
className: "flex w-37.5 flex-col gap-0.5 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: uL,
+ className: ML,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, L.jsx)(Eue, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Yue, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "编辑名称"]
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: uL,
+ className: ML,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, L.jsx)(Due, {
+ children: [/* @__PURE__ */ (0, L.jsx)(Xue, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "删除播放列表"]
@@ -44044,13 +44872,13 @@ function jue({ name: e, onRename: t, onDelete: n }) {
})
})] });
}
-function Mue({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
+function tde({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast: i, revision: a }) {
let o = Nt({
- queryKey: iL,
- queryFn: ({ signal: e }) => aL(e)
+ queryKey: EL,
+ queryFn: ({ signal: e }) => DL(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, OL());
}, [a]);
let u = o.data;
if (!u) return /* @__PURE__ */ (0, L.jsx)("div", {
@@ -44068,8 +44896,8 @@ function Mue({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
confirmLabel: "删除播放列表",
danger: !0,
onConfirm: async () => {
- let t = await Cue(e.id);
- await lL(e.id), oL(), i("已删除播放列表", t ? { undo: fL(() => wue(t)) } : void 0);
+ let t = await Kue(e.id);
+ await jL(e.id), OL(), i("已删除播放列表", t ? { undo: PL(() => que(t)) } : void 0);
}
});
};
@@ -44084,39 +44912,39 @@ function Mue({ 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)(kue, { toast: i })]
+ })] }), /* @__PURE__ */ (0, L.jsx)(Que, { 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 = xue(i);
- return /* @__PURE__ */ (0, L.jsx)(dT, {
+ let a = Wue(i);
+ return /* @__PURE__ */ (0, L.jsx)(bT, {
"data-playlist-card": String(i.id),
name: i.name,
caption: i.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",
count: i.item_count,
- poster: i.preview_asset_id ? sL(i.preview_asset_id) : null,
- flipImages: async () => (i.preview_ids || []).map(sL),
+ poster: i.preview_asset_id ? kL(i.preview_asset_id) : null,
+ flipImages: async () => (i.preview_ids || []).map(kL),
canFlip: r,
faces: i.faces || [],
faceAvatar: n,
onOpenEntity: t,
...a ? { onOpen: () => e(i.id, a) } : {},
openLabel: `打开播放列表 ${i.name}`,
- menu: /* @__PURE__ */ (0, L.jsx)(jue, {
+ menu: /* @__PURE__ */ (0, L.jsx)(ede, {
name: i.name,
onRename: () => c(i),
onDelete: () => f(i)
})
}, i.id);
})
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
- icon: Oue,
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: Zue,
title: "还没有播放列表",
children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"
}),
- /* @__PURE__ */ (0, L.jsx)(Aue, {
+ /* @__PURE__ */ (0, L.jsx)($ue, {
target: s,
close: () => c(null),
toast: i
@@ -44126,11 +44954,11 @@ function Mue({ openPlaylist: e, openEntity: t, faceAvatar: n, canFlip: r, toast:
}
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function Nue({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadge: s }) {
+function nde({ 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: Cw({
+ className: Nw({
padding: "none",
bordered: "soft",
className: "flex flex-col gap-3 p-3"
@@ -44146,7 +44974,7 @@ function Nue({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
className: "text-caption-1-regular text-text-secondary",
children: "暂无预览"
}), /* @__PURE__ */ (0, L.jsx)("img", {
- src: Hae(t),
+ src: ZO(t),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -44194,19 +45022,19 @@ function Nue({ item: t, openItem: n, javTitleHtml: r, javDisplayName: o, srcBadg
})]
});
}
-function Pue(e) {
+function rde(e) {
let t = Nt({
- queryKey: HO,
- queryFn: ({ signal: e }) => UO(e)
+ queryKey: JO,
+ queryFn: ({ signal: e }) => YO(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Lw, { 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)(Dw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
- className: Cw({
+ return r.length ? /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [/* @__PURE__ */ (0, L.jsxs)("div", {
+ className: Nw({
variant: "raised",
className: "flex flex-col gap-1 px-6 py-5 max-sm:px-4"
}),
@@ -44219,21 +45047,21 @@ function Pue(e) {
})]
}), /* @__PURE__ */ (0, L.jsx)("ul", {
className: "card-grid-cover gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, L.jsx)(Nue, {
+ children: r.map((t) => /* @__PURE__ */ (0, L.jsx)(nde, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsx)(Tw, {
+ })] }) : /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: ES,
+ icon: IS,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/review/bulk-toolbar.tsx
-function Fue(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 = ik(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 = lk(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": "复核筛选",
@@ -44241,29 +45069,29 @@ function Fue(e) {
"data-glass-pane": "",
className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "筛选分组方式",
size: "sm",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: t.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: t
}, e))
}),
- i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(rj, {
+ i.length > 1 ? /* @__PURE__ */ (0, L.jsxs)(sj, {
"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",
size: "sm",
selectedKey: a || "*",
onSelectionChange: (e) => {
e !== null && o(String(e) === "*" ? "" : String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(ij, {
+ children: [/* @__PURE__ */ (0, L.jsx)(cj, {
id: "*",
children: "全部分类"
- }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e.key,
children: `${e.title} · ${e.rows.length}`
}, e.key))]
@@ -44271,7 +45099,7 @@ function Fue(e) {
/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: sS,
+ leadingIcon: lS,
"aria-pressed": v,
disabled: p || !s.length,
onClick: () => {
@@ -44282,11 +45110,11 @@ function Fue(e) {
children: v ? "清空当前选择" : a ? "全选当前分类" : "全选本页"
})
]
- }), c.size ? /* @__PURE__ */ (0, L.jsxs)(zI, {
+ }), c.size ? /* @__PURE__ */ (0, L.jsxs)(sL, {
label: "复核所选项目",
count: `已选 ${c.size} 项`,
children: [
- b ? /* @__PURE__ */ (0, L.jsxs)(rj, {
+ b ? /* @__PURE__ */ (0, L.jsxs)(sj, {
"aria-label": "统一选择来源",
size: "sm",
selectedKey: "",
@@ -44294,10 +45122,10 @@ function Fue(e) {
onSelectionChange: (e) => {
e !== null && e !== "" && h(String(e));
},
- children: [/* @__PURE__ */ (0, L.jsx)(ij, {
+ children: [/* @__PURE__ */ (0, L.jsx)(cj, {
id: "",
children: x
- }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ }), y.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: e
}, e))]
@@ -44333,7 +45161,7 @@ function Fue(e) {
}
//#endregion
//#region src/react/review/candidate-form.tsx
-var Iue = {
+var ade = {
title: "标题",
original_title: "原标题",
runtime: "来源时长",
@@ -44343,14 +45171,14 @@ var Iue = {
cover_url: "封面",
screenshot_urls: "截图",
trailer_url: "预告片"
-}, pL = "reviewgenretags";
-function Lue({ tags: e }) {
+}, FL = "reviewgenretags";
+function ode({ tags: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("datalist", {
- id: pL,
+ id: FL,
children: e.map((e) => /* @__PURE__ */ (0, L.jsx)("option", { value: e }, e))
}) : null;
}
-function mL({ candidate: e, selectable: t = !1 }) {
+function IL({ 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",
@@ -44387,7 +45215,7 @@ function mL({ candidate: e, selectable: t = !1 }) {
children: [
/* @__PURE__ */ (0, L.jsx)("dt", {
className: "text-body-2-regular text-text-secondary",
- children: Iue[e] || e
+ children: ade[e] || e
}),
/* @__PURE__ */ (0, L.jsx)("dd", {
className: "min-w-0 text-body-2-regular break-words text-text-primary",
@@ -44402,36 +45230,36 @@ function mL({ candidate: e, selectable: t = !1 }) {
}) : null]
});
}
-function Rue({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {
+function sde({ 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)(mL, { candidate: a[0] })
- }) : /* @__PURE__ */ (0, L.jsx)(yD, {
+ children: /* @__PURE__ */ (0, L.jsx)(IL, { candidate: a[0] })
+ }) : /* @__PURE__ */ (0, L.jsx)(OD, {
"aria-label": `${t || "候选"}的来源`,
value: n,
isDisabled: i,
onChange: r,
className: "flex flex-col gap-2",
- children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(bD, {
+ children: a.map((e) => /* @__PURE__ */ (0, L.jsx)(kD, {
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)(mL, {
+ children: /* @__PURE__ */ (0, L.jsx)(IL, {
candidate: e,
selectable: !0
})
}, e.candidate_key))
}) : null;
}
-function zue({ genre: e, tags: t, locked: n, toast: r }) {
+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) => eoe(e, t),
+ mutationFn: (t) => Gae(e, t),
onSuccess: async (t, n) => {
if (!t.ok) {
s(t.error || "服务端拒绝了这次收录");
return;
}
- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await noe();
+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await qae();
},
onError: (e) => s(K(e))
}), l = () => {
@@ -44450,16 +45278,16 @@ function zue({ genre: e, tags: t, locked: n, toast: r }) {
className: "text-body-medium text-text-primary",
children: e
}),
- /* @__PURE__ */ (0, L.jsx)(Nj, {
+ /* @__PURE__ */ (0, L.jsx)(Lj, {
"aria-label": `「${e}」收录成的中文标签`,
value: i,
onChange: a,
maxLength: 40,
isDisabled: n || c.isPending,
className: "min-w-40 flex-1",
- children: /* @__PURE__ */ (0, L.jsx)(Fj, {
+ children: /* @__PURE__ */ (0, L.jsx)(zj, {
size: "small",
- list: t.length ? pL : void 0,
+ list: t.length ? FL : void 0,
autoComplete: "off",
placeholder: "中文标签",
onKeyDown: (e) => {
@@ -44491,8 +45319,8 @@ function zue({ genre: e, tags: t, locked: n, toast: r }) {
]
});
}
-function Bue({ row: e, tags: t, locked: n, toast: r }) {
- let i = Zae(e);
+function lde({ row: e, tags: t, locked: n, toast: r }) {
+ let i = _k(e);
return i.length ? /* @__PURE__ */ (0, L.jsxs)("div", {
role: "group",
"aria-label": "未收录 genre",
@@ -44500,7 +45328,7 @@ function Bue({ 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)(zue, {
+ }), i.map((e) => /* @__PURE__ */ (0, L.jsx)(cde, {
genre: e,
tags: t,
locked: n,
@@ -44510,9 +45338,9 @@ function Bue({ row: e, tags: t, locked: n, toast: r }) {
}
//#endregion
//#region src/react/review/review-evidence.tsx
-var hL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Vue = (e = "") => hL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
-function gL({ url: e }) {
- let t = Vue(e || ""), [n, r] = (0, I.useState)(!1);
+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);
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", {
@@ -44527,7 +45355,7 @@ function gL({ url: e }) {
})
});
}
-function _L({ asset: e, openItem: t }) {
+function zL({ 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",
@@ -44543,7 +45371,7 @@ function _L({ asset: e, openItem: t }) {
}) : /* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: "无封面"
- }), /* @__PURE__ */ (0, L.jsx)(W_, { children: `打开原视频 ${n}` })]
+ }), /* @__PURE__ */ (0, L.jsx)(q_, { children: `打开原视频 ${n}` })]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col items-start gap-1",
children: [/* @__PURE__ */ (0, L.jsx)("b", {
@@ -44553,21 +45381,21 @@ function _L({ asset: e, openItem: t }) {
}), /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
size: "small",
- leadingIcon: hne,
+ leadingIcon: TS,
onClick: () => t(e.id),
children: "打开原视频"
})]
})]
});
}
-function Hue({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
+function dde({ 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 ${RI}`,
+ 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}`,
dangerouslySetInnerHTML: { __html: r }
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 flex-col items-start",
@@ -44583,8 +45411,8 @@ function Hue({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {
})]
});
}
-function Uue({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {
- let o = hL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));
+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));
return /* @__PURE__ */ (0, L.jsxs)("section", {
className: "flex flex-col gap-3",
children: [
@@ -44594,10 +45422,10 @@ function Uue({ 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)(fw, {
+ children: [o ? /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "secondary",
size: "small",
- trailingIcon: fS,
+ trailingIcon: mS,
href: o,
target: "_blank",
rel: "noopener noreferrer",
@@ -44609,7 +45437,7 @@ function Uue({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
children: `查看全部 ${c.toLocaleString()} 部作品`
})]
}),
- /* @__PURE__ */ (0, L.jsx)(gL, { url: e.preview_url }),
+ /* @__PURE__ */ (0, L.jsx)(RL, { url: e.preview_url }),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "通过后记录身份判断。"
@@ -44652,7 +45480,7 @@ function Uue({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no
]
});
}
-function Wue({ assets: e, picked: t, onPicked: n, locked: r }) {
+function pde({ 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);
@@ -44708,7 +45536,7 @@ function Wue({ assets: e, picked: t, onPicked: n, locked: r }) {
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "absolute top-1 right-1",
- children: /* @__PURE__ */ (0, L.jsx)(pj, {
+ children: /* @__PURE__ */ (0, L.jsx)(_j, {
size: "sm",
state: {
isSelected: n,
@@ -44719,7 +45547,7 @@ function Wue({ assets: e, picked: t, onPicked: n, locked: r }) {
}
})
}),
- /* @__PURE__ */ (0, L.jsx)(W_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
+ /* @__PURE__ */ (0, L.jsx)(q_, { children: `${n ? "已选" : "未选"} ${e.name || e.id}` })
]
}, e.id);
})
@@ -44728,19 +45556,19 @@ function Wue({ assets: e, picked: t, onPicked: n, locked: r }) {
}
//#endregion
//#region src/react/review/review-card.tsx
-var Gue = Cw({
+var mde = Nw({
variant: "outlined",
padding: "none",
className: "flex flex-col gap-4 px-5 pt-4"
-}), vL = "flex min-h-6 min-w-0 items-center", Kue = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";
-function que(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 = dO(), h = dO(), g = t === "metadata_fields", _ = $O[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = Jae(t, n), x = ck(t, n), S = sk(t, n), C = Yae(n), w = Xae(n), T = ok(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", {
+}), 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", {
className: "flex flex-col gap-3",
- children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(_L, {
+ children: E.map((e) => /* @__PURE__ */ (0, L.jsx)(zL, {
asset: e,
openItem: f.openItem
}, e.id))
- }) : y ? /* @__PURE__ */ (0, L.jsx)(Hue, {
+ }) : y ? /* @__PURE__ */ (0, L.jsx)(dde, {
kind: _,
name: v,
works: Number(n.video_count || n.videos || 0),
@@ -44750,14 +45578,14 @@ function que(e) {
has_image: !!n.has_image,
avatar_focus: n.avatar_focus
} : null, null, _)
- }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(_L, {
+ }) : n.asset_id ? /* @__PURE__ */ (0, L.jsx)(zL, {
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)(Rue, {
+ }) : null, A = g ? /* @__PURE__ */ (0, L.jsx)(sde, {
row: n,
fieldName: x,
value: r.candidateKey,
@@ -44766,7 +45594,7 @@ function que(e) {
candidateKey: e
}),
locked: s
- }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, L.jsx)(Wue, {
+ }) : t === "creator_tags" ? D.length ? /* @__PURE__ */ (0, L.jsx)(pde, {
assets: D,
picked: r.assets,
locked: s,
@@ -44774,21 +45602,21 @@ function que(e) {
...r,
assets: e
})
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "inset",
- icon: une,
+ icon: bS,
title: "这批作品尚未抽帧",
children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`
- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(Uue, {
+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, L.jsx)(fde, {
row: n,
openItem: f.openItem,
openEntity: f.openEntity,
onReveal: f.onReveal,
revealing: f.revealing,
note: f.revealNote
- }) : /* @__PURE__ */ (0, L.jsx)(gL, { url: n.preview_url }), j = y ? k : x ? /* @__PURE__ */ (0, L.jsxs)("h4", {
- className: `${vL} flex-wrap gap-2`,
- children: [/* @__PURE__ */ (0, L.jsx)(uw, {
+ }) : /* @__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, {
variant: "caption",
color: "blue",
children: x
@@ -44798,7 +45626,7 @@ function que(e) {
children: S
})]
}) : /* @__PURE__ */ (0, L.jsx)("h4", {
- className: vL,
+ className: BL,
children: /* @__PURE__ */ (0, L.jsx)("span", {
title: b,
className: "min-w-0 truncate text-body-medium text-text-primary",
@@ -44808,20 +45636,20 @@ function que(e) {
return /* @__PURE__ */ (0, L.jsxs)("section", {
"aria-label": b,
"data-review-key": n.item_key,
- className: `${Gue} ${Kue(t)} overflow-hidden`,
+ className: `${mde} ${hde(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: `${vL} shrink-0`,
+ className: `${BL} shrink-0`,
onPointerDownCapture: (e) => {
p.current = e.shiftKey;
},
onKeyDownCapture: (e) => {
p.current = e.shiftKey;
},
- children: /* @__PURE__ */ (0, L.jsx)(mj, {
+ children: /* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: a,
"aria-label": `选择 ${b}`,
onChange: (e) => o(p.current, e)
@@ -44831,7 +45659,7 @@ function que(e) {
className: "min-w-0 flex-1",
children: j
}),
- O ? /* @__PURE__ */ (0, L.jsx)(uw, {
+ O ? /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "neutral",
children: n.decision
@@ -44855,7 +45683,7 @@ function que(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)(uw, {
+ children: w.length ? w.map((e) => /* @__PURE__ */ (0, L.jsx)(bw, {
variant: "caption",
color: "soft",
children: e
@@ -44865,7 +45693,7 @@ function que(e) {
})
}) : null,
A,
- /* @__PURE__ */ (0, L.jsx)(Bue, {
+ /* @__PURE__ */ (0, L.jsx)(lde, {
row: n,
tags: u,
locked: s,
@@ -44927,8 +45755,8 @@ function que(e) {
}
//#endregion
//#region src/react/review/review-page.tsx
-var Jue = "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 Yue({ page: e, pages: t, onPage: n }) {
+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 }) {
return t <= 1 ? null : /* @__PURE__ */ (0, L.jsxs)("nav", {
"aria-label": "复核分页",
className: "flex w-full flex-wrap items-center justify-between gap-2",
@@ -44942,7 +45770,7 @@ function Yue({ page: e, pages: t, onPage: n }) {
}),
/* @__PURE__ */ (0, L.jsx)("ul", {
className: "flex flex-wrap items-center gap-1",
- children: GO(e, t).map((t, r) => /* @__PURE__ */ (0, L.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, L.jsx)("span", {
+ 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: "…"
@@ -44965,33 +45793,33 @@ function Yue({ page: e, pages: t, onPage: n }) {
]
});
}
-function Xue(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)(QO(e.category) ? e.category : ZO), [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 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);
(0, I.useEffect)(() => () => {
j.current = !1;
}, []);
let M = Nt({
- queryKey: YO,
- queryFn: ({ signal: e }) => uk(e)
+ queryKey: nk,
+ queryFn: ({ signal: e }) => yk(e)
}).data || {
sections: {},
counts: {}
- }, N = M.sections[u] || [], P = u === "metadata_fields", ee = s, F = ek(N, P), te = F.some(([e]) => e === f) ? f : "candidates", ne = tk(N, te), re = ne.some((e) => e.key === m) ? m : "", ie = rk(nk(N, te, re), g), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({
+ }, 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) => ({
...e,
rows: e.rows.filter((e) => oe.has(e.item_key))
- })).filter((e) => e.rows.length), ce = (e) => b.get(e.item_key) || Qae(e), le = N.filter((e) => v.has(e.item_key)), ue = (e) => {
+ })).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) => {
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 }) => dk(lk(u, e, t, ce(e))),
+ mutationFn: ({ row: e, status: t }) => bk(vk(u, e, t, ce(e))),
onSuccess: (e, { row: t, status: n }) => {
if (!e.ok) {
R(t.item_key, e.error || "服务端拒绝了这次判定");
return;
}
- fk(u, [t.item_key]), ue([t.item_key]), o($ae(n));
+ xk(u, [t.item_key]), ue([t.item_key]), o(Wae(n));
},
onError: (e, { row: t }) => R(t.item_key, K(e))
}), fe = Pt({
@@ -45001,7 +45829,7 @@ function Xue(e) {
if (!j.current) break;
T(`正在处理 ${i} / ${t.length}`);
try {
- let t = await dk(lk(u, a, e, ce(a)));
+ let t = await bk(vk(u, a, e, ce(a)));
if (!t.ok) throw Error(t.error || "服务端未采用该项");
n.push(a.item_key);
} catch (e) {
@@ -45015,7 +45843,7 @@ function Xue(e) {
};
},
onSuccess: ({ status: e, done: t, failures: n }) => {
- fk(u, t), ue(t), n.forEach(([e, t]) => R(e, t)), T(""), o(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));
+ xk(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));
@@ -45045,7 +45873,7 @@ function Xue(e) {
O(e), A("");
let t = await i(e);
j.current && (O(0), A(t));
- }, ge = roe(M.mirror, c), _e = M.genre_tags || [], ve = {
+ }, ge = Jae(M.mirror, c), _e = M.genre_tags || [], ve = {
openItem: n,
openEntity: r,
onReveal: he,
@@ -45054,7 +45882,7 @@ function Xue(e) {
avatarInner: a,
toast: o
};
- return /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {
+ return /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-5 pb-10",
children: [
ee ? /* @__PURE__ */ (0, L.jsx)(J, {
@@ -45070,12 +45898,12 @@ function Xue(e) {
}) : void 0,
children: ge
}) : null,
- /* @__PURE__ */ (0, L.jsx)(Lue, { tags: _e }),
- /* @__PURE__ */ (0, L.jsxs)(JD, {
+ /* @__PURE__ */ (0, L.jsx)(ode, { tags: _e }),
+ /* @__PURE__ */ (0, L.jsxs)(rO, {
selectedKey: u,
onSelectionChange: (e) => {
let t = String(e);
- QO(t) && z(t);
+ ik(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", {
@@ -45084,26 +45912,26 @@ function Xue(e) {
id: "reviewcategories",
className: "px-3 pb-3 text-caption-1-regular text-text-secondary",
children: "复核分类"
- }), /* @__PURE__ */ (0, L.jsx)(YD, {
+ }), /* @__PURE__ */ (0, L.jsx)(iO, {
"aria-labelledby": "reviewcategories",
className: "flex flex-wrap gap-1 review-split:flex-col review-split:flex-nowrap review-split:items-stretch",
- children: qae.map((e) => {
+ children: Bae.map((e) => {
let t = Number(M.counts[e] || 0);
- return /* @__PURE__ */ (0, L.jsxs)(XD, {
+ return /* @__PURE__ */ (0, L.jsxs)(aO, {
id: e,
- className: Jue,
- children: [XO[e], t ? /* @__PURE__ */ (0, L.jsx)("span", {
+ className: _de,
+ children: [rk[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)(ZD, {
+ }), /* @__PURE__ */ (0, L.jsxs)(oO, {
id: u,
className: "flex min-w-0 flex-1 flex-col gap-5",
children: [
- N.length && !ee ? /* @__PURE__ */ (0, L.jsx)(Fue, {
+ N.length && !ee ? /* @__PURE__ */ (0, L.jsx)(ide, {
groupOptions: F,
groupBy: te,
onGroupBy: (e) => {
@@ -45119,7 +45947,7 @@ function Xue(e) {
onSelected: y,
selectedRows: le,
metadata: P,
- approvable: le.every((e) => ok(u, e)),
+ approvable: le.every((e) => dk(u, e)),
busy: fe.isPending,
feedback: w,
onUnifySource: me,
@@ -45144,7 +45972,7 @@ function Xue(e) {
})]
}) : null, /* @__PURE__ */ (0, L.jsx)("div", {
className: "review-grid gap-5",
- children: e.rows.map((e) => /* @__PURE__ */ (0, L.jsx)(que, {
+ children: e.rows.map((e) => /* @__PURE__ */ (0, L.jsx)(gde, {
category: u,
row: e,
choice: ce(e),
@@ -45152,7 +45980,7 @@ function Xue(e) {
selected: v.has(e.item_key),
onSelect: (t, n) => y((r) => {
let i = new Set(r);
- return E.current = ak(i, ae, E.current, e.item_key, t, n), i;
+ return E.current = uk(i, ae, E.current, e.item_key, t, n), i;
}),
locked: ee,
busy: de.isPending && de.variables?.row.item_key === e.item_key,
@@ -45167,12 +45995,12 @@ function Xue(e) {
handlers: ve
}, e.item_key))
})]
- }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Tw, {
- icon: one,
+ }, e.key)) : /* @__PURE__ */ (0, L.jsx)(Fw, {
+ icon: ine,
title: "暂无候选",
children: "该分类当前没有待人工复核的项目。"
}),
- /* @__PURE__ */ (0, L.jsx)(Yue, {
+ /* @__PURE__ */ (0, L.jsx)(vde, {
page: ie.page,
pages: ie.pages,
onPage: _
@@ -45185,30 +46013,30 @@ function Xue(e) {
}
//#endregion
//#region src/react/scraping/scraping.ts
-var Zue = "/api/scraping", Que = "/api/scraping/settings", $ue = "/api/scraping/check", yL = "/api/scraping/cover", ede = "/api/scraping/amane-bridge", tde = "/api/scraping/amane-bridge/check", nde = "/api/scraping/amane-bridge/rebuild", bL = ["scraping"], xL = ["scraping", "cover"], SL = ["scraping", "amane-bridge"], CL = (e) => hw(Zue, e), wL = (e) => hw(yL, e), TL = (e) => hw(ede, e);
-async function rde(e) {
+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) {
await Promise.all([
X.fetchQuery({
- queryKey: bL,
- queryFn: () => CL(e)
+ queryKey: HL,
+ queryFn: () => GL(e)
}),
X.fetchQuery({
- queryKey: xL,
- queryFn: () => wL(e)
+ queryKey: UL,
+ queryFn: () => KL(e)
}),
X.fetchQuery({
- queryKey: SL,
- queryFn: () => TL(e)
+ queryKey: WL,
+ queryFn: () => qL(e)
})
]);
}
-function ide(e, t) {
+function Dde(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 ade = [["peach", "Peach 代理"], ["direct", "直接连接"]], EL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function ode({ source: e }) {
+var Ode = [["peach", "Peach 代理"], ["direct", "直接连接"]], JL = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function kde({ source: e }) {
return /* @__PURE__ */ (0, L.jsx)("img", {
src: p({ source: e }),
alt: "",
@@ -45219,13 +46047,13 @@ function ode({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function sde({ 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)(EL[0][0]), [u, d] = (0, I.useState)(""), [f, p] = (0, I.useState)(""), m = (0, I.useRef)(null);
+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 h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = Pt({
- mutationFn: (t) => q(Que, {
+ mutationFn: (t) => q(xde, {
source: e.source,
network: n,
cookie: i,
@@ -45233,12 +46061,12 @@ function sde({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- X.setQueryData(bL, (t) => t && {
+ X.setQueryData(HL, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = Pt({ mutationFn: () => q($ue, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = Pt({ mutationFn: () => q(Sde, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -45263,40 +46091,40 @@ function sde({ 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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
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)(ode, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(LA, {
+ children: [/* @__PURE__ */ (0, L.jsx)(kde, { source: e.source }), /* @__PURE__ */ (0, L.jsx)(VA, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, L.jsx)(jA, { children: /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(FA, { children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: "连接方式",
- children: /* @__PURE__ */ (0, L.jsx)(rj, {
+ children: /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: ade.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: Ode.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: t
}, e))
})
}) }),
- T ? /* @__PURE__ */ (0, L.jsxs)(MA, {
+ T ? /* @__PURE__ */ (0, L.jsxs)(IA, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, L.jsx)(vA, {
+ children: /* @__PURE__ */ (0, L.jsx)(SA, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: iS,
+ trailingIcon: oS,
children: "配置 Peach 代理"
})
}) : null,
@@ -45309,20 +46137,20 @@ function sde({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, L.jsx)(yD, {
+ /* @__PURE__ */ (0, L.jsx)(OD, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
- className: jM,
- children: EL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(bD, {
+ className: IM,
+ children: JL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(kD, {
value: e,
- className: MM,
+ className: LM,
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, L.jsx)(Ij, {
+ c === "paste" ? /* @__PURE__ */ (0, L.jsx)(Bj, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -45331,7 +46159,7 @@ function sde({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(IA, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, L.jsx)(BA, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
@@ -45357,14 +46185,14 @@ function sde({ source: e, toast: t }) {
]
})
] }) : null,
- C ? /* @__PURE__ */ (0, L.jsx)(FA, { children: C }) : null,
+ C ? /* @__PURE__ */ (0, L.jsx)(zA, { children: C }) : null,
w.map((t) => /* @__PURE__ */ (0, L.jsx)(J, {
tone: t.ok ? "success" : "error",
- children: ide(t, e.label)
+ children: Dde(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(NA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(LA, { children: [
e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: b,
@@ -45386,26 +46214,26 @@ function sde({ source: e, toast: t }) {
]
});
}
-function cde({ toast: e }) {
- let [t, n] = (0, I.useState)(""), { running: r, outcome: i, start: a } = cj({
- queryKey: xL,
- queryFn: ({ signal: e }) => wL(e),
- start: () => q(yL, { code: 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 }),
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)(AA, {
+ return /* @__PURE__ */ (0, L.jsx)(PA, {
title: "高清封面",
onSubmit: o,
- children: /* @__PURE__ */ (0, L.jsxs)(MA, { children: [
+ children: /* @__PURE__ */ (0, L.jsxs)(IA, { 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)(Ij, {
+ children: /* @__PURE__ */ (0, L.jsx)(Bj, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: r,
@@ -45420,7 +46248,7 @@ function cde({ toast: e }) {
children: "抓取封面"
})]
}),
- r ? /* @__PURE__ */ (0, L.jsx)(Ew, { label: "正在抓取封面" }) : null,
+ r ? /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在抓取封面" }) : null,
s ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: s
@@ -45432,11 +46260,11 @@ function cde({ toast: e }) {
] })
});
}
-function lde({ toast: e }) {
- let { query: t, running: n, outcome: r, start: i } = cj({
- queryKey: SL,
- queryFn: ({ signal: e }) => TL(e),
- start: () => q(nde, {}),
+function Mde({ toast: e }) {
+ let { query: t, running: n, outcome: r, start: i } = fj({
+ queryKey: WL,
+ queryFn: ({ signal: e }) => qL(e),
+ start: () => q(Tde, {}),
jobOf: (e) => e.job,
withJob: (e, t) => e && {
...e,
@@ -45445,49 +46273,49 @@ function lde({ toast: e }) {
onFinish: (t) => {
t.status === "complete" && e(t.result || "amane 桥已重建");
}
- }), a = Pt({ mutationFn: () => q(tde, {}) }), o = t.data;
- if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(AA, {
+ }), a = Pt({ mutationFn: () => q(wde, {}) }), o = t.data;
+ if (!o) return t.error ? /* @__PURE__ */ (0, L.jsx)(PA, {
title: "amane 桥",
- children: /* @__PURE__ */ (0, L.jsx)(MA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)(IA, { 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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "amane 桥",
- aside: /* @__PURE__ */ (0, L.jsx)(LA, {
+ aside: /* @__PURE__ */ (0, L.jsx)(VA, {
href: o.repository,
children: o.repository
}),
children: [
- /* @__PURE__ */ (0, L.jsxs)(RA, { children: [
- /* @__PURE__ */ (0, L.jsxs)(zA, {
+ /* @__PURE__ */ (0, L.jsxs)(HA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(UA, {
term: "钉住的版本",
children: [o.version ? `${o.version} · ` : "", o.revision.slice(0, 12)]
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "上游最新版本",
children: a.data?.latest ?? "尚未检查"
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "运行环境",
children: o.installed ? "已安装" : "未安装"
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "开放的站",
children: o.sites.map((e) => e.label).join("、")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)(MA, {
+ /* @__PURE__ */ (0, L.jsxs)(IA, {
divided: !0,
children: [
- /* @__PURE__ */ (0, L.jsxs)(PA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(RA, { children: [
"这几站由 amane(",
o.license,
")的解析器经独立子进程回答,运行环境按钉住的版本单独安装, 不随上游自动升级;换版本要人读过上游改动再改清单。首次安装约需下载 98 MB。"
] }),
- n ? /* @__PURE__ */ (0, L.jsx)(Ew, { label: "正在重建运行环境" }) : null,
+ n ? /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在重建运行环境" }) : null,
c ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: c
@@ -45498,7 +46326,7 @@ function lde({ toast: e }) {
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(NA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsxs)(LA, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
variant: "secondary",
onClick: () => {
s || a.mutate();
@@ -45515,23 +46343,23 @@ function lde({ toast: e }) {
]
});
}
-function ude({ toast: e }) {
+function Nde({ toast: e }) {
let t = Nt({
- queryKey: bL,
- queryFn: ({ signal: e }) => CL(e)
+ queryKey: HL,
+ queryFn: ({ signal: e }) => GL(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, L.jsxs)(Dw, { children: [
+ return n ? /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能要经代理才能下载,先检查连接。"
}),
- /* @__PURE__ */ (0, L.jsx)(cde, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, L.jsx)(sde, {
+ /* @__PURE__ */ (0, L.jsx)(jde, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, L.jsx)(Ade, {
source: t,
toast: e
}, t.source)),
- /* @__PURE__ */ (0, L.jsx)(lde, { toast: e })
- ] }) : /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ /* @__PURE__ */ (0, L.jsx)(Mde, { toast: e })
+ ] }) : /* @__PURE__ */ (0, L.jsx)(Lw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "读取失败",
children: t.error ? K(t.error) : "读取采集来源失败"
@@ -45539,21 +46367,21 @@ function ude({ toast: e }) {
}
//#endregion
//#region src/configuration-endpoints.ts
-var DL = "/api/configuration", dde = "/api/pick-folder", OL = ["configuration"], kL = (e) => hw(DL, e);
-async function AL(e) {
+var YL = "/api/configuration", Pde = "/api/pick-folder", XL = ["configuration"], ZL = (e) => Tw(YL, e);
+async function QL(e) {
await X.fetchQuery({
- queryKey: OL,
- queryFn: () => kL(e)
+ queryKey: XL,
+ queryFn: () => ZL(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 = jw(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {
+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 ? {
...n,
host: t
} : n));
- return /* @__PURE__ */ (0, L.jsxs)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "外部入口",
onSubmit: (e) => {
e.preventDefault();
@@ -45562,9 +46390,9 @@ function fde({ initial: e, receipt: t }) {
r(e.sites), t("已保存配置");
});
},
- children: [/* @__PURE__ */ (0, L.jsxs)(MA, { children: [
- /* @__PURE__ */ (0, L.jsx)(PA, { children: "账本里没有这个站点 id 的人物不显示它那一枚入口,地址不会退回站内搜索。 JavDB 与 MISSAV 只收 JAV 女优,这两枚还要账本里有哪个 JAV 目录站给过她 id 才出现; FC2 个人摄那类创作者没有这种 id,资料页上也就没有这一行。 这两站的主域名连不上时,把能打开的那个镜像域名填在下面,后面的路径由 Peach 自己拼。" }),
- n.map((e) => /* @__PURE__ */ (0, L.jsx)(Ij, {
+ 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, {
id: `entry-link-${e.key}`,
label: `${e.label} 地址`,
autoComplete: "off",
@@ -45575,8 +46403,8 @@ function fde({ initial: e, receipt: t }) {
validationBehavior: "aria",
hint: "只写域名本身,留空就是默认"
}, e.key)),
- i.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: i.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(NA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ i.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: i.error }) : null
+ ] }), /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(i.busy === "save"),
children: "保存配置"
@@ -45585,21 +46413,21 @@ function fde({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function pde({ data: e, receipt: t }) {
+function Ide({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(mde, {
+ children: [e.startup ? /* @__PURE__ */ (0, L.jsx)(Lde, {
startup: e.startup,
receipt: t
- }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(fde, {
+ }) : null, e.entry_links ? /* @__PURE__ */ (0, L.jsx)(Fde, {
initial: e.entry_links,
receipt: t
}) : null]
});
}
-function mde({ 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 = jw(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, L.jsxs)(AA, {
+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, {
title: "开机自启",
onSubmit: (r) => {
r.preventDefault(), e.available && c.run("save", (e) => q("/api/configuration/startup", {
@@ -45609,30 +46437,30 @@ function mde({ startup: e, receipt: t }) {
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsxs)(FA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "静默启动",
description: "开机后只显示托盘图标,不打开网页;「开机后启动 Peach」打开时生效。",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -45640,11 +46468,11 @@ function mde({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(MA, {
+ e.message || c.error ? /* @__PURE__ */ (0, L.jsxs)(IA, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, L.jsx)(PA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, L.jsx)(RA, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(NA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(c.busy === "save"),
@@ -45655,23 +46483,23 @@ function mde({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var jL = /* @__PURE__ */ new Set([
+var $L = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), hde = [
+]), Rde = [
65,
67,
90
-], ML = 120;
-function gde({ initial: e, initialJob: t }) {
+], eR = 120;
+function zde({ 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 = jw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = jL.has(i.state);
+ }), [o, s] = (0, I.useState)(""), c = Bw(), l = (0, I.useRef)(!1), u = (0, I.useRef)(!0), d = $L.has(i.state);
(0, I.useEffect)(() => (u.current = !0, () => {
u.current = !1;
}), []);
@@ -45688,9 +46516,9 @@ function gde({ 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 = jL.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
+ let e = new AbortController(), t = $L.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {
try {
- let t = await hw("/api/configuration/update-status", e.signal);
+ let t = await Tw("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -45698,12 +46526,12 @@ function gde({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await hw("/api/configuration/automatic-updates", e.signal);
+ let n = await Tw("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= ML && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= eR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < ML && (n = setTimeout(c, t));
+ !e.signal.aborted && o < eR && (n = setTimeout(c, t));
};
return n = setTimeout(c, t), () => {
e.abort(), clearTimeout(n);
@@ -45711,63 +46539,63 @@ function gde({ 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) => hw("/api/configuration/updates", e), r, (t) => {
+ }, h = () => void c.run("check", (e) => Tw("/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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, L.jsxs)(RA, { children: [
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsxs)(HA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, L.jsxs)(MA, {
+ /* @__PURE__ */ (0, L.jsxs)(IA, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(PA, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.checked_at ? /* @__PURE__ */ (0, L.jsxs)(RA, { 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)(FA, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(PA, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, L.jsx)(zA, { children: _ || n.message }) : /* @__PURE__ */ (0, L.jsx)(RA, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(FA, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, L.jsx)(zA, { 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)(Aw, {
+ /* @__PURE__ */ (0, L.jsx)(zw, {
label: "更新准备进度",
value: i.progress,
- stops: hde
+ stops: Rde
}),
- /* @__PURE__ */ (0, L.jsxs)(PA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, L.jsx)(PA, { children: v })
+ /* @__PURE__ */ (0, L.jsxs)(RA, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, L.jsx)(RA, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(NA, {
- status: /* @__PURE__ */ (0, L.jsx)(LA, {
+ /* @__PURE__ */ (0, L.jsxs)(LA, {
+ status: /* @__PURE__ */ (0, L.jsx)(VA, {
href: n.release_url,
children: "查看发布页"
}),
@@ -45794,98 +46622,98 @@ function gde({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var _de = [
+var Bde = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function vde({ data: e, receipt: t, reopenTutorial: n }) {
+function Vde({ 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)(bde, {
+ e.automatic_updates ? /* @__PURE__ */ (0, L.jsx)(Ude, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, L.jsx)(gde, {
+ e.updates ? /* @__PURE__ */ (0, L.jsx)(zde, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, L.jsx)(xde, { facts: e.facts }),
- /* @__PURE__ */ (0, L.jsx)(yde, {
+ /* @__PURE__ */ (0, L.jsx)(Wde, { facts: e.facts }),
+ /* @__PURE__ */ (0, L.jsx)(Hde, {
receipt: t,
reopenTutorial: n
}),
- e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Sde, {
+ e.uninstall ? /* @__PURE__ */ (0, L.jsx)(Gde, {
uninstall: e.uninstall,
receipt: t
}) : null
]
});
}
-function yde({ receipt: e, reopenTutorial: t }) {
- let n = jw();
- return /* @__PURE__ */ (0, L.jsxs)(AA, {
+function Hde({ receipt: e, reopenTutorial: t }) {
+ let n = Bw();
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "安装教程",
- children: [/* @__PURE__ */ (0, L.jsxs)(MA, { children: [/* @__PURE__ */ (0, L.jsx)(PA, { children: "关掉的安装教程从这里叫回来:跳过的项目会重新出现,做完的仍然算完成。" }), n.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: n.error }) : null] }), /* @__PURE__ */ (0, L.jsx)(NA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ 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, {
onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),
...Y(n.busy === "reopen"),
children: "重新打开教程"
}) })]
});
}
-function bde({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e.mode), [i, a] = (0, I.useState)(e.interval_hours), o = jw(e.error), s = (r) => {
+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) => {
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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, L.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsxs)(FA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, L.jsx)(rj, {
+ children: /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: _de.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: Bde.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, L.jsx)(MA, {
+ o.error ? /* @__PURE__ */ (0, L.jsx)(IA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(FA, { children: o.error })
+ children: /* @__PURE__ */ (0, L.jsx)(zA, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(NA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
disabled: !e.available,
...Y(o.busy === "save"),
@@ -45894,19 +46722,19 @@ function bde({ initial: e, receipt: t }) {
]
});
}
-function xde({ facts: e }) {
- return /* @__PURE__ */ (0, L.jsx)(AA, {
+function Wde({ facts: e }) {
+ return /* @__PURE__ */ (0, L.jsx)(PA, {
title: "运行信息",
- children: /* @__PURE__ */ (0, L.jsx)(RA, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(zA, {
+ children: /* @__PURE__ */ (0, L.jsx)(HA, { children: e.map((e) => /* @__PURE__ */ (0, L.jsxs)(UA, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(LA, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, L.jsx)(VA, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function Sde({ uninstall: e, receipt: t }) {
+function Gde({ uninstall: e, receipt: t }) {
let [n, r] = (0, I.useState)(!1), [i, a] = (0, I.useState)(""), o = () => void g({
title: "卸载 Peach",
danger: !0,
@@ -45920,26 +46748,26 @@ function Sde({ 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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, L.jsxs)(MA, { children: [
- e.available ? /* @__PURE__ */ (0, L.jsx)(PA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, L.jsx)(mj, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [
+ e.available ? /* @__PURE__ */ (0, L.jsx)(RA, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: n,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, L.jsx)(BA, {
+ /* @__PURE__ */ (0, L.jsx)(WA, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(DA, {
+ children: c.map((e) => /* @__PURE__ */ (0, L.jsx)(jA, {
path: e,
className: "text-body-2-regular text-text-secondary",
onRevealed: t
}, e))
})
- ] }), /* @__PURE__ */ (0, L.jsx)(NA, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(LA, {
status: s ? /* @__PURE__ */ (0, L.jsx)("p", {
role: i ? "status" : void 0,
children: s
@@ -45955,7 +46783,7 @@ function Sde({ uninstall: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var Cde = [
+var Kde = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -45974,32 +46802,32 @@ var Cde = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], wde = [
+], qde = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function Tde() {
+function Jde() {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, L.jsxs)(PA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(LA, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(RA, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, L.jsx)(VA, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, L.jsxs)(BA, {
+ })] }), /* @__PURE__ */ (0, L.jsxs)(WA, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, L.jsx)(PA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
+ /* @__PURE__ */ (0, L.jsx)(RA, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,按实际播放表现再调。" }),
/* @__PURE__ */ (0, L.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Cde.map((e) => /* @__PURE__ */ (0, L.jsxs)("li", {
+ children: Kde.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: wde.map(([t, n]) => /* @__PURE__ */ (0, L.jsxs)("div", {
+ children: qde.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",
@@ -46020,9 +46848,9 @@ function Tde() {
/* @__PURE__ */ (0, L.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, L.jsxs)(PA, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(RA, { children: [
"三处缓存的分工、往上调的方法和这些起步值的来源在",
- /* @__PURE__ */ (0, L.jsx)(LA, {
+ /* @__PURE__ */ (0, L.jsx)(VA, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -46034,7 +46862,7 @@ function Tde() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var NL = [
+var tR = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -46078,13 +46906,13 @@ var NL = [
["star", "收藏"],
["tags", "主题"]
];
-function Ede(e) {
+function Yde(e) {
let t = e === "local" ? "" : m[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var PL = "auto";
-function Dde({ 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] = Ede(n);
+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);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(G, {
ref: i,
variant: "secondary",
@@ -46098,35 +46926,35 @@ function Dde({ 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)(HA, { mark: e || l }), ((e) => e && NL.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: e || l }), ((e) => e && tR.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ }), /* @__PURE__ */ (0, L.jsx)(uD, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: yA,
- children: /* @__PURE__ */ (0, L.jsxs)(fD, {
+ className: CA,
+ children: /* @__PURE__ */ (0, L.jsxs)(xD, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, L.jsx)(IT, {
+ /* @__PURE__ */ (0, L.jsx)(GT, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, L.jsx)(yD, {
+ /* @__PURE__ */ (0, L.jsx)(OD, {
"aria-label": "候选图标",
- value: s || PL,
- onChange: (e) => c(e === PL ? "" : e),
+ value: s || nR,
+ onChange: (e) => c(e === nR ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: NL.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(bD, {
- value: e || PL,
+ children: tR.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(kD, {
+ value: e || nR,
"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)(HA, { mark: e || l })
- }, e || PL))
+ children: /* @__PURE__ */ (0, L.jsx)(KA, { mark: e || l })
+ }, e || nR))
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
@@ -46148,15 +46976,15 @@ function Dde({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/push-discovery-settings.tsx
-var Ode = "/api/configuration/push-discovery", kde = "/api/configuration/push-discovery/secret";
-function Ade({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.prefixes), [o, s] = (0, I.useState)(""), c = jw(), l = dO(), u = n.media_roots, [d, f] = (0, I.useState)(e), p = (e, n) => {
+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) => {
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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "推送发现",
onSubmit: (e) => {
e.preventDefault();
@@ -46166,14 +46994,14 @@ function Ade({ initial: e, receipt: t }) {
cloud: n.cloud,
prefixes: i
};
- c.run("save", (e) => q(Ode, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
+ c.run("save", (e) => q(Zde, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(K(e)));
},
children: [
- /* @__PURE__ */ (0, L.jsxs)(jA, { children: [
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsxs)(FA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "新文件落地就入库",
description: "打开之后不必等下一轮扫描。定期全量扫描照常进行,漏掉的由它补上。",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "新文件落地就入库",
isSelected: n.enabled,
isDisabled: !n.available,
@@ -46183,10 +47011,10 @@ function Ade({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "监视本机文件夹",
description: "订阅本地来源的文件系统事件。网盘挂载不监视,因为遍历它就是走网络。",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "监视本机文件夹",
isSelected: n.watch_local,
isDisabled: !n.available || !n.enabled,
@@ -46196,10 +47024,10 @@ function Ade({ initial: e, receipt: t }) {
})
})
}),
- /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(NA, {
label: "接收 CloudDrive2 通知",
description: "由 CloudDrive2 把网盘里的新文件推给 Peach。只接受本机与局域网发来的请求。",
- children: /* @__PURE__ */ (0, L.jsx)(eO, {
+ children: /* @__PURE__ */ (0, L.jsx)(lO, {
"aria-label": "接收 CloudDrive2 通知",
isSelected: n.cloud,
isDisabled: !n.available || !n.enabled,
@@ -46210,30 +47038,30 @@ function Ade({ initial: e, receipt: t }) {
})
})
] }),
- d.enabled ? /* @__PURE__ */ (0, L.jsx)(MA, {
+ d.enabled ? /* @__PURE__ */ (0, L.jsx)(IA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsxs)(RA, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(zA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(HA, { children: [d.watch_local ? /* @__PURE__ */ (0, L.jsx)(UA, {
term: "本机文件夹监视",
children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"
- }) : null, /* @__PURE__ */ (0, L.jsx)(zA, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(UA, {
term: "已入库",
children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`
})] })
}) : null,
- d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(MA, {
+ d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(IA, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(IA, { children: "CloudDrive2 配置内容" }),
- /* @__PURE__ */ (0, L.jsx)(PA, { children: "在 CloudDrive2 的「设置 → Webhooks」里添加一条,把这段配置贴进去保存。 地址、端点和密钥都已经填好了;换过密钥之后要重新贴一次。 Webhook 是 CloudDrive2 的会员功能:不是会员时列表照样显示有效,但一条都不会发出来。 Windows 桌面版的编辑框会把换行存坏,列表里标「无效」:那就把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" }),
+ /* @__PURE__ */ (0, L.jsx)(BA, { children: "CloudDrive2 配置内容" }),
+ /* @__PURE__ */ (0, L.jsx)(RA, { 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)(BA, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(WA, {
summary: "查看这段配置",
children: /* @__PURE__ */ (0, L.jsx)("div", {
className: "relative",
@@ -46244,17 +47072,17 @@ function Ade({ initial: e, receipt: t }) {
children: d.config_toml
})
})
- })] }) : /* @__PURE__ */ (0, L.jsx)(PA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
+ })] }) : /* @__PURE__ */ (0, L.jsx)(RA, { children: d.origin ? "还没有生成共享密钥,保存一次配置就会有。" : "这台机器还没有对外的 HTTPS 地址,配置里的地址填不出来。CloudDrive2 只能推到 HTTPS:80 口那条服务对写请求回的是 426,不会替它转发。" })
]
})
}) : null,
- n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(MA, {
+ n.enabled && n.cloud ? /* @__PURE__ */ (0, L.jsx)(IA, {
divided: !0,
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(IA, { children: "云端路径前缀" }),
- /* @__PURE__ */ (0, L.jsx)(PA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
+ /* @__PURE__ */ (0, L.jsx)(BA, { children: "云端路径前缀" }),
+ /* @__PURE__ */ (0, L.jsx)(RA, { children: "左边填 CloudDrive2 里看到的那一层目录,右边选它对应哪个媒体根。 CloudDrive2 给的是它自己的路径,Peach 按这张表换算成账本里的盘符路径。" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "云端路径前缀",
@@ -46262,7 +47090,7 @@ function Ade({ 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)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
className: "min-w-0 flex-1",
"aria-label": `云端路径前缀 ${t + 1}`,
placeholder: "/115",
@@ -46271,19 +47099,19 @@ function Ade({ initial: e, receipt: t }) {
value: e.prefix,
onChange: (e) => m(t, { prefix: e })
}),
- /* @__PURE__ */ (0, L.jsx)(rj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": `前缀 ${t + 1} 对应的媒体根`,
selectedKey: e.root,
onSelectionChange: (e) => {
e !== null && m(t, { root: String(e) });
},
- children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: u.map((e) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: e
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
- icon: cS,
+ /* @__PURE__ */ (0, L.jsx)(cO, {
+ icon: uS,
"aria-label": "移除这一条",
onClick: () => a((e) => e.filter((e, n) => n !== t))
})
@@ -46301,15 +47129,15 @@ function Ade({ initial: e, receipt: t }) {
]
})
}) : null,
- o || c.error ? /* @__PURE__ */ (0, L.jsx)(MA, {
+ o || c.error ? /* @__PURE__ */ (0, L.jsx)(IA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(FA, { children: o || c.error })
+ children: /* @__PURE__ */ (0, L.jsx)(zA, { children: o || c.error })
}) : null,
- /* @__PURE__ */ (0, L.jsxs)(NA, {
+ /* @__PURE__ */ (0, L.jsxs)(LA, {
status: d.enabled && d.cloud ? "换过密钥之后,CloudDrive2 那一侧要重新贴一次配置,否则它推来的一律被拒。" : void 0,
children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => {
- c.run("secret", (e) => q(kde, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
+ c.run("secret", (e) => q(Qde, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(K(e)));
},
disabled: !n.available,
...Y(c.busy === "secret"),
@@ -46326,8 +47154,8 @@ function Ade({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var jde = 8e3;
-function Mde({ className: e }) {
+var efe = 8e3;
+function tfe({ className: e }) {
return /* @__PURE__ */ (0, L.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -46340,33 +47168,33 @@ function Mde({ className: e }) {
children: /* @__PURE__ */ (0, L.jsx)("use", { href: "#i-folder-search" })
});
}
-var FL = [
+var rR = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Nde = (e) => FL.find(([t]) => t === e)?.[1] ?? e, IL = (e) => m[e] || "database", LL = (e = "") => ({
+], nfe = (e) => rR.find(([t]) => t === e)?.[1] ?? e, iR = (e) => m[e] || "database", aR = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Pde(e) {
- let t = e.media_sources?.filter((e) => FL.some(([t]) => t === e.location));
+function rfe(e) {
+ let t = e.media_sources?.filter((e) => rR.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) => LL(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => aR(e));
}
-var Fde = (e) => !(e instanceof pw) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Ide({ data: e, receipt: t }) {
+var ife = (e) => !(e instanceof Cw) || e.status !== 400 ? null : e.body?.errors ?? null;
+function afe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.editable ? /* @__PURE__ */ (0, L.jsx)(Lde, {
+ e.editable ? /* @__PURE__ */ (0, L.jsx)(ofe, {
data: e,
receipt: t
}) : /* @__PURE__ */ (0, L.jsx)(J, {
@@ -46374,21 +47202,21 @@ function Ide({ data: e, receipt: t }) {
title: "只读",
children: e.notice
}),
- /* @__PURE__ */ (0, L.jsx)(zde, { data: e }),
- e.push_discovery ? /* @__PURE__ */ (0, L.jsx)(Ade, {
+ /* @__PURE__ */ (0, L.jsx)(cfe, { data: e }),
+ e.push_discovery ? /* @__PURE__ */ (0, L.jsx)($de, {
initial: e.push_discovery,
receipt: t
}) : null
]
});
}
-function Lde({ data: e, receipt: t }) {
- let [n, r] = (0, I.useState)(() => Pde(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 = jw();
+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();
(0, I.useLayoutEffect)(() => {
g !== null && (S.current[g]?.focus(), _(null));
}, [g]), (0, I.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), jde);
+ let e = setTimeout(() => location.assign(m.url), efe);
return () => clearTimeout(e);
}, [m]);
let w = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -46399,14 +47227,14 @@ function Lde({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), E = () => {
- _(n.length), r((e) => [...e, LL()]);
+ _(n.length), r((e) => [...e, aR()]);
}, 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(dde, { initial: n[e]?.path ?? "" });
+ let { path: t } = await q(Pde, { initial: n[e]?.path ?? "" });
t && (w(e, { path: t }), T(e, ""));
} catch (t) {
T(e, K(t));
@@ -46415,7 +47243,7 @@ function Lde({ data: e, receipt: t }) {
}
}
}, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => q(DL, {
+ r.preventDefault(), p(""), C.run("save", (t) => q(YL, {
revision: x.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -46424,18 +47252,18 @@ function Lde({ data: e, receipt: t }) {
}, "POST", t), (e) => {
x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Fde(e);
+ let t = ife(e);
l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(K(e));
});
};
- if (m) return /* @__PURE__ */ (0, L.jsx)(AA, {
+ if (m) return /* @__PURE__ */ (0, L.jsx)(PA, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, L.jsx)(MA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
+ children: /* @__PURE__ */ (0, L.jsx)(IA, { children: /* @__PURE__ */ (0, L.jsxs)(J, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, L.jsx)(vA, {
+ /* @__PURE__ */ (0, L.jsx)(SA, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -46445,14 +47273,14 @@ function Lde({ 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)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "这台电脑",
onSubmit: k,
- children: [/* @__PURE__ */ (0, L.jsxs)(MA, { children: [
+ children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, L.jsx)(IA, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, L.jsx)(BA, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, L.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -46463,7 +47291,7 @@ function Lde({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -46476,14 +47304,14 @@ function Lde({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, L.jsx)($D, {
- icon: Mde,
+ /* @__PURE__ */ (0, L.jsx)(cO, {
+ icon: tfe,
"aria-label": "选择文件夹",
onClick: () => void O(r),
...Y(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, L.jsx)($D, {
- icon: cS,
+ n.length > 1 ? /* @__PURE__ */ (0, L.jsx)(cO, {
+ icon: uS,
"aria-label": "移除这个文件夹",
onClick: () => D(r)
}) : null
@@ -46491,7 +47319,7 @@ function Lde({ 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)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(Bj, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -46500,7 +47328,7 @@ function Lde({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(IA, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(Dde, {
+ children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "媒体库图标" }), /* @__PURE__ */ (0, L.jsx)(Xde, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -46509,20 +47337,20 @@ function Lde({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(IA, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(rj, {
+ children: [/* @__PURE__ */ (0, L.jsx)(BA, { children: "媒体来源" }), /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && w(r, { location: String(e) });
},
- children: FL.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(ij, {
+ children: rR.map(([e, t]) => /* @__PURE__ */ (0, L.jsxs)(cj, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, L.jsx)(HA, { mark: IL(e) }), t]
+ children: [/* @__PURE__ */ (0, L.jsx)(KA, { mark: iR(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(Ij, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(Bj, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -46539,18 +47367,18 @@ function Lde({ data: e, receipt: t }) {
})
]
}),
- A ? /* @__PURE__ */ (0, L.jsx)(Tde, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, L.jsxs)(PA, { children: [
+ A ? /* @__PURE__ */ (0, L.jsx)(Jde, {}) : null,
+ j.map((e) => /* @__PURE__ */ (0, L.jsxs)(RA, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, L.jsxs)(LA, {
+ /* @__PURE__ */ (0, L.jsxs)(VA, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(PA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(Ij, {
+ e.windows === !1 ? /* @__PURE__ */ (0, L.jsx)(RA, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, L.jsx)(Bj, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -46560,7 +47388,7 @@ function Lde({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, L.jsx)(mj, {
+ /* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
@@ -46570,7 +47398,7 @@ function Lde({ data: e, receipt: t }) {
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, L.jsx)(NA, {
+ ] }), /* @__PURE__ */ (0, L.jsx)(LA, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -46580,7 +47408,7 @@ function Lde({ data: e, receipt: t }) {
})]
});
}
-function Rde({ online: e }) {
+function sfe({ 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",
@@ -46604,21 +47432,21 @@ function Rde({ online: e }) {
}), "未检测"]
});
}
-function zde({ data: e }) {
- let t = e.media_sources, n = jw();
- return t ? /* @__PURE__ */ (0, L.jsxs)(AA, {
+function cfe({ data: e }) {
+ let t = e.media_sources, n = Bw();
+ return t ? /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, L.jsx)(RA, { children: t.map((e, t) => /* @__PURE__ */ (0, L.jsxs)(zA, {
- term: /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(HA, { mark: IL(e.location) }), Nde(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, L.jsx)(Rde, { online: e.online })]
+ /* @__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 })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, L.jsx)(MA, {
+ n.error ? /* @__PURE__ */ (0, L.jsx)(IA, {
divided: !0,
- children: /* @__PURE__ */ (0, L.jsx)(FA, { children: n.error })
+ children: /* @__PURE__ */ (0, L.jsx)(zA, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, L.jsx)(NA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
- onClick: () => void n.run("refresh", (e) => kL(e), (e) => X.setQueryData(OL, e)),
+ /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ onClick: () => void n.run("refresh", (e) => ZL(e), (e) => X.setQueryData(XL, e)),
...Y(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
@@ -46627,13 +47455,13 @@ function zde({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Bde = {
+var lfe = {
legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"
};
-function Vde({ 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 = jw(), g = (e) => {
+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) => {
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) {
@@ -46650,28 +47478,28 @@ function Vde({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof pw ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof Cw ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? p(n) : h.setError(K(e));
});
- }, _ = Bde[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, L.jsxs)(AA, {
+ }, _ = lfe[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, L.jsxs)(MA, { children: [
- _ ? /* @__PURE__ */ (0, L.jsx)(PA, { children: _ }) : null,
+ children: /* @__PURE__ */ (0, L.jsxs)(IA, { children: [
+ _ ? /* @__PURE__ */ (0, L.jsx)(RA, { 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)(mj, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, L.jsx)(vj, {
isSelected: u,
onChange: d,
children: "关闭访问密码"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(Ij, {
+ n.mode === "password" ? /* @__PURE__ */ (0, L.jsx)(Bj, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -46684,7 +47512,7 @@ function Vde({ 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)(Ij, {
+ v ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Bj, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -46697,7 +47525,7 @@ function Vde({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, L.jsx)(Ij, {
+ }), /* @__PURE__ */ (0, L.jsx)(Bj, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -46716,9 +47544,9 @@ function Vde({ initial: e, receipt: t }) {
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, L.jsx)(NA, {
+ }), v ? /* @__PURE__ */ (0, L.jsx)(LA, {
status: "保存后立即生效。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
@@ -46730,19 +47558,19 @@ function Vde({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/tunnel-settings.tsx
-var Hde = 2e3, Ude = [["quick", "临时链接"], ["named", "命名隧道"]], Wde = {
+var dfe = 2e3, ffe = [["quick", "临时链接"], ["named", "命名隧道"]], pfe = {
quick: "只用于临时预览;地址随机、重启后会变化。启动前必须设置访问密码。",
named: "地址是 Cloudflare 后台绑定的公开主机名,重启后不变。启动前必须设置访问密码,身份策略在 Cloudflare Access 里配置。"
};
-function Gde({ 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 = jw(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";
+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";
(0, I.useEffect)(() => {
if (r.state !== "starting") return;
let e = new AbortController(), t = window.setInterval(() => {
- kL(e.signal).then((t) => {
- e.signal.aborted || !t.tunnel || (X.setQueryData(OL, t), i(t.tunnel), o(t.revision));
+ ZL(e.signal).then((t) => {
+ e.signal.aborted || !t.tunnel || (X.setQueryData(XL, t), i(t.tunnel), o(t.revision));
}).catch(() => void 0);
- }, Hde);
+ }, dfe);
return () => {
e.abort(), window.clearInterval(t);
};
@@ -46757,30 +47585,30 @@ function Gde({ 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 pw ? e.body : null, n = t?.errors || t?.detail?.errors;
+ let t = e instanceof Cw ? e.body : null, n = t?.errors || t?.detail?.errors;
n ? m(n) : h.setError(K(e));
});
};
- return /* @__PURE__ */ (0, L.jsxs)(AA, {
+ return /* @__PURE__ */ (0, L.jsxs)(PA, {
title: "Cloudflare 公网入口",
onSubmit: (e) => {
e.preventDefault(), v("save", g, () => n("已保存配置"));
},
- children: [/* @__PURE__ */ (0, L.jsxs)(MA, { children: [
- r.named_available ? /* @__PURE__ */ (0, L.jsx)(yD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(IA, { children: [
+ r.named_available ? /* @__PURE__ */ (0, L.jsx)(OD, {
"aria-label": "公网入口的形态(二选一)",
value: s,
isDisabled: g,
onChange: (e) => c(e),
- className: jM,
- children: Ude.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(bD, {
+ className: IM,
+ children: ffe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(kD, {
value: e,
- className: MM,
+ className: LM,
children: t
}, e))
}) : null,
- /* @__PURE__ */ (0, L.jsx)(PA, { children: Wde[_ ? "named" : "quick"] }),
- _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Ij, {
+ /* @__PURE__ */ (0, L.jsx)(RA, { children: pfe[_ ? "named" : "quick"] }),
+ _ ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(Bj, {
id: "tunnel-hostname",
label: "公开主机名",
autoComplete: "off",
@@ -46791,7 +47619,7 @@ function Gde({ revision: e, initial: t, receipt: n }) {
validationBehavior: "aria",
isInvalid: !!p.hostname,
hint: p.hostname || "在 Cloudflare Zero Trust 里指向本机 origin 的那个主机名。"
- }), /* @__PURE__ */ (0, L.jsx)(Ij, {
+ }), /* @__PURE__ */ (0, L.jsx)(Bj, {
id: "tunnel-token",
type: "password",
label: "隧道令牌",
@@ -46811,7 +47639,7 @@ function Gde({ revision: e, initial: t, receipt: n }) {
r.state === "running" && r.url ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "info",
title: "公网地址",
- children: /* @__PURE__ */ (0, L.jsx)(LA, {
+ children: /* @__PURE__ */ (0, L.jsx)(VA, {
href: r.url,
children: r.url
})
@@ -46821,9 +47649,9 @@ function Gde({ revision: e, initial: t, receipt: n }) {
title: "正在连接",
children: "正在等待 cloudflared 连上 Cloudflare 边缘。"
}) : null,
- r.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: r.error }) : null,
- h.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: h.error }) : null
- ] }), /* @__PURE__ */ (0, L.jsxs)(NA, {
+ 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, {
status: r.enabled ? "服务重启时会按设置尝试恢复。" : "服务重启后保持关闭。",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),
@@ -46839,24 +47667,24 @@ function Gde({ revision: e, initial: t, receipt: n }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Kde = [
+var hfe = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function qde({ data: e, receipt: t }) {
+function gfe({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(Jde, {
+ e.peach_proxy ? /* @__PURE__ */ (0, L.jsx)(_fe, {
initial: e.peach_proxy,
receipt: t
}) : null,
- e.access ? /* @__PURE__ */ (0, L.jsx)(Vde, {
+ e.access ? /* @__PURE__ */ (0, L.jsx)(ufe, {
initial: e.access,
receipt: t
}) : null,
- e.tunnel ? /* @__PURE__ */ (0, L.jsx)(Gde, {
+ e.tunnel ? /* @__PURE__ */ (0, L.jsx)(mfe, {
revision: e.revision,
initial: e.tunnel,
receipt: t
@@ -46864,9 +47692,9 @@ function qde({ data: e, receipt: t }) {
]
});
}
-function Jde({ initial: e, receipt: t }) {
- let [n, r] = (0, I.useState)(e), [i, a] = (0, I.useState)(e.mode), [o, s] = (0, I.useState)(""), c = jw();
- return /* @__PURE__ */ (0, L.jsxs)(AA, {
+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, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
@@ -46878,25 +47706,25 @@ function Jde({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, L.jsx)(jA, { children: /* @__PURE__ */ (0, L.jsx)(kA, {
+ /* @__PURE__ */ (0, L.jsx)(FA, { children: /* @__PURE__ */ (0, L.jsx)(NA, {
label: "连接方式",
description: "采集来源选「Peach 代理」时共用这里的连接方式。",
- children: /* @__PURE__ */ (0, L.jsx)(rj, {
+ children: /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Kde.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: hfe.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(MA, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, L.jsxs)(IA, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(Ij, {
+ i === "proxy" ? /* @__PURE__ */ (0, L.jsx)(Bj, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -46910,10 +47738,10 @@ function Jde({ initial: e, receipt: t }) {
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, L.jsx)(FA, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, L.jsx)(zA, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, L.jsx)(NA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
+ /* @__PURE__ */ (0, L.jsx)(LA, { children: /* @__PURE__ */ (0, L.jsx)(G, {
type: "submit",
...Y(c.busy === "save"),
children: "保存配置"
@@ -46923,10 +47751,10 @@ function Jde({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Yde({ receipt: e, reopenTutorial: t }) {
+function vfe({ receipt: e, reopenTutorial: t }) {
let n = Nt({
- queryKey: OL,
- queryFn: ({ signal: e }) => kL(e)
+ queryKey: XL,
+ queryFn: ({ signal: e }) => ZL(e)
}), r = n.data;
if (!r) return /* @__PURE__ */ (0, L.jsx)("div", {
className: "configpage",
@@ -46947,22 +47775,22 @@ function Yde({ receipt: e, reopenTutorial: t }) {
className: "configgroup",
children: "通用"
}) : null,
- a ? /* @__PURE__ */ (0, L.jsx)(pde, { ...i }) : null,
+ a ? /* @__PURE__ */ (0, L.jsx)(Ide, { ...i }) : null,
/* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, L.jsx)(Ide, { ...i }),
+ /* @__PURE__ */ (0, L.jsx)(afe, { ...i }),
o ? /* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- o ? /* @__PURE__ */ (0, L.jsx)(qde, { ...i }) : null,
+ o ? /* @__PURE__ */ (0, L.jsx)(gfe, { ...i }) : null,
/* @__PURE__ */ (0, L.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, L.jsx)(vde, {
+ /* @__PURE__ */ (0, L.jsx)(Vde, {
...i,
reopenTutorial: t
})
@@ -46971,35 +47799,35 @@ function Yde({ receipt: e, reopenTutorial: t }) {
}
//#endregion
//#region src/react/settings/configuration-summary.tsx
-var Xde = (e) => {
+var yfe = (e) => {
let t = e.updates;
return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";
};
-function Zde({ openConfiguration: e }) {
+function bfe({ openConfiguration: e }) {
let t = Nt({
- queryKey: OL,
- queryFn: ({ signal: e }) => kL(e)
+ queryKey: XL,
+ queryFn: ({ signal: e }) => ZL(e)
}), n = t.data;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
- children: [n ? /* @__PURE__ */ (0, L.jsxs)(RA, { children: [
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ children: [n ? /* @__PURE__ */ (0, L.jsxs)(HA, { children: [
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "媒体库",
children: `${n.library_count} 个`
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "端口",
children: String(n.port)
}),
- /* @__PURE__ */ (0, L.jsx)(zA, {
+ /* @__PURE__ */ (0, L.jsx)(UA, {
term: "更新",
- children: Xde(n)
+ children: yfe(n)
})
- ] }) : /* @__PURE__ */ (0, L.jsx)(MA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ ] }) : /* @__PURE__ */ (0, L.jsx)(IA, { children: /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
title: "打不开配置",
children: t.error ? K(t.error) : "没有读到配置"
- }) }), /* @__PURE__ */ (0, L.jsx)(NA, {
+ }) }), /* @__PURE__ */ (0, L.jsx)(LA, {
status: "媒体文件夹、端口、代理与更新在配置页上改。",
children: /* @__PURE__ */ (0, L.jsx)(G, {
onClick: e,
@@ -47010,14 +47838,14 @@ function Zde({ openConfiguration: e }) {
}
//#endregion
//#region src/react/stats/stats.ts
-var Qde = "/api/stats", RL = ["stats"], zL = (e) => hw(Qde, e);
-async function $de(e) {
+var xfe = "/api/stats", oR = ["stats"], sR = (e) => Tw(xfe, e);
+async function Sfe(e) {
await X.fetchQuery({
- queryKey: RL,
- queryFn: () => zL(e)
+ queryKey: oR,
+ queryFn: () => sR(e)
});
}
-var BL = (e, t) => t ? Math.round(e / t * 100) : 0, efe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, VL = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, HL = (e) => (e.max_reached || 0) * 100, tfe = (e) => e.kind === "online" ? "在线直接观看" : VL(e) < HL(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", nfe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, rfe = (e) => Math.max(1, ...e) * 1.1, ife = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), afe = {
+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 = {
video: "视频",
image: "图片",
illustration: "插画",
@@ -47025,18 +47853,18 @@ var BL = (e, t) => t ? Math.round(e / t * 100) : 0, efe = (e) => e >= 3600 ? `${
audio: "音频",
account: "账号",
other: "其它文件"
-}, ofe = (e) => e.map((e) => ({
- name: afe[e.k] ?? e.k,
+}, kfe = (e) => e.map((e) => ({
+ name: Ofe[e.k] ?? e.k,
value: e.n
-})).sort((e, t) => t.value - e.value), sfe = {
+})).sort((e, t) => t.value - e.value), Afe = {
速食: "<5 分钟",
短: "5–15 分钟",
中: "15–40 分钟",
长: ">40 分钟"
-}, UL = (e, t = {}) => e.map((e) => ({
+}, dR = (e, t = {}) => e.map((e) => ({
name: t[e.k] ?? e.k,
value: e.n
-})), cfe = (e) => UL(e, sfe), lfe = [
+})), jfe = (e) => dR(e, Afe), Mfe = [
[
1,
1,
@@ -47072,49 +47900,49 @@ var BL = (e, t) => t ? Math.round(e / t * 100) : 0, efe = (e) => e >= 3600 ? `${
Infinity,
"≥10 次"
]
-], ufe = (e) => lfe.map(([t, n, r]) => ({
+], Nfe = (e) => Mfe.map(([t, n, r]) => ({
name: r,
value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)
-})), dfe = /* @__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 WL(e) {
- return typeof e == "string" && dfe.includes(e);
+})), 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);
}
//#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 GL(e) {
- return typeof e == "string" && ffe.has(e);
+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);
}
-function KL(e) {
+function mR(e) {
return typeof e == "string" && e.startsWith("data-");
}
-function qL(e) {
+function hR(e) {
if (typeof e != "object" || !e) return {};
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (GL(n) || KL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (pR(n) || mR(n)) && (t[n] = e[n]);
return t;
}
-function JL(e) {
+function gR(e) {
if (e == null) return null;
if (/*#__PURE__*/ (0, I.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {
var t = e.props;
- return qL(t);
+ return hR(t);
}
- return typeof e == "object" && !Array.isArray(e) ? qL(e) : null;
+ return typeof e == "object" && !Array.isArray(e) ? hR(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js
-function YL(e) {
+function _R(e) {
var t = {};
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (GL(n) || KL(n) || WL(n)) && (t[n] = e[n]);
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (pR(n) || mR(n) || fR(n)) && (t[n] = e[n]);
return t;
}
-function pfe(e) {
- return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? YL(e.props) : typeof e == "object" && !Array.isArray(e) ? YL(e) : null;
+function Ife(e) {
+ return e == null ? null : /*#__PURE__*/ (0, I.isValidElement)(e) ? _R(e.props) : typeof e == "object" && !Array.isArray(e) ? _R(e) : null;
}
//#endregion
//#region node_modules/recharts/es6/container/Surface.js
-var mfe = [
+var Lfe = [
"children",
"width",
"height",
@@ -47124,25 +47952,25 @@ var mfe = [
"title",
"desc"
];
-function XL() {
- return XL = Object.assign ? Object.assign.bind() : function(e) {
+function vR() {
+ return vR = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
}
return e;
- }, XL.apply(null, arguments);
+ }, vR.apply(null, arguments);
}
-function hfe(e, t) {
+function Rfe(e, t) {
if (e == null) return {};
- var n, r, i = gfe(e, t);
+ var n, r, i = zfe(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 gfe(e, t) {
+function zfe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -47151,14 +47979,14 @@ function gfe(e, t) {
}
return n;
}
-var ZL = /*#__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 = hfe(e, mfe), d = a || {
+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 || {
width: r,
height: i,
x: 0,
y: 0
}, f = Jm("recharts-surface", o);
- return /*#__PURE__*/ I.createElement("svg", XL({}, YL(u), {
+ return /*#__PURE__*/ I.createElement("svg", vR({}, _R(u), {
className: f,
width: r,
height: i,
@@ -47166,26 +47994,26 @@ var ZL = /*#__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);
-}), _fe = ["children", "className"];
-function QL() {
- return QL = Object.assign ? Object.assign.bind() : function(e) {
+}), Bfe = ["children", "className"];
+function bR() {
+ return bR = 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;
- }, QL.apply(null, arguments);
+ }, bR.apply(null, arguments);
}
-function vfe(e, t) {
+function Vfe(e, t) {
if (e == null) return {};
- var n, r, i = yfe(e, t);
+ var n, r, i = Hfe(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 yfe(e, t) {
+function Hfe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -47194,39 +48022,39 @@ function yfe(e, t) {
}
return n;
}
-var $L = /*#__PURE__*/ I.forwardRef((e, t) => {
- var { children: n, className: r } = e, i = vfe(e, _fe), a = Jm("recharts-layer", r);
- return /*#__PURE__*/ I.createElement("g", QL({ className: a }, YL(i), { ref: t }), n);
-}), eR = /*#__PURE__*/ (0, I.createContext)(null), bfe = () => (0, I.useContext)(eR);
+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);
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js
-function tR(e) {
+function CR(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js
-var nR = Math.cos, rR = Math.sin, iR = Math.sqrt, aR = Math.PI;
-aR / 2;
-var oR = 2 * aR, sR = Math.PI, cR = 2 * sR, lR = 1e-6, xfe = cR - lR;
-function uR(e) {
+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) {
this._ += e[0];
for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
}
-function Sfe(e) {
+function Gfe(e) {
let t = Math.floor(e);
if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
- if (t > 15) return uR;
+ if (t > 15) return MR;
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 dR = class {
+var NR = class {
constructor(e) {
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? uR : Sfe(e);
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? MR : Gfe(e);
}
moveTo(e, t) {
this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -47247,18 +48075,18 @@ var dR = 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 > lR) {
- if (!(Math.abs(u * s - c * l) > lR) || !i) this._append`L${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 {
- 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((sR - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > lR && 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((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}`;
}
}
}
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) > lR || Math.abs(this._y1 - l) > lR) && this._append`L${c},${l}`, n && (d < 0 && (d = d % cR + cR), d > xfe ? 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 > lR && this._append`A${n},${n},0,${+(d >= sR)},${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) > 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)}`);
}
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`;
@@ -47267,10 +48095,10 @@ var dR = class {
return this._;
}
};
-dR.prototype;
+NR.prototype;
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js
-function fR(e) {
+function PR(e) {
let t = 3;
return e.digits = function(n) {
if (!arguments.length) return t;
@@ -47281,18 +48109,18 @@ function fR(e) {
t = e;
}
return e;
- }, () => new dR(t);
+ }, () => new NR(t);
}
Array.prototype.slice;
-function pR(e) {
+function FR(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 mR(e) {
+function IR(e) {
this._context = e;
}
-mR.prototype = {
+IR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47315,33 +48143,33 @@ mR.prototype = {
}
}
};
-function hR(e) {
- return new mR(e);
+function LR(e) {
+ return new IR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js
-function gR(e) {
+function RR(e) {
return e[0];
}
-function _R(e) {
+function zR(e) {
return e[1];
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js
-function vR(e, t) {
- var n = tR(!0), r = null, i = hR, a = null, o = fR(s);
- e = typeof e == "function" ? e : e === void 0 ? gR : tR(e), t = typeof t == "function" ? t : t === void 0 ? _R : tR(t);
+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 s(s) {
- var c, l = (s = pR(s)).length, u, d = !1, f;
+ var c, l = (s = FR(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 : tR(+t), s) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : CR(+t), s) : e;
}, s.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : tR(+e), s) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : CR(+e), s) : t;
}, s.defined = function(e) {
- return arguments.length ? (n = typeof e == "function" ? e : tR(!!e), s) : n;
+ return arguments.length ? (n = typeof e == "function" ? e : CR(!!e), s) : n;
}, s.curve = function(e) {
return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;
}, s.context = function(e) {
@@ -47350,11 +48178,11 @@ function vR(e, t) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js
-function yR(e, t, n) {
- var r = null, i = tR(!0), a = null, o = hR, s = null, c = fR(l);
- e = typeof e == "function" ? e : e === void 0 ? gR : tR(+e), t = typeof t == "function" ? t : tR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? _R : tR(+n);
+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 l(l) {
- var u, d, f, p = (l = pR(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);
+ var u, d, f, p = (l = FR(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();
@@ -47368,20 +48196,20 @@ function yR(e, t, n) {
if (g) return s = null, g + "" || null;
}
function u() {
- return vR().defined(i).curve(o).context(a);
+ return BR().defined(i).curve(o).context(a);
}
return l.x = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : tR(+t), r = null, l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : CR(+t), r = null, l) : e;
}, l.x0 = function(t) {
- return arguments.length ? (e = typeof t == "function" ? t : tR(+t), l) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : CR(+t), l) : e;
}, l.x1 = function(e) {
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : tR(+e), l) : r;
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : CR(+e), l) : r;
}, l.y = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : tR(+e), n = null, l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : CR(+e), n = null, l) : t;
}, l.y0 = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : tR(+e), l) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : CR(+e), l) : t;
}, l.y1 = function(e) {
- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : tR(+e), l) : n;
+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : CR(+e), l) : n;
}, l.lineX0 = l.lineY0 = function() {
return u().x(e).y(t);
}, l.lineY1 = function() {
@@ -47389,7 +48217,7 @@ function yR(e, t, n) {
}, l.lineX1 = function() {
return u().x(r).y(t);
}, l.defined = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : tR(!!e), l) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : CR(!!e), l) : i;
}, l.curve = function(e) {
return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;
}, l.context = function(e) {
@@ -47398,7 +48226,7 @@ function yR(e, t, n) {
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js
-var bR = class {
+var HR = class {
constructor(e, t) {
this._context = e, this._x = t;
}
@@ -47425,70 +48253,70 @@ var bR = class {
this._x0 = e, this._y0 = t;
}
};
-function Cfe(e) {
- return new bR(e, !0);
+function Kfe(e) {
+ return new HR(e, !0);
}
-function wfe(e) {
- return new bR(e, !1);
+function qfe(e) {
+ return new HR(e, !1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js
-var xR = { draw(e, t) {
- let n = iR(t / aR);
- e.moveTo(n, 0), e.arc(0, 0, n, 0, oR);
-} }, Tfe = { draw(e, t) {
- let n = iR(t / 5) / 2;
+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;
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();
-} }, SR = iR(1 / 3), Efe = SR * 2, Dfe = { draw(e, t) {
- let n = iR(t / Efe), r = n * SR;
+} }, WR = ER(1 / 3), Yfe = WR * 2, Xfe = { draw(e, t) {
+ let n = ER(t / Yfe), r = n * WR;
e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
-} }, Ofe = { draw(e, t) {
- let n = iR(t), r = -n / 2;
+} }, Zfe = { draw(e, t) {
+ let n = ER(t), r = -n / 2;
e.rect(r, r, n, n);
-} }, kfe = .8908130915292852, CR = rR(aR / 10) / rR(7 * aR / 10), Afe = rR(oR / 10) * CR, jfe = -nR(oR / 10) * CR, Mfe = { draw(e, t) {
- let n = iR(t * kfe), r = Afe * n, i = jfe * 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;
e.moveTo(0, -n), e.lineTo(r, i);
for (let t = 1; t < 5; ++t) {
- let a = oR * t / 5, o = nR(a), s = rR(a);
+ let a = OR * t / 5, o = wR(a), s = TR(a);
e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
}
e.closePath();
-} }, wR = iR(3), Nfe = { draw(e, t) {
- let n = -iR(t / (wR * 3));
- e.moveTo(0, n * 2), e.lineTo(-wR * n, -n), e.lineTo(wR * n, -n), e.closePath();
-} }, TR = -.5, ER = iR(3) / 2, DR = 1 / iR(12), Pfe = (DR / 2 + 1) * 3, Ffe = { draw(e, t) {
- let n = iR(t / Pfe), r = n / 2, i = n * DR, a = r, o = n * DR + n, s = -a, c = o;
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(TR * r - ER * i, ER * r + TR * i), e.lineTo(TR * a - ER * o, ER * a + TR * o), e.lineTo(TR * s - ER * c, ER * s + TR * c), e.lineTo(TR * r + ER * i, TR * i - ER * r), e.lineTo(TR * a + ER * o, TR * o - ER * a), e.lineTo(TR * s + ER * c, TR * c - ER * s), 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();
} };
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js
-function Ife(e, t) {
- let n = null, r = fR(i);
- e = typeof e == "function" ? e : tR(e || xR), t = typeof t == "function" ? t : tR(t === void 0 ? 64 : +t);
+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 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 : tR(t), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : CR(t), i) : e;
}, i.size = function(e) {
- return arguments.length ? (t = typeof e == "function" ? e : tR(+e), i) : t;
+ return arguments.length ? (t = typeof e == "function" ? e : CR(+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 OR() {}
+function XR() {}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js
-function kR(e, t, n) {
+function ZR(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 AR(e) {
+function QR(e) {
this._context = e;
}
-AR.prototype = {
+QR.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47500,7 +48328,7 @@ AR.prototype = {
},
lineEnd: function() {
switch (this._point) {
- case 3: kR(this, this._x1, this._y1);
+ case 3: ZR(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;
@@ -47514,22 +48342,22 @@ AR.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: kR(this, e, t);
+ default: ZR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Lfe(e) {
- return new AR(e);
+function ope(e) {
+ return new QR(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js
-function jR(e) {
+function $R(e) {
this._context = e;
}
-jR.prototype = {
- areaStart: OR,
- areaEnd: OR,
+$R.prototype = {
+ areaStart: XR,
+ areaEnd: XR,
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;
},
@@ -47555,20 +48383,20 @@ jR.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: kR(this, e, t);
+ default: ZR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function Rfe(e) {
- return new jR(e);
+function spe(e) {
+ return new $R(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js
-function MR(e) {
+function ez(e) {
this._context = e;
}
-MR.prototype = {
+ez.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47595,22 +48423,22 @@ MR.prototype = {
this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
break;
case 3: this._point = 4;
- default: kR(this, e, t);
+ default: ZR(this, e, t);
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
}
};
-function zfe(e) {
- return new MR(e);
+function cpe(e) {
+ return new ez(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js
-function NR(e) {
+function tz(e) {
this._context = e;
}
-NR.prototype = {
- areaStart: OR,
- areaEnd: OR,
+tz.prototype = {
+ areaStart: XR,
+ areaEnd: XR,
lineStart: function() {
this._point = 0;
},
@@ -47621,30 +48449,30 @@ NR.prototype = {
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
}
};
-function Bfe(e) {
- return new NR(e);
+function lpe(e) {
+ return new tz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js
-function PR(e) {
+function nz(e) {
return e < 0 ? -1 : 1;
}
-function FR(e, t, n) {
+function rz(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 (PR(a) + PR(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
+ return (nz(a) + nz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
}
-function IR(e, t) {
+function iz(e, t) {
var n = e._x1 - e._x0;
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
}
-function LR(e, t, n) {
+function az(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 RR(e) {
+function oz(e) {
this._context = e;
}
-RR.prototype = {
+oz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47659,7 +48487,7 @@ RR.prototype = {
case 2:
this._context.lineTo(this._x1, this._y1);
break;
- case 3: LR(this, this._t0, IR(this, this._t0));
+ case 3: az(this, this._t0, iz(this, this._t0));
}
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
},
@@ -47674,24 +48502,24 @@ RR.prototype = {
this._point = 2;
break;
case 2:
- this._point = 3, LR(this, IR(this, n = FR(this, e, t)), n);
+ this._point = 3, az(this, iz(this, n = rz(this, e, t)), n);
break;
- default: LR(this, this._t0, n = FR(this, e, t));
+ default: az(this, this._t0, n = rz(this, e, t));
}
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
}
}
};
-function zR(e) {
- this._context = new BR(e);
+function sz(e) {
+ this._context = new cz(e);
}
-(zR.prototype = Object.create(RR.prototype)).point = function(e, t) {
- RR.prototype.point.call(this, t, e);
+(sz.prototype = Object.create(oz.prototype)).point = function(e, t) {
+ oz.prototype.point.call(this, t, e);
};
-function BR(e) {
+function cz(e) {
this._context = e;
}
-BR.prototype = {
+cz.prototype = {
moveTo: function(e, t) {
this._context.moveTo(t, e);
},
@@ -47705,18 +48533,18 @@ BR.prototype = {
this._context.bezierCurveTo(t, e, r, n, a, i);
}
};
-function Vfe(e) {
- return new RR(e);
+function upe(e) {
+ return new oz(e);
}
-function Hfe(e) {
- return new zR(e);
+function dpe(e) {
+ return new sz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js
-function VR(e) {
+function lz(e) {
this._context = e;
}
-VR.prototype = {
+lz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47730,7 +48558,7 @@ VR.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 = HR(e), i = HR(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 = 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]);
}
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
},
@@ -47738,7 +48566,7 @@ VR.prototype = {
this._x.push(+e), this._y.push(+t);
}
};
-function HR(e) {
+function uz(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];
@@ -47746,15 +48574,15 @@ function HR(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 Ufe(e) {
- return new VR(e);
+function fpe(e) {
+ return new lz(e);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js
-function UR(e, t) {
+function dz(e, t) {
this._context = e, this._t = t;
}
-UR.prototype = {
+dz.prototype = {
areaStart: function() {
this._line = 0;
},
@@ -47782,78 +48610,78 @@ UR.prototype = {
this._x = e, this._y = t;
}
};
-function Wfe(e) {
- return new UR(e, .5);
+function ppe(e) {
+ return new dz(e, .5);
}
-function Gfe(e) {
- return new UR(e, 0);
+function mpe(e) {
+ return new dz(e, 0);
}
-function Kfe(e) {
- return new UR(e, 1);
+function hpe(e) {
+ return new dz(e, 1);
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js
-function WR(e, t) {
+function fz(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 GR(e) {
+function pz(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 qfe(e, t) {
+function gpe(e, t) {
return e[t];
}
-function Jfe(e) {
+function _pe(e) {
let t = [];
return t.key = e, t;
}
-function Yfe() {
- var e = tR([]), t = GR, n = WR, r = qfe;
+function vpe() {
+ var e = CR([]), t = pz, n = fz, r = gpe;
function i(i) {
- var a = Array.from(e.apply(this, arguments), Jfe), o, s = a.length, c = -1, l;
+ var a = Array.from(e.apply(this, arguments), _pe), 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 = pR(t(a)); o < s; ++o) a[l[o]].index = o;
+ for (o = 0, l = FR(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 : tR(Array.from(t)), i) : e;
+ return arguments.length ? (e = typeof t == "function" ? t : CR(Array.from(t)), i) : e;
}, i.value = function(e) {
- return arguments.length ? (r = typeof e == "function" ? e : tR(+e), i) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : CR(+e), i) : r;
}, i.order = function(e) {
- return arguments.length ? (t = e == null ? GR : typeof e == "function" ? e : tR(Array.from(e)), i) : t;
+ return arguments.length ? (t = e == null ? pz : typeof e == "function" ? e : CR(Array.from(e)), i) : t;
}, i.offset = function(e) {
- return arguments.length ? (n = e ?? WR, i) : n;
+ return arguments.length ? (n = e ?? fz, i) : n;
}, i;
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js
-function Xfe(e, t) {
+function ype(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;
}
- WR(e, t);
+ fz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js
-function Zfe(e, t) {
+function bpe(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;
}
- WR(e, t);
+ fz(e, t);
}
}
//#endregion
//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js
-function Qfe(e, t) {
+function xpe(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) {
@@ -47865,53 +48693,53 @@ function Qfe(e, t) {
}
i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);
}
- i[r - 1][1] += i[r - 1][0] = n, WR(e, t);
+ i[r - 1][1] += i[r - 1][0] = n, fz(e, t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
-function KR(e) {
+function mz(e) {
return e === "__proto__";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs
-var $fe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
-function qR(e) {
+var Spe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;
+function hz(e) {
switch (typeof e) {
case "number":
case "symbol": return !1;
- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : $fe.test(e);
+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : Spe.test(e);
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
-function JR(e) {
+function gz(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 YR(e) {
+function _z(e) {
return typeof e == "symbol" || e instanceof Symbol;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toString.mjs
-function epe(e) {
- return e == null ? "" : XR(e);
+function Cpe(e) {
+ return e == null ? "" : vz(e);
}
-function XR(e) {
+function vz(e) {
if (typeof e == "string") return e;
- if (Array.isArray(e)) return e.map(XR).join(",");
- if (YR(e)) return e.toString();
+ if (Array.isArray(e)) return e.map(vz).join(",");
+ if (_z(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 ZR(e) {
- if (Array.isArray(e)) return e.map(JR);
+function yz(e) {
+ if (Array.isArray(e)) return e.map(gz);
if (typeof e == "symbol") return [e];
- e = epe(e);
+ e = Cpe(e);
let t = [], n = e.length;
if (n === 0) return t;
let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;
@@ -47939,100 +48767,100 @@ function ZR(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/get.mjs
-function QR(e, t, n) {
+function bz(e, t, n) {
if (e == null) return n;
switch (typeof t) {
case "string": {
- if (KR(t)) return n;
+ if (mz(t)) return n;
let r = e[t];
- return r === void 0 ? qR(t) && !Object.hasOwn(e, t) ? QR(e, ZR(t), n) : n : r;
+ return r === void 0 ? hz(t) && !Object.hasOwn(e, t) ? bz(e, yz(t), n) : n : r;
}
case "number":
case "symbol": {
- typeof t == "number" && (t = JR(t));
+ typeof t == "number" && (t = gz(t));
let r = e[t];
return r === void 0 ? n : r;
}
default: {
- if (Array.isArray(t)) return tpe(e, t, n);
- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), KR(t)) return n;
+ if (Array.isArray(t)) return wpe(e, t, n);
+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), mz(t)) return n;
let r = e[t];
return r === void 0 ? n : r;
}
}
}
-function tpe(e, t, n) {
+function wpe(e, t, n) {
if (t.length === 0) return n;
let r = e;
for (let e = 0; e < t.length; e++) {
- if (r == null || KR(t[e])) return n;
+ if (r == null || mz(t[e])) return n;
r = r[t[e]];
}
return r === void 0 ? n : r;
}
//#endregion
//#region node_modules/recharts/es6/util/round.js
-var npe = 4;
-function $R(e) {
- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : npe), n = Math.round(e * t) / t;
+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;
return Object.is(n, -0) ? 0 : n;
}
-function ez(e) {
+function Sz(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 + $R(i) + n;
+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + xz(i) + n;
}, "");
}
//#endregion
//#region node_modules/recharts/es6/util/DataUtils.js
-var tz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, nz = (e) => typeof e == "number" && e != +e, rz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !nz(e), iz = (e) => Z(e) || typeof e == "string", rpe = 0, az = (e) => {
- var t = ++rpe;
+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;
return `${e || ""}${t}`;
-}, oz = function(e, t) {
+}, Oz = 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 (rz(e)) {
+ if (Tz(e)) {
if (t == null) return n;
var a = e.indexOf("%");
i = t * parseFloat(e.slice(0, a)) / 100;
} else i = +e;
- return nz(i) && (i = n), r && t != null && i > t && (i = t), i;
-}, sz = (e) => {
+ return wz(i) && (i = n), r && t != null && i > t && (i = t), i;
+}, kz = (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 cz(e, t, n) {
- return Z(e) && Z(t) ? $R(e + n * (t - e)) : t;
+function Az(e, t, n) {
+ return Z(e) && Z(t) ? xz(e + n * (t - e)) : t;
}
-function lz(e, t, n) {
- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : QR(e, t)) === n);
+function jz(e, t, n) {
+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : bz(e, t)) === n);
}
-var uz = (e) => e == null, dz = (e) => uz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
-function fz(e) {
+var Mz = (e) => e == null, Nz = (e) => Mz(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
+function Pz(e) {
return e != null;
}
-function pz() {}
+function Fz() {}
//#endregion
//#region node_modules/recharts/es6/shape/Symbols.js
-var ipe = [
+var Dpe = [
"type",
"size",
"sizeType"
];
-function mz() {
- return mz = Object.assign ? Object.assign.bind() : function(e) {
+function Iz() {
+ return Iz = 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;
- }, mz.apply(null, arguments);
+ }, Iz.apply(null, arguments);
}
-function hz(e, t) {
+function Lz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48042,30 +48870,30 @@ function hz(e, t) {
}
return n;
}
-function gz(e) {
+function Rz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? hz(Object(n), !0).forEach(function(t) {
- ape(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : hz(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ape(e, t, n) {
- return (t = ope(t)) in e ? Object.defineProperty(e, t, {
+function Ope(e, t, n) {
+ return (t = kpe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ope(e) {
- var t = spe(e, "string");
+function kpe(e) {
+ var t = Ape(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function spe(e, t) {
+function Ape(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48075,16 +48903,16 @@ function spe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function cpe(e, t) {
+function jpe(e, t) {
if (e == null) return {};
- var n, r, i = lpe(e, t);
+ var n, r, i = Mpe(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 lpe(e, t) {
+function Mpe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -48093,68 +48921,68 @@ function lpe(e, t) {
}
return n;
}
-var _z = {
- symbolCircle: xR,
- symbolCross: Tfe,
- symbolDiamond: Dfe,
- symbolSquare: Ofe,
- symbolStar: Mfe,
- symbolTriangle: Nfe,
- symbolWye: Ffe
-}, upe = Math.PI / 180, dpe = (e) => _z[`symbol${dz(e)}`] || xR, fpe = (e, t, 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) => {
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 * upe;
+ var r = 18 * Npe;
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;
}
-}, ppe = (e, t) => {
- _z[`symbol${dz(e)}`] = t;
-}, vz = (e) => {
- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = gz(gz({}, cpe(e, ipe)), {}, {
+}, 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)), {}, {
type: t,
size: n,
sizeType: r
}), a = "circle";
typeof t == "string" && (a = t);
var o = () => {
- var e = dpe(a), t = Ife().type(e).size(fpe(n, r, a))();
+ var e = Ppe(a), t = ape().type(e).size(Fpe(n, r, a))();
if (t !== null) return t;
- }, { className: s, cx: c, cy: l } = i, u = YL(i);
- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ I.createElement("path", mz({}, u, {
+ }, { 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),
transform: `translate(${c}, ${l})`,
d: o()
})) : null;
};
-vz.registerSymbol = ppe;
+Bz.registerSymbol = Ipe;
//#endregion
//#region node_modules/recharts/es6/util/types.js
-var yz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, bz = (e, t) => {
+var Vz = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, Hz = (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) => {
- WL(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
+ fR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));
}), r;
-}, mpe = (e, t, n) => (r) => (e(t, n, r), null), xz = (e, t, n) => {
+}, Lpe = (e, t, n) => (r) => (e(t, n, r), null), Uz = (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];
- WL(i) && typeof a == "function" && (r ||= {}, r[i] = mpe(a, t, n));
+ fR(i) && typeof a == "function" && (r ||= {}, r[i] = Lpe(a, t, n));
}), r;
};
//#endregion
//#region node_modules/recharts/es6/util/resolveDefaultProps.js
-function Sz(e, t) {
+function Wz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48164,30 +48992,30 @@ function Sz(e, t) {
}
return n;
}
-function hpe(e) {
+function Rpe(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Sz(Object(n), !0).forEach(function(t) {
- gpe(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sz(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gpe(e, t, n) {
- return (t = _pe(t)) in e ? Object.defineProperty(e, t, {
+function zpe(e, t, n) {
+ return (t = Bpe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _pe(e) {
- var t = vpe(e, "string");
+function Bpe(e) {
+ var t = Vpe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vpe(e, t) {
+function Vpe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48197,22 +49025,22 @@ function vpe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Cz(e, t) {
- var n = hpe({}, e), r = t;
+function Gz(e, t) {
+ var n = Rpe({}, 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 wz() {
- return wz = Object.assign ? Object.assign.bind() : function(e) {
+function Kz() {
+ return Kz = 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;
- }, wz.apply(null, arguments);
+ }, Kz.apply(null, arguments);
}
-function Tz(e, t) {
+function qz(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -48222,30 +49050,30 @@ function Tz(e, t) {
}
return n;
}
-function Ez(e) {
+function Jz(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Tz(Object(n), !0).forEach(function(t) {
- ype(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tz(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function ype(e, t, n) {
- return (t = bpe(t)) in e ? Object.defineProperty(e, t, {
+function Hpe(e, t, n) {
+ return (t = Upe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function bpe(e) {
- var t = xpe(e, "string");
+function Upe(e) {
+ var t = Wpe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function xpe(e, t) {
+function Wpe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -48255,7 +49083,7 @@ function xpe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Dz = 32, Spe = {
+var Yz = 32, Gpe = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -48263,20 +49091,20 @@ var Dz = 32, Spe = {
verticalAlign: "middle",
labelStyle: {}
};
-function Cpe(e) {
+function Kpe(e) {
if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);
}
-function wpe(e) {
- var { data: t, iconType: n, inactiveColor: r } = e, i = Dz / 2, a = Dz / 6, o = Dz / 3, s = t.inactive ? r : t.color, c = n ?? t.type;
+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;
if (c === "none") return null;
if (c === "plainline") return /*#__PURE__*/ I.createElement("line", {
strokeWidth: 4,
fill: "none",
stroke: s,
- strokeDasharray: Cpe(t.payload),
+ strokeDasharray: Kpe(t.payload),
x1: 0,
y1: i,
- x2: Dz,
+ x2: Yz,
y2: i,
className: "recharts-legend-icon"
});
@@ -48286,35 +49114,35 @@ function wpe(e) {
stroke: s,
d: `M0,${i}h${o}
A${a},${a},0,1,1,${2 * o},${i}
- H${Dz}M${2 * o},${i}
+ H${Yz}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,${Dz / 8}h${Dz}v${Dz * 3 / 4}h${-Dz}z`,
+ d: `M0,${Yz / 8}h${Yz}v${Yz * 3 / 4}h${-Yz}z`,
className: "recharts-legend-icon"
});
if (/*#__PURE__*/ I.isValidElement(t.legendIcon)) {
- var l = Ez({}, t);
+ var l = Jz({}, t);
return delete l.legendIcon, /*#__PURE__*/ I.cloneElement(t.legendIcon, l);
}
- return /*#__PURE__*/ I.createElement(vz, {
+ return /*#__PURE__*/ I.createElement(Bz, {
fill: s,
cx: i,
cy: i,
- size: Dz,
+ size: Yz,
sizeType: "diameter",
type: c
});
}
-function Tpe(e) {
+function Jpe(e) {
var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {
x: 0,
y: 0,
- width: Dz,
- height: Dz
+ width: Yz,
+ height: Yz
}, l = {
display: r === "horizontal" ? "inline-block" : "block",
marginRight: 10
@@ -48330,20 +49158,20 @@ function Tpe(e) {
inactive: t.inactive
});
if (t.type === "none") return null;
- var p = typeof s == "object" ? Ez({}, s) : {};
+ var p = typeof s == "object" ? Jz({}, 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", wz({
+ return /*#__PURE__*/ I.createElement("li", Kz({
className: f,
style: l,
key: `legend-item-${r}`
- }, xz(e, t, r)), /*#__PURE__*/ I.createElement(ZL, {
+ }, Uz(e, t, r)), /*#__PURE__*/ I.createElement(yR, {
width: n,
height: n,
viewBox: c,
style: u,
"aria-label": `${m} legend icon`
- }, /*#__PURE__*/ I.createElement(wpe, {
+ }, /*#__PURE__*/ I.createElement(qpe, {
data: t,
iconType: o,
inactiveColor: a
@@ -48353,8 +49181,8 @@ function Tpe(e) {
}, m));
});
}
-var Epe = (e) => {
- var t = Cz(e, Spe), { payload: n, layout: r, align: i } = t;
+var Ype = (e) => {
+ var t = Gz(e, Gpe), { payload: n, layout: r, align: i } = t;
if (!n || !n.length) return null;
var a = {
padding: 0,
@@ -48364,11 +49192,11 @@ var Epe = (e) => {
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-default-legend",
style: a
- }, /*#__PURE__*/ I.createElement(Tpe, wz({}, t, { payload: n })));
+ }, /*#__PURE__*/ I.createElement(Jpe, Kz({}, t, { payload: n })));
};
//#endregion
//#region node_modules/es-toolkit/dist/array/uniqBy.mjs
-function Dpe(e, t) {
+function Xpe(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r = 0; r < e.length; r++) {
let i = e[r], a = t(i, r, e);
@@ -48378,77 +49206,77 @@ function Dpe(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/function/ary.mjs
-function Ope(e, t) {
+function Zpe(e, t) {
return function(...n) {
return e.apply(this, n.slice(0, t));
};
}
//#endregion
//#region node_modules/es-toolkit/dist/function/identity.mjs
-function Oz(e) {
+function Xz(e) {
return e;
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isLength.mjs
-function kpe(e) {
+function Qpe(e) {
return Number.isSafeInteger(e) && e >= 0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
-function kz(e) {
- return e != null && typeof e != "function" && kpe(e.length);
+function Zz(e) {
+ return e != null && typeof e != "function" && Qpe(e.length);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/property.mjs
-function Ape(e) {
+function $pe(e) {
return function(t) {
- return QR(t, e);
+ return bz(t, e);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
-function Az(e) {
+function Qz(e) {
return e == null || typeof e != "object" && typeof e != "function";
}
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
-function jpe(e) {
+function eme(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
-function Mpe(e) {
+function tme(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 jz(e) {
+function $z(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 Npe = "[object RegExp]", Mz = "[object String]", Nz = "[object Number]", Pz = "[object Boolean]", Fz = "[object Arguments]", Ppe = "[object Symbol]", Fpe = "[object Date]", Ipe = "[object Map]", Lpe = "[object Set]", Rpe = "[object Array]", zpe = "[object ArrayBuffer]", Bpe = "[object Object]", Vpe = "[object DataView]", Hpe = "[object Uint8Array]", Upe = "[object Uint8ClampedArray]", Wpe = "[object Uint16Array]", Gpe = "[object Uint32Array]", Kpe = "[object Int8Array]", qpe = "[object Int16Array]", Jpe = "[object Int32Array]", Ype = "[object Float32Array]", Xpe = "[object Float64Array]", Iz = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
+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() {
return this;
})();
//#endregion
//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
-function Zpe(e) {
- return Iz.Buffer !== void 0 && Iz.Buffer.isBuffer(e);
+function bme(e) {
+ return iB.Buffer !== void 0 && iB.Buffer.isBuffer(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
-function Qpe(e, t) {
- return Lz(e, void 0, e, /* @__PURE__ */ new Map(), t);
+function xme(e, t) {
+ return aB(e, void 0, e, /* @__PURE__ */ new Map(), t);
}
-function Lz(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
+function aB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
let a = i?.(e, t, n, r);
if (a !== void 0) return a;
- if (Az(e)) return e;
+ if (Qz(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] = Lz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = aB(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());
@@ -48459,132 +49287,132 @@ function Lz(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, Lz(o, a, n, r, i));
+ for (let [a, o] of e) t.set(a, aB(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(Lz(a, void 0, n, r, i));
+ for (let a of e) t.add(aB(a, void 0, n, r, i));
return t;
}
- if (Zpe(e)) return e.subarray();
- if (jpe(e)) {
+ if (bme(e)) return e.subarray();
+ if (eme(e)) {
let t = new (Object.getPrototypeOf(e)).constructor(e.length);
r.set(e, t);
- for (let a = 0; a < e.length; a++) t[a] = Lz(e[a], a, n, r, i);
+ for (let a = 0; a < e.length; a++) t[a] = aB(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), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(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), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(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), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(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, Rz(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, oB(t, e, n, r, i), t;
}
if (e instanceof Boolean) {
let t = new Boolean(e.valueOf());
- return r.set(e, t), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(t, e, n, r, i), t;
}
if (e instanceof Number) {
let t = new Number(e.valueOf());
- return r.set(e, t), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(t, e, n, r, i), t;
}
if (e instanceof String) {
let t = new String(e.valueOf());
- return r.set(e, t), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(t, e, n, r, i), t;
}
- if (typeof e == "object" && $pe(e)) {
+ if (typeof e == "object" && Sme(e)) {
let t = Object.create(Object.getPrototypeOf(e));
- return r.set(e, t), Rz(t, e, n, r, i), t;
+ return r.set(e, t), oB(t, e, n, r, i), t;
}
return e;
}
-function Rz(e, t, n = e, r, i) {
- let a = [...Object.keys(t), ...Mpe(t)];
+function oB(e, t, n = e, r, i) {
+ let a = [...Object.keys(t), ...tme(t)];
for (let o = 0; o < a.length; o++) {
let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
- (c == null || c.writable) && (e[s] = Lz(t[s], s, n, r, i));
- }
-}
-function $pe(e) {
- switch (jz(e)) {
- case Fz:
- case Rpe:
- case zpe:
- case Vpe:
- case Pz:
- case Fpe:
- case Ype:
- case Xpe:
- case Kpe:
- case qpe:
- case Jpe:
- case Ipe:
- case Nz:
- case Bpe:
- case Npe:
- case Lpe:
- case Mz:
- case Ppe:
- case Hpe:
- case Upe:
- case Wpe:
- case Gpe: return !0;
+ (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;
default: return !1;
}
}
//#endregion
//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs
-function eme(e) {
- return Lz(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
+function Cme(e) {
+ return aB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/eq.mjs
-function zz(e, t) {
+function sB(e, t) {
return e === t || Number.isNaN(e) && Number.isNaN(t);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
-function Bz(e) {
+function cB(e) {
return e !== null && (typeof e == "object" || typeof e == "function");
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs
-function Vz(e, t, n) {
- return typeof n == "function" ? Hz(e, t, function e(t, r, i, a, o, s) {
+function lB(e, t, n) {
+ return typeof n == "function" ? uB(e, t, function e(t, r, i, a, o, s) {
let c = n(t, r, i, a, o, s);
- return c === void 0 ? Hz(t, r, e, s, !1) : !!c;
- }, /* @__PURE__ */ new Map(), !0) : Vz(e, t, () => void 0);
+ return c === void 0 ? uB(t, r, e, s, !1) : !!c;
+ }, /* @__PURE__ */ new Map(), !0) : lB(e, t, () => void 0);
}
-function Hz(e, t, n, r, i = !1) {
+function uB(e, t, n, r, i = !1) {
if (t === e) return !0;
switch (typeof t) {
- case "object": return tme(e, t, n, r, i);
- case "function": return Object.keys(t).length > 0 ? Hz(e, { ...t }, n, r, i) : zz(e, t);
- default: return Bz(e) && i ? typeof t != "string" || t === "" : zz(e, 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);
}
}
-function tme(e, t, n, r, i = !1) {
+function wme(e, t, n, r, i = !1) {
if (t == null) return !0;
- if (Array.isArray(t)) return Uz(e, t, n, r);
- if (t instanceof Map) return nme(e, t, n, r);
- if (t instanceof Set) return rme(e, t, n, r);
+ 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);
let a = Object.keys(t);
if (e == null) return i && a.length === 0;
- if (i) Az(e) && (e = Object(e));
+ if (i) Qz(e) && (e = Object(e));
else {
- let t = jz(e);
+ let t = $z(e);
if (t !== "[object Object]" && t !== "[object Arguments]") return !1;
}
if (a.length === 0) return !0;
@@ -48600,13 +49428,13 @@ function tme(e, t, n, r, i = !1) {
r?.delete(t);
}
}
-function nme(e, t, n, r) {
+function Tme(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 Uz(e, t, n, r) {
+function dB(e, t, n, r) {
if (t.length === 0) return !0;
if (!Array.isArray(e)) return !1;
let i = /* @__PURE__ */ new Set();
@@ -48624,40 +49452,40 @@ function Uz(e, t, n, r) {
}
return !0;
}
-function rme(e, t, n, r) {
- return t.size === 0 || e instanceof Set && Uz([...e], [...t], n, r);
+function Eme(e, t, n, r) {
+ return t.size === 0 || e instanceof Set && dB([...e], [...t], n, r);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs
-function Wz(e, t) {
- return Vz(e, t, () => void 0);
+function fB(e, t) {
+ return lB(e, t, () => void 0);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs
-function ime(e) {
- return e = eme(e), (t) => Wz(t, e);
+function Dme(e) {
+ return e = Cme(e), (t) => fB(t, e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
-function ame(e, t) {
- return Qpe(e, (n, r, i, a) => {
+function Ome(e, t) {
+ return xme(e, (n, r, i, a) => {
let o = t?.(n, r, i, a);
if (o !== void 0) return o;
if (typeof e == "object") {
- if (jz(e) === "[object Object]" && typeof e.constructor != "function") {
+ if ($z(e) === "[object Object]" && typeof e.constructor != "function") {
let t = {};
- return a.set(e, t), Rz(t, e, i, a), t;
+ return a.set(e, t), oB(t, e, i, a), t;
}
switch (Object.prototype.toString.call(e)) {
- case Nz:
- case Mz:
- case Pz: {
+ case tB:
+ case eB:
+ case nB: {
let t = new e.constructor(e?.valueOf());
- return Rz(t, e), t;
+ return oB(t, e), t;
}
- case Fz: {
+ case rB: {
let t = {};
- return Rz(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
+ return oB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
}
default: return;
}
@@ -48666,79 +49494,79 @@ function ame(e, t) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
-function ome(e) {
- return ame(e);
+function kme(e) {
+ return Ome(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
-var sme = /^(?:0|[1-9]\d*)$/;
-function Gz(e, t = 2 ** 53 - 1) {
+var Ame = /^(?:0|[1-9]\d*)$/;
+function pB(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 sme.test(e);
+ case "string": return Ame.test(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
-function cme(e) {
- return typeof e == "object" && !!e && jz(e) === "[object Arguments]";
+function jme(e) {
+ return typeof e == "object" && !!e && $z(e) === "[object Arguments]";
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/object/has.mjs
-function lme(e, t) {
+function Mme(e, t) {
let n;
- if (n = Array.isArray(t) ? t : typeof t == "string" && qR(t) && !(t in Object(e)) ? ZR(t) : [t], n.length === 0) return !1;
+ if (n = Array.isArray(t) ? t : typeof t == "string" && hz(t) && !(t in Object(e)) ? yz(t) : [t], n.length === 0) return !1;
let r = e;
for (let e = 0; e < n.length; e++) {
- let t = JR(n[e]);
- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || cme(r)) && Gz(t) && Number(t) < r.length)) return !1;
+ 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;
r = r[t];
}
return !0;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs
-function ume(e, t) {
+function Nme(e, t) {
switch (typeof e) {
case "object":
Object.is(e?.valueOf(), -0) && (e = "-0");
break;
- case "number": e = JR(e);
+ case "number": e = gz(e);
}
- return t = ome(t), function(n) {
- let r = QR(n, e);
- return r === void 0 ? lme(n, e) : t === void 0 ? r === void 0 : Wz(r, t);
+ 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);
};
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs
-function Kz(e) {
- if (e == null) return Oz;
+function mB(e) {
+ if (e == null) return Xz;
switch (typeof e) {
case "function": return e;
- case "object": return Array.isArray(e) && e.length === 2 ? ume(e[0], e[1]) : ime(e);
- default: return Ape(e);
+ case "object": return Array.isArray(e) && e.length === 2 ? Nme(e[0], e[1]) : Dme(e);
+ default: return $pe(e);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs
-function dme(e) {
+function Pme(e) {
return e === 0 ? 0 : e;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs
-function qz(e, t = Oz) {
- return kz(e) ? Dpe(Array.from(e), Ope(Kz(t), 1)).map(dme) : [];
+function hB(e, t = Xz) {
+ return Zz(e) ? Xpe(Array.from(e), Zpe(mB(t), 1)).map(Pme) : [];
}
//#endregion
//#region node_modules/recharts/es6/util/payload/getUniqPayload.js
-function Jz(e, t, n) {
- return t === !0 ? qz(e, n) : typeof t == "function" ? qz(e, t) : e;
+function gB(e, t, n) {
+ return t === !0 ? hB(e, n) : typeof t == "function" ? hB(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 Fme = /* @__PURE__ */ F(((e) => {
var t = oe(), n = Sh();
function r(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
@@ -48783,60 +49611,60 @@ var fme = /* @__PURE__ */ F(((e) => {
f.hasValue = !0, f.value = p;
}, [p]), l(p), p;
};
-})), pme = /* @__PURE__ */ F(((e, t) => {
- t.exports = fme();
-})), Yz = /*#__PURE__*/ (0, I.createContext)(null), mme = pme(), hme = (e) => e, Xz = () => {
- var e = (0, I.useContext)(Yz);
- return e ? e.store.dispatch : hme;
-}, Zz = () => {}, gme = () => Zz, _me = (e, t) => e === t;
+})), 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;
function Q(e) {
- var t = (0, I.useContext)(Yz), n = (0, I.useMemo)(() => t ? (t) => {
+ var t = (0, I.useContext)(_B), n = (0, I.useMemo)(() => t ? (t) => {
if (t != null) return e(t);
- } : Zz, [t, e]);
- return (0, mme.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : gme, t ? t.store.getState : Zz, t ? t.store.getState : Zz, n, _me);
+ } : yB, [t, e]);
+ return (0, Lme.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : zme, t ? t.store.getState : yB, t ? t.store.getState : yB, n, Bme);
}
//#endregion
//#region node_modules/reselect/dist/reselect.mjs
-function vme(e, t = `expected a function, instead received ${typeof e}`) {
+function Vme(e, t = `expected a function, instead received ${typeof e}`) {
if (typeof e != "function") throw TypeError(t);
}
-function yme(e, t = `expected an object, instead received ${typeof e}`) {
+function Hme(e, t = `expected an object, instead received ${typeof e}`) {
if (typeof e != "object") throw TypeError(t);
}
-function bme(e, t = "expected all items to be functions, instead received the following types: ") {
+function Ume(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 Qz = (e) => Array.isArray(e) ? e : [e];
-function xme(e) {
+var bB = (e) => Array.isArray(e) ? e : [e];
+function Wme(e) {
let t = Array.isArray(e[0]) ? e[0] : e;
- return bme(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
+ return Ume(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;
}
-function Sme(e, t) {
+function Gme(e, t) {
let n = [], { length: r } = e;
for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));
return n;
}
-var Cme = class {
+var Kme = class {
constructor(e) {
this.value = e;
}
deref() {
return this.value;
}
-}, wme = typeof WeakRef < "u" ? WeakRef : Cme, Tme = 0, $z = 1;
-function eB() {
+}, qme = typeof WeakRef < "u" ? WeakRef : Kme, Jme = 0, xB = 1;
+function SB() {
return {
- s: Tme,
+ s: Jme,
v: void 0,
o: null,
p: null
};
}
-function tB(e, t = {}) {
- let n = eB(), { resultEqualityCheck: r } = t, i, a = 0;
+function CB(e, t = {}) {
+ let n = SB(), { resultEqualityCheck: r } = t, i, a = 0;
function o() {
let t = n, { length: o } = arguments;
for (let e = 0, n = o; e < n; e++) {
@@ -48845,43 +49673,43 @@ function tB(e, t = {}) {
let e = t.o;
e === null && (t.o = e = /* @__PURE__ */ new WeakMap());
let r = e.get(n);
- r === void 0 ? (t = eB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = SB(), 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 = eB(), e.set(n, t)) : t = r;
+ r === void 0 ? (t = SB(), e.set(n, t)) : t = r;
}
}
let s = t, c;
- if (t.s === $z) c = t.v;
+ if (t.s === xB) 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 wme(c) : c;
+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new qme(c) : c;
}
- return s.s = $z, s.v = c, c;
+ return s.s = xB, s.v = c, c;
}
return o.clearCache = () => {
- n = eB(), o.resetResultsCount();
+ n = SB(), o.resetResultsCount();
}, o.resultsCount = () => a, o.resetResultsCount = () => {
a = 0;
}, o;
}
-function Eme(e, ...t) {
+function Yme(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 = tB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {
+ 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 = {} } = {
...n,
...a
- }, f = Qz(c), p = Qz(u), m = xme(e), h = s(function() {
+ }, f = bB(c), p = bB(u), m = Wme(e), h = s(function() {
return t++, o.apply(null, arguments);
}, ...f), g = l(function() {
r++;
- let e = Sme(m, arguments);
+ let e = Gme(m, arguments);
return i = h.apply(null, e), i;
}, ...p);
return Object.assign(g, {
@@ -48903,14 +49731,14 @@ function Eme(e, ...t) {
};
return Object.assign(r, { withTypes: () => r }), r;
}
-var $ = /* @__PURE__ */ Eme(tB), Dme = Object.assign((e, t = $) => {
- yme(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);
+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}`);
let n = Object.keys(e);
return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));
-}, { withTypes: () => Dme });
+}, { withTypes: () => Xme });
//#endregion
//#region node_modules/es-toolkit/dist/array/flatten.mjs
-function Ome(e, t = 1) {
+function Zme(e, t = 1) {
let n = [], r = Math.floor(t), i = (e, t) => {
for (let a = 0; a < e.length; a++) {
let o = e[a];
@@ -48921,17 +49749,17 @@ function Ome(e, t = 1) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
-function nB(e, t, n) {
- return Bz(n) && (typeof t == "number" && kz(n) && Gz(t) && t < n.length || typeof t == "string" && t in n) ? zz(n[t], e) : !1;
+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;
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
-function rB(e) {
+function TB(e) {
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
}
-var kme = (e, t, n) => {
+var Qme = (e, t, n) => {
if (e !== t) {
- let r = rB(e), i = rB(t);
+ let r = TB(e), i = TB(t);
if (r === i && r === 0) {
if (e < t) return n === "desc" ? 1 : -1;
if (e > t) return n === "desc" ? -1 : 1;
@@ -48939,15 +49767,15 @@ var kme = (e, t, n) => {
return n === "desc" ? i - r : r - i;
}
return 0;
-}, Ame = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, jme = /^\w*$/;
-function Mme(e, t) {
- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || YR(e) ? !0 : typeof e == "string" && (jme.test(e) || !Ame.test(e)) || t != null && Object.hasOwn(t, e);
+}, $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);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs
-function Nme(e, t, n, r) {
+function nhe(e, t, n, r) {
if (e == null) return [];
- n = r ? void 0 : n, Array.isArray(e) || (e = kz(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 = 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));
let i = (e, t) => {
let n = e, r = 0;
for (; r < t.length && n != null; ++r) n = n[t[r]];
@@ -48955,16 +49783,16 @@ function Nme(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) || Mme(e) ? 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 : {
key: e,
- path: ZR(e)
+ path: yz(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 = kme(e.criteria[r], t.criteria[r], n[r]);
+ let i = Qme(e.criteria[r], t.criteria[r], n[r]);
if (i !== 0) return i;
}
return 0;
@@ -48972,25 +49800,25 @@ function Nme(e, t, n, r) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs
-function iB(e, ...t) {
+function EB(e, ...t) {
let n = t.length;
- return n > 1 && nB(e, t[0], t[1]) ? t = [] : n > 2 && nB(t[0], t[1], t[2]) && (t = [t[0]]), Nme(e, Ome(t), ["asc"]);
+ 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"]);
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/legendSelectors.js
-var aB = (e) => e.legend.settings, Pme = (e) => e.legend.size, Fme = $([(e) => e.legend.payload, aB], (e, t) => {
+var DB = (e) => e.legend.settings, rhe = (e) => e.legend.size, ihe = $([(e) => e.legend.payload, DB], (e, t) => {
var { itemSorter: n } = t, r = e.flat(1);
- return n ? iB(r, n) : r;
+ return n ? EB(r, n) : r;
});
//#endregion
//#region node_modules/recharts/es6/context/legendPayloadContext.js
-function Ime() {
- return Q(Fme);
+function ahe() {
+ return Q(ihe);
}
//#endregion
//#region node_modules/recharts/es6/util/useElementOffset.js
-var oB = 1;
-function sB() {
+var OB = 1;
+function kB() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, I.useState)({
height: 0,
left: 0,
@@ -49005,7 +49833,7 @@ function sB() {
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) > OB || Math.abs(i.left - t.left) > OB || Math.abs(i.top - t.top) > OB || Math.abs(i.width - t.width) > OB) && n({
height: i.height,
left: i.left,
top: i.top,
@@ -49022,26 +49850,26 @@ function sB() {
}
//#endregion
//#region node_modules/redux/dist/redux.mjs
-function cB(e) {
+function AB(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 lB = typeof Symbol == "function" && Symbol.observable || "@@observable", uB = () => Math.random().toString(36).substring(7).split("").join("."), dB = {
- INIT: `@@redux/INIT${/* @__PURE__ */ uB()}`,
- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ uB()}`,
- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${uB()}`
+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()}`
};
-function fB(e) {
+function PB(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 pB(e, t, n) {
- if (typeof e != "function") throw Error(cB(2));
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(cB(0));
+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));
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
- if (typeof n != "function") throw Error(cB(1));
- return n(pB)(e, t);
+ if (typeof n != "function") throw Error(AB(1));
+ return n(FB)(e, t);
}
let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;
function l() {
@@ -49050,27 +49878,27 @@ function pB(e, t, n) {
}));
}
function u() {
- if (c) throw Error(cB(3));
+ if (c) throw Error(AB(3));
return i;
}
function d(e) {
- if (typeof e != "function") throw Error(cB(4));
- if (c) throw Error(cB(5));
+ if (typeof e != "function") throw Error(AB(4));
+ if (c) throw Error(AB(5));
let t = !0;
l();
let n = s++;
return o.set(n, e), function() {
if (t) {
- if (c) throw Error(cB(6));
+ if (c) throw Error(AB(6));
t = !1, l(), o.delete(n), a = null;
}
};
}
function f(e) {
- if (!fB(e)) throw Error(cB(7));
- if (e.type === void 0) throw Error(cB(8));
- if (typeof e.type != "string") throw Error(cB(17));
- if (c) throw Error(cB(9));
+ 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));
try {
c = !0, i = r(i, e);
} finally {
@@ -49081,41 +49909,41 @@ function pB(e, t, n) {
}), e;
}
function p(e) {
- if (typeof e != "function") throw Error(cB(10));
- r = e, f({ type: dB.REPLACE });
+ if (typeof e != "function") throw Error(AB(10));
+ r = e, f({ type: NB.REPLACE });
}
function m() {
let e = d;
return {
subscribe(t) {
- if (typeof t != "object" || !t) throw Error(cB(11));
+ if (typeof t != "object" || !t) throw Error(AB(11));
function n() {
let e = t;
e.next && e.next(u());
}
return n(), { unsubscribe: e(n) };
},
- [lB]() {
+ [jB]() {
return this;
}
};
}
- return f({ type: dB.INIT }), {
+ return f({ type: NB.INIT }), {
dispatch: f,
subscribe: d,
getState: u,
replaceReducer: p,
- [lB]: m
+ [jB]: m
};
}
-function Lme(e) {
+function ohe(e) {
Object.keys(e).forEach((t) => {
let n = e[t];
- if (n(void 0, { type: dB.INIT }) === void 0) throw Error(cB(12));
- if (n(void 0, { type: dB.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(cB(13));
+ 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));
});
}
-function mB(e) {
+function IB(e) {
let t = Object.keys(e), n = {};
for (let r = 0; r < t.length; r++) {
let i = t[r];
@@ -49123,7 +49951,7 @@ function mB(e) {
}
let r = Object.keys(n), i;
try {
- Lme(n);
+ ohe(n);
} catch (e) {
i = e;
}
@@ -49132,124 +49960,124 @@ function mB(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(cB(14));
+ if (u === void 0) throw t && t.type, Error(AB(14));
o[s] = u, a ||= u !== l;
}
return a ||= r.length !== Object.keys(e).length, a ? o : e;
};
}
-function hB(...e) {
+function LB(...e) {
return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));
}
-function Rme(...e) {
+function she(...e) {
return (t) => (n, r) => {
let i = t(n, r), a = () => {
- throw Error(cB(15));
+ throw Error(AB(15));
}, o = {
getState: i.getState,
dispatch: (e, ...t) => a(e, ...t)
};
- return a = hB(...e.map((e) => e(o)))(i.dispatch), {
+ return a = LB(...e.map((e) => e(o)))(i.dispatch), {
...i,
dispatch: a
};
};
}
-function gB(e) {
- return fB(e) && "type" in e && typeof e.type == "string";
+function RB(e) {
+ return PB(e) && "type" in e && typeof e.type == "string";
}
//#endregion
//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs
-var _B = Symbol.for("immer-nothing"), vB = Symbol.for("immer-draftable"), yB = Symbol.for("immer-state");
-function bB(e, ...t) {
+var zB = Symbol.for("immer-nothing"), BB = Symbol.for("immer-draftable"), VB = Symbol.for("immer-state");
+function HB(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var xB = Object, SB = xB.getPrototypeOf, CB = "constructor", wB = "prototype", TB = "configurable", EB = "enumerable", DB = "writable", OB = "value", kB = (e) => !!e && !!e[yB];
-function AB(e) {
- return e ? MB(e) || RB(e) || !!e[vB] || !!e[CB]?.[vB] || zB(e) || BB(e) : !1;
-}
-var zme = xB[wB][CB].toString(), jB = /* @__PURE__ */ new WeakMap();
-function MB(e) {
- if (!e || !VB(e)) return !1;
- let t = SB(e);
- if (t === null || t === xB[wB]) return !0;
- let n = xB.hasOwnProperty.call(t, CB) && t[CB];
+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 $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];
if (n === Object) return !0;
- if (!HB(n)) return !1;
- let r = jB.get(n);
- return r === void 0 && (r = Function.toString.call(n), jB.set(n, r)), r === zme;
+ 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;
}
-function NB(e, t, n = !0) {
- PB(e) === 0 ? (n ? Reflect.ownKeys(e) : xB.keys(e)).forEach((n) => {
+function nV(e, t, n = !0) {
+ rV(e) === 0 ? (n ? Reflect.ownKeys(e) : UB.keys(e)).forEach((n) => {
t(n, e[n], e);
}) : e.forEach((n, r) => t(r, n, e));
}
-function PB(e) {
- let t = e[yB];
- return t ? t.type_ : RB(e) ? 1 : zB(e) ? 2 : BB(e) ? 3 : 0;
+function rV(e) {
+ let t = e[VB];
+ return t ? t.type_ : cV(e) ? 1 : lV(e) ? 2 : uV(e) ? 3 : 0;
}
-var FB = (e, t, n = PB(e)) => n === 2 ? e.has(t) : xB[wB].hasOwnProperty.call(e, t), IB = (e, t, n = PB(e)) => n === 2 ? e.get(t) : e[t], LB = (e, t, n, r = PB(e)) => {
+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)) => {
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
};
-function Bme(e, t) {
+function sV(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-var RB = Array.isArray, zB = (e) => e instanceof Map, BB = (e) => e instanceof Set, VB = (e) => typeof e == "object", HB = (e) => typeof e == "function", UB = (e) => typeof e == "boolean";
-function Vme(e) {
+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) {
let t = +e;
return Number.isInteger(t) && String(t) === e;
}
-var WB = (e) => e.copy_ || e.base_, GB = (e) => e.modified_ ? e.copy_ : e.base_;
-function KB(e, t) {
- if (zB(e)) return new Map(e);
- if (BB(e)) return new Set(e);
- if (RB(e)) return Array[wB].slice.call(e);
- let n = MB(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);
if (t === !0 || t === "class_only" && !n) {
- let t = xB.getOwnPropertyDescriptors(e);
- delete t[yB];
+ let t = UB.getOwnPropertyDescriptors(e);
+ delete t[VB];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
- a[DB] === !1 && (a[DB] = !0, a[TB] = !0), (a.get || a.set) && (t[i] = {
- [TB]: !0,
- [DB]: !0,
- [EB]: a[EB],
- [OB]: e[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]
});
}
- return xB.create(SB(e), t);
+ return UB.create(WB(e), t);
}
{
- let t = SB(e);
+ let t = WB(e);
if (t !== null && n) return { ...e };
- let r = xB.create(t);
- return xB.assign(r, e);
- }
-}
-function qB(e, t = !1) {
- return YB(e) || kB(e) || !AB(e) ? e : (PB(e) > 1 && xB.defineProperties(e, {
- set: JB,
- add: JB,
- clear: JB,
- delete: JB
- }), xB.freeze(e), t && NB(e, (e, t) => {
- qB(t, !0);
+ 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);
}, !1), e);
}
-function Hme() {
- bB(2);
+function yV() {
+ HB(2);
}
-var JB = { [OB]: Hme };
-function YB(e) {
- return e === null || !VB(e) || xB.isFrozen(e);
+var bV = { [XB]: yV };
+function xV(e) {
+ return e === null || !dV(e) || UB.isFrozen(e);
}
-var XB = "MapSet", ZB = "Patches", QB = "ArrayMethods", $B = {};
-function eV(e) {
- let t = $B[e];
- return t || bB(0, e), t;
+var SV = "MapSet", CV = "Patches", wV = "ArrayMethods", TV = {};
+function EV(e) {
+ let t = TV[e];
+ return t || HB(0, e), t;
}
-var tV = (e) => !!$B[e], nV, rV = () => nV, iV = (e, t) => ({
+var DV = (e) => !!TV[e], OV, kV = () => OV, AV = (e, t) => ({
drafts_: [],
parent_: e,
immer_: t,
@@ -49257,114 +50085,114 @@ var tV = (e) => !!$B[e], nV, rV = () => nV, iV = (e, t) => ({
unfinalizedDrafts_: 0,
handledSet_: /* @__PURE__ */ new Set(),
processedForPatches_: /* @__PURE__ */ new Set(),
- mapSetPlugin_: tV(XB) ? eV(XB) : void 0,
- arrayMethodsPlugin_: tV(QB) ? eV(QB) : void 0
+ mapSetPlugin_: DV(SV) ? EV(SV) : void 0,
+ arrayMethodsPlugin_: DV(wV) ? EV(wV) : void 0
});
-function aV(e, t) {
- t && (e.patchPlugin_ = eV(ZB), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function jV(e, t) {
+ t && (e.patchPlugin_ = EV(CV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function oV(e) {
- sV(e), e.drafts_.forEach(lV), e.drafts_ = null;
+function MV(e) {
+ NV(e), e.drafts_.forEach(FV), e.drafts_ = null;
}
-function sV(e) {
- e === nV && (nV = e.parent_);
+function NV(e) {
+ e === OV && (OV = e.parent_);
}
-var cV = (e) => nV = iV(nV, e);
-function lV(e) {
- let t = e[yB];
+var PV = (e) => OV = AV(OV, e);
+function FV(e) {
+ let t = e[VB];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function uV(e, t) {
+function IV(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
if (e !== void 0 && e !== n) {
- n[yB].modified_ && (oV(t), bB(4)), AB(e) && (e = dV(t, e));
+ n[VB].modified_ && (MV(t), HB(4)), QB(e) && (e = LV(t, e));
let { patchPlugin_: r } = t;
- r && r.generateReplacementPatches_(n[yB].base_, e, t);
- } else e = dV(t, n);
- return fV(t, e, !0), oV(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === _B ? void 0 : e;
-}
-function dV(e, t) {
- if (YB(t)) return t;
- let n = t[yB];
- if (!n) return bV(t, e.handledSet_, e);
- if (!mV(n, e)) return 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;
if (!n.modified_) return n.base_;
if (!n.finalized_) {
let { callbacks_: t } = n;
if (t) for (; t.length > 0;) t.pop()(e);
- vV(n, e);
+ WV(n, e);
}
return n.copy_;
}
-function fV(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && qB(t, n);
+function RV(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && vV(t, n);
}
-function pV(e) {
+function zV(e) {
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
}
-var mV = (e, t) => e.scope_ === t, hV = [];
-function gV(e, t, n, r) {
- let i = WB(e), a = e.type_;
- if (r !== void 0 && IB(i, r, a) === t) {
- LB(i, r, n, a);
+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);
return;
}
if (!e.draftLocations_) {
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
- NB(i, (e, n) => {
- if (kB(n)) {
+ nV(i, (e, n) => {
+ if (ZB(n)) {
let r = t.get(n) || [];
r.push(e), t.set(n, r);
}
});
}
- let o = e.draftLocations_.get(t) ?? hV;
- for (let e of o) LB(i, e, n, a);
+ let o = e.draftLocations_.get(t) ?? VV;
+ for (let e of o) oV(i, e, n, a);
}
-function _V(e, t, n) {
+function UV(e, t, n) {
e.callbacks_.push(function(r) {
let i = t;
- if (!i || !mV(i, r)) return;
+ if (!i || !BV(i, r)) return;
r.mapSetPlugin_?.fixSetContents(i);
- let a = GB(i);
- gV(e, i.draft_ ?? i, a, n), vV(i, r);
+ let a = gV(i);
+ HV(e, i.draft_ ?? i, a, n), WV(i, r);
});
}
-function vV(e, t) {
+function WV(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);
}
- pV(e);
+ zV(e);
}
}
-function yV(e, t, n) {
+function GV(e, t, n) {
let { scope_: r } = e;
- if (kB(n)) {
- let i = n[yB];
- mV(i, r) && i.callbacks_.push(function() {
- kV(e), gV(e, n, GB(i), t);
+ if (ZB(n)) {
+ let i = n[VB];
+ BV(i, r) && i.callbacks_.push(function() {
+ tH(e), HV(e, n, gV(i), t);
});
- } else AB(n) && e.callbacks_.push(function() {
- let i = WB(e);
- e.type_ === 3 ? i.has(n) && bV(n, r.handledSet_, r) : IB(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && bV(IB(e.copy_, t, e.type_), r.handledSet_, r);
+ } 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);
});
}
-function bV(e, t, n) {
- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || kB(e) || t.has(e) || !AB(e) || YB(e) ? e : (t.add(e), NB(e, (r, i) => {
- if (kB(i)) {
- let t = i[yB];
- mV(t, n) && (LB(e, r, GB(t), e.type_), pV(t));
- } else AB(i) && bV(i, t, n);
+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);
}), e);
}
-function xV(e, t) {
- let n = RB(e), r = {
+function qV(e, t) {
+ let n = cV(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : rV(),
+ scope_: t ? t.scope_ : kV(),
modified_: !1,
finalized_: !1,
assigned_: void 0,
@@ -49375,108 +50203,108 @@ function xV(e, t) {
revoke_: null,
isManual_: !1,
callbacks_: void 0
- }, i = r, a = SV;
- n && (i = [r], a = CV);
+ }, i = r, a = JV;
+ n && (i = [r], a = YV);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, [s, r];
}
-var SV = {
+var JV = {
get(e, t) {
- if (t === yB) return e;
+ if (t === VB) 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 = WB(e);
- if (!FB(i, t, e.type_)) return EV(e, i, t);
+ let i = hV(e);
+ if (!iV(i, t, e.type_)) return QV(e, i, t);
let a = i[t];
- if (e.finalized_ || !AB(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && Vme(t)) return a;
- if (a === wV(e.base_, t) || TV(e, t, a)) {
- kV(e);
- let n = e.type_ === 1 ? +t : t, r = jV(e.scope_, a, e, n);
+ 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);
return e.copy_[n] = r;
}
return a;
},
has(e, t) {
- return t in WB(e);
+ return t in hV(e);
},
ownKeys(e) {
- return Reflect.ownKeys(WB(e));
+ return Reflect.ownKeys(hV(e));
},
set(e, t, n) {
- let r = DV(WB(e), t);
+ let r = $V(hV(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = wV(WB(e), t), i = r?.[yB];
+ let r = XV(hV(e), t), i = r?.[VB];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
- if (Bme(n, r) && (n !== void 0 || FB(e.base_, t, e.type_))) return !0;
- kV(e), OV(e);
+ if (sV(n, r) && (n !== void 0 || iV(e.base_, t, e.type_))) return !0;
+ tH(e), eH(e);
}
- return e.copy_[t] === n && (n !== void 0 || FB(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), yV(e, t, n), !0);
+ 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);
},
deleteProperty(e, t) {
- return kV(e), wV(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), OV(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
+ 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;
},
getOwnPropertyDescriptor(e, t) {
- let n = WB(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = hV(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
- [DB]: !0,
- [TB]: e.type_ !== 1 || t !== "length",
- [EB]: r[EB],
- [OB]: n[t]
+ [YB]: !0,
+ [qB]: e.type_ !== 1 || t !== "length",
+ [JB]: r[JB],
+ [XB]: n[t]
};
},
defineProperty() {
- bB(11);
+ HB(11);
},
getPrototypeOf(e) {
- return SB(e.base_);
+ return WB(e.base_);
},
setPrototypeOf() {
- bB(12);
+ HB(12);
}
-}, CV = {};
-for (let e in SV) {
- let t = SV[e];
- CV[e] = function() {
+}, YV = {};
+for (let e in JV) {
+ let t = JV[e];
+ YV[e] = function() {
let e = arguments;
return e[0] = e[0][0], t.apply(this, e);
};
}
-CV.deleteProperty = function(e, t) {
- return CV.set.call(this, e, t, void 0);
-}, CV.set = function(e, t, n) {
- return SV.set.call(this, e[0], t, n, e[0]);
+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]);
};
-function wV(e, t) {
- let n = e[yB];
- return (n ? WB(n) : e)[t];
+function XV(e, t) {
+ let n = e[VB];
+ return (n ? hV(n) : e)[t];
}
-function TV(e, t, n) {
- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !AB(n) || n[yB] ? !1 : e.baseRefs_.has(n);
+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 EV(e, t, n) {
- let r = DV(t, n);
- return r ? OB in r ? r[OB] : r.get?.call(e.draft_) : void 0;
+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 DV(e, t) {
+function $V(e, t) {
if (!(t in e)) return;
- let n = SB(e);
+ let n = WB(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = SB(n);
+ n = WB(n);
}
}
-function OV(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && OV(e.parent_));
+function eH(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && eH(e.parent_));
}
-function kV(e) {
- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), KB(e.base_, e.scope_.immer_.useStrictShallowCopy_));
+function tH(e) {
+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), _V(e.base_, e.scope_.immer_.useStrictShallowCopy_));
}
-var AV = class {
+var nH = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
- if (HB(e) && !HB(t)) {
+ if (fV(e) && !fV(t)) {
let n = t;
t = e;
let r = this;
@@ -49484,30 +50312,30 @@ var AV = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- HB(t) || bB(6), n !== void 0 && !HB(n) && bB(7);
+ fV(t) || HB(6), n !== void 0 && !fV(n) && HB(7);
let r;
- if (AB(e)) {
- let i = cV(this), a = jV(i, e, void 0), o = !0;
+ if (QB(e)) {
+ let i = PV(this), a = rH(i, e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? oV(i) : sV(i);
+ o ? MV(i) : NV(i);
}
- return aV(i, n), uV(r, i);
+ return jV(i, n), IV(r, i);
}
- if (!e || !VB(e)) {
- if (r = t(e), r === void 0 && (r = e), r === _B && (r = void 0), this.autoFreeze_ && qB(r, !0), n) {
+ if (!e || !dV(e)) {
+ if (r = t(e), r === void 0 && (r = e), r === zB && (r = void 0), this.autoFreeze_ && vV(r, !0), n) {
let t = [], i = [];
- eV(ZB).generateReplacementPatches_(e, r, {
+ EV(CV).generateReplacementPatches_(e, r, {
patches_: t,
inversePatches_: i
}), n(t, i);
}
return r;
}
- bB(1, e);
+ HB(1, e);
}, this.produceWithPatches = (e, t) => {
- if (HB(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
+ if (fV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
return [
this.produce(e, t, (e, t) => {
@@ -49516,18 +50344,18 @@ var AV = class {
n,
r
];
- }, UB(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), UB(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), UB(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
+ }, pV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), pV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), pV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
}
createDraft(e) {
- AB(e) || bB(8), kB(e) && (e = MV(e));
- let t = cV(this), n = jV(t, e, void 0);
- return n[yB].isManual_ = !0, sV(t), n;
+ 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;
}
finishDraft(e, t) {
- let n = e && e[yB];
- (!n || !n.isManual_) && bB(9);
+ let n = e && e[VB];
+ (!n || !n.isManual_) && HB(9);
let { scope_: r } = n;
- return aV(r, t), uV(void 0, r);
+ return jV(r, t), IV(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -49551,48 +50379,48 @@ var AV = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = eV(ZB).applyPatches_;
- return kB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = EV(CV).applyPatches_;
+ return ZB(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function jV(e, t, n, r) {
- let [i, a] = zB(t) ? eV(XB).proxyMap_(t, n) : BB(t) ? eV(XB).proxySet_(t, n) : xV(t, n);
- return (n?.scope_ ?? rV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? _V(n, a, r) : a.callbacks_.push(function(e) {
+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) {
e.mapSetPlugin_?.fixSetContents(a);
let { patchPlugin_: t } = e;
a.modified_ && t && t.generatePatches_(a, [], e);
}), i;
}
-function MV(e) {
- return kB(e) || bB(10, e), NV(e);
+function iH(e) {
+ return ZB(e) || HB(10, e), aH(e);
}
-function NV(e) {
- if (!AB(e) || YB(e)) return e;
- let t = e[yB], n, r = !0;
+function aH(e) {
+ if (!QB(e) || xV(e)) return e;
+ let t = e[VB], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = KB(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = KB(e, !0);
- return NB(n, (e, t) => {
- LB(n, e, NV(t));
+ 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));
}, r), t && (t.finalized_ = !1), n;
}
globalThis.Iterator?.from;
-var PV = new AV().produce;
+var oH = new nH().produce;
//#endregion
//#region node_modules/redux-thunk/dist/redux-thunk.mjs
-function FV(e) {
+function sH(e) {
return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);
}
-var IV = FV(), LV = FV, RV = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? hB : hB.apply(null, arguments);
+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);
};
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
-function zV(e, t) {
+function dH(e, t) {
function n(...n) {
if (t) {
let r = t(...n);
- if (!r) throw Error(JH(0));
+ if (!r) throw Error(bU(0));
return {
type: e,
payload: r.payload,
@@ -49605,9 +50433,9 @@ function zV(e, t) {
payload: n[0]
};
}
- return n.toString = () => `${e}`, n.type = e, n.match = (t) => gB(t) && t.type === e, n;
+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => RB(t) && t.type === e, n;
}
-var BV = class e extends Array {
+var fH = class e extends Array {
constructor(...t) {
super(...t), Object.setPrototypeOf(this, e.prototype);
}
@@ -49621,29 +50449,29 @@ var BV = class e extends Array {
return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));
}
};
-function VV(e) {
- return AB(e) ? PV(e, () => {}) : e;
+function pH(e) {
+ return QB(e) ? oH(e, () => {}) : e;
}
-function HV(e, t, n) {
+function mH(e, t, n) {
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
}
-function UV(e) {
+function hH(e) {
return typeof e == "boolean";
}
-var WV = () => function(e) {
- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new BV();
- return t && (UV(t) ? a.push(IV) : a.push(LV(t.extraArgument))), a;
-}, GV = "RTK_autoBatch", KV = () => (e) => ({
+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) => ({
payload: e,
- meta: { [GV]: !0 }
-}), qV = (e) => (t) => {
+ meta: { [_H]: !0 }
+}), yH = (e) => (t) => {
setTimeout(t, e);
-}, JV = (e, t) => (n) => {
+}, bH = (e, t) => (n) => {
let r = !1, i = () => {
r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());
}, a = e(i), o = setTimeout(i, t);
-}, YV = (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 ? JV(window.requestAnimationFrame, 100) : qV(10) : e.type === "callback" ? e.queueNotification : qV(e.timeout), l = () => {
+}, 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 = () => {
o = !1, a && (a = !1, s.forEach((e) => e()));
};
return Object.assign({}, r, {
@@ -49655,37 +50483,37 @@ var WV = () => function(e) {
},
dispatch(e) {
try {
- return i = !e?.meta?.[GV], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
+ return i = !e?.meta?.[_H], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);
} finally {
i = !0;
}
}
});
-}, XV = (e) => function(t) {
- let { autoBatch: n = !0 } = t ?? {}, r = new BV(e);
- return n && r.push(YV(typeof n == "object" ? n : void 0)), r;
+}, 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;
};
-function ZV(e) {
- let t = WV(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;
+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;
if (typeof n == "function") c = n;
- else if (fB(n)) c = mB(n);
- else throw Error(JH(1));
+ else if (PB(n)) c = IB(n);
+ else throw Error(bU(1));
let l;
l = typeof r == "function" ? r(t) : t();
- let u = hB;
- i && (u = RV({
+ let u = LB;
+ i && (u = uH({
trace: !1,
...typeof i == "object" && i
}));
- let d = XV(Rme(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
- return pB(c, o, p);
+ let d = SH(she(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);
+ return FB(c, o, p);
}
-function QV(e) {
+function wH(e) {
let t = {}, n = [], r, i = {
addCase(e, n) {
let r = typeof e == "string" ? e : e.type;
- if (!r) throw Error(JH(28));
- if (r in t) throw Error(JH(29));
+ if (!r) throw Error(bU(28));
+ if (r in t) throw Error(bU(29));
return t[r] = n, i;
},
addAsyncThunk(e, r) {
@@ -49710,25 +50538,25 @@ function QV(e) {
r
];
}
-function $V(e) {
+function TH(e) {
return typeof e == "function";
}
-function eH(e, t) {
- let [n, r, i] = QV(t), a;
- if ($V(e)) a = () => VV(e());
+function EH(e, t) {
+ let [n, r, i] = wH(t), a;
+ if (TH(e)) a = () => pH(e());
else {
- let t = VV(e);
+ let t = pH(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 (kB(e)) {
+ if (ZB(e)) {
let r = n(e, t);
return r === void 0 ? e : r;
}
- if (AB(e)) return PV(e, (e) => n(e, t));
+ if (QB(e)) return oH(e, (e) => n(e, t));
{
let r = n(e, t);
if (r === void 0) {
@@ -49743,20 +50571,20 @@ function eH(e, t) {
}
return o.getInitialState = a, o;
}
-var tH = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", nH = (e = 21) => {
+var DH = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", OH = (e = 21) => {
let t = "", n = e;
- for (; n--;) t += tH[Math.random() * 64 | 0];
+ for (; n--;) t += DH[Math.random() * 64 | 0];
return t;
-}, rH = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
-function iH(e, t) {
+}, kH = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
+function AH(e, t) {
return `${e}/${t}`;
}
-function aH({ creators: e } = {}) {
- let t = e?.asyncThunk?.[rH];
+function jH({ creators: e } = {}) {
+ let t = e?.asyncThunk?.[kH];
return function(e) {
let { name: n, reducerPath: r = n } = e;
- if (!n) throw Error(JH(11));
- let i = (typeof e.reducers == "function" ? e.reducers(cH()) : e.reducers) || {}, a = Object.keys(i), o = {
+ if (!n) throw Error(bU(11));
+ let i = (typeof e.reducers == "function" ? e.reducers(PH()) : e.reducers) || {}, a = Object.keys(i), o = {
sliceCaseReducersByName: {},
sliceCaseReducersByType: {},
actionCreators: {},
@@ -49764,8 +50592,8 @@ function aH({ creators: e } = {}) {
}, s = {
addCase(e, t) {
let n = typeof e == "string" ? e : e.type;
- if (!n) throw Error(JH(12));
- if (n in o.sliceCaseReducersByType) throw Error(JH(13));
+ if (!n) throw Error(bU(12));
+ if (n in o.sliceCaseReducersByType) throw Error(bU(13));
return o.sliceCaseReducersByType[n] = t, s;
},
addMatcher(e, t) {
@@ -49784,17 +50612,17 @@ function aH({ creators: e } = {}) {
a.forEach((r) => {
let a = i[r], o = {
reducerName: r,
- type: iH(n, r),
+ type: AH(n, r),
createNotation: typeof e.reducers == "function"
};
- uH(a) ? fH(o, a, s, t) : lH(o, a, s);
+ IH(a) ? RH(o, a, s, t) : FH(o, a, s);
});
function c() {
- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? QV(e.extraReducers) : [e.extraReducers], i = {
+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? wH(e.extraReducers) : [e.extraReducers], i = {
...t,
...o.sliceCaseReducersByType
};
- return eH(e.initialState, (e) => {
+ return EH(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);
@@ -49811,12 +50639,12 @@ function aH({ creators: e } = {}) {
function h(t, n = !1) {
function r(e) {
let i = e[t];
- return i === void 0 && n && (i = HV(d, r, m)), i;
+ return i === void 0 && n && (i = mH(d, r, m)), i;
}
function i(t = l) {
- return HV(HV(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
+ return mH(mH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
let r = {};
- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = oH(a, t, () => HV(d, t, m), n);
+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = MH(a, t, () => mH(d, t, m), n);
return r;
});
}
@@ -49850,15 +50678,15 @@ function aH({ creators: e } = {}) {
return g;
};
}
-function oH(e, t, n, r) {
+function MH(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 sH = /* @__PURE__ */ aH();
-function cH() {
+var NH = /* @__PURE__ */ jH();
+function PH() {
function e(e, t) {
return {
_reducerDefinitionType: "asyncThunk",
@@ -49882,57 +50710,57 @@ function cH() {
asyncThunk: e
};
}
-function lH({ type: e, reducerName: t, createNotation: n }, r, i) {
+function FH({ type: e, reducerName: t, createNotation: n }, r, i) {
let a, o;
if ("reducer" in r) {
- if (n && !dH(r)) throw Error(JH(17));
+ if (n && !LH(r)) throw Error(bU(17));
a = r.reducer, o = r.prepare;
} else a = r;
- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? zV(e, o) : zV(e));
+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? dH(e, o) : dH(e));
}
-function uH(e) {
+function IH(e) {
return e._reducerDefinitionType === "asyncThunk";
}
-function dH(e) {
+function LH(e) {
return e._reducerDefinitionType === "reducerWithPrepare";
}
-function fH({ type: e, reducerName: t }, n, r, i) {
- if (!i) throw Error(JH(18));
+function RH({ type: e, reducerName: t }, n, r, i) {
+ if (!i) throw Error(bU(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 || pH,
- pending: s || pH,
- rejected: c || pH,
- settled: l || pH
+ fulfilled: o || zH,
+ pending: s || zH,
+ rejected: c || zH,
+ settled: l || zH
});
}
-function pH() {}
-var mH = "task", hH = "listener", gH = "completed", _H = "cancelled", vH = `task-${_H}`, yH = `task-${gH}`, bH = `${hH}-${_H}`, xH = `${hH}-${gH}`, SH = class {
+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 {
constructor(e) {
- this.code = e, this.message = `${mH} ${_H} (reason: ${e})`;
+ this.code = e, this.message = `${BH} ${UH} (reason: ${e})`;
}
code;
name = "TaskAbortError";
message;
-}, CH = (e, t) => {
- if (typeof e != "function") throw TypeError(JH(32));
-}, wH = () => {}, TH = (e, t = wH) => (e.catch(t), e), EH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), DH = (e) => {
- if (e.aborted) throw new SH(e.reason);
+}, 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);
};
-function OH(e, t) {
- let n = wH;
+function eU(e, t) {
+ let n = XH;
return new Promise((r, i) => {
- let a = () => i(new SH(e.reason));
+ let a = () => i(new JH(e.reason));
if (e.aborted) {
a();
return;
}
- n = EH(e, a), t.finally(() => n()).then(r, i);
+ n = QH(e, a), t.finally(() => n()).then(r, i);
}).finally(() => {
- n = wH;
+ n = XH;
});
}
-var kH = async (e, t) => {
+var tU = async (e, t) => {
try {
return await Promise.resolve(), {
status: "ok",
@@ -49940,40 +50768,40 @@ var kH = async (e, t) => {
};
} catch (e) {
return {
- status: e instanceof SH ? "cancelled" : "rejected",
+ status: e instanceof JH ? "cancelled" : "rejected",
error: e
};
} finally {
t?.();
}
-}, AH = (e) => (t) => TH(OH(e, t).then((t) => (DH(e), t))), jH = (e) => {
- let t = AH(e);
+}, nU = (e) => (t) => ZH(eU(e, t).then((t) => ($H(e), t))), rU = (e) => {
+ let t = nU(e);
return (e) => t(new Promise((t) => setTimeout(t, e)));
-}, { assign: MH } = Object, NH = {}, PH = "listenerMiddleware", FH = (e, t) => {
- let n = (t) => EH(e, () => t.abort(e.reason));
+}, { assign: iU } = Object, aU = {}, oU = "listenerMiddleware", sU = (e, t) => {
+ let n = (t) => QH(e, () => t.abort(e.reason));
return (r, i) => {
- CH(r, "taskExecutor");
+ YH(r, "taskExecutor");
let a = new AbortController();
n(a);
- let o = kH(async () => {
- DH(e), DH(a.signal);
+ let o = tU(async () => {
+ $H(e), $H(a.signal);
let t = await r({
- pause: AH(a.signal),
- delay: jH(a.signal),
+ pause: nU(a.signal),
+ delay: rU(a.signal),
signal: a.signal
});
- return DH(a.signal), t;
- }, () => a.abort(yH));
- return i?.autoJoin && t.push(o.catch(wH)), {
- result: AH(e)(o),
+ return $H(a.signal), t;
+ }, () => a.abort(GH));
+ return i?.autoJoin && t.push(o.catch(XH)), {
+ result: nU(e)(o),
cancel() {
- a.abort(vH);
+ a.abort(WH);
}
};
};
-}, IH = (e, t) => {
+}, cU = (e, t) => {
let n = async (n, r) => {
- DH(t);
+ $H(t);
let i = () => {}, a = [new Promise((t, r) => {
let a = e({
predicate: n,
@@ -49991,47 +50819,47 @@ var kH = async (e, t) => {
})];
r != null && a.push(new Promise((e) => setTimeout(e, r, null)));
try {
- let e = await OH(t, Promise.race(a));
- return DH(t), e;
+ let e = await eU(t, Promise.race(a));
+ return $H(t), e;
} finally {
i();
}
};
- return ((e, t) => TH(n(e, t)));
-}, LH = (e) => {
+ return ((e, t) => ZH(n(e, t)));
+}, lU = (e) => {
let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;
- if (t) i = zV(t).match;
+ if (t) i = dH(t).match;
else if (n) t = n.type, i = n.match;
else if (r) i = r;
- else if (!i) throw Error(JH(21));
- return CH(a, "options.listener"), {
+ else if (!i) throw Error(bU(21));
+ return YH(a, "options.listener"), {
predicate: i,
type: t,
effect: a
};
-}, RH = /* @__PURE__ */ MH((e) => {
- let { type: t, predicate: n, effect: r } = LH(e);
+}, uU = /* @__PURE__ */ iU((e) => {
+ let { type: t, predicate: n, effect: r } = lU(e);
return {
- id: nH(),
+ id: OH(),
effect: r,
type: t,
predicate: n,
pending: /* @__PURE__ */ new Set(),
unsubscribe: () => {
- throw Error(JH(22));
+ throw Error(bU(22));
}
};
-}, { withTypes: () => RH }), zH = (e, t) => {
- let { type: n, effect: r, predicate: i } = LH(t);
+}, { withTypes: () => uU }), dU = (e, t) => {
+ let { type: n, effect: r, predicate: i } = lU(t);
return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);
-}, BH = (e) => {
+}, fU = (e) => {
e.pending.forEach((e) => {
- e.abort(bH);
+ e.abort(KH);
});
-}, VH = (e, t) => () => {
- for (let e of t.keys()) BH(e);
+}, pU = (e, t) => () => {
+ for (let e of t.keys()) fU(e);
e.clear();
-}, HH = (e, t, n) => {
+}, mU = (e, t, n) => {
try {
e(t, n);
} catch (e) {
@@ -50039,74 +50867,74 @@ var kH = async (e, t) => {
throw e;
}, 0);
}
-}, UH = /* @__PURE__ */ MH(/* @__PURE__ */ zV(`${PH}/add`), { withTypes: () => UH }), WH = /* @__PURE__ */ zV(`${PH}/removeAll`), GH = /* @__PURE__ */ MH(/* @__PURE__ */ zV(`${PH}/remove`), { withTypes: () => GH }), KH = (...e) => {
- console.error(`${PH}/error`, ...e);
-}, qH = (e = {}) => {
+}, 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 = {}) => {
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 = KH } = e;
- CH(o, "onError");
+ }, { extra: a, onError: o = vU } = e;
+ YH(o, "onError");
let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {
- e.unsubscribe(), t?.cancelActive && BH(e);
+ e.unsubscribe(), t?.cancelActive && fU(e);
}), c = ((e) => {
- let n = zH(t, e) ?? RH(e);
+ let n = dU(t, e) ?? uU(e);
return s(n);
});
- MH(c, { withTypes: () => c });
+ iU(c, { withTypes: () => c });
let l = (e) => {
- let n = zH(t, e);
- return n && (n.unsubscribe(), e.cancelActive && BH(n)), !!n;
+ let n = dU(t, e);
+ return n && (n.unsubscribe(), e.cancelActive && fU(n)), !!n;
};
- MH(l, { withTypes: () => l });
+ iU(l, { withTypes: () => l });
let u = async (e, n, s, l) => {
- let u = new AbortController(), d = IH(c, u.signal), f = [];
+ let u = new AbortController(), d = cU(c, u.signal), f = [];
try {
- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, MH({}, s, {
+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, iU({}, s, {
getOriginalState: l,
condition: (e, t) => d(e, t).then(Boolean),
take: d,
- delay: jH(u.signal),
- pause: AH(u.signal),
+ delay: rU(u.signal),
+ pause: nU(u.signal),
extra: a,
signal: u.signal,
- fork: FH(u.signal, f),
+ fork: sU(u.signal, f),
unsubscribe: e.unsubscribe,
subscribe: () => {
t.set(e.id, e);
},
cancelActiveListeners: () => {
e.pending.forEach((e, t, n) => {
- e !== u && (e.abort(bH), n.delete(e));
+ e !== u && (e.abort(KH), n.delete(e));
});
},
cancel: () => {
- u.abort(bH), e.pending.delete(u);
+ u.abort(KH), e.pending.delete(u);
},
throwIfCancelled: () => {
- DH(u.signal);
+ $H(u.signal);
}
})));
} catch (e) {
- e instanceof SH || HH(o, e, { raisedBy: "effect" });
+ e instanceof JH || mU(o, e, { raisedBy: "effect" });
} finally {
- await Promise.all(f), u.abort(xH), i(e), e.pending.delete(u);
+ await Promise.all(f), u.abort(qH), i(e), e.pending.delete(u);
}
- }, d = VH(t, n);
+ }, d = pU(t, n);
return {
middleware: (e) => (n) => (r) => {
- if (!gB(r)) return n(r);
- if (UH.match(r)) return c(r.payload);
- if (WH.match(r)) {
+ if (!RB(r)) return n(r);
+ if (hU.match(r)) return c(r.payload);
+ if (gU.match(r)) {
d();
return;
}
- if (GH.match(r)) return l(r.payload);
+ if (_U.match(r)) return l(r.payload);
let i = e.getState(), a = () => {
- if (i === NH) throw Error(JH(23));
+ if (i === aU) throw Error(bU(23));
return i;
}, s;
try {
@@ -50117,13 +50945,13 @@ var kH = async (e, t) => {
try {
s = t.predicate(r, n, i);
} catch (e) {
- s = !1, HH(o, e, { raisedBy: "predicate" });
+ s = !1, mU(o, e, { raisedBy: "predicate" });
}
s && u(t, r, e, a);
}
}
} finally {
- i = NH;
+ i = aU;
}
return s;
},
@@ -50132,12 +50960,12 @@ var kH = async (e, t) => {
clearListeners: d
};
};
-function JH(e) {
+function bU(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 YH = sH({
+var xU = NH({
name: "chartLayout",
initialState: {
layoutType: "horizontal",
@@ -50165,23 +50993,23 @@ var YH = sH({
e.scale = t.payload;
}
}
-}), { setMargin: XH, setLayout: ZH, setChartSize: QH, setScale: $H } = YH.actions, eU = YH.reducer;
+}), { setMargin: SU, setLayout: CU, setChartSize: wU, setScale: TU } = xU.actions, EU = xU.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getSliced.js
-function tU(e, t, n) {
+function DU(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 nU(e) {
+function OU(e) {
return Number.isFinite(e);
}
-function rU(e) {
+function kU(e) {
return typeof e == "number" && e > 0 && Number.isFinite(e);
}
//#endregion
//#region node_modules/recharts/es6/util/ChartUtils.js
-function iU(e, t) {
+function AU(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50191,30 +51019,30 @@ function iU(e, t) {
}
return n;
}
-function aU(e) {
+function jU(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? iU(Object(n), !0).forEach(function(t) {
- oU(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iU(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function oU(e, t, n) {
- return (t = sU(t)) in e ? Object.defineProperty(e, t, {
+function MU(e, t, n) {
+ return (t = NU(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sU(e) {
- var t = cU(e, "string");
+function NU(e) {
+ var t = PU(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cU(e, t) {
+function PU(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50224,63 +51052,63 @@ function cU(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function lU(e, t, n) {
- return uz(e) || uz(t) ? n : iz(t) ? QR(e, t, n) : typeof t == "function" ? t(e) : n;
+function FU(e, t, n) {
+ return Mz(e) || Mz(t) ? n : Ez(t) ? bz(e, t, n) : typeof t == "function" ? t(e) : n;
}
-var uU = (e, t, n) => {
+var IU = (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 aU(aU({}, e), {}, { [a]: e[a] + (r || 0) });
- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return aU(aU({}, e), {}, { [o]: e[o] + (i || 0) });
+ 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) });
}
return e;
-}, dU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", fU = (e, t, n, r) => {
+}, LU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", RU = (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;
-}, pU = (e, t, n) => {
+}, zU = (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 ? tz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {
+ return h = p === "angleAxis" && a && a.length >= 2 ? Cz(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 nU(i) ? {
+ return OU(i) ? {
coordinate: i + h,
value: e,
offset: h,
index: t
} : null;
- }).filter(fz) : c && l ? l.map((e, t) => {
+ }).filter(Pz) : c && l ? l.map((e, t) => {
var n = o.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(fz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
+ }).filter(Pz) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {
var n = o.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + h,
value: e,
index: t,
offset: h
} : null;
- }).filter(fz) : o.domain().map((e, t) => {
+ }).filter(Pz) : o.domain().map((e, t) => {
var n = o.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + h,
value: r ? r[e] : e,
index: t,
offset: h
} : null;
- }).filter(fz);
-}, mU = (e, t) => {
+ }).filter(Pz);
+}, BU = (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;
-}, hU = {
+}, VU = {
sign: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -50288,16 +51116,16 @@ var uU = (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 = nz(c) ? l : c;
+ var c = s[1], l = s[0], u = wz(c) ? l : c;
u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);
}
}
}
},
- expand: Xfe,
- none: WR,
- silhouette: Zfe,
- wiggle: Qfe,
+ expand: ype,
+ none: fz,
+ silhouette: bpe,
+ wiggle: xpe,
positive: (e) => {
var t = e.length;
if (!(t <= 0)) {
@@ -50305,70 +51133,70 @@ var uU = (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 = nz(o[1]) ? o[0] : o[1];
+ var s = wz(o[1]) ? o[0] : o[1];
s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);
}
}
}
}
-}, gU = (e, t, n) => {
- var r = hU[n] ?? WR, i = Yfe().keys(t).value((e, t) => Number(lU(e, t, 0))).order(GR).offset(r)(e);
+}, 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);
return i.forEach((n, r) => {
n.forEach((n, i) => {
- var a = lU(e[i], t[r], 0);
+ var a = FU(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 _U(e) {
+function UU(e) {
return e == null ? void 0 : String(e);
}
-function vU(e) {
+function WU(e) {
var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;
if (t.type === "category") {
- if (!t.allowDuplicatedCategory && t.dataKey && !uz(i[t.dataKey])) {
- var s = lz(n, "value", i[t.dataKey]);
+ if (!t.allowDuplicatedCategory && t.dataKey && !Mz(i[t.dataKey])) {
+ var s = jz(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 = lU(i, uz(o) ? t.dataKey : o), l = t.scale.map(c);
+ var c = FU(i, Mz(o) ? t.dataKey : o), l = t.scale.map(c);
return Z(l) ? l : null;
}
-var yU = (e) => {
+var GU = (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 = lU(a, t.dataKey, t.scale.domain()[o]);
- if (uz(s)) return null;
+ var s = FU(a, t.dataKey, t.scale.domain()[o]);
+ if (Mz(s)) return null;
var c = t.scale.map(s);
return Z(c) ? c - i / 2 + r : null;
-}, bU = (e) => {
+}, KU = (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];
-}, xU = (e) => {
+}, qU = (e) => {
var t = e.flat(2).filter(Z);
return [Math.min(...t), Math.max(...t)];
-}, SU = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], CU = (e, t, n) => {
- if (e != null) return SU(Object.keys(e).reduce((r, i) => {
+}, 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) => {
var a = e[i];
if (!a) return r;
var { stackedData: o } = a, s = o.reduce((e, r) => {
- var i = xU(tU(r, t, n));
- return !nU(i[0]) || !nU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];
+ 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])];
}, [Infinity, -Infinity]);
return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];
}, [Infinity, -Infinity]));
-}, wU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, TU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, EU = (e, t, n) => {
+}, 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) => {
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 = iB(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {
+ for (var i = EB(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);
}
@@ -50376,26 +51204,26 @@ var yU = (e) => {
}
return n ? void 0 : 0;
};
-function DU(e) {
+function $U(e) {
var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;
- return aU(aU({}, t), {}, {
+ return jU(jU({}, t), {}, {
dataKey: n,
payload: r,
value: i,
name: a
});
}
-function OU(e, t) {
+function eW(e, t) {
if (e) return String(e);
if (typeof t == "string") return t;
}
-var kU = (e, t) => {
+var tW = (e, t) => {
if (t === "horizontal") return e.relativeX;
if (t === "vertical") return e.relativeY;
-}, AU = (e, t) => t === "centric" ? e.angle : e.radius, jU = (e) => e.layout.width, MU = (e) => e.layout.height, NU = (e) => e.layout.scale, PU = (e) => e.layout.margin, FU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), IU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), LU = "data-recharts-item-index";
+}, 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";
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js
-function RU(e, t) {
+function uW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50405,30 +51233,30 @@ function RU(e, t) {
}
return n;
}
-function zU(e) {
+function dW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? RU(Object(n), !0).forEach(function(t) {
- BU(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RU(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function BU(e, t, n) {
- return (t = VU(t)) in e ? Object.defineProperty(e, t, {
+function fW(e, t, n) {
+ return (t = pW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VU(e) {
- var t = HU(e, "string");
+function pW(e) {
+ var t = mW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HU(e, t) {
+function mW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50438,58 +51266,58 @@ function HU(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UU = (e) => e.brush.height;
-function WU(e) {
- return IU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
-function GU(e) {
- return IU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);
-}
-function KU(e) {
- return FU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-function qU(e) {
- return FU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);
-}
-var JU = $([
- jU,
- MU,
- PU,
- UU,
- WU,
- GU,
- KU,
- qU,
- aB,
- Pme
+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
], (e, t, n, r, i, a, o, s, c, l) => {
var u = {
left: (n.left || 0) + i,
right: (n.right || 0) + a
- }, d = zU(zU({}, {
+ }, d = dW(dW({}, {
top: (n.top || 0) + o,
bottom: (n.bottom || 0) + s
}), u), f = d.bottom;
- d.bottom += r, d = uU(d, c, l);
+ d.bottom += r, d = IU(d, c, l);
var p = e - d.left - d.right, m = t - d.top - d.bottom;
- return zU(zU({ brushBottom: f }, d), {}, {
+ return dW(dW({ brushBottom: f }, d), {}, {
width: Math.max(p, 0),
height: Math.max(m, 0)
});
-}), YU = $(JU, (e) => ({
+}), xW = $(bW, (e) => ({
x: e.left,
y: e.top,
width: e.width,
height: e.height
-})), XU = $(jU, MU, (e, t) => ({
+})), SW = $(rW, iW, (e, t) => ({
x: 0,
y: 0,
width: e,
height: t
-})), ZU = /*#__PURE__*/ (0, I.createContext)(null), QU = () => (0, I.useContext)(ZU) != null, $U = (e) => e.brush, eW = $([
- $U,
- JU,
- PU
+})), CW = /*#__PURE__*/ (0, I.createContext)(null), wW = () => (0, I.useContext)(CW) != null, TW = (e) => e.brush, EW = $([
+ TW,
+ bW,
+ oW
], (e, t, n) => ({
height: e.height,
x: Z(e.x) ? e.x : t.left,
@@ -50498,7 +51326,7 @@ var JU = $([
}));
//#endregion
//#region node_modules/es-toolkit/dist/function/debounce.mjs
-function tW(e, t, { signal: n, edges: r } = {}) {
+function DW(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 = () => {
@@ -50523,11 +51351,11 @@ function tW(e, t, { signal: n, edges: r } = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs
-function nW(e, t = 0, n = {}) {
+function OW(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 = tW(function(...t) {
+ let s, c = null, l = DW(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);
@@ -50536,9 +51364,9 @@ function nW(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs
-function rW(e, t = 0, n = {}) {
+function kW(e, t = 0, n = {}) {
let { leading: r = !0, trailing: i = !0 } = n;
- return nW(e, t, {
+ return OW(e, t, {
leading: r,
maxWait: t,
trailing: i
@@ -50546,7 +51374,7 @@ function rW(e, t = 0, n = {}) {
}
//#endregion
//#region node_modules/recharts/es6/util/LogUtils.js
-var iW = function(e, t) {
+var AW = 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.");
@@ -50555,7 +51383,7 @@ var iW = function(e, t) {
console.warn(t.replace(/%s/g, () => n[r++]));
}
}
-}, aW = {
+}, jW = {
width: "100%",
height: "100%",
debounce: 0,
@@ -50564,45 +51392,45 @@ var iW = function(e, t) {
width: -1,
height: -1
}
-}, oW = (e, t, n) => {
- var { width: r = aW.width, height: i = aW.height, aspect: a, maxHeight: o } = n, s = rz(r) ? e : Number(r), c = rz(i) ? t : Number(i);
+}, 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);
return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {
calculatedWidth: s,
calculatedHeight: c
};
-}, sW = {
+}, NW = {
width: 0,
height: 0,
overflow: "visible"
-}, cW = {
+}, PW = {
width: 0,
overflowX: "visible"
-}, lW = {
+}, FW = {
height: 0,
overflowY: "visible"
-}, uW = {}, dW = (e) => {
- var { width: t, height: n } = e, r = rz(t), i = rz(n);
- return r && i ? sW : r ? cW : i ? lW : uW;
+}, IW = {}, LW = (e) => {
+ var { width: t, height: n } = e, r = Tz(t), i = Tz(n);
+ return r && i ? NW : r ? PW : i ? FW : IW;
};
-function fW(e) {
+function RW(e) {
var { width: t, height: n, aspect: r } = e, i = t, a = n;
- return i === void 0 && a === void 0 ? (i = aW.width, a = aW.height) : i === void 0 ? i = r && r > 0 ? void 0 : aW.width : a === void 0 && (a = r && r > 0 ? void 0 : aW.height), {
+ 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), {
width: i,
height: a
};
}
//#endregion
//#region node_modules/recharts/es6/component/ResponsiveContainer.js
-function pW() {
- return pW = Object.assign ? Object.assign.bind() : function(e) {
+function zW() {
+ return zW = 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;
- }, pW.apply(null, arguments);
+ }, zW.apply(null, arguments);
}
-function mW(e, t) {
+function BW(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -50612,30 +51440,30 @@ function mW(e, t) {
}
return n;
}
-function hW(e) {
+function VW(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? mW(Object(n), !0).forEach(function(t) {
- gW(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : mW(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function gW(e, t, n) {
- return (t = _W(t)) in e ? Object.defineProperty(e, t, {
+function HW(e, t, n) {
+ return (t = UW(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function _W(e) {
- var t = vW(e, "string");
+function UW(e) {
+ var t = WW(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function vW(e, t) {
+function WW(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -50645,19 +51473,19 @@ function vW(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var yW = /*#__PURE__*/ (0, I.createContext)(aW.initialDimension);
-function bW(e) {
- return rU(e.width) && rU(e.height);
+var GW = /*#__PURE__*/ (0, I.createContext)(jW.initialDimension);
+function KW(e) {
+ return kU(e.width) && kU(e.height);
}
-function xW(e) {
+function qW(e) {
var { children: t, width: n, height: r } = e, i = (0, I.useMemo)(() => ({
width: n,
height: r
}), [n, r]);
- return bW(i) ? /*#__PURE__*/ I.createElement(yW.Provider, { value: i }, t) : null;
+ return KW(i) ? /*#__PURE__*/ I.createElement(GW.Provider, { value: i }, t) : null;
}
-var SW = () => (0, I.useContext)(yW), CW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { aspect: n, initialDimension: r = aW.initialDimension, width: i, height: a, minWidth: o = aW.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = aW.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, I.useRef)(null), g = (0, I.useRef)();
+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)();
g.current = p, (0, I.useImperativeHandle)(t, () => h.current);
var [_, v] = (0, I.useState)({
containerWidth: r.width,
@@ -50672,7 +51500,7 @@ var SW = () => (0, I.useContext)(yW), CW = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
}, []);
(0, I.useEffect)(() => {
- if (h.current == null || typeof ResizeObserver > "u") return pz;
+ if (h.current == null || typeof ResizeObserver > "u") return Fz;
var e = (e) => {
var t, n = e[0];
if (n != null) {
@@ -50680,7 +51508,7 @@ var SW = () => (0, I.useContext)(yW), CW = /*#__PURE__*/ (0, I.forwardRef)((e, t
y(r, i), (t = g.current) == null || t.call(g, r, i);
}
};
- u > 0 && (e = rW(e, u, {
+ u > 0 && (e = kW(e, u, {
trailing: !0,
leading: !1
}));
@@ -50690,17 +51518,17 @@ var SW = () => (0, I.useContext)(yW), CW = /*#__PURE__*/ (0, I.forwardRef)((e, t
};
}, [y, u]);
var { containerWidth: b, containerHeight: x } = _;
- iW(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
- var { calculatedWidth: S, calculatedHeight: C } = oW(b, x, {
+ AW(!n || n > 0, "The aspect(%s) must be greater than zero.", n);
+ var { calculatedWidth: S, calculatedHeight: C } = MW(b, x, {
width: i,
height: a,
aspect: n,
maxHeight: c
});
- return iW(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 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", {
id: d ? `${d}` : void 0,
className: Jm("recharts-responsive-container", f),
- style: hW(hW({}, m), {}, {
+ style: VW(VW({}, m), {}, {
width: i,
height: a,
minWidth: o,
@@ -50708,30 +51536,30 @@ var SW = () => (0, I.useContext)(yW), CW = /*#__PURE__*/ (0, I.forwardRef)((e, t
maxHeight: c
}),
ref: h
- }, /*#__PURE__*/ I.createElement("div", { style: dW({
+ }, /*#__PURE__*/ I.createElement("div", { style: LW({
width: i,
height: a
- }) }, /*#__PURE__*/ I.createElement(xW, {
+ }) }, /*#__PURE__*/ I.createElement(qW, {
width: S,
height: C
}, l)));
-}), wW = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = SW();
- if (rU(n.width) && rU(n.height)) return e.children;
- var { width: r, height: i } = fW({
+}), 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({
width: e.width,
height: e.height,
aspect: e.aspect
- }), { calculatedWidth: a, calculatedHeight: o } = oW(void 0, void 0, {
+ }), { calculatedWidth: a, calculatedHeight: o } = MW(void 0, void 0, {
width: r,
height: i,
aspect: e.aspect,
maxHeight: e.maxHeight
});
- return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(xW, {
+ return Z(a) && Z(o) ? /*#__PURE__*/ I.createElement(qW, {
width: a,
height: o
- }, e.children) : /*#__PURE__*/ I.createElement(CW, pW({}, e, {
+ }, e.children) : /*#__PURE__*/ I.createElement(YW, zW({}, e, {
width: r,
height: i,
ref: t
@@ -50739,7 +51567,7 @@ var SW = () => (0, I.useContext)(yW), CW = /*#__PURE__*/ (0, I.forwardRef)((e, t
});
//#endregion
//#region node_modules/recharts/es6/context/chartLayoutContext.js
-function TW(e) {
+function ZW(e) {
if (e) return {
x: e.x,
y: e.y,
@@ -50749,15 +51577,15 @@ function TW(e) {
height: e.height
};
}
-var EW = () => {
- var e = QU(), t = Q(YU), n = Q(eW), r = Q($U)?.padding;
+var QW = () => {
+ var e = wW(), t = Q(xW), n = Q(EW), r = Q(TW)?.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
};
-}, DW = {
+}, $W = {
top: 0,
bottom: 0,
left: 0,
@@ -50765,16 +51593,16 @@ var EW = () => {
width: 0,
height: 0,
brushBottom: 0
-}, OW = () => Q(JU) ?? DW, kW = () => Q(jU), AW = () => Q(MU), jW = () => Q((e) => e.layout.margin), MW = (e) => e.layout.layoutType, NW = () => Q(MW), PW = () => {
- var e = NW();
+}, 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();
if (e === "horizontal" || e === "vertical") return e;
-}, FW = (e) => {
+}, sG = (e) => {
var t = e.layout.layoutType;
if (t === "centric" || t === "radial") return t;
-}, IW = () => Q(FW), LW = () => NW() !== void 0, RW = (e) => {
- var t = Xz(), n = QU(), { width: r, height: i } = e, a = SW(), o = r, s = i;
+}, 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;
return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, I.useEffect)(() => {
- !n && rU(o) && rU(s) && t(QH({
+ !n && kU(o) && kU(s) && t(wU({
width: o,
height: s
}));
@@ -50784,64 +51612,64 @@ var EW = () => {
o,
s
]), null;
-}, zW = Symbol.for("immer-nothing"), BW = Symbol.for("immer-draftable"), VW = Symbol.for("immer-state");
-function HW(e, ...t) {
+}, dG = Symbol.for("immer-nothing"), fG = Symbol.for("immer-draftable"), pG = Symbol.for("immer-state");
+function mG(e, ...t) {
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
}
-var UW = Object.getPrototypeOf;
-function WW(e) {
- return !!e && !!e[VW];
+var hG = Object.getPrototypeOf;
+function gG(e) {
+ return !!e && !!e[pG];
}
-function GW(e) {
- return e ? JW(e) || Array.isArray(e) || !!e[BW] || !!e.constructor?.[BW] || eG(e) || tG(e) : !1;
+function _G(e) {
+ return e ? bG(e) || Array.isArray(e) || !!e[fG] || !!e.constructor?.[fG] || EG(e) || DG(e) : !1;
}
-var KW = Object.prototype.constructor.toString(), qW = /* @__PURE__ */ new WeakMap();
-function JW(e) {
+var vG = Object.prototype.constructor.toString(), yG = /* @__PURE__ */ new WeakMap();
+function bG(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 = qW.get(n);
- return r === void 0 && (r = Function.toString.call(n), qW.set(n, r)), r === KW;
+ let r = yG.get(n);
+ return r === void 0 && (r = Function.toString.call(n), yG.set(n, r)), r === vG;
}
-function YW(e, t, n = !0) {
- XW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {
+function xG(e, t, n = !0) {
+ SG(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 XW(e) {
- let t = e[VW];
- return t ? t.type_ : Array.isArray(e) ? 1 : eG(e) ? 2 : tG(e) ? 3 : 0;
+function SG(e) {
+ let t = e[pG];
+ return t ? t.type_ : Array.isArray(e) ? 1 : EG(e) ? 2 : DG(e) ? 3 : 0;
}
-function ZW(e, t) {
- return XW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
+function CG(e, t) {
+ return SG(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
}
-function QW(e, t, n) {
- let r = XW(e);
+function wG(e, t, n) {
+ let r = SG(e);
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
}
-function $W(e, t) {
+function TG(e, t) {
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function eG(e) {
+function EG(e) {
return e instanceof Map;
}
-function tG(e) {
+function DG(e) {
return e instanceof Set;
}
-function nG(e) {
+function OG(e) {
return e.copy_ || e.base_;
}
-function rG(e, t) {
- if (eG(e)) return new Map(e);
- if (tG(e)) return new Set(e);
+function kG(e, t) {
+ if (EG(e)) return new Map(e);
+ if (DG(e)) return new Set(e);
if (Array.isArray(e)) return Array.prototype.slice.call(e);
- let n = JW(e);
+ let n = bG(e);
if (t === !0 || t === "class_only" && !n) {
let t = Object.getOwnPropertyDescriptors(e);
- delete t[VW];
+ delete t[pG];
let n = Reflect.ownKeys(t);
for (let r = 0; r < n.length; r++) {
let i = n[r], a = t[i];
@@ -50852,40 +51680,40 @@ function rG(e, t) {
value: e[i]
});
}
- return Object.create(UW(e), t);
+ return Object.create(hG(e), t);
}
{
- let t = UW(e);
+ let t = hG(e);
if (t !== null && n) return { ...e };
let r = Object.create(t);
return Object.assign(r, e);
}
}
-function iG(e, t = !1) {
- return sG(e) || WW(e) || !GW(e) ? e : (XW(e) > 1 && Object.defineProperties(e, {
- set: oG,
- add: oG,
- clear: oG,
- delete: oG
- }), Object.freeze(e), t && Object.values(e).forEach((e) => iG(e, !0)), 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 aG() {
- HW(2);
+function jG() {
+ mG(2);
}
-var oG = { value: aG };
-function sG(e) {
+var MG = { value: jG };
+function NG(e) {
return typeof e != "object" || !e || Object.isFrozen(e);
}
-var cG = {};
-function lG(e) {
- let t = cG[e];
- return t || HW(0, e), t;
+var PG = {};
+function FG(e) {
+ let t = PG[e];
+ return t || mG(0, e), t;
}
-var uG;
-function dG() {
- return uG;
+var IG;
+function LG() {
+ return IG;
}
-function fG(e, t) {
+function RG(e, t) {
return {
drafts_: [],
parent_: e,
@@ -50894,62 +51722,62 @@ function fG(e, t) {
unfinalizedDrafts_: 0
};
}
-function pG(e, t) {
- t && (lG("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
+function zG(e, t) {
+ t && (FG("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
}
-function mG(e) {
- hG(e), e.drafts_.forEach(_G), e.drafts_ = null;
+function BG(e) {
+ VG(e), e.drafts_.forEach(UG), e.drafts_ = null;
}
-function hG(e) {
- e === uG && (uG = e.parent_);
+function VG(e) {
+ e === IG && (IG = e.parent_);
}
-function gG(e) {
- return uG = fG(uG, e);
+function HG(e) {
+ return IG = RG(IG, e);
}
-function _G(e) {
- let t = e[VW];
+function UG(e) {
+ let t = e[pG];
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
}
-function vG(e, t) {
+function WG(e, t) {
t.unfinalizedDrafts_ = t.drafts_.length;
let n = t.drafts_[0];
- return e !== void 0 && e !== n ? (n[VW].modified_ && (mG(t), HW(4)), GW(e) && (e = yG(t, e), t.parent_ || xG(t, e)), t.patches_ && lG("Patches").generateReplacementPatches_(n[VW].base_, e, t.patches_, t.inversePatches_)) : e = yG(t, n, []), mG(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === zW ? void 0 : e;
+ 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;
}
-function yG(e, t, n) {
- if (sG(t)) return t;
- let r = e.immer_.shouldUseStrictIteration(), i = t[VW];
- if (!i) return YW(t, (r, a) => bG(e, i, t, r, a, n), r), t;
+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;
if (i.scope_ !== e) return t;
- if (!i.modified_) return xG(e, i.base_, !0), i.base_;
+ if (!i.modified_) return qG(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), YW(a, (r, a) => bG(e, i, t, r, a, n, o), r), xG(e, t, !1), n && e.patches_ && lG("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);
+ 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_);
}
return i.copy_;
}
-function bG(e, t, n, r, i, a, o) {
+function KG(e, t, n, r, i, a, o) {
if (i == null || typeof i != "object" && !o) return;
- let s = sG(i);
+ let s = NG(i);
if (!(s && !o)) {
- if (WW(i)) {
- let o = yG(e, i, a && t && t.type_ !== 3 && !ZW(t.assigned_, r) ? a.concat(r) : void 0);
- if (QW(n, r, o), WW(o)) e.canAutoFreeze_ = !1;
+ 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;
else return;
} else o && n.add(i);
- if (GW(i) && !s) {
+ if (_G(i) && !s) {
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;
- yG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (eG(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && xG(e, i);
+ GG(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (EG(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && qG(e, i);
}
}
}
-function xG(e, t, n = !1) {
- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && iG(t, n);
+function qG(e, t, n = !1) {
+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && AG(t, n);
}
-function SG(e, t) {
+function JG(e, t) {
let n = Array.isArray(e), r = {
type_: +!!n,
- scope_: t ? t.scope_ : dG(),
+ scope_: t ? t.scope_ : LG(),
modified_: !1,
finalized_: !1,
assigned_: {},
@@ -50959,41 +51787,41 @@ function SG(e, t) {
copy_: null,
revoke_: null,
isManual_: !1
- }, i = r, a = CG;
- n && (i = [r], a = wG);
+ }, i = r, a = YG;
+ n && (i = [r], a = XG);
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
return r.draft_ = s, r.revoke_ = o, s;
}
-var CG = {
+var YG = {
get(e, t) {
- if (t === VW) return e;
- let n = nG(e);
- if (!ZW(n, t)) return EG(e, n, t);
+ if (t === pG) return e;
+ let n = OG(e);
+ if (!CG(n, t)) return QG(e, n, t);
let r = n[t];
- return e.finalized_ || !GW(r) ? r : r === TG(e.base_, t) ? (kG(e), e.copy_[t] = jG(r, e)) : r;
+ return e.finalized_ || !_G(r) ? r : r === ZG(e.base_, t) ? (tK(e), e.copy_[t] = rK(r, e)) : r;
},
has(e, t) {
- return t in nG(e);
+ return t in OG(e);
},
ownKeys(e) {
- return Reflect.ownKeys(nG(e));
+ return Reflect.ownKeys(OG(e));
},
set(e, t, n) {
- let r = DG(nG(e), t);
+ let r = $G(OG(e), t);
if (r?.set) return r.set.call(e.draft_, n), !0;
if (!e.modified_) {
- let r = TG(nG(e), t), i = r?.[VW];
+ let r = ZG(OG(e), t), i = r?.[pG];
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;
- if ($W(n, r) && (n !== void 0 || ZW(e.base_, t))) return !0;
- kG(e), OG(e);
+ if (TG(n, r) && (n !== void 0 || CG(e.base_, t))) return !0;
+ tK(e), eK(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 TG(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, kG(e), OG(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
+ 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;
},
getOwnPropertyDescriptor(e, t) {
- let n = nG(e), r = Reflect.getOwnPropertyDescriptor(n, t);
+ let n = OG(e), r = Reflect.getOwnPropertyDescriptor(n, t);
return r && {
writable: !0,
configurable: e.type_ !== 1 || t !== "length",
@@ -51002,48 +51830,48 @@ var CG = {
};
},
defineProperty() {
- HW(11);
+ mG(11);
},
getPrototypeOf(e) {
- return UW(e.base_);
+ return hG(e.base_);
},
setPrototypeOf() {
- HW(12);
+ mG(12);
}
-}, wG = {};
-YW(CG, (e, t) => {
- wG[e] = function() {
+}, XG = {};
+xG(YG, (e, t) => {
+ XG[e] = function() {
return arguments[0] = arguments[0][0], t.apply(this, arguments);
};
-}), wG.deleteProperty = function(e, t) {
- return wG.set.call(this, e, t, void 0);
-}, wG.set = function(e, t, n) {
- return CG.set.call(this, e[0], t, n, e[0]);
+}), 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]);
};
-function TG(e, t) {
- let n = e[VW];
- return (n ? nG(n) : e)[t];
+function ZG(e, t) {
+ let n = e[pG];
+ return (n ? OG(n) : e)[t];
}
-function EG(e, t, n) {
- let r = DG(t, n);
+function QG(e, t, n) {
+ let r = $G(t, n);
return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;
}
-function DG(e, t) {
+function $G(e, t) {
if (!(t in e)) return;
- let n = UW(e);
+ let n = hG(e);
for (; n;) {
let e = Object.getOwnPropertyDescriptor(n, t);
if (e) return e;
- n = UW(n);
+ n = hG(n);
}
}
-function OG(e) {
- e.modified_ || (e.modified_ = !0, e.parent_ && OG(e.parent_));
+function eK(e) {
+ e.modified_ || (e.modified_ = !0, e.parent_ && eK(e.parent_));
}
-function kG(e) {
- e.copy_ ||= rG(e.base_, e.scope_.immer_.useStrictShallowCopy_);
+function tK(e) {
+ e.copy_ ||= kG(e.base_, e.scope_.immer_.useStrictShallowCopy_);
}
-var AG = class {
+var nK = class {
constructor(e) {
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {
if (typeof e == "function" && typeof t != "function") {
@@ -51054,25 +51882,25 @@ var AG = class {
return r.produce(e, (e) => t.call(this, e, ...i));
};
}
- typeof t != "function" && HW(6), n !== void 0 && typeof n != "function" && HW(7);
+ typeof t != "function" && mG(6), n !== void 0 && typeof n != "function" && mG(7);
let r;
- if (GW(e)) {
- let i = gG(this), a = jG(e, void 0), o = !0;
+ if (_G(e)) {
+ let i = HG(this), a = rK(e, void 0), o = !0;
try {
r = t(a), o = !1;
} finally {
- o ? mG(i) : hG(i);
+ o ? BG(i) : VG(i);
}
- return pG(i, n), vG(r, i);
+ return zG(i, n), WG(r, i);
}
if (!e || typeof e != "object") {
- if (r = t(e), r === void 0 && (r = e), r === zW && (r = void 0), this.autoFreeze_ && iG(r, !0), n) {
+ if (r = t(e), r === void 0 && (r = e), r === dG && (r = void 0), this.autoFreeze_ && AG(r, !0), n) {
let t = [], i = [];
- lG("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
+ FG("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);
}
return r;
}
- HW(1, e);
+ mG(1, e);
}, this.produceWithPatches = (e, t) => {
if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
let n, r;
@@ -51086,15 +51914,15 @@ var AG = 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) {
- GW(e) || HW(8), WW(e) && (e = MG(e));
- let t = gG(this), n = jG(e, void 0);
- return n[VW].isManual_ = !0, hG(t), n;
+ _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;
}
finishDraft(e, t) {
- let n = e && e[VW];
- (!n || !n.isManual_) && HW(9);
+ let n = e && e[pG];
+ (!n || !n.isManual_) && mG(9);
let { scope_: r } = n;
- return pG(r, t), vG(void 0, r);
+ return zG(r, t), WG(void 0, r);
}
setAutoFreeze(e) {
this.autoFreeze_ = e;
@@ -51118,35 +51946,35 @@ var AG = class {
}
}
n > -1 && (t = t.slice(n + 1));
- let r = lG("Patches").applyPatches_;
- return WW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
+ let r = FG("Patches").applyPatches_;
+ return gG(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
}
};
-function jG(e, t) {
- let n = eG(e) ? lG("MapSet").proxyMap_(e, t) : tG(e) ? lG("MapSet").proxySet_(e, t) : SG(e, t);
- return (t ? t.scope_ : dG()).drafts_.push(n), n;
+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 MG(e) {
- return WW(e) || HW(10, e), NG(e);
+function iK(e) {
+ return gG(e) || mG(10, e), aK(e);
}
-function NG(e) {
- if (!GW(e) || sG(e)) return e;
- let t = e[VW], n, r = !0;
+function aK(e) {
+ if (!_G(e) || NG(e)) return e;
+ let t = e[pG], n, r = !0;
if (t) {
if (!t.modified_) return t.base_;
- t.finalized_ = !0, n = rG(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
- } else n = rG(e, !0);
- return YW(n, (e, t) => {
- QW(n, e, NG(t));
+ 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));
}, r), t && (t.finalized_ = !1), n;
}
-new AG().produce;
-function PG(e) {
+new nK().produce;
+function oK(e) {
return e;
}
//#endregion
//#region node_modules/recharts/es6/state/legendSlice.js
-var FG = sH({
+var sK = NH({
name: "legend",
initialState: {
settings: {
@@ -51170,43 +51998,43 @@ var FG = sH({
},
addLegendPayload: {
reducer(e, t) {
- e.payload.push(PG(t.payload));
+ e.payload.push(oK(t.payload));
},
- prepare: KV()
+ prepare: vH()
},
replaceLegendPayload: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MV(e).payload.indexOf(PG(n));
- i > -1 && (e.payload[i] = PG(r));
+ var { prev: n, next: r } = t.payload, i = iH(e).payload.indexOf(oK(n));
+ i > -1 && (e.payload[i] = oK(r));
},
- prepare: KV()
+ prepare: vH()
},
removeLegendPayload: {
reducer(e, t) {
- var n = MV(e).payload.indexOf(PG(t.payload));
+ var n = iH(e).payload.indexOf(oK(t.payload));
n > -1 && e.payload.splice(n, 1);
},
- prepare: KV()
+ prepare: vH()
}
}
-}), { setLegendSize: IG, setLegendSettings: LG, addLegendPayload: RG, replaceLegendPayload: zG, removeLegendPayload: BG } = FG.actions, VG = FG.reducer, HG = /* @__PURE__ */ F(((e) => {
+}), { setLegendSize: cK, setLegendSettings: lK, addLegendPayload: uK, replaceLegendPayload: dK, removeLegendPayload: fK } = sK.actions, pK = sK.reducer, mK = /* @__PURE__ */ F(((e) => {
var t = oe();
t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;
}));
(/* @__PURE__ */ F(((e, t) => {
- t.exports = HG();
+ t.exports = mK();
})))();
-function UG(e) {
+function hK(e) {
e();
}
-function WG() {
+function gK() {
let e = null, t = null;
return {
clear() {
e = null, t = null;
},
notify() {
- UG(() => {
+ hK(() => {
let t = e;
for (; t;) t.callback(), t = t.next;
});
@@ -51228,12 +52056,12 @@ function WG() {
}
};
}
-var GG = {
+var _K = {
notify() {},
get: () => []
};
-function KG(e, t) {
- let n, r = GG, i = 0, a = !1;
+function vK(e, t) {
+ let n, r = _K, i = 0, a = !1;
function o(e) {
u();
let t = r.subscribe(e), n = !1;
@@ -51251,10 +52079,10 @@ function KG(e, t) {
return a;
}
function u() {
- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = WG());
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = gK());
}
function d() {
- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = GG);
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = _K);
}
function f() {
a || (a = !0, u());
@@ -51273,44 +52101,44 @@ function KG(e, t) {
};
return m;
}
-var qG = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, JG = typeof navigator < "u" && navigator.product === "ReactNative", YG = qG || JG ? I.useLayoutEffect : I.useEffect;
-function XG(e, t) {
+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) {
return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
}
-function ZG(e, t) {
- if (XG(e, t)) return !0;
+function CK(e, t) {
+ if (SK(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]) || !XG(e[n[r]], t[n[r]])) 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;
return !0;
}
-var QG = /* @__PURE__ */ Symbol.for("react-redux-context"), $G = typeof globalThis < "u" ? globalThis : {};
-function eK() {
+var wK = /* @__PURE__ */ Symbol.for("react-redux-context"), TK = typeof globalThis < "u" ? globalThis : {};
+function EK() {
if (!I.createContext) return {};
- let e = $G[QG] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
+ let e = TK[wK] ??= /* @__PURE__ */ new Map(), t = e.get(I.createContext);
return t || (t = I.createContext(null), e.set(I.createContext, t)), t;
}
-var tK = /* @__PURE__ */ eK();
-function nK(e) {
+var DK = /* @__PURE__ */ EK();
+function OK(e) {
let { children: t, context: n, serverState: r, store: i } = e, a = I.useMemo(() => {
- let e = KG(i);
+ let e = vK(i);
return {
store: i,
subscription: e,
getServerState: r ? () => r : void 0
};
}, [i, r]), o = I.useMemo(() => i.getState(), [i]);
- YG(() => {
+ xK(() => {
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 || tK;
+ let s = n || DK;
return /* @__PURE__ */ I.createElement(s.Provider, { value: a }, t);
}
-var rK = nK, iK = /* @__PURE__ */ new Set([
+var kK = OK, AK = /* @__PURE__ */ new Set([
"axisLine",
"tickLine",
"activeBar",
@@ -51333,29 +52161,29 @@ var rK = nK, iK = /* @__PURE__ */ new Set([
"radius",
"throttledEvents"
]);
-function aK(e, t) {
+function jK(e, t) {
return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;
}
-function oK(e, t) {
- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (iK.has(n)) {
+function MK(e, t) {
+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (AK.has(n)) {
if (e[n] == null && t[n] == null) continue;
- if (!ZG(e[n], t[n])) return !1;
- } else if (!aK(e[n], t[n])) return !1;
+ if (!CK(e[n], t[n])) return !1;
+ } else if (!jK(e[n], t[n])) return !1;
return !0;
}
//#endregion
//#region node_modules/recharts/es6/component/Legend.js
-var sK = ["contextPayload"];
-function cK() {
- return cK = Object.assign ? Object.assign.bind() : function(e) {
+var NK = ["contextPayload"];
+function PK() {
+ return PK = 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;
- }, cK.apply(null, arguments);
+ }, PK.apply(null, arguments);
}
-function lK(e, t) {
+function FK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51365,30 +52193,30 @@ function lK(e, t) {
}
return n;
}
-function uK(e) {
+function IK(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? lK(Object(n), !0).forEach(function(t) {
- dK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lK(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function dK(e, t, n) {
- return (t = fK(t)) in e ? Object.defineProperty(e, t, {
+function LK(e, t, n) {
+ return (t = RK(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function fK(e) {
- var t = pK(e, "string");
+function RK(e) {
+ var t = zK(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function pK(e, t) {
+function zK(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51398,16 +52226,16 @@ function pK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function mK(e, t) {
+function BK(e, t) {
if (e == null) return {};
- var n, r, i = hK(e, t);
+ var n, r, i = VK(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 hK(e, t) {
+function VK(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51416,36 +52244,36 @@ function hK(e, t) {
}
return n;
}
-function gK(e) {
+function HK(e) {
return e.value;
}
-function _K(e) {
- var { contextPayload: t } = e, n = mK(e, sK), r = Jz(t, e.payloadUniqBy, gK), i = uK(uK({}, 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(Epe, i);
+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 vK(e, t, n, r, i, a) {
+function WK(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 }), uK(uK({}, 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);
}
-function yK(e) {
- var t = Xz();
+function GK(e) {
+ var t = vB();
return (0, I.useEffect)(() => {
- t(LG(e));
+ t(lK(e));
}, [t, e]), null;
}
-function bK(e) {
- var t = Xz();
- return (0, I.useEffect)(() => (t(IG(e)), () => {
- t(IG({
+function KK(e) {
+ var t = vB();
+ return (0, I.useEffect)(() => (t(cK(e)), () => {
+ t(cK({
width: 0,
height: 0
}));
}), [t, e]), null;
}
-function xK(e, t, n, r) {
+function qK(e, t, n, r) {
return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;
}
-var SK = {
+var JK = {
align: "center",
iconSize: 14,
inactiveColor: "#ccc",
@@ -51453,28 +52281,28 @@ var SK = {
layout: "horizontal",
verticalAlign: "bottom"
};
-function CK(e) {
- var t = Cz(e, SK), n = Ime(), r = bfe(), i = jW(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = sB([n]), d = kW(), f = AW();
+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();
if (d == null || f == null) return null;
- var p = d - (i?.left || 0) - (i?.right || 0), m = xK(t.layout, o, a, p), h = c ? s : uK(uK({
+ var p = d - (i?.left || 0) - (i?.right || 0), m = qK(t.layout, o, a, p), h = c ? s : IK(IK({
position: "absolute",
width: m?.width || a || "auto",
height: m?.height || o || "auto"
- }, vK(s, t, i, d, f, l)), s), g = c ?? r;
+ }, WK(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(yK, {
+ }, /*#__PURE__*/ I.createElement(GK, {
layout: t.layout,
align: t.align,
verticalAlign: t.verticalAlign,
itemSorter: t.itemSorter
- }), !c && /*#__PURE__*/ I.createElement(bK, {
+ }), !c && /*#__PURE__*/ I.createElement(KK, {
width: l.width,
height: l.height
- }), /*#__PURE__*/ I.createElement(_K, cK({}, t, m, {
+ }), /*#__PURE__*/ I.createElement(UK, PK({}, t, m, {
margin: i,
chartWidth: d,
chartHeight: f,
@@ -51482,20 +52310,20 @@ function CK(e) {
})));
return /*#__PURE__*/ (0, Ch.createPortal)(_, g);
}
-var wK = /*#__PURE__*/ I.memo(CK, oK);
-wK.displayName = "Legend";
+var XK = /*#__PURE__*/ I.memo(YK, MK);
+XK.displayName = "Legend";
//#endregion
//#region node_modules/recharts/es6/component/DefaultTooltipContent.js
-function TK() {
- return TK = Object.assign ? Object.assign.bind() : function(e) {
+function ZK() {
+ return ZK = 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;
- }, TK.apply(null, arguments);
+ }, ZK.apply(null, arguments);
}
-function EK(e, t) {
+function QK(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51505,30 +52333,30 @@ function EK(e, t) {
}
return n;
}
-function DK(e) {
+function $K(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? EK(Object(n), !0).forEach(function(t) {
- OK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EK(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function OK(e, t, n) {
- return (t = kK(t)) in e ? Object.defineProperty(e, t, {
+function eq(e, t, n) {
+ return (t = tq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kK(e) {
- var t = AK(e, "string");
+function tq(e) {
+ var t = nq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function AK(e, t) {
+function nq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51538,10 +52366,10 @@ function AK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jK(e) {
- return Array.isArray(e) && iz(e[0]) && iz(e[1]) ? e.join(" ~ ") : e;
+function rq(e) {
+ return Array.isArray(e) && Ez(e[0]) && Ez(e[1]) ? e.join(" ~ ") : e;
}
-var MK = {
+var iq = {
separator: " : ",
contentStyle: {
margin: 0,
@@ -51559,30 +52387,30 @@ var MK = {
labelStyle: {},
accessibilityLayer: !1
};
-function NK(e, t) {
- return t == null ? e : iB(e, t);
+function aq(e, t) {
+ return t == null ? e : EB(e, t);
}
-var PK = (e) => {
- var { separator: t = MK.separator, contentStyle: n, itemStyle: r, labelStyle: i = MK.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = MK.accessibilityLayer } = e, p = () => {
+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 = () => {
if (a && a.length) {
var e = {
padding: 0,
margin: 0
- }, n = NK(a, s).map((e, n) => {
+ }, n = aq(a, s).map((e, n) => {
if (e.type === "none") return null;
- var i = e.formatter || o || jK, { value: s, name: c } = e, l = s, u = c;
+ var i = e.formatter || o || rq, { 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 = DK(DK({}, MK.itemStyle), {}, { color: e.color || MK.itemStyle.color }, r);
+ var f = $K($K({}, iq.itemStyle), {}, { color: e.color || iq.itemStyle.color }, r);
return /*#__PURE__*/ I.createElement("li", {
className: "recharts-tooltip-item",
key: `tooltip-item-${n}`,
style: f
- }, iz(u) ? /*#__PURE__*/ I.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, iz(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 || ""));
+ }, 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 || ""));
});
return /*#__PURE__*/ I.createElement("ul", {
className: "recharts-tooltip-item-list",
@@ -51590,30 +52418,30 @@ var PK = (e) => {
}, n);
}
return null;
- }, m = DK(DK({}, MK.contentStyle), n), h = DK({ margin: 0 }, i), g = !uz(u), _ = g ? u : "", v = Jm("recharts-default-tooltip", c), y = Jm("recharts-tooltip-label", l);
+ }, 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);
g && d && a != null && (_ = d(u, a));
var b = f ? {
role: "status",
"aria-live": "assertive"
} : {};
- return /*#__PURE__*/ I.createElement("div", TK({
+ return /*#__PURE__*/ I.createElement("div", ZK({
className: v,
style: m
}, b), /*#__PURE__*/ I.createElement("p", {
className: y,
style: h
}, /*#__PURE__*/ I.isValidElement(_) ? _ : `${_}`), p());
-}, FK = "recharts-tooltip-wrapper", IK = { visibility: "hidden" };
-function LK(e) {
+}, sq = "recharts-tooltip-wrapper", cq = { visibility: "hidden" };
+function lq(e) {
var { coordinate: t, translateX: n, translateY: r } = e;
- return Jm(FK, {
- [`${FK}-right`]: Z(n) && t && Z(t.x) && n >= t.x,
- [`${FK}-left`]: Z(n) && t && Z(t.x) && n < t.x,
- [`${FK}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,
- [`${FK}-top`]: Z(r) && t && Z(t.y) && r < t.y
+ 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
});
}
-function RK(e) {
+function uq(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;
@@ -51621,13 +52449,13 @@ function RK(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 zK(e) {
+function dq(e) {
var { translateX: t, translateY: n, useTranslate3d: r } = e;
return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };
}
-function BK(e) {
+function fq(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 = RK({
+ return s.height > 0 && s.width > 0 && n ? (d = uq({
allowEscapeViewBox: t,
coordinate: n,
key: "x",
@@ -51637,7 +52465,7 @@ function BK(e) {
tooltipDimension: s.width,
viewBox: l,
viewBoxDimension: l.width
- }), f = RK({
+ }), f = uq({
allowEscapeViewBox: t,
coordinate: n,
key: "y",
@@ -51647,27 +52475,27 @@ function BK(e) {
tooltipDimension: s.height,
viewBox: l,
viewBoxDimension: l.height
- }), u = zK({
+ }), u = dq({
translateX: d,
translateY: f,
useTranslate3d: c
- })) : u = IK, {
+ })) : u = cq, {
cssProperties: u,
- cssClasses: LK({
+ cssClasses: lq({
translateX: d,
translateY: f,
coordinate: n
})
};
}
-var VK = {
+var pq = {
devToolsEnabled: !0,
isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)
};
//#endregion
//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js
-function HK() {
- var [e, t] = (0, I.useState)(() => VK.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
+function mq() {
+ var [e, t] = (0, I.useState)(() => pq.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 = () => {
@@ -51681,7 +52509,7 @@ function HK() {
}
//#endregion
//#region node_modules/recharts/es6/component/TooltipBoundingBox.js
-function UK(e, t) {
+function hq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51691,30 +52519,30 @@ function UK(e, t) {
}
return n;
}
-function WK(e) {
+function gq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? UK(Object(n), !0).forEach(function(t) {
- GK(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UK(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function GK(e, t, n) {
- return (t = KK(t)) in e ? Object.defineProperty(e, t, {
+function _q(e, t, n) {
+ return (t = vq(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function KK(e) {
- var t = qK(e, "string");
+function vq(e) {
+ var t = yq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function qK(e, t) {
+function yq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51724,11 +52552,11 @@ function qK(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function JK(e) {
+function bq(e) {
if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;
}
-function YK(e) {
- var t = HK(), [n, r] = I.useState(() => ({
+function xq(e) {
+ var t = mq(), [n, r] = I.useState(() => ({
dismissed: !1,
dismissedAtCoordinate: {
x: 0,
@@ -51748,8 +52576,8 @@ function YK(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(WK(WK({}, n), {}, { dismissed: !1 }));
- var { cssClasses: i, cssProperties: a } = BK({
+ }, [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({
allowEscapeViewBox: e.allowEscapeViewBox,
coordinate: e.coordinate,
offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,
@@ -51762,7 +52590,7 @@ function YK(e) {
},
useTranslate3d: e.useTranslate3d,
viewBox: e.viewBox
- }), o = WK(WK({}, e.hasPortalFromProps ? {} : WK(WK({ transition: JK({
+ }), o = gq(gq({}, e.hasPortalFromProps ? {} : gq(gq({ transition: bq({
prefersReducedMotion: t,
isAnimationActive: e.isAnimationActive,
active: e.active,
@@ -51782,19 +52610,19 @@ function YK(e) {
ref: e.innerRef
}, e.children);
}
-var XK = /*#__PURE__*/ I.memo(YK), ZK = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
+var Sq = /*#__PURE__*/ I.memo(xq), Cq = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;
//#endregion
//#region node_modules/recharts/es6/shape/Curve.js
-function QK() {
- return QK = Object.assign ? Object.assign.bind() : function(e) {
+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;
- }, QK.apply(null, arguments);
+ }, wq.apply(null, arguments);
}
-function $K(e, t) {
+function Tq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51804,30 +52632,30 @@ function $K(e, t) {
}
return n;
}
-function eq(e) {
+function Eq(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? $K(Object(n), !0).forEach(function(t) {
- tq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $K(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 tq(e, t, n) {
- return (t = nq(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 nq(e) {
- var t = rq(e, "string");
+function Oq(e) {
+ var t = kq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rq(e, t) {
+function kq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51837,40 +52665,40 @@ function rq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iq = {
- curveBasisClosed: Rfe,
- curveBasisOpen: zfe,
- curveBasis: Lfe,
- curveBumpX: Cfe,
- curveBumpY: wfe,
- curveLinearClosed: Bfe,
- curveLinear: hR,
- curveMonotoneX: Vfe,
- curveMonotoneY: Hfe,
- curveNatural: Ufe,
- curveStep: Wfe,
- curveStepAfter: Kfe,
- curveStepBefore: Gfe
-}, aq = (e) => nU(e.x) && nU(e.y), oq = (e) => e.base != null && aq(e.base) && aq(e), sq = (e) => e.x, cq = (e) => e.y, lq = (e, t) => {
+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) => {
if (typeof e == "function") return e;
- var n = `curve${dz(e)}`;
+ var n = `curve${Nz(e)}`;
if ((n === "curveMonotone" || n === "curveBump") && t) {
- var r = iq[`${n}${t === "vertical" ? "Y" : "X"}`];
+ var r = Aq[`${n}${t === "vertical" ? "Y" : "X"}`];
if (r) return r;
}
- return iq[n] || hR;
-}, uq = {
+ return Aq[n] || LR;
+}, Iq = {
connectNulls: !1,
type: "linear"
-}, dq = (e) => {
- var { type: t = uq.type, points: n = [], baseLine: r, layout: i, connectNulls: a = uq.connectNulls } = e, o = lq(t, i), s = a ? n.filter(aq) : n;
+}, 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;
if (Array.isArray(r)) {
- var c, l = n.map((e, t) => eq(eq({}, e), {}, { base: r[t] }));
- return c = i === "vertical" ? yR().y(cq).x1(sq).x0((e) => e.base.x) : yR().x(sq).y1(cq).y0((e) => e.base.y), c.defined(oq).curve(o)(a ? l.filter(oq) : l);
+ 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);
}
- return (i === "vertical" && Z(r) ? yR().y(cq).x1(sq).x0(r) : Z(r) ? yR().x(sq).y1(cq).y0(r) : vR().x(sq).y(cq)).defined(aq).curve(o)(s);
-}, fq = (e) => {
- var { className: t, points: n, path: r, pathRef: i } = e, a = NW();
+ 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();
if ((!n || !n.length) && !r) return null;
var o = {
type: e.type,
@@ -51878,13 +52706,13 @@ var iq = {
baseLine: e.baseLine,
layout: e.layout || a,
connectNulls: e.connectNulls
- }, s = n && n.length ? dq(o) : r;
- return /*#__PURE__*/ I.createElement("path", QK({}, qL(e), bz(e), {
+ }, s = n && n.length ? Lq(o) : r;
+ return /*#__PURE__*/ I.createElement("path", wq({}, hR(e), Hz(e), {
className: Jm("recharts-curve", t),
d: s === null ? void 0 : s,
ref: i
}));
-}, pq = [
+}, zq = [
"x",
"y",
"top",
@@ -51893,16 +52721,16 @@ var iq = {
"height",
"className"
];
-function mq() {
- return mq = Object.assign ? Object.assign.bind() : function(e) {
+function Bq() {
+ return Bq = 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;
- }, mq.apply(null, arguments);
+ }, Bq.apply(null, arguments);
}
-function hq(e, t) {
+function Vq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -51912,30 +52740,30 @@ function hq(e, t) {
}
return n;
}
-function gq(e) {
+function Hq(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 ? 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) {
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 Uq(e, t, n) {
+ return (t = Wq(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 Wq(e) {
+ var t = Gq(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function yq(e, t) {
+function Gq(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -51945,16 +52773,16 @@ function yq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function bq(e, t) {
+function Kq(e, t) {
if (e == null) return {};
- var n, r, i = xq(e, t);
+ var n, r, i = qq(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 xq(e, t) {
+function qq(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -51963,8 +52791,8 @@ function xq(e, t) {
}
return n;
}
-var Sq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Cq = (e) => {
- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = bq(e, pq), l = gq({
+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({
x: t,
y: n,
top: r,
@@ -51972,14 +52800,14 @@ var Sq = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, Cq = (e) => {
width: a,
height: o
}, c);
- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ I.createElement("path", mq({}, YL(l), {
+ 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: Sq(t, n, a, o, r, i)
+ d: Jq(t, n, a, o, r, i)
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js
-function wq(e, t, n, r) {
+function Xq(e, t, n, r) {
var i = r / 2;
return {
stroke: "none",
@@ -51992,7 +52820,7 @@ function wq(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/animation/util.js
-function Tq(e, t) {
+function Zq(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52002,30 +52830,30 @@ function Tq(e, t) {
}
return n;
}
-function Eq(e) {
+function Qq(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 ? 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) {
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 $q(e, t, n) {
+ return (t = eJ(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 eJ(e) {
+ var t = tJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function kq(e, t) {
+function tJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52035,10 +52863,10 @@ function kq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Aq = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), jq = (e, t, n) => e.map((e) => `${Aq(e)} ${t}ms ${n}`).join(","), Mq = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), Nq = (e, t) => Object.keys(t).reduce((n, r) => Eq(Eq({}, n), {}, { [r]: e(r, t[r]) }), {});
+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]) }), {});
//#endregion
//#region node_modules/recharts/es6/animation/configUpdate.js
-function Pq(e, t) {
+function oJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52048,30 +52876,30 @@ function Pq(e, t) {
}
return n;
}
-function Fq(e) {
+function sJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? Pq(Object(n), !0).forEach(function(t) {
- Iq(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Pq(Object(n)).forEach(function(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) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
});
}
return e;
}
-function Iq(e, t, n) {
- return (t = Lq(t)) in e ? Object.defineProperty(e, t, {
+function cJ(e, t, n) {
+ return (t = lJ(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lq(e) {
- var t = Rq(e, "string");
+function lJ(e) {
+ var t = uJ(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rq(e, t) {
+function uJ(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52081,51 +52909,51 @@ function Rq(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var zq = (e, t, n) => e + (t - e) * n, Bq = (e) => {
+var dJ = (e, t, n) => e + (t - e) * n, fJ = (e) => {
var { from: t, to: n } = e;
return t !== n;
-}, Vq = (e, t, n) => {
- var r = Nq((t, n) => {
- if (Bq(n)) {
+}, pJ = (e, t, n) => {
+ var r = aJ((t, n) => {
+ if (fJ(n)) {
var [r, i] = e(n.from, n.to, n.velocity);
- return Fq(Fq({}, n), {}, {
+ return sJ(sJ({}, n), {}, {
from: r,
velocity: i
});
}
return n;
}, t);
- return n < 1 ? Nq((e, t) => Bq(t) && r[e] != null ? Fq(Fq({}, t), {}, {
- velocity: zq(t.velocity, r[e].velocity, n),
- from: zq(t.from, r[e].from, n)
- }) : t, t) : Vq(e, r, n - 1);
+ 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);
};
-function Hq(e, t, n, r, i, a) {
- var o, s = r.reduce((n, r) => Fq(Fq({}, n), {}, { [r]: {
+function mJ(e, t, n, r, i, a) {
+ var o, s = r.reduce((n, r) => sJ(sJ({}, n), {}, { [r]: {
from: e[r],
velocity: 0,
to: t[r]
- } }), {}), c = () => Nq((e, t) => t.from, s), l = () => !Object.values(s).filter(Bq).length, u = null, d = (r) => {
+ } }), {}), c = () => aJ((e, t) => t.from, s), l = () => !Object.values(s).filter(fJ).length, u = null, d = (r) => {
o ||= r;
var f = (r - o) / n.dt;
- s = Vq(n, s, f), i(Fq(Fq(Fq({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
+ s = pJ(n, s, f), i(sJ(sJ(sJ({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));
};
return () => (u = a.setTimeout(d), () => {
var e;
(e = u) == null || e();
});
}
-function Uq(e, t, n, r, i, a, o) {
+function hJ(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 : Fq(Fq({}, n), {}, { [r]: [i, a] });
+ return i == null || a == null ? n : sJ(sJ({}, n), {}, { [r]: [i, a] });
}, {}), l, u = (i) => {
l ||= i;
- var d = (i - l) / r, f = Nq((e, t) => zq(...t, n(d)), c);
- if (a(Fq(Fq(Fq({}, e), t), f)), d < 1) s = o.setTimeout(u);
+ 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);
else {
- var p = Nq((e, t) => zq(...t, n(1)), c);
- a(Fq(Fq(Fq({}, e), t), p));
+ var p = aJ((e, t) => dJ(...t, n(1)), c);
+ a(sJ(sJ(sJ({}, e), t), p));
}
};
return () => (s = o.setTimeout(u), () => {
@@ -52133,15 +52961,15 @@ function Uq(e, t, n, r, i, a, o) {
(e = s) == null || e();
});
}
-var Wq = (e, t, n, r, i, a) => {
- var o = Mq(e, t);
- return n == null ? () => (i(Fq(Fq({}, e), t)), () => {}) : n.isStepper === !0 ? Hq(e, t, n, o, i, a) : Uq(e, t, n, r, o, i, a);
-}, Gq = (e, t) => [
+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) => [
0,
3 * e,
3 * t - 6 * e,
3 * e - 3 * t + 1
-], Kq = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), qq = (e, t) => (n) => Kq(Gq(e, t), n), Jq = (e, t) => (n) => Kq([...Gq(e, t).map((e, t) => e * t).slice(1), 0], n), Yq = (e) => {
+], 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) => {
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(",");
@@ -52153,7 +52981,7 @@ var Wq = (e, t, n, r, i, a) => {
i[2],
i[3]
];
-}, Xq = function() {
+}, SJ = function() {
var e = [...arguments];
if (e.length === 1) switch (e[0]) {
case "linear": return [
@@ -52187,7 +53015,7 @@ var Wq = (e, t, n, r, i, a) => {
1
];
default:
- var t = Yq(e[0]);
+ var t = xJ(e[0]);
if (t) return t;
}
return e.length === 4 ? e : [
@@ -52196,8 +53024,8 @@ var Wq = (e, t, n, r, i, a) => {
1,
1
];
-}, Zq = (e, t, n, r) => {
- var i = qq(e, n), a = qq(t, r), o = Jq(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {
+}, 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) => {
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);
@@ -52206,29 +53034,29 @@ var Wq = (e, t, n, r, i, a) => {
return a(n);
};
return c.isStepper = !1, c;
-}, Qq = function() {
- return Zq(...Xq(...arguments));
-}, $q = function() {
+}, wJ = function() {
+ return CJ(...SJ(...arguments));
+}, TJ = 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) => {
+}, EJ = (e) => {
if (typeof e == "string") switch (e) {
case "ease":
case "ease-in-out":
case "ease-out":
case "ease-in":
- case "linear": return Qq(e);
- case "spring": return $q();
- default: if (e.split("(")[0] === "cubic-bezier") return Qq(e);
+ case "linear": return wJ(e);
+ case "spring": return TJ();
+ default: if (e.split("(")[0] === "cubic-bezier") return wJ(e);
}
return typeof e == "function" ? e : null;
};
//#endregion
//#region node_modules/recharts/es6/animation/AnimationManager.js
-function tJ(e) {
+function DJ(e) {
var t, n = () => null, r = !1, i = null, a = (o) => {
if (!r) {
if (Array.isArray(o)) {
@@ -52259,7 +53087,7 @@ function tJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/animation/timeoutController.js
-var nJ = class {
+var OJ = 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));
@@ -52271,14 +53099,14 @@ var nJ = class {
};
//#endregion
//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js
-function rJ() {
- return tJ(new nJ());
+function kJ() {
+ return DJ(new OJ());
}
//#endregion
//#region node_modules/recharts/es6/animation/useAnimationManager.js
-var iJ = /*#__PURE__*/ (0, I.createContext)(rJ);
-function aJ(e, t) {
- var n = (0, I.useContext)(iJ);
+var AJ = /*#__PURE__*/ (0, I.createContext)(kJ);
+function jJ(e, t) {
+ var n = (0, I.useContext)(AJ);
return (0, I.useMemo)(() => t ?? n(e), [
e,
t,
@@ -52287,7 +53115,7 @@ function aJ(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/animation/JavascriptAnimate.js
-var oJ = {
+var MJ = {
begin: 0,
duration: 1e3,
easing: "ease",
@@ -52295,14 +53123,14 @@ var oJ = {
canBegin: !0,
onAnimationEnd: () => {},
onAnimationStart: () => {}
-}, sJ = { t: 0 }, cJ = { t: 1 };
-function lJ(e) {
- var t = Cz(e, oJ), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = HK(), d = n === "auto" ? !VK.isSsr && !u : n, f = aJ(t.animationId, t.animationManager), [p, m] = (0, I.useState)(d ? sJ : cJ), h = (0, I.useRef)(null);
+}, 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);
return (0, I.useEffect)(() => {
- d || m(cJ);
+ d || m(PJ);
}, [d]), (0, I.useEffect)(() => {
- if (!d || !r) return pz;
- var e = Wq(sJ, cJ, eJ(a), i, m, f.getTimeoutController());
+ if (!d || !r) return Fz;
+ var e = gJ(NJ, PJ, EJ(a), i, m, f.getTimeoutController());
return f.start([
c,
o,
@@ -52327,14 +53155,14 @@ function lJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/util/useAnimationId.js
-function uJ(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, I.useRef)(az(t)), r = (0, I.useRef)(e);
- return r.current !== e && (n.current = az(t), r.current = e), n.current;
+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;
}
//#endregion
//#region node_modules/recharts/es6/shape/Rectangle.js
-var dJ = ["radius"], fJ = ["radius"], pJ, mJ, hJ, gJ, _J, vJ, yJ, bJ, xJ, SJ;
-function CJ(e, t) {
+var LJ = ["radius"], RJ = ["radius"], zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, che, lhe;
+function qJ(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52344,30 +53172,30 @@ function CJ(e, t) {
}
return n;
}
-function wJ(e) {
+function JJ(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? CJ(Object(n), !0).forEach(function(t) {
- TJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CJ(Object(n)).forEach(function(t) {
+ t % 2 ? qJ(Object(n), !0).forEach(function(t) {
+ uhe(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 TJ(e, t, n) {
- return (t = EJ(t)) in e ? Object.defineProperty(e, t, {
+function uhe(e, t, n) {
+ return (t = dhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function EJ(e) {
- var t = DJ(e, "string");
+function dhe(e) {
+ var t = fhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function DJ(e, t) {
+function fhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52377,25 +53205,25 @@ function DJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function OJ() {
- return OJ = Object.assign ? Object.assign.bind() : function(e) {
+function YJ() {
+ return YJ = 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;
- }, OJ.apply(null, arguments);
+ }, YJ.apply(null, arguments);
}
-function kJ(e, t) {
+function XJ(e, t) {
if (e == null) return {};
- var n, r, i = AJ(e, t);
+ var n, r, i = phe(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 AJ(e, t) {
+function phe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -52404,11 +53232,11 @@ function AJ(e, t) {
}
return n;
}
-function jJ(e, t) {
+function ZJ(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var MJ = (e, t, n, r, i) => {
- var a = $R(n), o = $R(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 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;
if (s > 0 && Array.isArray(i)) {
for (var f = [
0,
@@ -52419,44 +53247,44 @@ var MJ = (e, t, n, r, i) => {
var h = i[p] ?? 0;
f[p] = h > s ? s : h;
}
- d = ez(pJ ||= jJ([
+ d = Sz(zJ ||= ZJ([
"M",
",",
""
- ]), e, t + c * f[0]), f[0] > 0 && (d += ez(mJ ||= jJ([
+ ]), e, t + c * f[0]), f[0] > 0 && (d += Sz(BJ ||= ZJ([
"A ",
",",
",0,0,",
",",
",",
""
- ]), f[0], f[0], u, e + l * f[0], t)), d += ez(hJ ||= jJ([
+ ]), f[0], f[0], u, e + l * f[0], t)), d += Sz(VJ ||= ZJ([
"L ",
",",
""
- ]), e + n - l * f[1], t), f[1] > 0 && (d += ez(gJ ||= jJ([
+ ]), e + n - l * f[1], t), f[1] > 0 && (d += Sz(HJ ||= ZJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[1], f[1], u, e + n, t + c * f[1])), d += ez(_J ||= jJ([
+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += Sz(UJ ||= ZJ([
"L ",
",",
""
- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += ez(vJ ||= jJ([
+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Sz(WJ ||= ZJ([
"A ",
",",
",0,0,",
",\n ",
",",
""
- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += ez(yJ ||= jJ([
+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Sz(GJ ||= ZJ([
"L ",
",",
""
- ]), e + l * f[3], t + r), f[3] > 0 && (d += ez(bJ ||= jJ([
+ ]), e + l * f[3], t + r), f[3] > 0 && (d += Sz(KJ ||= ZJ([
"A ",
",",
",0,0,",
@@ -52466,8 +53294,8 @@ var MJ = (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 = ez(xJ ||= jJ(/* @__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 = ez(SJ ||= jJ([
+ 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([
"M ",
",",
" h ",
@@ -52476,7 +53304,7 @@ var MJ = (e, t, n, r, i) => {
" Z"
]), e, t, n, r, -n);
return d;
-}, NJ = {
+}, $J = {
x: 0,
y: 0,
width: 0,
@@ -52487,15 +53315,15 @@ var MJ = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, PJ = (e) => {
- var t = Cz(e, NJ), n = (0, I.useRef)(null), [r, i] = (0, I.useState)(-1);
+}, eY = (e) => {
+ var t = Gz(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 = uJ((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 = IJ((0, I.useMemo)(() => ({
x: a,
y: o,
width: s,
@@ -52511,19 +53339,19 @@ var MJ = (e, t, n, r, i) => {
if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;
var x = Jm("recharts-rectangle", u);
if (!h) {
- var S = YL(t), { radius: C } = S, w = kJ(S, dJ);
- return /*#__PURE__*/ I.createElement("path", OJ({}, w, {
- x: $R(a),
- y: $R(o),
- width: $R(s),
- height: $R(c),
+ var S = _R(t), { radius: C } = S, w = XJ(S, LJ);
+ return /*#__PURE__*/ I.createElement("path", YJ({}, w, {
+ x: xz(a),
+ y: xz(o),
+ width: xz(s),
+ height: xz(c),
radius: typeof l == "number" ? l : void 0,
className: x,
- d: MJ(a, o, s, c, l)
+ 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 = jq(["strokeDasharray"], f, typeof d == "string" ? d : NJ.animationEasing);
- return /*#__PURE__*/ I.createElement(lJ, {
+ 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, {
animationId: b,
key: b,
canBegin: r > 0,
@@ -52532,24 +53360,24 @@ var MJ = (e, t, n, r, i) => {
isActive: h,
begin: p
}, (e) => {
- var r = cz(T, s, e), i = cz(E, c, e), u = cz(D, a, e), d = cz(O, o, e);
+ var r = Az(T, s, e), i = Az(E, c, e), u = Az(D, a, e), d = Az(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 = YL(t), { radius: h } = p, b = kJ(p, fJ);
- return /*#__PURE__*/ I.createElement("path", OJ({}, b, {
+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = _R(t), { radius: h } = p, b = XJ(p, RJ);
+ return /*#__PURE__*/ I.createElement("path", YJ({}, b, {
radius: typeof l == "number" ? l : void 0,
className: x,
- d: MJ(u, d, r, i, l),
+ d: QJ(u, d, r, i, l),
ref: n,
- style: wJ(wJ({}, f), t.style)
+ style: JJ(JJ({}, f), t.style)
}));
});
};
//#endregion
//#region node_modules/recharts/es6/util/PolarUtils.js
-function FJ(e, t) {
+function tY(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
@@ -52559,30 +53387,30 @@ function FJ(e, t) {
}
return n;
}
-function IJ(e) {
+function nY(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t] == null ? {} : arguments[t];
- t % 2 ? FJ(Object(n), !0).forEach(function(t) {
- LJ(e, t, n[t]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : FJ(Object(n)).forEach(function(t) {
+ t % 2 ? tY(Object(n), !0).forEach(function(t) {
+ mhe(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 LJ(e, t, n) {
- return (t = RJ(t)) in e ? Object.defineProperty(e, t, {
+function mhe(e, t, n) {
+ return (t = hhe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function RJ(e) {
- var t = zJ(e, "string");
+function hhe(e) {
+ var t = ghe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function zJ(e, t) {
+function ghe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -52592,10 +53420,10 @@ function zJ(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var BJ = Math.PI / 180, VJ = (e) => e * Math.PI / 180, HJ = (e) => e * 180 / Math.PI, UJ = (e, t, n, r) => ({
- x: e + Math.cos(-BJ * r) * n,
- y: t + Math.sin(-BJ * r) * n
-}), WJ = function(e, t) {
+var rY = Math.PI / 180, iY = (e) => e * Math.PI / 180, _he = (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) {
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
top: 0,
right: 0,
@@ -52606,11 +53434,11 @@ var BJ = Math.PI / 180, VJ = (e) => e * Math.PI / 180, HJ = (e) => e * 180 / Mat
brushBottom: 0
};
return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;
-}, GJ = (e, t) => {
+}, yhe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return Math.sqrt((n - i) ** 2 + (r - a) ** 2);
-}, KJ = (e, t) => {
- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = GJ({
+}, bhe = (e, t) => {
+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = yhe({
x: n,
y: r
}, {
@@ -52624,25 +53452,25 @@ var BJ = Math.PI / 180, VJ = (e) => e * Math.PI / 180, HJ = (e) => e * 180 / Mat
var s = (n - i) / o, c = Math.acos(s);
return r > a && (c = 2 * Math.PI - c), {
radius: o,
- angle: HJ(c),
+ angle: _he(c),
angleInRadian: c
};
-}, qJ = (e) => {
+}, xhe = (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
};
-}, JJ = (e, t) => {
+}, She = (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;
-}, YJ = (e, t) => {
- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = KJ({
+}, Che = (e, t) => {
+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = bhe({
x: n,
y: r
}, t), { innerRadius: o, outerRadius: s } = t;
if (i < o || i > s || i === 0) return null;
- var { startAngle: c, endAngle: l } = qJ(t), u = a, d;
+ var { startAngle: c, endAngle: l } = xhe(t), u = a, d;
if (c <= l) {
for (; u > l;) u -= 360;
for (; u < c;) u += 360;
@@ -52652,17 +53480,17 @@ var BJ = Math.PI / 180, VJ = (e) => e * Math.PI / 180, HJ = (e) => e * 180 / Mat
for (; u < l;) u += 360;
d = u >= l && u <= c;
}
- return d ? IJ(IJ({}, t), {}, {
+ return d ? nY(nY({}, t), {}, {
radius: i,
- angle: JJ(u, t)
+ angle: She(u, t)
}) : null;
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
-function XJ(e) {
+function oY(e) {
var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;
return {
- points: [UJ(t, n, r, i), UJ(t, n, r, a)],
+ points: [aY(t, n, r, i), aY(t, n, r, a)],
cx: t,
cy: n,
radius: r,
@@ -52672,29 +53500,29 @@ function XJ(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Sector.js
-var ZJ, QJ, $J, eY, tY, nY, rY;
-function iY() {
- return iY = Object.assign ? Object.assign.bind() : function(e) {
+var whe, The, Ehe, Dhe, Ohe, khe, Ahe;
+function sY() {
+ return sY = 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;
- }, iY.apply(null, arguments);
+ }, sY.apply(null, arguments);
}
-function aY(e, t) {
+function cY(e, t) {
return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));
}
-var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (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) / BJ, d = c ? i : i + a * u, f = UJ(t, n, l, d), p = UJ(t, n, r, d), m = c ? i - a * u : i;
+var jhe = (e, t) => Cz(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,
circleTangency: p,
- lineTangency: UJ(t, n, l * Math.cos(u * BJ), m),
+ lineTangency: aY(t, n, l * Math.cos(u * rY), m),
theta: u
};
-}, cY = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = oY(a, o), c = a + s, l = UJ(t, n, i, a), u = UJ(t, n, i, c), d = ez(ZJ ||= aY([
+}, 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([
"M ",
",",
"\n A ",
@@ -52706,8 +53534,8 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
"\n "
]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);
if (r > 0) {
- var f = UJ(t, n, r, a), p = UJ(t, n, r, c);
- d += ez(QJ ||= aY([
+ var f = aY(t, n, r, a), p = aY(t, n, r, c);
+ d += Sz(The ||= cY([
"L ",
",",
"\n A ",
@@ -52718,14 +53546,14 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
",",
" Z"
]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);
- } else d += ez($J ||= aY([
+ } else d += Sz(Ehe ||= cY([
"L ",
",",
" Z"
]), t, n);
return d;
-}, lY = (e) => {
- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = tz(l - c), { circleTangency: d, lineTangency: f, theta: p } = sY({
+}, 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({
cx: t,
cy: n,
radius: i,
@@ -52733,7 +53561,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
sign: u,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: m, lineTangency: h, theta: g } = sY({
+ }), { circleTangency: m, lineTangency: h, theta: g } = lY({
cx: t,
cy: n,
radius: i,
@@ -52742,7 +53570,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
cornerRadius: a,
cornerIsExternal: s
}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;
- if (_ < 0) return o ? ez(eY ||= aY([
+ if (_ < 0) return o ? Sz(Dhe ||= cY([
"M ",
",",
"\n a",
@@ -52752,7 +53580,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
",",
",0,0,1,",
",0\n "
- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : cY({
+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : uY({
cx: t,
cy: n,
innerRadius: r,
@@ -52760,7 +53588,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
startAngle: c,
endAngle: l
});
- var v = ez(tY ||= aY([
+ var v = Sz(Ohe ||= cY([
"M ",
",",
"\n A",
@@ -52782,7 +53610,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
"\n "
]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);
if (r > 0) {
- var { circleTangency: y, lineTangency: b, theta: x } = sY({
+ var { circleTangency: y, lineTangency: b, theta: x } = lY({
cx: t,
cy: n,
radius: r,
@@ -52791,7 +53619,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
isExternal: !0,
cornerRadius: a,
cornerIsExternal: s
- }), { circleTangency: S, lineTangency: C, theta: w } = sY({
+ }), { circleTangency: S, lineTangency: C, theta: w } = lY({
cx: t,
cy: n,
radius: r,
@@ -52802,7 +53630,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (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 += ez(nY ||= aY([
+ v += Sz(khe ||= cY([
"L",
",",
"\n A",
@@ -52823,13 +53651,13 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (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 += ez(rY ||= aY([
+ } else v += Sz(Ahe ||= cY([
"L",
",",
"Z"
]), t, n);
return v;
-}, uY = {
+}, Nhe = {
cx: 0,
cy: 0,
innerRadius: 0,
@@ -52840,9 +53668,9 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
forceCornerRadius: !1,
cornerIsExternal: !1
}, dY = (e) => {
- var t = Cz(e, uY), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;
+ 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;
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 ? lY({
+ var f = Jm("recharts-sector", d), p = a - i, m = Oz(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? Mhe({
cx: n,
cy: r,
innerRadius: i,
@@ -52852,7 +53680,7 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
cornerIsExternal: c,
startAngle: l,
endAngle: u
- }) : cY({
+ }) : uY({
cx: n,
cy: r,
innerRadius: i,
@@ -52860,14 +53688,14 @@ var oY = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 359.999), sY = (e) => {
startAngle: l,
endAngle: u
});
- return /*#__PURE__*/ I.createElement("path", iY({}, YL(t), {
+ return /*#__PURE__*/ I.createElement("path", sY({}, _R(t), {
className: f,
d: h
}));
};
//#endregion
//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js
-function Ume(e, t, n) {
+function Phe(e, t, n) {
if (e === "horizontal") return [{
x: t.x,
y: n.top
@@ -52882,9 +53710,9 @@ function Ume(e, t, n) {
x: n.left + n.width,
y: t.y
}];
- if (yz(t)) {
+ if (Vz(t)) {
if (e === "centric") {
- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = UJ(r, i, a, s), l = UJ(r, i, o, s);
+ 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 [{
x: c.x,
y: c.y
@@ -52893,23 +53721,23 @@ function Ume(e, t, n) {
y: l.y
}];
}
- return XJ(t);
+ return oY(t);
}
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs
-function Wme(e) {
- return YR(e) ? NaN : Number(e);
+function Fhe(e) {
+ return _z(e) ? NaN : Number(e);
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs
function fY(e) {
- return e ? (e = Wme(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;
+ return e ? (e = Fhe(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.mjs
function pY(e, t, n) {
- n && typeof n != "number" && nB(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" && 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);
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;
@@ -52930,7 +53758,7 @@ var mY = (e) => e.chartData, hY = $([mY], (e) => {
function vY(e) {
if (Array.isArray(e) && e.length === 2) {
var [t, n] = e;
- if (nU(t) && nU(n)) return !0;
+ if (OU(t) && OU(n)) return !0;
}
return !1;
}
@@ -52940,15 +53768,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 (nU(n)) i = n;
+ if (OU(n)) i = n;
else if (typeof n == "function") return;
- if (nU(r)) a = r;
+ if (OU(r)) a = r;
else if (typeof r == "function") return;
var o = [i, a];
if (vY(o)) return o;
}
}
-function Gme(e, t, n) {
+function Ihe(e, t, n) {
if (!(!n && t == null)) {
if (typeof e == "function" && t != null) try {
var r = e(t, n);
@@ -52961,8 +53789,8 @@ function Gme(e, t, n) {
else if (typeof i == "function") try {
t != null && (o = i(t?.[0]));
} catch {}
- else if (typeof i == "string" && wU.test(i)) {
- var c = wU.exec(i);
+ else if (typeof i == "string" && XU.test(i)) {
+ var c = XU.exec(i);
if (c == null || c[1] == null || t == null) o = void 0;
else {
var l = +c[1];
@@ -52974,8 +53802,8 @@ function Gme(e, t, n) {
else if (typeof a == "function") try {
t != null && (s = a(t?.[1]));
} catch {}
- else if (typeof a == "string" && TU.test(a)) {
- var u = TU.exec(a);
+ else if (typeof a == "string" && ZU.test(a)) {
+ var u = ZU.exec(a);
if (u == null || u[1] == null || t == null) s = void 0;
else {
var d = +u[1];
@@ -53395,7 +54223,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()));
-}, Kme = (e, t, n) => {
+}, Lhe = (e, t, n) => {
var r = new xY.default(1), i = new xY.default(e);
if (!i.isint() && n) {
var a = Math.abs(e);
@@ -53424,7 +54252,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 Kme(s, r, i);
+ if (s === c) return Lhe(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) {
@@ -53433,7 +54261,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, qme = (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, Rhe = (e) => e.rootProps.baseValue, BY = {
grid: -100,
barBackground: -50,
area: 100,
@@ -53495,7 +54323,7 @@ var wY = (e) => {
//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js
function WY(e, t, n) {
if (n !== "auto") return n;
- if (e != null) return dU(e, t) ? "category" : "number";
+ if (e != null) return LU(e, t) ? "category" : "number";
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js
@@ -53513,26 +54341,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) {
- Jme(e, t, n[t]);
+ zhe(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 Jme(e, t, n) {
- return (t = Yme(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 Yme(e) {
- var t = Xme(e, "string");
+function Bhe(e) {
+ var t = Vhe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xme(e, t) {
+function Vhe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -53578,45 +54406,45 @@ var qY = {
niceTicks: "auto"
}, YY = $([(e, t) => {
if (t != null) return e.polarAxis.angleAxis[t];
-}, FW], (e, t) => {
+}, sG], (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], FW], (e, t) => {
+}), XY = $([(e, t) => e.polarAxis.radiusAxis[t], sG], (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 = $([
- jU,
- MU,
- JU
-], WJ), $Y = $([ZY, QY], (e, t) => {
- if (e != null) return oz(e.innerRadius, t, 0);
+ rW,
+ iW,
+ bW
+], vhe), $Y = $([ZY, QY], (e, t) => {
+ if (e != null) return Oz(e.innerRadius, t, 0);
}), eX = $([ZY, QY], (e, t) => {
- if (e != null) return oz(e.outerRadius, t, t * .8);
+ if (e != null) return Oz(e.outerRadius, t, t * .8);
}), tX = $([ZY], (e) => {
if (e == null) return [0, 0];
var { startAngle: t, endAngle: n } = e;
return [t, n];
-}), Zme = $([YY, tX], UY), nX = $([
+}), Hhe = $([YY, tX], UY), nX = $([
QY,
$Y,
eX
], (e, t, n) => {
if (e != null && t != null && n != null) return [t, n];
-}), Qme = $([XY, nX], UY), rX = $([
- MW,
+}), Uhe = $([XY, nX], UY), rX = $([
+ iG,
ZY,
$Y,
eX,
- jU,
- MU
+ rW,
+ iW
], (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: Oz(o, i, i / 2),
+ cy: Oz(s, a, a / 2),
innerRadius: n,
outerRadius: r,
startAngle: c,
@@ -53639,7 +54467,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(lU(t, a, null)), c = lU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
+ var s = a == null || i ? r : String(FU(t, a, null)), c = FU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};
Object.assign(l, { [n]: c }), o.set(s, l);
});
}
@@ -53658,7 +54486,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 $me(e, t) {
+function Whe(e, t) {
if (e.length === t.length) {
for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
return !0;
@@ -53668,7 +54496,7 @@ function $me(e, t) {
//#endregion
//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js
var dX = (e) => {
- var t = MW(e);
+ var t = iG(e);
return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";
}, fX = (e) => e.tooltip.settings.axisId;
//#endregion
@@ -53720,7 +54548,7 @@ var mX = (e, t) => {
if (!vY(t)) {
for (var n, r, i = 0; i < t.length; i++) {
var a = t[i];
- nU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));
+ OU(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;
}
@@ -53737,7 +54565,7 @@ function hX(e, t) {
//#region node_modules/d3-array/src/bisector.js
function gX(e) {
let t = e, n = e;
- e.length === 1 && (t = (t, n) => e(t) - n, n = ehe(e));
+ e.length === 1 && (t = (t, n) => e(t) - n, n = Ghe(e));
function r(e, t, r, i) {
for (r ??= 0, i ??= e.length; r < i;) {
let a = r + i >>> 1;
@@ -53763,7 +54591,7 @@ function gX(e) {
right: i
};
}
-function ehe(e) {
+function Ghe(e) {
return (t, n) => hX(e(t), n);
}
//#endregion
@@ -53771,7 +54599,7 @@ function ehe(e) {
function _X(e) {
return e === null ? NaN : +e;
}
-function* the(e, t) {
+function* Khe(e, t) {
if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);
else {
let n = -1;
@@ -53785,7 +54613,7 @@ vX.left, gX(_X).center;
//#endregion
//#region node_modules/internmap/src/index.js
var bX = class extends Map {
- constructor(e, t = ihe) {
+ constructor(e, t = Yhe) {
if (super(), Object.defineProperties(this, {
_intern: { value: /* @__PURE__ */ new Map() },
_key: { value: t }
@@ -53798,25 +54626,25 @@ var bX = class extends Map {
return super.has(xX(this, e));
}
set(e, t) {
- return super.set(nhe(this, e), t);
+ return super.set(qhe(this, e), t);
}
delete(e) {
- return super.delete(rhe(this, e));
+ return super.delete(Jhe(this, e));
}
};
function xX({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : n;
}
-function nhe({ _intern: e, _key: t }, n) {
+function qhe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) ? e.get(r) : (e.set(r, n), n);
}
-function rhe({ _intern: e, _key: t }, n) {
+function Jhe({ _intern: e, _key: t }, n) {
let r = t(n);
return e.has(r) && (n = e.get(n), e.delete(r)), n;
}
-function ihe(e) {
+function Yhe(e) {
return typeof e == "object" && e ? e.valueOf() : e;
}
//#endregion
@@ -53889,15 +54717,15 @@ function jX(e, t, n) {
}
//#endregion
//#region node_modules/d3-array/src/quantile.js
-function ahe(e, t, n) {
- if (e = Float64Array.from(the(e, n)), r = e.length) {
+function Xhe(e, t, n) {
+ if (e = Float64Array.from(Khe(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 ohe(e, t, n = _X) {
+function Zhe(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);
@@ -53907,7 +54735,7 @@ function ohe(e, t, n = _X) {
}
//#endregion
//#region node_modules/d3-array/src/range.js
-function she(e, t, n) {
+function Qhe(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;
@@ -53979,7 +54807,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 = she(e).map(function(e) {
+ var m = Qhe(e).map(function(e) {
return f + a * e;
});
return n(d ? m.reverse() : m);
@@ -54014,7 +54842,7 @@ function RX(e) {
return RX(t());
}, e;
}
-function che() {
+function $he() {
return RX(LX.apply(null, arguments).paddingInner(1));
}
//#endregion
@@ -54030,7 +54858,7 @@ function BX(e, t) {
//#endregion
//#region node_modules/d3-color/src/color.js
function 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*", lhe = /^#([0-9a-f]{3,8})$/, uhe = RegExp(`^rgb\\(${WX},${WX},${WX}\\)$`), dhe = RegExp(`^rgb\\(${KX},${KX},${KX}\\)$`), fhe = RegExp(`^rgba\\(${WX},${WX},${WX},${GX}\\)$`), phe = RegExp(`^rgba\\(${KX},${KX},${KX},${GX}\\)$`), mhe = RegExp(`^hsl\\(${GX},${KX},${KX}\\)$`), hhe = 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*", 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 = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
@@ -54189,18 +55017,18 @@ zX(VX, XX, {
},
hex: JX,
formatHex: JX,
- formatHex8: ghe,
- formatHsl: _he,
+ formatHex8: sge,
+ formatHsl: cge,
formatRgb: YX,
toString: YX
});
function JX() {
return this.rgb().formatHex();
}
-function ghe() {
+function sge() {
return this.rgb().formatHex8();
}
-function _he() {
+function cge() {
return sZ(this).formatHsl();
}
function YX() {
@@ -54208,7 +55036,7 @@ function YX() {
}
function XX(e) {
var t, n;
- return e = (e + "").trim().toLowerCase(), (t = lhe.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 = uhe.exec(e)) ? new eZ(t[1], t[2], t[3], 1) : (t = dhe.exec(e)) ? new eZ(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = fhe.exec(e)) ? QX(t[1], t[2], t[3], t[4]) : (t = phe.exec(e)) ? QX(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = mhe.exec(e)) ? oZ(t[1], t[2] / 100, t[3] / 100, 1) : (t = hhe.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 = 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;
}
function ZX(e) {
return new eZ(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
@@ -54216,11 +55044,11 @@ function ZX(e) {
function QX(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new eZ(e, t, n, r);
}
-function vhe(e) {
+function lge(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 ? vhe(e) : new eZ(e, t, n, r ?? 1);
+ return arguments.length === 1 ? lge(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;
@@ -54243,14 +55071,14 @@ zX(eZ, $X, BX(VX, {
},
hex: tZ,
formatHex: tZ,
- formatHex8: yhe,
+ formatHex8: uge,
formatRgb: nZ,
toString: nZ
}));
function tZ() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}`;
}
-function yhe() {
+function uge() {
return `#${aZ(this.r)}${aZ(this.g)}${aZ(this.b)}${aZ((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
}
function nZ() {
@@ -54277,13 +55105,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 bhe(e, t, n, r) {
+function dge(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, bhe, BX(VX, {
+zX(cZ, dge, BX(VX, {
brighter(e) {
return e = e == null ? UX : UX ** +e, new cZ(this.h, this.s, this.l * e, this.opacity);
},
@@ -54319,29 +55147,29 @@ function dZ(e, t, n) {
var fZ = (e) => () => e;
//#endregion
//#region node_modules/d3-interpolate/src/color.js
-function xhe(e, t) {
+function fge(e, t) {
return function(n) {
return e + n * t;
};
}
-function She(e, t, n) {
+function pge(e, t, n) {
return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {
return (e + r * t) ** +n;
};
}
-function Che(e) {
+function mge(e) {
return (e = +e) == 1 ? pZ : function(t, n) {
- return n - t ? She(t, n, e) : fZ(isNaN(t) ? n : t);
+ return n - t ? pge(t, n, e) : fZ(isNaN(t) ? n : t);
};
}
function pZ(e, t) {
var n = t - e;
- return n ? xhe(e, n) : fZ(isNaN(e) ? t : e);
+ return n ? fge(e, n) : fZ(isNaN(e) ? t : e);
}
//#endregion
//#region node_modules/d3-interpolate/src/rgb.js
var mZ = (function e(t) {
- var n = Che(t);
+ var n = mge(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) {
@@ -54352,7 +55180,7 @@ var mZ = (function e(t) {
})(1);
//#endregion
//#region node_modules/d3-interpolate/src/numberArray.js
-function whe(e, t) {
+function hge(e, t) {
t ||= [];
var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;
return function(a) {
@@ -54360,12 +55188,12 @@ function whe(e, t) {
return r;
};
}
-function The(e) {
+function gge(e) {
return ArrayBuffer.isView(e) && !(e instanceof DataView);
}
//#endregion
//#region node_modules/d3-interpolate/src/array.js
-function Ehe(e, t) {
+function _ge(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];
@@ -54376,7 +55204,7 @@ function Ehe(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/date.js
-function Dhe(e, t) {
+function vge(e, t) {
var n = /* @__PURE__ */ new Date();
return e = +e, t = +t, function(r) {
return n.setTime(e * (1 - r) + t * r), n;
@@ -54391,7 +55219,7 @@ function hZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/object.js
-function Ohe(e, t) {
+function yge(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) {
@@ -54402,23 +55230,23 @@ function Ohe(e, t) {
//#endregion
//#region node_modules/d3-interpolate/src/string.js
var gZ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, _Z = new RegExp(gZ.source, "g");
-function khe(e) {
+function bge(e) {
return function() {
return e;
};
}
-function Ahe(e) {
+function xge(e) {
return function(t) {
return e(t) + "";
};
}
-function jhe(e, t) {
+function Sge(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] ? Ahe(c[0].x) : khe(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] ? xge(c[0].x) : bge(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("");
});
@@ -54427,7 +55255,7 @@ function jhe(e, t) {
//#region node_modules/d3-interpolate/src/value.js
function 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) : jhe : t instanceof XX ? mZ : t instanceof Date ? Dhe : The(t) ? whe : Array.isArray(t) ? Ehe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Ohe : hZ)(e, t);
+ 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);
}
//#endregion
//#region node_modules/d3-interpolate/src/round.js
@@ -54438,7 +55266,7 @@ function yZ(e, t) {
}
//#endregion
//#region node_modules/d3-interpolate/src/piecewise.js
-function Mhe(e, t) {
+function Cge(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) {
@@ -54448,7 +55276,7 @@ function Mhe(e, t) {
}
//#endregion
//#region node_modules/d3-scale/src/constant.js
-function Nhe(e) {
+function wge(e) {
return function() {
return e;
};
@@ -54467,21 +55295,21 @@ function SZ(e) {
function CZ(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t;
- } : Nhe(isNaN(t) ? NaN : .5);
+ } : wge(isNaN(t) ? NaN : .5);
}
-function Phe(e, t) {
+function Tge(e, t) {
var n;
return e > t && (n = e, e = t, t = n), function(n) {
return Math.max(e, Math.min(t, n));
};
}
-function Fhe(e, t, n) {
+function Ege(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 Ihe(e, t, n) {
+function Dge(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) {
@@ -54496,7 +55324,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 = Phe(e[0], e[n - 1])), s = n > 2 ? Ihe : Fhe, c = l = null, d;
+ return o !== SZ && (o = Tge(e[0], e[n - 1])), s = n > 2 ? Dge : Ege, c = l = null, d;
}
function d(i) {
return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));
@@ -54524,7 +55352,7 @@ function EZ() {
}
//#endregion
//#region node_modules/d3-format/src/formatDecimal.js
-function Lhe(e) {
+function Oge(e) {
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
}
function DZ(e, t) {
@@ -54539,7 +55367,7 @@ function OZ(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatGroup.js
-function Rhe(e, t) {
+function kge(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);
@@ -54547,7 +55375,7 @@ function Rhe(e, t) {
}
//#endregion
//#region node_modules/d3-format/src/formatNumerals.js
-function zhe(e) {
+function Age(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t];
@@ -54556,9 +55384,9 @@ function zhe(e) {
}
//#endregion
//#region node_modules/d3-format/src/formatSpecifier.js
-var Bhe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
+var jge = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
function kZ(e) {
- if (!(t = Bhe.exec(e))) throw Error("invalid format: " + e);
+ if (!(t = jge.exec(e))) throw Error("invalid format: " + e);
var t;
return new AZ({
fill: t[1],
@@ -54582,7 +55410,7 @@ AZ.prototype.toString = function() {
};
//#endregion
//#region node_modules/d3-format/src/formatTrim.js
-function Vhe(e) {
+function Mge(e) {
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
case ".":
r = i = n;
@@ -54599,7 +55427,7 @@ function Vhe(e) {
//#endregion
//#region node_modules/d3-format/src/formatPrefixAuto.js
var jZ;
-function Hhe(e, t) {
+function Nge(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;
@@ -54619,14 +55447,14 @@ var NZ = {
"%": (e, t) => (e * 100).toFixed(t),
b: (e) => Math.round(e).toString(2),
c: (e) => e + "",
- d: Lhe,
+ d: Oge,
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: Hhe,
+ s: Nge,
X: (e) => Math.round(e).toString(16).toUpperCase(),
x: (e) => Math.round(e).toString(16)
};
@@ -54656,8 +55484,8 @@ var FZ = Array.prototype.map, IZ = [
"Z",
"Y"
];
-function Uhe(e) {
- var t = e.grouping === void 0 || e.thousands === void 0 ? PZ : Rhe(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 : zhe(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 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 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;
@@ -54670,7 +55498,7 @@ function Uhe(e) {
else {
e = +e;
var w = e < 0 || 1 / e < 0;
- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = Vhe(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 = 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) {
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;
@@ -54711,27 +55539,27 @@ function Uhe(e) {
//#endregion
//#region node_modules/d3-format/src/defaultLocale.js
var LZ, RZ, zZ;
-Whe({
+Fge({
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
-function Whe(e) {
- return LZ = Uhe(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
+function Fge(e) {
+ return LZ = Pge(e), RZ = LZ.format, zZ = LZ.formatPrefix, LZ;
}
//#endregion
//#region node_modules/d3-format/src/precisionFixed.js
-function Ghe(e) {
+function Ige(e) {
return Math.max(0, -OZ(Math.abs(e)));
}
//#endregion
//#region node_modules/d3-format/src/precisionPrefix.js
-function Khe(e, t) {
+function Lge(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 qhe(e, t) {
+function Rge(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, OZ(t) - OZ(e)) + 1;
}
//#endregion
@@ -54741,16 +55569,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 = Khe(i, o)) && (r.precision = a), zZ(r, o);
+ return r.precision == null && !isNaN(a = Lge(i, o)) && (r.precision = a), zZ(r, o);
case "":
case "e":
case "g":
case "p":
case "r":
- r.precision == null && !isNaN(a = qhe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
+ r.precision == null && !isNaN(a = Rge(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
break;
case "f":
- case "%": r.precision == null && !isNaN(a = Ghe(i)) && (r.precision = a - (r.type === "%") * 2);
+ case "%": r.precision == null && !isNaN(a = Ige(i)) && (r.precision = a - (r.type === "%") * 2);
}
return RZ(r);
}
@@ -54813,19 +55641,19 @@ function GZ(e) {
function KZ(e) {
return Math.exp(e);
}
-function Jhe(e) {
+function zge(e) {
return -Math.log(-e);
}
-function Yhe(e) {
+function Bge(e) {
return -Math.exp(-e);
}
-function Xhe(e) {
+function Vge(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;
}
-function Zhe(e) {
- return e === 10 ? Xhe : e === Math.E ? Math.exp : (t) => e ** +t;
+function Hge(e) {
+ return e === 10 ? Vge : e === Math.E ? Math.exp : (t) => e ** +t;
}
-function Qhe(e) {
+function Uge(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) {
@@ -54834,7 +55662,7 @@ function qZ(e) {
function JZ(e) {
let t = e(GZ, KZ), n = t.domain, r = 10, i, a;
function o() {
- return i = Qhe(r), a = Zhe(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(Jhe, Yhe)) : e(GZ, KZ), t;
+ return i = Uge(r), a = Hge(r), n()[0] < 0 ? (i = qZ(i), a = qZ(a), e(zge, Bge)) : e(GZ, KZ), t;
}
return t.base = function(e) {
return arguments.length ? (r = +e, o()) : r;
@@ -54904,16 +55732,16 @@ function eQ(e) {
return t < 0 ? -((-t) ** +e) : t ** +e;
};
}
-function $he(e) {
+function Wge(e) {
return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);
}
-function ege(e) {
+function Gge(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($he, ege) : e(eQ(n), eQ(1 / n));
+ return n === 1 ? e(SZ, SZ) : n === .5 ? e(Wge, Gge) : e(eQ(n), eQ(1 / n));
}
return t.exponent = function(e) {
return arguments.length ? (n = +e, r()) : n;
@@ -54925,7 +55753,7 @@ function nQ() {
return wZ(e, nQ()).exponent(e.exponent());
}, NX.apply(e, arguments), e;
}
-function tge() {
+function Kge() {
return nQ.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -54933,13 +55761,13 @@ function tge() {
function rQ(e) {
return Math.sign(e) * e * e;
}
-function nge(e) {
+function qge(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 = nge(e(t));
+ var i = qge(e(t));
return isNaN(i) ? r : n ? Math.round(i) : i;
}
return i.invert = function(t) {
@@ -54966,7 +55794,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] = ohe(e, r / i);
+ for (n = Array(i - 1); ++r < i;) n[r - 1] = Zhe(e, r / i);
return a;
}
function a(e) {
@@ -55135,8 +55963,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), rge = DQ(2), ige = DQ(3), AQ = DQ(4), age = DQ(5), oge = DQ(6);
-OQ.range, kQ.range, rge.range, ige.range, AQ.range, age.range, oge.range;
+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;
function jQ(e) {
return uQ((t) => {
t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -55144,8 +55972,8 @@ function jQ(e) {
e.setUTCDate(e.getUTCDate() + t * 7);
}, (e, t) => (t - e) / gQ);
}
-var MQ = jQ(0), NQ = jQ(1), sge = jQ(2), cge = jQ(3), PQ = jQ(4), lge = jQ(5), uge = jQ(6);
-MQ.range, NQ.range, sge.range, cge.range, PQ.range, lge.range, uge.range;
+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;
//#endregion
//#region node_modules/d3-time/src/month.js
var FQ = uQ((e) => {
@@ -55292,7 +56120,7 @@ function zQ(e, t, n, r, i, a) {
}
return [s, c];
}
-var [dge, fge] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [pge, mge] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
+var [n_e, r_e] = zQ(RQ, IQ, MQ, EQ, CQ, xQ), [i_e, a_e] = zQ(LQ, FQ, OQ, wQ, SQ, bQ);
//#endregion
//#region node_modules/d3-time-format/src/locale.js
function BQ(e) {
@@ -55320,7 +56148,7 @@ function HQ(e, t, n) {
L: 0
};
}
-function hge(e) {
+function o_e(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,
@@ -55329,30 +56157,30 @@ function hge(e) {
c: null,
d: QQ,
e: QQ,
- f: Rge,
- g: Jge,
- G: Xge,
- H: Fge,
- I: Ige,
- j: Lge,
+ f: k_e,
+ g: z_e,
+ G: V_e,
+ H: E_e,
+ I: D_e,
+ j: O_e,
L: $Q,
- m: zge,
- M: Bge,
+ m: A_e,
+ M: j_e,
p: te,
q: ne,
Q: a$,
s: o$,
- S: Vge,
- u: Hge,
- U: Uge,
- V: Wge,
- w: Gge,
- W: Kge,
+ S: M_e,
+ u: N_e,
+ U: P_e,
+ V: F_e,
+ w: I_e,
+ W: L_e,
x: null,
X: null,
- y: qge,
- Y: Yge,
- Z: Zge,
+ y: R_e,
+ Y: B_e,
+ Z: H_e,
"%": i$
}, b = {
a: re,
@@ -55362,30 +56190,30 @@ function hge(e) {
c: null,
d: t$,
e: t$,
- f: t_e,
- g: d_e,
- G: p_e,
- H: Qge,
- I: $ge,
- j: e_e,
+ f: K_e,
+ g: nve,
+ G: ive,
+ H: U_e,
+ I: W_e,
+ j: G_e,
L: n$,
- m: n_e,
- M: r_e,
+ m: q_e,
+ M: J_e,
p: se,
q: ce,
Q: a$,
s: o$,
- S: i_e,
- u: a_e,
- U: o_e,
- V: s_e,
- w: c_e,
- W: l_e,
+ S: Y_e,
+ u: X_e,
+ U: Z_e,
+ V: Q_e,
+ w: $_e,
+ W: eve,
x: null,
X: null,
- y: u_e,
- Y: f_e,
- Z: m_e,
+ y: tve,
+ Y: rve,
+ Z: ave,
"%": i$
}, x = {
a: E,
@@ -55395,31 +56223,31 @@ function hge(e) {
c: A,
d: XQ,
e: XQ,
- f: jge,
+ f: S_e,
g: YQ,
G: JQ,
H: ZQ,
I: ZQ,
- j: Dge,
- L: Age,
- m: Ege,
- M: Oge,
+ j: v_e,
+ L: x_e,
+ m: __e,
+ M: y_e,
p: T,
- q: Tge,
- Q: Nge,
- s: Pge,
- S: kge,
- u: bge,
- U: xge,
- V: Sge,
- w: yge,
- W: Cge,
+ 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,
x: j,
X: M,
y: YQ,
Y: JQ,
- Z: wge,
- "%": Mge
+ Z: h_e,
+ "%": C_e
};
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) {
@@ -55547,37 +56375,37 @@ var UQ = {
"-": "",
_: " ",
0: "0"
-}, WQ = /^\s*\d+/, gge = /^%/, _ge = /[\\^$*+?|[\]().{}]/g;
+}, WQ = /^\s*\d+/, s_e = /^%/, c_e = /[\\^$*+?|[\]().{}]/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 vge(e) {
- return e.replace(_ge, "\\$&");
+function l_e(e) {
+ return e.replace(c_e, "\\$&");
}
function KQ(e) {
- return RegExp("^(?:" + e.map(vge).join("|") + ")", "i");
+ return RegExp("^(?:" + e.map(l_e).join("|") + ")", "i");
}
function qQ(e) {
return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
-function yge(e, t, n) {
+function u_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1;
}
-function bge(e, t, n) {
+function d_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 1));
return r ? (e.u = +r[0], n + r[0].length) : -1;
}
-function xge(e, t, n) {
+function f_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.U = +r[0], n + r[0].length) : -1;
}
-function Sge(e, t, n) {
+function p_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.V = +r[0], n + r[0].length) : -1;
}
-function Cge(e, t, n) {
+function m_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.W = +r[0], n + r[0].length) : -1;
}
@@ -55589,15 +56417,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 wge(e, t, n) {
+function h_e(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 Tge(e, t, n) {
+function g_e(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 Ege(e, t, n) {
+function __e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
@@ -55605,7 +56433,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 Dge(e, t, n) {
+function v_e(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;
}
@@ -55613,159 +56441,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 Oge(e, t, n) {
+function y_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1;
}
-function kge(e, t, n) {
+function b_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1;
}
-function Age(e, t, n) {
+function x_e(e, t, n) {
var r = WQ.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1;
}
-function jge(e, t, n) {
+function S_e(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 Mge(e, t, n) {
- var r = gge.exec(t.slice(n, n + 1));
+function C_e(e, t, n) {
+ var r = s_e.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1;
}
-function Nge(e, t, n) {
+function w_e(e, t, n) {
var r = WQ.exec(t.slice(n));
return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
-function Pge(e, t, n) {
+function T_e(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 Fge(e, t) {
+function E_e(e, t) {
return GQ(e.getHours(), t, 2);
}
-function Ige(e, t) {
+function D_e(e, t) {
return GQ(e.getHours() % 12 || 12, t, 2);
}
-function Lge(e, t) {
+function O_e(e, t) {
return GQ(1 + wQ.count(LQ(e), e), t, 3);
}
function $Q(e, t) {
return GQ(e.getMilliseconds(), t, 3);
}
-function Rge(e, t) {
+function k_e(e, t) {
return $Q(e, t) + "000";
}
-function zge(e, t) {
+function A_e(e, t) {
return GQ(e.getMonth() + 1, t, 2);
}
-function Bge(e, t) {
+function j_e(e, t) {
return GQ(e.getMinutes(), t, 2);
}
-function Vge(e, t) {
+function M_e(e, t) {
return GQ(e.getSeconds(), t, 2);
}
-function Hge(e) {
+function N_e(e) {
var t = e.getDay();
return t === 0 ? 7 : t;
}
-function Uge(e, t) {
+function P_e(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 Wge(e, t) {
+function F_e(e, t) {
return e = e$(e), GQ(AQ.count(LQ(e), e) + (LQ(e).getDay() === 4), t, 2);
}
-function Gge(e) {
+function I_e(e) {
return e.getDay();
}
-function Kge(e, t) {
+function L_e(e, t) {
return GQ(kQ.count(LQ(e) - 1, e), t, 2);
}
-function qge(e, t) {
+function R_e(e, t) {
return GQ(e.getFullYear() % 100, t, 2);
}
-function Jge(e, t) {
+function z_e(e, t) {
return e = e$(e), GQ(e.getFullYear() % 100, t, 2);
}
-function Yge(e, t) {
+function B_e(e, t) {
return GQ(e.getFullYear() % 1e4, t, 4);
}
-function Xge(e, t) {
+function V_e(e, t) {
var n = e.getDay();
return e = n >= 4 || n === 0 ? AQ(e) : AQ.ceil(e), GQ(e.getFullYear() % 1e4, t, 4);
}
-function Zge(e) {
+function H_e(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 Qge(e, t) {
+function U_e(e, t) {
return GQ(e.getUTCHours(), t, 2);
}
-function $ge(e, t) {
+function W_e(e, t) {
return GQ(e.getUTCHours() % 12 || 12, t, 2);
}
-function e_e(e, t) {
+function G_e(e, t) {
return GQ(1 + TQ.count(RQ(e), e), t, 3);
}
function n$(e, t) {
return GQ(e.getUTCMilliseconds(), t, 3);
}
-function t_e(e, t) {
+function K_e(e, t) {
return n$(e, t) + "000";
}
-function n_e(e, t) {
+function q_e(e, t) {
return GQ(e.getUTCMonth() + 1, t, 2);
}
-function r_e(e, t) {
+function J_e(e, t) {
return GQ(e.getUTCMinutes(), t, 2);
}
-function i_e(e, t) {
+function Y_e(e, t) {
return GQ(e.getUTCSeconds(), t, 2);
}
-function a_e(e) {
+function X_e(e) {
var t = e.getUTCDay();
return t === 0 ? 7 : t;
}
-function o_e(e, t) {
+function Z_e(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 s_e(e, t) {
+function Q_e(e, t) {
return e = r$(e), GQ(PQ.count(RQ(e), e) + (RQ(e).getUTCDay() === 4), t, 2);
}
-function c_e(e) {
+function $_e(e) {
return e.getUTCDay();
}
-function l_e(e, t) {
+function eve(e, t) {
return GQ(NQ.count(RQ(e) - 1, e), t, 2);
}
-function u_e(e, t) {
+function tve(e, t) {
return GQ(e.getUTCFullYear() % 100, t, 2);
}
-function d_e(e, t) {
+function nve(e, t) {
return e = r$(e), GQ(e.getUTCFullYear() % 100, t, 2);
}
-function f_e(e, t) {
+function rve(e, t) {
return GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function p_e(e, t) {
+function ive(e, t) {
var n = e.getUTCDay();
return e = n >= 4 || n === 0 ? PQ(e) : PQ.ceil(e), GQ(e.getUTCFullYear() % 1e4, t, 4);
}
-function m_e() {
+function ave() {
return "+0000";
}
function i$() {
@@ -55780,7 +56608,7 @@ function o$(e) {
//#endregion
//#region node_modules/d3-time-format/src/defaultLocale.js
var s$, c$, l$;
-h_e({
+ove({
dateTime: "%x, %X",
date: "%-m/%-d/%Y",
time: "%-I:%M:%S %p",
@@ -55832,15 +56660,15 @@ h_e({
"Dec"
]
});
-function h_e(e) {
- return s$ = hge(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
+function ove(e) {
+ return s$ = o_e(e), c$ = s$.format, s$.parse, l$ = s$.utcFormat, s$.utcParse, s$;
}
//#endregion
//#region node_modules/d3-scale/src/time.js
-function g_e(e) {
+function sve(e) {
return new Date(e);
}
-function __e(e) {
+function cve(e) {
return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function u$(e, t, n, r, i, a, o, s, c, l) {
@@ -55851,7 +56679,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, __e)) : f().map(g_e);
+ return arguments.length ? f(Array.from(e, cve)) : f().map(sve);
}, u.ticks = function(t) {
var n = f();
return e(n[0], n[n.length - 1], t ?? 10);
@@ -55864,13 +56692,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 v_e() {
- return NX.apply(u$(pge, mge, LQ, FQ, OQ, wQ, SQ, bQ, yQ, c$).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
+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);
}
//#endregion
//#region node_modules/d3-scale/src/utcTime.js
-function y_e() {
- return NX.apply(u$(dge, fge, RQ, IQ, MQ, TQ, CQ, xQ, yQ, l$).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
+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);
}
//#endregion
//#region node_modules/d3-scale/src/sequential.js
@@ -55925,7 +56753,7 @@ function g$() {
return f$(e, g$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function b_e() {
+function dve() {
return g$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -55945,7 +56773,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) => ahe(e, r / t));
+ return Array.from({ length: t + 1 }, (n, r) => Xhe(e, r / t));
}, n.copy = function() {
return _$(t).domain(e);
}, PX.apply(n, arguments);
@@ -55971,7 +56799,7 @@ function v$() {
function m(e) {
return function(t) {
var n, r, i;
- return arguments.length ? ([n, r, i] = t, l = Mhe(e, [
+ return arguments.length ? ([n, r, i] = t, l = Cge(e, [
n,
r,
i
@@ -56016,7 +56844,7 @@ function S$() {
return f$(e, S$()).exponent(e.exponent());
}, PX.apply(e, arguments);
}
-function x_e() {
+function fve() {
return S$.apply(null, arguments).exponent(.5);
}
//#endregion
@@ -56026,14 +56854,14 @@ var C$ = /* @__PURE__ */ te({
scaleDiverging: () => y$,
scaleDivergingLog: () => b$,
scaleDivergingPow: () => S$,
- scaleDivergingSqrt: () => x_e,
+ scaleDivergingSqrt: () => fve,
scaleDivergingSymlog: () => x$,
scaleIdentity: () => UZ,
scaleImplicit: () => FX,
scaleLinear: () => HZ,
scaleLog: () => YZ,
scaleOrdinal: () => IX,
- scalePoint: () => che,
+ scalePoint: () => $he,
scalePow: () => nQ,
scaleQuantile: () => aQ,
scaleQuantize: () => oQ,
@@ -56042,26 +56870,26 @@ var C$ = /* @__PURE__ */ te({
scaleSequentialLog: () => m$,
scaleSequentialPow: () => g$,
scaleSequentialQuantile: () => _$,
- scaleSequentialSqrt: () => b_e,
+ scaleSequentialSqrt: () => dve,
scaleSequentialSymlog: () => h$,
- scaleSqrt: () => tge,
+ scaleSqrt: () => Kge,
scaleSymlog: () => $Z,
scaleThreshold: () => sQ,
- scaleTime: () => v_e,
- scaleUtc: () => y_e,
+ scaleTime: () => lve,
+ scaleUtc: () => uve,
tickFormat: () => BZ
});
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js
-function S_e(e) {
+function pve(e) {
if (e in C$) return C$[e]();
- var t = `scale${dz(e)}`;
+ var t = `scale${Nz(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 = S_e(e);
+ var r = pve(e);
if (r != null) return r.domain(t).range(n), r;
}
}
@@ -56070,22 +56898,22 @@ function T$(e, t, n, r) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js
-function C_e(e) {
- return `scale${dz(e)}`;
+function mve(e) {
+ return `scale${Nz(e)}`;
}
-function w_e(e) {
- return C_e(e) in C$;
+function hve(e) {
+ return mve(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 w_e(r) ? r : "point";
+ if (typeof r == "string") return hve(r) ? r : "point";
}
};
//#endregion
//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js
-function T_e(e, t) {
+function gve(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;
@@ -56096,7 +56924,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 = T_e(r, e);
+ var t = gve(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;
@@ -56106,7 +56934,7 @@ function D$(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js
-function E_e(e) {
+function _ve(e) {
if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : D$(e, void 0);
}
//#endregion
@@ -56125,26 +56953,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) {
- D_e(e, t, n[t]);
+ vve(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 D_e(e, t, n) {
- return (t = O_e(t)) in e ? Object.defineProperty(e, t, {
+function vve(e, t, n) {
+ return (t = yve(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function O_e(e) {
- var t = k_e(e, "string");
+function yve(e) {
+ var t = bve(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function k_e(e, t) {
+function bve(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56212,7 +57040,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$, A_e = {
+}, F$ = (e, t) => e.cartesianAxis.yAxis[t], I$ = (e, t) => F$(e, t) ?? P$, xve = {
domain: [0, "auto"],
includeHidden: !1,
reversed: !1,
@@ -56225,7 +57053,7 @@ var A$ = [0, "auto"], j$ = {
scale: "auto",
type: "number",
unit: ""
-}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? A_e, R$ = (e, t, n) => {
+}, L$ = (e, t) => e.cartesianAxis.zAxis[t] ?? xve, R$ = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -56234,7 +57062,7 @@ var A$ = [0, "auto"], j$ = {
case "radiusAxis": return XY(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
-}, j_e = (e, t, n) => {
+}, Sve = (e, t, n) => {
switch (t) {
case "xAxis": return N$(e, n);
case "yAxis": return I$(e, n);
@@ -56261,22 +57089,22 @@ function V$(e, t) {
}
};
}
-var H$ = (e) => e.graphicalItems.cartesianItems, M_e = $([iX, aX], V$), U$ = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), W$ = $([
+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$ = $([
H$,
R$,
- M_e
-], 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), N_e = $([W$], K$), q$ = (e) => e.map((e) => e.data).filter(Boolean).flat(1), P_e = $([W$], q$, { memoizeOptions: { resultEqualityCheck: uX } }), J$ = (e, t) => {
+ 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) => {
var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;
return e.length > 0 ? e : n.slice(r, i + 1);
-}, Y$ = $([P_e, gY], J$), X$ = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: lU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: lU(e, t.dataKey) })), Z$ = $([
+}, 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$,
R$,
W$
], X$);
function Q$(e) {
- if (iz(e) || e instanceof Date) {
+ if (Ez(e) || e instanceof Date) {
var t = Number(e);
- if (nU(t)) return t;
+ if (OU(t)) return t;
}
}
function $$(e) {
@@ -56288,13 +57116,13 @@ function $$(e) {
if (n != null) return [n, n];
}
function e1(e) {
- return e.map(Q$).filter(fz);
+ return e.map(Q$).filter(Pz);
}
-function F_e(e, t) {
+function Eve(e, t) {
var n = Q$(e), r = Q$(t);
return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;
}
-var I_e = $([Z$], (e) => e?.map((e) => e.value).sort(F_e));
+var Dve = $([Z$], (e) => e?.map((e) => e.value).sort(Eve));
function t1(e, t) {
switch (e) {
case "xAxis": return t.direction === "x";
@@ -56302,13 +57130,13 @@ function t1(e, t) {
default: return !1;
}
}
-function L_e(e, t, n) {
- return !n || typeof t != "number" || nz(t) || !n.length ? [] : e1(n.flatMap((n) => {
- var r = lU(e, n.dataKey), i, a;
- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!nU(i) || !nU(a))) return [t - i, t + a];
+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];
}));
}
-var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), R_e = $([
+var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), kve = $([
G$,
gY,
n1
@@ -56321,22 +57149,22 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), R_e = $([
return Object.fromEntries(Object.entries(i).map((t) => {
var [i, a] = t, o = r ? [...a].reverse() : a;
return [i, {
- stackedData: gU(e, o.map(oX), n),
+ stackedData: HU(e, o.map(oX), n),
graphicalItems: o
}];
}));
}, a1 = $([
- R_e,
+ kve,
G$,
PY,
FY
], i1), o1 = (e, t, n, r) => {
var { dataStartIndex: i, dataEndIndex: a } = t;
if (r == null && n !== "zAxis") {
- var o = CU(e, i, a);
+ var o = YU(e, i, a);
if (o == null || o[0] !== 0 || o[1] !== 0) return o;
}
-}, z_e = $([R$], (e) => e.allowDataOverflow), s1 = (e) => {
+}, Ave = $([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) {
@@ -56347,12 +57175,12 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), R_e = $([
if (e.type === "category") return e.ticks.map(String);
}
return e?.domain ?? A$;
-}, c1 = $([R$], s1), l1 = $([c1, z_e], bY), B_e = $([
+}, c1 = $([R$], s1), l1 = $([c1, Ave], bY), jve = $([
a1,
mY,
iX,
l1
-], o1, { memoizeOptions: { resultEqualityCheck: lX } }), u1 = (e) => e.errorBars, V_e = (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, Mve = (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();
@@ -56362,7 +57190,7 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), R_e = $([
var a, o;
if (n.length > 0 && e.forEach((e) => {
n.forEach((n) => {
- var s = r[n.id]?.filter((e) => t1(i, e)), c = lU(e, t.dataKey ?? n.dataKey), l = L_e(e, c, s);
+ var s = r[n.id]?.filter((e) => t1(i, e)), c = FU(e, t.dataKey ?? n.dataKey), l = Ove(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);
@@ -56371,32 +57199,32 @@ var n1 = (e) => z$(e, dX(e), fX(e)), r1 = $([n1], (e) => e?.dataKey), R_e = $([
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 = $$(lU(e, t.dataKey));
+ var n = $$(FU(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]));
- }), nU(a) && nU(o)) return [a, o];
-}, H_e = $([
+ }), OU(a) && OU(o)) return [a, o];
+}, Nve = $([
Y$,
R$,
- N_e,
+ wve,
u1,
iX
], f1, { memoizeOptions: { resultEqualityCheck: lX } });
-function U_e(e) {
+function Pve(e) {
var { value: t } = e;
- if (iz(t) || t instanceof Date) return t;
+ if (Ez(t) || t instanceof Date) return t;
}
-var W_e = (e, t, n) => {
- var r = e.map(U_e).filter((e) => e != null);
- return n && (t.dataKey == null || t.allowDuplicatedCategory && sz(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), G_e = $([
+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 = $([
p1,
iX,
aX
-], m1), h1 = (e) => e.referenceElements.areas, K_e = $([
+], m1), h1 = (e) => e.referenceElements.areas, Lve = $([
h1,
iX,
aX
-], m1), g1 = (e) => e.referenceElements.lines, q_e = $([
+], m1), g1 = (e) => e.referenceElements.lines, Rve = $([
g1,
iX,
aX
@@ -56405,49 +57233,49 @@ var W_e = (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)];
}
-}, J_e = $(G_e, iX, _1), v1 = (e, t) => {
+}, zve = $(Ive, 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)];
}
-}, Y_e = $([K_e, iX], v1);
-function X_e(e) {
+}, Bve = $([Lve, iX], v1);
+function Vve(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 Z_e(e) {
+function Hve(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" ? X_e(e) : Z_e(e));
+ var n = e.flatMap((e) => t === "xAxis" ? Vve(e) : Hve(e));
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
}
-}, Q_e = $(J_e, $([q_e, iX], y1), Y_e, (e, t, n) => d1(e, n, t)), b1 = (e, t, n, r, i, a, o, s) => n ?? Gme(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? d1(r, a, i) : d1(a, i), e.allowDataOverflow), $_e = $([
+}, 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 = $([
R$,
c1,
l1,
- B_e,
- H_e,
- Q_e,
- MW,
+ jve,
+ Nve,
+ Uve,
+ iG,
iX
-], b1, { memoizeOptions: { resultEqualityCheck: lX } }), eve = [0, 1], x1 = (e, t, n, r, i, a, o) => {
+], b1, { memoizeOptions: { resultEqualityCheck: lX } }), Gve = [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 = dU(t, a);
- return l && s == null ? pY(0, n?.length ?? 0) : c === "category" ? W_e(r, e, l) : i === "expand" ? eve : o;
+ 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;
}
}, S1 = $([
R$,
- MW,
+ iG,
Y$,
Z$,
PY,
iX,
- $_e
+ Wve
], x1), C1 = $([
R$,
B$,
@@ -56475,7 +57303,7 @@ var y1 = (e, t) => {
return [Math.min(i, a), Math.max(o, s)];
}
return t;
-}, tve = $([
+}, Kve = $([
R$,
S1,
T1,
@@ -56495,22 +57323,22 @@ var y1 = (e, t) => {
}
return n / o;
}
-}), MW, MY, JU, (e, t, n, r, i) => i, (e, t, n, r, i) => {
- if (!nU(e)) return 0;
+}), iG, MY, bW, (e, t, n, r, i) => i, (e, t, n, r, i) => {
+ if (!OU(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 = Oz(n, e * a), s = e * a / 2;
return s - o - (s - o) / a * o;
}
return 0;
-}), nve = (e, t, n) => {
+}), qve = (e, t, n) => {
var r = N$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "xAxis", t, n, r.padding);
-}, rve = (e, t, n) => {
+}, Jve = (e, t, n) => {
var r = I$(e, t);
return r == null || typeof r.padding != "string" ? 0 : D1(e, "yAxis", t, n, r.padding);
-}, ive = $(N$, nve, (e, t) => {
+}, Yve = $(N$, qve, (e, t) => {
if (e == null) return {
left: 0,
right: 0
@@ -56523,7 +57351,7 @@ var y1 = (e, t) => {
left: (n.left ?? 0) + t,
right: (n.right ?? 0) + t
};
-}), ave = $(I$, rve, (e, t) => {
+}), Xve = $(I$, Jve, (e, t) => {
if (e == null) return {
top: 0,
bottom: 0
@@ -56536,29 +57364,29 @@ var y1 = (e, t) => {
top: (n.top ?? 0) + t,
bottom: (n.bottom ?? 0) + t
};
-}), ove = $([
- JU,
- ive,
- eW,
- $U,
+}), Zve = $([
+ bW,
+ Yve,
+ EW,
+ TW,
(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];
-}), sve = $([
- JU,
- MW,
- ave,
- eW,
- $U,
+}), Qve = $([
+ bW,
+ iG,
+ Xve,
+ EW,
+ TW,
(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 ove(e, n, r);
- case "yAxis": return sve(e, n, r);
+ case "xAxis": return Zve(e, n, r);
+ case "yAxis": return Qve(e, n, r);
case "zAxis": return L$(e, n)?.range;
case "angleAxis": return tX(e);
case "radiusAxis": return nX(e, n);
@@ -56567,67 +57395,67 @@ var y1 = (e, t) => {
}, k1 = $([R$, O1], UY), A1 = $([
R$,
C1,
- $([C1, tve], mX),
+ $([C1, Kve], mX),
k1
], T$), j1 = (e, t, n, r) => {
if (n != null && n.dataKey != null) {
var { type: i, scale: a } = n;
- if (dU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
+ if (LU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);
}
}, M1 = $([
- MW,
+ iG,
Z$,
z$,
iX
], j1), N1 = $([A1], pX);
-$([A1], E_e), $([A1, I_e], D$), $([
+$([A1], _ve), $([A1, Dve], D$), $([
W$,
u1,
iX
-], V_e);
+], Mve);
function P1(e, t) {
return e.id < t.id ? -1 : +(e.id > t.id);
}
-var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(P1)), lve = $(IU, 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, $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) => ({
width: e.width,
height: t.height
-}), uve = (e, t) => ({
+}), tye = (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
-}), R1 = $(JU, N$, L1), dve = (e, t, n) => {
+}), R1 = $(bW, N$, L1), nye = (e, t, n) => {
switch (t) {
case "top": return e.top;
case "bottom": return n - e.bottom;
default: return 0;
}
-}, fve = (e, t, n) => {
+}, rye = (e, t, n) => {
switch (t) {
case "left": return e.left;
case "right": return n - e.right;
default: return 0;
}
-}, pve = $(MU, JU, cve, F1, I1, (e, t, n, r, i) => {
+}, iye = $(iW, bW, $ve, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
var s = L1(t, n);
- o ??= dve(t, r, e);
+ o ??= nye(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;
-}), mve = $(jU, JU, lve, F1, I1, (e, t, n, r, i) => {
+}), aye = $(rW, bW, eye, F1, I1, (e, t, n, r, i) => {
var a = {}, o;
return n.forEach((n) => {
- var s = uve(t, n);
- o ??= fve(t, r, e);
+ var s = tye(t, n);
+ o ??= rye(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;
-}), hve = $([
- JU,
+}), oye = $([
+ bW,
N$,
(e, t) => {
var n = N$(e, t);
- if (n != null) return pve(e, n.orientation, n.mirror);
+ if (n != null) return iye(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -56641,12 +57469,12 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.fi
y: i
};
}
-}), gve = $([
- JU,
+}), sye = $([
+ bW,
I$,
(e, t) => {
var n = I$(e, t);
- if (n != null) return mve(e, n.orientation, n.mirror);
+ if (n != null) return aye(e, n.orientation, n.mirror);
},
(e, t) => t
], (e, t, n, r) => {
@@ -56660,7 +57488,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.fi
y: e.top
};
}
-}), z1 = $(JU, I$, (e, t) => ({
+}), z1 = $(bW, I$, (e, t) => ({
width: typeof t.width == "number" ? t.width : 60,
height: e.height
})), B1 = (e, t, n) => {
@@ -56671,17 +57499,17 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.fi
}
}, V1 = (e, t, n, r) => {
if (n != null) {
- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = dU(e, r), c = t.map((e) => e.value);
- if (o && s && a === "category" && i && sz(c)) return c;
+ 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;
}
}, H1 = $([
- MW,
+ iG,
Z$,
R$,
iX
], V1), U1 = $([
- MW,
- j_e,
+ iG,
+ Sve,
C1,
N1,
H1,
@@ -56691,7 +57519,7 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.fi
iX
], (e, t, n, r, i, a, o, s, c) => {
if (t != null) {
- var l = dU(e, c);
+ var l = LU(e, c);
return {
angle: t.angle,
interval: t.interval,
@@ -56715,45 +57543,45 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.fi
}
}), W1 = (e, t, n, r, i, a, o, s, c) => {
if (t != null && r != null) {
- var l = dU(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 ? tz(a[0] - a[1]) * 2 * m : m;
+ 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 h = d || i;
return h ? h.map((e, t) => {
var n = o ? o.indexOf(e) : e, i = r.map(n);
- return nU(i) ? {
+ return OU(i) ? {
index: t,
coordinate: i + m,
value: e,
offset: m
} : null;
- }).filter(fz) : l && s ? s.map((e, t) => {
+ }).filter(Pz) : l && s ? s.map((e, t) => {
var n = r.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(fz) : r.ticks ? r.ticks(f).map((e, t) => {
+ }).filter(Pz) : r.ticks ? r.ticks(f).map((e, t) => {
var n = r.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + m,
value: e,
index: t,
offset: m
} : null;
- }).filter(fz) : r.domain().map((e, t) => {
+ }).filter(Pz) : r.domain().map((e, t) => {
var n = r.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + m,
value: o ? o[e] : e,
index: t,
offset: m
} : null;
- }).filter(fz);
+ }).filter(Pz);
}
}, G1 = $([
- MW,
+ iG,
z$,
C1,
N1,
@@ -56764,35 +57592,35 @@ var F1 = (e, t) => t, I1 = (e, t, n) => n, cve = $(FU, F1, I1, (e, t, n) => e.fi
iX
], W1), K1 = (e, t, n, r, i, a, o) => {
if (t != null && n != null && r != null && r[0] !== r[1]) {
- var s = dU(e, o), { tickCount: c } = t, l = 0;
- return l = o === "angleAxis" && r?.length >= 2 ? tz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {
+ 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 r = n.map(e);
- return nU(r) ? {
+ return OU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(fz) : n.ticks ? n.ticks(c).map((e, t) => {
+ }).filter(Pz) : n.ticks ? n.ticks(c).map((e, t) => {
var r = n.map(e);
- return nU(r) ? {
+ return OU(r) ? {
coordinate: r + l,
value: e,
index: t,
offset: l
} : null;
- }).filter(fz) : n.domain().map((e, t) => {
+ }).filter(Pz) : n.domain().map((e, t) => {
var r = n.map(e);
- return nU(r) ? {
+ return OU(r) ? {
coordinate: r + l,
value: i ? i[e] : e,
index: t,
offset: l
} : null;
- }).filter(fz);
+ }).filter(Pz);
}
}, q1 = $([
- MW,
+ iG,
z$,
N1,
O1,
@@ -56810,10 +57638,10 @@ $((e, t, n) => L$(e, n), $([$([
], T$)], pX), (e, t) => {
if (e != null && t != null) return k$(k$({}, e), {}, { scale: t });
});
-var _ve = $([
- MW,
- FU,
- IU
+var cye = $([
+ iG,
+ sW,
+ cW
], (e, t, n) => {
switch (e) {
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
@@ -56844,21 +57672,21 @@ function Z1(e, t, n) {
function Q1(e, t) {
return Z1(t, Y1(e), X1(e));
}
-function vve(e) {
+function lye(e) {
return Q((t) => Q1(t, e));
}
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js
var $1 = (e, t) => {
var n, r = Number(t);
- if (!(nz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;
-}, yve = (e) => e.tooltip.settings, e0 = {
+ 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 = {
active: !1,
index: null,
dataKey: void 0,
graphicalItemId: void 0,
coordinate: void 0
-}, t0 = sH({
+}, t0 = NH({
name: "tooltip",
initialState: {
itemInteraction: {
@@ -56891,23 +57719,23 @@ var $1 = (e, t) => {
reducers: {
addTooltipEntrySettings: {
reducer(e, t) {
- e.tooltipItemPayloads.push(PG(t.payload));
+ e.tooltipItemPayloads.push(oK(t.payload));
},
- prepare: KV()
+ prepare: vH()
},
replaceTooltipEntrySettings: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MV(e).tooltipItemPayloads.indexOf(PG(n));
- i > -1 && (e.tooltipItemPayloads[i] = PG(r));
+ var { prev: n, next: r } = t.payload, i = iH(e).tooltipItemPayloads.indexOf(oK(n));
+ i > -1 && (e.tooltipItemPayloads[i] = oK(r));
},
- prepare: KV()
+ prepare: vH()
},
removeTooltipEntrySettings: {
reducer(e, t) {
- var n = MV(e).tooltipItemPayloads.indexOf(PG(t.payload));
+ var n = iH(e).tooltipItemPayloads.indexOf(oK(t.payload));
n > -1 && e.tooltipItemPayloads.splice(n, 1);
},
- prepare: KV()
+ prepare: vH()
},
setTooltipSettingsState(e, t) {
e.settings = t.payload;
@@ -56937,7 +57765,7 @@ var $1 = (e, t) => {
e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;
}
}
-}), { addTooltipEntrySettings: bve, replaceTooltipEntrySettings: xve, removeTooltipEntrySettings: Sve, setTooltipSettingsState: Cve, setActiveMouseOverItemIndex: n0, mouseLeaveItem: wve, mouseLeaveChart: r0, setActiveClickItemIndex: Tve, setMouseOverAxisIndex: i0, setMouseClickAxisIndex: Eve, setSyncInteraction: a0, setKeyboardInteraction: o0 } = t0.actions, Dve = t0.reducer;
+}), { 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;
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js
function s0(e, t) {
@@ -56954,26 +57782,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) {
- Ove(e, t, n[t]);
+ yye(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 Ove(e, t, n) {
- return (t = kve(t)) in e ? Object.defineProperty(e, t, {
+function yye(e, t, n) {
+ return (t = bye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function kve(e) {
- var t = Ave(e, "string");
+function bye(e) {
+ var t = xye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ave(e, t) {
+function xye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -56983,21 +57811,21 @@ function Ave(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function jve(e, t, n) {
+function Sye(e, t, n) {
return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;
}
-function Mve(e) {
+function Cye(e) {
return e.index != null;
}
var l0 = (e, t, n, r) => {
if (t == null) return e0;
- var i = jve(e, t, n);
+ var i = Sye(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 (Mve(i)) {
+ if (Cye(i)) {
if (a) return c0(c0({}, i), {}, { active: !0 });
} else if (r != null) return {
active: !0,
@@ -57010,7 +57838,7 @@ var l0 = (e, t, n, r) => {
};
//#endregion
//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js
-function Nve(e) {
+function wye(e) {
if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
if (e instanceof Date) {
var t = e.valueOf();
@@ -57019,24 +57847,24 @@ function Nve(e) {
var n = Number(e);
return Number.isFinite(n) ? n : void 0;
}
-function Pve(e, t) {
- var n = Nve(e), r = t[0], i = t[1];
+function Tye(e, t) {
+ var n = wye(e), r = t[0], i = t[1];
return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);
}
-function Fve(e, t, n) {
+function Eye(e, t, n) {
if (n == null || t == null) return !0;
- var r = lU(e, t);
- return r == null || !vY(n) || Pve(r, n);
+ var r = FU(e, t);
+ return r == null || !vY(n) || Tye(r, n);
}
var u0 = (e, t, n, r) => {
var i = e?.index;
if (i == null) return null;
var a = Number(i);
- if (!nU(a)) return i;
+ if (!OU(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 || Fve(l, n, r) ? String(c) : null;
+ return l == null || Eye(l, n, r) ? String(c) : null;
}, d0 = (e, t, n, r, i, a, o) => {
if (a != null) {
var s = o[0]?.getPosition(a);
@@ -57080,26 +57908,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) {
- Ive(e, t, n[t]);
+ Dye(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 Ive(e, t, n) {
- return (t = Lve(t)) in e ? Object.defineProperty(e, t, {
+function Dye(e, t, n) {
+ return (t = Oye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Lve(e) {
- var t = Rve(e, "string");
+function Oye(e) {
+ var t = kye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Rve(e, t) {
+function kye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57109,57 +57937,57 @@ function Rve(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function zve(e) {
+function Aye(e) {
if (typeof e == "string" || typeof e == "number") return e;
}
-function Bve(e) {
+function jye(e) {
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
}
-function Vve(e) {
+function Mye(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 Hve(e) {
+function Nye(e) {
if (!(typeof e != "object" || !e)) return {
- name: "name" in e ? zve(e.name) : void 0,
- unit: "unit" in e ? Bve(e.unit) : void 0,
- dataKey: "dataKey" in e ? Vve(e.dataKey) : void 0,
+ 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,
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 Uve(e, t) {
+function Pye(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 = Uve(d, s), m = Array.isArray(p) ? tU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? lz(m, r, i) : a(m, t, c, g);
+ 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);
return Array.isArray(_) ? _.forEach((t) => {
- var n = Hve(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = g0(g0({}, f), {}, {
+ var n = Nye(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(DU({
+ e.push($U({
tooltipEntrySettings: o,
dataKey: i,
payload: a,
- value: lU(a, i),
+ value: FU(a, i),
name: r == null ? void 0 : String(r)
}));
- }) : e.push(DU({
+ }) : e.push($U({
tooltipEntrySettings: f,
dataKey: h,
payload: _,
- value: lU(_, h),
- name: lU(_, g) ?? f?.name
+ value: FU(_, h),
+ name: FU(_, g) ?? f?.name
})), e;
}, []);
}
@@ -57171,17 +57999,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 } }), Wve = $([b0], (e) => e.filter(cX)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: uX } }), mY], J$), Gve = $([
- Wve,
+], U$, { memoizeOptions: { resultEqualityCheck: uX } }), Fye = $([b0], (e) => e.filter(cX)), x0 = $([$([b0], q$, { memoizeOptions: { resultEqualityCheck: uX } }), mY], J$), Iye = $([
+ Fye,
mY,
n1
], sX), S0 = $([
x0,
n1,
b0
-], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], bY), Kve = $([
+], X$), C0 = $([n1], s1), w0 = $([C0, $([n1], (e) => e.allowDataOverflow)], bY), Lye = $([
$([
- Gve,
+ Iye,
$([b0], (e) => e.filter(cX)),
PY,
FY
@@ -57189,23 +58017,23 @@ var v0 = (e, t, n, r, i, a, o) => {
mY,
dX,
w0
-], o1), qve = $([
+], o1), Rye = $([
x0,
n1,
$([b0], K$),
u1,
dX
-], f1, { memoizeOptions: { resultEqualityCheck: lX } }), Jve = $([$([
+], f1, { memoizeOptions: { resultEqualityCheck: lX } }), zye = $([$([
p1,
dX,
fX
-], m1), dX], _1), Yve = $([$([
+], m1), dX], _1), Bye = $([$([
h1,
dX,
fX
], m1), dX], v1), T0 = $([
n1,
- MW,
+ iG,
x0,
S0,
PY,
@@ -57214,21 +58042,21 @@ var v0 = (e, t, n, r, i, a, o) => {
n1,
C0,
w0,
- Kve,
- qve,
+ Lye,
+ Rye,
$([
- Jve,
+ zye,
$([$([
g1,
dX,
fX
], m1), dX], y1),
- Yve
+ Bye
], d1),
- MW,
+ iG,
dX
], b1)
-], x1), Xve = $([
+], x1), Vye = $([
n1,
T0,
$([
@@ -57240,22 +58068,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,
- Xve,
+ Vye,
D0
], T$)], pX), k0 = $([
- MW,
+ iG,
n1,
y0,
O0,
E0,
$([
- MW,
+ iG,
S0,
n1,
dX
], V1),
$([
- MW,
+ iG,
S0,
n1,
dX
@@ -57263,32 +58091,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 = dU(e, s);
+ var { type: c } = t, l = LU(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 ? tz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? Cz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {
var n = r.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + d,
value: e,
index: t,
offset: d
} : null;
- }).filter(fz) : r.domain().map((e, t) => {
+ }).filter(Pz) : r.domain().map((e, t) => {
var n = r.map(e);
- return nU(n) ? {
+ return OU(n) ? {
coordinate: n + d,
value: a ? a[e] : e,
index: t,
offset: d
} : null;
- }).filter(fz);
+ }).filter(Pz);
}
}
}), A0 = $([
Y1,
X1,
- yve
+ uye
], (e, t, n) => Z1(n.shared, e, t)), j0 = (e) => e.tooltip.settings.trigger, M0 = (e) => e.tooltip.settings.defaultIndex, N0 = $([
m0,
A0,
@@ -57301,22 +58129,22 @@ var v0 = (e, t, n, r, i, a, o) => {
T0
], u0), F0 = $([k0, P0], $1), I0 = $([N0], (e) => {
if (e) return e.dataKey;
-}), Zve = $([N0], (e) => {
+}), Hye = $([N0], (e) => {
if (e) return e.graphicalItemId;
}), L0 = $([
m0,
A0,
j0,
M0
-], f0), Qve = $([N0, $([
- jU,
- MU,
- MW,
- JU,
+], f0), Uye = $([N0, $([
+ rW,
+ iW,
+ iG,
+ bW,
k0,
M0,
L0
-], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), $ve = $([N0], (e) => e?.active ?? !1), eye = $([$([
+], d0)], (e, t) => e != null && e.coordinate ? e.coordinate : t), Wye = $([N0], (e) => e?.active ?? !1), Gye = $([$([
L0,
P0,
mY,
@@ -57346,26 +58174,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) {
- tye(e, t, n[t]);
+ Kye(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 tye(e, t, n) {
- return (t = nye(t)) in e ? Object.defineProperty(e, t, {
+function Kye(e, t, n) {
+ return (t = qye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nye(e) {
- var t = rye(e, "string");
+function qye(e) {
+ var t = Jye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rye(e, t) {
+function Jye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57375,9 +58203,9 @@ function rye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var iye = () => Q(n1), aye = () => {
- var e = iye(), t = Q(k0), n = Q(O0);
- return EU(!e || !n ? void 0 : z0(z0({}, e), {}, { scale: n }), t);
+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);
};
//#endregion
//#region node_modules/recharts/es6/util/getActiveCoordinate.js
@@ -57395,26 +58223,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) {
- oye(e, t, n[t]);
+ Zye(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 oye(e, t, n) {
- return (t = sye(t)) in e ? Object.defineProperty(e, t, {
+function Zye(e, t, n) {
+ return (t = Qye(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sye(e) {
- var t = cye(e, "string");
+function Qye(e) {
+ var t = $ye(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cye(e, t) {
+function $ye(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57424,7 +58252,7 @@ function cye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var lye = (e, t, n, r) => {
+var ebe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "horizontal") return {
@@ -57440,18 +58268,18 @@ var lye = (e, t, n, r) => {
x: 0,
y: 0
};
-}, uye = (e, t, n, r) => {
+}, tbe = (e, t, n, r) => {
var i = t.find((e) => e && e.index === n);
if (i) {
if (e === "centric") {
var a = i.coordinate, { radius: o } = r;
- return V0(V0(V0({}, r), UJ(r.cx, r.cy, o, a)), {}, {
+ return V0(V0(V0({}, r), aY(r.cx, r.cy, o, a)), {}, {
angle: a,
radius: o
});
}
var s = i.coordinate, { angle: c } = r;
- return V0(V0(V0({}, r), UJ(r.cx, r.cy, s, c)), {}, {
+ return V0(V0(V0({}, r), aY(r.cx, r.cy, s, c)), {}, {
angle: c,
radius: s
});
@@ -57470,7 +58298,7 @@ var lye = (e, t, n, r) => {
y: 0
};
};
-function dye(e, t) {
+function nbe(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;
}
@@ -57480,9 +58308,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 (tz(c - s) !== tz(l - c)) {
+ if (Cz(c - s) !== Cz(l - c)) {
var d = [];
- if (tz(l - c) === tz(i[1] - i[0])) {
+ if (Cz(l - c) === Cz(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);
@@ -57507,7 +58335,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, fye = $(k0, (e) => iB(e, (e) => e.coordinate)), q0 = $([
+}, 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 = $([
m0,
W0,
G0,
@@ -57517,7 +58345,7 @@ var H0 = (e, t, n, r, i) => {
x0,
r1,
T0
-], u0), pye = (e, t, n) => {
+], u0), ibe = (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;
@@ -57528,14 +58356,14 @@ var H0 = (e, t, n, r, i) => {
G0,
K0
], f0), X0 = $([
- jU,
- MU,
- MW,
- JU,
+ rW,
+ iW,
+ iG,
+ bW,
k0,
K0,
Y0
-], d0), mye = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), hye = $([
+], d0), abe = $([q0, X0], (e, t) => e.coordinate ?? t), Z0 = $([k0, J0], $1), obe = $([
Y0,
J0,
mY,
@@ -57543,39 +58371,39 @@ var H0 = (e, t, n, r, i) => {
Z0,
p0,
W0
-], v0), gye = $([q0, J0], (e, t) => ({
+], v0), sbe = $([q0, J0], (e, t) => ({
isActive: e.active && t != null,
activeIndex: t
-})), _ye = (e, t, n, r, i, a, o) => {
- if (!(!e || !n || !r || !i) && dye(e, o)) {
- var s = H0(kU(e, t), a, i, n, r), c = lye(t, i, s, e);
+})), 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);
return {
activeIndex: String(s),
activeCoordinate: c
};
}
-}, vye = (e, t, n, r, i, a, o) => {
+}, lbe = (e, t, n, r, i, a, o) => {
if (!(!e || !r || !i || !a || !n)) {
- var s = YJ(e, n);
+ var s = Che(e, n);
if (s) {
- var c = H0(AU(s, t), o, a, r, i), l = uye(t, a, c, s);
+ var c = H0(nW(s, t), o, a, r, i), l = tbe(t, a, c, s);
return {
activeIndex: String(c),
activeCoordinate: l
};
}
}
-}, yye = (e, t, n, r, i, a, o, s) => {
- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? _ye(e, t, r, i, a, o, s) : vye(e, t, n, r, i, a, o);
-}, bye = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {
+}, 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) => {
if (t != null) {
var r = e[t];
if (r != null) return n ? r.panoramaElement : r.element;
}
-}), xye = $((e) => e.zIndex.zIndexMap, (e) => {
+}), fbe = $((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: $me } });
+}, { memoizeOptions: { resultEqualityCheck: Whe } });
//#endregion
//#region node_modules/recharts/es6/state/zIndexSlice.js
function Q0(e, t) {
@@ -57592,26 +58420,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) {
- Sye(e, t, n[t]);
+ pbe(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 Sye(e, t, n) {
- return (t = Cye(t)) in e ? Object.defineProperty(e, t, {
+function pbe(e, t, n) {
+ return (t = mbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Cye(e) {
- var t = wye(e, "string");
+function mbe(e) {
+ var t = hbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wye(e, t) {
+function hbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57621,17 +58449,17 @@ function wye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Tye = { zIndexMap: Object.values(BY).reduce((e, t) => $0($0({}, e), {}, { [t]: {
+var gbe = { zIndexMap: Object.values(BY).reduce((e, t) => $0($0({}, e), {}, { [t]: {
element: void 0,
panoramaElement: void 0,
consumers: 0
-} }), {}) }, Eye = new Set(Object.values(BY));
-function Dye(e) {
- return Eye.has(e);
+} }), {}) }, _be = new Set(Object.values(BY));
+function vbe(e) {
+ return _be.has(e);
}
-var e2 = sH({
+var e2 = NH({
name: "zIndex",
- initialState: Tye,
+ initialState: gbe,
reducers: {
registerZIndexPortal: {
reducer: (e, t) => {
@@ -57642,47 +58470,47 @@ var e2 = sH({
panoramaElement: void 0
};
},
- prepare: KV()
+ prepare: vH()
},
unregisterZIndexPortal: {
reducer: (e, t) => {
var { zIndex: n } = t.payload;
- e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !Dye(n) && delete e.zIndexMap[n]);
+ e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !vbe(n) && delete e.zIndexMap[n]);
},
- prepare: KV()
+ prepare: vH()
},
registerZIndexPortalElement: {
reducer: (e, t) => {
var { zIndex: n, element: r, isPanorama: i } = t.payload;
- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = PG(r) : e.zIndexMap[n].element = PG(r) : e.zIndexMap[n] = {
+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = oK(r) : e.zIndexMap[n].element = oK(r) : e.zIndexMap[n] = {
consumers: 0,
- element: i ? void 0 : PG(r),
- panoramaElement: i ? PG(r) : void 0
+ element: i ? void 0 : oK(r),
+ panoramaElement: i ? oK(r) : void 0
};
},
- prepare: KV()
+ prepare: vH()
},
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: KV()
+ prepare: vH()
}
}
-}), { registerZIndexPortal: Oye, unregisterZIndexPortal: kye, registerZIndexPortalElement: Aye, unregisterZIndexPortalElement: jye } = e2.actions, Mye = e2.reducer;
+}), { registerZIndexPortal: ybe, unregisterZIndexPortal: bbe, registerZIndexPortalElement: xbe, unregisterZIndexPortalElement: Sbe } = e2.actions, Cbe = e2.reducer;
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js
function t2(e) {
- var { zIndex: t, children: n } = e, r = LW() && t !== void 0 && t !== 0, i = QU(), a = Xz();
- (0, I.useLayoutEffect)(() => r ? (a(Oye({ zIndex: t })), () => {
- a(kye({ zIndex: t }));
- }) : pz, [
+ 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, [
a,
t,
r
]);
- var o = Q((e) => bye(e, t, i));
+ var o = Q((e) => dbe(e, t, i));
return r ? o ? /*#__PURE__*/ (0, Ch.createPortal)(n, o) : null : n;
}
//#endregion
@@ -57710,26 +58538,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) {
- Nye(e, t, n[t]);
+ wbe(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 Nye(e, t, n) {
- return (t = Pye(t)) in e ? Object.defineProperty(e, t, {
+function wbe(e, t, n) {
+ return (t = Tbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Pye(e) {
- var t = Fye(e, "string");
+function Tbe(e) {
+ var t = Ebe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Fye(e, t) {
+function Ebe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57739,18 +58567,18 @@ function Fye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Iye(e) {
+function Dbe(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 Lye(e) {
+function Obe(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 = Cq, h = BY.cursorLine;
- else if (l === "BarChart") p = wq(o, u, i, a), m = PJ, h = BY.cursorRectangle;
- else if (o === "radial" && yz(u)) {
- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = XJ(u);
+ 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)) {
+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = oY(u);
p = {
cx: g,
cy: _,
@@ -57759,24 +58587,24 @@ function Lye(e) {
innerRadius: v,
outerRadius: v
}, m = dY, h = BY.cursorLine;
- } else p = { points: Ume(o, u, i) }, m = fq, h = BY.cursorLine;
+ } else p = { points: Phe(o, u, i) }, m = Rq, 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), JL(s)), {}, {
+ }, i), p), gR(s)), {}, {
payload: d,
payloadIndex: f,
className: Jm("recharts-tooltip-cursor", x)
});
- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(Iye, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ I.createElement(Dbe, {
cursor: s,
cursorComp: m,
cursorProps: S
}));
}
-function Rye(e) {
- var t = aye(), n = OW(), r = NW(), i = U0();
- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ I.createElement(Lye, n2({}, e, {
+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, {
offset: n,
layout: r,
tooltipAxisBandSize: t,
@@ -57785,7 +58613,7 @@ function Rye(e) {
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipPortalContext.js
-var a2 = /*#__PURE__*/ (0, I.createContext)(null), zye = () => (0, I.useContext)(a2), Bye = (/* @__PURE__ */ re((/* @__PURE__ */ F(((e, t) => {
+var a2 = /*#__PURE__*/ (0, I.createContext)(null), Abe = () => (0, I.useContext)(a2), jbe = (/* @__PURE__ */ re((/* @__PURE__ */ F(((e, t) => {
var n = Object.prototype.hasOwnProperty, r = "~";
function i() {}
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
@@ -57872,12 +58700,12 @@ var a2 = /*#__PURE__*/ (0, I.createContext)(null), zye = () => (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 Bye(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
+})))(), 1)).default, o2 = new jbe(), s2 = "recharts.syncEvent.tooltip", c2 = "recharts.syncEvent.brush", l2 = (e, t) => {
if (t && Array.isArray(e)) {
var n = Number.parseInt(t, 10);
- if (!nz(n)) return e[n];
+ if (!wz(n)) return e[n];
}
-}, u2 = sH({
+}, u2 = NH({
name: "options",
initialState: {
chartName: "",
@@ -57888,13 +58716,13 @@ var a2 = /*#__PURE__*/ (0, I.createContext)(null), zye = () => (0, I.useContext)
reducers: { createEventEmitter: (e) => {
e.eventEmitter ??= Symbol("rechartsEventEmitter");
} }
-}), Vye = u2.reducer, { createEventEmitter: Hye } = u2.actions;
+}), Mbe = u2.reducer, { createEventEmitter: Nbe } = u2.actions;
//#endregion
//#region node_modules/recharts/es6/synchronisation/syncSelectors.js
-function Uye(e) {
+function Pbe(e) {
return e.tooltip.syncInteraction;
}
-var d2 = sH({
+var d2 = NH({
name: "chartData",
initialState: {
chartData: void 0,
@@ -57904,7 +58732,7 @@ var d2 = sH({
},
reducers: {
setChartData(e, t) {
- if (e.chartData = PG(t.payload), t.payload == null) {
+ if (e.chartData = oK(t.payload), t.payload == null) {
e.dataStartIndex = 0, e.dataEndIndex = 0;
return;
}
@@ -57918,7 +58746,7 @@ var d2 = sH({
n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);
}
}
-}), { setChartData: f2, setDataStartEndIndexes: Wye, setComputedData: Gye } = d2.actions, Kye = d2.reducer, qye = ["x", "y"];
+}), { setChartData: f2, setDataStartEndIndexes: Fbe, setComputedData: Ibe } = d2.actions, Lbe = d2.reducer, Rbe = ["x", "y"];
function p2(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -57933,26 +58761,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) {
- Jye(e, t, n[t]);
+ zbe(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 Jye(e, t, n) {
- return (t = Yye(t)) in e ? Object.defineProperty(e, t, {
+function zbe(e, t, n) {
+ return (t = Bbe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Yye(e) {
- var t = Xye(e, "string");
+function Bbe(e) {
+ var t = Vbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Xye(e, t) {
+function Vbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -57962,16 +58790,16 @@ function Xye(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function Zye(e, t) {
+function Hbe(e, t) {
if (e == null) return {};
- var n, r, i = Qye(e, t);
+ var n, r, i = Ube(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 Qye(e, t) {
+function Ube(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -57980,16 +58808,16 @@ function Qye(e, t) {
}
return n;
}
-function $ye() {
- var e = Q(LY), t = Q(zY), n = Xz(), r = Q(RY), i = Q(k0), a = NW(), o = EW(), s = Q((e) => e.rootProps.className);
+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);
(0, I.useEffect)(() => {
- if (e == null) return pz;
+ if (e == null) return Fz;
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 = Zye(d, qye), { 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 = Hbe(d, Rbe), { 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
});
@@ -58050,12 +58878,12 @@ function $ye() {
o
]);
}
-function ebe() {
- var e = Q(LY), t = Q(zY), n = Xz();
+function Gbe() {
+ var e = Q(LY), t = Q(zY), n = vB();
(0, I.useEffect)(() => {
- if (e == null) return pz;
+ if (e == null) return Fz;
var r = (r, i, a) => {
- t !== a && e === r && n(Wye(i));
+ t !== a && e === r && n(Fbe(i));
};
return o2.on(c2, r), () => {
o2.off(c2, r);
@@ -58066,14 +58894,14 @@ function ebe() {
e
]);
}
-function tbe() {
- var e = Xz();
+function Kbe() {
+ var e = vB();
(0, I.useEffect)(() => {
- e(Hye());
- }, [e]), $ye(), ebe();
+ e(Nbe());
+ }, [e]), Wbe(), Gbe();
}
-function nbe(e, t, n, r, i, a) {
- var o = Q((n) => pye(n, e, t)), s = Q(Zve), c = Q(zY), l = Q(LY), u = Q(RY), d = Q(Uye)?.active, f = EW();
+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();
(0, I.useEffect)(() => {
if (!d && l != null && c != null) {
var e = a0({
@@ -58117,26 +58945,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) {
- rbe(e, t, n[t]);
+ Jbe(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 rbe(e, t, n) {
- return (t = ibe(t)) in e ? Object.defineProperty(e, t, {
+function Jbe(e, t, n) {
+ return (t = Ybe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ibe(e) {
- var t = abe(e, "string");
+function Ybe(e) {
+ var t = Xbe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function abe(e, t) {
+function Xbe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58146,13 +58974,13 @@ function abe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function obe(e) {
+function Zbe(e) {
return e.dataKey;
}
-function sbe(e, t) {
- return /*#__PURE__*/ I.isValidElement(e) ? /*#__PURE__*/ I.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ I.createElement(e, t) : /*#__PURE__*/ I.createElement(PK, t);
+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);
}
-var _2 = [], cbe = {
+var _2 = [], $be = {
allowEscapeViewBox: {
x: !1,
y: !1
@@ -58178,10 +59006,10 @@ var _2 = [], cbe = {
useTranslate3d: !1,
wrapperStyle: {}
};
-function lbe(e) {
- var t = Cz(e, cbe), { 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 = Xz(), S = typeof v == "number" ? String(v) : v;
+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;
(0, I.useEffect)(() => {
- x(Cve({
+ x(mye({
shared: g,
trigger: _,
axisId: b,
@@ -58196,12 +59024,12 @@ function lbe(e) {
n,
S
]);
- var C = EW(), w = ZK(), T = vve(g), { activeIndex: E, isActive: D } = Q((e) => gye(e, T, _, S)) ?? {}, O = Q((e) => hye(e, T, _, S)), k = Q((e) => Z0(e, T, _, S)), A = Q((e) => mye(e, T, _, S)), j = O, M = zye(), N = n ?? D ?? !1, [P, ee] = sB([j, N]), F = T === "axis" ? k : void 0;
- nbe(T, _, A, F, E, N);
+ 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 = Jz(ne.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, obe));
+ 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,
@@ -58209,7 +59037,7 @@ function lbe(e) {
activeIndex: E,
coordinate: A,
accessibilityLayer: w
- }), ae = /*#__PURE__*/ I.createElement(XK, {
+ }), ae = /*#__PURE__*/ I.createElement(Sq, {
allowEscapeViewBox: r,
animationDuration: i,
animationEasing: a,
@@ -58226,8 +59054,8 @@ function lbe(e) {
lastBoundingBox: P,
innerRef: ee,
hasPortalFromProps: !!y
- }, sbe(o, ie));
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, Ch.createPortal)(ae, te), N && /*#__PURE__*/ I.createElement(Rye, {
+ }, Qbe(o, ie));
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ (0, Ch.createPortal)(ae, te), N && /*#__PURE__*/ I.createElement(kbe, {
cursor: h,
tooltipEventType: T,
coordinate: A,
@@ -58241,19 +59069,19 @@ var v2 = (e) => null;
v2.displayName = "Cell";
//#endregion
//#region node_modules/recharts/es6/util/LRUCache.js
-function ube(e, t, n) {
- return (t = dbe(t)) in e ? Object.defineProperty(e, t, {
+function txe(e, t, n) {
+ return (t = nxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function dbe(e) {
- var t = fbe(e, "string");
+function nxe(e) {
+ var t = rxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function fbe(e, t) {
+function rxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58263,9 +59091,9 @@ function fbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var pbe = class {
+var ixe = class {
constructor(e) {
- ube(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
+ txe(this, "cache", /* @__PURE__ */ new Map()), this.maxSize = e;
}
get(e) {
var t = this.cache.get(e);
@@ -58298,30 +59126,30 @@ function y2(e, t) {
}
return n;
}
-function mbe(e) {
+function axe(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) {
- hbe(e, t, n[t]);
+ oxe(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 hbe(e, t, n) {
- return (t = gbe(t)) in e ? Object.defineProperty(e, t, {
+function oxe(e, t, n) {
+ return (t = sxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function gbe(e) {
- var t = _be(e, "string");
+function sxe(e) {
+ var t = cxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function _be(e, t) {
+function cxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58331,10 +59159,10 @@ function _be(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var b2 = mbe({}, {
+var b2 = axe({}, {
cacheSize: 2e3,
enableCache: !0
-}), x2 = new pbe(b2.cacheSize), vbe = {
+}), x2 = new ixe(b2.cacheSize), lxe = {
position: "absolute",
top: "-20000px",
left: 0,
@@ -58343,13 +59171,13 @@ var b2 = mbe({}, {
border: "none",
whiteSpace: "pre"
}, S2 = "recharts_measurement_span";
-function ybe(e, t) {
+function uxe(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, vbe, 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, lxe, t), n.textContent = `${e}`;
var r = n.getBoundingClientRect();
return {
width: r.width,
@@ -58363,29 +59191,29 @@ var C2 = (e, t) => {
}
}, w2 = function(e) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
- if (e == null || VK.isSsr) return {
+ if (e == null || pq.isSsr) return {
width: 0,
height: 0
};
if (!b2.enableCache) return C2(e, t);
- var n = ybe(e, t), r = x2.get(n);
+ var n = uxe(e, t), r = x2.get(n);
if (r) return r;
var i = C2(e, t);
return x2.set(n, i), i;
}, T2;
-function bbe(e, t, n) {
- return (t = xbe(t)) in e ? Object.defineProperty(e, t, {
+function dxe(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 xbe(e) {
- var t = Sbe(e, "string");
+function fxe(e) {
+ var t = pxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Sbe(e, t) {
+function pxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58395,7 +59223,7 @@ function Sbe(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%]*)/, Cbe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, wbe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, Tbe = {
+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 = {
cm: 96 / 2.54,
mm: 96 / 25.4,
pt: 96 / 72,
@@ -58403,7 +59231,7 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(
in: 96,
Q: 96 / 101.6,
px: 1
-}, Ebe = [
+}, _xe = [
"cm",
"mm",
"pt",
@@ -58412,20 +59240,20 @@ var E2 = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, D2 = /(
"Q",
"px"
];
-function Dbe(e) {
- return Ebe.includes(e);
+function vxe(e) {
+ return _xe.includes(e);
}
var O2 = "NaN";
-function Obe(e, t) {
- return e * Tbe[t];
+function yxe(e, t) {
+ return e * gxe[t];
}
var k2 = class e {
static parse(t) {
- var [, n, r] = wbe.exec(t) ?? [];
+ var [, n, r] = hxe.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, nz(e) && (this.unit = ""), t !== "" && !Cbe.test(t) && (this.num = NaN, this.unit = ""), Dbe(t) && (this.num = Obe(e, t), this.unit = "px");
+ 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");
}
add(t) {
return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");
@@ -58443,10 +59271,10 @@ var k2 = class e {
return `${this.num}${this.unit}`;
}
isNaN() {
- return nz(this.num);
+ return wz(this.num);
}
};
-T2 = k2, bbe(k2, "NaN", new T2(NaN, ""));
+T2 = k2, dxe(k2, "NaN", new T2(NaN, ""));
function A2(e) {
if (e == null || e.includes(O2)) return O2;
for (var t = e; t.includes("*") || t.includes("/");) {
@@ -58462,31 +59290,31 @@ function A2(e) {
return t;
}
var j2 = /\(([^()]*)\)/;
-function kbe(e) {
+function bxe(e) {
for (var t = e, n; (n = j2.exec(t)) != null;) {
var [, r] = n;
t = t.replace(j2, A2(r));
}
return t;
}
-function Abe(e) {
+function xxe(e) {
var t = e.replace(/\s+/g, "");
- return t = kbe(t), t = A2(t), t;
+ return t = bxe(t), t = A2(t), t;
}
-function jbe(e) {
+function Sxe(e) {
try {
- return Abe(e);
+ return xxe(e);
} catch {
return O2;
}
}
function M2(e) {
- var t = jbe(e.slice(5, -1));
+ var t = Sxe(e.slice(5, -1));
return t === O2 ? "" : t;
}
//#endregion
//#region node_modules/recharts/es6/component/Text.js
-var Mbe = [
+var Cxe = [
"x",
"y",
"lineHeight",
@@ -58495,7 +59323,7 @@ var Mbe = [
"scaleToFit",
"textAnchor",
"verticalAnchor"
-], Nbe = [
+], wxe = [
"dx",
"dy",
"angle",
@@ -58513,14 +59341,14 @@ function N2() {
}
function P2(e, t) {
if (e == null) return {};
- var n, r, i = Pbe(e, t);
+ var n, r, i = Txe(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 Pbe(e, t) {
+function Txe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58533,7 +59361,7 @@ var F2 = /[ \f\n\r\t\v\u2028\u2029]+/, I2 = (e) => {
var { children: t, breakAll: n, style: r } = e;
try {
var i = [];
- return uz(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {
+ return Mz(t) || (i = n ? t.toString().split("") : t.toString().split(F2)), {
wordsWithComputedWidth: i.map((e) => ({
word: e,
width: w2(e, r).width
@@ -58547,8 +59375,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 Fbe(e) {
- return uz(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";
+function Exe(e) {
+ return Mz(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];
@@ -58561,16 +59389,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), Ibe = "…", B2 = (e, t, n, r, i, a, o, s) => {
+}, []), z2 = (e) => e.reduce((e, t) => e.width > t.width ? e : t), Dxe = "…", B2 = (e, t, n, r, i, a, o, s) => {
var c = I2({
breakAll: n,
style: r,
- children: e.slice(0, t) + Ibe
+ children: e.slice(0, t) + Dxe
});
if (!c) return [!1, []];
var l = R2(c.wordsWithComputedWidth, a, o, s);
return [l.length > i || z2(l).width > Number(a), l];
-}, Lbe = (e, t, n, r, i) => {
+}, Oxe = (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;) {
@@ -58583,11 +59411,11 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
}
return h || d;
}, V2 = (e) => [{
- words: uz(e) ? [] : e.toString().split(F2),
+ words: Mz(e) ? [] : e.toString().split(F2),
width: void 0
-}], Rbe = (e) => {
+}], kxe = (e) => {
var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;
- if ((t || n) && !VK.isSsr) {
+ if ((t || n) && !pq.isSsr) {
var s, c, l = I2({
breakAll: a,
children: r,
@@ -58597,7 +59425,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 Lbe({
+ return Oxe({
breakAll: a,
children: r,
maxLines: o,
@@ -58605,7 +59433,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
}, s, c, t, !!n);
}
return V2(r);
-}, H2 = "#808080", zbe = {
+}, H2 = "#808080", Axe = {
angle: 0,
breakAll: !1,
capHeight: "0.71em",
@@ -58617,7 +59445,7 @@ var R2 = (e, t, n, r) => e.reduce((e, i) => {
x: 0,
y: 0
}, U2 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = Cz(e, zbe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = P2(n, Mbe), f = (0, I.useMemo)(() => Rbe({
+ 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({
breakAll: d.breakAll,
children: d.children,
maxLines: d.maxLines,
@@ -58631,10 +59459,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, Nbe);
- if (!iz(r) || !iz(i) || f.length === 0) return null;
+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = P2(d, wxe);
+ if (!Ez(r) || !Ez(i) || f.length === 0) return null;
var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);
- if (!nU(y) || !nU(b)) return null;
+ if (!OU(y) || !OU(b)) return null;
var x;
switch (u) {
case "start":
@@ -58650,7 +59478,7 @@ 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({}, YL(v), {
+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ I.createElement("text", N2({}, _R(v), {
ref: t,
x: y,
y: b,
@@ -58683,26 +59511,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) {
- Bbe(e, t, n[t]);
+ jxe(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 Bbe(e, t, n) {
- return (t = Vbe(t)) in e ? Object.defineProperty(e, t, {
+function jxe(e, t, n) {
+ return (t = Mxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Vbe(e) {
- var t = Hbe(e, "string");
+function Mxe(e) {
+ var t = Nxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Hbe(e, t) {
+function Nxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58712,8 +59540,8 @@ function Hbe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var Ube = (e) => {
- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = TW(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 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;
if (n === "top") {
var T = {
x: d + l / 2,
@@ -58794,9 +59622,9 @@ var Ube = (e) => {
y: s + c - _,
horizontalAnchor: S,
verticalAnchor: v
- }, k) : n && typeof n == "object" && (Z(n.x) || rz(n.x)) && (Z(n.y) || rz(n.y)) ? G2({
- x: o + oz(n.x, m),
- y: s + oz(n.y, c),
+ }, 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),
horizontalAnchor: "end",
verticalAnchor: "end"
}, k) : G2({
@@ -58805,17 +59633,17 @@ var Ube = (e) => {
horizontalAnchor: "middle",
verticalAnchor: "middle"
}, k);
-}, Wbe = ["labelRef"], Gbe = ["content"];
+}, Fxe = ["labelRef"], Ixe = ["content"];
function K2(e, t) {
if (e == null) return {};
- var n, r, i = Kbe(e, t);
+ var n, r, i = Lxe(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 Kbe(e, t) {
+function Lxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -58838,26 +59666,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) {
- qbe(e, t, n[t]);
+ Rxe(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 qbe(e, t, n) {
- return (t = Jbe(t)) in e ? Object.defineProperty(e, t, {
+function Rxe(e, t, n) {
+ return (t = zxe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jbe(e) {
- var t = Ybe(e, "string");
+function zxe(e) {
+ var t = Bxe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ybe(e, t) {
+function Bxe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -58894,9 +59722,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 = EW();
- return e || (t ? TW(t) : void 0);
-}, $2 = /*#__PURE__*/ (0, I.createContext)(null), Xbe = (e) => {
+ var e = (0, I.useContext)(X2), t = QW();
+ return e || (t ? ZW(t) : void 0);
+}, $2 = /*#__PURE__*/ (0, I.createContext)(null), Vxe = (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,
@@ -58918,11 +59746,11 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
}, e4 = () => {
var e = (0, I.useContext)($2), t = Q(rX);
return e || t;
-}, Zbe = (e) => {
- var { value: t, formatter: n } = e, r = uz(e.children) ? t : e.children;
+}, Hxe = (e) => {
+ var { value: t, formatter: n } = e, r = Mz(e.children) ? t : e.children;
return typeof n == "function" ? n(r) : r;
-}, t4 = (e) => e != null && typeof e == "function", Qbe = (e, t) => tz(t - e) * Math.min(Math.abs(t - e), 360), $be = (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 = Qbe(d, f), g = h >= 0 ? 1 : -1, _, v;
+}, 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;
switch (t) {
case "insideStart":
_ = d + g * a, v = p;
@@ -58936,9 +59764,9 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
default: throw Error(`Unsupported position ${t}`);
}
v = h <= 0 ? v : !v;
- var y = UJ(s, c, m, _), b = UJ(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}
+ 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 = uz(e.id) ? az("recharts-radial-line-") : e.id;
+ ${b.x},${b.y}`, S = Mz(e.id) ? Dz("recharts-radial-line-") : e.id;
return /*#__PURE__*/ I.createElement("text", Y2({}, r, {
dominantBaseline: "central",
className: Jm("recharts-radial-bar-label", o)
@@ -58946,10 +59774,10 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
id: S,
d: x
})), /*#__PURE__*/ I.createElement("textPath", { xlinkHref: `#${S}` }, n));
-}, exe = (e, t, n) => {
+}, Gxe = (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 } = UJ(r, i, o + t, l);
+ var { x: u, y: d } = aY(r, i, o + t, l);
return {
x: u,
y: d,
@@ -58975,21 +59803,21 @@ var X2 = /*#__PURE__*/ (0, I.createContext)(null), Z2 = (e) => {
textAnchor: "middle",
verticalAnchor: "end"
};
- var { x: f, y: p } = UJ(r, i, (a + o) / 2, l);
+ var { x: f, y: p } = aY(r, i, (a + o) / 2, l);
return {
x: f,
y: p,
textAnchor: "middle",
verticalAnchor: "middle"
};
-}, n4 = (e) => e != null && "cx" in e && Z(e.cx), txe = {
+}, n4 = (e) => e != null && "cx" in e && Z(e.cx), Kxe = {
angle: 0,
offset: 5,
zIndex: BY.label,
position: "middle",
textBreakAll: !1
};
-function nxe(e) {
+function qxe(e) {
if (!n4(e)) return e;
var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;
return {
@@ -59002,24 +59830,24 @@ function nxe(e) {
};
}
function r4(e) {
- var t = Cz(e, txe), { 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 : TW(n), m, h, g = nxe(p);
- if (!p || uz(a) && uz(o) && !/*#__PURE__*/ (0, I.isValidElement)(s) && typeof s != "function") return null;
+ 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 _ = J2(J2({}, t), {}, { viewBox: p });
if (/*#__PURE__*/ (0, I.isValidElement)(s)) {
- var { labelRef: v } = _, y = K2(_, Wbe);
+ var { labelRef: v } = _, y = K2(_, Fxe);
return /*#__PURE__*/ (0, I.cloneElement)(s, y);
}
if (typeof s == "function") {
- var { content: b } = _, x = K2(_, Gbe);
+ var { content: b } = _, x = K2(_, Ixe);
if (m = /*#__PURE__*/ (0, I.createElement)(s, x), /*#__PURE__*/ (0, I.isValidElement)(m)) return m;
- } else m = Zbe(t);
- var S = YL(t);
+ } else m = Hxe(t);
+ var S = _R(t);
if (n4(p)) {
- if (i === "insideStart" || i === "insideEnd" || i === "end") return $be(t, i, m, S, p);
- h = exe(p, t.offset, t.position);
+ if (i === "insideStart" || i === "insideEnd" || i === "end") return Wxe(t, i, m, S, p);
+ h = Gxe(p, t.offset, t.position);
} else {
if (!g) return null;
- var C = Ube({
+ var C = Pxe({
viewBox: g,
position: i,
offset: t.offset,
@@ -59048,7 +59876,7 @@ var i4 = (e, t, n) => {
viewBox: t,
labelRef: n
};
- return e === !0 ? /*#__PURE__*/ I.createElement(r4, Y2({ key: "label-implicit" }, r)) : iz(e) ? /*#__PURE__*/ I.createElement(r4, Y2({
+ return e === !0 ? /*#__PURE__*/ I.createElement(r4, Y2({ key: "label-implicit" }, r)) : Ez(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({
@@ -59063,13 +59891,13 @@ function a4(e) {
var { label: t, labelRef: n } = e;
return i4(t, Q2(), n) || null;
}
-function rxe(e) {
+function Jxe(e) {
var { label: t } = e;
return i4(t, e4()) || null;
}
//#endregion
//#region node_modules/recharts/es6/component/LabelList.js
-var ixe = ["valueAccessor"], axe = [
+var Yxe = ["valueAccessor"], Xxe = [
"dataKey",
"clockWise",
"id",
@@ -59087,14 +59915,14 @@ function o4() {
}
function s4(e, t) {
if (e == null) return {};
- var n, r, i = oxe(e, t);
+ var n, r, i = Zxe(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 oxe(e, t) {
+function Zxe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59103,21 +59931,21 @@ function oxe(e, t) {
}
return n;
}
-var sxe = (e) => {
+var Qxe = (e) => {
var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;
- if (Fbe(t)) return t;
-}, c4 = /*#__PURE__*/ (0, I.createContext)(void 0), l4 = c4.Provider, u4 = /*#__PURE__*/ (0, I.createContext)(void 0), cxe = u4.Provider;
-function lxe() {
+ 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() {
return (0, I.useContext)(c4);
}
-function uxe() {
+function tSe() {
return (0, I.useContext)(u4);
}
function d4(e) {
- var { valueAccessor: t = sxe } = e, n = s4(e, ixe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = s4(n, axe), l = lxe(), u = uxe(), d = l || u;
- return !d || !d.length ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: s ?? BY.label }, /*#__PURE__*/ I.createElement($L, { className: "recharts-label-list" }, d.map((e, i) => {
- var s = uz(r) ? t(e, i) : lU(e.payload, r), l = uz(a) ? {} : { id: `${a}-${i}` };
- return /*#__PURE__*/ I.createElement(r4, o4({ key: `label-${i}` }, YL(e), c, l, {
+ 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, {
fill: n.fill ?? e.fill,
parentViewBox: e.parentViewBox,
value: s,
@@ -59138,12 +59966,12 @@ function f4(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Polygon.js
-var dxe = [
+var nSe = [
"points",
"className",
"baseLinePoints",
"connectNulls"
-], fxe;
+], rSe;
function p4() {
return p4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59153,16 +59981,16 @@ function p4() {
return e;
}, p4.apply(null, arguments);
}
-function pxe(e, t) {
+function iSe(e, t) {
if (e == null) return {};
- var n, r, i = mxe(e, t);
+ var n, r, i = aSe(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 mxe(e, t) {
+function aSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59171,10 +59999,10 @@ function mxe(e, t) {
}
return n;
}
-function hxe(e, t) {
+function oSe(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, gxe = function() {
+var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, sSe = function() {
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];
e.forEach((e) => {
var n = t[t.length - 1];
@@ -59185,9 +60013,9 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, gxe = function() {
var i = t[t.length - 1];
return i && i.length <= 0 && (t = t.slice(0, -1)), t;
}, h4 = (e, t) => {
- var n = gxe(e);
+ var n = sSe(e);
t && (n = [n.reduce((e, t) => [...e, ...t], [])]);
- var r = n.map((e) => e.reduce((e, t, n) => ez(fxe ||= hxe([
+ var r = n.map((e) => e.reduce((e, t, n) => Sz(rSe ||= oSe([
"",
"",
"",
@@ -59195,29 +60023,29 @@ var m4 = (e) => e != null && e.x === +e.x && e.y === +e.y, gxe = function() {
""
]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");
return n.length === 1 ? `${r}Z` : r;
-}, _xe = (e, t, n) => {
+}, cSe = (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 = pxe(e, dxe);
+ var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = iSe(e, nSe);
if (!t || !t.length) return null;
var o = Jm("recharts-polygon", n);
if (r && r.length) {
- var s = a.stroke && a.stroke !== "none", c = _xe(t, r, i);
- return /*#__PURE__*/ I.createElement("g", { className: o }, /*#__PURE__*/ I.createElement("path", p4({}, YL(a), {
+ 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), {
fill: c.slice(-1) === "Z" ? a.fill : "none",
stroke: "none",
d: c
- })), s ? /*#__PURE__*/ I.createElement("path", p4({}, YL(a), {
+ })), s ? /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {
fill: "none",
d: h4(t, i)
- })) : null, s ? /*#__PURE__*/ I.createElement("path", p4({}, YL(a), {
+ })) : null, s ? /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {
fill: "none",
d: h4(r, i)
})) : null);
}
var l = h4(t, i);
- return /*#__PURE__*/ I.createElement("path", p4({}, YL(a), {
+ return /*#__PURE__*/ I.createElement("path", p4({}, _R(a), {
fill: l.slice(-1) === "Z" ? a.fill : "none",
className: o,
d: l
@@ -59236,7 +60064,7 @@ function _4() {
}
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({}, qL(e), bz(e), {
+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ I.createElement("circle", _4({}, hR(e), Hz(e), {
className: a,
cx: t,
cy: n,
@@ -59256,18 +60084,18 @@ $([
R$,
b4
], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({
- value: lU(e, t.dataKey ?? n.dataKey),
+ value: FU(e, t.dataKey ?? n.dataKey),
errorDomain: []
}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
value: e,
errorDomain: []
})) : e.map((e) => ({
- value: lU(e, t.dataKey),
+ value: FU(e, t.dataKey),
errorDomain: []
})));
var C4 = () => void 0, w4 = $([
R$,
- MW,
+ iG,
x4,
S4,
PY,
@@ -59285,14 +60113,14 @@ var C4 = () => void 0, w4 = $([
iX
], f1),
C4,
- MW,
+ iG,
iX
], b1)
], x1), T4 = $([
w4,
z$,
C1
-], w1), vxe = $([C1, $([
+], w1), lSe = $([C1, $([
R$,
w4,
T4,
@@ -59305,22 +60133,22 @@ var C4 = () => void 0, w4 = $([
}
}, D4 = (e, t, n) => {
switch (t) {
- case "angleAxis": return Zme(e, n);
- case "radiusAxis": return Qme(e, n);
+ case "angleAxis": return Hhe(e, n);
+ case "radiusAxis": return Uhe(e, n);
default: throw Error(`Unexpected axis type: ${t}`);
}
}, O4 = $([$([
E4,
C1,
- vxe,
+ lSe,
D4
], T$)], pX), k4 = $([
- MW,
+ iG,
S4,
z$,
iX
], j1), A4 = $([
- MW,
+ iG,
E4,
C1,
O4,
@@ -59329,7 +60157,7 @@ var C4 = () => void 0, w4 = $([
H1,
k4,
iX
-], W1), yxe = $([A4], (e) => {
+], W1), uSe = $([A4], (e) => {
if (e) {
var t = /* @__PURE__ */ new Map();
return e.forEach((e) => {
@@ -59337,19 +60165,19 @@ var C4 = () => void 0, w4 = $([
t.has(n) || t.set(n, e);
}), Array.from(t.values());
}
-}), bxe = $([
- MW,
+}), dSe = $([
+ iG,
E4,
O4,
D4,
H1,
k4,
iX
-], K1), xxe = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
+], K1), fSe = $([(e, t) => A4(e, "angleAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Sxe = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
+}), pSe = $([(e, t) => A4(e, "radiusAxis", t, !1)], (e) => {
if (e) return e.map((e) => e.coordinate);
-}), Cxe = [
+}), mSe = [
"gridType",
"radialLines",
"angleAxisId",
@@ -59362,16 +60190,16 @@ var C4 = () => void 0, w4 = $([
"polarRadius",
"zIndex"
];
-function wxe(e, t) {
+function hSe(e, t) {
if (e == null) return {};
- var n, r, i = Txe(e, t);
+ var n, r, i = gSe(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 gSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59403,26 +60231,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) {
- Exe(e, t, n[t]);
+ _Se(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 Exe(e, t, n) {
- return (t = Dxe(t)) in e ? Object.defineProperty(e, t, {
+function _Se(e, t, n) {
+ return (t = vSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Dxe(e) {
- var t = Oxe(e, "string");
+function vSe(e) {
+ var t = ySe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Oxe(e, t) {
+function ySe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59432,18 +60260,18 @@ function Oxe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var kxe = (e, t, n, r) => {
+var bSe = (e, t, n, r) => {
var i = "";
return r.forEach((r, a) => {
- var o = UJ(t, n, e, r);
+ var o = aY(t, n, e, r);
i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;
}), i += "Z", i;
-}, Axe = (e) => {
+}, xSe = (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" }, qL(e));
+ var s = N4({ stroke: "#ccc" }, hR(e));
return /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {
- var a = UJ(t, n, r, e), o = UJ(t, n, i, e);
+ var a = aY(t, n, r, e), o = aY(t, n, i, e);
return /*#__PURE__*/ I.createElement("line", j4({ key: `line-${e}` }, s, {
x1: a.x,
y1: a.y,
@@ -59455,7 +60283,7 @@ var kxe = (e, t, n, r) => {
var { cx: t, cy: n, radius: r } = e, i = N4({
stroke: "#ccc",
fill: "none"
- }, qL(e));
+ }, hR(e));
return /*#__PURE__*/ I.createElement("circle", j4({}, i, {
className: Jm("recharts-polar-grid-concentric-circle", e.className),
cx: t,
@@ -59466,12 +60294,12 @@ var kxe = (e, t, n, r) => {
var { radius: t } = e, n = N4({
stroke: "#ccc",
fill: "none"
- }, qL(e));
+ }, hR(e));
return /*#__PURE__*/ I.createElement("path", j4({}, n, {
className: Jm("recharts-polar-grid-concentric-polygon", e.className),
- d: kxe(t, e.cx, e.cy, e.polarAngles)
+ d: bSe(t, e.cx, e.cy, e.polarAngles)
}));
-}, jxe = (e) => {
+}, SSe = (e) => {
var { polarRadius: t, gridType: n } = e;
if (!t || !t.length) return null;
var r = Math.max(...t), i = e.fill && e.fill !== "none";
@@ -59485,14 +60313,14 @@ var kxe = (e, t, n, r) => {
radius: t
}));
}));
-}, Mxe = {
+}, CSe = {
angleAxisId: 0,
radiusAxisId: 0,
gridType: "polygon",
radialLines: !0,
zIndex: BY.grid
}, I4 = (e) => {
- var t = Cz(e, Mxe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = wxe(t, Cxe), m = Q(rX), h = Q((e) => xxe(e, i)), g = Q((e) => Sxe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;
+ 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;
if (_ == null || v == null) return null;
var y = N4({
cx: m?.cx ?? o ?? 0,
@@ -59503,13 +60331,13 @@ var kxe = (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(jxe, j4({
+ return b <= 0 ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: y.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ I.createElement(SSe, j4({
gridType: n,
radialLines: r
}, y, {
polarAngles: _,
polarRadius: v
- })), /*#__PURE__*/ I.createElement(Axe, j4({
+ })), /*#__PURE__*/ I.createElement(xSe, j4({
gridType: n,
radialLines: r
}, y, {
@@ -59525,11 +60353,11 @@ function L4(e) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs
-function Nxe(e, t = Oz) {
+function wSe(e, t = Xz) {
if (e == null) return;
let n = L4(e);
if (n.length === 0) return;
- let r = Kz(t), i, a;
+ let r = mB(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);
@@ -59538,11 +60366,11 @@ function Nxe(e, t = Oz) {
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs
-function Pxe(e, t = Oz) {
+function TSe(e, t = Xz) {
if (e == null) return;
let n = L4(e);
if (n.length === 0) return;
- let r = Kz(t), i, a;
+ let r = mB(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);
@@ -59551,7 +60379,7 @@ function Pxe(e, t = Oz) {
}
//#endregion
//#region node_modules/recharts/es6/state/polarAxisSlice.js
-var R4 = sH({
+var R4 = NH({
name: "polarAxis",
initialState: {
radiusAxis: {},
@@ -59559,19 +60387,19 @@ var R4 = sH({
},
reducers: {
addRadiusAxis(e, t) {
- e.radiusAxis[t.payload.id] = PG(t.payload);
+ e.radiusAxis[t.payload.id] = oK(t.payload);
},
removeRadiusAxis(e, t) {
delete e.radiusAxis[t.payload.id];
},
addAngleAxis(e, t) {
- e.angleAxis[t.payload.id] = PG(t.payload);
+ e.angleAxis[t.payload.id] = oK(t.payload);
},
removeAngleAxis(e, t) {
delete e.angleAxis[t.payload.id];
}
}
-}), { addRadiusAxis: Fxe, removeRadiusAxis: Ixe, addAngleAxis: Lxe, removeAngleAxis: Rxe } = R4.actions, zxe = R4.reducer;
+}), { addRadiusAxis: ESe, removeRadiusAxis: DSe, addAngleAxis: OSe, removeAngleAxis: kSe } = R4.actions, ASe = R4.reducer;
//#endregion
//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js
function z4(e) {
@@ -59579,12 +60407,12 @@ function z4(e) {
}
//#endregion
//#region node_modules/recharts/es6/polar/PolarRadiusAxis.js
-var Bxe = ["type"], Vxe = [
+var jSe = ["type"], MSe = [
"cx",
"cy",
"angle",
"axisLine"
-], Hxe = [
+], NSe = [
"angle",
"tickFormatter",
"stroke",
@@ -59613,26 +60441,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) {
- Uxe(e, t, n[t]);
+ PSe(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 Uxe(e, t, n) {
- return (t = Wxe(t)) in e ? Object.defineProperty(e, t, {
+function PSe(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 Wxe(e) {
- var t = Gxe(e, "string");
+function FSe(e) {
+ var t = ISe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Gxe(e, t) {
+function ISe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59644,14 +60472,14 @@ function Gxe(e, t) {
}
function U4(e, t) {
if (e == null) return {};
- var n, r, i = Kxe(e, t);
+ var n, r, i = LSe(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 Kxe(e, t) {
+function LSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59660,20 +60488,20 @@ function Kxe(e, t) {
}
return n;
}
-var qxe = "radiusAxis";
-function Jxe(e) {
- var t = Xz(), n = IW(), r = (0, I.useMemo)(() => {
- var { type: t } = e, r = U4(e, Bxe), i = WY(n, "radiusAxis", t);
+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);
if (i != null) return H4(H4({}, r), {}, { type: i });
}, [e, n]);
- return (0, I.useEffect)(() => r == null ? pz : (t(Fxe(r)), () => {
- t(Ixe(r));
+ return (0, I.useEffect)(() => r == null ? Fz : (t(ESe(r)), () => {
+ t(DSe(r));
}), [t, r]), null;
}
-var Yxe = (e, t, n, r) => {
+var BSe = (e, t, n, r) => {
var { coordinate: i } = e;
- return UJ(n, r, i, t);
-}, Xxe = (e) => {
+ return aY(n, r, i, t);
+}, VSe = (e) => {
var t;
switch (e) {
case "left":
@@ -59685,49 +60513,49 @@ var Yxe = (e, t, n, r) => {
default: t = "middle";
}
return t;
-}, Zxe = (e, t, n, r) => {
- var i = Nxe(r, (e) => e.coordinate || 0);
+}, HSe = (e, t, n, r) => {
+ var i = wSe(r, (e) => e.coordinate || 0);
return {
cx: t,
cy: n,
startAngle: e,
endAngle: e,
- innerRadius: Pxe(r, (e) => e.coordinate || 0)?.coordinate || 0,
+ innerRadius: TSe(r, (e) => e.coordinate || 0)?.coordinate || 0,
outerRadius: i?.coordinate || 0,
clockWise: !1
};
-}, Qxe = (e, t) => {
- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = U4(e, Vxe), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = UJ(n, r, s[0], i), l = UJ(n, r, s[1], i), u = H4(H4(H4({}, qL(o)), {}, { fill: "none" }, qL(a)), {}, {
+}, 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)), {}, {
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));
-}, $xe = (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), eSe = (e, t) => {
- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = U4(e, Hxe), s = Xxe(e.orientation), c = qL(o), l = JL(a), u = t.map((t, o) => {
- var u = Yxe(t, e.angle, e.cx, e.cy), d = H4(H4(H4(H4({
+}, 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({
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($L, B4({
+ return /*#__PURE__*/ I.createElement(xR, B4({
className: Jm("recharts-polar-radius-axis-tick", z4(a)),
key: `tick-${t.coordinate}`
- }, xz(e, t, o)), $xe(a, d, r ? r(t.value, o) : t.value));
+ }, Uz(e, t, o)), WSe(a, d, r ? r(t.value, o) : t.value));
});
- return /*#__PURE__*/ I.createElement($L, { className: "recharts-polar-radius-axis-ticks" }, u);
-}, tSe = (e) => {
+ return /*#__PURE__*/ I.createElement(xR, { className: "recharts-polar-radius-axis-ticks" }, u);
+}, KSe = (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($L, { className: Jm("recharts-polar-radius-axis", qxe, a.className) }, s && Qxe(a, i), o && eSe(a, i), /*#__PURE__*/ I.createElement(Xbe, Zxe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ I.createElement(rxe, { label: a.label }), a.children)));
+ 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)));
};
function W4(e) {
- var t = Cz(e, HY);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Jxe, {
+ var t = Gz(e, HY);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(zSe, {
domain: t.domain,
id: t.radiusAxisId,
scale: t.scale,
@@ -59744,12 +60572,12 @@ function W4(e) {
ticks: t.ticks,
tickCount: t.tickCount,
tick: t.tick
- }), /*#__PURE__*/ I.createElement(tSe, t));
+ }), /*#__PURE__*/ I.createElement(KSe, t));
}
W4.displayName = "PolarRadiusAxis";
//#endregion
//#region node_modules/recharts/es6/polar/PolarAngleAxis.js
-var nSe = ["children", "type"], rSe = ["ref"];
+var qSe = ["children", "type"], JSe = ["ref"];
function G4() {
return G4 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -59773,26 +60601,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) {
- iSe(e, t, n[t]);
+ YSe(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 iSe(e, t, n) {
- return (t = aSe(t)) in e ? Object.defineProperty(e, t, {
+function YSe(e, t, n) {
+ return (t = XSe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function aSe(e) {
- var t = oSe(e, "string");
+function XSe(e) {
+ var t = ZSe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function oSe(e, t) {
+function ZSe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -59804,14 +60632,14 @@ function oSe(e, t) {
}
function J4(e, t) {
if (e == null) return {};
- var n, r, i = sSe(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 sSe(e, t) {
+function QSe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -59820,47 +60648,47 @@ function sSe(e, t) {
}
return n;
}
-var Y4 = 1e-5, cSe = Math.cos(VJ(45)), lSe = "angleAxis";
-function uSe(e) {
- var t = Xz(), n = IW(), r = (0, I.useMemo)(() => {
- var { children: t, type: r } = e, i = J4(e, nSe), a = WY(n, "angleAxis", r);
+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);
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 ? pz : (t(Lxe(r)), () => {
- t(Rxe(r));
+ return (0, I.useEffect)(() => r == null ? Fz : (t(OSe(r)), () => {
+ t(kSe(r));
}), [t, r]), i ? e.children : null;
}
-var dSe = (e, t) => {
- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = UJ(n, r, i, e.coordinate), l = UJ(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);
+var nCe = (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,
y1: c.y,
x2: l.x,
y2: l.y
};
-}, fSe = (e, t) => {
- var n = Math.cos(VJ(-e.coordinate));
+}, rCe = (e, t) => {
+ var n = Math.cos(iY(-e.coordinate));
return n > Y4 ? t === "outer" ? "start" : "end" : n < -Y4 ? t === "outer" ? "end" : "start" : "middle";
-}, pSe = (e) => {
- var t = Math.cos(VJ(-e.coordinate)), n = Math.sin(VJ(-e.coordinate));
- return Math.abs(t) <= cSe ? n > 0 ? "start" : "end" : "middle";
-}, mSe = (e) => {
+}, iCe = (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) => {
var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;
if (!a) return null;
- var s = q4(q4({}, qL(e)), {}, { fill: "none" }, qL(a));
+ var s = q4(q4({}, hR(e)), {}, { fill: "none" }, hR(a));
if (i === "circle") return /*#__PURE__*/ I.createElement(v4, G4({ className: "recharts-polar-angle-axis-line" }, s, {
cx: t,
cy: n,
r
}));
- var c = o.map((e) => UJ(t, n, r, e.coordinate));
+ 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 }));
-}, hSe = (e) => {
+}, oCe = (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;
-}, gSe = (e) => {
- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = qL(e), { ref: s } = o, c = J4(o, rSe), l = JL(t), u = q4(q4({}, c), {}, { fill: "none" }, qL(n)), d = a.map((a, o) => {
- var s = dSe(a, e), d = fSe(a, e.orientation), f = pSe(a), p = q4(q4(q4({}, c), {}, {
+}, 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), {}, {
textAnchor: d,
verticalAnchor: f,
stroke: "none",
@@ -59871,28 +60699,28 @@ var dSe = (e, t) => {
x: s.x2,
y: s.y2
});
- return /*#__PURE__*/ I.createElement($L, G4({
+ return /*#__PURE__*/ I.createElement(xR, G4({
className: Jm("recharts-polar-angle-axis-tick", z4(t)),
key: `tick-${a.coordinate}`
- }, xz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(hSe, {
+ }, Uz(e, a, o)), n && /*#__PURE__*/ I.createElement("line", G4({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ I.createElement(oCe, {
tick: t,
tickProps: p,
value: r ? r(a.value, o) : a.value
}));
});
- return /*#__PURE__*/ I.createElement($L, { className: "recharts-polar-angle-axis-ticks" }, d);
-}, _Se = (e) => {
- var { angleAxisId: t } = e, n = Q(rX), r = Q((e) => O4(e, "angleAxis", t)), i = QU(), a = Q((e) => yxe(e, "angleAxis", t, i));
+ 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));
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($L, { className: Jm("recharts-polar-angle-axis", lSe, o.className) }, /*#__PURE__*/ I.createElement(mSe, o), /*#__PURE__*/ I.createElement(gSe, o)));
+ 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)));
};
function X4(e) {
- var t = Cz(e, VY);
- return /*#__PURE__*/ I.createElement(uSe, {
+ var t = Gz(e, VY);
+ return /*#__PURE__*/ I.createElement(tCe, {
id: t.angleAxisId,
scale: t.scale,
type: t.type,
@@ -59909,12 +60737,12 @@ function X4(e) {
ticks: t.ticks,
tick: t.tick,
domain: t.domain
- }, /*#__PURE__*/ I.createElement(_Se, t));
+ }, /*#__PURE__*/ I.createElement(cCe, t));
}
X4.displayName = "PolarAngleAxis";
//#endregion
//#region node_modules/react-is/cjs/react-is.production.js
-var vSe = /* @__PURE__ */ F(((e) => {
+var lCe = /* @__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) {
@@ -59943,26 +60771,26 @@ var vSe = /* @__PURE__ */ F(((e) => {
e.isFragment = function(e) {
return m(e) === r;
};
-})), ySe = (/* @__PURE__ */ F(((e, t) => {
- t.exports = vSe();
+})), uCe = (/* @__PURE__ */ F(((e, t) => {
+ t.exports = lCe();
})))(), 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) => {
- uz(e) || ((0, ySe.isFragment)(e) ? t = t.concat(e3(e.props.children)) : t.push(e));
+ Mz(e) || ((0, uCe.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 = QR(e, "type.displayName") || QR(e, "type.name");
+ var t = bz(e, "type.displayName") || bz(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 bSe(e) {
+function dCe(e) {
if (typeof e != "object" || !e) return !1;
if (Object.getPrototypeOf(e) === null) return !0;
if (Object.prototype.toString.call(e) !== "[object Object]") {
@@ -59975,7 +60803,7 @@ function bSe(e) {
}
//#endregion
//#region node_modules/recharts/es6/shape/Trapezoid.js
-var xSe, SSe, CSe, wSe, TSe;
+var fCe, pCe, mCe, hCe, gCe;
function r3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -59990,26 +60818,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) {
- ESe(e, t, n[t]);
+ _Ce(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 ESe(e, t, n) {
- return (t = DSe(t)) in e ? Object.defineProperty(e, t, {
+function _Ce(e, t, n) {
+ return (t = vCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DSe(e) {
- var t = OSe(e, "string");
+function vCe(e) {
+ var t = yCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OSe(e, t) {
+function yCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60032,29 +60860,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 = ez(xSe ||= o3([
+ var a = n - r, o = Sz(fCe ||= o3([
"M ",
",",
""
]), e, t);
- return o += ez(SSe ||= o3([
+ return o += Sz(pCe ||= o3([
"L ",
",",
""
- ]), e + n, t), o += ez(CSe ||= o3([
+ ]), e + n, t), o += Sz(mCe ||= o3([
"L ",
",",
""
- ]), e + n - a / 2, t + i), o += ez(wSe ||= o3([
+ ]), e + n - a / 2, t + i), o += Sz(hCe ||= o3([
"L ",
",",
""
- ]), e + n - a / 2 - r, t + i), o += ez(TSe ||= o3([
+ ]), e + n - a / 2 - r, t + i), o += Sz(gCe ||= o3([
"L ",
",",
" Z"
]), e, t), o;
-}, kSe = {
+}, bCe = {
x: 0,
y: 0,
upperWidth: 0,
@@ -60064,8 +60892,8 @@ var s3 = (e, t, n, r, i) => {
animationBegin: 0,
animationDuration: 1500,
animationEasing: "ease"
-}, ASe = (e) => {
- var t = Cz(e, kSe), { 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 = uJ(e, "trapezoid-");
+}, 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-");
if ((0, I.useEffect)(() => {
if (f.current && f.current.getTotalLength) try {
var e = f.current.getTotalLength();
@@ -60073,12 +60901,12 @@ var s3 = (e, t, n, r, i) => {
} 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({}, YL(t), {
+ if (!d) return /*#__PURE__*/ I.createElement("g", null, /*#__PURE__*/ I.createElement("path", a3({}, _R(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 = jq(["strokeDasharray"], l, c);
- return /*#__PURE__*/ I.createElement(lJ, {
+ 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, {
animationId: b,
key: b,
canBegin: p > 0,
@@ -60087,35 +60915,35 @@ var s3 = (e, t, n, r, i) => {
isActive: d,
begin: u
}, (e) => {
- var s = cz(S, i, e), c = cz(C, a, e), l = cz(w, o, e), u = cz(T, n, e), d = cz(E, r, 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);
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({}, YL(t), {
+ return /*#__PURE__*/ I.createElement("path", a3({}, _R(t), {
className: x,
d: s3(u, d, s, c, l),
ref: f,
style: i3(i3({}, p), t.style)
}));
});
-}, jSe = [
+}, SCe = [
"option",
"shapeType",
"activeClassName",
"inActiveClassName"
];
-function MSe(e, t) {
+function CCe(e, t) {
if (e == null) return {};
- var n, r, i = NSe(e, t);
+ var n, r, i = wCe(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 NSe(e, t) {
+function wCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60138,26 +60966,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) {
- PSe(e, t, n[t]);
+ TCe(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 PSe(e, t, n) {
- return (t = FSe(t)) in e ? Object.defineProperty(e, t, {
+function TCe(e, t, n) {
+ return (t = ECe(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 ECe(e) {
+ var t = DCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function ISe(e, t) {
+function DCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60167,34 +60995,34 @@ function ISe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function LSe(e, t) {
+function OCe(e, t) {
return l3(l3({}, t), e);
}
-function RSe(e, t) {
+function kCe(e, t) {
return e === "symbols";
}
function u3(e) {
var { shapeType: t, elementProps: n } = e;
switch (t) {
- case "rectangle": return /*#__PURE__*/ I.createElement(PJ, n);
- case "trapezoid": return /*#__PURE__*/ I.createElement(ASe, n);
+ case "rectangle": return /*#__PURE__*/ I.createElement(eY, n);
+ case "trapezoid": return /*#__PURE__*/ I.createElement(xCe, n);
case "sector": return /*#__PURE__*/ I.createElement(dY, n);
case "symbols":
- if (RSe(t, n)) return /*#__PURE__*/ I.createElement(vz, n);
+ if (kCe(t, n)) return /*#__PURE__*/ I.createElement(Bz, n);
break;
- case "curve": return /*#__PURE__*/ I.createElement(fq, n);
+ case "curve": return /*#__PURE__*/ I.createElement(Rq, n);
default: return null;
}
}
-function zSe(e) {
+function ACe(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 = MSe(e, jSe), o;
- if (/*#__PURE__*/ (0, I.isValidElement)(t)) o = /*#__PURE__*/ (0, I.cloneElement)(t, l3(l3({}, a), zSe(t)));
+ 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)));
else if (typeof t == "function") o = t(a, a.index);
- else if (bSe(t) && typeof t != "boolean") {
- var s = LSe(t, a);
+ else if (dCe(t) && typeof t != "boolean") {
+ var s = OCe(t, a);
o = /*#__PURE__*/ I.createElement(u3, {
shapeType: n,
elementProps: s
@@ -60206,12 +61034,12 @@ function d3(e) {
elementProps: c
});
}
- return a.isActive ? /*#__PURE__*/ I.createElement($L, { className: r }, o) : /*#__PURE__*/ I.createElement($L, { className: i }, o);
+ return a.isActive ? /*#__PURE__*/ I.createElement(xR, { className: r }, o) : /*#__PURE__*/ I.createElement(xR, { className: i }, o);
}
//#endregion
//#region node_modules/recharts/es6/context/tooltipContext.js
var f3 = (e, t, n) => {
- var r = Xz();
+ var r = vB();
return (i, a) => (o) => {
e?.(i, a, o), r(n0({
activeIndex: String(a),
@@ -60221,14 +61049,14 @@ var f3 = (e, t, n) => {
}));
};
}, p3 = (e) => {
- var t = Xz();
+ var t = vB();
return (n, r) => (i) => {
- e?.(n, r, i), t(wve());
+ e?.(n, r, i), t(hye());
};
}, m3 = (e, t, n) => {
- var r = Xz();
+ var r = vB();
return (i, a) => (o) => {
- e?.(i, a, o), r(Tve({
+ e?.(i, a, o), r(gye({
activeIndex: String(a),
activeDataKey: t,
activeCoordinate: i.tooltipPosition,
@@ -60239,9 +61067,9 @@ var f3 = (e, t, n) => {
//#endregion
//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js
function h3(e) {
- var { tooltipEntrySettings: t } = e, n = Xz(), r = QU(), i = (0, I.useRef)(null);
+ var { tooltipEntrySettings: t } = e, n = vB(), r = wW(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(bve(t)) : i.current !== t && n(xve({
+ r || (i.current === null ? n(dye(t)) : i.current !== t && n(fye({
prev: i.current,
next: t
})), i.current = t);
@@ -60250,15 +61078,15 @@ function h3(e) {
n,
r
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(Sve(i.current)), null);
+ i.current &&= (n(pye(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/state/SetLegendPayload.js
function g3(e) {
- var { legendPayload: t } = e, n = Xz(), r = QU(), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = vB(), r = wW(), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- r || (i.current === null ? n(RG(t)) : i.current !== t && n(zG({
+ r || (i.current === null ? n(uK(t)) : i.current !== t && n(dK({
prev: i.current,
next: t
})), i.current = t);
@@ -60267,13 +61095,13 @@ function g3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(BG(i.current)), null);
+ i.current &&= (n(fK(i.current)), null);
}, [n]), null;
}
function _3(e) {
- var { legendPayload: t } = e, n = Xz(), r = Q(MW), i = (0, I.useRef)(null);
+ var { legendPayload: t } = e, n = vB(), r = Q(iG), i = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- (r === "centric" || r === "radial") && (i.current === null ? n(RG(t)) : i.current !== t && n(zG({
+ (r === "centric" || r === "radial") && (i.current === null ? n(uK(t)) : i.current !== t && n(dK({
prev: i.current,
next: t
})), i.current = t);
@@ -60282,27 +61110,27 @@ function _3(e) {
r,
t
]), (0, I.useLayoutEffect)(() => () => {
- i.current &&= (n(BG(i.current)), null);
+ i.current &&= (n(fK(i.current)), null);
}, [n]), null;
}
//#endregion
//#region node_modules/recharts/es6/util/useId.js
-var BSe = I.useId ?? (() => {
- var [e] = I.useState(() => az("uid-"));
+var jCe = I.useId ?? (() => {
+ var [e] = I.useState(() => Dz("uid-"));
return e;
});
//#endregion
//#region node_modules/recharts/es6/util/useUniqueId.js
-function VSe(e, t) {
- var n = BSe();
+function MCe(e, t) {
+ var n = jCe();
return t || (e ? `${e}-${n}` : n);
}
//#endregion
//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js
-var HSe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {
- var { id: t, type: n, children: r } = e, i = VSe(`recharts-${n}`, t);
- return /*#__PURE__*/ I.createElement(HSe.Provider, { value: i }, r(i));
-}, y3 = sH({
+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({
name: "graphicalItems",
initialState: {
cartesianItems: [],
@@ -60311,79 +61139,79 @@ var HSe = /*#__PURE__*/ (0, I.createContext)(void 0), v3 = (e) => {
reducers: {
addCartesianGraphicalItem: {
reducer(e, t) {
- e.cartesianItems.push(PG(t.payload));
+ e.cartesianItems.push(oK(t.payload));
},
- prepare: KV()
+ prepare: vH()
},
replaceCartesianGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MV(e).cartesianItems.indexOf(PG(n));
- i > -1 && (e.cartesianItems[i] = PG(r));
+ var { prev: n, next: r } = t.payload, i = iH(e).cartesianItems.indexOf(oK(n));
+ i > -1 && (e.cartesianItems[i] = oK(r));
},
- prepare: KV()
+ prepare: vH()
},
removeCartesianGraphicalItem: {
reducer(e, t) {
- var n = MV(e).cartesianItems.indexOf(PG(t.payload));
+ var n = iH(e).cartesianItems.indexOf(oK(t.payload));
n > -1 && e.cartesianItems.splice(n, 1);
},
- prepare: KV()
+ prepare: vH()
},
addPolarGraphicalItem: {
reducer(e, t) {
- e.polarItems.push(PG(t.payload));
+ e.polarItems.push(oK(t.payload));
},
- prepare: KV()
+ prepare: vH()
},
removePolarGraphicalItem: {
reducer(e, t) {
- var n = MV(e).polarItems.indexOf(PG(t.payload));
+ var n = iH(e).polarItems.indexOf(oK(t.payload));
n > -1 && e.polarItems.splice(n, 1);
},
- prepare: KV()
+ prepare: vH()
},
replacePolarGraphicalItem: {
reducer(e, t) {
- var { prev: n, next: r } = t.payload, i = MV(e).polarItems.indexOf(PG(n));
- i > -1 && (e.polarItems[i] = PG(r));
+ var { prev: n, next: r } = t.payload, i = iH(e).polarItems.indexOf(oK(n));
+ i > -1 && (e.polarItems[i] = oK(r));
},
- prepare: KV()
+ prepare: vH()
}
}
-}), { addCartesianGraphicalItem: USe, replaceCartesianGraphicalItem: WSe, removeCartesianGraphicalItem: GSe, addPolarGraphicalItem: KSe, removePolarGraphicalItem: qSe, replacePolarGraphicalItem: JSe } = y3.actions, YSe = y3.reducer, b3 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = Xz(), n = (0, I.useRef)(null);
+}), { 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);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(USe(e)) : n.current !== e && t(WSe({
+ n.current === null ? t(PCe(e)) : n.current !== e && t(FCe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(GSe(n.current)), null);
+ n.current &&= (t(ICe(n.current)), null);
}, [t]), null;
}), x3 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = Xz(), n = (0, I.useRef)(null);
+ var t = vB(), n = (0, I.useRef)(null);
return (0, I.useLayoutEffect)(() => {
- n.current === null ? t(KSe(e)) : n.current !== e && t(JSe({
+ n.current === null ? t(LCe(e)) : n.current !== e && t(zCe({
prev: n.current,
next: e
})), n.current = e;
}, [t, e]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(qSe(n.current)), null);
+ n.current &&= (t(RCe(n.current)), null);
}, [t]), null;
});
//#endregion
//#region node_modules/es-toolkit/dist/array/last.mjs
-function XSe(e) {
+function VCe(e) {
return e[e.length - 1];
}
//#endregion
//#region node_modules/es-toolkit/dist/compat/array/last.mjs
-function ZSe(e) {
- if (!(!kz(e) || e.length === 0)) return XSe(L4(e));
+function HCe(e) {
+ if (!(!Zz(e) || e.length === 0)) return VCe(L4(e));
}
//#endregion
//#region node_modules/recharts/es6/component/Dots.js
-var QSe = ["points"];
+var UCe = ["points"];
function S3(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -60398,26 +61226,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) {
- $Se(e, t, n[t]);
+ WCe(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 $Se(e, t, n) {
- return (t = eCe(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 eCe(e) {
- var t = tCe(e, "string");
+function GCe(e) {
+ var t = KCe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tCe(e, t) {
+function KCe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60436,16 +61264,16 @@ function w3() {
return e;
}, w3.apply(null, arguments);
}
-function nCe(e, t) {
+function qCe(e, t) {
if (e == null) return {};
- var n, r, i = rCe(e, t);
+ var n, r, i = JCe(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 rCe(e, t) {
+function JCe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60454,20 +61282,20 @@ function rCe(e, t) {
}
return n;
}
-function iCe(e) {
+function YCe(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 = nCe(a, QSe);
+ var i = Jm(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = qCe(a, UCe);
return /*#__PURE__*/ I.createElement(v4, w3({}, s, { className: i }));
}
-function aCe(e, t) {
+function XCe(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 (!aCe(t, n)) return null;
- var u = n3(n), d = pfe(n), f = t.map((e, r) => {
+ if (!XCe(t, n)) return null;
+ var u = n3(n), d = Ife(n), f = t.map((e, r) => {
var s = C3(C3(C3({ r: 3 }, o), d), {}, {
index: r,
cx: e.x ?? void 0,
@@ -60477,14 +61305,14 @@ function T3(e) {
payload: e.payload,
points: t
});
- return /*#__PURE__*/ I.createElement(iCe, {
+ return /*#__PURE__*/ I.createElement(YCe, {
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($L, 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(xR, w3({ className: r }, p), f));
}
//#endregion
//#region node_modules/recharts/es6/state/cartesianAxisSlice.js
@@ -60502,26 +61330,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) {
- oCe(e, t, n[t]);
+ ZCe(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 oCe(e, t, n) {
- return (t = sCe(t)) in e ? Object.defineProperty(e, t, {
+function ZCe(e, t, n) {
+ return (t = QCe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function sCe(e) {
- var t = cCe(e, "string");
+function QCe(e) {
+ var t = $Ce(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function cCe(e, t) {
+function $Ce(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60531,7 +61359,7 @@ function cCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var O3 = sH({
+var O3 = NH({
name: "cartesianAxis",
initialState: {
xAxis: {},
@@ -60541,60 +61369,60 @@ var O3 = sH({
reducers: {
addXAxis: {
reducer(e, t) {
- e.xAxis[t.payload.id] = PG(t.payload);
+ e.xAxis[t.payload.id] = oK(t.payload);
},
- prepare: KV()
+ prepare: vH()
},
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] = PG(r));
+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = oK(r));
},
- prepare: KV()
+ prepare: vH()
},
removeXAxis: {
reducer(e, t) {
delete e.xAxis[t.payload.id];
},
- prepare: KV()
+ prepare: vH()
},
addYAxis: {
reducer(e, t) {
- e.yAxis[t.payload.id] = PG(t.payload);
+ e.yAxis[t.payload.id] = oK(t.payload);
},
- prepare: KV()
+ prepare: vH()
},
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] = PG(r));
+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = oK(r));
},
- prepare: KV()
+ prepare: vH()
},
removeYAxis: {
reducer(e, t) {
delete e.yAxis[t.payload.id];
},
- prepare: KV()
+ prepare: vH()
},
addZAxis: {
reducer(e, t) {
- e.zAxis[t.payload.id] = PG(t.payload);
+ e.zAxis[t.payload.id] = oK(t.payload);
},
- prepare: KV()
+ prepare: vH()
},
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] = PG(r));
+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = oK(r));
},
- prepare: KV()
+ prepare: vH()
},
removeZAxis: {
reducer(e, t) {
delete e.zAxis[t.payload.id];
},
- prepare: KV()
+ prepare: vH()
},
updateYAxisWidth(e, t) {
var { id: n, width: r } = t.payload, i = e.yAxis[n];
@@ -60609,15 +61437,15 @@ var O3 = sH({
}
}
}
-}), { addXAxis: lCe, replaceXAxis: uCe, removeXAxis: dCe, addYAxis: fCe, replaceYAxis: pCe, removeYAxis: mCe, addZAxis: hCe, replaceZAxis: gCe, removeZAxis: _Ce, updateYAxisWidth: vCe } = O3.actions, yCe = O3.reducer, bCe = $([
- $([JU], (e) => ({
+}), { 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) => ({
top: e.top,
bottom: e.bottom,
left: e.left,
right: e.right
})),
- jU,
- MU
+ rW,
+ iW
], (e, t, n) => {
if (!(!e || t == null || n == null)) return {
x: e.left,
@@ -60625,7 +61453,7 @@ var O3 = sH({
width: Math.max(0, t - e.left - e.right),
height: Math.max(0, n - e.top - e.bottom)
};
-}), k3 = () => Q(bCe), xCe = () => Q(eye);
+}), k3 = () => Q(dwe), fwe = () => Q(Gye);
//#endregion
//#region node_modules/recharts/es6/component/ActivePoints.js
function A3(e, t) {
@@ -60642,26 +61470,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) {
- SCe(e, t, n[t]);
+ pwe(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 SCe(e, t, n) {
- return (t = CCe(t)) in e ? Object.defineProperty(e, t, {
+function pwe(e, t, n) {
+ return (t = mwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function CCe(e) {
- var t = wCe(e, "string");
+function mwe(e) {
+ var t = hwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function wCe(e, t) {
+function hwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60671,7 +61499,7 @@ function wCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var TCe = (e) => {
+var gwe = (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({}, {
@@ -60685,17 +61513,17 @@ var TCe = (e) => {
stroke: "#fff",
payload: t.payload,
value: t.value
- }), JL(i)), bz(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($L, {
+ }), 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, {
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 = xCe();
+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = BY.activeDot } = e, s = Q(P0), c = fwe();
if (t == null || c == null) return null;
var l = t.find((e) => c.includes(e.payload));
- return uz(l) ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: o }, /*#__PURE__*/ I.createElement(TCe, {
+ return Mz(l) ? null : /*#__PURE__*/ I.createElement(t2, { zIndex: o }, /*#__PURE__*/ I.createElement(gwe, {
point: l,
childIndex: Number(s),
mainColor: n,
@@ -60720,26 +61548,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) {
- ECe(e, t, n[t]);
+ _we(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 ECe(e, t, n) {
- return (t = DCe(t)) in e ? Object.defineProperty(e, t, {
+function _we(e, t, n) {
+ return (t = vwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DCe(e) {
- var t = OCe(e, "string");
+function vwe(e) {
+ var t = ywe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OCe(e, t) {
+function ywe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60749,13 +61577,13 @@ function OCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var F3 = (e, t) => O4(e, "radiusAxis", t), kCe = $([F3], (e) => {
+var F3 = (e, t) => O4(e, "radiusAxis", t), bwe = $([F3], (e) => {
if (e != null) return { scale: e };
-}), ACe = $([XY, F3], (e, t) => {
+}), xwe = $([XY, F3], (e, t) => {
if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
-}), jCe = (e, t, n, r) => A4(e, "radiusAxis", t, r), I3 = (e, t, n) => YY(e, n), L3 = (e, t, n) => O4(e, "angleAxis", n), MCe = $([I3, L3], (e, 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) => {
if (e != null && t != null) return P3(P3({}, e), {}, { scale: t });
-}), NCe = (e, t, n, r) => A4(e, "angleAxis", n, r), PCe = $([
+}), wwe = (e, t, n, r) => A4(e, "angleAxis", n, r), Twe = $([
I3,
L3,
rX
@@ -60767,30 +61595,30 @@ var F3 = (e, t) => O4(e, "radiusAxis", t), kCe = $([F3], (e) => {
cx: n.cx,
cy: n.cy
};
-}), FCe = (e, t, n, r, i) => i, ICe = $([
- MW,
- ACe,
- jCe,
- MCe,
- NCe
-], (e, t, n, r, i) => dU(e, "radiusAxis") ? EU(t, n, !1) : EU(r, i, !1)), LCe = $([
- kCe,
- PCe,
+}), 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,
hY,
- $([y4, FCe], (e, t) => {
+ $([y4, Ewe], (e, t) => {
if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;
}),
- ICe
+ Dwe
], (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 qCe({
+ if (e != null && t != null && a != null && i != null && r != null) return Rwe({
radiusAxis: e,
angleAxis: t,
displayedData: a.slice(o, s + 1),
dataKey: r,
bandSize: i
});
-}), RCe = ["id"];
+}), kwe = ["id"];
function R3() {
return R3 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -60814,26 +61642,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) {
- zCe(e, t, n[t]);
+ Awe(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 zCe(e, t, n) {
- return (t = BCe(t)) in e ? Object.defineProperty(e, t, {
+function Awe(e, t, n) {
+ return (t = jwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function BCe(e) {
- var t = VCe(e, "string");
+function jwe(e) {
+ var t = Mwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function VCe(e, t) {
+function Mwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -60843,16 +61671,16 @@ function VCe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function HCe(e, t) {
+function Nwe(e, t) {
if (e == null) return {};
- var n, r, i = UCe(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 UCe(e, t) {
+function Pwe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -60864,27 +61692,27 @@ function UCe(e, t) {
function V3(e, t) {
return e && e !== "none" ? e : t;
}
-var WCe = (e) => {
+var Fwe = (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: OU(n, t),
+ value: eW(n, t),
payload: e
}];
-}, GCe = /*#__PURE__*/ I.memo((e) => {
+}, Iwe = /*#__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: pz,
+ getPosition: Fz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
nameKey: void 0,
dataKey: t,
- name: OU(a, t),
+ name: eW(a, t),
hide: o,
type: s,
color: V3(n, i),
@@ -60894,8 +61722,8 @@ var WCe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: l });
});
-function KCe(e) {
- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = qL(HCe(n, RCe));
+function Lwe(e) {
+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = hR(Nwe(n, kwe));
return /*#__PURE__*/ I.createElement(T3, {
points: t,
dot: r,
@@ -60905,11 +61733,11 @@ function KCe(e) {
baseProps: o
});
}
-function qCe(e) {
+function Rwe(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 = lU(e, n.dataKey, r), d = lU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? ZSe(d) : d, m = uz(p) ? 0 : t.scale.map(p) ?? 0;
- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, UJ(o, s, m, f)), {}, {
+ 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;
+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(B3(B3({}, aY(o, s, m, f)), {}, {
name: a,
value: d,
cx: o,
@@ -60922,8 +61750,8 @@ function qCe(e) {
var d = [];
return c && l.forEach((e) => {
if (Array.isArray(e.value)) {
- var n = e.value[0], r = uz(n) ? 0 : t.scale.map(n) ?? 0;
- d.push(B3(B3({}, e), {}, { radius: r }, UJ(o, s, r, e.angle)));
+ var n = e.value[0], r = Mz(n) ? 0 : t.scale.map(n) ?? 0;
+ d.push(B3(B3({}, e), {}, { radius: r }, aY(o, s, r, e.angle)));
} else d.push(e);
}), {
points: l,
@@ -60931,7 +61759,7 @@ function qCe(e) {
baseLinePoints: d
};
}
-function JCe(e) {
+function zwe(e) {
var { showLabels: t, points: n, children: r } = e, i = n.map((e) => {
var t = {
x: e.x,
@@ -60951,10 +61779,10 @@ function JCe(e) {
});
return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, r);
}
-function YCe(e) {
+function Bwe(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({}, YL(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({}, _R(r), {
onMouseEnter: (e) => {
var { onMouseEnter: t } = r;
t && t(r, e);
@@ -60967,7 +61795,7 @@ function YCe(e) {
baseLinePoints: a ? n : void 0,
connectNulls: o
}));
- return /*#__PURE__*/ I.createElement($L, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(KCe, {
+ return /*#__PURE__*/ I.createElement(xR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ I.createElement(Lwe, {
props: r,
points: t
}));
@@ -60975,23 +61803,23 @@ function YCe(e) {
var H3 = (e, t, n) => (r, i) => {
var a = e && e[Math.floor(i * t)];
return a ? B3(B3({}, r), {}, {
- x: cz(a.x, r.x, n),
- y: cz(a.y, r.y, n)
+ x: Az(a.x, r.x, n),
+ y: Az(a.y, r.y, n)
}) : B3(B3({}, r), {}, {
- x: cz(r.cx, r.x, n),
- y: cz(r.cy, r.y, n)
+ x: Az(r.cx, r.x, n),
+ y: Az(r.cy, r.y, n)
});
};
-function XCe(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 = uJ(t, "recharts-radar-"), [_, v] = (0, I.useState)(!1), y = !_, b = (0, I.useCallback)(() => {
+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)(() => {
typeof u == "function" && u(), v(!1);
}, [u]), x = (0, I.useCallback)(() => {
typeof d == "function" && d(), v(!0);
}, [d]);
- return /*#__PURE__*/ I.createElement(JCe, {
+ return /*#__PURE__*/ I.createElement(zwe, {
showLabels: y,
points: i
- }, /*#__PURE__*/ I.createElement(lJ, {
+ }, /*#__PURE__*/ I.createElement(FJ, {
animationId: g,
begin: s,
duration: c,
@@ -61002,22 +61830,22 @@ function XCe(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(YCe, {
+ return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ I.createElement(Bwe, {
points: o,
baseLinePoints: s,
props: t
});
}), /*#__PURE__*/ I.createElement(f4, { label: t.label }), t.children);
}
-function ZCe(e) {
+function Hwe(e) {
var t = (0, I.useRef)(void 0), n = (0, I.useRef)(void 0);
- return /*#__PURE__*/ I.createElement(XCe, {
+ return /*#__PURE__*/ I.createElement(Vwe, {
props: e,
previousPointsRef: t,
previousBaseLinePointsRef: n
});
}
-var QCe = {
+var Uwe = {
activeDot: !0,
angleAxisId: 0,
animationBegin: 0,
@@ -61031,27 +61859,27 @@ var QCe = {
radiusAxisId: 0,
zIndex: BY.area
};
-function $Ce(e) {
+function Wwe(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($L, { className: i }, /*#__PURE__*/ I.createElement(ZCe, e)), /*#__PURE__*/ I.createElement(M3, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement(xR, { className: i }, /*#__PURE__*/ I.createElement(Hwe, e)), /*#__PURE__*/ I.createElement(M3, {
points: r,
mainColor: V3(e.stroke, e.fill),
itemDataKey: e.dataKey,
activeDot: e.activeDot
}));
}
-function ewe(e) {
- var t = QU(), n = Q((n) => LCe(n, e.radiusAxisId, e.angleAxisId, t, e.id));
- return n?.points == null ? null : /*#__PURE__*/ I.createElement($Ce, R3({}, e, {
+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, {
points: n?.points,
baseLinePoints: n?.baseLinePoints,
isRange: n?.isRange
}));
}
function U3(e) {
- var t = Cz(e, QCe);
+ var t = Gz(e, Uwe);
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "radar"
@@ -61063,7 +61891,7 @@ function U3(e) {
hide: t.hide,
angleAxisId: t.angleAxisId,
radiusAxisId: t.radiusAxisId
- }), /*#__PURE__*/ I.createElement(_3, { legendPayload: WCe(t) }), /*#__PURE__*/ I.createElement(GCe, {
+ }), /*#__PURE__*/ I.createElement(_3, { legendPayload: Fwe(t) }), /*#__PURE__*/ I.createElement(Iwe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -61072,7 +61900,7 @@ function U3(e) {
hide: t.hide,
tooltipType: t.tooltipType,
id: e
- }), /*#__PURE__*/ I.createElement(ewe, R3({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(Gwe, R3({}, t, { id: e }))));
}
U3.displayName = "Radar";
//#endregion
@@ -61096,7 +61924,7 @@ function K3(e) {
//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js
var q3 = (e, t, n) => {
var r = n ?? e;
- if (!uz(r)) return oz(r, t, 0);
+ if (!Mz(r)) return Oz(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];
@@ -61131,26 +61959,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) {
- twe(e, t, n[t]);
+ Kwe(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 twe(e, t, n) {
- return (t = nwe(t)) in e ? Object.defineProperty(e, t, {
+function Kwe(e, t, n) {
+ return (t = qwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nwe(e) {
- var t = rwe(e, "string");
+function qwe(e) {
+ var t = Jwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rwe(e, t) {
+function Jwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61160,11 +61988,11 @@ function rwe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function iwe(e, t, n, r, i) {
+function Ywe(e, t, n, r, i) {
var a = r.length;
if (!(a < 1)) {
- var o = oz(e, n, 0, !0), s, c = [];
- if (nU(r[0]?.barSize)) {
+ var o = Oz(e, n, 0, !0), s, c = [];
+ if (OU(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 = {
@@ -61183,11 +62011,11 @@ function iwe(e, t, n, r, i) {
return f = n.position, r;
}, c);
} else {
- var p = oz(t, n, 0, !0);
+ var p = Oz(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 = nU(i) ? Math.min(m, i) : m;
+ var h = OU(i) ? Math.min(m, i) : m;
s = r.reduce((e, t, n) => [...e, {
stackId: t.stackId,
dataKeys: t.dataKeys,
@@ -61201,7 +62029,7 @@ function iwe(e, t, n, r, i) {
}
}
var Z3 = (e, t, n, r, i, a, o) => {
- var s = uz(o) ? t : o, c = iwe(n, r, i === a ? a : i, e, s);
+ var s = Mz(o) ? t : o, c = Ywe(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);
@@ -61237,26 +62065,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) {
- awe(e, t, n[t]);
+ Xwe(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 awe(e, t, n) {
- return (t = owe(t)) in e ? Object.defineProperty(e, t, {
+function Xwe(e, t, n) {
+ return (t = Zwe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function owe(e) {
- var t = swe(e, "string");
+function Zwe(e) {
+ var t = Qwe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function swe(e, t) {
+function Qwe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61268,30 +62096,30 @@ function swe(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) => bxe(e, "radiusAxis", t, !1), i6 = $([(e, t, n) => YY(e, n), (e, t, n) => O4(e, "angleAxis", n)], (e, 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) => {
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 = $([
- MW,
+ iG,
n6,
r6,
i6,
a6
-], (e, t, n, r, i) => dU(e, "radiusAxis") ? EU(t, n, !1) : EU(r, i, !1)), cwe = $([
+], (e, t, n, r, i) => LU(e, "radiusAxis") ? QU(t, n, !1) : QU(r, i, !1)), $we = $([
i6,
n6,
- MW
+ iG
], (e, t, n) => {
var r = n === "radial" ? e : t;
- if (r != null && r.scale != null) return bU({ numericAxis: r });
-}), lwe = (e, t, n, r, i) => i, uwe = (e, t, n, r, i) => n, dwe = (e, t, n, r, i) => t, c6 = (e, t, n, r, i) => r.maxBarSize, l6 = (e) => e.type === "radialBar", fwe = $([$([
+ 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 = $([$([
$([
$([
- MW,
+ iG,
y4,
- uwe,
- dwe
+ tTe,
+ nTe
], (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
@@ -61300,7 +62128,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
jY,
MY,
$([
- MW,
+ iG,
AY,
i6,
a6,
@@ -61308,8 +62136,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 = uz(o) ? t : o;
- return e === "centric" ? EU(n, r, !0) ?? s ?? 0 : EU(i, a, !0) ?? s ?? 0;
+ var s = Mz(o) ? t : o;
+ return e === "centric" ? QU(n, r, !0) ?? s ?? 0 : QU(i, a, !0) ?? s ?? 0;
}),
s6,
c6
@@ -61322,7 +62150,7 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
u6,
PY,
FY
-], i1), pwe = $([
+], i1), iTe = $([
i6,
a6,
n6,
@@ -61330,17 +62158,17 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
mY,
o6,
s6,
- MW,
- cwe,
+ iG,
+ $we,
rX,
- lwe,
- fwe,
- $([(e, t, n) => MW(e) === "centric" ? d6(e, "radiusAxis", t) : d6(e, "angleAxis", n), o6], Q3)
+ eTe,
+ rTe,
+ $([(e, t, n) => iG(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 Awe({
+ return xTe({
angleAxis: e,
angleAxisTicks: t,
bandSize: o,
@@ -61361,7 +62189,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
});
-}), mwe = $([hY, (e, t) => t], (e, t) => {
+}), aTe = $([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);
@@ -61375,20 +62203,20 @@ var n6 = $([(e, t) => XY(e, t), (e, t) => O4(e, "radiusAxis", t)], (e, t) => {
//#endregion
//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js
function f6(e, t) {
- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && nU(e.zIndex) ? e.zIndex : t;
+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && OU(e.zIndex) ? e.zIndex : t;
}
//#endregion
//#region node_modules/recharts/es6/polar/RadialBar.js
-var hwe = [
+var oTe = [
"shape",
"activeShape",
"cornerRadius",
"id"
-], gwe = [
+], sTe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
-], _we = ["value", "background"];
+], cTe = ["value", "background"];
function p6() {
return p6 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -61412,26 +62240,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) {
- vwe(e, t, n[t]);
+ lTe(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 vwe(e, t, n) {
- return (t = ywe(t)) in e ? Object.defineProperty(e, t, {
+function lTe(e, t, n) {
+ return (t = uTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function ywe(e) {
- var t = bwe(e, "string");
+function uTe(e) {
+ var t = dTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bwe(e, t) {
+function dTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61443,14 +62271,14 @@ function bwe(e, t) {
}
function g6(e, t) {
if (e == null) return {};
- var n, r, i = xwe(e, t);
+ var n, r, i = fTe(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 xwe(e, t) {
+function fTe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -61460,7 +62288,7 @@ function xwe(e, t) {
return n;
}
var _6 = [];
-function Swe(e) {
+function pTe(e) {
var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({
value: e.value,
payload: e.payload,
@@ -61477,15 +62305,15 @@ function Swe(e) {
},
fill: e.fill
}));
- return /*#__PURE__*/ I.createElement(cxe, { value: t ? i : void 0 }, r);
+ return /*#__PURE__*/ I.createElement($xe, { value: t ? i : void 0 }, r);
}
-function Cwe(e) {
- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = g6(n, hwe), l = qL(c), u = Q(P0), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = g6(n, gwe), h = f3(d, n.dataKey, s), g = p3(p), _ = m3(f, n.dataKey, s);
- return t == null ? null : /*#__PURE__*/ I.createElement(Swe, {
+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, {
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), xz(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), Uz(m, e, t)), {}, {
onMouseEnter: r,
onMouseLeave: s,
onClick: d,
@@ -61502,13 +62330,13 @@ function Cwe(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 wwe(e) {
- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = uJ(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, I.useState)(!1), m = (0, I.useCallback)(() => {
+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)(() => {
typeof c == "function" && c(), p(!1);
}, [c]), h = (0, I.useCallback)(() => {
typeof l == "function" && l(), p(!0);
}, [l]);
- return /*#__PURE__*/ I.createElement(lJ, {
+ return /*#__PURE__*/ I.createElement(FJ, {
animationId: u,
begin: a,
duration: o,
@@ -61521,34 +62349,34 @@ function wwe(e) {
var i = e === 1 ? r : (r ?? _6).map((t, n) => {
var r = d && d[n];
if (r) return h6(h6({}, t), {}, {
- startAngle: cz(r.startAngle, t.startAngle, e),
- endAngle: cz(r.endAngle, t.endAngle, e)
+ startAngle: Az(r.startAngle, t.startAngle, e),
+ endAngle: Az(r.endAngle, t.endAngle, e)
});
var { endAngle: i, startAngle: a } = t;
- return h6(h6({}, t), {}, { endAngle: cz(a, i, e) });
+ return h6(h6({}, t), {}, { endAngle: Az(a, i, e) });
});
- return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(Cwe, {
+ return e > 0 && (n.current = i ?? null), /*#__PURE__*/ I.createElement(mTe, {
sectors: i ?? _6,
allOtherRadialBarProps: t,
showLabels: !f
});
});
}
-function Twe(e) {
+function gTe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(wwe, {
+ return /*#__PURE__*/ I.createElement(hTe, {
props: e,
previousSectorsRef: t
});
}
-function Ewe(e) {
- var t = Q((t) => mwe(t, e.legendType));
+function _Te(e) {
+ var t = Q((t) => aTe(t, e.legendType));
return /*#__PURE__*/ I.createElement(_3, { legendPayload: t ?? [] });
}
-var Dwe = /*#__PURE__*/ I.memo((e) => {
+var vTe = /*#__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: pz,
+ getPosition: Fz,
settings: {
graphicalItemId: l,
stroke: r,
@@ -61556,7 +62384,7 @@ var Dwe = /*#__PURE__*/ I.memo((e) => {
fill: s,
nameKey: void 0,
dataKey: t,
- name: OU(a, t),
+ name: eW(a, t),
hide: o,
type: c,
color: s,
@@ -61564,14 +62392,14 @@ var Dwe = /*#__PURE__*/ I.memo((e) => {
}
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: u });
-}), Owe = class extends I.PureComponent {
+}), yTe = class extends I.PureComponent {
renderBackground(e) {
if (e == null) return null;
- var { cornerRadius: t } = this.props, n = JL(this.props.background);
+ var { cornerRadius: t } = this.props, n = gR(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, _we);
+ var { value: i, background: a } = e, o = g6(e, cTe);
if (!a) return null;
- var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), xz(this.props, e, r)), {}, {
+ var s = h6(h6(h6(h6(h6({ cornerRadius: G3(t) }, o), {}, { fill: "#eee" }, a), n), Uz(this.props, e, r)), {}, {
index: r,
className: Jm("recharts-radial-bar-background-sector", String(n?.className)),
option: a,
@@ -61584,17 +62412,17 @@ var Dwe = /*#__PURE__*/ I.memo((e) => {
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($L, { className: i }, r && /*#__PURE__*/ I.createElement($L, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ I.createElement($L, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ I.createElement(Twe, this.props))));
+ 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))));
}
};
-function kwe(e) {
+function bTe(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: _U(e.stackId),
+ stackId: UU(e.stackId),
maxBarSize: e.maxBarSize,
barSize: e.barSize,
type: "radialBar",
@@ -61609,8 +62437,8 @@ function kwe(e) {
e.barSize,
e.angleAxisId,
e.radiusAxisId
- ]), r = Q((r) => pwe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(Dwe, {
+ ]), r = Q((r) => iTe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? _6;
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(vTe, {
dataKey: e.dataKey,
sectors: r,
stroke: e.stroke,
@@ -61620,7 +62448,7 @@ function kwe(e) {
fill: e.fill,
tooltipType: e.tooltipType,
id: e.id
- }), /*#__PURE__*/ I.createElement(Owe, p6({}, e, { sectors: r })));
+ }), /*#__PURE__*/ I.createElement(yTe, p6({}, e, { sectors: r })));
}
var v6 = {
angleAxisId: 0,
@@ -61639,12 +62467,12 @@ var v6 = {
radiusAxisId: 0,
zIndex: BY.bar
};
-function Awe(e) {
+function xTe(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 = mU(n[r + t], i) : (b = lU(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 = yU({
+ 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({
axis: c,
ticks: l,
bandSize: u,
@@ -61655,7 +62483,7 @@ function Awe(e) {
S = x + d.size;
var E = w - C;
if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {
- var D = tz(E || p) * (Math.abs(p) - Math.abs(E));
+ var D = Cz(E || p) * (Math.abs(p) - Math.abs(E));
w += D;
}
T = { background: {
@@ -61667,7 +62495,7 @@ function Awe(e) {
endAngle: y
} };
}
- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = yU({
+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = GU({
axis: f,
ticks: g,
bandSize: u,
@@ -61678,7 +62506,7 @@ function Awe(e) {
w = C + d.size;
var O = S - x;
if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {
- var k = tz(O || p) * (Math.abs(p) - Math.abs(O));
+ var k = Cz(O || p) * (Math.abs(p) - Math.abs(O));
S += k;
}
}
@@ -61695,7 +62523,7 @@ function Awe(e) {
});
}
function y6(e) {
- var t = Cz(e, v6);
+ var t = Gz(e, v6);
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "radialBar"
@@ -61707,17 +62535,17 @@ function y6(e) {
hide: t.hide ?? v6.hide,
angleAxisId: t.angleAxisId ?? v6.angleAxisId,
radiusAxisId: t.radiusAxisId ?? v6.radiusAxisId,
- stackId: _U(t.stackId),
+ stackId: UU(t.stackId),
barSize: t.barSize,
minPointSize: t.minPointSize,
maxBarSize: t.maxBarSize
- }), /*#__PURE__*/ I.createElement(Ewe, t), /*#__PURE__*/ I.createElement(kwe, p6({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(_Te, t), /*#__PURE__*/ I.createElement(bTe, p6({}, t, { id: e }))));
}
y6.displayName = "RadialBar";
//#endregion
//#region node_modules/recharts/es6/context/chartDataContext.js
var b6 = (e) => {
- var { chartData: t } = e, n = Xz(), r = QU();
+ var { chartData: t } = e, n = vB(), r = wW();
return (0, I.useEffect)(() => r ? () => {} : (n(f2(t)), () => {
n(f2(void 0));
}), [
@@ -61736,13 +62564,13 @@ var b6 = (e) => {
bottom: 0,
left: 0
}
-}, S6 = sH({
+}, S6 = NH({
name: "brush",
initialState: x6,
reducers: { setBrushSettings(e, t) {
return t.payload == null ? x6 : t.payload;
} }
-}), { setBrushSettings: jwe } = S6.actions, Mwe = S6.reducer, Nwe = (e, t) => {
+}), { setBrushSettings: STe } = S6.actions, CTe = S6.reducer, wTe = (e, t) => {
var { x: n, y: r } = e, { x: i, y: a } = t;
return {
x: Math.min(n, i),
@@ -61750,9 +62578,9 @@ var b6 = (e) => {
width: Math.abs(i - n),
height: Math.abs(a - r)
};
-}, Pwe = (e) => {
+}, TTe = (e) => {
var { x1: t, y1: n, x2: r, y2: i } = e;
- return Nwe({
+ return wTe({
x: t,
y: n
}, {
@@ -61760,13 +62588,13 @@ var b6 = (e) => {
y: i
});
};
-function Fwe(e) {
+function ETe(e) {
return (e % 180 + 180) % 180;
}
-var Iwe = function(e) {
- var { width: t, height: n } = e, r = Fwe(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 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);
return Math.abs(a);
-}, C6 = sH({
+}, C6 = NH({
name: "referenceElements",
initialState: {
dots: [],
@@ -61778,26 +62606,26 @@ var Iwe = function(e) {
e.dots.push(t.payload);
},
removeDot: (e, t) => {
- var n = MV(e).dots.findIndex((e) => e === t.payload);
+ var n = iH(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 = MV(e).areas.findIndex((e) => e === t.payload);
+ var n = iH(e).areas.findIndex((e) => e === t.payload);
n !== -1 && e.areas.splice(n, 1);
},
addLine: (e, t) => {
- e.lines.push(PG(t.payload));
+ e.lines.push(oK(t.payload));
},
removeLine: (e, t) => {
- var n = MV(e).lines.findIndex((e) => e === t.payload);
+ var n = iH(e).lines.findIndex((e) => e === t.payload);
n !== -1 && e.lines.splice(n, 1);
}
}
-}), { addDot: Lwe, removeDot: Rwe, addArea: zwe, removeArea: Bwe, addLine: Vwe, removeLine: Hwe } = C6.actions, Uwe = C6.reducer, w6 = /*#__PURE__*/ (0, I.createContext)(void 0), Wwe = (e) => {
- var { children: t } = e, [n] = (0, I.useState)(`${az("recharts")}-clip`), r = k3();
+}), { 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();
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", {
@@ -61806,7 +62634,7 @@ var Iwe = function(e) {
height: s,
width: o
}))), t);
-}, Gwe = () => (0, I.useContext)(w6), Kwe = class {
+}, ITe = () => (0, I.useContext)(w6), LTe = class {
constructor(e) {
var { x: t, y: n } = e;
this.xAxisScale = t, this.yAxisScale = n;
@@ -61846,26 +62674,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) {
- qwe(e, t, n[t]);
+ RTe(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 qwe(e, t, n) {
- return (t = Jwe(t)) in e ? Object.defineProperty(e, t, {
+function RTe(e, t, n) {
+ return (t = zTe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function Jwe(e) {
- var t = Ywe(e, "string");
+function zTe(e) {
+ var t = BTe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function Ywe(e, t) {
+function BTe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -61884,18 +62712,18 @@ function D6() {
return e;
}, D6.apply(null, arguments);
}
-var Xwe = (e, t) => {
+var VTe = (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 (!nU(t.x1) || !nU(t.y1) || !nU(t.x2) || !nU(t.y2)) return null;
+ if (!OU(t.x1) || !OU(t.y1) || !OU(t.x2) || !OU(t.y2)) return null;
n = /*#__PURE__*/ I.createElement("line", D6({}, t, { className: "recharts-reference-line-line" }));
}
return n;
-}, Zwe = (e, t, n, r, i, a) => {
+}, HTe = (e, t, n, r, i, a) => {
var { x: o, width: s } = a, c = i.map(e, { position: n });
- if (!nU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!OU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: o + s,
y: c
@@ -61904,9 +62732,9 @@ var Xwe = (e, t) => {
y: c
}];
return r === "left" ? l.reverse() : l;
-}, Qwe = (e, t, n, r, i, a) => {
+}, UTe = (e, t, n, r, i, a) => {
var { y: o, height: s } = a, c = i.map(e, { position: n });
- if (!nU(c) || t === "discard" && !i.isInRange(c)) return null;
+ if (!OU(c) || t === "discard" && !i.isInRange(c)) return null;
var l = [{
x: c,
y: o + s
@@ -61915,7 +62743,7 @@ var Xwe = (e, t) => {
y: o
}];
return r === "top" ? l.reverse() : l;
-}, $we = (e, t, n, r) => {
+}, WTe = (e, t, n, r) => {
var i = [r.mapWithFallback(e[0], {
position: n,
fallback: "rangeMin"
@@ -61924,43 +62752,43 @@ var Xwe = (e, t) => {
fallback: "rangeMax"
})];
return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;
-}, eTe = (e, t, n, r, i, a, o) => {
- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = iz(s);
- return iz(c) ? Zwe(c, u, r, a, t, n) : d ? Qwe(s, u, r, i, e, n) : l != null && l.length === 2 ? $we(l, u, r, new Kwe({
+}, 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({
x: e,
y: t
})) : null;
};
-function tTe(e) {
- var t = Xz();
- return (0, I.useEffect)(() => (t(Vwe(e)), () => {
- t(Hwe(e));
+function KTe(e) {
+ var t = vB();
+ return (0, I.useEffect)(() => (t(MTe(e)), () => {
+ t(NTe(e));
})), null;
}
-function nTe(e) {
- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = QU(), s = Gwe(), 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 = EW();
+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();
if (!s || !f || c == null || l == null || u == null || d == null) return null;
- var p = eTe(u, d, f, e.position, c.orientation, l.orientation, e);
+ var p = GTe(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 }, YL(e)), {}, {
+ var { x: g, y: _ } = m, { x: v, y } = h, b = E6(E6({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, _R(e)), {}, {
x1: g,
y1: _,
x2: v,
y2: y
- }), x = Pwe({
+ }), x = TTe({
x1: g,
y1: _,
x2: v,
y2: y
});
- return /*#__PURE__*/ I.createElement(t2, { zIndex: e.zIndex }, /*#__PURE__*/ I.createElement($L, { className: Jm("recharts-reference-line", i) }, Xwe(r, b), /*#__PURE__*/ I.createElement(Z2, D6({}, x, {
+ 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, {
lowerWidth: x.width,
upperWidth: x.width
}), /*#__PURE__*/ I.createElement(a4, { label: e.label }), e.children)));
}
-var rTe = {
+var JTe = {
ifOverflow: "discard",
xAxisId: 0,
yAxisId: 0,
@@ -61973,15 +62801,15 @@ var rTe = {
zIndex: BY.line
};
function O6(e) {
- var t = Cz(e, rTe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(tTe, {
+ var t = Gz(e, JTe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(KTe, {
yAxisId: t.yAxisId,
xAxisId: t.xAxisId,
ifOverflow: t.ifOverflow,
x: t.x,
y: t.y,
segment: t.segment
- }), /*#__PURE__*/ I.createElement(nTe, t));
+ }), /*#__PURE__*/ I.createElement(qTe, t));
}
O6.displayName = "ReferenceLine";
//#endregion
@@ -61997,13 +62825,13 @@ function k6(e, t) {
}
//#endregion
//#region node_modules/recharts/es6/util/TickUtils.js
-function iTe(e, t, n) {
- return Iwe({
+function YTe(e, t, n) {
+ return DTe({
width: e.width + t.width,
height: e.height + t.height
}, n);
}
-function aTe(e, t, n) {
+function XTe(e, t, n) {
var r = n === "width", { x: i, y: a, width: o, height: s } = e;
return t === 1 ? {
start: r ? i : a,
@@ -62018,12 +62846,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 oTe(e, t) {
+function ZTe(e, t) {
return k6(e, t + 1);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.js
-function sTe(e, t, n, r, i) {
+function QTe(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) };
@@ -62032,7 +62860,7 @@ function sTe(e, t, n, r, i) {
}, f; l <= a.length;) if (f = d(), f) return f.v;
return [];
}
-function cTe(e, t, n, r, i) {
+function $Te(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++) {
@@ -62069,26 +62897,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) {
- lTe(e, t, n[t]);
+ eEe(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 lTe(e, t, n) {
- return (t = uTe(t)) in e ? Object.defineProperty(e, t, {
+function eEe(e, t, n) {
+ return (t = tEe(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 tEe(e) {
+ var t = nEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dTe(e, t) {
+function nEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62098,7 +62926,7 @@ function dTe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-function fTe(e, t, n, r, i) {
+function rEe(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;
@@ -62111,7 +62939,7 @@ function fTe(e, t, n, r, i) {
}, u = o - 1; u >= 0; u--) if (l(u)) continue;
return a;
}
-function pTe(e, t, n, r, i, a) {
+function iEe(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];
@@ -62135,7 +62963,7 @@ function pTe(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) || VK.isSsr) return oTe(i, Z(c) ? c : 0) ?? [];
+ if (Z(c) || pq.isSsr) return ZTe(i, Z(c) ? c : 0) ?? [];
var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? w2(u, {
fontSize: t,
letterSpacing: n
@@ -62144,19 +62972,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" ? iTe(w2(i, {
+ return p === "width" ? YTe(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 ? tz(_.coordinate - g.coordinate) : 1, y = aTe(a, v, p);
- return c === "equidistantPreserveStart" ? sTe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? cTe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? pTe(v, y, h, i, o, c === "preserveStartEnd") : fTe(v, y, h, i, o), f.filter((e) => e.isShow));
+ }, 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));
}
//#endregion
//#region node_modules/recharts/es6/util/YAxisUtils.js
-var mTe = (e) => {
+var aEe = (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) => {
@@ -62169,7 +62997,7 @@ var mTe = (e) => {
return Math.round(l);
}
return 0;
-}, P6 = sH({
+}, P6 = NH({
name: "renderedTicks",
initialState: {
xAxis: {},
@@ -62178,14 +63006,14 @@ var mTe = (e) => {
reducers: {
setRenderedTicks: (e, t) => {
var { axisType: n, axisId: r, ticks: i } = t.payload;
- e[n][r] = PG(i);
+ e[n][r] = oK(i);
},
removeRenderedTicks: (e, t) => {
var { axisType: n, axisId: r } = t.payload;
delete e[n][r];
}
}
-}), { setRenderedTicks: hTe, removeRenderedTicks: gTe } = P6.actions, _Te = P6.reducer, vTe = [
+}), { setRenderedTicks: oEe, removeRenderedTicks: sEe } = P6.actions, cEe = P6.reducer, lEe = [
"axisLine",
"width",
"height",
@@ -62195,16 +63023,16 @@ var mTe = (e) => {
"axisType",
"axisId"
];
-function yTe(e, t) {
+function uEe(e, t) {
if (e == null) return {};
- var n, r, i = bTe(e, t);
+ var n, r, i = dEe(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 bTe(e, t) {
+function dEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62236,26 +63064,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) {
- xTe(e, t, n[t]);
+ fEe(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 xTe(e, t, n) {
- return (t = STe(t)) in e ? Object.defineProperty(e, t, {
+function fEe(e, t, n) {
+ return (t = pEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function STe(e) {
- var t = CTe(e, "string");
+function pEe(e) {
+ var t = mEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function CTe(e, t) {
+function mEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62289,10 +63117,10 @@ var R6 = {
interval: "preserveEnd",
zIndex: BY.axis
};
-function wTe(e) {
+function hEe(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), qL(s)), {}, { fill: "none" });
+ var l = L6(L6(L6({}, c), hR(s)), {}, { fill: "none" });
if (a === "top" || a === "bottom") {
var u = +(a === "top" && !o || a === "bottom" && o);
l = L6(L6({}, l), {}, {
@@ -62310,9 +63138,9 @@ function wTe(e) {
y2: n + i
});
}
- return /*#__PURE__*/ I.createElement("line", F6({}, l, { className: Jm("recharts-cartesian-axis-line", QR(s, "className")) }));
+ return /*#__PURE__*/ I.createElement("line", F6({}, l, { className: Jm("recharts-cartesian-axis-line", bz(s, "className")) }));
}
-function TTe(e, t, n, r, i, a, o, s, c) {
+function gEe(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":
@@ -62339,14 +63167,14 @@ function TTe(e, t, n, r, i, a, o, s, c) {
}
};
}
-function ETe(e, t) {
+function _Ee(e, t) {
switch (e) {
case "left": return t ? "start" : "end";
case "right": return t ? "end" : "start";
default: return "middle";
}
}
-function DTe(e, t) {
+function vEe(e, t) {
switch (e) {
case "left":
case "right": return "middle";
@@ -62354,7 +63182,7 @@ function DTe(e, t) {
default: return t ? "end" : "start";
}
}
-function OTe(e) {
+function yEe(e) {
var { option: t, tickProps: n, value: r } = e, i, a = Jm(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 }));
@@ -62364,9 +63192,9 @@ function OTe(e) {
}
return i;
}
-function kTe(e) {
- var { ticks: t, axisType: n, axisId: r } = e, i = Xz();
- return (0, I.useEffect)(() => r == null || n == null ? pz : (i(hTe({
+function bEe(e) {
+ var { ticks: t, axisType: n, axisId: r } = e, i = vB();
+ return (0, I.useEffect)(() => r == null || n == null ? Fz : (i(oEe({
ticks: t.map((e) => ({
value: e.value,
coordinate: e.coordinate,
@@ -62376,7 +63204,7 @@ function kTe(e) {
axisId: r,
axisType: n
})), () => {
- i(gTe({
+ i(sEe({
axisId: r,
axisType: n
}));
@@ -62387,15 +63215,15 @@ function kTe(e) {
n
]), null;
}
-var ATe = /*#__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 = qL(b), E = JL(r), D = L2(T.textAnchor) ? T.textAnchor : ETe(u, d), O = DTe(u, d), k = {};
+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 = {};
typeof i == "object" && (k = i);
- var A = L6(L6({}, T), {}, { fill: "none" }, k), j = w.map((e) => L6({ entry: e }, TTe(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 }, gEe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {
var { entry: t, line: n } = e;
- return /*#__PURE__*/ I.createElement($L, {
+ return /*#__PURE__*/ I.createElement(xR, {
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", QR(i, "className")) })));
+ }, i && /*#__PURE__*/ I.createElement("line", F6({}, A, n, { className: Jm("recharts-cartesian-axis-tick-line", bz(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,
@@ -62408,16 +63236,16 @@ var ATe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
tickFormatter: o,
padding: c
}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);
- return /*#__PURE__*/ I.createElement($L, F6({
+ return /*#__PURE__*/ I.createElement(xR, F6({
className: "recharts-cartesian-axis-tick-label",
key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`
- }, xz(x, n, t)), r && /*#__PURE__*/ I.createElement(OTe, {
+ }, Uz(x, n, t)), r && /*#__PURE__*/ I.createElement(yEe, {
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(kTe, {
+ return /*#__PURE__*/ I.createElement("g", { className: `recharts-cartesian-axis-ticks recharts-${S}-ticks` }, /*#__PURE__*/ I.createElement(bEe, {
ticks: w,
axisId: C,
axisType: S
@@ -62425,9 +63253,9 @@ var ATe = /*#__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));
-}), jTe = /*#__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 = yTe(e, vTe), [d, f] = (0, I.useState)(""), [p, m] = (0, I.useState)(""), h = (0, I.useRef)(null);
- (0, I.useImperativeHandle)(t, () => ({ getCalculatedWidth: () => mTe({
+}), 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({
ticks: h.current,
label: e.labelRef?.current,
labelGapWithTick: 5,
@@ -62445,7 +63273,7 @@ var ATe = /*#__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($L, { className: Jm("recharts-cartesian-axis", a) }, /*#__PURE__*/ I.createElement(wTe, {
+ 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, {
x: e.x,
y: e.y,
width: r,
@@ -62453,8 +63281,8 @@ var ATe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
orientation: e.orientation,
mirror: e.mirror,
axisLine: n,
- otherSvgProps: qL(e)
- }), /*#__PURE__*/ I.createElement(ATe, {
+ otherSvgProps: hR(e)
+ }), /*#__PURE__*/ I.createElement(xEe, {
ref: g,
axisType: c,
events: u,
@@ -62490,19 +63318,19 @@ var ATe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
labelRef: e.labelRef
}), e.children)));
}), z6 = /*#__PURE__*/ I.forwardRef((e, t) => {
- var n = Cz(e, R6);
- return /*#__PURE__*/ I.createElement(jTe, F6({}, n, { ref: t }));
+ var n = Gz(e, R6);
+ return /*#__PURE__*/ I.createElement(SEe, F6({}, n, { ref: t }));
});
z6.displayName = "CartesianAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/CartesianGrid.js
-var MTe = [
+var CEe = [
"x1",
"y1",
"x2",
"y2",
"key"
-], NTe = ["offset"], PTe = ["xAxisId", "yAxisId"], FTe = ["xAxisId", "yAxisId"];
+], wEe = ["offset"], TEe = ["xAxisId", "yAxisId"], EEe = ["xAxisId", "yAxisId"];
function B6(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
@@ -62517,26 +63345,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) {
- ITe(e, t, n[t]);
+ DEe(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 ITe(e, t, n) {
- return (t = LTe(t)) in e ? Object.defineProperty(e, t, {
+function DEe(e, t, n) {
+ return (t = OEe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function LTe(e) {
- var t = RTe(e, "string");
+function OEe(e) {
+ var t = kEe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function RTe(e, t) {
+function kEe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62557,14 +63385,14 @@ function H6() {
}
function U6(e, t) {
if (e == null) return {};
- var n, r, i = zTe(e, t);
+ var n, r, i = AEe(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 zTe(e, t) {
+function AEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62573,7 +63401,7 @@ function zTe(e, t) {
}
return n;
}
-var BTe = (e) => {
+var jEe = (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;
@@ -62594,7 +63422,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 = qL(U6(n, MTe)) ?? {}, { offset: u } = l, d = U6(l, NTe);
+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = hR(U6(n, CEe)) ?? {}, { offset: u } = l, d = U6(l, wEe);
r = /*#__PURE__*/ I.createElement("line", H6({}, d, {
x1: i,
y1: a,
@@ -62606,10 +63434,10 @@ function W6(e) {
}
return r;
}
-function VTe(e) {
+function MEe(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, PTe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, TEe), c = i.map((e, i) => {
var a = V6(V6({}, s), {}, {
x1: t,
y1: e,
@@ -62626,10 +63454,10 @@ function VTe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, c);
}
-function HTe(e) {
+function NEe(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, FTe), c = i.map((e, i) => {
+ var { xAxisId: a, yAxisId: o } = e, s = U6(e, EEe), c = i.map((e, i) => {
var a = V6(V6({}, s), {}, {
x1: e,
y1: t,
@@ -62646,7 +63474,7 @@ function HTe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid-vertical" }, c);
}
-function UTe(e) {
+function PEe(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);
@@ -62669,7 +63497,7 @@ function UTe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, u);
}
-function WTe(e) {
+function FEe(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);
@@ -62692,10 +63520,10 @@ function WTe(e) {
});
return /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, u);
}
-var GTe = (e, t) => {
+var IEe = (e, t) => {
var { xAxis: n, width: r, height: i, offset: a } = e;
- return fU(N6(V6(V6(V6({}, R6), n), {}, {
- ticks: pU(n, !0),
+ return RU(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: zU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -62703,10 +63531,10 @@ var GTe = (e, t) => {
height: i
}
})), a.left, a.left + a.width, t);
-}, KTe = (e, t) => {
+}, LEe = (e, t) => {
var { yAxis: n, width: r, height: i, offset: a } = e;
- return fU(N6(V6(V6(V6({}, R6), n), {}, {
- ticks: pU(n, !0),
+ return RU(N6(V6(V6(V6({}, R6), n), {}, {
+ ticks: zU(n, !0),
viewBox: {
x: 0,
y: 0,
@@ -62714,7 +63542,7 @@ var GTe = (e, t) => {
height: i
}
})), a.top, a.top + a.height, t);
-}, qTe = {
+}, REe = {
horizontal: !0,
vertical: !0,
horizontalPoints: [],
@@ -62729,14 +63557,14 @@ var GTe = (e, t) => {
zIndex: BY.grid
};
function G6(e) {
- var t = kW(), n = AW(), r = OW(), i = V6(V6({}, Cz(e, qTe)), {}, {
+ var t = tG(), n = nG(), r = eG(), i = V6(V6({}, Gz(e, REe)), {}, {
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 = QU(), h = Q((e) => U1(e, "xAxis", a, m)), g = Q((e) => U1(e, "yAxis", o, m));
- if (!rU(l) || !rU(u) || !Z(s) || !Z(c)) return null;
- var _ = i.verticalCoordinatesGenerator || GTe, v = i.horizontalCoordinatesGenerator || KTe, { 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 = 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;
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,
@@ -62744,7 +63572,7 @@ function G6(e) {
height: n ?? u,
offset: r
}, x ? !0 : d);
- iW(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);
+ AW(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 = _({
@@ -62753,9 +63581,9 @@ function G6(e) {
height: n ?? u,
offset: r
}, C ? !0 : d);
- iW(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);
+ AW(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(BTe, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: i.zIndex }, /*#__PURE__*/ I.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ I.createElement(jEe, {
fill: i.fill,
fillOpacity: i.fillOpacity,
x: i.x,
@@ -62763,12 +63591,12 @@ function G6(e) {
width: i.width,
height: i.height,
ry: i.ry
- }), /*#__PURE__*/ I.createElement(UTe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(WTe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(VTe, H6({}, i, {
+ }), /*#__PURE__*/ I.createElement(PEe, H6({}, i, { horizontalPoints: y })), /*#__PURE__*/ I.createElement(FEe, H6({}, i, { verticalPoints: b })), /*#__PURE__*/ I.createElement(MEe, H6({}, i, {
offset: r,
horizontalPoints: y,
xAxis: h,
yAxis: g
- })), /*#__PURE__*/ I.createElement(HTe, H6({}, i, {
+ })), /*#__PURE__*/ I.createElement(NEe, H6({}, i, {
offset: r,
verticalPoints: b,
xAxis: h,
@@ -62778,7 +63606,7 @@ function G6(e) {
G6.displayName = "CartesianGrid";
//#endregion
//#region node_modules/recharts/es6/state/errorBarSlice.js
-var K6 = sH({
+var K6 = NH({
name: "errorBars",
initialState: {},
reducers: {
@@ -62795,17 +63623,17 @@ var K6 = sH({
e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));
}
}
-}), { addErrorBar: JTe, replaceErrorBar: YTe, removeErrorBar: XTe } = K6.actions, ZTe = K6.reducer, QTe = ["children"];
-function $Te(e, t) {
+}), { addErrorBar: zEe, replaceErrorBar: BEe, removeErrorBar: VEe } = K6.actions, HEe = K6.reducer, UEe = ["children"];
+function WEe(e, t) {
if (e == null) return {};
- var n, r, i = eEe(e, t);
+ var n, r, i = GEe(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 eEe(e, t) {
+function GEe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62814,7 +63642,7 @@ function eEe(e, t) {
}
return n;
}
-var tEe = /*#__PURE__*/ (0, I.createContext)({
+var KEe = /*#__PURE__*/ (0, I.createContext)({
data: [],
xAxisId: "xAxis-0",
yAxisId: "yAxis-0",
@@ -62826,8 +63654,8 @@ var tEe = /*#__PURE__*/ (0, I.createContext)({
errorBarOffset: 0
});
function q6(e) {
- var { children: t } = e, n = $Te(e, QTe);
- return /*#__PURE__*/ I.createElement(tEe.Provider, { value: n }, t);
+ var { children: t } = e, n = WEe(e, UEe);
+ return /*#__PURE__*/ I.createElement(KEe.Provider, { value: n }, t);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js
@@ -62852,30 +63680,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), nEe = $([
- MW,
+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,
X6,
Q6,
Z6,
$6
-], (e, t, n, r, i) => dU(e, "xAxis") ? EU(t, r, !1) : EU(n, i, !1)), rEe = (e, t, n, r, i) => i;
-function iEe(e) {
+], (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) {
return e.type === "line";
}
-var aEe = $([
- MW,
+var XEe = $([
+ iG,
X6,
Q6,
Z6,
$6,
- $([H$, rEe], (e, t) => e.filter(iEe).find((e) => e.id === t)),
- nEe,
+ $([H$, JEe], (e, t) => e.filter(YEe).find((e) => e.id === t)),
+ qEe,
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 TEe({
+ if (p != null) return gDe({
layout: e,
xAxis: t,
yAxis: n,
@@ -62890,7 +63718,7 @@ var aEe = $([
//#endregion
//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js
function e8(e) {
- var t = JL(e), n = 3, r = 2;
+ var t = gR(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), {
@@ -62905,13 +63733,13 @@ function e8(e) {
}
//#endregion
//#region node_modules/recharts/es6/cartesian/Line.js
-var oEe = ["id"], sEe = [
+var ZEe = ["id"], QEe = [
"type",
"layout",
"connectNulls",
"needClip",
"shape"
-], cEe = [
+], $Ee = [
"activeDot",
"animateNewValues",
"animationBegin",
@@ -62950,26 +63778,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) {
- lEe(e, t, n[t]);
+ eDe(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 lEe(e, t, n) {
- return (t = uEe(t)) in e ? Object.defineProperty(e, t, {
+function eDe(e, t, n) {
+ return (t = tDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function uEe(e) {
- var t = dEe(e, "string");
+function tDe(e) {
+ var t = nDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dEe(e, t) {
+function nDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -62981,14 +63809,14 @@ function dEe(e, t) {
}
function i8(e, t) {
if (e == null) return {};
- var n, r, i = fEe(e, t);
+ var n, r, i = rDe(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 fEe(e, t) {
+function rDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -62997,27 +63825,27 @@ function fEe(e, t) {
}
return n;
}
-var pEe = (e) => {
+var iDe = (e) => {
var { dataKey: t, name: n, stroke: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: OU(n, t),
+ value: eW(n, t),
payload: e
}];
-}, mEe = /*#__PURE__*/ I.memo((e) => {
+}, aDe = /*#__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: pz,
+ getPosition: Fz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: OU(o, t),
+ name: eW(o, t),
hide: s,
type: l,
color: r,
@@ -63027,11 +63855,11 @@ var pEe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: d });
}), a8 = (e, t) => `${t}px ${e}px`;
-function hEe(e, t) {
+function oDe(e, t) {
for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);
return r;
}
-var gEe = (e, t, n) => {
+var sDe = (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) {
@@ -63043,13 +63871,13 @@ var gEe = (e, t, n) => {
}
var d = o.length % 2 == 0 ? [0, t] : [t];
return [
- ...hEe(n, i),
+ ...oDe(n, i),
...o,
...d
].map((e) => `${e}px`).join(", ");
};
-function _Ee(e) {
- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = qL(i8(r, oEe));
+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));
return /*#__PURE__*/ I.createElement(T3, {
points: n,
dot: i,
@@ -63061,7 +63889,7 @@ function _Ee(e) {
clipPathId: t
});
}
-function vEe(e) {
+function lDe(e) {
var { showLabels: t, children: n, points: r } = e, i = (0, I.useMemo)(() => r?.map((e) => {
var t = {
x: e.x ?? 0,
@@ -63082,7 +63910,7 @@ function vEe(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({}, YL(i8(a, sEe))), {}, {
+ 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))), {}, {
fill: "none",
className: "recharts-line-curve",
clipPath: l ? `url(#clipPath-${t})` : void 0,
@@ -63095,31 +63923,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(_Ee, {
+ }, d, { pathRef: n })), /*#__PURE__*/ I.createElement(cDe, {
points: r,
clipPathId: t,
props: a
}));
}
-function yEe(e) {
+function uDe(e) {
try {
return e && e.getTotalLength && e.getTotalLength() || 0;
} catch {
return 0;
}
}
-function bEe(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 = uJ(o, "recharts-line-"), y = (0, I.useRef)(v), [b, x] = (0, I.useState)(!1), S = !b, C = (0, I.useCallback)(() => {
+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)(() => {
typeof h == "function" && h(), x(!1);
}, [h]), w = (0, I.useCallback)(() => {
typeof g == "function" && g(), x(!0);
- }, [g]), T = yEe(r.current), E = (0, I.useRef)(0);
+ }, [g]), T = uDe(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(vEe, {
+ return /*#__PURE__*/ I.createElement(lDe, {
points: o,
showLabels: S
- }, n.children, /*#__PURE__*/ I.createElement(lJ, {
+ }, n.children, /*#__PURE__*/ I.createElement(FJ, {
animationId: v,
begin: l,
duration: u,
@@ -63129,20 +63957,20 @@ function bEe(e) {
onAnimationStart: w,
key: v
}, (e) => {
- var l = cz(D, T + D, e), u = Math.min(l, T), d = c ? s ? gEe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : a8(T, u) : s == null ? void 0 : String(s);
+ 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);
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: cz(i.x, t.x, e),
- y: cz(i.y, t.y, e)
+ x: Az(i.x, t.x, e),
+ y: Az(i.y, t.y, e)
});
}
return f ? r8(r8({}, t), {}, {
- x: cz(p * 2, t.x, e),
- y: cz(m / 2, t.y, e)
+ x: Az(p * 2, t.x, e),
+ y: Az(m / 2, t.y, e)
}) : r8(r8({}, t), {}, {
x: t.x,
y: t.y
@@ -63165,9 +63993,9 @@ function bEe(e) {
});
}), /*#__PURE__*/ I.createElement(f4, { label: n.label }));
}
-function xEe(e) {
+function fDe(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(bEe, {
+ return /*#__PURE__*/ I.createElement(dDe, {
props: n,
clipPathId: t,
previousPointsRef: r,
@@ -63175,17 +64003,17 @@ function xEe(e) {
pathRef: a
});
}
-var SEe = (e, t) => ({
+var pDe = (e, t) => ({
x: e.x ?? void 0,
y: e.y ?? void 0,
value: e.value,
- errorVal: lU(e.payload, t)
-}), CEe = class extends I.Component {
+ errorVal: FU(e.payload, t)
+}), mDe = 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($L, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: f }, /*#__PURE__*/ I.createElement(xR, { className: p }, d && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {
clipPathId: m,
xAxisId: i,
yAxisId: a
@@ -63198,9 +64026,9 @@ var SEe = (e, t) => ({
xAxisId: i,
yAxisId: a,
data: n,
- dataPointFormatter: SEe,
+ dataPointFormatter: pDe,
errorBarOffset: 0
- }, /*#__PURE__*/ I.createElement(xEe, {
+ }, /*#__PURE__*/ I.createElement(fDe, {
props: this.props,
clipPathId: m
}))), /*#__PURE__*/ I.createElement(M3, {
@@ -63231,11 +64059,11 @@ var SEe = (e, t) => ({
zIndex: BY.line,
type: "linear"
};
-function wEe(e) {
- var t = Cz(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, cEe), { needClip: _ } = J6(p, m), v = k3(), y = NW(), b = QU(), x = Q((e) => aEe(e, p, m, b, h));
+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));
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(CEe, t8({}, g, {
+ return /*#__PURE__*/ I.createElement(mDe, t8({}, g, {
id: h,
connectNulls: s,
dot: c,
@@ -63259,23 +64087,23 @@ function wEe(e) {
needClip: _
}));
}
-function TEe(e) {
+function gDe(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 = lU(e, o);
+ var l = FU(e, o);
if (t === "horizontal") return {
- x: vU({
+ x: WU({
axis: n,
ticks: i,
bandSize: s,
entry: e,
index: c
}),
- y: (uz(l) ? null : r.scale.map(l)) ?? null,
+ y: (Mz(l) ? null : r.scale.map(l)) ?? null,
value: l,
payload: e
};
- var u = uz(l) ? null : n.scale.map(l), d = vU({
+ var u = Mz(l) ? null : n.scale.map(l), d = WU({
axis: r,
ticks: a,
bandSize: s,
@@ -63290,12 +64118,12 @@ function TEe(e) {
};
}).filter(Boolean);
}
-function EEe(e) {
- var t = Cz(e, s8), n = QU();
+function _De(e) {
+ var t = Gz(e, s8), n = wW();
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "line"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: pEe(t) }), /*#__PURE__*/ I.createElement(mEe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: iDe(t) }), /*#__PURE__*/ I.createElement(aDe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -63316,9 +64144,9 @@ function EEe(e) {
dataKey: t.dataKey,
hide: t.hide,
isPanorama: n
- }), /*#__PURE__*/ I.createElement(wEe, t8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(hDe, t8({}, t, { id: e }))));
}
-var c8 = /*#__PURE__*/ I.memo(EEe, oK);
+var c8 = /*#__PURE__*/ I.memo(_De, MK);
c8.displayName = "Line";
//#endregion
//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js
@@ -63330,19 +64158,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), DEe = $([
- MW,
+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,
d8,
p8,
f8,
m8
-], (e, t, n, r, i) => dU(e, "xAxis") ? EU(t, r, !1) : EU(n, i, !1)), h8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), g8 = (e) => dU(MW(e), "xAxis") ? "yAxis" : "xAxis", OEe = (e, t) => g8(e) === "yAxis" ? u8(e, t) : l8(e, t), kEe = $([
- MW,
+], (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,
d8,
p8,
f8,
m8,
- $([h8, (e, t, n) => a1(e, g8(e), OEe(e, t), n)], (e, t) => {
+ $([h8, (e, t, n) => a1(e, g8(e), yDe(e, t), n)], (e, t) => {
if (e != null && t != null) {
var { stackId: n } = e, r = oX(e);
if (n != null && r != null) {
@@ -63352,14 +64180,14 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxi
}
}),
_Y,
- DEe,
+ vDe,
h8,
- qme
+ Rhe
], (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 YEe({
+ if (m != null) return BDe({
layout: e,
xAxis: t,
yAxis: n,
@@ -63373,7 +64201,7 @@ var d8 = (e, t, n) => J1(e, "xAxis", l8(e, t), n), f8 = (e, t, n) => q1(e, "xAxi
bandSize: s
});
}
-}), AEe = ["id"], jEe = [
+}), xDe = ["id"], SDe = [
"activeDot",
"animationBegin",
"animationDuration",
@@ -63400,14 +64228,14 @@ function _8() {
}
function v8(e, t) {
if (e == null) return {};
- var n, r, i = MEe(e, t);
+ var n, r, i = CDe(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 MEe(e, t) {
+function CDe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63430,26 +64258,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) {
- NEe(e, t, n[t]);
+ wDe(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 NEe(e, t, n) {
- return (t = PEe(t)) in e ? Object.defineProperty(e, t, {
+function wDe(e, t, n) {
+ return (t = TDe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function PEe(e) {
- var t = FEe(e, "string");
+function TDe(e) {
+ var t = EDe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function FEe(e, t) {
+function EDe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -63462,27 +64290,27 @@ function FEe(e, t) {
function x8(e, t) {
return e && e !== "none" ? e : t;
}
-var IEe = (e) => {
+var DDe = (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: OU(n, t),
+ value: eW(n, t),
payload: e
}];
-}, LEe = /*#__PURE__*/ I.memo((e) => {
+}, ODe = /*#__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: pz,
+ getPosition: Fz,
settings: {
stroke: r,
strokeWidth: i,
fill: a,
dataKey: t,
nameKey: void 0,
- name: OU(o, t),
+ name: eW(o, t),
hide: s,
type: l,
color: x8(r, a),
@@ -63492,8 +64320,8 @@ var IEe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: d });
});
-function REe(e) {
- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = qL(r);
+function kDe(e) {
+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = hR(r);
return /*#__PURE__*/ I.createElement(T3, {
points: n,
dot: a,
@@ -63505,7 +64333,7 @@ function REe(e) {
clipPathId: t
});
}
-function zEe(e) {
+function ADe(e) {
var { showLabels: t, children: n, points: r } = e, i = r.map((e) => {
var t = {
x: e.x ?? 0,
@@ -63526,8 +64354,8 @@ function zEe(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, AEe), p = qL(f), m = YL(f);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, t?.length > 1 && /*#__PURE__*/ I.createElement($L, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ I.createElement(fq, _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, 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, {
id: d,
points: t,
connectNulls: l,
@@ -63536,29 +64364,29 @@ function S8(e) {
layout: o,
stroke: "none",
className: "recharts-area-area"
- })), c !== "none" && /*#__PURE__*/ I.createElement(fq, _8({}, p, {
+ })), c !== "none" && /*#__PURE__*/ I.createElement(Rq, _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(fq, _8({}, p, {
+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ I.createElement(Rq, _8({}, p, {
className: "recharts-area-curve",
layout: o,
type: s,
connectNulls: l,
fill: "none",
points: n
- }))), /*#__PURE__*/ I.createElement(REe, {
+ }))), /*#__PURE__*/ I.createElement(kDe, {
points: t,
props: f,
clipPathId: i
}));
}
-function BEe(e) {
+function jDe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;
- if (!nU(a) || !nU(o)) return null;
+ if (!OU(a) || !OU(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,
@@ -63567,9 +64395,9 @@ function BEe(e) {
height: Math.floor(s)
}) : null;
}
-function VEe(e) {
+function MDe(e) {
var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;
- if (!nU(a) || !nU(o)) return null;
+ if (!OU(a) || !OU(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,
@@ -63578,35 +64406,35 @@ function VEe(e) {
height: Math.floor(c + (i ? parseInt(`${i}`, 10) : 1))
}) : null;
}
-function HEe(e) {
+function NDe(e) {
var { alpha: t, layout: n, points: r, baseLine: i, strokeWidth: a } = e;
- return n === "vertical" ? /*#__PURE__*/ I.createElement(BEe, {
+ return n === "vertical" ? /*#__PURE__*/ I.createElement(jDe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
- }) : /*#__PURE__*/ I.createElement(VEe, {
+ }) : /*#__PURE__*/ I.createElement(MDe, {
alpha: t,
points: r,
baseLine: i,
strokeWidth: a
});
}
-function UEe(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 = uJ((0, I.useMemo)(() => ({
+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)(() => ({
points: o,
baseLine: s
- }), [o, s]), "recharts-area-"), h = PW(), [g, _] = (0, I.useState)(!1), v = !g, y = (0, I.useCallback)(() => {
+ }), [o, s]), "recharts-area-"), h = oG(), [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(zEe, {
+ return /*#__PURE__*/ I.createElement(ADe, {
showLabels: v,
points: o
- }, r.children, /*#__PURE__*/ I.createElement(lJ, {
+ }, r.children, /*#__PURE__*/ I.createElement(FJ, {
animationId: m,
begin: l,
duration: u,
@@ -63622,18 +64450,18 @@ function UEe(e) {
if (x[r]) {
var i = x[r];
return b8(b8({}, t), {}, {
- x: cz(i.x, t.x, e),
- y: cz(i.y, t.y, e)
+ x: Az(i.x, t.x, e),
+ y: Az(i.y, t.y, e)
});
}
return t;
- }), d = Z(s) ? cz(S, s, e) : uz(s) || nz(s) ? cz(S, 0, e) : s.map((t, n) => {
+ }), d = Z(s) ? Az(S, s, e) : Mz(s) || wz(s) ? Az(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: cz(i.x, t.x, e),
- y: cz(i.y, t.y, e)
+ x: Az(i.x, t.x, e),
+ y: Az(i.y, t.y, e)
});
}
return t;
@@ -63646,13 +64474,13 @@ function UEe(e) {
props: r
});
}
- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ I.createElement($L, null, c && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ I.createElement(HEe, {
+ 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, {
alpha: e,
points: o,
baseLine: s,
layout: h,
strokeWidth: r.strokeWidth
- }))), /*#__PURE__*/ I.createElement($L, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(S8, {
+ }))), /*#__PURE__*/ I.createElement(xR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ I.createElement(S8, {
points: o,
baseLine: s,
needClip: t,
@@ -63661,9 +64489,9 @@ function UEe(e) {
})));
}), /*#__PURE__*/ I.createElement(f4, { label: r.label }));
}
-function WEe(e) {
+function FDe(e) {
var { needClip: t, clipPathId: n, props: r } = e, i = (0, I.useRef)(null), a = (0, I.useRef)();
- return /*#__PURE__*/ I.createElement(UEe, {
+ return /*#__PURE__*/ I.createElement(PDe, {
needClip: t,
clipPathId: n,
props: r,
@@ -63671,12 +64499,12 @@ function WEe(e) {
previousBaselineRef: a
});
}
-var GEe = class extends I.PureComponent {
+var IDe = 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($L, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {
+ return /*#__PURE__*/ I.createElement(t2, { zIndex: p }, /*#__PURE__*/ I.createElement(xR, { className: m }, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {
clipPathId: h,
xAxisId: s,
yAxisId: c
@@ -63685,7 +64513,7 @@ var GEe = class extends I.PureComponent {
y: i - y / 2,
width: l + y,
height: u + y
- }))), /*#__PURE__*/ I.createElement(WEe, {
+ }))), /*#__PURE__*/ I.createElement(FDe, {
needClip: o,
clipPathId: h,
props: this.props
@@ -63703,7 +64531,7 @@ var GEe = class extends I.PureComponent {
clipPath: b
}));
}
-}, KEe = {
+}, LDe = {
activeDot: !0,
animationBegin: 0,
animationDuration: 1500,
@@ -63723,11 +64551,11 @@ var GEe = class extends I.PureComponent {
yAxisId: 0,
zIndex: BY.area
};
-function qEe(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, jEe), g = NW(), _ = U0(), { needClip: v } = J6(p, m), y = QU(), { points: b, isRange: x, baseLine: S } = Q((t) => kEe(t, e.id, y)) ?? {}, C = k3();
+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();
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(GEe, _8({}, h, {
+ return !b || !b.length ? null : /*#__PURE__*/ I.createElement(IDe, _8({}, h, {
activeDot: t,
animationBegin: n,
animationDuration: r,
@@ -63753,7 +64581,7 @@ function qEe(e) {
yAxisId: m
}));
}
-var JEe = (e, t, n, r, i) => {
+var zDe = (e, t, n, r, i) => {
var a = n ?? t;
if (Z(a)) return a;
var o = e === "horizontal" ? i : r, s = o.scale.domain();
@@ -63763,17 +64591,17 @@ var JEe = (e, t, n, r, i) => {
}
return a === "dataMin" ? s[0] : a === "dataMax" ? s[1] : s[0];
};
-function YEe(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 = JEe(a, o, n, s, c), g = a === "horizontal", _ = !1, v = l.map((e, n) => {
+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) => {
var a;
if (m) a = i[u + n];
else {
- var o = lU(e, r);
+ var o = FU(e, r);
Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];
}
- var l = a?.[1] ?? null, v = l == null || m && !t && lU(e, r) == null;
+ var l = a?.[1] ?? null, v = l == null || m && !t && FU(e, r) == null;
return g ? {
- x: vU({
+ x: WU({
axis: s,
ticks: d,
bandSize: p,
@@ -63785,7 +64613,7 @@ function YEe(e) {
payload: e
} : {
x: v ? null : s.scale.map(l) ?? null,
- y: vU({
+ y: WU({
axis: c,
ticks: f,
bandSize: p,
@@ -63813,12 +64641,12 @@ function YEe(e) {
isRange: _
};
}
-function XEe(e) {
- var t = Cz(e, KEe), n = QU();
+function VDe(e) {
+ var t = Gz(e, LDe), n = wW();
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "area"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: IEe(t) }), /*#__PURE__*/ I.createElement(LEe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: DDe(t) }), /*#__PURE__*/ I.createElement(ODe, {
dataKey: t.dataKey,
data: t.data,
stroke: t.stroke,
@@ -63837,21 +64665,21 @@ function XEe(e) {
xAxisId: t.xAxisId,
yAxisId: t.yAxisId,
zAxisId: 0,
- stackId: _U(t.stackId),
+ stackId: UU(t.stackId),
hide: t.hide,
barSize: void 0,
baseValue: t.baseValue,
isPanorama: n,
connectNulls: t.connectNulls
- }), /*#__PURE__*/ I.createElement(qEe, _8({}, t, { id: e }))));
+ }), /*#__PURE__*/ I.createElement(RDe, _8({}, t, { id: e }))));
}
-var C8 = /*#__PURE__*/ I.memo(XEe, oK);
+var C8 = /*#__PURE__*/ I.memo(VDe, MK);
C8.displayName = "Area";
//#endregion
//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.js
-var ZEe = "Invariant failed";
-function QEe(e, t) {
- if (!e) throw Error(ZEe);
+var HDe = "Invariant failed";
+function UDe(e, t) {
+ if (!e) throw Error(HDe);
}
//#endregion
//#region node_modules/recharts/es6/util/BarUtils.js
@@ -63871,45 +64699,45 @@ function T8(e) {
inActiveClassName: "recharts-inactive-bar"
}, e));
}
-var $Ee = function(e) {
+var WDe = 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) || uz(n);
- return i ? e(n, r) : (!i && QEe(!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) || 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);
};
-}, eDe = (e, t, n) => n, E8 = $([H$, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), tDe = $([E8], (e) => e?.maxBarSize), nDe = (e, t, n, r) => r, rDe = $([
- MW,
+}, 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,
H$,
l8,
u8,
- eDe
-], (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")), iDe = (e, t, n) => {
- var r = MW(e), i = l8(e, t), a = u8(e, t);
+ 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);
if (i != null && a != null) return r === "horizontal" ? a1(e, "yAxis", a, n) : a1(e, "xAxis", i, n);
-}, aDe = $([
- rDe,
+}, XDe = $([
+ JDe,
NY,
(e, t) => {
- var n = MW(e), r = l8(e, t), i = u8(e, t);
+ var n = iG(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), oDe = (e, t, n) => {
+], J3), ZDe = (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 = MW(e), s = AY(e), { maxBarSize: c } = r, l = uz(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)), EU(u, d, !0) ?? l ?? 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;
}, D8 = (e, t, n) => {
- var r = MW(e), i = l8(e, t), a = u8(e, t);
+ var r = iG(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)), EU(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);
}
-}, sDe = $([
- JU,
- XU,
+}, QDe = $([
+ bW,
+ SW,
(e, t, n) => {
var r = l8(e, t);
if (r != null) return J1(e, "xAxis", r, n);
@@ -63927,25 +64755,25 @@ var $Ee = function(e) {
if (r != null) return q1(e, "yAxis", r, n);
},
$([$([
- aDe,
+ XDe,
AY,
jY,
MY,
- oDe,
+ ZDe,
D8,
- tDe
+ KDe
], Z3), E8], $3),
- MW,
+ iG,
_Y,
D8,
- $([iDe, E8], Q3),
+ $([YDe, E8], Q3),
E8,
- nDe
+ qDe
], (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 FDe({
+ if (_ != null) return EOe({
layout: s,
barSettings: d,
pos: o,
@@ -63962,7 +64790,7 @@ var $Ee = function(e) {
dataStartIndex: m
});
}
-}), cDe = ["index"];
+}), $De = ["index"];
function O8() {
return O8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -63972,16 +64800,16 @@ function O8() {
return e;
}, O8.apply(null, arguments);
}
-function lDe(e, t) {
+function eOe(e, t) {
if (e == null) return {};
- var n, r, i = uDe(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 uDe(e, t) {
+function tOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -63990,31 +64818,31 @@ function uDe(e, t) {
}
return n;
}
-var k8 = /*#__PURE__*/ (0, I.createContext)(void 0), dDe = (e) => {
+var k8 = /*#__PURE__*/ (0, I.createContext)(void 0), nOe = (e) => {
var t = (0, I.useContext)(k8);
if (t != null) return t.stackId;
- if (e != null) return _U(e);
-}, fDe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, pDe = (e) => {
+ if (e != null) return UU(e);
+}, rOe = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, iOe = (e) => {
var t = (0, I.useContext)(k8);
if (t != null) {
var { stackId: n } = t;
- return `url(#${fDe(n, e)})`;
+ return `url(#${rOe(n, e)})`;
}
}, A8 = (e) => {
- var { index: t } = e, n = lDe(e, cDe), r = pDe(t);
- return /*#__PURE__*/ I.createElement($L, O8({
+ var { index: t } = e, n = eOe(e, $De), r = iOe(t);
+ return /*#__PURE__*/ I.createElement(xR, O8({
className: "recharts-bar-stack-layer",
clipPath: r
}, n));
-}, mDe = [
+}, aOe = [
"onMouseEnter",
"onMouseLeave",
"onClick"
-], hDe = [
+], oOe = [
"value",
"background",
"tooltipPosition"
-], gDe = ["id"], _De = [
+], sOe = ["id"], cOe = [
"onMouseEnter",
"onClick",
"onMouseLeave"
@@ -64042,26 +64870,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) {
- vDe(e, t, n[t]);
+ lOe(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 vDe(e, t, n) {
- return (t = yDe(t)) in e ? Object.defineProperty(e, t, {
+function lOe(e, t, n) {
+ return (t = uOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function yDe(e) {
- var t = bDe(e, "string");
+function uOe(e) {
+ var t = dOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function bDe(e, t) {
+function dOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64073,14 +64901,14 @@ function bDe(e, t) {
}
function P8(e, t) {
if (e == null) return {};
- var n, r, i = xDe(e, t);
+ var n, r, i = fOe(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 xDe(e, t) {
+function fOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64089,27 +64917,27 @@ function xDe(e, t) {
}
return n;
}
-var SDe = (e) => {
+var pOe = (e) => {
var { dataKey: t, name: n, fill: r, legendType: i, hide: a } = e;
return [{
inactive: a,
dataKey: t,
type: i,
color: r,
- value: OU(n, t),
+ value: eW(n, t),
payload: e
}];
-}, CDe = /*#__PURE__*/ I.memo((e) => {
+}, mOe = /*#__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: pz,
+ getPosition: Fz,
settings: {
stroke: n,
strokeWidth: r,
fill: i,
dataKey: t,
nameKey: void 0,
- name: OU(a, t),
+ name: eW(a, t),
hide: o,
type: c,
color: i,
@@ -64119,17 +64947,17 @@ var SDe = (e) => {
};
return /*#__PURE__*/ I.createElement(h3, { tooltipEntrySettings: u });
});
-function wDe(e) {
- var t = Q(P0), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = P8(a, mDe), u = f3(o, r, a.id), d = p3(s), f = m3(c, r, a.id);
+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);
if (!i || n == null) return null;
- var p = JL(i);
+ var p = gR(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, hDe);
+ var { value: a, background: o, tooltipPosition: s } = e, c = P8(e, oOe);
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), xz(l, e, n)), {}, {
+ }, c), {}, { fill: "#eee" }, o), p), Uz(l, e, n)), {}, {
onMouseEnter: m,
onMouseLeave: h,
onClick: g,
@@ -64140,7 +64968,7 @@ function wDe(e) {
return /*#__PURE__*/ I.createElement(T8, j8({ key: `background-bar-${n}` }, _));
}));
}
-function TDe(e) {
+function gOe(e) {
var { showLabels: t, children: n, rects: r } = e, i = r?.map((e) => {
var t = {
x: e.x,
@@ -64160,7 +64988,7 @@ function TDe(e) {
});
return /*#__PURE__*/ I.createElement(l4, { value: t ? i : void 0 }, n);
}
-function EDe(e) {
+function _Oe(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;
@@ -64181,7 +65009,7 @@ function EDe(e) {
}));
return g ? /*#__PURE__*/ I.createElement(t2, { zIndex: BY.activeBar }, /*#__PURE__*/ I.createElement(A8, { index: i.originalDataIndex }, v)) : v;
}
-function DDe(e) {
+function vOe(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,
@@ -64190,24 +65018,24 @@ function DDe(e) {
dataKey: a
}));
}
-function ODe(e) {
- var { data: t, props: n } = e, r = qL(n) ?? {}, { id: i } = r, a = P8(r, gDe), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = P8(n, _De), p = f3(l, s, i), m = p3(d), h = m3(u, s, i);
+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);
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"
- }, xz(f, e, t), {
+ }, Uz(f, e, t), {
onMouseEnter: p(e, t),
onMouseLeave: m(e, t),
onClick: h(e, t)
- }), c ? /*#__PURE__*/ I.createElement(EDe, {
+ }), c ? /*#__PURE__*/ I.createElement(_Oe, {
shape: o,
activeBar: c,
baseProps: a,
entry: e,
index: t,
dataKey: s
- }) : /*#__PURE__*/ I.createElement(DDe, {
+ }) : /*#__PURE__*/ I.createElement(vOe, {
shape: o,
baseProps: a,
entry: e,
@@ -64215,16 +65043,16 @@ function ODe(e) {
dataKey: s
})))) : null;
}
-function kDe(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 = uJ(t, "recharts-bar-"), [p, m] = (0, I.useState)(!1), h = !p, g = (0, I.useCallback)(() => {
+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)(() => {
typeof l == "function" && l(), m(!1);
}, [l]), _ = (0, I.useCallback)(() => {
typeof u == "function" && u(), m(!0);
}, [u]);
- return /*#__PURE__*/ I.createElement(TDe, {
+ return /*#__PURE__*/ I.createElement(gOe, {
showLabels: h,
rects: r
- }, /*#__PURE__*/ I.createElement(lJ, {
+ }, /*#__PURE__*/ I.createElement(FJ, {
animationId: f,
begin: o,
duration: s,
@@ -64237,68 +65065,68 @@ function kDe(e) {
var a = e === 1 ? r : r?.map((t, n) => {
var r = d && d[n];
if (r) return N8(N8({}, t), {}, {
- x: cz(r.x, t.x, e),
- y: cz(r.y, t.y, e),
- width: cz(r.width, t.width, e),
- height: cz(r.height, t.height, e)
+ 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)
});
if (i === "horizontal") {
- var a = cz(0, t.height, e), o = cz(t.stackedBarStart, t.y, e);
+ var a = Az(0, t.height, e), o = Az(t.stackedBarStart, t.y, e);
return N8(N8({}, t), {}, {
y: o,
height: a
});
}
- var s = cz(0, t.width, e), c = cz(t.stackedBarStart, t.x, e);
+ var s = Az(0, t.width, e), c = Az(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($L, null, /*#__PURE__*/ I.createElement(ODe, {
+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ I.createElement(xR, null, /*#__PURE__*/ I.createElement(yOe, {
props: t,
data: a
}));
}), /*#__PURE__*/ I.createElement(f4, { label: t.label }), t.children);
}
-function ADe(e) {
+function xOe(e) {
var t = (0, I.useRef)(null);
- return /*#__PURE__*/ I.createElement(kDe, {
+ return /*#__PURE__*/ I.createElement(bOe, {
previousRectanglesRef: t,
props: e
});
}
-var F8 = 0, jDe = (e, t) => {
+var F8 = 0, SOe = (e, t) => {
var n = Array.isArray(e.value) ? e.value[1] : e.value;
return {
x: e.x,
y: e.y,
value: n,
- errorVal: lU(e, t)
+ errorVal: FU(e, t)
};
-}, MDe = class extends I.PureComponent {
+}, COe = 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($L, {
+ return /*#__PURE__*/ I.createElement(xR, {
className: l,
id: c
}, o && /*#__PURE__*/ I.createElement("defs", null, /*#__PURE__*/ I.createElement(Y6, {
clipPathId: u,
xAxisId: i,
yAxisId: a
- })), /*#__PURE__*/ I.createElement($L, {
+ })), /*#__PURE__*/ I.createElement(xR, {
className: "recharts-bar-rectangles",
clipPath: o ? `url(#clipPath-${u})` : void 0
- }, /*#__PURE__*/ I.createElement(wDe, {
+ }, /*#__PURE__*/ I.createElement(hOe, {
data: t,
dataKey: n,
background: s,
allOtherBarProps: this.props
- }), /*#__PURE__*/ I.createElement(ADe, this.props)));
+ }), /*#__PURE__*/ I.createElement(xOe, this.props)));
}
-}, NDe = {
+}, wOe = {
activeBar: !1,
animationBegin: 0,
animationDuration: 400,
@@ -64313,17 +65141,17 @@ var F8 = 0, jDe = (e, t) => {
yAxisId: 0,
zIndex: BY.bar
};
-function PDe(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 = NW(), p = QU(), m = t3(e.children, v2), h = Q((t) => sDe(t, e.id, p, m));
+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));
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: jDe,
+ dataPointFormatter: SOe,
errorBarOffset: g
- }, /*#__PURE__*/ I.createElement(MDe, j8({}, e, {
+ }, /*#__PURE__*/ I.createElement(COe, j8({}, e, {
layout: f,
needClip: d,
data: h,
@@ -64339,20 +65167,20 @@ function PDe(e) {
isAnimationActive: u
})));
}
-function FDe(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 = bU({ numericAxis: _ }), b = _.scale.map(y);
+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);
return f.map((e, f) => {
var _, x, S, C, w, T;
if (d) {
var E = d[f + g];
if (E == null) return null;
- _ = mU(E, v);
- } else _ = lU(e, n), Array.isArray(_) || (_ = [y, _]);
- var D = $Ee(r, F8)(_[1], f);
+ _ = BU(E, v);
+ } else _ = FU(e, n), Array.isArray(_) || (_ = [y, _]);
+ var D = WDe(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 = yU({
+ x = GU({
axis: s,
ticks: l,
bandSize: o,
@@ -64361,19 +65189,19 @@ function FDe(e) {
index: f
}), S = k ?? O ?? void 0, C = a.size;
var A = O - k;
- if (w = nz(A) ? 0 : A, T = {
+ if (w = wz(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 = tz(w || D) * (Math.abs(D) - Math.abs(w));
+ var j = Cz(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 = yU({
+ if (x = M, S = GU({
axis: c,
ticks: u,
bandSize: o,
@@ -64386,7 +65214,7 @@ function FDe(e) {
width: p.width,
height: w
}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {
- var P = tz(C || D) * (Math.abs(D) - Math.abs(C));
+ var P = Cz(C || D) * (Math.abs(D) - Math.abs(C));
C += P;
}
}
@@ -64408,12 +65236,12 @@ function FDe(e) {
}, m && m[f] && m[f].props);
}).filter(Boolean);
}
-function IDe(e) {
- var t = Cz(e, NDe), n = dDe(t.stackId), r = QU();
+function DOe(e) {
+ var t = Gz(e, wOe), n = nOe(t.stackId), r = wW();
return /*#__PURE__*/ I.createElement(v3, {
id: t.id,
type: "bar"
- }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: SDe(t) }), /*#__PURE__*/ I.createElement(CDe, {
+ }, (e) => /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(g3, { legendPayload: pOe(t) }), /*#__PURE__*/ I.createElement(mOe, {
dataKey: t.dataKey,
stroke: t.stroke,
strokeWidth: t.strokeWidth,
@@ -64438,23 +65266,23 @@ function IDe(e) {
maxBarSize: t.maxBarSize,
isPanorama: r,
hasCustomShape: t.shape != null
- }), /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(PDe, j8({}, t, { id: e })))));
+ }), /*#__PURE__*/ I.createElement(t2, { zIndex: t.zIndex }, /*#__PURE__*/ I.createElement(TOe, j8({}, t, { id: e })))));
}
-var I8 = /*#__PURE__*/ I.memo(IDe, oK);
+var I8 = /*#__PURE__*/ I.memo(DOe, MK);
I8.displayName = "Bar";
//#endregion
//#region node_modules/recharts/es6/util/axisPropsAreEqual.js
-var LDe = ["domain", "range"], RDe = ["domain", "range"];
+var OOe = ["domain", "range"], kOe = ["domain", "range"];
function L8(e, t) {
if (e == null) return {};
- var n, r, i = zDe(e, t);
+ var n, r, i = AOe(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 zDe(e, t) {
+function AOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64468,16 +65296,16 @@ function R8(e, t) {
}
function z8(e, t) {
if (e === t) return !0;
- var { domain: n, range: r } = e, i = L8(e, LDe), { domain: a, range: o } = t, s = L8(t, RDe);
- return !R8(n, a) || !R8(r, o) ? !1 : oK(i, s);
+ 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);
}
//#endregion
//#region node_modules/recharts/es6/cartesian/XAxis.js
-var BDe = ["type"], VDe = [
+var jOe = ["type"], MOe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], HDe = ["id", "scale"];
+], NOe = ["id", "scale"];
function B8() {
return B8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -64501,26 +65329,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) {
- UDe(e, t, n[t]);
+ POe(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 UDe(e, t, n) {
- return (t = WDe(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 WDe(e) {
- var t = GDe(e, "string");
+function FOe(e) {
+ var t = IOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function GDe(e, t) {
+function IOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64532,14 +65360,14 @@ function GDe(e, t) {
}
function U8(e, t) {
if (e == null) return {};
- var n, r, i = KDe(e, t);
+ var n, r, i = LOe(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 KDe(e, t) {
+function LOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64548,23 +65376,23 @@ function KDe(e, t) {
}
return n;
}
-function qDe(e) {
- var t = Xz(), n = (0, I.useRef)(null), r = PW(), { type: i } = e, a = U8(e, BDe), o = WY(r, "xAxis", i), s = (0, I.useMemo)(() => {
+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)(() => {
if (o != null) return H8(H8({}, a), {}, { type: o });
}, [a, o]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(lCe(s)) : n.current !== s && t(uCe({
+ s != null && (n.current === null ? t(ewe(s)) : n.current !== s && t(twe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(dCe(n.current)), null);
+ n.current &&= (t(nwe(n.current)), null);
}, [t]), null;
}
-var JDe = (e) => {
- var { xAxisId: t, className: n } = e, r = Q(XU), i = QU(), a = "xAxis", o = Q((e) => G1(e, a, t, i)), s = Q((e) => R1(e, t)), c = Q((e) => hve(e, t)), l = Q((e) => M$(e, t));
+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));
if (s == null || c == null || l == null) return null;
- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, VDe), { id: m, scale: h } = l, g = U8(l, HDe);
+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = U8(e, MOe), { id: m, scale: h } = l, g = U8(l, NOe);
return /*#__PURE__*/ I.createElement(z6, B8({}, p, g, {
x: c.x,
y: c.y,
@@ -64576,7 +65404,7 @@ var JDe = (e) => {
axisType: a,
axisId: t
}));
-}, YDe = {
+}, BOe = {
allowDataOverflow: j$.allowDataOverflow,
allowDecimals: j$.allowDecimals,
allowDuplicatedCategory: j$.allowDuplicatedCategory,
@@ -64601,8 +65429,8 @@ var JDe = (e) => {
niceTicks: j$.niceTicks,
xAxisId: 0
}, W8 = /*#__PURE__*/ I.memo((e) => {
- var t = Cz(e, YDe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(qDe, {
+ var t = Gz(e, BOe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(ROe, {
allowDataOverflow: t.allowDataOverflow,
allowDecimals: t.allowDecimals,
allowDuplicatedCategory: t.allowDuplicatedCategory,
@@ -64628,16 +65456,16 @@ var JDe = (e) => {
type: t.type,
unit: t.unit,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(JDe, t));
+ }), /*#__PURE__*/ I.createElement(zOe, t));
}, z8);
W8.displayName = "XAxis";
//#endregion
//#region node_modules/recharts/es6/cartesian/YAxis.js
-var XDe = ["type"], ZDe = [
+var VOe = ["type"], HOe = [
"dangerouslySetInnerHTML",
"ticks",
"scale"
-], QDe = ["id", "scale"];
+], UOe = ["id", "scale"];
function G8() {
return G8 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -64661,26 +65489,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) {
- $De(e, t, n[t]);
+ WOe(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 $De(e, t, n) {
- return (t = eOe(t)) in e ? Object.defineProperty(e, t, {
+function WOe(e, t, n) {
+ return (t = GOe(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function eOe(e) {
- var t = tOe(e, "string");
+function GOe(e) {
+ var t = KOe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function tOe(e, t) {
+function KOe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -64692,14 +65520,14 @@ function tOe(e, t) {
}
function J8(e, t) {
if (e == null) return {};
- var n, r, i = nOe(e, t);
+ var n, r, i = qOe(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 nOe(e, t) {
+function qOe(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -64708,27 +65536,27 @@ function nOe(e, t) {
}
return n;
}
-function rOe(e) {
- var t = Xz(), n = (0, I.useRef)(null), r = PW(), { type: i } = e, a = J8(e, XDe), o = WY(r, "yAxis", i), s = (0, I.useMemo)(() => {
+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)(() => {
if (o != null) return q8(q8({}, a), {}, { type: o });
}, [o, a]);
return (0, I.useLayoutEffect)(() => {
- s != null && (n.current === null ? t(fCe(s)) : n.current !== s && t(pCe({
+ s != null && (n.current === null ? t(rwe(s)) : n.current !== s && t(iwe({
prev: n.current,
next: s
})), n.current = s);
}, [s, t]), (0, I.useLayoutEffect)(() => () => {
- n.current &&= (t(mCe(n.current)), null);
+ n.current &&= (t(awe(n.current)), null);
}, [t]), null;
}
-function iOe(e) {
- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, I.useRef)(null), o = (0, I.useRef)(null), s = Q(XU), c = QU(), l = Xz(), u = "yAxis", d = Q((e) => z1(e, t)), f = Q((e) => gve(e, t)), p = Q((e) => G1(e, u, t, c)), m = Q((e) => F$(e, t));
+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));
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(vCe({
+ Math.round(d.width) !== Math.round(n) && l(lwe({
id: t,
width: n
}));
@@ -64743,7 +65571,7 @@ function iOe(e) {
r,
m
]), d == null || f == null || m == null) return null;
- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, ZDe), { id: y, scale: b } = m, x = J8(m, QDe);
+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = J8(e, HOe), { id: y, scale: b } = m, x = J8(m, UOe);
return /*#__PURE__*/ I.createElement(z6, G8({}, v, x, {
ref: a,
labelRef: o,
@@ -64759,7 +65587,7 @@ function iOe(e) {
axisId: t
}));
}
-var aOe = {
+var XOe = {
allowDataOverflow: P$.allowDataOverflow,
allowDecimals: P$.allowDecimals,
allowDuplicatedCategory: P$.allowDuplicatedCategory,
@@ -64784,8 +65612,8 @@ var aOe = {
width: P$.width,
yAxisId: 0
}, Y8 = /*#__PURE__*/ I.memo((e) => {
- var t = Cz(e, aOe);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(rOe, {
+ var t = Gz(e, XOe);
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(JOe, {
interval: t.interval,
id: t.yAxisId,
scale: t.scale,
@@ -64811,27 +65639,27 @@ var aOe = {
tick: t.tick,
tickFormatter: t.tickFormatter,
niceTicks: t.niceTicks
- }), /*#__PURE__*/ I.createElement(iOe, t));
+ }), /*#__PURE__*/ I.createElement(YOe, t));
}, z8);
Y8.displayName = "YAxis";
var X8 = $([
(e, t) => t,
- MW,
+ iG,
rX,
dX,
D0,
k0,
- fye,
- JU
-], yye);
+ rbe,
+ bW
+], ube);
//#endregion
//#region node_modules/recharts/es6/util/getRelativeCoordinate.js
-function oOe(e) {
+function ZOe(e) {
return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";
}
function Z8(e) {
var t = e.currentTarget.getBoundingClientRect(), n, r;
- if (oOe(e)) {
+ if (ZOe(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 {
@@ -64846,19 +65674,19 @@ function Z8(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js
-var Q8 = zV("mouseClick"), $8 = qH();
+var Q8 = dH("mouseClick"), $8 = yU();
$8.startListening({
actionCreator: Q8,
effect: (e, t) => {
var n = e.payload, r = X8(t.getState(), Z8(n));
- r?.activeIndex != null && t.dispatch(Eve({
+ r?.activeIndex != null && t.dispatch(_ye({
activeIndex: r.activeIndex,
activeDataKey: void 0,
activeCoordinate: r.activeCoordinate
}));
}
});
-var e5 = zV("mouseMove"), t5 = qH(), n5 = null, r5 = null, i5 = null;
+var e5 = dH("mouseMove"), t5 = yU(), n5 = null, r5 = null, i5 = null;
t5.startListening({
actionCreator: e5,
effect: (e, t) => {
@@ -64889,7 +65717,7 @@ t5.startListening({
});
//#endregion
//#region node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js
-function sOe(e, t) {
+function QOe(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
@@ -64906,17 +65734,17 @@ var a5 = {
syncMethod: "index",
baseValue: void 0,
reverseStackOrder: !1
-}, o5 = sH({
+}, o5 = NH({
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;
} }
-}), cOe = o5.reducer, { updateOptions: lOe } = o5.actions, s5 = sH({
+}), $Oe = o5.reducer, { updateOptions: eke } = o5.actions, s5 = NH({
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: uOe } = s5.actions, dOe = s5.reducer, c5 = zV("keyDown"), l5 = zV("focus"), u5 = zV("blur"), d5 = qH(), f5 = null, p5 = null, m5 = null;
+}), { updatePolarOptions: tke } = s5.actions, nke = s5.reducer, c5 = dH("keyDown"), l5 = dH("focus"), u5 = dH("blur"), d5 = yU(), f5 = null, p5 = null, m5 = null;
d5.startListening({
actionCreator: c5,
effect: (e, t) => {
@@ -64941,7 +65769,7 @@ d5.startListening({
}));
return;
}
- var c = _ve(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;
+ var c = cye(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({
@@ -65004,7 +65832,7 @@ function h5(e) {
}
//#endregion
//#region node_modules/recharts/es6/state/externalEventsMiddleware.js
-var g5 = zV("externalEvent"), _5 = qH(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
+var g5 = dH("externalEvent"), _5 = yU(), v5 = /* @__PURE__ */ new Map(), y5 = /* @__PURE__ */ new Map(), b5 = /* @__PURE__ */ new Map();
_5.startListening({
actionCreator: g5,
effect: (e, t) => {
@@ -65024,12 +65852,12 @@ _5.startListening({
try {
if (!e) return;
var { handler: n, reactEvent: r } = e, a = t.getState(), o = {
- activeCoordinate: Qve(a),
+ activeCoordinate: Uye(a),
activeDataKey: I0(a),
activeIndex: P0(a),
activeLabel: F0(a),
activeTooltipIndex: P0(a),
- isTooltipActive: $ve(a)
+ isTooltipActive: Wye(a)
};
n && n(o, r);
} finally {
@@ -65053,7 +65881,7 @@ _5.startListening({
}
}
});
-var fOe = $([
+var rke = $([
$([m0], (e) => e.tooltipItemPayloads),
(e, t) => t,
(e, t, n) => n
@@ -65065,7 +65893,7 @@ var fOe = $([
if (i != null) return i(t);
}
}
-}), x5 = zV("touchMove"), S5 = qH(), C5 = null, w5 = null, T5 = null, E5 = null;
+}), x5 = dH("touchMove"), S5 = yU(), C5 = null, w5 = null, T5 = null, E5 = null;
S5.startListening({
actionCreator: x5,
effect: (e, t) => {
@@ -65098,9 +65926,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(LU), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = b0(e).find((e) => e.id === c);
+ var s = o.getAttribute(lW), 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 = fOe(e, s, c);
+ var { dataKey: u } = l, d = rke(e, s, c);
t.dispatch(n0({
activeDataKey: u,
activeIndex: s,
@@ -65132,33 +65960,33 @@ var D5 = {
"scroll",
"wheel"
]
-}, O5 = sH({
+}, O5 = NH({
name: "eventSettings",
initialState: D5,
reducers: { setEventSettings: (e, t) => {
- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = PG(t.payload.throttledEvents));
+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = oK(t.payload.throttledEvents));
} }
-}), { setEventSettings: pOe } = O5.actions, mOe = O5.reducer, hOe = mB({
- brush: Mwe,
- cartesianAxis: yCe,
- chartData: Kye,
- errorBars: ZTe,
- eventSettings: mOe,
- graphicalItems: YSe,
- layout: eU,
- legend: VG,
- options: Vye,
- polarAxis: zxe,
- polarOptions: dOe,
- referenceElements: Uwe,
- renderedTicks: _Te,
- rootProps: cOe,
- tooltip: Dve,
- zIndex: Mye
-}), gOe = function(e) {
+}), { 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) {
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";
- return ZV({
- reducer: hOe,
+ return CH({
+ reducer: oke,
preloadedState: e,
middleware: (e) => e({
serializableCheck: !1,
@@ -65176,10 +66004,10 @@ var D5 = {
]),
enhancers: (e) => {
var t = e;
- return typeof e == "function" && (t = e()), t.concat(YV({ type: "raf" }));
+ return typeof e == "function" && (t = e()), t.concat(xH({ type: "raf" }));
},
- devTools: VK.devToolsEnabled && {
- serialize: { replacer: sOe },
+ devTools: pq.devToolsEnabled && {
+ serialize: { replacer: QOe },
name: `recharts-${t}`
}
});
@@ -65187,21 +66015,21 @@ var D5 = {
//#endregion
//#region node_modules/recharts/es6/state/RechartsStoreProvider.js
function k5(e) {
- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = QU(), a = (0, I.useRef)(null);
+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = wW(), a = (0, I.useRef)(null);
if (i) return n;
- a.current ??= gOe(t, r);
- var o = Yz;
- return /*#__PURE__*/ I.createElement(rK, {
+ a.current ??= ske(t, r);
+ var o = _B;
+ return /*#__PURE__*/ I.createElement(kK, {
context: o,
store: a.current
}, n);
}
//#endregion
//#region node_modules/recharts/es6/state/ReportMainChartProps.js
-function _Oe(e) {
- var { layout: t, margin: n } = e, r = Xz(), i = QU();
+function cke(e) {
+ var { layout: t, margin: n } = e, r = vB(), i = wW();
return (0, I.useEffect)(() => {
- i || (r(ZH(t)), r(XH(n)));
+ i || (r(CU(t)), r(SU(n)));
}, [
r,
i,
@@ -65209,31 +66037,31 @@ function _Oe(e) {
n
]), null;
}
-var A5 = /*#__PURE__*/ (0, I.memo)(_Oe, oK);
+var A5 = /*#__PURE__*/ (0, I.memo)(cke, MK);
//#endregion
//#region node_modules/recharts/es6/state/ReportChartProps.js
function j5(e) {
- var t = Xz();
+ var t = vB();
return (0, I.useEffect)(() => {
- t(lOe(e));
+ t(eke(e));
}, [t, e]), null;
}
var M5 = /*#__PURE__*/ (0, I.memo)((e) => {
- var t = Xz();
+ var t = vB();
return (0, I.useEffect)(() => {
- t(pOe(e));
+ t(ike(e));
}, [t, e]), null;
-}, oK);
+}, MK);
//#endregion
//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js
function N5(e) {
- var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = Xz();
- return (0, I.useLayoutEffect)(() => (r.current && i(Aye({
+ var { zIndex: t, isPanorama: n } = e, r = (0, I.useRef)(null), i = vB();
+ return (0, I.useLayoutEffect)(() => (r.current && i(xbe({
zIndex: t,
element: r.current,
isPanorama: n
})), () => {
- i(jye({
+ i(Sbe({
zIndex: t,
isPanorama: n
}));
@@ -65248,7 +66076,7 @@ function N5(e) {
});
}
function P5(e) {
- var { children: t, isPanorama: n } = e, r = Q(xye);
+ var { children: t, isPanorama: n } = e, r = Q(fbe);
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, {
@@ -65263,17 +66091,17 @@ function P5(e) {
}
//#endregion
//#region node_modules/recharts/es6/container/RootSurface.js
-var vOe = ["children"];
-function yOe(e, t) {
+var lke = ["children"];
+function uke(e, t) {
if (e == null) return {};
- var n, r, i = bOe(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 bOe(e, t) {
+function dke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65291,46 +66119,46 @@ function F5() {
return e;
}, F5.apply(null, arguments);
}
-var xOe = {
+var fke = {
width: "100%",
height: "100%",
display: "block"
-}, SOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = kW(), r = AW(), i = ZK();
- if (!rU(n) || !rU(r)) return null;
+}, pke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = tG(), r = nG(), i = Cq();
+ if (!kU(n) || !kU(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(ZL, 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(yR, F5({}, o, {
title: s,
desc: c,
role: u,
tabIndex: l,
width: n,
height: r,
- style: xOe,
+ style: fke,
ref: t
}), a);
-}), COe = (e) => {
- var { children: t } = e, n = Q(eW);
+}), mke = (e) => {
+ var { children: t } = e, n = Q(EW);
if (!n) return null;
var { width: r, height: i, y: a, x: o } = n;
- return /*#__PURE__*/ I.createElement(ZL, {
+ return /*#__PURE__*/ I.createElement(yR, {
width: r,
height: i,
x: o,
y: a
}, t);
}, I5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var { children: n } = e, r = yOe(e, vOe);
- return QU() ? /*#__PURE__*/ I.createElement(COe, null, /*#__PURE__*/ I.createElement(P5, { isPanorama: !0 }, n)) : /*#__PURE__*/ I.createElement(SOe, F5({ ref: t }, r), /*#__PURE__*/ I.createElement(P5, { isPanorama: !1 }, n));
+ 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));
});
//#endregion
//#region node_modules/recharts/es6/util/useReportScale.js
-function wOe() {
- var e = Xz(), [t, n] = (0, I.useState)(null), r = Q(NU);
+function hke() {
+ var e = vB(), [t, n] = (0, I.useState)(null), r = Q(aW);
return (0, I.useEffect)(() => {
if (t != null) {
var n = t.getBoundingClientRect().width / t.offsetWidth;
- nU(n) && n !== r && e($H(n));
+ OU(n) && n !== r && e(TU(n));
}
}, [
t,
@@ -65350,30 +66178,30 @@ function L5(e, t) {
}
return n;
}
-function TOe(e) {
+function gke(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) {
- EOe(e, t, n[t]);
+ _ke(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 EOe(e, t, n) {
- return (t = DOe(t)) in e ? Object.defineProperty(e, t, {
+function _ke(e, t, n) {
+ return (t = vke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function DOe(e) {
- var t = OOe(e, "string");
+function vke(e) {
+ var t = yke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function OOe(e, t) {
+function yke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65392,7 +66220,7 @@ function R5() {
return e;
}, R5.apply(null, arguments);
}
-var kOe = () => (tbe(), null);
+var bke = () => (Kbe(), null);
function z5(e) {
if (typeof e == "number") return e;
if (typeof e == "string") {
@@ -65401,7 +66229,7 @@ function z5(e) {
}
return 0;
}
-var AOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+var xke = /*#__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)
@@ -65429,11 +66257,11 @@ var AOe = /*#__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(RW, {
+ }, [a]), /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {
width: r.containerWidth,
height: r.containerHeight
}), /*#__PURE__*/ I.createElement("div", R5({ ref: o }, e)));
-}), jOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), Ske = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e, [i, a] = (0, I.useState)({
containerWidth: z5(n),
containerHeight: z5(r)
@@ -65451,32 +66279,32 @@ var AOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
o(n, r);
}
}, [t, o]);
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(RW, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {
width: i.containerWidth,
height: i.containerHeight
}), /*#__PURE__*/ I.createElement("div", R5({ ref: s }, e)));
-}), MOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), Cke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(RW, {
+ return /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", R5({ ref: t }, e)));
-}), NOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+}), wke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
var { width: n, height: r } = e;
- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ I.createElement(jOe, R5({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ I.createElement(MOe, R5({}, 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, {
width: n,
height: r,
ref: t
- })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(RW, {
+ })) : /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(uG, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement("div", R5({ ref: t }, e)));
});
-function POe(e) {
- return e ? AOe : NOe;
+function Tke(e) {
+ return e ? xke : wke;
}
-var FOe = /*#__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 = Xz(), [S, C] = (0, I.useState)(null), [w, T] = (0, I.useState)(null), E = wOe(), D = SW(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, I.useCallback)((e) => {
+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) => {
E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);
}, [
E,
@@ -65548,12 +66376,12 @@ var FOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
handler: p,
reactEvent: e
}));
- }, [x, p]), L = POe(v);
- return /*#__PURE__*/ I.createElement(a2.Provider, { value: S }, /*#__PURE__*/ I.createElement(eR.Provider, { value: w }, /*#__PURE__*/ I.createElement(L, {
+ }, [x, p]), L = Tke(v);
+ return /*#__PURE__*/ I.createElement(a2.Provider, { value: S }, /*#__PURE__*/ I.createElement(SR.Provider, { value: w }, /*#__PURE__*/ I.createElement(L, {
width: O ?? g?.width,
height: k ?? g?.height,
className: Jm("recharts-wrapper", r),
- style: TOe({
+ style: gke({
position: "relative",
cursor: "default",
width: O,
@@ -65574,8 +66402,8 @@ var FOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
onTouchMove: se,
onTouchStart: oe,
ref: A
- }, /*#__PURE__*/ I.createElement(kOe, null), n)));
-}), IOe = [
+ }, /*#__PURE__*/ I.createElement(bke, null), n)));
+}), Dke = [
"width",
"height",
"responsive",
@@ -65586,16 +66414,16 @@ var FOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
"title",
"desc"
];
-function LOe(e, t) {
+function Oke(e, t) {
if (e == null) return {};
- var n, r, i = ROe(e, t);
+ var n, r, i = kke(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 ROe(e, t) {
+function kke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65605,15 +66433,15 @@ function ROe(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 = qL(LOe(e, IOe));
- return c ? /*#__PURE__*/ I.createElement(I.Fragment, null, /*#__PURE__*/ I.createElement(RW, {
+ 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, {
width: n,
height: r
}), /*#__PURE__*/ I.createElement(I5, {
otherAttributes: d,
title: l,
desc: u
- }, a)) : /*#__PURE__*/ I.createElement(FOe, {
+ }, a)) : /*#__PURE__*/ I.createElement(Eke, {
className: o,
style: s,
width: n,
@@ -65635,7 +66463,7 @@ var B5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
title: l,
desc: u,
ref: t
- }, /*#__PURE__*/ I.createElement(Wwe, null, a)));
+ }, /*#__PURE__*/ I.createElement(FTe, null, a)));
});
//#endregion
//#region node_modules/recharts/es6/chart/CartesianChart.js
@@ -65658,30 +66486,30 @@ function H5(e, t) {
}
return n;
}
-function zOe(e) {
+function Ake(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) {
- BOe(e, t, n[t]);
+ jke(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 BOe(e, t, n) {
- return (t = VOe(t)) in e ? Object.defineProperty(e, t, {
+function jke(e, t, n) {
+ return (t = Mke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function VOe(e) {
- var t = HOe(e, "string");
+function Mke(e) {
+ var t = Nke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function HOe(e, t) {
+function Nke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65691,7 +66519,7 @@ function HOe(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var UOe = zOe({
+var Pke = Ake({
accessibilityLayer: !0,
barCategoryGap: "10%",
barGap: 4,
@@ -65707,7 +66535,7 @@ var UOe = zOe({
stackOffset: "none",
syncMethod: "index"
}, D5), U5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = Cz(e.categoricalChartProps, UOe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
+ var n = Gz(e.categoricalChartProps, Pke), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {
chartName: r,
defaultTooltipEventType: i,
validateTooltipEventTypes: a,
@@ -65736,32 +66564,32 @@ var UOe = zOe({
className: n.className,
reverseStackOrder: n.reverseStackOrder
}), /*#__PURE__*/ I.createElement(B5, V5({}, n, { ref: t })));
-}), WOe = ["axis"], GOe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
+}), Fke = ["axis"], Ike = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
chartName: "LineChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: WOe,
+ validateTooltipEventTypes: Fke,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
-})), KOe = ["axis", "item"], W5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
+})), Lke = ["axis", "item"], W5 = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
chartName: "BarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: KOe,
+ validateTooltipEventTypes: Lke,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
}));
//#endregion
//#region node_modules/recharts/es6/state/ReportPolarOptions.js
-function qOe(e) {
- var t = Xz();
+function Rke(e) {
+ var t = vB();
return (0, I.useEffect)(() => {
- t(uOe(e));
+ t(tke(e));
}, [t, e]), null;
}
//#endregion
//#region node_modules/recharts/es6/chart/PolarChart.js
-var JOe = ["layout"];
+var zke = ["layout"];
function G5() {
return G5 = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
@@ -65771,16 +66599,16 @@ function G5() {
return e;
}, G5.apply(null, arguments);
}
-function YOe(e, t) {
+function Bke(e, t) {
if (e == null) return {};
- var n, r, i = XOe(e, t);
+ var n, r, i = Vke(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 XOe(e, t) {
+function Vke(e, t) {
if (e == null) return {};
var n = {};
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -65799,30 +66627,30 @@ function K5(e, t) {
}
return n;
}
-function ZOe(e) {
+function Hke(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) {
- QOe(e, t, n[t]);
+ Uke(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 QOe(e, t, n) {
- return (t = $Oe(t)) in e ? Object.defineProperty(e, t, {
+function Uke(e, t, n) {
+ return (t = Wke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function $Oe(e) {
- var t = eke(e, "string");
+function Wke(e) {
+ var t = Gke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function eke(e, t) {
+function Gke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65832,7 +66660,7 @@ function eke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var q5 = ZOe({
+var q5 = Hke({
accessibilityLayer: !0,
stackOffset: "none",
barCategoryGap: "10%",
@@ -65852,7 +66680,7 @@ var q5 = ZOe({
innerRadius: 0,
outerRadius: "80%"
}, D5), J5 = /*#__PURE__*/ (0, I.forwardRef)(function(e, t) {
- var n = Cz(e.categoricalChartProps, q5), { layout: r } = n, i = YOe(n, JOe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
+ var n = Gz(e.categoricalChartProps, q5), { layout: r } = n, i = Bke(n, zke), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {
chartName: a,
defaultTooltipEventType: o,
validateTooltipEventTypes: s,
@@ -65880,7 +66708,7 @@ var q5 = ZOe({
syncMethod: n.syncMethod,
className: n.className,
reverseStackOrder: n.reverseStackOrder
- }), /*#__PURE__*/ I.createElement(qOe, {
+ }), /*#__PURE__*/ I.createElement(Rke, {
cx: n.cx,
cy: n.cy,
startAngle: n.startAngle,
@@ -65905,26 +66733,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) {
- tke(e, t, n[t]);
+ Kke(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 tke(e, t, n) {
- return (t = nke(t)) in e ? Object.defineProperty(e, t, {
+function Kke(e, t, n) {
+ return (t = qke(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
-function nke(e) {
- var t = rke(e, "string");
+function qke(e) {
+ var t = Jke(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function rke(e, t) {
+function Jke(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -65934,24 +66762,24 @@ function rke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var ike = ["axis"], ake = X5(X5({}, q5), {}, {
+var Yke = ["axis"], Xke = X5(X5({}, q5), {}, {
layout: "centric",
startAngle: 90,
endAngle: -270
-}), oke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = Cz(e, ake);
+}), Zke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = Gz(e, Xke);
return /*#__PURE__*/ I.createElement(J5, {
chartName: "RadarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: ike,
+ validateTooltipEventTypes: Yke,
tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
});
-}), ske = ["axis"], cke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
+}), Qke = ["axis"], $ke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => /*#__PURE__*/ I.createElement(U5, {
chartName: "AreaChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: ske,
+ validateTooltipEventTypes: Qke,
tooltipPayloadSearcher: l2,
categoricalChartProps: e,
ref: t
@@ -65972,26 +66800,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) {
- lke(e, t, n[t]);
+ eAe(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 lke(e, t, n) {
- return (t = uke(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 uke(e) {
- var t = dke(e, "string");
+function tAe(e) {
+ var t = nAe(e, "string");
return typeof t == "symbol" ? t : t + "";
}
-function dke(e, t) {
+function nAe(e, t) {
if (typeof e != "object" || !e) return e;
var n = e[Symbol.toPrimitive];
if (n !== void 0) {
@@ -66001,16 +66829,16 @@ function dke(e, t) {
}
return (t === "string" ? String : Number)(e);
}
-var fke = ["axis", "item"], pke = Q5(Q5({}, q5), {}, {
+var rAe = ["axis", "item"], iAe = Q5(Q5({}, q5), {}, {
layout: "radial",
startAngle: 0,
endAngle: 360
-}), mke = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
- var n = Cz(e, pke);
+}), aAe = /*#__PURE__*/ (0, I.forwardRef)((e, t) => {
+ var n = Gz(e, iAe);
return /*#__PURE__*/ I.createElement(J5, {
chartName: "RadialBarChart",
defaultTooltipEventType: "axis",
- validateTooltipEventTypes: fke,
+ validateTooltipEventTypes: rAe,
tooltipPayloadSearcher: l2,
categoricalChartProps: n,
ref: t
@@ -66019,7 +66847,7 @@ var fke = ["axis", "item"], pke = Q5(Q5({}, q5), {}, {
//#endregion
//#region src/react/charts/cn.ts
function $5(...e) {
- return sw(Jm(e));
+ return _w(Jm(e));
}
//#endregion
//#region src/react/evilcharts/registry/ui/recharts-chart.tsx
@@ -66027,7 +66855,7 @@ var e7 = {
light: "",
dark: ".dark"
}, t7 = Object.keys(e7);
-function hke(e) {
+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.`);
}
var n7 = I.createContext(null);
@@ -66041,7 +66869,7 @@ function i7({ id: e, config: t, initialDimension: n = {
height: 200
}, className: r, children: i, footer: a, ...o }) {
let s = I.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;
- return hke(t), /* @__PURE__ */ (0, L.jsx)(n7.Provider, {
+ return oAe(t), /* @__PURE__ */ (0, L.jsx)(n7.Provider, {
value: { config: t },
children: /* @__PURE__ */ (0, L.jsxs)("div", {
"data-slot": "chart",
@@ -66053,7 +66881,7 @@ function i7({ id: e, config: t, initialDimension: n = {
id: c,
config: t
}),
- /* @__PURE__ */ (0, L.jsx)(wW, {
+ /* @__PURE__ */ (0, L.jsx)(XW, {
className: "min-h-0 w-full flex-1",
initialDimension: n,
children: i
@@ -66072,7 +66900,7 @@ function a7({ isLoading: e }) {
})
}) : null;
}
-function gke(e, t) {
+function sAe(e, t) {
let n = e.length;
if (n >= t) return e.slice(0, t);
let r = [], i = Math.floor(t / n), a = t % n;
@@ -66087,7 +66915,7 @@ var o7 = ({ id: e, config: t }) => {
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 ? [] : gke(r, c7(n)).map((e, n) => ` --color-${t}-${n}: ${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 /* @__PURE__ */ (0, L.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });
};
@@ -66101,15 +66929,15 @@ function c7(e) {
let t = t7.map((t) => e.colors?.[t]?.length ?? 0);
return Math.max(...t, 1);
}
-var _ke = (e = 10, t = 0, n = 70) => {
+var cAe = (e = 10, t = 0, n = 70) => {
let r = n - t;
return Array.from({ length: e }, () => ({ loading: Math.floor(Math.random() * r) + t }));
-}, vke = {
+}, lAe = {
sm: "rounded-sm",
md: "rounded-md",
lg: "rounded-lg",
xl: "rounded-xl"
-}, yke = {
+}, uAe = {
default: "bg-background",
"frosted-glass": "bg-background/70 backdrop-blur-sm"
};
@@ -66136,7 +66964,7 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
if (!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", vke[p], yke[m], n),
+ 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),
children: [_ ? null : g, /* @__PURE__ */ (0, L.jsx)("div", {
className: "grid gap-1.5",
children: t.filter((e) => e.type !== "none").map((e, t) => {
@@ -66150,7 +66978,7 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
"w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",
"my-0.5": _ && r === "dashed"
}),
- style: bke(n, o)
+ style: dAe(n, o)
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: $5("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),
children: [/* @__PURE__ */ (0, L.jsxs)("div", {
@@ -66169,10 +66997,10 @@ function l7({ active: e, payload: t, className: n, indicator: r = "dot", hideLab
})]
});
}
-function bke(e, t) {
+function dAe(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)(lbe, {
+var u7 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, L.jsx)(exe, {
animationDuration: e,
...t
});
@@ -66189,7 +67017,7 @@ function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
onClick: () => {
c && s?.(o === r ? null : r);
},
- children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(xke, {
+ children: [i?.icon && !t ? /* @__PURE__ */ (0, L.jsx)(i.icon, {}) : /* @__PURE__ */ (0, L.jsx)(fAe, {
variant: l,
dataKey: r,
colorsCount: d
@@ -66198,8 +67026,8 @@ function d7({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAl
})
}) : null;
}
-function xke({ variant: e, dataKey: t, colorsCount: n }) {
- let r = Ske(t, n), i = Cke(t, n);
+function fAe({ variant: e, dataKey: t, colorsCount: n }) {
+ let r = pAe(t, n), i = mAe(t, n);
switch (e) {
case "square": return /* @__PURE__ */ (0, L.jsx)("div", {
className: "h-2 w-2 shrink-0",
@@ -66231,10 +67059,10 @@ function xke({ variant: e, dataKey: t, colorsCount: n }) {
});
}
}
-function Ske(e, t) {
+function pAe(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 Cke(e, t) {
+function mAe(e, t) {
let n = {
WebkitMask: "linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",
WebkitMaskComposite: "xor",
@@ -66249,12 +67077,12 @@ function Cke(e, t) {
...n
};
}
-var f7 = wK, p7 = () => null, m7 = {
+var f7 = XK, p7 = () => null, m7 = {
stiffness: 300,
damping: 35,
mass: .8
};
-function wke({ range: e, totalPoints: t, containerRef: n, commit: r }) {
+function hAe({ 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,
@@ -66300,7 +67128,7 @@ function wke({ range: e, totalPoints: t, containerRef: n, commit: r }) {
])
};
}
-function Tke({ 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 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 }) {
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))
@@ -66334,7 +67162,7 @@ function Tke({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
startIndex: n,
endIndex: r
};
- }, [C, v]), { isDragging: A, bind: j } = wke({
+ }, [C, v]), { isDragging: A, bind: j } = hAe({
range: E,
totalPoints: C,
containerRef: x,
@@ -66390,7 +67218,7 @@ function Tke({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "
}),
/* @__PURE__ */ (0, L.jsx)("div", {
className: "absolute inset-0 overflow-hidden rounded-md",
- children: /* @__PURE__ */ (0, L.jsx)(Eke, {
+ children: /* @__PURE__ */ (0, L.jsx)(_Ae, {
data: e,
keys: S,
chartConfig: t,
@@ -66459,7 +67287,7 @@ function h7({ side: e, position: t, label: n, bind: r }) {
})]
});
}
-function Eke({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {
+function _Ae({ 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)
@@ -66516,10 +67344,10 @@ function Eke({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
})] })] }, e);
})] });
- if (r === "line") return /* @__PURE__ */ (0, L.jsx)(wW, {
+ if (r === "line") return /* @__PURE__ */ (0, L.jsx)(XW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(GOe, {
+ children: /* @__PURE__ */ (0, L.jsxs)(Ike, {
data: e,
margin: {
top: 4,
@@ -66543,7 +67371,7 @@ function Eke({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
});
if (r === "bar") {
let n = l ?? 3;
- return /* @__PURE__ */ (0, L.jsx)(wW, {
+ return /* @__PURE__ */ (0, L.jsx)(XW, {
width: "100%",
height: "100%",
children: /* @__PURE__ */ (0, L.jsxs)(W5, {
@@ -66572,10 +67400,10 @@ function Eke({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
- return /* @__PURE__ */ (0, L.jsx)(wW, {
+ return /* @__PURE__ */ (0, L.jsx)(XW, {
width: "100%",
height: "100%",
- children: /* @__PURE__ */ (0, L.jsxs)(cke, {
+ children: /* @__PURE__ */ (0, L.jsxs)($ke, {
data: e,
margin: {
top: 4,
@@ -66601,7 +67429,7 @@ function Eke({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart
})
});
}
-function Dke({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
+function vAe({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
let [r, i] = I.useState({
startIndex: t,
endIndex: n ?? Math.max(0, e.length - 1)
@@ -66625,7 +67453,7 @@ function Dke({ data: e, defaultStartIndex: t = 0, defaultEndIndex: n }) {
}
};
}
-var Oke = {
+var yAe = {
dots: ({ id: e }) => /* @__PURE__ */ (0, L.jsx)("pattern", {
id: e,
x: "0",
@@ -66798,7 +67626,7 @@ var Oke = {
})
};
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 = Oke[e];
+ let t = (0, I.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = yAe[e];
return /* @__PURE__ */ (0, L.jsxs)(t2, {
zIndex: -1,
children: [/* @__PURE__ */ (0, L.jsxs)("defs", { children: [
@@ -66829,7 +67657,7 @@ function g7({ variant: e }) {
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx
-var _7 = 2, kke = "loading", Ake = 2e3, jke = "evil-stacked", Mke = .5, Nke = .05, Pke = [
+var _7 = 2, bAe = "loading", xAe = 2e3, SAe = "evil-stacked", CAe = .5, wAe = .05, TAe = [
0,
.7,
.5,
@@ -66841,7 +67669,7 @@ function y7() {
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 } = $ke(m, h), { visibleData: T, brushProps: E } = Dke({ data: t }), D = (0, I.useMemo)(() => {
+ 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 : {};
return {
slot: {
@@ -66884,7 +67712,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac
children: /* @__PURE__ */ (0, L.jsxs)(i7, {
className: r,
config: e,
- footer: O && !m && /* @__PURE__ */ (0, L.jsx)(Tke, {
+ footer: O && !m && /* @__PURE__ */ (0, L.jsx)(gAe, {
data: t,
chartConfig: e,
xDataKey: g,
@@ -66915,7 +67743,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac
d && /* @__PURE__ */ (0, L.jsx)(g7, { variant: d }),
/* @__PURE__ */ (0, L.jsx)(O6, { color: "white" }),
D.chartChildren,
- m && /* @__PURE__ */ (0, L.jsx)(eAe, {
+ m && /* @__PURE__ */ (0, L.jsx)(GAe, {
chartId: _,
onShimmerExit: w
})
@@ -66924,7 +67752,7 @@ function b7({ config: e, data: t, children: n, className: r, chartProps: i, stac
})
});
}
-function Fke({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {
+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();
if (f) return null;
let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {
@@ -66947,7 +67775,7 @@ function Fke({ 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 ? jke : void 0,
+ stackId: u ? SAe : void 0,
fill: `url(#${b}-colors-${e})`,
radius: S,
isAnimationActive: !1,
@@ -66964,44 +67792,44 @@ function Fke({ dataKey: e, variant: t = "default", radius: n, animationType: r,
}),
...c
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(Wke, {
+ /* @__PURE__ */ (0, L.jsx)(FAe, {
id: b,
dataKey: e,
config: l
}),
- t === "hatched" && /* @__PURE__ */ (0, L.jsx)(Gke, {
+ t === "hatched" && /* @__PURE__ */ (0, L.jsx)(IAe, {
id: b,
dataKey: e
}),
- t === "duotone" && /* @__PURE__ */ (0, L.jsx)(qke, {
+ t === "duotone" && /* @__PURE__ */ (0, L.jsx)(RAe, {
id: b,
dataKey: e,
config: l
}),
- t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(Jke, {
+ t === "duotone-reverse" && /* @__PURE__ */ (0, L.jsx)(zAe, {
id: b,
dataKey: e,
config: l
}),
- t === "gradient" && /* @__PURE__ */ (0, L.jsx)(Yke, {
+ t === "gradient" && /* @__PURE__ */ (0, L.jsx)(BAe, {
id: b,
dataKey: e
}),
- t === "stripped" && /* @__PURE__ */ (0, L.jsx)(Xke, {
+ t === "stripped" && /* @__PURE__ */ (0, L.jsx)(VAe, {
id: b,
dataKey: e
}),
- s && /* @__PURE__ */ (0, L.jsx)(Kke, {
+ s && /* @__PURE__ */ (0, L.jsx)(LAe, {
id: b,
dataKey: e
}),
- o && /* @__PURE__ */ (0, L.jsx)(Zke, {
+ o && /* @__PURE__ */ (0, L.jsx)(HAe, {
id: b,
dataKey: e
})
] })] });
}
-function Ike({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
+function DAe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {
let { isLoading: o, isHorizontal: s } = y7();
return o ? null : /* @__PURE__ */ (0, L.jsx)(W8, {
tickLine: e,
@@ -67012,7 +67840,7 @@ function Ike({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...a
});
}
-function Lke({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {
+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();
return s ? null : /* @__PURE__ */ (0, L.jsx)(Y8, {
tickLine: e,
@@ -67024,7 +67852,7 @@ function Lke({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap
...o
});
}
-function Rke({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
+function kAe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
let { isHorizontal: i } = y7();
return /* @__PURE__ */ (0, L.jsx)(G6, {
strokeDasharray: e,
@@ -67033,7 +67861,7 @@ function Rke({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {
...r
});
}
-function zke({ variant: e, roundness: t, defaultIndex: n }) {
+function AAe({ variant: e, roundness: t, defaultIndex: n }) {
let { isLoading: r, selectedDataKey: i } = y7();
return r ? null : /* @__PURE__ */ (0, L.jsx)(u7, {
cursor: !1,
@@ -67045,7 +67873,7 @@ function zke({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function Bke({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {
+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, {
verticalAlign: n,
@@ -67059,7 +67887,7 @@ function Bke({ 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 = Vke(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : Hke(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = Uke({
+ 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({
isClickable: d,
selectedDataKey: _,
dataKey: o,
@@ -67071,7 +67899,7 @@ var x7 = (e) => {
c,
0,
0
- ] : c, A = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(PJ, {
+ ] : c, A = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(eY, {
x: t,
y: n,
width: r,
@@ -67082,7 +67910,7 @@ var x7 = (e) => {
filter: E,
stroke: S ? `url(#${a}-colors-${o})` : void 0,
strokeWidth: S ? 1 : void 0
- }), C && /* @__PURE__ */ (0, L.jsx)(PJ, {
+ }), C && /* @__PURE__ */ (0, L.jsx)(eY, {
x: t,
y: n - 4,
width: r,
@@ -67093,7 +67921,7 @@ var x7 = (e) => {
return /* @__PURE__ */ (0, L.jsxs)("g", {
style: O,
onClick: b,
- children: [/* @__PURE__ */ (0, L.jsx)(PJ, {
+ children: [/* @__PURE__ */ (0, L.jsx)(eY, {
...e,
fill: "transparent"
}), w ? /* @__PURE__ */ (0, L.jsx)(Mf.g, {
@@ -67104,7 +67932,7 @@ var x7 = (e) => {
children: A
}) : A]
});
-}, Vke = (e, t, n, r, i) => {
+}, MAe = (e, t, n, r, i) => {
if (e === "none" || t < 0 || n <= 0) return null;
let a = n - 1, o = a / 2, s;
switch (e) {
@@ -67119,11 +67947,11 @@ var x7 = (e) => {
break;
default: s = t;
}
- let c = s * Nke * 1e3, l = Mke * 1e3, u = c + l, d = Date.now() - i;
+ let c = s * wAe * 1e3, l = CAe * 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: Pke,
+ ease: TAe,
delay: Math.max(0, c - d) / 1e3
};
return r ? {
@@ -67137,7 +67965,7 @@ var x7 = (e) => {
transition: p,
style: { originY: 1 }
};
-}, Hke = (e, t, n) => {
+}, NAe = (e, t, n) => {
switch (e) {
case "hatched": return `url(#${t}-hatched-${n})`;
case "duotone": return `url(#${t}-duotone-${n})`;
@@ -67146,10 +67974,10 @@ var x7 = (e) => {
case "stripped": return `url(#${t}-stripped-${n})`;
default: return `url(#${t}-colors-${n})`;
}
-}, Uke = ({ isClickable: e, selectedDataKey: t, dataKey: n, enableHoverHighlight: r, isMouseInChart: i, isActive: a }) => {
+}, PAe = ({ 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;
-}, Wke = ({ id: e, dataKey: t, config: n }) => {
+}, FAe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -67171,7 +67999,7 @@ var x7 = (e) => {
}, i);
})
});
-}, Gke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, IAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-hatched-mask-pattern`,
x: "0",
@@ -67212,7 +68040,7 @@ var x7 = (e) => {
mask: `url(#${e}-hatched-mask-${t})`
})
})
-] }), Kke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), LAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("pattern", {
id: `${e}-buffer-hatched-mask-pattern`,
x: "0",
@@ -67253,7 +68081,7 @@ var x7 = (e) => {
mask: `url(#${e}-buffer-hatched-mask-${t})`
})
})
-] }), qke = ({ id: e, dataKey: t, config: n }) => {
+] }), RAe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -67321,7 +68149,7 @@ var x7 = (e) => {
})
})
] });
-}, Jke = ({ id: e, dataKey: t, config: n }) => {
+}, zAe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
@@ -67389,7 +68217,7 @@ var x7 = (e) => {
})
})
] });
-}, Yke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+}, BAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-gradient-mask-gradient`,
x1: "0",
@@ -67426,7 +68254,7 @@ var x7 = (e) => {
mask: `url(#${e}-gradient-mask-${t})`
})
})
-] }), Xke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
+] }), VAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsxs)("linearGradient", {
id: `${e}-stripped-mask-gradient`,
x1: "0",
@@ -67463,7 +68291,7 @@ var x7 = (e) => {
mask: `url(#${e}-stripped-mask-${t})`
})
})
-] }), Zke = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+] }), HAe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-bar-glow-${t}`,
x: "-100%",
y: "-100%",
@@ -67483,35 +68311,35 @@ var x7 = (e) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), Qke = (e = 17, t = .05, n = .9) => Array.from({ length: e }, (r, i) => {
+}), UAe = (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 $ke(e, t = 12) {
+function WAe(e, t = 12) {
let [n, r] = (0, I.useState)(!1), i = (0, I.useCallback)(() => {
e && r((e) => !e);
}, [e]);
return {
- loadingData: (0, I.useMemo)(() => _ke(t, 20, 80), [t, n]),
+ loadingData: (0, I.useMemo)(() => cAe(t, 20, 80), [t, n]),
onShimmerExit: i
};
}
-var eAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {
- dataKey: kke,
+var GAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(I8, {
+ dataKey: bAe,
fill: "currentColor",
fillOpacity: .15,
radius: _7,
isAnimationActive: !1,
legendType: "none",
style: { mask: `url(#${e}-loading-mask)` }
-}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(tAe, {
+}), /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(KAe, {
chartId: e,
onShimmerExit: t
-}) })] }), tAe = ({ chartId: e, onShimmerExit: t }) => {
- let n = Qke(), r = (0, I.useRef)(-1);
+}) })] }), KAe = ({ chartId: e, onShimmerExit: t }) => {
+ let n = UAe(), r = (0, I.useRef)(-1);
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [
/* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-loading-mask-gradient`,
@@ -67542,7 +68370,7 @@ var eAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
initial: { x: -1 },
animate: { x: 2 },
transition: {
- duration: Ake / 1e3,
+ duration: xAe / 1e3,
ease: "linear",
repeat: Infinity,
repeatType: "loop"
@@ -67564,10 +68392,10 @@ var eAe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, L.jsxs)(L.Fr
})
] });
};
-b7.Bar = Fke, b7.XAxis = Ike, b7.YAxis = Lke, b7.Grid = Rke, b7.Tooltip = zke, b7.Legend = Bke, b7.Brush = p7;
+b7.Bar = EAe, b7.XAxis = DAe, b7.YAxis = OAe, b7.Grid = kAe, b7.Tooltip = AAe, b7.Legend = jAe, b7.Brush = p7;
//#endregion
//#region src/react/charts/chart-card.tsx
-var S7 = `${Cw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
+var S7 = `${Nw({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;
function C7({ 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",
@@ -67594,7 +68422,7 @@ var w7 = [
"var(--color-chart-5)",
"var(--color-chart-6)"
], T7 = (e) => ({ light: [e] }), E7 = (e) => `s${e}`;
-function nAe(e) {
+function qAe(e) {
return Object.fromEntries(e.map((e, t) => [E7(t), {
label: e,
colors: T7(w7[t % w7.length])
@@ -67619,7 +68447,7 @@ function O7({ swatch: e, name: t, value: n }) {
});
}
var k7 = "size-2.5 shrink-0 rounded-xs";
-function rAe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {
+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");
if (!e || !s.length) return /* @__PURE__ */ (0, L.jsx)("span", { className: "p-4" });
let c = a || typeof n != "string" ? null : o[n]?.label ?? n;
@@ -67644,7 +68472,7 @@ function rAe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLab
function A7({ nameKey: e, valueKey: t, hideLabel: n }) {
return /* @__PURE__ */ (0, L.jsx)(u7, {
cursor: !1,
- content: /* @__PURE__ */ (0, L.jsx)(rAe, {
+ content: /* @__PURE__ */ (0, L.jsx)(JAe, {
nameKey: e,
valueKey: t,
hideLabel: n
@@ -67721,7 +68549,7 @@ var P7 = [
"周六",
"周日"
], F7 = (e, t) => e ? Math.max(.12, e / t) : 0;
-function iAe(e) {
+function YAe(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;
@@ -67738,7 +68566,7 @@ function iAe(e) {
total: n.reduce((e, t) => e + t, 0)
};
}
-function aAe(e) {
+function XAe(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,
@@ -67777,19 +68605,19 @@ var I7 = 14, L7 = 17, R7 = {
fill: "fill-chart-5",
dot: "bg-chart-5"
}
-}, oAe = {
+}, ZAe = {
start: "translate-x-0",
center: "-translate-x-1/2",
end: "-translate-x-full"
};
-function sAe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {
+function QAe({ 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} ${oAe[a]}`,
+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${D7} ${ZAe[a]}`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "font-medium text-foreground",
children: e.label
@@ -67847,7 +68675,7 @@ function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
}, e.key);
})]
})
- }), g && _ ? /* @__PURE__ */ (0, L.jsx)(sAe, {
+ }), g && _ ? /* @__PURE__ */ (0, L.jsx)(QAe, {
cell: g,
series: t.series,
tone: c,
@@ -67863,7 +68691,7 @@ function z7({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:
]
});
}
-var cAe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [P7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
+var $Ae = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [P7.map((e, t) => /* @__PURE__ */ (0, L.jsx)("text", {
x: 0,
y: 18 + t * L7 + 7,
dominantBaseline: "middle",
@@ -67877,7 +68705,7 @@ var cAe = /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [P7.map((e, t) =>
children: t
}, t))] });
function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {
- let o = iAe(e), s = aAe(e);
+ let o = YAe(e), s = XAe(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, {
@@ -67888,7 +68716,7 @@ function B7({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a
total: o.total,
columns: 24,
rows: 7,
- axis: cAe,
+ axis: $Ae,
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, {
title: n,
@@ -67954,20 +68782,20 @@ function V7({ children: e, className: t = "", previewCount: n = 10 }) {
onClick: () => {
c(!0), o((e) => !e);
},
- children: /* @__PURE__ */ (0, L.jsx)(rS, { "aria-hidden": !0 })
+ children: /* @__PURE__ */ (0, L.jsx)(aS, { "aria-hidden": !0 })
}) : null]
});
}
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx
-var lAe = "30%", uAe = "100%", H7 = 5, U7 = 14, dAe = 5, W7 = 1500, G7 = (0, I.createContext)(null);
+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);
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 = lAe, outerRadius: l = uAe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {
- let m = (0, I.useId)().replace(/:/g, ""), [h, g] = (0, I.useState)(u), _ = vAe(f), v = hAe(o), y = (0, I.useCallback)((e, t) => {
+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) => {
g(e), d?.(e === null ? null : {
dataKey: e,
value: t ?? 0
@@ -67999,7 +68827,7 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
children: /* @__PURE__ */ (0, L.jsxs)(i7, {
className: i,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(mke, {
+ children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: f }), /* @__PURE__ */ (0, L.jsxs)(aAe, {
id: m,
data: f ? _ : b,
innerRadius: c,
@@ -68018,8 +68846,8 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
}),
p && /* @__PURE__ */ (0, L.jsx)(g7, { variant: p }),
r,
- f && /* @__PURE__ */ (0, L.jsx)(yAe, {}),
- /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(gAe, {
+ f && /* @__PURE__ */ (0, L.jsx)(uje, {}),
+ /* @__PURE__ */ (0, L.jsx)("defs", { children: /* @__PURE__ */ (0, L.jsx)(sje, {
config: e,
chartId: m
}) })
@@ -68028,7 +68856,7 @@ function q7({ config: e, data: t, nameKey: n, children: r, className: i, chartPr
})
});
}
-function fAe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {
+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();
return s ? null : /* @__PURE__ */ (0, L.jsx)(y6, {
dataKey: e,
@@ -68053,7 +68881,7 @@ function fAe({ dataKey: e, cornerRadius: t = H7, barSize: n = U7, showBackground
...a
});
}
-function pAe({ variant: e, roundness: t, defaultIndex: n }) {
+function ije({ variant: e, roundness: t, defaultIndex: n }) {
let { nameKey: r, isLoading: i } = K7();
return i ? null : /* @__PURE__ */ (0, L.jsx)(u7, {
defaultIndex: n,
@@ -68066,7 +68894,7 @@ function pAe({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function mAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
+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, {
verticalAlign: n,
@@ -68080,7 +68908,7 @@ function mAe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-function hAe(e) {
+function oje(e) {
switch (e) {
case "semi": return {
startAngle: 180,
@@ -68096,7 +68924,7 @@ function hAe(e) {
};
}
}
-var gAe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
+var sje = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment, { children: Object.entries(e).map(([e, n]) => {
let r = c7(n);
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${t}-radial-colors-${e}`,
@@ -68119,13 +68947,13 @@ var gAe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, L.jsx)(L.Fragment,
})
}, `${t}-radial-colors-${e}`);
}) });
-function _Ae() {
- return Array.from({ length: dAe }, (e, t) => ({
+function cje() {
+ return Array.from({ length: nje }, (e, t) => ({
name: `loading${t}`,
value: 40 + Math.random() * 60
}));
}
-function vAe(e) {
+function lje(e) {
let [t, n] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
@@ -68133,9 +68961,9 @@ function vAe(e) {
n((e) => e + 1);
}, W7);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => _Ae(), [t]);
+ }, [e]), (0, I.useMemo)(() => cje(), [t]);
}
-var yAe = () => /* @__PURE__ */ (0, L.jsx)(y6, {
+var uje = () => /* @__PURE__ */ (0, L.jsx)(y6, {
dataKey: "value",
cornerRadius: H7,
barSize: U7,
@@ -68149,17 +68977,17 @@ var yAe = () => /* @__PURE__ */ (0, L.jsx)(y6, {
fillOpacity: .25
})
});
-q7.RadialBar = fAe, q7.Tooltip = pAe, q7.Legend = mAe;
+q7.RadialBar = rje, q7.Tooltip = ije, q7.Legend = aje;
//#endregion
//#region src/react/stats/radial-card.tsx
-var bAe = [
+var dje = [
"bg-chart-1",
"bg-chart-2",
"bg-chart-3",
"bg-chart-4",
"bg-chart-5",
"bg-chart-6"
-], xAe = [
+], fje = [
"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",
@@ -68200,13 +69028,13 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {
children: /* @__PURE__ */ (0, L.jsxs)(q7, {
data: f,
nameKey: "slice",
- config: nAe(s.map((e) => e.name)),
- max: rfe(s.map((e) => e.value)),
+ config: qAe(s.map((e) => e.name)),
+ max: Efe(s.map((e) => e.value)),
innerRadius: "22%",
className: "aspect-auto h-75 max-sm:h-65",
children: [/* @__PURE__ */ (0, L.jsx)(q7.RadialBar, {
dataKey: "value",
- barSize: ife(s.length),
+ barSize: Dfe(s.length),
radialBarProps: {
shape: (e) => /* @__PURE__ */ (0, L.jsx)(dY, {
...e,
@@ -68232,13 +69060,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 ${xAe[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 ${fje[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 ${bAe[t % 6]}`
+ className: `size-3 shrink-0 rounded-sm ${dje[t % 6]}`
}), e.name]
}),
/* @__PURE__ */ (0, L.jsx)("b", {
@@ -68257,8 +69085,8 @@ function J7({ title: e, rows: t, unit: n = "个视频" }) {
}
//#endregion
//#region src/react/stats/stats-page.tsx
-var SAe = 10, Y7 = w7[5], CAe = w7[4], wAe = `${Cw()} flex flex-col gap-4`, TAe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", EAe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", X7 = "开始播放后,这里会显示最近的真实观看证据。", DAe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", OAe = "添加媒体文件夹后,这里会显示存储空间。";
-function Z7({ term: e, value: t }) {
+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 }) {
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", {
@@ -68270,7 +69098,7 @@ function Z7({ term: e, value: t }) {
})]
});
}
-function Q7({ term: e, value: t, total: n }) {
+function Z7({ 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", {
@@ -68279,17 +69107,17 @@ function Q7({ 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: [BL(t, n), "%"]
+ children: [cR(t, n), "%"]
})]
})]
- }), /* @__PURE__ */ (0, L.jsx)(Aw, {
+ }), /* @__PURE__ */ (0, L.jsx)(zw, {
label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
value: t,
max: Math.max(n, 1)
})]
});
}
-function $7({ term: e, figure: t, unit: n }) {
+function Q7({ 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: [
@@ -68308,16 +69136,16 @@ function $7({ term: e, figure: t, unit: n }) {
]
});
}
-function e9({ headline: e, children: t }) {
+function $7({ headline: e, children: t }) {
return /* @__PURE__ */ (0, L.jsxs)("div", {
- className: `${wAe} md:flex-row md:gap-6`,
+ className: `${hje} md:flex-row md:gap-6`,
children: [e, /* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 grow",
children: t
})]
});
}
-function kAe({ data: t, configurable: n, openMediaSettings: r }) {
+function xje({ 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", {
@@ -68345,14 +69173,14 @@ function kAe({ data: t, configurable: n, openMediaSettings: r }) {
unit: "个视频",
series: "视频",
color: Y7,
- rows: cfe(t.by_length)
+ rows: jfe(t.by_length)
}),
/* @__PURE__ */ (0, L.jsx)(N7, {
title: "画质",
unit: "个视频",
series: "视频",
color: Y7,
- rows: UL(t.by_quality)
+ rows: dR(t.by_quality)
}),
/* @__PURE__ */ (0, L.jsx)(N7, {
title: "文件类型",
@@ -68360,28 +69188,28 @@ function kAe({ data: t, configurable: n, openMediaSettings: r }) {
series: "条目",
color: Y7,
layout: "horizontal",
- rows: ofe(t.by_medium)
+ rows: kfe(t.by_medium)
})
]
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: TS,
+ icon: FS,
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)(fw, {
+ }) : null, /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "secondary",
href: "/follow-manage?tab=add",
size: "small",
children: "添加关注"
})] }),
- children: TAe
+ children: gje
});
}
-function AAe({ data: e }) {
+function Sje({ data: e }) {
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(B7, {
activity: e.play_activity,
title: "播放时间",
@@ -68396,36 +69224,36 @@ function AAe({ data: e }) {
title: "播放次数",
unit: "个作品",
series: "作品",
- color: CAe,
- rows: ufe(e.replays)
+ color: mje,
+ rows: Nfe(e.replays)
})] });
}
-function jAe({ attribution: e }) {
+function Cje({ attribution: e }) {
let t = e.videos;
return /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col",
children: [
- /* @__PURE__ */ (0, L.jsx)(Q7, {
+ /* @__PURE__ */ (0, L.jsx)(Z7, {
term: "有创作者",
value: e.creator,
total: t
}),
- /* @__PURE__ */ (0, L.jsx)(Q7, {
+ /* @__PURE__ */ (0, L.jsx)(Z7, {
term: "有番号",
value: e.code,
total: t
}),
- /* @__PURE__ */ (0, L.jsx)(Q7, {
+ /* @__PURE__ */ (0, L.jsx)(Z7, {
term: "有厂牌",
value: e.studio,
total: t
}),
- /* @__PURE__ */ (0, L.jsx)(Q7, {
+ /* @__PURE__ */ (0, L.jsx)(Z7, {
term: "已抽帧",
value: e.thumb,
total: t
}),
- /* @__PURE__ */ (0, L.jsx)(Q7, {
+ /* @__PURE__ */ (0, L.jsx)(Z7, {
term: "已探测时长",
value: e.duration,
total: t
@@ -68433,7 +69261,7 @@ function jAe({ attribution: e }) {
]
});
}
-function MAe({ volume: e }) {
+function wje({ 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",
@@ -68450,11 +69278,11 @@ function MAe({ 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: [BL(n, t), "%"]
+ children: [cR(n, t), "%"]
})]
})]
}),
- t == null ? null : /* @__PURE__ */ (0, L.jsx)(Aw, {
+ t == null ? null : /* @__PURE__ */ (0, L.jsx)(zw, {
label: `${e.label}空间使用率`,
value: n,
max: Math.max(t, 1)
@@ -68472,25 +69300,25 @@ function MAe({ volume: e }) {
]
});
}
-function NAe({ volumes: e, configurable: t, openMediaSettings: n }) {
+function Tje({ 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)(MAe, { volume: e }, `${e.kind}:${e.label}`))
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ children: e.map((e) => /* @__PURE__ */ (0, L.jsx)(wje, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: mS,
+ icon: vS,
title: "还没有存储来源",
actions: t ? /* @__PURE__ */ (0, L.jsx)(G, {
size: "small",
onClick: n,
children: "添加媒体文件夹"
}) : void 0,
- children: OAe
+ children: bje
});
}
-function PAe({ tags: e, tagLabel: t, onTag: n }) {
+function Eje({ tags: e, tagLabel: t, onTag: n }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)(V7, {
- previewCount: SAe,
+ previewCount: pje,
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",
@@ -68514,24 +69342,24 @@ function PAe({ tags: e, tagLabel: t, onTag: n }) {
]
})
}, e.k))
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: gS,
+ icon: ES,
title: "还没有内容标签",
- actions: /* @__PURE__ */ (0, L.jsx)(fw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: EAe
+ children: _je
});
}
-function FAe({ rows: e }) {
+function Dje({ rows: e }) {
return e.length ? /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex flex-col gap-5",
children: e.map((e) => {
- let t = VL(e);
+ let t = lR(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", {
@@ -68539,41 +69367,41 @@ function FAe({ 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: nfe(e),
+ href: Tfe(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: tfe(e) })]
+ children: [/* @__PURE__ */ (0, L.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, L.jsx)("span", { children: wfe(e) })]
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "min-w-0 basis-40",
- children: [/* @__PURE__ */ (0, L.jsx)(Aw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(zw, {
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)}% · 到达 ${HL(e).toFixed(0)}%`
+ children: `真实 ${t.toFixed(0)}% · 到达 ${uR(e).toFixed(0)}%`
})]
})]
}, `${e.kind}:${e.id}`);
})
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: hS,
+ icon: yS,
title: "还没有观看记录",
- actions: /* @__PURE__ */ (0, L.jsx)(fw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "secondary",
href: "/",
size: "small",
children: "浏览馆藏"
}),
- children: X7
+ children: vje
});
}
-function IAe({ sources: e, videos: t }) {
+function Oje({ 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", {
@@ -68592,7 +69420,7 @@ function IAe({ sources: e, videos: t }) {
})]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(Aw, {
+ /* @__PURE__ */ (0, L.jsx)(zw, {
label: `${e.k} 覆盖视频`,
value: e.assets,
max: Math.max(t, 1)
@@ -68603,27 +69431,27 @@ function IAe({ sources: e, videos: t }) {
})
]
}, e.k))
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: gS,
+ icon: ES,
title: "还没有标签来源",
- actions: /* @__PURE__ */ (0, L.jsx)(fw, {
+ actions: /* @__PURE__ */ (0, L.jsx)(Sw, {
variant: "secondary",
href: "/data-cleanup",
size: "small",
children: "补全资料"
}),
- children: DAe
+ children: yje
});
}
-function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
- return /* @__PURE__ */ (0, L.jsx)(XD, {
+function e9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
+ return /* @__PURE__ */ (0, L.jsx)(aO, {
id: e,
- className: fA({
+ className: gA({
interactive: !0,
selectable: !0
}),
- children: /* @__PURE__ */ (0, L.jsx)(gA, {
+ children: /* @__PURE__ */ (0, L.jsx)(bA, {
label: t,
icon: i,
accent: a,
@@ -68632,75 +69460,75 @@ function t9({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {
})
});
}
-function LAe(e) {
+function kje(e) {
let t = Nt({
- queryKey: RL,
- queryFn: ({ signal: e }) => zL(e)
+ queryKey: oR,
+ queryFn: ({ signal: e }) => sR(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!n) return /* @__PURE__ */ (0, L.jsx)(Lw, { 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 = BL(n.tag_cov, n.attribution.videos);
- return /* @__PURE__ */ (0, L.jsxs)(Dw, { 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 = cR(n.tag_cov, n.attribution.videos);
+ return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${a(s)}`
}),
- /* @__PURE__ */ (0, L.jsxs)(JD, {
+ /* @__PURE__ */ (0, L.jsxs)(rO, {
className: "flex flex-col gap-4",
children: [
- /* @__PURE__ */ (0, L.jsxs)(YD, {
+ /* @__PURE__ */ (0, L.jsxs)(iO, {
"aria-label": "统计视图",
- className: pA,
+ className: _A,
children: [
- /* @__PURE__ */ (0, L.jsx)(t9, {
+ /* @__PURE__ */ (0, L.jsx)(e9, {
id: "inventory",
label: "馆藏视频",
- icon: uS,
+ icon: fS,
accent: 0,
figure: o.toLocaleString(),
detail: a(s)
}),
- /* @__PURE__ */ (0, L.jsx)(t9, {
+ /* @__PURE__ */ (0, L.jsx)(e9, {
id: "viewing",
label: "看过",
- icon: pS,
+ icon: hS,
accent: 1,
figure: r.played.toLocaleString(),
- detail: efe(r.play_seconds)
+ detail: Cfe(r.play_seconds)
}),
- /* @__PURE__ */ (0, L.jsx)(t9, {
+ /* @__PURE__ */ (0, L.jsx)(e9, {
id: "coverage",
label: "内容标签",
- icon: gS,
+ icon: ES,
accent: 2,
figure: `${c}%`,
detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- /* @__PURE__ */ (0, L.jsx)(t9, {
+ /* @__PURE__ */ (0, L.jsx)(e9, {
id: "storage",
label: "使用空间",
- icon: mS,
+ icon: vS,
accent: 3,
figure: `${i.online} 个卷`,
detail: i.measured ? `已用 ${a(i.used)}` : "容量未取得"
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "inventory",
- children: /* @__PURE__ */ (0, L.jsx)(kAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(xje, {
data: n,
...e
})
}),
- /* @__PURE__ */ (0, L.jsxs)(ZD, {
+ /* @__PURE__ */ (0, L.jsxs)(oO, {
id: "viewing",
className: "flex flex-col gap-5",
- children: [/* @__PURE__ */ (0, L.jsx)(e9, {
- headline: /* @__PURE__ */ (0, L.jsx)($7, {
+ children: [/* @__PURE__ */ (0, L.jsx)($7, {
+ headline: /* @__PURE__ */ (0, L.jsx)(Q7, {
term: "观看",
figure: r.played.toLocaleString(),
unit: "个作品有播放记录"
@@ -68708,62 +69536,62 @@ function LAe(e) {
children: /* @__PURE__ */ (0, L.jsxs)("div", {
className: "inline-grid w-full gap-3 sm:grid-cols-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "馆藏观看",
value: r.library_played
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "在线直接观看",
value: r.online_played
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "高潮计数",
value: r.o_total
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "快进扫过",
value: r.skimmed
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "喜欢",
value: r.liked
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "明确不喜欢",
value: r.dislike
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "看过了",
value: r.seen
}),
- /* @__PURE__ */ (0, L.jsx)(Z7, {
+ /* @__PURE__ */ (0, L.jsx)(X7, {
term: "回收站",
value: r.trash
})
]
})
- }), /* @__PURE__ */ (0, L.jsx)(AAe, { data: n })]
+ }), /* @__PURE__ */ (0, L.jsx)(Sje, { data: n })]
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "coverage",
- children: /* @__PURE__ */ (0, L.jsx)(e9, {
- headline: /* @__PURE__ */ (0, L.jsx)($7, {
+ children: /* @__PURE__ */ (0, L.jsx)($7, {
+ headline: /* @__PURE__ */ (0, L.jsx)(Q7, {
term: "内容标签覆盖",
figure: `${c}%`,
unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`
}),
- children: /* @__PURE__ */ (0, L.jsx)(jAe, { attribution: n.attribution })
+ children: /* @__PURE__ */ (0, L.jsx)(Cje, { attribution: n.attribution })
})
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "storage",
- children: /* @__PURE__ */ (0, L.jsx)(e9, {
- headline: /* @__PURE__ */ (0, L.jsx)($7, {
+ children: /* @__PURE__ */ (0, L.jsx)($7, {
+ headline: /* @__PURE__ */ (0, L.jsx)(Q7, {
term: "使用空间",
figure: String(i.measured),
unit: "个卷已取得容量"
}),
- children: /* @__PURE__ */ (0, L.jsx)(NAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(Tje, {
volumes: n.storage_volumes,
...e
})
@@ -68771,50 +69599,50 @@ function LAe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(JD, {
- className: `${Cw({ padding: "none" })} flex flex-col`,
+ /* @__PURE__ */ (0, L.jsxs)(rO, {
+ className: `${Nw({ padding: "none" })} flex flex-col`,
children: [
/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsxs)(YD, {
+ children: /* @__PURE__ */ (0, L.jsxs)(iO, {
"aria-label": "统计维度",
- className: jM,
+ className: IM,
children: [
- /* @__PURE__ */ (0, L.jsx)(XD, {
+ /* @__PURE__ */ (0, L.jsx)(aO, {
id: "tags",
- className: MM,
+ className: LM,
children: "内容标签"
}),
- /* @__PURE__ */ (0, L.jsx)(XD, {
+ /* @__PURE__ */ (0, L.jsx)(aO, {
id: "recent",
- className: MM,
+ className: LM,
children: "最近看过"
}),
- /* @__PURE__ */ (0, L.jsx)(XD, {
+ /* @__PURE__ */ (0, L.jsx)(aO, {
id: "sources",
- className: MM,
+ className: LM,
children: "标签来源"
})
]
})
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "tags",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(PAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(Eje, {
tags: n.top_tags,
...e
})
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "recent",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(FAe, { rows: n.recent })
+ children: /* @__PURE__ */ (0, L.jsx)(Dje, { rows: n.recent })
}),
- /* @__PURE__ */ (0, L.jsx)(ZD, {
+ /* @__PURE__ */ (0, L.jsx)(oO, {
id: "sources",
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(IAe, {
+ children: /* @__PURE__ */ (0, L.jsx)(Oje, {
sources: n.tag_source,
videos: n.attribution.videos
})
@@ -68825,66 +69653,66 @@ function LAe(e) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function RAe(e, t) {
+function Aje(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function n9(e) {
+function t9(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 a9(e.source, t.source) || e.index - t.index;
+ return i9(e.target, t.target) || 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 o9(e) {
+function a9(e) {
return e.value;
}
-function zAe(e) {
+function jje(e) {
return e.index;
}
-function BAe(e) {
+function Mje(e) {
return e.nodes;
}
-function VAe(e) {
+function Nje(e) {
return e.links;
}
-function s9(e, t) {
+function o9(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function c9({ nodes: e }) {
+function s9({ 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 HAe() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = zAe, c = RAe, l, u, d = BAe, f = VAe, p = 6;
+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 m() {
let e = {
nodes: d.apply(null, arguments),
links: f.apply(null, arguments)
};
- return h(e), g(e), _(e), v(e), x(e), c9(e), e;
+ return h(e), g(e), _(e), v(e), x(e), s9(e), e;
}
m.update = function(e) {
- return c9(e), e;
+ return s9(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : n9(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : t9(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : n9(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : t9(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -68892,9 +69720,9 @@ function HAe() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : n9(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : t9(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : n9(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : t9(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -68910,12 +69738,12 @@ function HAe() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = 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);
+ 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);
}
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, o9), MX(t.targetLinks, o9)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(MX(t.sourceLinks, a9), MX(t.targetLinks, a9)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -68949,7 +69777,7 @@ function HAe() {
return o;
}
function b(e) {
- let n = kX(e, (e) => (r - t - (e.length - 1) * o) / MX(e, o9));
+ let n = kX(e, (e) => (r - t - (e.length - 1) * o) / MX(e, a9));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -68985,7 +69813,7 @@ function HAe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(a9), w(i, n);
+ l === void 0 && i.sort(i9), w(i, n);
}
}
function C(e, t, n) {
@@ -69001,7 +69829,7 @@ function HAe() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(a9), w(i, n);
+ l === void 0 && i.sort(i9), w(i, n);
}
}
function w(e, n) {
@@ -69022,12 +69850,12 @@ function HAe() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(i9);
- for (let { target: { targetLinks: t } } of e) t.sort(r9);
+ for (let { source: { sourceLinks: e } } of t) e.sort(r9);
+ for (let { target: { targetLinks: t } } of e) t.sort(n9);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(i9), n.sort(r9);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(r9), n.sort(n9);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -69057,15 +69885,15 @@ function HAe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var l9 = Math.PI, u9 = 2 * l9, d9 = 1e-6, UAe = u9 - d9;
-function f9() {
+var c9 = Math.PI, l9 = 2 * c9, u9 = 1e-6, Fje = l9 - u9;
+function d9() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function p9() {
- return new f9();
+function f9() {
+ return new d9();
}
-f9.prototype = p9.prototype = {
- constructor: f9,
+d9.prototype = f9.prototype = {
+ constructor: d9,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -69086,11 +69914,11 @@ f9.prototype = p9.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 > d9) {
- if (!(Math.abs(u * s - c * l) > d9) || !i) this._ += "L" + (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 {
- 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);
+ 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);
}
}
},
@@ -69098,7 +69926,7 @@ f9.prototype = p9.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) > d9 || Math.abs(this._y1 - l) > d9) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % u9 + u9), d > UAe ? 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))));
+ 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))));
},
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";
@@ -69109,90 +69937,90 @@ f9.prototype = p9.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function m9(e) {
+function p9(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function WAe(e) {
+function Ije(e) {
return e[0];
}
-function GAe(e) {
+function Lje(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var KAe = Array.prototype.slice;
+var Rje = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function qAe(e) {
+function zje(e) {
return e.source;
}
-function JAe(e) {
+function Bje(e) {
return e.target;
}
-function YAe(e) {
- var t = qAe, n = JAe, r = WAe, i = GAe, a = null;
+function Vje(e) {
+ var t = zje, n = Bje, r = Ije, i = Lje, a = null;
function o() {
- var o, s = KAe.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;
+ 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;
}
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 : m9(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : p9(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : m9(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : p9(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function XAe(e, t, n, r, i) {
+function Hje(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function ZAe() {
- return YAe(XAe);
+function Uje() {
+ return Vje(Hje);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function QAe(e) {
+function Wje(e) {
return [e.source.x1, e.y0];
}
-function $Ae(e) {
+function Gje(e) {
return [e.target.x0, e.y1];
}
-function eje() {
- return ZAe().source(QAe).target($Ae);
+function Kje() {
+ return Uje().source(Wje).target(Gje);
}
//#endregion
//#region src/react/taste/taste.ts
-var tje = "/api/taste", h9 = "/api/taste/refresh", nje = "/api/taste/import", rje = "/api/taste/source", g9 = (e) => ["taste", e], ije = ["taste", "refresh"], aje = [
+var qje = "/api/taste", m9 = "/api/taste/refresh", Jje = "/api/taste/import", Yje = "/api/taste/source", h9 = (e) => ["taste", e], Xje = ["taste", "refresh"], Zje = [
["7d", "最近 7 天"],
["30d", "最近 30 天"],
["90d", "最近 90 天"],
["365d", "最近一年"],
["all", "全部时间"]
-], _9 = (e, t) => hw(`${tje}?window=${e}`, t), oje = (e) => hw(h9, e);
-async function sje(e, t) {
+], g9 = (e, t) => Tw(`${qje}?window=${e}`, t), Qje = (e) => Tw(m9, e);
+async function $je(e, t) {
await X.fetchQuery({
- queryKey: g9(e),
- queryFn: () => _9(e, t)
+ queryKey: h9(e),
+ queryFn: () => g9(e, t)
});
}
-var cje = (e) => q(h9, {
+var eMe = (e) => q(m9, {
window: e,
background: !0
-}), lje = (e, t) => q(rje, {
+}), tMe = (e, t) => q(Yje, {
operation: "remove",
source_key: e,
window: t
});
-async function uje(e) {
- let t = await fetch(nje, {
+async function nMe(e) {
+ let t = await fetch(Jje, {
method: "POST",
credentials: "same-origin",
headers: {
@@ -69206,39 +70034,39 @@ async function uje(e) {
} catch {}
if (!t.ok) {
let e = n?.error;
- throw new pw(e || `导入失败(${t.status})`, t.status, n);
+ throw new Cw(e || `导入失败(${t.status})`, t.status, n);
}
return n;
}
-var dje = 1e4, v9 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", fje = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, pje = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);
-function mje(e) {
+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) {
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 hje(e) {
- let t = e.map(pje), n = Math.max(1, ...t);
+function sMe(e) {
+ let t = e.map(aMe), n = Math.max(1, ...t);
return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));
}
-var y9 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({
+var v9 = (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 gje(e) {
- let t = y9(e, 6);
+function cMe(e) {
+ let t = v9(e, 6);
return t.length < 3 ? [] : t;
}
-var b9 = {
+var y9 = {
width: 720,
height: 435
-}, x9 = {
+}, b9 = {
source: 145,
target: 545
};
-function _je(e = []) {
+function lMe(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 = HAe().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 = Pje().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...n.map((e) => ({
id: `source:${e}`,
name: e,
@@ -69253,7 +70081,7 @@ function _je(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = eje();
+ }), a = t.reduce((e, t) => e + t.value, 0), o = Kje();
return {
nodes: i.nodes.map((e) => ({
id: e.id,
@@ -69283,11 +70111,11 @@ function _je(e = []) {
total: a
};
}
-var vje = (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 }) {
+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 }) {
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)(w9, {
+ case "border": return /* @__PURE__ */ (0, L.jsx)(C9, {
cx: e,
cy: t,
dotId: c,
@@ -69296,7 +70124,7 @@ var vje = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(functio
className: i,
maskId: s
});
- case "colored-border": return /* @__PURE__ */ (0, L.jsx)(T9, {
+ case "colored-border": return /* @__PURE__ */ (0, L.jsx)(w9, {
cx: e,
cy: t,
dotId: c,
@@ -69305,7 +70133,7 @@ var vje = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(functio
className: i,
maskId: s
});
- default: return /* @__PURE__ */ (0, L.jsx)(C9, {
+ default: return /* @__PURE__ */ (0, L.jsx)(S9, {
cx: e,
cy: t,
dotId: c,
@@ -69315,7 +70143,7 @@ var vje = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(functio
maskId: s
});
}
-}), C9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, L.jsxs)("g", {
+}), S9 = 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", {
@@ -69335,8 +70163,8 @@ var vje = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, S9 = I.memo(functio
clipPath: `url(#dot-clip-${n})`
})]
}));
-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", {
+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"),
mask: o ? `url(#${o})` : void 0,
children: [
@@ -69373,8 +70201,8 @@ var w9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
}) })
]
}));
-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", {
+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"),
mask: o ? `url(#${o})` : void 0,
children: [
@@ -69403,17 +70231,17 @@ var T9 = I.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class
})
]
}));
-T9.displayName = "ColoredBorderDot";
+w9.displayName = "ColoredBorderDot";
//#endregion
//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx
-var yje = 1, bje = .3, xje = 6, E9 = 1500, D9 = "value", O9 = (0, I.createContext)(null);
-function k9() {
- let e = (0, I.use)(O9);
+var dMe = 1, fMe = .3, pMe = 6, T9 = 1500, E9 = "value", D9 = (0, I.createContext)(null);
+function O9() {
+ let e = (0, I.use)(D9);
if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");
return 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 = Pje(c, l), m = (0, I.useCallback)((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) => {
f(e), s?.(e);
}, [s]), h = (0, I.useMemo)(() => ({
config: e,
@@ -69426,37 +70254,37 @@ function A9({ config: e, data: t, children: n, className: r, chartProps: i, back
d,
m
]);
- return /* @__PURE__ */ (0, L.jsx)(O9, {
+ return /* @__PURE__ */ (0, L.jsx)(D9, {
value: h,
children: /* @__PURE__ */ (0, L.jsxs)(i7, {
className: r,
config: e,
- children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(oke, {
+ children: [/* @__PURE__ */ (0, L.jsx)(a7, { isLoading: c }), /* @__PURE__ */ (0, L.jsxs)(Zke, {
id: u,
data: c ? p : t,
...i,
children: [
a && /* @__PURE__ */ (0, L.jsx)(g7, { variant: a }),
n,
- c && /* @__PURE__ */ (0, L.jsx)(Fje, {})
+ c && /* @__PURE__ */ (0, L.jsx)(DMe, {})
]
})]
})
});
}
-function Sje({ dataKey: e, variant: t = "filled", fillOpacity: n = bje, 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, "");
+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, "");
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 } = Oje(a, d, e, p.dot);
+ }, m = t === "filled", { dot: h, activeDot: g } = bMe(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: yje,
+ strokeWidth: dMe,
fill: m ? `url(#${d}-radar-fill-${e})` : "none",
fillOpacity: m ? n * p.fill : 0,
dot: h,
@@ -69469,29 +70297,29 @@ function Sje({ dataKey: e, variant: t = "filled", fillOpacity: n = bje, isGlowin
},
...o
}), /* @__PURE__ */ (0, L.jsxs)("defs", { children: [
- /* @__PURE__ */ (0, L.jsx)(kje, {
+ /* @__PURE__ */ (0, L.jsx)(xMe, {
id: d,
dataKey: e,
config: s
}),
- /* @__PURE__ */ (0, L.jsx)(Aje, {
+ /* @__PURE__ */ (0, L.jsx)(SMe, {
id: d,
dataKey: e,
config: s
}),
- m && /* @__PURE__ */ (0, L.jsx)(jje, {
+ m && /* @__PURE__ */ (0, L.jsx)(CMe, {
id: d,
dataKey: e,
config: s
}),
- r && /* @__PURE__ */ (0, L.jsx)(Mje, {
+ r && /* @__PURE__ */ (0, L.jsx)(wMe, {
id: d,
dataKey: e
})
] })] });
}
-var j9 = () => null, M9 = () => null;
-function Cje({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
+var A9 = () => null, j9 = () => null;
+function hMe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {
return /* @__PURE__ */ (0, L.jsx)(I4, {
gridType: e,
stroke: t,
@@ -69500,22 +70328,22 @@ function Cje({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacit
...i
});
}
-function wje({ tick: e = {
+function gMe({ tick: e = {
fill: "currentColor",
fontSize: 12
}, tickLine: t = !1, ...n }) {
- let { isLoading: r } = k9();
+ let { isLoading: r } = O9();
return r ? null : /* @__PURE__ */ (0, L.jsx)(X4, {
tick: e,
tickLine: t,
...n
});
}
-function Tje({ tick: e = {
+function _Me({ tick: e = {
fill: "currentColor",
fontSize: 10
}, tickLine: t = !1, axisLine: n = !1, ...r }) {
- let { isLoading: i } = k9();
+ let { isLoading: i } = O9();
return i ? null : /* @__PURE__ */ (0, L.jsx)(W4, {
tick: e,
tickLine: t,
@@ -69523,8 +70351,8 @@ function Tje({ tick: e = {
...r
});
}
-function Eje({ variant: e, roundness: t, defaultIndex: n }) {
- let { isLoading: r, selectedDataKey: i } = k9();
+function vMe({ variant: e, roundness: t, defaultIndex: n }) {
+ let { isLoading: r, selectedDataKey: i } = O9();
return r ? null : /* @__PURE__ */ (0, L.jsx)(u7, {
defaultIndex: n,
cursor: !1,
@@ -69535,8 +70363,8 @@ function Eje({ variant: e, roundness: t, defaultIndex: n }) {
})
});
}
-function Dje({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {
- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = k9();
+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, {
verticalAlign: n,
align: t,
@@ -69548,22 +70376,22 @@ function Dje({ variant: e, align: t = "center", verticalAlign: n = "bottom", isC
})
});
}
-var Oje = (e, t, n, r) => {
+var bMe = (e, t, n, r) => {
let i = !1, a = !1;
return I.Children.forEach(e, (e) => {
if ((0, I.isValidElement)(e)) {
- if (e.type === j9) {
+ if (e.type === A9) {
let { variant: a } = e.props;
- i = /* @__PURE__ */ (0, L.jsx)(S9, {
+ i = /* @__PURE__ */ (0, L.jsx)(x9, {
type: a,
dataKey: n,
chartId: t,
fillOpacity: r
});
}
- if (e.type === M9) {
+ if (e.type === j9) {
let { variant: i } = e.props;
- a = /* @__PURE__ */ (0, L.jsx)(S9, {
+ a = /* @__PURE__ */ (0, L.jsx)(x9, {
type: i,
dataKey: n,
chartId: t,
@@ -69575,7 +70403,7 @@ var Oje = (e, t, n, r) => {
dot: i,
activeDot: a
};
-}, N9 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)("stop", {
+}, M9 = ({ 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]
@@ -69590,7 +70418,7 @@ var Oje = (e, t, n, r) => {
stopColor: `var(--color-${e}-${i}, var(--color-${e}-0))`,
stopOpacity: n?.[i]
}, a);
-}) }), kje = ({ id: e, dataKey: t, config: n }) => {
+}) }), xMe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-colors-${t}`,
@@ -69598,12 +70426,12 @@ var Oje = (e, t, n, r) => {
y1: "0",
x2: "1",
y2: "0",
- children: /* @__PURE__ */ (0, L.jsx)(N9, {
+ children: /* @__PURE__ */ (0, L.jsx)(M9, {
dataKey: t,
colorsCount: r
})
});
-}, Aje = ({ id: e, dataKey: t, config: n }) => {
+}, SMe = ({ id: e, dataKey: t, config: n }) => {
let r = c7(n[t] ?? {});
return /* @__PURE__ */ (0, L.jsx)("linearGradient", {
id: `${e}-radar-stroke-${t}`,
@@ -69611,25 +70439,25 @@ var Oje = (e, t, n, r) => {
y1: "0",
x2: "1",
y2: "1",
- children: /* @__PURE__ */ (0, L.jsx)(N9, {
+ children: /* @__PURE__ */ (0, L.jsx)(M9, {
dataKey: t,
colorsCount: r
})
});
-}, jje = ({ id: e, dataKey: t, config: n }) => {
+}, 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);
return /* @__PURE__ */ (0, L.jsx)("radialGradient", {
id: `${e}-radar-fill-${t}`,
cx: "50%",
cy: "50%",
r: "50%",
- children: /* @__PURE__ */ (0, L.jsx)(N9, {
+ children: /* @__PURE__ */ (0, L.jsx)(M9, {
dataKey: t,
colorsCount: r,
opacities: i
})
});
-}, Mje = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
+}, wMe = ({ id: e, dataKey: t }) => /* @__PURE__ */ (0, L.jsxs)("filter", {
id: `${e}-radar-glow-${t}`,
x: "-50%",
y: "-50%",
@@ -69649,7 +70477,7 @@ var Oje = (e, t, n, r) => {
}),
/* @__PURE__ */ (0, L.jsxs)("feMerge", { children: [/* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "glow" }), /* @__PURE__ */ (0, L.jsx)("feMergeNode", { in: "SourceGraphic" })] })
]
-}), Nje = (e) => [
+}), TMe = (e) => [
"A",
"B",
"C",
@@ -69658,20 +70486,20 @@ var Oje = (e, t, n, r) => {
"F"
].slice(0, e).map((e) => ({
skill: e,
- [D9]: 30 + Math.random() * 70
+ [E9]: 30 + Math.random() * 70
}));
-function Pje(e, t = xje) {
+function EMe(e, t = pMe) {
let [n, r] = (0, I.useState)(0);
return (0, I.useEffect)(() => {
if (!e) return;
let t = setInterval(() => {
r((e) => e + 1);
- }, E9);
+ }, T9);
return () => clearInterval(t);
- }, [e]), (0, I.useMemo)(() => Nje(t), [t, n]);
+ }, [e]), (0, I.useMemo)(() => TMe(t), [t, n]);
}
-var Fje = () => /* @__PURE__ */ (0, L.jsx)(U3, {
- dataKey: D9,
+var DMe = () => /* @__PURE__ */ (0, L.jsx)(U3, {
+ dataKey: E9,
stroke: "currentColor",
strokeOpacity: .3,
strokeWidth: 2,
@@ -69679,30 +70507,30 @@ var Fje = () => /* @__PURE__ */ (0, L.jsx)(U3, {
fillOpacity: .1,
dot: !1,
isAnimationActive: !0,
- animationDuration: E9,
+ animationDuration: T9,
animationEasing: "ease-in-out"
});
-A9.Radar = Sje, A9.Dot = j9, A9.ActiveDot = M9, A9.PolarGrid = Cje, A9.PolarAngleAxis = wje, A9.PolarRadiusAxis = Tje, A9.Tooltip = Eje, A9.Legend = Dje;
+k9.Radar = mMe, k9.Dot = A9, k9.ActiveDot = j9, k9.PolarGrid = hMe, k9.PolarAngleAxis = gMe, k9.PolarRadiusAxis = _Me, k9.Tooltip = vMe, k9.Legend = yMe;
//#endregion
//#region src/react/taste/charts.tsx
-var Ije = [
+var OMe = [
"stroke-chart-1",
"stroke-chart-2",
"stroke-chart-3",
"stroke-chart-4",
"stroke-chart-5",
"stroke-chart-6"
-], Lje = [
+], kMe = [
"fill-chart-1",
"fill-chart-2",
"fill-chart-3",
"fill-chart-4",
"fill-chart-5",
"fill-chart-6"
-], P9 = { value: {
+], N9 = { value: {
label: "标签命中",
colors: T7(w7[3])
-} }, Rje = [
+} }, AMe = [
"min-h-24",
"min-h-24",
"min-h-24",
@@ -69712,47 +70540,47 @@ var Ije = [
"min-h-52",
"min-h-60",
"min-h-64"
-], zje = 26, Bje = { radius: P9.value }, Vje = (e, t) => Math.sqrt(e / t);
-function Hje({ rows: e, label: t }) {
- let n = gje(e);
+], jMe = 26, MMe = { radius: N9.value }, NMe = (e, t) => Math.sqrt(e / t);
+function PMe({ rows: e, label: t }) {
+ let n = cMe(e);
if (!n.length) return null;
let r = n[0].value, i = n.map((e) => ({
...e,
- radius: Vje(e.value, r)
+ radius: NMe(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)(A9, {
+ children: /* @__PURE__ */ (0, L.jsxs)(k9, {
data: i,
- config: Bje,
+ config: MMe,
chartProps: { outerRadius: "58%" },
className: "aspect-auto h-70 text-text-secondary",
children: [
- /* @__PURE__ */ (0, L.jsx)(A9.PolarGrid, {}),
- /* @__PURE__ */ (0, L.jsx)(A9.PolarAngleAxis, { dataKey: "name" }),
- /* @__PURE__ */ (0, L.jsx)(A9.PolarRadiusAxis, {
+ /* @__PURE__ */ (0, L.jsx)(k9.PolarGrid, {}),
+ /* @__PURE__ */ (0, L.jsx)(k9.PolarAngleAxis, { dataKey: "name" }),
+ /* @__PURE__ */ (0, L.jsx)(k9.PolarRadiusAxis, {
domain: [0, 1],
allowDecimals: !0,
tick: !1
}),
- /* @__PURE__ */ (0, L.jsx)(A9.Radar, { dataKey: "radius" }),
+ /* @__PURE__ */ (0, L.jsx)(k9.Radar, { dataKey: "radius" }),
/* @__PURE__ */ (0, L.jsx)(A7, { valueKey: "value" })
]
})
});
}
-function Uje({ rows: e, label: t }) {
- let n = y9(e, 8);
+function FMe({ rows: e, label: t }) {
+ let n = v9(e, 8);
return n.length ? /* @__PURE__ */ (0, L.jsx)("section", {
"aria-label": t,
- className: `flex grow flex-col ${Rje[n.length]}`,
+ className: `flex grow flex-col ${AMe[n.length]}`,
children: /* @__PURE__ */ (0, L.jsxs)(b7, {
data: n,
- config: P9,
+ config: N9,
layout: "horizontal",
barRadius: 4,
- chartProps: { maxBarSize: zje },
+ chartProps: { maxBarSize: jMe },
className: "aspect-auto text-text-secondary",
children: [
/* @__PURE__ */ (0, L.jsx)(b7.YAxis, {
@@ -69776,8 +70604,8 @@ function Uje({ rows: e, label: t }) {
})
}) : null;
}
-function Wje({ flows: e }) {
- let [t, n] = (0, I.useState)(null), r = _je(e);
+function IMe({ flows: e }) {
+ let [t, n] = (0, I.useState)(null), r = lMe(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", {
@@ -69791,7 +70619,7 @@ function Wje({ flows: e }) {
/* @__PURE__ */ (0, L.jsx)("div", {
className: "min-w-0 overflow-x-auto",
children: /* @__PURE__ */ (0, L.jsxs)("svg", {
- viewBox: `0 0 ${b9.width} ${b9.height}`,
+ viewBox: `0 0 ${y9.width} ${y9.height}`,
fill: "none",
role: "img",
"aria-label": "来源网站与创作者线索",
@@ -69805,7 +70633,7 @@ function Wje({ flows: e }) {
"aria-label": `${e.label}:${e.value} 条线索`,
fillOpacity: 0,
strokeOpacity: a(e, e.label) ? .55 : .08,
- className: `outline-none transition-opacity ${Ije[e.color]}`,
+ className: `outline-none transition-opacity ${OMe[e.color]}`,
onPointerEnter: () => n({
value: e.value,
label: e.label,
@@ -69839,15 +70667,15 @@ function Wje({ flows: e }) {
width: 10,
height: e.height,
rx: 5,
- className: e.side === "source" ? Lje[e.color] : "fill-text-secondary"
+ className: e.side === "source" ? kMe[e.color] : "fill-text-secondary"
}), /* @__PURE__ */ (0, L.jsxs)("text", {
- x: x9[e.side],
+ x: b9[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: [vje(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
- x: x9[e.side],
+ children: [uMe(e.name), /* @__PURE__ */ (0, L.jsx)("tspan", {
+ x: b9[e.side],
dy: 15,
children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`
})]
@@ -69864,11 +70692,11 @@ function Wje({ flows: e }) {
}
//#endregion
//#region src/react/taste/taste-page.tsx
-var Gje = 10, F9 = sw(bA, xA, "text-body-2-medium"), I9 = `${Cw()} flex flex-col gap-4`, L9 = "rounded-xl bg-background-primary-default p-3", Kje = "读取运行 Peach 的这台电脑上的浏览记录", qje = "导入或读取浏览记录后,这里会列出已采集设备。", Jje = "馆藏里暂时没有对得上浏览信号的标签。", Yje = "采集浏览记录后,这里会显示聚合后的口味证据。", Xje = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", Zje = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", Qje = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", $je = "需要刷新时再次读取或导入;数据源可在页面底部移除。", eMe = "这个数据源将不再用于口味分析。原始导出文件保留。", R9 = "peach-taste-guide-dismissed";
-function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
+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 }) {
return /* @__PURE__ */ (0, L.jsx)("div", {
- className: fA(),
- children: /* @__PURE__ */ (0, L.jsx)(gA, {
+ className: gA(),
+ children: /* @__PURE__ */ (0, L.jsx)(bA, {
label: t,
icon: e,
accent: i,
@@ -69877,7 +70705,7 @@ function z9({ icon: e, term: t, figure: n, detail: r, accent: i }) {
})
});
}
-function B9({ name: e, domain: t }) {
+function z9({ 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", {
@@ -69891,22 +70719,22 @@ function B9({ name: e, domain: t }) {
})]
});
}
-function tMe({ html: e }) {
+function qMe({ 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 ${RI}`,
+ 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}`,
dangerouslySetInnerHTML: { __html: e }
});
}
-function nMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
- if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Tw, {
+function JMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner: a }) {
+ if (!e.length) return /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: yS,
+ icon: kS,
title: "暂无足够证据",
children: r
});
- let o = hje(e);
+ let o = sMe(e);
return /* @__PURE__ */ (0, L.jsx)(V7, {
- previewCount: Gje,
+ previewCount: LMe,
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: [
@@ -69925,15 +70753,15 @@ function nMe({ 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)(B9, {
+ n === "domain" ? /* @__PURE__ */ (0, L.jsx)(z9, {
name: e.name,
domain: e.name
}) : null,
- n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, L.jsx)(B9, {
+ n === "creator" && !e.entity_id && !e.has_avatar && c ? /* @__PURE__ */ (0, L.jsx)(z9, {
name: e.name,
domain: c
}) : null,
- n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(tMe, { html: a(e.name, e.entity_id ? {
+ n !== "none" && n !== "domain" && (e.entity_id || e.has_avatar || !c) ? /* @__PURE__ */ (0, L.jsx)(qMe, { html: a(e.name, e.entity_id ? {
id: e.entity_id,
has_image: !!e.has_image,
avatar_focus: e.avatar_focus
@@ -69945,10 +70773,10 @@ function nMe({ 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: mje(e)
+ children: oMe(e)
})]
}),
- s ? /* @__PURE__ */ (0, L.jsx)(aS, {
+ s ? /* @__PURE__ */ (0, L.jsx)(sS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
}) : null
@@ -69968,24 +70796,24 @@ function nMe({ rows: e, kind: t, visual: n, empty: r, onSignal: i, avatarInner:
})
});
}
-function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
- return /* @__PURE__ */ (0, L.jsxs)(JD, {
- className: `${Cw({ padding: "none" })} flex flex-col`,
+function B9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
+ return /* @__PURE__ */ (0, L.jsxs)(rO, {
+ className: `${Nw({ padding: "none" })} flex flex-col`,
children: [/* @__PURE__ */ (0, L.jsx)("div", {
className: "px-4 pt-3",
- children: /* @__PURE__ */ (0, L.jsx)(YD, {
+ children: /* @__PURE__ */ (0, L.jsx)(iO, {
"aria-label": e,
- className: jM,
- children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(XD, {
+ className: IM,
+ children: t.map((e) => /* @__PURE__ */ (0, L.jsx)(aO, {
id: e.id,
- className: MM,
+ className: LM,
children: e.name
}, e.id))
})
- }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(ZD, {
+ }), t.map((e) => /* @__PURE__ */ (0, L.jsx)(oO, {
id: e.id,
className: "px-4 pt-3.5 pb-4",
- children: /* @__PURE__ */ (0, L.jsx)(nMe, {
+ children: /* @__PURE__ */ (0, L.jsx)(JMe, {
...e.props,
onSignal: n,
avatarInner: r
@@ -69993,7 +70821,7 @@ function V9({ label: e, panels: t, onSignal: n, avatarInner: r }) {
}, e.id))]
});
}
-function rMe({ data: e, onSignal: t, navigate: n }) {
+function YMe({ data: e, onSignal: t, navigate: n }) {
let r = e.analysis;
if (!r?.headline) return null;
let i = r.confidence || {}, a = [...(r.explore || []).map((e) => ({
@@ -70008,7 +70836,7 @@ function rMe({ data: e, onSignal: t, navigate: n }) {
act: () => n(e.route)
}))];
return /* @__PURE__ */ (0, L.jsxs)("section", {
- className: I9,
+ className: F9,
"aria-label": "口味总结",
children: [
/* @__PURE__ */ (0, L.jsxs)("header", {
@@ -70034,7 +70862,7 @@ function rMe({ 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 ${L9}`,
+ className: `flex min-w-0 flex-col gap-1 ${I9}`,
children: [/* @__PURE__ */ (0, L.jsx)("span", {
className: "text-caption-1-regular text-text-secondary",
children: e.label
@@ -70049,7 +70877,7 @@ function rMe({ 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 ${L9} 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 ${I9} 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", {
@@ -70059,44 +70887,44 @@ function rMe({ data: e, onSignal: t, navigate: n }) {
className: "text-caption-1-regular text-text-secondary",
children: e.detail
})]
- }), /* @__PURE__ */ (0, L.jsx)(aS, {
+ }), /* @__PURE__ */ (0, L.jsx)(sS, {
"aria-hidden": !0,
className: "size-4 shrink-0 text-text-tertiary"
})]
}, e.key))
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: yS,
+ icon: kS,
title: "还没有可探索的入口",
- children: Jje
+ children: BMe
})
]
});
}
-function iMe({ onboarding: e, done: t }) {
+function XMe({ onboarding: e, done: t }) {
let [n, r] = (0, I.useState)(() => {
try {
- return localStorage.getItem(R9) === "1";
+ return localStorage.getItem(L9) === "1";
} catch {
return !1;
}
});
return t || n ? null : /* @__PURE__ */ (0, L.jsx)("div", {
- className: Cw({
+ className: Nw({
padding: "none",
className: "p-4"
}),
- children: /* @__PURE__ */ (0, L.jsxs)(BA, {
+ children: /* @__PURE__ */ (0, L.jsxs)(WA, {
summary: "浏览器历史记录导入指南",
defaultOpen: e,
children: [
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Zje
+ children: UMe
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: Qje
+ children: WMe
}),
/* @__PURE__ */ (0, L.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
@@ -70126,7 +70954,7 @@ function iMe({ onboarding: e, done: t }) {
}),
/* @__PURE__ */ (0, L.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: $je
+ children: GMe
}),
/* @__PURE__ */ (0, L.jsx)("span", {
className: "self-start",
@@ -70135,7 +70963,7 @@ function iMe({ onboarding: e, done: t }) {
size: "small",
onClick: () => {
try {
- localStorage.setItem(R9, "1");
+ localStorage.setItem(L9, "1");
} catch {}
r(!0);
},
@@ -70146,7 +70974,7 @@ function iMe({ onboarding: e, done: t }) {
})
});
}
-function aMe({ busy: e, onRefresh: t, onImport: n }) {
+function ZMe({ busy: e, onRefresh: t, onImport: n }) {
let r = (0, I.useRef)(null), [i, a] = (0, I.useState)(!1), o = (e) => {
a(!1), e();
};
@@ -70155,43 +70983,43 @@ function aMe({ busy: e, onRefresh: t, onImport: n }) {
"data-split-button": !0,
"data-variant": "primary",
children: [/* @__PURE__ */ (0, L.jsx)(G, {
- leadingIcon: lS,
- title: Kje,
+ leadingIcon: dS,
+ title: RMe,
onClick: t,
...Y(e),
children: "读取浏览器历史"
}), /* @__PURE__ */ (0, L.jsx)(G, {
ref: r,
iconOnly: !0,
- leadingIcon: rS,
+ leadingIcon: aS,
"aria-label": "更多取得浏览记录的方式",
"aria-haspopup": "dialog",
"aria-expanded": i,
onClick: () => a(!0)
})]
- }), /* @__PURE__ */ (0, L.jsx)(tD, {
+ }), /* @__PURE__ */ (0, L.jsx)(uD, {
triggerRef: r,
isOpen: i,
onOpenChange: a,
placement: "bottom end",
offset: 4,
- className: yA,
- children: /* @__PURE__ */ (0, L.jsxs)(fD, {
+ className: CA,
+ children: /* @__PURE__ */ (0, L.jsxs)(xD, {
"aria-label": "更多取得浏览记录的方式",
className: "flex w-52 flex-col gap-1 outline-none",
children: [/* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: F9,
+ className: P9,
onClick: () => o(t),
- children: [/* @__PURE__ */ (0, L.jsx)(lS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(dS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "读取浏览器历史"]
}), /* @__PURE__ */ (0, L.jsxs)("button", {
type: "button",
- className: F9,
+ className: P9,
onClick: () => o(n),
- children: [/* @__PURE__ */ (0, L.jsx)(CS, {
+ children: [/* @__PURE__ */ (0, L.jsx)(NS, {
"aria-hidden": !0,
className: "size-4 shrink-0"
}), "导入历史文件"]
@@ -70199,15 +71027,15 @@ function aMe({ busy: e, onRefresh: t, onImport: n }) {
})
})] });
}
-function oMe({ sources: e, window: t, toast: n }) {
+function QMe({ sources: e, window: t, toast: n }) {
let r = Pt({
- mutationFn: (e) => lje(e, t),
+ mutationFn: (e) => tMe(e, t),
onSuccess: (e) => {
- X.setQueryData(g9(t), e.dashboard), n("已移除口味数据源");
+ X.setQueryData(h9(t), e.dashboard), n("已移除口味数据源");
}
});
return /* @__PURE__ */ (0, L.jsxs)("section", {
- className: I9,
+ className: F9,
"aria-label": "数据源",
children: [
/* @__PURE__ */ (0, L.jsx)("h3", {
@@ -70221,14 +71049,14 @@ function oMe({ 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 ${L9}`,
+ className: `flex min-w-0 items-center gap-3 ${I9}`,
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)(CS, {
+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, L.jsx)(NS, {
"aria-hidden": !0,
className: "size-4"
- }) : /* @__PURE__ */ (0, L.jsx)(uS, {
+ }) : /* @__PURE__ */ (0, L.jsx)(fS, {
"aria-hidden": !0,
className: "size-4"
})
@@ -70248,12 +71076,12 @@ function oMe({ sources: e, window: t, toast: n }) {
size: "small",
"aria-label": `移除 ${e.profile}`,
iconOnly: !0,
- leadingIcon: dS,
+ leadingIcon: pS,
...Y(r.isPending),
onClick: () => {
r.isPending || g({
title: "移除口味数据源",
- body: eMe,
+ body: KMe,
confirmLabel: "移除口味数据源",
onConfirm: () => r.mutateAsync(e.source_key)
});
@@ -70261,32 +71089,32 @@ function oMe({ sources: e, window: t, toast: n }) {
})
]
}, e.source_key))
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: uS,
+ icon: fS,
title: "还没有数据源",
- children: qje
+ children: zMe
})
]
});
}
-function sMe(e) {
+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: g9(s),
- queryFn: ({ signal: e }) => _9(s, e),
+ queryKey: h9(s),
+ queryFn: ({ signal: e }) => g9(s, e),
placeholderData: Me
- }), { job: p, running: m, outcome: h, start: g } = cj({
- queryKey: ije,
- queryFn: ({ signal: e }) => oje(e),
- start: () => cje(s),
- idlePollMs: dje,
+ }), { job: p, running: m, outcome: h, start: g } = fj({
+ queryKey: Xje,
+ queryFn: ({ signal: e }) => Qje(e),
+ start: () => eMe(s),
+ idlePollMs: rMe,
onFinish: (e) => {
e.status !== "failed" && (X.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));
}
}), _ = Pt({
- mutationFn: (e) => uje(e),
+ mutationFn: (e) => nMe(e),
onSuccess: (e) => {
- X.setQueryData(g9("all"), e.dashboard), c("all"), r("已导入口味数据");
+ X.setQueryData(h9("all"), e.dashboard), c("all"), r("已导入口味数据");
}
}), v = (e) => {
let t = e.currentTarget.files?.[0];
@@ -70294,47 +71122,47 @@ function sMe(e) {
}, y = () => {
m || g.isPending || (g.reset(), g.mutate());
}, b = f.data;
- if (!b) return /* @__PURE__ */ (0, L.jsx)(Dw, { children: /* @__PURE__ */ (0, L.jsx)(J, {
+ if (!b) return /* @__PURE__ */ (0, L.jsx)(Lw, { 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)(Dw, { children: [
- /* @__PURE__ */ (0, L.jsxs)(JD, {
+ return /* @__PURE__ */ (0, L.jsxs)(Lw, { children: [
+ /* @__PURE__ */ (0, L.jsxs)(rO, {
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)(YD, {
+ children: [/* @__PURE__ */ (0, L.jsxs)(iO, {
"aria-label": "口味证据来源",
- className: jM,
- children: [/* @__PURE__ */ (0, L.jsx)(XD, {
+ className: IM,
+ children: [/* @__PURE__ */ (0, L.jsx)(aO, {
id: "browser",
- className: MM,
+ className: LM,
children: "浏览器记录"
- }), /* @__PURE__ */ (0, L.jsx)(XD, {
+ }), /* @__PURE__ */ (0, L.jsx)(aO, {
id: "peach",
- className: MM,
+ className: LM,
children: "Peach 内部"
})]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
children: [
- /* @__PURE__ */ (0, L.jsx)(rj, {
+ /* @__PURE__ */ (0, L.jsx)(sj, {
"aria-label": "分析范围",
selectedKey: s,
onSelectionChange: (e) => {
e !== null && c(String(e));
},
- children: aje.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(ij, {
+ children: Zje.map(([e, t]) => /* @__PURE__ */ (0, L.jsx)(cj, {
id: e,
children: t
}, e))
}),
- /* @__PURE__ */ (0, L.jsx)(aMe, {
+ /* @__PURE__ */ (0, L.jsx)(ZMe, {
busy: m || g.isPending || _.isPending,
onRefresh: y,
onImport: () => d.current?.click()
@@ -70350,7 +71178,7 @@ function sMe(e) {
]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(iMe, {
+ /* @__PURE__ */ (0, L.jsx)(XMe, {
onboarding: o,
done: !!(x.history_sources || b.updated_at)
}),
@@ -70360,7 +71188,7 @@ function sMe(e) {
children: [
m ? p?.total ? /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, L.jsx)(Aw, {
+ children: [/* @__PURE__ */ (0, L.jsx)(zw, {
label: p.message || "正在读取浏览记录",
value: p.checked || 0,
max: p.total
@@ -70368,44 +71196,44 @@ function sMe(e) {
className: "text-caption-1-regular text-text-secondary",
children: `${p.message || "正在读取浏览记录"} · ${p.checked || 0} / ${p.total}`
})]
- }) : /* @__PURE__ */ (0, L.jsx)(Ew, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
- _.isPending ? /* @__PURE__ */ (0, L.jsx)(Ew, { label: "正在导入历史文件" }) : null,
+ }) : /* @__PURE__ */ (0, L.jsx)(Iw, { label: p?.message || "正在读取浏览记录并更新口味分析" }) : null,
+ _.isPending ? /* @__PURE__ */ (0, L.jsx)(Iw, { label: "正在导入历史文件" }) : null,
k ? /* @__PURE__ */ (0, L.jsx)(J, {
tone: "error",
children: k
}) : null
]
}),
- /* @__PURE__ */ (0, L.jsxs)(ZD, {
+ /* @__PURE__ */ (0, L.jsxs)(oO, {
id: "browser",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: pA,
+ className: _A,
children: [
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 0,
- icon: hS,
+ icon: yS,
term: "浏览记录",
figure: Number(x.history_visits || 0).toLocaleString(),
- detail: `${x.history_sources || 0} 个数据源 · ${v9(x.range_start)}—${v9(x.range_end)}`
+ detail: `${x.history_sources || 0} 个数据源 · ${_9(x.range_start)}—${_9(x.range_end)}`
}),
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 1,
- icon: gS,
+ icon: ES,
term: "口味维度",
figure: T.length.toLocaleString(),
detail: T[0]?.name || "尚无主维度"
}),
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 2,
- icon: yS,
+ icon: kS,
term: "浏览候选",
figure: E.length.toLocaleString()
}),
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 3,
- icon: uS,
+ icon: fS,
term: "私有导出",
figure: Number(w.exports || 0).toLocaleString(),
detail: a(w.bytes || 0)
@@ -70413,7 +71241,7 @@ function sMe(e) {
]
}),
/* @__PURE__ */ (0, L.jsxs)("section", {
- className: `${I9} md:flex-row md:gap-6`,
+ className: `${F9} 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",
@@ -70422,25 +71250,25 @@ function sMe(e) {
className: "text-caption-1-regular text-text-secondary",
children: "浏览器画像"
}),
- /* @__PURE__ */ (0, L.jsx)(Hje, {
+ /* @__PURE__ */ (0, L.jsx)(PMe, {
rows: T,
label: "主要口味维度"
}),
/* @__PURE__ */ (0, L.jsx)("small", {
className: "text-caption-1-regular text-text-secondary",
- children: b.updated_at ? `更新于 ${v9(b.updated_at)}` : "尚未采集浏览记录"
+ children: b.updated_at ? `更新于 ${_9(b.updated_at)}` : "尚未采集浏览记录"
})
]
}), /* @__PURE__ */ (0, L.jsx)("div", {
className: "flex min-w-0 grow flex-col",
- children: T.length ? /* @__PURE__ */ (0, L.jsx)(Uje, {
+ children: T.length ? /* @__PURE__ */ (0, L.jsx)(FMe, {
rows: T,
label: "口味维度排名"
- }) : /* @__PURE__ */ (0, L.jsx)(Tw, {
+ }) : /* @__PURE__ */ (0, L.jsx)(Fw, {
shell: "plain",
- icon: yS,
+ icon: kS,
title: "暂无口味维度",
- children: Yje
+ children: VMe
})
})]
}),
@@ -70456,8 +71284,8 @@ function sMe(e) {
tone: 4,
empty: "还没有可用于分析的口味网站访问记录。"
}),
- /* @__PURE__ */ (0, L.jsx)(Wje, { flows: b.creator_flows }),
- /* @__PURE__ */ (0, L.jsx)(V9, {
+ /* @__PURE__ */ (0, L.jsx)(IMe, { flows: b.creator_flows }),
+ /* @__PURE__ */ (0, L.jsx)(B9, {
label: "浏览器口味维度",
onSignal: t,
avatarInner: i,
@@ -70499,49 +71327,49 @@ function sMe(e) {
rows: E,
kind: "",
visual: "none",
- empty: Xje
+ empty: HMe
}
}
]
})
]
}),
- /* @__PURE__ */ (0, L.jsxs)(ZD, {
+ /* @__PURE__ */ (0, L.jsxs)(oO, {
id: "peach",
className: "flex flex-col gap-5",
children: [
/* @__PURE__ */ (0, L.jsxs)("div", {
- className: pA,
+ className: _A,
children: [
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 0,
- icon: pS,
+ icon: hS,
term: "Peach 看过",
figure: Number(x.peach_items || 0).toLocaleString(),
- detail: fje(x.peach_seconds || 0)
+ detail: iMe(x.peach_seconds || 0)
}),
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 1,
- icon: SS,
+ icon: MS,
term: "喜欢",
figure: Number(x.liked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 2,
- icon: xS,
+ icon: jS,
term: "不合口味",
figure: Number(x.disliked || 0).toLocaleString()
}),
- /* @__PURE__ */ (0, L.jsx)(z9, {
+ /* @__PURE__ */ (0, L.jsx)(R9, {
accent: 3,
- icon: gS,
+ icon: ES,
term: "有标签",
figure: D.toLocaleString()
})
]
}),
/* @__PURE__ */ (0, L.jsxs)("section", {
- className: `${I9} md:flex-row md:gap-6`,
+ className: `${F9} 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",
@@ -70561,18 +71389,18 @@ function sMe(e) {
]
}), /* @__PURE__ */ (0, L.jsxs)("div", {
className: "flex min-w-0 grow flex-col",
- children: [/* @__PURE__ */ (0, L.jsx)(H9, {
+ children: [/* @__PURE__ */ (0, L.jsx)(V9, {
term: "有标签",
value: D,
rest: S.untagged || 0
- }), /* @__PURE__ */ (0, L.jsx)(H9, {
+ }), /* @__PURE__ */ (0, L.jsx)(V9, {
term: "有身份",
value: O,
rest: S.unidentified || 0
})]
})]
}),
- /* @__PURE__ */ (0, L.jsx)(V9, {
+ /* @__PURE__ */ (0, L.jsx)(B9, {
label: "Peach 口味维度",
onSignal: t,
avatarInner: i,
@@ -70613,19 +71441,19 @@ function sMe(e) {
})
]
}),
- /* @__PURE__ */ (0, L.jsx)(rMe, {
+ /* @__PURE__ */ (0, L.jsx)(YMe, {
data: b,
onSignal: t,
navigate: n
}),
- /* @__PURE__ */ (0, L.jsx)(oMe, {
+ /* @__PURE__ */ (0, L.jsx)(QMe, {
sources: b.sources || [],
window: s,
toast: r
})
] });
}
-function H9({ term: e, value: t, rest: n }) {
+function V9({ 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",
@@ -70638,7 +71466,7 @@ function H9({ term: e, value: t, rest: n }) {
children: `${n} 项待补`
})]
})]
- }), /* @__PURE__ */ (0, L.jsx)(Aw, {
+ }), /* @__PURE__ */ (0, L.jsx)(zw, {
label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,
value: t,
max: r
@@ -70647,26 +71475,26 @@ function H9({ term: e, value: t, rest: n }) {
}
//#endregion
//#region node_modules/sonner/dist/index.mjs
-function cMe(e) {
+function eNe(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 lMe = (e) => {
+var tNe = (e) => {
switch (e) {
- case "success": return fMe;
- case "info": return mMe;
- case "warning": return pMe;
- case "error": return hMe;
+ case "success": return H9;
+ case "info": return aNe;
+ case "warning": return iNe;
+ case "error": return oNe;
default: return null;
}
-}, uMe = Array(12).fill(0), dMe = ({ visible: e, className: t }) => /*#__PURE__*/ I.createElement("div", {
+}, nNe = Array(12).fill(0), rNe = ({ 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" }, uMe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
+}, /*#__PURE__*/ I.createElement("div", { className: "sonner-spinner" }, nNe.map((e, t) => /*#__PURE__*/ I.createElement("div", {
className: "sonner-loading-bar",
key: `spinner-bar-${t}`
-})))), fMe = /*#__PURE__*/ I.createElement("svg", {
+})))), H9 = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -70677,7 +71505,7 @@ var lMe = (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"
-})), pMe = /*#__PURE__*/ I.createElement("svg", {
+})), iNe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
fill: "currentColor",
@@ -70688,7 +71516,7 @@ var lMe = (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"
-})), mMe = /*#__PURE__*/ I.createElement("svg", {
+})), aNe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -70699,7 +71527,7 @@ var lMe = (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"
-})), hMe = /*#__PURE__*/ I.createElement("svg", {
+})), oNe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
@@ -70710,7 +71538,7 @@ var lMe = (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"
-})), gMe = /*#__PURE__*/ I.createElement("svg", {
+})), sNe = /*#__PURE__*/ I.createElement("svg", {
xmlns: "http://www.w3.org/2000/svg",
width: "12",
height: "12",
@@ -70731,7 +71559,7 @@ var lMe = (e) => {
y1: "6",
x2: "18",
y2: "18"
-})), _Me = () => {
+})), cNe = () => {
let [e, t] = I.useState(document.hidden);
return I.useEffect(() => {
let e = () => {
@@ -70739,7 +71567,7 @@ var lMe = (e) => {
};
return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);
}, []), e;
-}, vMe = 1, yMe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : vMe++, W9 = new class {
+}, lNe = 1, uNe = 100, U9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : lNe++, W9 = new class {
constructor() {
this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {
let t = this.subscribers.indexOf(e);
@@ -70749,7 +71577,7 @@ var lMe = (e) => {
}, this.addToast = (e) => {
this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();
}, this.trimHistory = () => {
- let e = this.toasts.length - yMe;
+ let e = this.toasts.length - uNe;
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);
@@ -70827,7 +71655,7 @@ var lMe = (e) => {
type: "default",
message: e
});
- else if (xMe(e) && !e.ok) {
+ else if (fNe(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({
@@ -70880,7 +71708,7 @@ var lMe = (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();
}
-}(), bMe = (e, t) => W9.message(e, t), xMe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", G9 = Object.assign(bMe, {
+}(), 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, {
success: W9.success,
info: W9.info,
warning: W9.warning,
@@ -70894,20 +71722,20 @@ var lMe = (e) => {
getHistory: () => W9.toasts,
getToasts: () => W9.getActiveToasts()
});
-cMe("[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%)}");
+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%)}");
function K9(e) {
return e.label !== void 0;
}
-var SMe = 3, CMe = "24px", wMe = "16px", q9 = 4e3, TMe = 356, EMe = 14, DMe = 45, OMe = 200;
+var pNe = 3, mNe = "24px", hNe = "16px", q9 = 4e3, gNe = 356, _Ne = 14, vNe = 45, yNe = 200;
function J9(...e) {
return e.filter(Boolean).join(" ");
}
-function kMe(e) {
+function bNe(e) {
let [t, n] = e.split("-"), r = [];
return t && r.push(t), n && r.push(n), r;
}
-var AMe = (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 = _Me(), Ee = I.useMemo(() => e.swipeDirections ?? kMe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = z === "loading";
+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";
ye.current = I.useMemo(() => he * x + we, [he, we]), I.useEffect(() => {
ce.current = _e;
}, [_e]), I.useEffect(() => {
@@ -70948,7 +71776,7 @@ var AMe = (e) => {
let ke = I.useCallback(() => {
N(!0), ae(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {
d(n);
- }, OMe);
+ }, yNe);
}, [
n,
d,
@@ -70981,12 +71809,12 @@ var AMe = (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(dMe, {
+ }, w.loading) : /*#__PURE__*/ I.createElement(rNe, {
className: J9(C?.loader, n?.classNames?.loader),
visible: z === "loading"
});
}
- let je = n.icon || w?.[z] || lMe(z);
+ let je = n.icon || w?.[z] || tNe(z);
return /*#__PURE__*/ I.createElement("li", {
tabIndex: 0,
ref: le,
@@ -71033,7 +71861,7 @@ var AMe = (e) => {
if (F || !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) >= DMe || a > .11)) {
+ 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);
return;
}
@@ -71074,7 +71902,7 @@ var AMe = (e) => {
ke(), n.onDismiss == null || n.onDismiss.call(n, n);
},
className: J9(C?.closeButton, n?.classNames?.closeButton)
- }, w?.close ?? gMe) : null, (z || n.icon || n.promise) && n.icon !== null && (w?.[z] !== null || n.icon) ? /*#__PURE__*/ I.createElement("div", {
+ }, w?.close ?? sNe) : 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", {
@@ -71109,10 +71937,10 @@ function Y9() {
let e = document.documentElement.getAttribute("dir");
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
}
-function jMe(e, t) {
+function SNe(e, t) {
let n = {};
return [e, t].forEach((e, t) => {
- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? wMe : CMe;
+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? hNe : mNe;
function o(e) {
[
"top",
@@ -71133,8 +71961,8 @@ function jMe(e, t) {
}) : o(a);
}), n;
}
-var MMe = /*#__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 = SMe, toastOptions: g, dir: _ = Y9(), gap: v = EMe, 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 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) => {
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) => {
@@ -71220,10 +72048,10 @@ var MMe = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-x-position": a,
style: {
"--front-toast-height": `${E[0]?.height || 0}px`,
- "--width": `${TMe}px`,
+ "--width": `${gNe}px`,
"--gap": `${v}px`,
...m,
- ...jMe(l, u)
+ ...SNe(l, u)
},
onBlur: (e) => {
te.current && !e.currentTarget.contains(e.relatedTarget) && (te.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));
@@ -71241,7 +72069,7 @@ var MMe = /*#__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(AMe, {
+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ I.createElement(xNe, {
key: n.id,
icons: y,
index: i,
@@ -71275,8 +72103,8 @@ var MMe = /*#__PURE__*/ I.forwardRef(function(e, t) {
"data-toast-glyph": t ? "draw" : "still",
"aria-hidden": "true",
dangerouslySetInnerHTML: { __html: e }
-}), Z9 = !1, NMe = (e, t) => {
- Z9 || (Z9 = !0, (0, nS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(MMe, {
+}), Z9 = !1, wNe = (e, t) => {
+ Z9 || (Z9 = !0, (0, iS.createRoot)(e).render(/* @__PURE__ */ (0, L.jsx)(CNe, {
position: "bottom-right",
closeButton: !0,
gap: 8,
@@ -71297,7 +72125,7 @@ var MMe = /*#__PURE__*/ I.forwardRef(function(e, t) {
error: X9(t.error, !1)
}
})));
-}, PMe = (e, t) => {
+}, TNe = (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,
@@ -71310,17 +72138,17 @@ var MMe = /*#__PURE__*/ I.forwardRef(function(e, t) {
} : void 0
});
}, Q9 = null;
-function FMe() {
+function ENe() {
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, nS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(R, {
+ let r = (0, iS.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, L.jsx)(R, {
client: X,
children: /* @__PURE__ */ (0, L.jsx)(Ru, {
reducedMotion: "user",
- children: /* @__PURE__ */ (0, L.jsx)(ty, {
- getContainer: FMe,
+ children: /* @__PURE__ */ (0, L.jsx)(ry, {
+ getContainer: ENe,
children: /* @__PURE__ */ (0, L.jsx)(e, { ...t })
})
})
@@ -71331,91 +72159,95 @@ function $9(e) {
};
};
}
-var IMe = {
+var DNe = {
activity: {
- prefetch: (e, t) => bne(t),
- mount: $9(Mne)
+ prefetch: (e, t) => dne(t),
+ mount: $9(Cne)
},
"catalog-grid": {
- prefetch: Bne,
- mount: $9(pT)
+ prefetch: jne,
+ mount: $9(ST)
},
"cover-crop": {
prefetch: async () => {},
- mount: $9(xae)
+ mount: $9(fae)
},
configuration: {
- prefetch: (e, t) => AL(t),
- mount: $9(Yde)
+ prefetch: (e, t) => QL(t),
+ mount: $9(vfe)
},
"configuration-summary": {
- prefetch: (e, t) => AL(t),
- mount: $9(Zde)
+ prefetch: (e, t) => QL(t),
+ mount: $9(bfe)
},
"data-cleanup": {
- prefetch: (e, t) => _oe(t),
- mount: $9(Woe)
+ prefetch: (e, t) => poe(t),
+ mount: $9(zoe)
},
duplicates: {
- prefetch: (e, t) => Oae(t),
- mount: $9($oe)
+ prefetch: (e, t) => yae(t),
+ mount: $9(Joe)
},
"entity-hero": {
prefetch: async () => {},
- mount: $9(bce)
+ mount: $9(hce)
},
"entity-filter": {
prefetch: async () => {},
- mount: $9(Ise)
+ mount: $9(jse)
},
"entity-body": {
prefetch: async () => {},
- mount: $9(Ese)
+ mount: $9(xse)
+ },
+ "follow-detail": {
+ prefetch: QP,
+ mount: $9(CF)
},
"follow-feed": {
- prefetch: TP,
- mount: $9(eF)
+ prefetch: EP,
+ mount: $9(KF)
},
"follow-manage": {
- prefetch: (e, t) => oP(t, e.tab),
- mount: $9(Ple)
+ prefetch: (e, t) => sP(t, e.tab),
+ mount: $9(rue)
},
index: {
- prefetch: (e, t) => use(e, t),
- mount: $9(Yle)
+ prefetch: (e, t) => ase(e, t),
+ mount: $9(vue)
},
"junk-queue": {
prefetch: async () => {},
- mount: $9(fue)
+ mount: $9(Fue)
},
"library-processing": {
- prefetch: (e, t) => DO(t),
- mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(vue, { ...e }) : /* @__PURE__ */ (0, L.jsx)(ZA, { ...e }))
+ prefetch: (e, t) => IO(t),
+ mount: $9((e) => e.mode === "notice" ? /* @__PURE__ */ (0, L.jsx)(Vue, { ...e }) : /* @__PURE__ */ (0, L.jsx)(tj, { ...e }))
},
playlists: {
- prefetch: (e, t) => bue(t),
- mount: $9(Mue)
+ prefetch: (e, t) => Uue(t),
+ mount: $9(tde)
},
"quality-goals": {
- prefetch: (e, t) => WO(t),
- mount: $9(Pue)
+ prefetch: (e, t) => XO(t),
+ mount: $9(rde)
},
review: {
- prefetch: (e, t) => toe(t),
- mount: $9(Xue)
+ prefetch: (e, t) => Kae(t),
+ mount: $9(yde)
},
scraping: {
- prefetch: (e, t) => rde(t),
- mount: $9(ude)
+ prefetch: (e, t) => Ede(t),
+ mount: $9(Nde)
},
stats: {
- prefetch: (e, t) => $de(t),
- mount: $9(LAe)
+ prefetch: (e, t) => Sfe(t),
+ mount: $9(kje)
},
taste: {
- prefetch: (e, t) => sje("all", t),
- mount: $9(sMe)
+ prefetch: (e, t) => $je("all", t),
+ mount: $9($Me)
}
};
//#endregion
-export { EM as closePhotoLightbox, NMe as mountToaster, TM as openPhotoLightbox, IMe as pages, PMe as showToast };
+export { wNe as mountToaster, DNe as pages, TNe as showToast };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index e8886a049..c1000ee9f 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -903,6 +903,7 @@ var Z = {
"entity-body": { react: "entity-body" },
"entity-filter": { react: "entity-filter" },
"entity-hero": { react: "entity-hero" },
+ "follow-detail": { react: "follow-detail" },
"follow-feed": { react: "follow-feed" },
"follow-manage": { react: "follow-manage" },
index: { react: "index" },
@@ -964,6 +965,5 @@ var St = null;
function Ct(e, t, n, r) {
St ??= import("/dist/peach-react.js").then((n) => (n.mountToaster(e, t), n)), St.then((e) => e.showToast(n, r));
}
-var wt = (e, t, n) => import("/dist/peach-react.js").then((r) => r.openPhotoLightbox(e, t, n));
//#endregion
-export { Be as boardPageSkeleton, u as boundedPreference, We as catalogEmptyHtml, Ue as catalogSuggestions, le as clampPage, $e as cleanupSkeletonHtml, ze as detailSkeletonHtml, He as emptyCatalogLayout, pe as entitySkeletonHtml, de as faceSourceScale, ne as followJobProgress, m as initBoardControls, bt as islandMounted, gt as islandNames, dt as javImageKind, C as jobActivityHtml, lt as junkCountSkeletonHtml, q as junkPath, tt as junkRoute, _t as mountIsland, f as mountNumberSetting, fe as nativeImageFit, X as normalizeJavImage, Y as normalizeJavLayout, ut as normalizeJavPreferences, wt as openPhotoLightbox, ce as pageCount, ue as paginationHtml, ft as panelFrame, c as preferredDirection, ht as preloadIslands, mt as relayoutJavImages, ae as selectGroup, re as selectRange, ie as selectionSummary, Ct as showToast, Ge as sidebarHasCatalogContent, b as sidebarSectionHtml, qe as sidebarTagCounts, p as syncBoardRange, pt as syncJavImages, d as syncNumberSetting, oe as syncSelectionToolbar, Ke as syncSidebarSurface, ee as transitionTheme, $ as unmountIsland, vt as updateIsland, w as watchJob, x as wireSidebarGroups };
+export { Be as boardPageSkeleton, u as boundedPreference, We as catalogEmptyHtml, Ue as catalogSuggestions, le as clampPage, $e as cleanupSkeletonHtml, ze as detailSkeletonHtml, He as emptyCatalogLayout, pe as entitySkeletonHtml, de as faceSourceScale, ne as followJobProgress, m as initBoardControls, bt as islandMounted, gt as islandNames, dt as javImageKind, C as jobActivityHtml, lt as junkCountSkeletonHtml, q as junkPath, tt as junkRoute, _t as mountIsland, f as mountNumberSetting, fe as nativeImageFit, X as normalizeJavImage, Y as normalizeJavLayout, ut as normalizeJavPreferences, ce as pageCount, ue as paginationHtml, ft as panelFrame, c as preferredDirection, ht as preloadIslands, mt as relayoutJavImages, ae as selectGroup, re as selectRange, ie as selectionSummary, Ct as showToast, Ge as sidebarHasCatalogContent, b as sidebarSectionHtml, qe as sidebarTagCounts, p as syncBoardRange, pt as syncJavImages, d as syncNumberSetting, oe as syncSelectionToolbar, Ke as syncSidebarSurface, ee as transitionTheme, $ as unmountIsland, vt as updateIsland, w as watchJob, x as wireSidebarGroups };