Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): mountIsland 增加 React 档,React 子树共用一个 TanStack Query 客户端

longmeidao46be4a6bd6b4
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 4b29fe79b..69806e3f3 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -8,6 +8,7 @@
"dependencies": {
"@preact/signals": "2.11.2",
"@remixicon/react": "4.9.0",
+ "@tanstack/react-query": "5.102.8",
"d3-sankey": "0.12.3",
"preact": "10.29.8",
"react": "19.3.0",
@@ -2179,6 +2180,32 @@
"vite": "^5.2.0 || ^6 || ^7 || ^8"
}
},
+ "node_modules/@tanstack/query-core": {
+ "version": "5.102.8",
+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.102.8.tgz",
+ "integrity": "sha512-ZNjkJ33CqvPNec/6lZBnHqLc3EVGPZ9ySLhYahU9TcuRFdmwXewuj0c4hwSWcGHqEUwcSrKeZ+oGcvPBqXcQcg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ }
+ },
+ "node_modules/@tanstack/react-query": {
+ "version": "5.102.8",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.102.8.tgz",
+ "integrity": "sha512-TYBea4OuXWD7MhaSHq069TWbFe7rcwWN6kzT7JF0OKi1K6c1gTv2IzD6A6ExJsCMozdkqBWeuIUZmu4KQg0O5A==",
+ "license": "MIT",
+ "dependencies": {
+ "@tanstack/query-core": "5.102.8"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ },
+ "peerDependencies": {
+ "react": "^18 || ^19"
+ }
+ },
"node_modules/@types/chai": {
"version": "5.2.3",
"resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index d8a8b3e57..012cc366b 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -18,6 +18,7 @@
"dependencies": {
"@preact/signals": "2.11.2",
"@remixicon/react": "4.9.0",
+ "@tanstack/react-query": "5.102.8",
"d3-sankey": "0.12.3",
"preact": "10.29.8",
"react": "19.3.0",
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index e53e45214..a7a4e8d3f 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -33,8 +33,7 @@ import { Scraping, loadScraping } from './islands/scraping';
import type { ScrapingData, ScrapingProps } from './islands/scraping';
import { LibraryProcessing, loadLibraryProcessing } from './islands/library-processing';
import type { LibraryProcessingData, LibraryProcessingProps } from './islands/library-processing';
-import { Activity, loadActivity } from './islands/activity';
-import type { ActivityData, ActivityProps } from './islands/activity';
+import type * as ReactBundle from '@peach/react';
/* 跨岛共享状态的入口一起从这里出去。遗留层拿到的是一个 bundle,它有两种用法:
* `mountIsland` 挂一屏,`refreshStore` 告诉已经挂着的那屏「数据变了」。
@@ -61,31 +60,42 @@ export interface IslandState<D> {
error: string;
}
-/** 每个 island 的 props 与首屏数据类型。新增 island 时在这里登记,注册表随之要求实现。 */
+/** 每个 island 的 props 与首屏数据类型。新增 island 时在这里登记,注册表随之要求实现。
+ * React 档的页面自己管数据(首屏落在共用的 Query 缓存里),`data` 写成 `null`。 */
export interface IslandContracts {
'library-processing': { props: LibraryProcessingProps; data: LibraryProcessingData };
'scraping': { props: ScrapingProps; data: ScrapingData };
'quality-goals': { props: QualityGoalsProps; data: QualityGoalsData };
configuration: { props: ConfigurationProps; data: ConfigurationData };
- activity: { props: ActivityProps; data: ActivityData };
+ activity: { props: ReactBundle.ActivityProps; data: null };
}
export type IslandName = keyof IslandContracts;
type PropsOf<N extends IslandName> = IslandContracts[N]['props'];
type DataOf<N extends IslandName> = IslandContracts[N]['data'];
-interface IslandDefinition<N extends IslandName> {
+/** Preact 档:这里取数、这里渲染。 */
+interface PreactIsland<N extends IslandName> {
/** 首屏取数。中止后抛 `AbortError`,`mountIsland` 会静默放弃。 */
load(props: PropsOf<N>, signal: AbortSignal): Promise<DataOf<N>>;
component: ComponentType<PropsOf<N> & IslandState<DataOf<N>>>;
}
+/** React 档:整页在 `@peach/react` 的 `pages` 里,这里只记它的名字(ADR-0031)。
+ *
+ * 两侧的契约是同一条:先 `prefetch` 把首屏取回来,再换掉遗留骨架、创建 React 根。 */
+interface ReactIsland {
+ react: keyof ReactBundle.ReactPages;
+}
+
+type IslandDefinition<N extends IslandName> = PreactIsland<N> | ReactIsland;
+
const REGISTRY: { [N in IslandName]: IslandDefinition<N> } = {
'library-processing': { load: loadLibraryProcessing, component: LibraryProcessing },
'scraping': { load: loadScraping, component: Scraping },
'quality-goals': { load: loadQualityGoals, component: QualityGoals },
configuration: { load: loadConfiguration, component: Configuration },
- activity: { load: loadActivity, component: Activity },
+ activity: { react: 'activity' },
};
/** 已注册的 island 名字。遗留层与测试用它核对路由表,不必知道注册表结构。 */
@@ -95,6 +105,8 @@ interface Mount {
controller: AbortController;
/** 是否已经真的画过。没画过就不许 `render(null, el)`:那会连遗留骨架一起清掉。 */
painted: boolean;
+ /** React 档画过之后,卸载那棵根并撤掉它的容器。Preact 档没有。 */
+ dispose?: () => void;
}
const mounted = new Map<Element, Mount>();
@@ -117,6 +129,7 @@ export async function mountIsland<N extends IslandName>(
unmountIsland(el);
const mount: Mount = { controller: new AbortController(), painted: false };
mounted.set(el, mount);
+ if ('react' in island) return mountReactPage(island, el, props, mount, options);
let state: IslandState<DataOf<N>>;
try {
state = { data: await island.load(props, mount.controller.signal), error: '' };
@@ -124,21 +137,50 @@ export async function mountIsland<N extends IslandName>(
if (mount.controller.signal.aborted) return;
state = { data: null, error: errorMessage(cause) };
}
+ if (!claimContainer(el, mount, options)) return;
+ // 注册表有多个 island 之后 `PropsOf<N>` 是按名字分发的索引类型,TS 推不出它与
+ // `Attributes` 相交仍是同一个对象,这里把结论写给它。
+ const attrs = { ...props, ...state } as Attributes & PropsOf<N> & IslandState<DataOf<N>>;
+ render(h(island.component, attrs), el);
+}
+
+/** 取数回来之后还能不能画:期间没有被重挂,遗留层也还停在这一页。能画就顺手清掉遗留骨架。 */
+function claimContainer(el: Element, mount: Mount, options: MountOptions): boolean {
// 期间被卸载或重新挂载:这一次的结果已经过期,不许往新内容上盖。
- if (mounted.get(el) !== mount) return;
+ if (mounted.get(el) !== mount) return false;
// 遗留层已经换了页面:容器现在归别人,画上去就是把别的页面盖掉。
if (options.isCurrent && !options.isCurrent()) {
mounted.delete(el);
- return;
+ return false;
}
// 遗留骨架不是 Preact 画的,交给 diff 会按标签复用节点、留下 data-skeleton 之类的
// 旧属性。整个清掉再画,一次替换,只有一次布局变化。
el.textContent = '';
mount.painted = true;
- // 注册表有多个 island 之后 `PropsOf<N>` 是按名字分发的索引类型,TS 推不出它与
- // `Attributes` 相交仍是同一个对象,这里把结论写给它。
- const attrs = { ...props, ...state } as Attributes & PropsOf<N> & IslandState<DataOf<N>>;
- render(h(island.component, attrs), el);
+ return true;
+}
+
+/** React 档:动态取回 React 产物,先把首屏落进共用的 Query 缓存,再换掉骨架、创建根。 */
+async function mountReactPage<N extends IslandName>(
+ island: ReactIsland, el: Element, props: PropsOf<N>, mount: Mount, options: MountOptions,
+): Promise<void> {
+ const bundle = await import('@peach/react');
+ const page = bundle.pages[island.react] as ReactBundle.ReactPage<PropsOf<N>>;
+ try {
+ await page.prefetch(props, mount.controller.signal);
+ } catch {
+ // 中止就是用户已经走开,这一次不画。其余失败照画:原因和重试的节律都在页面自己手里,
+ // 它从 Query 缓存里读到的就是这次的错误。
+ if (mount.controller.signal.aborted) return;
+ }
+ if (!claimContainer(el, mount, options)) return;
+ // token、Preflight 与焦点规则都作用在 `.peach-react` 上,React 根要挂在带这个类的容器里。
+ // 容器本身归遗留层所有(它会直接 `innerHTML=`),所以另建一个,卸载时连它一起撤掉。
+ const host = el.ownerDocument.createElement('div');
+ host.className = 'peach-react';
+ el.append(host);
+ const root = page.mount(host, props);
+ mount.dispose = () => { root.unmount(); host.remove() };
}
/** 这个容器上是不是已经挂着一个 island。
@@ -154,7 +196,8 @@ export function unmountIsland(el: Element): void {
mount.controller.abort();
mounted.delete(el);
// 只清自己画过的东西。还在取数时容器里是遗留骨架,那不属于 island。
- if (mount.painted) render(null, el);
+ if (mount.dispose) mount.dispose();
+ else if (mount.painted) render(null, el);
}
export { javImageKind, normalizeJavImage, normalizeJavLayout, normalizeJavPreferences, panelFrame, syncJavImages } from './jav-artwork';
diff --git a/frontend/src/react/activity/activity-page.tsx b/frontend/src/react/activity/activity-page.tsx
new file mode 100644
index 000000000..c1044248a
--- /dev/null
+++ b/frontend/src/react/activity/activity-page.tsx
@@ -0,0 +1,165 @@
+/* 活动页:任务中心那张表的唯一界面。
+ *
+ * 这一屏要回答三个问题,顺序就是它们的紧迫程度:现在有什么在跑、有哪一轮被挡下了、
+ * 刚跑完的那些怎么样。三段共用 `/api/tasks` 一次请求的结果。
+ *
+ * 轮询交给 Query 的 `refetchInterval`:间隔按上一次拿到的内容算,有东西在跑两秒一次,
+ * 全是终态十秒一次。它是后台刷新,不写 `aria-busy`——页面上的内容一直是完整的,写了
+ * 等于告诉辅助技术和冒烟用例「这一屏还没好」。取数失败只在页内报一条,上一份数据留着:
+ * 服务重启的那几秒里,把整页换成一句错误比留着十秒前的进度更难用。 */
+import { useId } from 'react';
+import type { ReactNode } from 'react';
+import { RiHistoryLine } from '@remixicon/react';
+import { useQuery } from '@tanstack/react-query';
+
+import { Chip } from '@/components/base/badges/chip';
+
+import { errorMessage } from '../../api';
+import type { ActivityProps } from '../bundle';
+import { EmptyState } from '../components/empty-state';
+import { LoadingDots } from '../components/loading-dots';
+import { Note } from '../components/note';
+import { Progress } from '../components/progress';
+import {
+ elapsedText, fetchTasks, momentText, pollInterval, statusLabel, summaryText,
+ TASKS_KEY, TRIGGER_LABELS, type TaskRunPayload,
+} from './tasks';
+
+/* 状态徽章只有三档颜色:成功是绿、失败是红、被叫停与被打断是黄,其余留中性底。
+ BoardUI 的 Chip 把这三档写成 lime/rose/yellow,第四种颜色不存在。 */
+const BADGE_COLORS: Record<string, 'lime' | 'rose' | 'yellow'> = {
+ succeeded: 'lime', failed: 'rose', cancelled: 'yellow', interrupted: 'yellow',
+};
+
+function StatusBadge({ status }: { status: string }) {
+ return <Chip color={BADGE_COLORS[status] ?? 'neutral'}>{statusLabel(status)}</Chip>;
+}
+
+/** 一轮任务一张卡。失败时整张卡的框线换成 danger 色,不给结束原因那行字上色——
+ * 一屏十几行里逐行读红字,比看一眼哪张卡的框是红的慢得多。 */
+function RunCard(
+ { run, meta, children, footer }:
+ { run: TaskRunPayload; meta: string; children?: ReactNode; footer?: string },
+) {
+ return (
+ <li data-status={run.status} data-task-key={run.task_key}
+ className={run.status === 'failed'
+ ? 'flex flex-col rounded-2xl border border-border-error-default'
+ : 'flex flex-col rounded-2xl border border-separator-border'}>
+ <div className="flex flex-col gap-1.5 px-5 pt-5 pb-4">
+ <div className="flex flex-wrap items-center gap-2">
+ <strong className="min-w-0 break-words text-title-1-medium text-text-primary">{run.task_label}</strong>
+ <StatusBadge status={run.status} />
+ </div>
+ <p className="text-caption-1-regular text-text-secondary">{meta}</p>
+ {children}
+ </div>
+ {footer
+ ? <div className="border-t border-separator-border px-5 py-3">
+ <p className="text-caption-1-regular text-text-secondary">{footer}</p>
+ </div>
+ : null}
+ </li>
+ );
+}
+
+function RunningRun({ run }: { run: TaskRunPayload }) {
+ const total = run.progress_total || 0;
+ const current = run.progress_current || 0;
+ const label = run.progress_label || '正在进行';
+ const elapsed = elapsedText(run.elapsed_seconds);
+ const meta = [TRIGGER_LABELS[run.trigger] || run.trigger, elapsed && `已跑 ${elapsed}`]
+ .filter(Boolean).join(' · ');
+ return (
+ <RunCard run={run} meta={meta}>
+ {total > 0
+ ? <div className="flex flex-col gap-1.5">
+ <Progress label={label} value={current} max={total} />
+ <p className="text-caption-1-regular text-text-secondary">{label} · {current} / {total} 项</p>
+ </div>
+ : <LoadingDots label={label} />}
+ </RunCard>
+ );
+}
+
+function SettledRun({ run }: { run: TaskRunPayload }) {
+ const summary = summaryText(run.result_summary);
+ const elapsed = elapsedText(run.elapsed_seconds);
+ const meta = [TRIGGER_LABELS[run.trigger] || run.trigger, momentText(run.finished_at),
+ elapsed && `用时 ${elapsed}`].filter(Boolean).join(' · ');
+ return (
+ <RunCard run={run} meta={meta} footer={run.error}>
+ {summary ? <p className="text-caption-1-regular text-text-secondary">{summary}</p> : null}
+ </RunCard>
+ );
+}
+
+function Section({ title, children }: { title: string; children: ReactNode }) {
+ const id = useId();
+ return (
+ <section aria-labelledby={id} className="flex min-w-0 flex-col gap-3">
+ <h3 id={id} className="text-title-2-semibold text-text-primary">{title}</h3>
+ {children}
+ </section>
+ );
+}
+
+function RunList({ live = false, children }: { live?: boolean; children: ReactNode }) {
+ return (
+ <ul aria-live={live ? 'polite' : undefined} className="flex min-w-0 flex-col gap-3">{children}</ul>
+ );
+}
+
+/** 页面正文的一条窄列,与管理区标题同一条中线(`--board-content`)。 */
+function Page({ children }: { children: ReactNode }) {
+ return <div className="mx-auto flex w-full max-w-board flex-col gap-8">{children}</div>;
+}
+
+export function ActivityPage(_props: ActivityProps) {
+ const tasks = useQuery({
+ queryKey: TASKS_KEY,
+ queryFn: ({ signal }) => fetchTasks(signal),
+ refetchInterval: (query) => pollInterval(query.state.data),
+ });
+ const data = tasks.data;
+ const problem = tasks.error ? errorMessage(tasks.error) : '';
+ // 首屏就没拿到数据:只剩这一条,不画空的三段。
+ if (!data) return <Page><Note tone="error">{problem || '读取任务中心失败'}</Note></Page>;
+
+ const running = data.running || [];
+ const skipped = data.skipped || [];
+ // 同一轮不在「最近完成」里再出现一次:一屏两行说的是同一件事,读起来像跑了两轮。
+ const finished = (data.finished || []).filter((run) => !skipped.some((row) => row.id === run.id));
+ const quiet = !running.length && !skipped.length && !finished.length;
+ return (
+ <Page>
+ {problem ? <Note tone="error">{problem}</Note> : null}
+ {data.available === false
+ ? <Note tone="warning">{data.message || '账本上还没有任务中心的表'}</Note>
+ : null}
+ {quiet
+ ? <EmptyState icon={RiHistoryLine} title="还没有任务记录">
+ 扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。
+ </EmptyState>
+ : <>
+ <Section title="正在进行">
+ {running.length
+ ? <RunList live>{running.map((run) => <RunningRun key={run.id} run={run} />)}</RunList>
+ : <p className="text-body-2-regular text-text-secondary">没有任务在跑。</p>}
+ </Section>
+ {/* 「刚才那一轮为什么没跑」只有这一段答得出:定时触发撞上在跑的那一轮会
+ 安静跳过,不留记录的话它在界面上和从没触发过一模一样。 */}
+ {skipped.length
+ ? <Section title="被挡下的">
+ <RunList>{skipped.map((run) => <SettledRun key={run.id} run={run} />)}</RunList>
+ </Section>
+ : null}
+ {finished.length
+ ? <Section title="最近完成">
+ <RunList>{finished.map((run) => <SettledRun key={run.id} run={run} />)}</RunList>
+ </Section>
+ : null}
+ </>}
+ </Page>
+ );
+}
diff --git a/frontend/src/react/activity/tasks.ts b/frontend/src/react/activity/tasks.ts
new file mode 100644
index 000000000..0fa9ab2af
--- /dev/null
+++ b/frontend/src/react/activity/tasks.ts
@@ -0,0 +1,98 @@
+/* 任务中心的数据契约与折算:`/api/tasks` 一次请求供整页三段使用。
+ *
+ * 分三次取会出现「在跑那段是新的、完成那段是旧的」这种自相矛盾的一屏,所以只有一个
+ * queryKey。首屏由 `prefetchTasks` 写进 Query 缓存,组件挂上去读的就是它。 */
+import { apiGet } from '../../api';
+import { queryClient } from '../query';
+
+export const TASKS_URL = '/api/tasks';
+/** 整页共用这一个键:三段是同一次响应的三个字段。 */
+export const TASKS_KEY = ['tasks'] as const;
+
+export interface TaskRunPayload {
+ id: number;
+ task_key: string;
+ task_label: string;
+ trigger: string;
+ status: string;
+ host: string;
+ started_at: string | null;
+ finished_at: string | null;
+ elapsed_seconds: number | null;
+ progress_current: number | null;
+ progress_total: number | null;
+ progress_label: string;
+ result_summary: Record<string, unknown>;
+ error: string;
+}
+
+export interface ActivityData {
+ available: boolean;
+ message?: string;
+ running: TaskRunPayload[];
+ skipped: TaskRunPayload[];
+ finished: TaskRunPayload[];
+}
+
+/** 有东西在跑就两秒一次(和进度写库的节流同一个数),全是终态时十秒一次。 */
+export const RUNNING_POLL_MS = 2000;
+export const SETTLED_POLL_MS = 10000;
+export const pollInterval = (data: ActivityData | undefined): number =>
+ data?.running.length ? RUNNING_POLL_MS : SETTLED_POLL_MS;
+
+export const fetchTasks = (signal?: AbortSignal) => apiGet<ActivityData>(TASKS_URL, signal);
+
+/** 首屏:取完数才画。中止时 `fetchQuery` 把 `AbortError` 抛回给挂载方,它据此放弃这一次。 */
+export async function prefetchTasks(signal: AbortSignal): Promise<void> {
+ await queryClient.fetchQuery({ queryKey: TASKS_KEY, queryFn: () => fetchTasks(signal) });
+}
+
+export const TRIGGER_LABELS: Record<string, string> = {
+ manual: '手动', scheduled: '定时', startup: '启动', cli: '命令行',
+};
+
+const STATUS_LABELS: Record<string, string> = {
+ pending: '排队中', running: '进行中', succeeded: '已完成',
+ failed: '失败', cancelled: '已取消', interrupted: '被打断',
+};
+
+/** 状态的中文名。表里的状态集是封闭的,认不出来只可能是表先改了,那就原样显示。 */
+export const statusLabel = (status: string): string => STATUS_LABELS[status] || status;
+
+/* 摘要里的键来自各域自己的状态字典,是英文标识;能认出来的翻成中文,认不出的原样
+ 显示——瞎猜一个中文名比留着英文键更难查。 */
+const SUMMARY_LABELS: Record<string, string> = {
+ checked: '已检查', total: '总数', scanned: '已扫描', identified: '已识别',
+ candidates: '资料候选', covers: '封面', changed: '已改动', operation: '操作',
+ ok: '取得', miss: '未取得', kept: '保留', planned: '计划', done: '已处理', added: '新增',
+ written: '已写入', removed: '已移除', exit_code: '退出码', issue_count: '问题',
+};
+
+/** 秒数说成「几分几秒」。跑了几小时的批处理也要一眼读得出量级。 */
+export function elapsedText(seconds: number | null | undefined): string {
+ if (typeof seconds !== 'number' || !Number.isFinite(seconds) || seconds < 0) return '';
+ const whole = Math.floor(seconds);
+ if (whole < 60) return `${whole} 秒`;
+ const minutes = Math.floor(whole / 60);
+ if (minutes < 60) return `${minutes} 分 ${whole % 60} 秒`;
+ return `${Math.floor(minutes / 60)} 小时 ${minutes % 60} 分`;
+}
+
+/** 时间戳说成本地的「月-日 时:分」。账本里存的是 UTC,界面上一律按本机时区读。 */
+export function momentText(stamp: string | null | undefined): string {
+ if (!stamp) return '';
+ const moment = new Date(stamp);
+ if (Number.isNaN(moment.getTime())) return '';
+ return moment.toLocaleString(undefined,
+ { month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' });
+}
+
+/** 摘要压成一行。只取标量:明细留在各域自己的页面和日志里。 */
+export function summaryText(summary: Record<string, unknown>): string {
+ return Object.entries(summary || {})
+ .filter(([key, value]) => key !== 'blocked_by'
+ && (typeof value === 'number' || typeof value === 'string')
+ && String(value) !== '')
+ .map(([key, value]) => `${SUMMARY_LABELS[key] || key} ${value}`)
+ .join(' · ');
+}
diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.md
index 270698682..1db033dc3 100644
--- a/frontend/src/react/boardui/ORIGIN.md
+++ b/frontend/src/react/boardui/ORIGIN.md
@@ -25,6 +25,7 @@
| `use-dismiss-on-outside-press` | `854569e5d2188146c1ebb41ceccc9eaaddb3d4a31b623946e7dd72be650636b1` | `utils/use-dismiss-on-outside-press.ts` |
| `link-button` | `05eb37b3cf1334c153e0702de05fe4989e4359c9c74d5ba55cc552a58e4629bd` | `components/base/buttons/link-button.tsx` |
| `icon-button` | `1441e8301efc6e16e0693194f876ce285ca5fe8d440156a060a9266e012d2c90` | `components/base/buttons/icon-button.tsx` |
+| `chip` | `d2b0dd38146325acada58fbc241d13fcd633bb5407ce1ef457e752023fe282de` | `components/base/badges/chip.tsx` |
## 没有逐字复制的部分
@@ -38,7 +39,10 @@
| 焦点环 | 输入框只画 BoardUI 外框上的 `ring`;`web/css/01-base.css` 的全局 `:focus-visible` 排除 `.peach-react` 子树 | 旧样式表排在后面,同特指度时会盖过 `outline-none`,内层输入框多出一圈 |
| 与旧样式表同名的类 | 网格容器放在 flex 父元素里写 `inline-grid`,块级化后按 `display:grid` 计算,类名不和卡片网格撞,也不触发任意值 lint;`../styles.css` 用 `@source not inline("ring")` 不生成注释里扫到的 `ring`;`frontend/test/legacy-class-names.test.ts` 核对产物与旧样式表无同名类 | 旧样式表排在后面,卡片网格那条同名规则会把 `grid-cols-*` 压成一列,生成的 `.ring` 也会落到旧页面的 `.ring` 元素上 |
| 提交键忙态 | 写 `aria-busy` 与 `aria-disabled`,不画 Spinner | `button` 条目没有加载态 |
-| 行内提示 | `../settings/section.tsx` 的 `Note` 按语气取 `status-yellow`、`background-tertiary-error`、`notification-*` token 组合 | 注册表里没有行内 Note 组件;`notification` 条目是带关闭键和动效的浮动通知 |
-| 进度条 | `../settings/section.tsx` 的 `Progress` 用 SVG 矩形画 | 注册表里没有进度组件 |
+| 行内提示 | `../components/note.tsx` 的 `Note` 按语气取 `status-yellow`、`background-tertiary-error`、`notification-*` token 组合 | 注册表里没有行内 Note 组件;`notification` 条目是带关闭键和动效的浮动通知 |
+| 进度条 | `../components/progress.tsx` 的 `Progress` 用 SVG 矩形画 | 注册表里没有进度组件 |
+| 空态 | `../components/empty-state.tsx` 用一圈 `separator-border` 框住图标、标题与说明 | 注册表里没有空态组件 |
+| 等待点 | `../components/loading-dots.tsx` 三颗点,错相由 `../styles.css` 的 `dot-wave-*` 给 | 注册表里没有等待态组件,没有总量时也不画进度条 |
+| 分区标题与任务卡 | `../activity/activity-page.tsx` 自己用 `title-*` 字阶和 `separator-border` 的圆角框排,失败那张换成 `border-error-default` | 注册表里没有分区标题;卡片条目都带自己的头尾结构与操作区 |
| 折叠 | `../settings/section.tsx` 的 `Disclosure` 用原生 `details`,开合调 `/js/ui-components.js` 的 `setCollapseOpen`,高度按共用 Collapse 的 `.fcollapse` 过渡(`.2s ease-in-out`) | 注册表里没有折叠组件;原生 `details` 不过渡高度 |
| 图标选择 | `../settings/library-icon-picker.tsx` 用 React Aria 的 `Popover`、`RadioGroup` 组合,面板取 `menu-styles.ts` 的外观 | 注册表里没有网格单选的弹出面板 |
diff --git a/frontend/src/react/boardui/UPSTREAM.sha256 b/frontend/src/react/boardui/UPSTREAM.sha256
index fe3b802b8..a3a314d89 100644
--- a/frontend/src/react/boardui/UPSTREAM.sha256
+++ b/frontend/src/react/boardui/UPSTREAM.sha256
@@ -1,4 +1,5 @@
80ab66fcbaca762d75032deca7279043742b3f8637b4b1b8008993e3dfda6744 components/application/settings/settings-rows.tsx
+dd31f5ed329ecf176fcecbad11c1b32cdd31710f6290e7ac6a4e25a2fa25c4b4 components/base/badges/chip.tsx
a49800d5cc58a9f8a98c07a7251e5923904b483b2f3e6e63e4fa0797acff101d components/base/buttons/button.tsx
6b67368aadfe2f0e9c409f29ad118dfab52b227741a97e59e67c6e381cfc77c7 components/base/buttons/icon-button.tsx
f56415d9b83cfb4af68d9f359ccb8925f885bce60e6d29d38d73b14966499aaf components/base/buttons/link-button.tsx
diff --git a/frontend/src/react/boardui/components/base/badges/chip.tsx b/frontend/src/react/boardui/components/base/badges/chip.tsx
new file mode 100644
index 000000000..eab3af3c8
--- /dev/null
+++ b/frontend/src/react/boardui/components/base/badges/chip.tsx
@@ -0,0 +1,72 @@
+import type { HTMLAttributes, Ref } from "react";
+import { cx, sortCx } from "@/utils/cx";
+
+/**
+ * Figma source: Board UI → dashboard 1 "Chip" layers (status chips, delta
+ * chips, price chips, role chips — e.g. nodes 3731:3273, 3731:3094, 3731:3280,
+ * 3731:3055).
+ *
+ * Colored label chip. Three emphasis levels, all rounded radius/md (6px),
+ * px 6:
+ *
+ * bold py 2, Body 1/Medium (14/20/500) — status + percentage deltas
+ * subtle py 4, Body 1/Medium (14/20/500) — price chips
+ * caption py 4, Caption 1/Medium (12/16/500, tracking .15) — role tags
+ *
+ * Status pairs are semantic so the same component follows both Figma modes:
+ * lime light 200/800 · dark 950 @ 60% / 500
+ * rose light 200/800 · dark 950 @ 60% / 500
+ * yellow light 200/800 · dark 950 @ 60% / 500
+ * cyan light 200/800 · dark 950 @ 60% / 400
+ * blue light 200/800 · dark 950 @ 60% / 300 (same dark status recipe;
+ * first needed by the medical template's "In treatment" status)
+ * purple light 100/600 · dark 900/300 (AI profile delta chips)
+ * neutral bg color/neutral/200 text color/neutral/500
+ * gray bg color/neutral/100 text color/neutral/800
+ * soft bg background/secondary/default text text/secondary
+ */
+
+type ChipVariant = "bold" | "subtle" | "caption";
+type ChipColor = "lime" | "rose" | "yellow" | "cyan" | "blue" | "purple" | "neutral" | "gray" | "soft";
+
+export interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
+ variant?: ChipVariant;
+ color?: ChipColor;
+ ref?: Ref<HTMLSpanElement>;
+}
+
+const styles = sortCx({
+ 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",
+ subtle: "py-1 text-body-medium",
+ caption: "py-1 text-caption-1-medium",
+ },
+ color: {
+ lime: "bg-status-lime-background text-status-lime-text",
+ rose: "bg-status-rose-background text-status-rose-text",
+ yellow: "bg-status-yellow-background text-status-yellow-text",
+ cyan: "bg-status-cyan-background text-status-cyan-text",
+ blue: "bg-status-blue-background text-status-blue-text",
+ purple: "bg-status-purple-background text-status-purple-text",
+ neutral: "bg-background-tertiary-default text-text-secondary",
+ gray: "bg-background-secondary-default text-text-primary",
+ soft: "bg-background-secondary-default text-text-secondary",
+ },
+});
+
+export function Chip({
+ variant = "bold",
+ color = "neutral",
+ className,
+ ref,
+ ...props
+}: ChipProps) {
+ return (
+ <span
+ ref={ref}
+ className={cx(styles.base, styles.variant[variant], styles.color[color], className)}
+ {...props}
+ />
+ );
+}
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index fcd4ee3e2..71048e1d2 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -86,6 +86,25 @@ export interface ReactMount<P> {
unmount(): void;
}
+/** 整页归 React 的那些页面(`islands.ts` 的 React 档)。
+ *
+ * `prefetch` 把首屏写进共用的 Query 缓存,`mount` 创建这一页的 React 根。两件事分开是因为
+ * 「取完数才画」的契约:遗留层已经铺了骨架,页面自己再转一次圈就是同一次进入里两段等待态。 */
+export interface ReactPage<P> {
+ /** 首屏取数。中止后抛 `AbortError`,挂载方据此放弃这一次。 */
+ prefetch(props: P, signal: AbortSignal): Promise<void>;
+ mount(el: Element, props: P): ReactMount<P>;
+}
+
+/** 活动页没有来自遗留层的助手:整页的数据都来自 `/api/tasks`。 */
+export type ActivityProps = Record<string, never>;
+
+export interface ReactPages {
+ activity: ReactPage<ActivityProps>;
+}
+
+export declare const pages: ReactPages;
+
export declare function mountGeneralSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;
export declare function mountMediaSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;
export declare function mountNetworkSettings(el: Element, props: ConfigurationGroupProps): ReactMount<ConfigurationGroupProps>;
diff --git a/frontend/src/react/components/empty-state.tsx b/frontend/src/react/components/empty-state.tsx
new file mode 100644
index 000000000..6ed5302f2
--- /dev/null
+++ b/frontend/src/react/components/empty-state.tsx
@@ -0,0 +1,17 @@
+/* 没有数据或结果时的空态:图标、标题、说明同处一个组件里(`peach-web-ui`)。
+ *
+ * 注册表里没有空态条目。标题是真的标题元素,冒烟用例按它认页面主体:一片白和「画出来了、
+ * 只是没有内容」在别的断言下长得一模一样。 */
+import type { ComponentType, ReactNode } from 'react';
+
+type Glyph = ComponentType<{ className?: string; 'aria-hidden'?: boolean | 'true' | 'false' }>;
+
+export function EmptyState({ icon: Icon, title, children }: { icon: Glyph; title: string; children: ReactNode }) {
+ return (
+ <div className="flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center">
+ <Icon aria-hidden className="size-6 text-text-tertiary" />
+ <h3 className="text-headline-medium text-text-primary">{title}</h3>
+ <p className="max-w-prose text-body-2-regular text-text-secondary">{children}</p>
+ </div>
+ );
+}
diff --git a/frontend/src/react/components/loading-dots.tsx b/frontend/src/react/components/loading-dots.tsx
new file mode 100644
index 000000000..20b44ab6f
--- /dev/null
+++ b/frontend/src/react/components/loading-dots.tsx
@@ -0,0 +1,17 @@
+/* 后台任务仍在推进、但没有总量可言时的 Loading Dots(`peach-web-ui`)。
+ *
+ * 不用 Spinner:Spinner 只反馈用户刚刚点下的那一下。也不画没有分母的进度条。
+ * 三颗点的错相由 `../styles.css` 的 `dot-wave-*` 给,减少动效时全局规则关掉动画。 */
+
+export function LoadingDots({ label }: { label: string }) {
+ return (
+ <p role="status" className="flex items-center gap-2 text-caption-1-regular text-text-secondary">
+ <span aria-hidden className="inline-flex items-center gap-1">
+ <i className="dot-wave-0 size-1 rounded-full bg-current" />
+ <i className="dot-wave-1 size-1 rounded-full bg-current" />
+ <i className="dot-wave-2 size-1 rounded-full bg-current" />
+ </span>
+ {label}
+ </p>
+ );
+}
diff --git a/frontend/src/react/components/note.tsx b/frontend/src/react/components/note.tsx
new file mode 100644
index 000000000..360ca37b1
--- /dev/null
+++ b/frontend/src/react/components/note.tsx
@@ -0,0 +1,29 @@
+/* 字段、分区、页面旁的持久提示。配置页与活动页共用这一份。
+ *
+ * 注册表里没有行内 Note:`notification` 条目是带关闭键和计时的浮动通知。这里按语气取
+ * `status-*` 与 `notification-*` token 组合,差异登记在 `../boardui/ORIGIN.md`。 */
+import type { ReactNode } from 'react';
+
+type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
+
+/** 没有密码、保存失败、账本缺表这类是当前状态,不和字段说明共用灰色小字。 */
+export function Note({ tone, title, children }: { tone: Tone; title?: string; children: ReactNode }) {
+ const content = (
+ <>
+ {title ? <p className="text-body-medium">{title}</p> : null}
+ <p className="text-body-2-regular">{children}</p>
+ </>
+ );
+ switch (tone) {
+ case 'info':
+ return <div role="status" className="flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground">{content}</div>;
+ case 'success':
+ return <div role="status" className="flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground">{content}</div>;
+ case 'warning':
+ return <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text">{content}</div>;
+ case 'error':
+ return <div role="alert" className="flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary">{content}</div>;
+ default:
+ return <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary">{content}</div>;
+ }
+}
diff --git a/frontend/src/react/components/progress.tsx b/frontend/src/react/components/progress.tsx
new file mode 100644
index 000000000..fc1375455
--- /dev/null
+++ b/frontend/src/react/components/progress.tsx
@@ -0,0 +1,16 @@
+/* 已知总量的进度条。更新下载与任务活动共用这一份。
+ *
+ * 注册表里没有进度组件,用 SVG 矩形画:宽度按比例写进 `rect` 的属性,不用内联样式,
+ * 也就不必给 `no-inline-styles` 开例外。差异登记在 `../boardui/ORIGIN.md`。 */
+
+export function Progress({ label, value, max = 100, stops = [] }: { label: string; value: number; max?: number; stops?: number[] }) {
+ const filled = Math.min(Math.max(value, 0), max);
+ return (
+ <svg role="progressbar" aria-label={label} aria-valuemin={0} aria-valuemax={max} aria-valuenow={value}
+ viewBox={`0 0 ${max} 1`} preserveAspectRatio="none" className="h-1.5 w-full overflow-hidden rounded-full">
+ <rect width={max} height={1} className="fill-background-tertiary-default" />
+ <rect width={filled} height={1} className="fill-border-focus-ring" />
+ {stops.map((stop) => <rect key={stop} x={stop} width={0.4} height={1} className="fill-background-secondary-default" />)}
+ </svg>
+ );
+}
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index f9de9b647..fa527d466 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -2,10 +2,14 @@
import './styles.css';
import type { ComponentType } from 'react';
+import { QueryClientProvider } from '@tanstack/react-query';
import { UNSAFE_PortalProvider } from 'react-aria';
import { createRoot } from 'react-dom/client';
+import { ActivityPage } from './activity/activity-page';
+import { prefetchTasks } from './activity/tasks';
import type * as Bundle from './bundle';
+import { queryClient } from './query';
import { GeneralSettings } from './settings/general-settings';
import { MaintenanceSettings } from './settings/maintenance-settings';
import { MediaSettings } from './settings/media-settings';
@@ -25,17 +29,26 @@ function overlayContainer(): HTMLElement {
return overlays;
}
+/* 所有 React 根共用一个 QueryClient(ADR-0031):页面级 `prefetch` 写进去的首屏,
+ * 组件挂上去就直接读到,同一份数据不会因为挂在哪棵根上而各取一次。 */
function mounter<P extends object>(Component: ComponentType<P>) {
return (el: Element, props: P): Bundle.ReactMount<P> => {
const root = createRoot(el);
const paint = (next: P) => root.render(
- <UNSAFE_PortalProvider getContainer={overlayContainer}><Component {...next} /></UNSAFE_PortalProvider>,
+ <QueryClientProvider client={queryClient}>
+ <UNSAFE_PortalProvider getContainer={overlayContainer}><Component {...next} /></UNSAFE_PortalProvider>
+ </QueryClientProvider>,
);
paint(props);
return { update: paint, unmount: () => root.unmount() };
};
}
+/** 整页归 React 的那些页面,按名字给遗留层的 React 档用。 */
+export const pages: Bundle.ReactPages = {
+ activity: { prefetch: (_props, signal) => prefetchTasks(signal), mount: mounter(ActivityPage) },
+};
+
export const mountGeneralSettings: typeof Bundle.mountGeneralSettings = mounter(GeneralSettings);
export const mountMediaSettings: typeof Bundle.mountMediaSettings = mounter(MediaSettings);
export const mountNetworkSettings: typeof Bundle.mountNetworkSettings = mounter(NetworkSettings);
diff --git a/frontend/src/react/query.ts b/frontend/src/react/query.ts
new file mode 100644
index 000000000..24f31932b
--- /dev/null
+++ b/frontend/src/react/query.ts
@@ -0,0 +1,28 @@
+/* React 子树唯一的 TanStack Query 客户端(ADR-0031「前端基础库随页面引入」)。
+ *
+ * 一个客户端服务所有 React 根:页面级 `prefetch` 先把首屏写进缓存,组件挂上去之后
+ * `useQuery` 直接读到同一份。两个客户端会让「取完数才画」的那一次取数落在另一个缓存里,
+ * 组件挂载时又发一遍。 */
+import { QueryClient } from '@tanstack/react-query';
+
+export const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ /* 请求都打本机的 `/api/...`。浏览器的 online 标记说的是外网,断了外网它就翻 false,
+ Query 默认会把本机请求也挂起成 paused——页面于是停在旧数据上,什么都不说。 */
+ networkMode: 'always',
+ /* 不重试。失败的原因是服务没起、账本只读或者迁移还没跑,同一秒里再问三遍得到的是
+ 同一句话,只把它推迟几秒显示;真正的重试是页面自己的轮询,下一轮就到。 */
+ retry: 0,
+ /* 焦点回来不自动重取:需要新数据的页面自己按内容定轮询节律(活动页是 2 秒/10 秒),
+ 再加一条焦点触发就是同一份数据两个节律。对外来源的采集与追更一律显式触发,
+ 更不能因为切回标签页就发出去。要即时刷新的页面自己在 `useQuery` 里打开。 */
+ refetchOnWindowFocus: false,
+ /* 挂载不重取、错了也不重试:每次进页面都是遗留层先 `prefetch` 再挂载(`islands.ts`
+ 的 React 档),组件挂上去时缓存里那一份就是刚取回来的。默认值会在同一次进入里
+ 紧接着再发一遍同样的请求;失败那次还会再失败一遍,错误反而晚一个来回才显示。 */
+ refetchOnMount: false,
+ retryOnMount: false,
+ },
+ },
+});
diff --git a/frontend/src/react/settings/access-settings.tsx b/frontend/src/react/settings/access-settings.tsx
index 5a3b5211f..a1b1c6480 100644
--- a/frontend/src/react/settings/access-settings.tsx
+++ b/frontend/src/react/settings/access-settings.tsx
@@ -10,7 +10,8 @@ import { Input } from '@/components/base/input/input';
import { ApiError, apiSend, errorMessage } from '../../api';
import type { AccessSettingsProps, AccessState } from '../bundle';
-import { ErrorText, Footer, Help, Note, Section, Stack } from './section';
+import { Note } from '../components/note';
+import { ErrorText, Footer, Help, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
type FieldErrors = Partial<Record<'current_password' | 'password' | 'confirmation', string>>;
diff --git a/frontend/src/react/settings/media-settings.tsx b/frontend/src/react/settings/media-settings.tsx
index 197cb2961..0a955437c 100644
--- a/frontend/src/react/settings/media-settings.tsx
+++ b/frontend/src/react/settings/media-settings.tsx
@@ -19,10 +19,11 @@ import { Select, SelectItem } from '@/components/base/select/select';
import { ApiError, apiGet, apiSend, errorMessage } from '../../api';
import { CONFIGURATION_URL, PICK_FOLDER_URL } from '../../configuration-endpoints';
import type { ConfigurationData, ConfigurationGroupProps } from '../bundle';
+import { Note } from '../components/note';
import { CloudDriveGuide } from './clouddrive-guide';
import { LibraryIconPicker } from './library-icon-picker';
import {
- ErrorText, ExternalLink, Fact, FactList, FieldLabel, Footer, Help, Note, Section, SourceMark, Stack,
+ ErrorText, ExternalLink, Fact, FactList, FieldLabel, Footer, Help, Section, SourceMark, Stack,
} from './section';
import { busyProps, useAction } from './use-action';
diff --git a/frontend/src/react/settings/network-settings.tsx b/frontend/src/react/settings/network-settings.tsx
index 08e2baef7..c11c8a158 100644
--- a/frontend/src/react/settings/network-settings.tsx
+++ b/frontend/src/react/settings/network-settings.tsx
@@ -8,8 +8,9 @@ import { Select, SelectItem } from '@/components/base/select/select';
import { apiSend } from '../../api';
import type { ConfigurationGroupProps, PeachProxyState } from '../bundle';
+import { Note } from '../components/note';
import { AccessSettings } from './access-settings';
-import { ErrorText, Footer, Note, Rows, Section, Stack } from './section';
+import { ErrorText, Footer, Rows, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
const PROXY_MODES = [['environment', '系统代理'], ['direct', '直连'], ['proxy', '自定义']] as const;
diff --git a/frontend/src/react/settings/release-updates.tsx b/frontend/src/react/settings/release-updates.tsx
index cd38f759f..b2e351528 100644
--- a/frontend/src/react/settings/release-updates.tsx
+++ b/frontend/src/react/settings/release-updates.tsx
@@ -8,7 +8,9 @@ import { Button } from '@/components/base/buttons/button';
import { apiGet, apiSend, errorMessage } from '../../api';
import type { ReleaseState, UpdateJob } from '../bundle';
-import { ErrorText, ExternalLink, Fact, FactList, Footer, Help, Note, Progress, Section, Stack } from './section';
+import { Note } from '../components/note';
+import { Progress } from '../components/progress';
+import { ErrorText, ExternalLink, Fact, FactList, Footer, Help, Section, Stack } from './section';
import { busyProps, useAction } from './use-action';
const ACTIVE = new Set(['downloading', 'verifying', 'extracting', 'preparing', 'restarting', 'installing']);
diff --git a/frontend/src/react/settings/section.tsx b/frontend/src/react/settings/section.tsx
index 0c4a19293..018610f6e 100644
--- a/frontend/src/react/settings/section.tsx
+++ b/frontend/src/react/settings/section.tsx
@@ -1,7 +1,8 @@
/* 配置页各分区共用的组合件。
*
* 外框取 BoardUI 设置弹层的 `SettingsSectionLabel` + `SettingsCard`,开关行直接用 `SettingsRow`。
- * 注册表里没有行内提示、进度条和折叠,这三样用 BoardUI token 组合,差异登记在 `boardui/ORIGIN.md`。 */
+ * 注册表里没有折叠,它用 BoardUI token 组合,差异登记在 `boardui/ORIGIN.md`。
+ * 提示与进度条另有页面共用的一份,在 `../components/`。 */
import { useId, useRef, useState } from 'react';
import type { FormEvent, MouseEvent, ReactNode } from 'react';
import { RiArrowRightSLine, RiExternalLinkLine } from '@remixicon/react';
@@ -66,30 +67,6 @@ export function FieldLabel({ children }: { children: ReactNode }) {
return <p className="text-body-medium text-text-primary">{children}</p>;
}
-type Tone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
-
-/** 字段、分区旁的持久提示。没有密码、保存失败这类是当前状态,不和字段说明共用灰色小字。 */
-export function Note({ tone, title, children }: { tone: Tone; title?: string; children: ReactNode }) {
- const content = (
- <>
- {title ? <p className="text-body-medium">{title}</p> : null}
- <p className="text-body-2-regular">{children}</p>
- </>
- );
- switch (tone) {
- case 'info':
- return <div role="status" className="flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground">{content}</div>;
- case 'success':
- return <div role="status" className="flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground">{content}</div>;
- case 'warning':
- return <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text">{content}</div>;
- case 'error':
- return <div role="alert" className="flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary">{content}</div>;
- default:
- return <div role="note" className="flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary">{content}</div>;
- }
-}
-
/** 新窗口打开的外部链接,尾部带外链字形。 */
export function ExternalLink({ href, children }: { href: string; children: ReactNode }) {
return (
@@ -113,19 +90,6 @@ export function Fact({ term, children }: { term: ReactNode; children: ReactNode
);
}
-/** 已知总量的进度。宽度按比例画在 SVG 里:条宽写进 `rect` 的属性,不用内联样式。 */
-export function Progress({ label, value, max = 100, stops = [] }: { label: string; value: number; max?: number; stops?: number[] }) {
- const filled = Math.min(Math.max(value, 0), max);
- return (
- <svg role="progressbar" aria-label={label} aria-valuemin={0} aria-valuemax={max} aria-valuenow={value}
- viewBox={`0 0 ${max} 1`} preserveAspectRatio="none" className="h-1.5 w-full overflow-hidden rounded-full">
- <rect width={max} height={1} className="fill-background-tertiary-default" />
- <rect width={filled} height={1} className="fill-border-focus-ring" />
- {stops.map((stop) => <rect key={stop} x={stop} width={0.4} height={1} className="fill-background-secondary-default" />)}
- </svg>
- );
-}
-
/** 展开正文。原生 `details` 给键盘与无障碍语义;开合交给共用 Collapse 的 `setCollapseOpen`,
* 它给正文外层挂上旧样式表的 `.fcollapse` 让高度过渡。内边距放在里层,高度才能收到 0。 */
export function Disclosure({ summary, children }: { summary: string; children: ReactNode }) {
diff --git a/frontend/src/react/styles.css b/frontend/src/react/styles.css
index 85fb27d1d..642a9bd83 100644
--- a/frontend/src/react/styles.css
+++ b/frontend/src/react/styles.css
@@ -21,6 +21,24 @@
@custom-variant dark (&:where(.dark, .dark *));
+/* 管理区正文的窄列。宽度由 `web/board.css` 的 `--board-content` 说了算,页面标题
+ * (`#manageTitle`) 也钉在同一个数上;这里只把它接成 `max-w-board`,不另写一个像素值。 */
+@theme {
+ --container-board: var(--board-content, 1120px);
+}
+
+/* 后台任务仍在推进、又说不出总量时的 Loading Dots。工具类里没有 animation-delay 这一档,
+ * 三颗点的错相写成一个函数式 utility:类名照常由 Tailwind 生成,也就不必写任意值。
+ * 减少动效由 `web/css/01-base.css` 的全局规则统一关掉。 */
+@keyframes peach-dot-wave {
+ 0%, 80%, 100% { opacity: .25; transform: translateY(0); }
+ 40% { opacity: 1; transform: translateY(-2px); }
+}
+@utility dot-wave-* {
+ animation: peach-dot-wave 1.2s ease-in-out infinite;
+ animation-delay: calc(--value(integer) * 150ms);
+}
+
/* 上游 `--font-sans` 引用 Next.js 字体加载器注入的 `--font-inter`;Peach 的 Inter 由
* board.css 引入的 `/vendor/inter/` 提供。 */
:root {
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 36594400b..acb9d9475 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -1,10 +1,15 @@
-import { afterEach, describe, expect, it, vi } from 'vitest';
+import { act } from 'react';
+import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
import { islandMounted, islandNames, mountIsland, unmountIsland } from '../src/islands';
+import { queryClient } from '../src/react/query';
import { resetStores } from '../src/state';
import { deferredFetch, goal, legacyProps, payload, seedGoals } from './helpers';
+// React 档挂的是一棵真的 React 根,更新要在 `act` 里落地,否则断言读到的是上一帧。
+(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
+
const container = () => {
const el = document.createElement('div');
// 遗留层进入页面时先铺骨架,island 接手的容器里已经有东西。
@@ -17,9 +22,20 @@ afterEach(() => {
document.body.innerHTML = '';
// 共享 store 是模块级的,会活过单个用例;不清就变成用例之间的隐藏耦合。
resetStores();
+ // React 档的首屏落在共用的 Query 缓存里,同样活过单个用例。
+ queryClient.clear();
vi.unstubAllGlobals();
});
+/** React 档要先动态取回 React 产物再取数,中间隔几步不固定;等到条件成立为止。 */
+async function until(ok: () => boolean, what: string): Promise<void> {
+ for (let step = 0; step < 100; step += 1) {
+ if (ok()) return;
+ await new Promise((resolve) => { setTimeout(resolve, 0) });
+ }
+ throw new Error(`一直没等到:${what}`);
+}
+
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual(
@@ -95,6 +111,74 @@ describe('mountIsland', () => {
});
});
+describe('mountIsland 的 React 档', () => {
+ // 第一次 `import('@peach/react')` 要现编译整棵 React 子树,比用例里的等待窗口长得多。
+ beforeAll(async () => { await import('@peach/react') });
+
+ const tasks = {
+ available: true,
+ running: [{
+ id: 1, task_key: 'follow-check', task_label: '追更检查', trigger: 'manual', status: 'running',
+ host: 'desk', started_at: '2026-09-11T10:00:00Z', finished_at: null, elapsed_seconds: 5,
+ progress_current: null, progress_total: null, progress_label: '正在查第三个来源',
+ result_summary: {}, error: '',
+ }],
+ skipped: [],
+ finished: [],
+ };
+
+ it('先把首屏取回来再画,React 根挂在自己的 `.peach-react` 容器里', async () => {
+ const fetch = deferredFetch(tasks);
+ fetch.install();
+ const el = container();
+ const mounting = mountIsland('activity', el, {});
+ await until(() => fetch.fetched.mock.calls.length > 0, '取数发出去');
+ expect(el.querySelector('[data-skeleton]'), '数据还没回来就撤骨架会出现第二段等待态').not.toBeNull();
+ fetch.resolve();
+ await act(async () => { await mounting });
+ expect(el.querySelector('[data-skeleton]')).toBeNull();
+ // token、Preflight 与焦点规则都作用在 `.peach-react` 上,根不挂在它里面就没有样式。
+ expect(el.querySelector('.peach-react')?.textContent).toContain('追更检查');
+ });
+
+ it('取数期间用户走开就不画,骨架留给下一页', async () => {
+ const fetch = deferredFetch(tasks);
+ fetch.install();
+ const el = container();
+ let current = true;
+ const mounting = mountIsland('activity', el, {}, { isCurrent: () => current });
+ await until(() => fetch.fetched.mock.calls.length > 0, '取数发出去');
+ current = false;
+ fetch.resolve();
+ await act(async () => { await mounting });
+ expect(el.querySelector('.peach-react'), '页面已经换掉,React 根不能挂上去').toBeNull();
+ expect(el.querySelector('[data-skeleton]')).not.toBeNull();
+ });
+
+ it('卸载时中止在途取数,画过的话连 React 根一起撤掉', async () => {
+ const fetch = deferredFetch(tasks);
+ fetch.install();
+ const el = container();
+ const mounting = mountIsland('activity', el, {});
+ await until(() => fetch.fetched.mock.calls.length > 0, '取数发出去');
+ unmountIsland(el);
+ await mounting;
+ expect(fetch.signal()?.aborted, '离开页面必须真的中止请求').toBe(true);
+ expect(el.querySelector('[data-skeleton]'), '还没画过就卸载,容器里是遗留骨架').not.toBeNull();
+
+ const again = deferredFetch(tasks);
+ again.install();
+ const painting = mountIsland('activity', el, {});
+ await until(() => again.fetched.mock.calls.length > 0, '第二次取数发出去');
+ again.resolve();
+ await act(async () => { await painting });
+ expect(islandMounted(el)).toBe(true);
+ await act(async () => { unmountIsland(el) });
+ expect(el.querySelector('.peach-react'), 'React 根和它的容器要跟着卸载一起走').toBeNull();
+ expect(islandMounted(el)).toBe(false);
+ });
+});
+
describe('unmountIsland', () => {
it('中止在途取数并清空容器', async () => {
const fetch = deferredFetch(payload([goal()]));
diff --git a/frontend/test/react/activity.test.tsx b/frontend/test/react/activity.test.tsx
new file mode 100644
index 000000000..07b371e20
--- /dev/null
+++ b/frontend/test/react/activity.test.tsx
@@ -0,0 +1,196 @@
+/* 活动页的行为:三段怎么分、轮询多久一次、失败时留下什么。
+ *
+ * 外观(状态徽章的三档颜色、失败卡的框线)是设计决定,由 `frontend/e2e/design.test.ts`
+ * 读 `getComputedStyle` 断言;这里只看结构、文字与请求。 */
+import { act } from 'react';
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, expect, it, vi } from 'vitest';
+
+import { ActivityPage } from '../../src/react/activity/activity-page';
+import { elapsedText, prefetchTasks, summaryText, TASKS_URL } from '../../src/react/activity/tasks';
+import type { ActivityData, TaskRunPayload } from '../../src/react/activity/tasks';
+import { queryClient } from '../../src/react/query';
+
+import { mount, mountRoot } from './render';
+
+// 客户端是模块级的单例(所有 React 根共用一个),用例之间不清就互相喂数据。
+afterEach(() => queryClient.clear());
+
+/* Query 派发更新用的是它自己抓住的那个真 `setTimeout(0)`,假时钟推不动它:推完时钟
+ 断言到的还是上一帧的 DOM。用例里改成当场派发。 */
+notifyManager.setScheduler((notify) => notify());
+
+const run = (overrides: Partial<TaskRunPayload> = {}): TaskRunPayload => ({
+ id: 1,
+ task_key: 'follow-check',
+ task_label: '追更检查',
+ trigger: 'manual',
+ status: 'running',
+ host: 'desk',
+ started_at: '2026-09-11T10:00:00Z',
+ finished_at: null,
+ elapsed_seconds: 75,
+ progress_current: 3,
+ progress_total: 12,
+ progress_label: '正在查第三个来源',
+ result_summary: {},
+ error: '',
+ ...overrides,
+});
+
+const payload = (overrides: Partial<ActivityData> = {}): ActivityData => ({
+ available: true, running: [], skipped: [], finished: [], ...overrides,
+});
+
+/** 依次回这几份数据,最后一份之后一直回它。`null` 那一份回 500。 */
+function serve(...responses: (ActivityData | null)[]) {
+ let at = 0;
+ const fetcher = vi.fn(async (_input: string, _init?: RequestInit) => {
+ const body = responses[Math.min(at, responses.length - 1)] ?? null;
+ at += 1;
+ return body
+ ? { ok: true, status: 200, json: async () => body }
+ : { ok: false, status: 500, json: async () => ({ message: '账本当前只能浏览' }) };
+ });
+ vi.stubGlobal('fetch', fetcher);
+ return fetcher;
+}
+
+const page = () => <QueryClientProvider client={queryClient}><ActivityPage /></QueryClientProvider>;
+
+/** 走完真实的首屏路径:先 prefetch 落进缓存,再挂载。 */
+async function open(...responses: (ActivityData | null)[]) {
+ const fetcher = serve(...responses);
+ await prefetchTasks(new AbortController().signal).catch(() => {});
+ return { fetcher, host: await mount(page()) };
+}
+
+const sections = (host: HTMLElement) => [...host.querySelectorAll('section')]
+ .map((section) => section.querySelector('h3')?.textContent);
+
+/** 轮询是组件里的定时器,推进时钟会引起重画,得在 act 里推。 */
+const tick = (ms: number) => act(async () => { await vi.advanceTimersByTimeAsync(ms) });
+
+it('首屏用 prefetch 落进缓存的那一份画出来,挂载时不再请求一次', async () => {
+ const { fetcher, host } = await open(payload({ running: [run()] }));
+ expect(fetcher).toHaveBeenCalledTimes(1);
+ expect(fetcher.mock.calls[0]?.[0]).toBe(TASKS_URL);
+ expect(host.querySelector('[data-task-key=follow-check]')).not.toBeNull();
+});
+
+it('在跑的那一轮给出真实计数的进度条与已跑时长', async () => {
+ const { host } = await open(payload({ running: [run()] }));
+ const bar = host.querySelector('[role=progressbar]')!;
+ expect(bar.getAttribute('aria-valuenow')).toBe('3');
+ expect(bar.getAttribute('aria-valuemax')).toBe('12');
+ expect(host.textContent).toContain('3 / 12 项');
+ expect(host.textContent).toContain('已跑 1 分 15 秒');
+ expect(host.querySelector('strong')?.textContent).toBe('追更检查');
+});
+
+it('总量未知时不画假进度条,只说正在做什么', async () => {
+ const { host } = await open(payload({ running: [run({ progress_total: null, progress_current: null })] }));
+ expect(host.querySelector('[role=progressbar]')).toBeNull();
+ expect(host.querySelector('[role=status]')?.textContent).toContain('正在查第三个来源');
+});
+
+it('被挡下的那一轮单独成段,不在最近完成里再出现一次', async () => {
+ const blocked = run({
+ id: 7, status: 'cancelled', trigger: 'scheduled', progress_total: null,
+ finished_at: '2026-09-11T10:05:00Z', elapsed_seconds: null,
+ result_summary: { blocked_by: 3 }, error: '与第 3 轮(手动触发)冲突,本次跳过',
+ });
+ const { host } = await open(payload({ skipped: [blocked], finished: [blocked] }));
+ expect(sections(host)).toEqual(['正在进行', '被挡下的']);
+ expect(host.querySelectorAll('li')).toHaveLength(1);
+ // 原因落在卡片底部的说明区,状态由徽章说。
+ expect(host.querySelector('[data-status=cancelled]')?.textContent).toContain('与第 3 轮');
+ expect(host.querySelector('[data-status=cancelled] span')?.textContent).toBe('已取消');
+});
+
+it('跑完那一轮显示摘要,失败那一轮显示原因', async () => {
+ const { host } = await open(payload({ finished: [
+ run({ id: 2, status: 'succeeded', finished_at: '2026-09-11T10:02:00Z',
+ progress_total: null, result_summary: { checked: 7, results: [1, 2] } }),
+ run({ id: 3, status: 'failed', task_label: '扫描与采集', finished_at: '2026-09-11T10:03:00Z',
+ progress_total: null, error: 'RuntimeError: 上游挡回来了' }),
+ ] }));
+ expect(host.querySelector('[data-status=succeeded]')?.textContent).toContain('已检查 7');
+ expect(host.querySelector('[data-status=failed]')?.textContent).toContain('上游挡回来了');
+ expect(host.querySelector('[data-status=succeeded] span')?.textContent).toBe('已完成');
+ // 跑成功那张没有说明区:没有原因可写时不留一条空条子。
+ expect(host.querySelectorAll('[data-status=succeeded] p')).toHaveLength(2);
+});
+
+it('一条记录都没有时给空态,不是一片白', async () => {
+ const { host } = await open(payload());
+ expect(host.querySelector('h3')?.textContent).toBe('还没有任务记录');
+ expect(host.querySelector('section')).toBeNull();
+});
+
+it('账本上还没有这张表时说清怎么办,不当成故障', async () => {
+ const { host } = await open(payload({
+ available: false, message: '账本还没有任务中心的表,执行一次 peach migrate --apply 就好' }));
+ expect(host.querySelector('[role=note]')?.textContent).toContain('migrate --apply');
+ expect(host.querySelector('[role=alert]')).toBeNull();
+});
+
+it('首屏取数就失败时只剩一条错误,不画空的三段', async () => {
+ const { host } = await open(null);
+ // 文案走遗留层的 `requestErrorMessage`:服务端给了中文原因就用它,页面不另说一遍。
+ expect(host.querySelector('[role=alert]')?.textContent).toContain('账本当前只能浏览');
+ expect(host.querySelector('section')).toBeNull();
+});
+
+it('轮询间隔跟着内容走:有东西在跑两秒一次,全是终态十秒一次', async () => {
+ vi.useFakeTimers();
+ const fetcher = serve(payload({ running: [run()] }), payload({ finished: [run({ status: 'succeeded' })] }));
+ await prefetchTasks(new AbortController().signal);
+ await mount(page());
+ expect(fetcher).toHaveBeenCalledTimes(1);
+
+ await tick(2000);
+ expect(fetcher, '有任务在跑时两秒一次').toHaveBeenCalledTimes(2);
+
+ // 这一份全是终态,下一轮要等十秒。
+ await tick(2000);
+ expect(fetcher, '没东西在跑还两秒敲一次库').toHaveBeenCalledTimes(2);
+ await tick(8000);
+ expect(fetcher).toHaveBeenCalledTimes(3);
+});
+
+it('一轮请求失败不擦掉上一份数据,只在页内多一条原因', async () => {
+ vi.useFakeTimers();
+ const fetcher = serve(payload({ finished: [run({ id: 5, status: 'succeeded', task_label: '扫描与采集' })] }), null);
+ await prefetchTasks(new AbortController().signal);
+ const host = await mount(page());
+
+ await tick(10_000);
+ expect(fetcher).toHaveBeenCalledTimes(2);
+ expect(host.querySelector('[role=alert]')?.textContent).toContain('账本当前只能浏览');
+ expect(host.textContent, '失败一次就把上一份结果擦掉,页面比原来知道得更少').toContain('扫描与采集');
+});
+
+it('卸载之后不再敲库:轮询跟着这棵根一起走', async () => {
+ vi.useFakeTimers();
+ const fetcher = serve(payload({ running: [run()] }));
+ await prefetchTasks(new AbortController().signal);
+ const mounted = await mountRoot(page());
+
+ await tick(2000);
+ expect(fetcher).toHaveBeenCalledTimes(2);
+ await mounted.unmount();
+ await tick(60_000);
+ expect(fetcher, '卸载之后还在轮询').toHaveBeenCalledTimes(2);
+});
+
+it('时长与摘要的折算各自成立', () => {
+ expect(elapsedText(0)).toBe('0 秒');
+ expect(elapsedText(59)).toBe('59 秒');
+ expect(elapsedText(75)).toBe('1 分 15 秒');
+ expect(elapsedText(3725)).toBe('1 小时 2 分');
+ expect(elapsedText(null)).toBe('');
+ // 明细与「谁挡的」不进这一行:前者太长,后者已经写在错误那一句里了。
+ expect(summaryText({ checked: 7, operation: 'like', rows: [1], blocked_by: 3 }))
+ .toBe('已检查 7 · 操作 like');
+});
diff --git a/frontend/test/react/render.tsx b/frontend/test/react/render.tsx
index 32a46d9a1..98a12ba72 100644
--- a/frontend/test/react/render.tsx
+++ b/frontend/test/react/render.tsx
@@ -14,14 +14,26 @@ afterEach(() => {
vi.useRealTimers();
});
-export async function mount(element: ReactElement): Promise<HTMLElement> {
+/** 挂一棵根并把卸载留给用例:用例要看卸载之后还发不发请求时用它。 */
+export async function mountRoot(element: ReactElement): Promise<{ host: HTMLElement; unmount(): Promise<void> }> {
const host = document.createElement('div');
host.className = 'peach-react';
document.body.append(host);
const root = createRoot(host);
roots.push(root);
await act(async () => root.render(element));
- return host;
+ return {
+ host,
+ unmount: async () => {
+ const at = roots.indexOf(root);
+ if (at >= 0) roots.splice(at, 1);
+ await act(async () => root.unmount());
+ },
+ };
+}
+
+export async function mount(element: ReactElement): Promise<HTMLElement> {
+ return (await mountRoot(element)).host;
}
/** 请求链上有好几段 `await`(fetch、json、setState),等它们都落地再断言。 */
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index f418fd82e..749338352 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-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-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-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-duration:initial;--tw-ease:initial;--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;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--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;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--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-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-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-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{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}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@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}.mr-auto{margin-right:auto}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.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-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.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-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.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}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.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)}.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,)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.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-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.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-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-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.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-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.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-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.bg-status-yellow-background{background-color:var(--color-status-yellow-background)}.bg-transparent{background-color:#0000}.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))}.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))}.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)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.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-3{padding-inline:calc(var(--spacing) * 3)}.px-\[7px\]{padding-inline:7px}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.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-4{padding-block:calc(var(--spacing) * 4)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.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)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-left{text-align:left}.text-right{text-align:right}.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-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-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-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))}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.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-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.text-notification-information-foreground{color:var(--color-notification-information-foreground)}.text-notification-success-foreground{color:var(--color-notification-success-foreground)}.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-white{color:var(--color-text-white)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-50{opacity:.5}.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-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:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);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 2px 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\/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-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)}.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,)}.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-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-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}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.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-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.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\: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-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)}.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-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-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.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\: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-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.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%}@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))}}@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)}}:root{--font-inter:"Inter Variable", "Inter"}.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-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@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-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-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-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-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@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}
+@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-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-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-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-duration:initial;--tw-ease:initial;--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;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--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;--shadow-checkbox-selected:inset 0 2px 0 0 #ffffff40, inset 0 0 0 1px var(--color-accent-500);--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-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-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-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-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{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}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sticky{position:sticky}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.container{width:100%}@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}.mx-auto{margin-inline:auto}.mr-auto{margin-right:auto}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.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-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.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-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.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}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-full{height:100%}.h-max{height:max-content}.max-h-\[240px\]{max-height:240px}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-board{max-width:var(--container-board)}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.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)}.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}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.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-\[3px\]{border-radius:3px}.rounded-\[4\.5px\]{border-radius:4.5px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xs{border-radius:var(--radius-xs)}.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-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-solid{--tw-border-style:solid;border-style:solid}.border-accent-600{border-color:var(--color-accent-600)}.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-separator-border{border-color:var(--color-separator-border)}.bg-background-primary-default{background-color:var(--color-background-primary-default)}.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-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-current{background-color:currentColor}.bg-dropdown-item-hover-background{background-color:var(--color-dropdown-item-hover-background)}.bg-input-disabled-background{background-color:var(--color-input-disabled-background)}.bg-notification-information-background{background-color:var(--color-notification-information-background)}.bg-notification-success-background{background-color:var(--color-notification-success-background)}.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-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-transparent{background-color:#0000}.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))}.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))}.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)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.p-0{padding:0}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.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-3{padding-inline:calc(var(--spacing) * 3)}.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-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-4{padding-block:calc(var(--spacing) * 4)}.py-12{padding-block:calc(var(--spacing) * 12)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.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-4{padding-bottom:calc(var(--spacing) * 4)}.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}.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-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-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-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-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-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))}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent-600{color:var(--color-accent-600)}.text-button-ghost-foreground{color:var(--color-button-ghost-foreground)}.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-input-disabled-foreground{color:var(--color-input-disabled-foreground)}.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)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.opacity-50{opacity:.5}.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-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:0 1px 1px 0 var(--tw-shadow-color,#0000000a), 0 4px 4px 0 var(--tw-shadow-color,#00000005);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 2px 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\/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-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)}.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,)}.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-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}.placeholder\:text-text-tertiary::placeholder{color:var(--color-text-tertiary)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:border-border-button-hover:hover{border-color:var(--color-border-button-hover)}.hover\:bg-background-primary-hover:hover{background-color:var(--color-background-primary-hover)}.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-text-primary:hover{color:var(--color-text-primary)}.hover\:underline:hover{text-decoration-line:underline}}.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\: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-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)}.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-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-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.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\: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-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-text-primary[data-selected]{color:var(--color-text-primary)}.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%}@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))}}@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)}}@keyframes peach-dot-wave{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}:root{--font-inter:"Inter Variable", "Inter"}.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-700);--color-border-checkbox-hover:var(--color-neutral-500);--color-separator-border:var(--color-neutral-800)}@keyframes check-draw{0%{stroke-dashoffset:1px}to{stroke-dashoffset:0}}.animate-check-draw{stroke-dasharray:1;stroke-dashoffset:1px;animation:.2s cubic-bezier(.65,0,.35,1) forwards check-draw}@media (prefers-reduced-motion:reduce){.animate-check-draw{stroke-dashoffset:0;animation:none}}@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-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-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-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-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@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}
/*$vite$:1*/
\ No newline at end of file
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 8fb93fdf9..7d0086eec 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -10,7 +10,1900 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
}, f = (e, t, n) => (n = e == null ? {} : i(c(e)), d(t || !e || !e.__esModule || !l.call(e, "default") ? a(n, "default", {
value: e,
enumerable: !0
-}) : n, e)), p = class {
+}) : n, e)), p = /* @__PURE__ */ u(((e) => {
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
+ function h(e) {
+ return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
+ }
+ var g = {
+ isMounted: function() {
+ return !1;
+ },
+ enqueueForceUpdate: function() {},
+ enqueueReplaceState: function() {},
+ enqueueSetState: function() {}
+ }, _ = Object.assign, v = {};
+ function y(e, t, n) {
+ this.props = e, this.context = t, this.refs = v, this.updater = n || g;
+ }
+ y.prototype.isReactComponent = {}, y.prototype.setState = function(e, t) {
+ if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
+ this.updater.enqueueSetState(this, e, t, "setState");
+ }, y.prototype.forceUpdate = function(e) {
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
+ };
+ function b() {}
+ b.prototype = y.prototype;
+ function x(e, t, n) {
+ this.props = e, this.context = t, this.refs = v, this.updater = n || g;
+ }
+ var S = x.prototype = new b();
+ S.constructor = x, _(S, y.prototype), S.isPureReactComponent = !0;
+ var C = Array.isArray;
+ function w() {}
+ var T = {
+ H: null,
+ A: null,
+ T: null,
+ S: null
+ }, E = Object.prototype.hasOwnProperty;
+ function D(e, n, r) {
+ var i = r.ref;
+ return {
+ $$typeof: t,
+ type: e,
+ key: n,
+ ref: i === void 0 ? null : i,
+ props: r
+ };
+ }
+ function O(e, t) {
+ return D(e.type, t, e.props);
+ }
+ function k(e) {
+ return typeof e == "object" && !!e && e.$$typeof === t;
+ }
+ function A(e) {
+ var t = {
+ "=": "=0",
+ ":": "=2"
+ };
+ return "$" + e.replace(/[=:]/g, function(e) {
+ return t[e];
+ });
+ }
+ var ee = /\/+/g;
+ function j(e, t) {
+ return typeof e == "object" && e && e.key != null ? A("" + e.key) : t.toString(36);
+ }
+ function te(e) {
+ switch (e.status) {
+ case "fulfilled": return e.value;
+ case "rejected": throw e.reason;
+ default: switch (typeof e.status == "string" ? e.then(w, w) : (e.status = "pending", e.then(function(t) {
+ e.status === "pending" && (e.status = "fulfilled", e.value = t);
+ }, function(t) {
+ e.status === "pending" && (e.status = "rejected", e.reason = t);
+ })), e.status) {
+ case "fulfilled": return e.value;
+ case "rejected": throw e.reason;
+ }
+ }
+ throw e;
+ }
+ function ne(e, r, i, a, o) {
+ var s = typeof e;
+ (s === "undefined" || s === "boolean") && (e = null);
+ var c = !1;
+ if (e === null) c = !0;
+ else switch (s) {
+ case "bigint":
+ case "string":
+ case "number":
+ c = !0;
+ break;
+ case "object": switch (e.$$typeof) {
+ case t:
+ case n:
+ c = !0;
+ break;
+ case d: return c = e._init, ne(c(e._payload), r, i, a, o);
+ }
+ }
+ if (c) return o = o(e), c = a === "" ? "." + j(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(ee, "$&/") + "/"), ne(o, r, i, "", function(e) {
+ return e;
+ })) : o != null && (k(o) && (o = O(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(ee, "$&/") + "/") + c)), r.push(o)), 1;
+ c = 0;
+ var l = a === "" ? "." : a + ":";
+ if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + j(a, u), c += ne(a, r, i, s, o);
+ else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + j(a, u++), c += ne(a, r, i, s, o);
+ else if (s === "object") {
+ if (typeof e.then == "function") return ne(te(e), r, i, a, o);
+ throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
+ }
+ return c;
+ }
+ function re(e, t, n) {
+ if (e == null) return e;
+ var r = [], i = 0;
+ return ne(e, r, "", "", function(e) {
+ return t.call(n, e, i++);
+ }), r;
+ }
+ function M(e) {
+ if (e._status === -1) {
+ var t = e._result, n = t();
+ n.then(function(t) {
+ (e._status === 0 || e._status === -1) && (e._status = 1, e._result = t, n.status === void 0 && (n.status = "fulfilled", n.value = t));
+ }, function(t) {
+ (e._status === 0 || e._status === -1) && (e._status = 2, e._result = t, n.status === void 0 && (n.status = "rejected", n.reason = t));
+ }), e._status === -1 && (e._status = 0, e._result = n);
+ }
+ if (e._status === 1) return e._result.default;
+ throw e._result;
+ }
+ var ie = typeof reportError == "function" ? reportError : function(e) {
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
+ var t = new window.ErrorEvent("error", {
+ bubbles: !0,
+ cancelable: !0,
+ message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
+ error: e
+ });
+ if (!window.dispatchEvent(t)) return;
+ } else if (typeof process == "object" && typeof process.emit == "function") {
+ process.emit("uncaughtException", e);
+ return;
+ }
+ console.error(e);
+ };
+ function ae(e) {
+ var t = T.T, n = {};
+ n.types = t === null ? null : t.types, T.T = n;
+ try {
+ var r = e(), i = T.S;
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, ie);
+ } catch (e) {
+ ie(e);
+ } finally {
+ t !== null && n.types !== null && (t.types = n.types), T.T = t;
+ }
+ }
+ function oe(e) {
+ var t = T.T;
+ if (t !== null) {
+ var n = t.types;
+ n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
+ } else ae(oe.bind(null, e));
+ }
+ var se = {
+ map: re,
+ forEach: function(e, t, n) {
+ re(e, function() {
+ t.apply(this, arguments);
+ }, n);
+ },
+ count: function(e) {
+ var t = 0;
+ return re(e, function() {
+ t++;
+ }), t;
+ },
+ toArray: function(e) {
+ return re(e, function(e) {
+ return e;
+ }) || [];
+ },
+ only: function(e) {
+ if (!k(e)) throw Error("React.Children.only expected to receive a single React element child.");
+ return e;
+ }
+ };
+ e.Activity = f, e.Children = se, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
+ __proto__: null,
+ c: function(e) {
+ return T.H.useMemoCache(e);
+ }
+ }, e.addTransitionType = oe, e.cache = function(e) {
+ return function() {
+ return e.apply(null, arguments);
+ };
+ }, e.cacheSignal = function() {
+ return null;
+ }, e.cloneElement = function(e, t, n) {
+ if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
+ var r = _({}, e.props), i = e.key;
+ if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !E.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);
+ var a = arguments.length - 2;
+ if (a === 1) r.children = n;
+ else if (1 < a) {
+ for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
+ r.children = o;
+ }
+ return D(e.type, i, r);
+ }, e.createContext = function(e) {
+ return e = {
+ $$typeof: s,
+ _currentValue: e,
+ _currentValue2: e,
+ _threadCount: 0,
+ Provider: null,
+ Consumer: null
+ }, e.Provider = e, e.Consumer = {
+ $$typeof: o,
+ _context: e
+ }, e;
+ }, e.createElement = function(e, t, n) {
+ var r, i = {}, a = null;
+ if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) E.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);
+ var o = arguments.length - 2;
+ if (o === 1) i.children = n;
+ else if (1 < o) {
+ for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2];
+ i.children = s;
+ }
+ if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);
+ return D(e, a, i);
+ }, e.createRef = function() {
+ return { current: null };
+ }, e.forwardRef = function(e) {
+ return {
+ $$typeof: c,
+ render: e
+ };
+ }, e.isValidElement = k, e.lazy = function(e) {
+ return {
+ $$typeof: d,
+ _payload: {
+ _status: -1,
+ _result: e
+ },
+ _init: M
+ };
+ }, e.memo = function(e, t) {
+ return {
+ $$typeof: u,
+ type: e,
+ compare: t === void 0 ? null : t
+ };
+ }, e.startTransition = ae, e.unstable_useCacheRefresh = function() {
+ return T.H.useCacheRefresh();
+ }, e.use = function(e) {
+ return T.H.use(e);
+ }, e.useActionState = function(e, t, n) {
+ return T.H.useActionState(e, t, n);
+ }, e.useCallback = function(e, t) {
+ return T.H.useCallback(e, t);
+ }, e.useContext = function(e) {
+ return T.H.useContext(e);
+ }, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {
+ return T.H.useDeferredValue(e, t);
+ }, e.useEffect = function(e, t) {
+ return T.H.useEffect(e, t);
+ }, e.useEffectEvent = function(e) {
+ return T.H.useEffectEvent(e);
+ }, e.useId = function() {
+ return T.H.useId();
+ }, e.useImperativeHandle = function(e, t, n) {
+ return T.H.useImperativeHandle(e, t, n);
+ }, e.useInsertionEffect = function(e, t) {
+ return T.H.useInsertionEffect(e, t);
+ }, e.useLayoutEffect = function(e, t) {
+ return T.H.useLayoutEffect(e, t);
+ }, e.useMemo = function(e, t) {
+ return T.H.useMemo(e, t);
+ }, e.useOptimistic = function(e, t) {
+ return T.H.useOptimistic(e, t);
+ }, e.useReducer = function(e, t, n) {
+ return T.H.useReducer(e, t, n);
+ }, e.useRef = function(e) {
+ return T.H.useRef(e);
+ }, e.useState = function(e) {
+ return T.H.useState(e);
+ }, e.useSyncExternalStore = function(e, t, n) {
+ return T.H.useSyncExternalStore(e, t, n);
+ }, e.useTransition = function() {
+ return T.H.useTransition();
+ }, e.version = "19.3.0";
+})), m = /* @__PURE__ */ u(((e, t) => {
+ t.exports = p();
+})), h = /* @__PURE__ */ u(((e) => {
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
+ function r(e, n, r) {
+ var i = null;
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
+ else r = n;
+ return n = r.ref, {
+ $$typeof: t,
+ type: e,
+ key: i,
+ ref: n === void 0 ? null : n,
+ props: r
+ };
+ }
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
+})), g = /* @__PURE__ */ u(((e, t) => {
+ t.exports = h();
+})), _ = /* @__PURE__ */ f(m(), 1), v = g(), y = _.createContext(void 0), b = (e) => {
+ let t = _.useContext(y);
+ if (e) return e;
+ if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
+ return t;
+}, x = ({ client: e, children: t }) => (_.useEffect(() => (e.mount(), () => {
+ e.unmount();
+}), [e]), /* @__PURE__ */ (0, v.jsx)(y.Provider, {
+ value: e,
+ children: t
+})), S = {
+ setTimeout: (e, t) => setTimeout(e, t),
+ clearTimeout: (e) => clearTimeout(e),
+ setInterval: (e, t) => setInterval(e, t),
+ clearInterval: (e) => clearInterval(e)
+}, C = new class {
+ #e = S;
+ setTimeoutProvider(e) {
+ this.#e = e;
+ }
+ setTimeout(e, t) {
+ return this.#e.setTimeout(e, t);
+ }
+ clearTimeout(e) {
+ this.#e.clearTimeout(e);
+ }
+ setInterval(e, t) {
+ return this.#e.setInterval(e, t);
+ }
+ clearInterval(e) {
+ this.#e.clearInterval(e);
+ }
+}();
+function w(e) {
+ setTimeout(e, 0);
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/utils.js
+var T = typeof window > "u" || "Deno" in globalThis;
+function E() {}
+function D(e, t) {
+ return typeof e == "function" ? e(t) : e;
+}
+function O(e) {
+ return typeof e == "number" && e >= 0 && e !== Infinity;
+}
+function k(e, t) {
+ return Math.max(e + (t || 0) - Date.now(), 0);
+}
+function A(e, t) {
+ return typeof e == "function" ? e(t) : e;
+}
+function ee(e, t) {
+ let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
+ if (o) {
+ if (r) {
+ if (t.queryHash !== te(o, t.options)) return !1;
+ } else if (!re(t.queryKey, o)) return !1;
+ }
+ if (n !== "all") {
+ let e = t.isActive();
+ if (n === "active" && !e || n === "inactive" && e) return !1;
+ }
+ return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
+}
+function j(e, t) {
+ let { exact: n, status: r, predicate: i, mutationKey: a } = e;
+ if (a) {
+ if (!t.options.mutationKey) return !1;
+ if (n) {
+ if (ne(t.options.mutationKey) !== ne(a)) return !1;
+ } else if (!re(t.options.mutationKey, a)) return !1;
+ }
+ return !(r && t.state.status !== r || i && !i(t));
+}
+function te(e, t) {
+ return (t?.queryKeyHashFn || ne)(e);
+}
+function ne(e) {
+ return JSON.stringify(e, (e, t) => se(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
+}
+function re(e, t) {
+ if (e === t) return !0;
+ if (typeof e != typeof t) return !1;
+ if (e && t && typeof e == "object" && typeof t == "object") {
+ if (Array.isArray(e) && Array.isArray(t)) {
+ for (let n = 0; n < t.length; n++) if (!re(e[n], t[n])) return !1;
+ return !0;
+ }
+ let n = Object.keys(t);
+ for (let r of n) if (!re(e[r], t[r])) return !1;
+ return !0;
+ }
+ return !1;
+}
+var M = Object.prototype.hasOwnProperty;
+function ie(e, t, n = 0) {
+ if (e === t) return e;
+ if (n > 500) return t;
+ let r = oe(e) && oe(t);
+ if (!r && !(se(e) && se(t))) return t;
+ let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
+ for (let l = 0; l < o; l++) {
+ let o = r ? l : a[l], u = e[o], d = t[o];
+ if (u === d) {
+ s[o] = u, (r ? l < i : M.call(e, o)) && c++;
+ continue;
+ }
+ if (u === null || d === null || typeof u != "object" || typeof d != "object") {
+ s[o] = d;
+ continue;
+ }
+ let f = ie(u, d, n + 1);
+ s[o] = f, f === u && c++;
+ }
+ return i === o && c === i ? e : s;
+}
+function ae(e, t) {
+ if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
+ for (let n in e) if (e[n] !== t[n]) return !1;
+ return !0;
+}
+function oe(e) {
+ return Array.isArray(e) && e.length === Object.keys(e).length;
+}
+function se(e) {
+ if (!ce(e)) return !1;
+ let t = e.constructor;
+ if (t === void 0) return !0;
+ let n = t.prototype;
+ return !(!ce(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
+}
+function ce(e) {
+ return Object.prototype.toString.call(e) === "[object Object]";
+}
+function le(e) {
+ return new Promise((t) => {
+ C.setTimeout(t, e);
+ });
+}
+function ue(e, t, n) {
+ return typeof n.structuralSharing == "function" ? n.structuralSharing(e, t) : n.structuralSharing === !1 ? t : ie(e, t);
+}
+function de(e, t, n = 0) {
+ let r = [...e, t];
+ return n && r.length > n ? r.slice(1) : r;
+}
+function fe(e, t, n = 0) {
+ let r = [t, ...e];
+ return n && r.length > n ? r.slice(0, -1) : r;
+}
+var pe = Symbol();
+function me(e, t) {
+ return !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === pe ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
+}
+function he(e, t) {
+ return typeof e == "function" ? e(...t) : !!e;
+}
+function N(e, t, n) {
+ let r = !1, i;
+ return Object.defineProperty(e, "signal", {
+ enumerable: !0,
+ get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
+ }), e;
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
+var P = () => T, ge = () => P(), _e = class {
+ constructor() {
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
+ }
+ subscribe(e) {
+ return this.listeners.add(e), this.onSubscribe(), () => {
+ this.listeners.delete(e), this.onUnsubscribe();
+ };
+ }
+ hasListeners() {
+ return this.listeners.size > 0;
+ }
+ onSubscribe() {}
+ onUnsubscribe() {}
+}, ve = new class extends _e {
+ #e;
+ #t;
+ #n;
+ constructor() {
+ super(), this.#n = (e) => {
+ if (typeof window < "u" && window.addEventListener) {
+ let t = () => e();
+ return window.addEventListener("visibilitychange", t, !1), () => {
+ window.removeEventListener("visibilitychange", t);
+ };
+ }
+ };
+ }
+ onSubscribe() {
+ this.#t || this.setEventListener(this.#n);
+ }
+ onUnsubscribe() {
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
+ }
+ setEventListener(e) {
+ this.#n = e, this.#t?.(), this.#t = e((e) => {
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
+ });
+ }
+ setFocused(e) {
+ this.#e !== e && (this.#e = e, this.onFocus());
+ }
+ onFocus() {
+ let e = this.isFocused();
+ this.listeners.forEach((t) => {
+ t(e);
+ });
+ }
+ isFocused() {
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
+ }
+}(), ye = w;
+function be() {
+ let e = [], t = 0, n = (e) => {
+ e();
+ }, r = (e) => {
+ e();
+ }, i = ye, a = (r) => {
+ t ? e.push(r) : i(() => {
+ n(r);
+ });
+ }, o = () => {
+ let t = e;
+ e = [], t.length && i(() => {
+ r(() => {
+ t.forEach((e) => {
+ n(e);
+ });
+ });
+ });
+ };
+ return {
+ batch: (e) => {
+ let n;
+ t++;
+ try {
+ n = e();
+ } finally {
+ t--, t || o();
+ }
+ return n;
+ },
+ batchCalls: (e) => (...t) => {
+ a(() => {
+ e(...t);
+ });
+ },
+ schedule: a,
+ setNotifyFunction: (e) => {
+ n = e;
+ },
+ setBatchNotifyFunction: (e) => {
+ r = e;
+ },
+ setScheduler: (e) => {
+ i = e;
+ }
+ };
+}
+var F = be(), xe = new class extends _e {
+ #e = !0;
+ #t;
+ #n;
+ constructor() {
+ super(), this.#n = (e) => {
+ if (typeof window < "u" && window.addEventListener) {
+ let t = () => e(!0), n = () => e(!1);
+ return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
+ window.removeEventListener("online", t), window.removeEventListener("offline", n);
+ };
+ }
+ };
+ }
+ onSubscribe() {
+ this.#t || this.setEventListener(this.#n);
+ }
+ onUnsubscribe() {
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
+ }
+ setEventListener(e) {
+ this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
+ }
+ setOnline(e) {
+ this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
+ t(e);
+ }));
+ }
+ isOnline() {
+ return this.#e;
+ }
+}();
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/retryer.js
+function Se(e) {
+ return Math.min(1e3 * 2 ** e, 3e4);
+}
+function Ce(e) {
+ return (e ?? "online") !== "online" || xe.isOnline();
+}
+var we = class extends Error {
+ constructor(e) {
+ super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
+ }
+};
+function Te(e) {
+ let t = !1, n = 0, r, i = "pending", a, o, s = new Promise((e, t) => {
+ a = e, o = t;
+ });
+ s.catch(E);
+ let c = () => i !== "pending", l = (t) => {
+ if (!c()) {
+ let n = new we(t);
+ h(n), e.onCancel?.(n);
+ }
+ }, u = () => {
+ t = !0;
+ }, d = () => {
+ t = !1;
+ }, f = () => ve.isFocused() && (e.networkMode === "always" || xe.isOnline()) && e.canRun(), p = () => Ce(e.networkMode) && e.canRun(), m = (e) => {
+ c() || (r?.(), i = "resolved", a(e));
+ }, h = (e) => {
+ c() || (r?.(), i = "rejected", o(e));
+ }, g = () => new Promise((t) => {
+ r = (e) => {
+ (c() || f()) && t(e);
+ }, e.onPause?.();
+ }).then(() => {
+ r = void 0, c() || e.onContinue?.();
+ }), _ = () => {
+ if (c()) return;
+ let r, i = n === 0 ? e.initialPromise : void 0;
+ try {
+ r = i ?? e.fn();
+ } catch (e) {
+ r = Promise.reject(e);
+ }
+ Promise.resolve(r).then(m).catch((r) => {
+ if (c()) return;
+ let i = e.retry ?? (ge() ? 0 : 3), a = e.retryDelay ?? Se, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
+ if (t || !s) {
+ h(r);
+ return;
+ }
+ n++, e.onFail?.(n, r), le(o).then(() => f() ? void 0 : g()).then(() => {
+ t ? h(r) : _();
+ });
+ });
+ };
+ return {
+ promise: s,
+ status: () => i,
+ cancel: l,
+ continue: () => (r?.(), s),
+ cancelRetry: u,
+ continueRetry: d,
+ canStart: p,
+ start: () => (p() ? _() : g().then(_), s)
+ };
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/removable.js
+var Ee = class {
+ #e;
+ destroy() {
+ this.clearGcTimeout();
+ }
+ scheduleGc() {
+ this.clearGcTimeout(), O(this.gcTime) && (this.#e = C.setTimeout(() => {
+ this.optionalRemove();
+ }, this.gcTime));
+ }
+ updateGcTime(e) {
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (ge() ? Infinity : 3e5));
+ }
+ clearGcTimeout() {
+ this.#e !== void 0 && (C.clearTimeout(this.#e), this.#e = void 0);
+ }
+};
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
+function De(e) {
+ return { onFetch: (t, n) => {
+ let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
+ pages: [],
+ pageParams: []
+ }, c = 0, l = async () => {
+ let n = !1, l = (e) => {
+ N(e, () => t.signal, () => n = !0);
+ }, u = me(t.options, t.fetchOptions), d = async (e, r, i) => {
+ if (n) return Promise.reject(t.signal.reason);
+ if (r == null && e.pages.length) return Promise.resolve(e);
+ let a = (() => {
+ let e = {
+ client: t.client,
+ queryKey: t.queryKey,
+ pageParam: r,
+ direction: i ? "backward" : "forward",
+ meta: t.options.meta
+ };
+ return l(e), e;
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? fe : de;
+ return {
+ pages: c(e.pages, o, s),
+ pageParams: c(e.pageParams, r, s)
+ };
+ };
+ if (i && a.length) {
+ let e = i === "backward", t = e ? ke : Oe, n = {
+ pages: a,
+ pageParams: o
+ };
+ s = await d(n, t(r, n), e);
+ } else {
+ let t = e ?? a.length;
+ do {
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Oe(r, s);
+ if (c > 0 && e == null) break;
+ s = await d(s, e), c++;
+ } while (c < t);
+ }
+ return s;
+ };
+ t.fetchFn = t.options.persister ? () => t.options.persister?.(l, {
+ client: t.client,
+ queryKey: t.queryKey,
+ meta: t.options.meta,
+ signal: t.signal
+ }, n) : l;
+ } };
+}
+function Oe(e, { pages: t, pageParams: n }) {
+ let r = t.length - 1;
+ return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
+}
+function ke(e, { pages: t, pageParams: n }) {
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/query.js
+var Ae = class extends Ee {
+ #e;
+ #t;
+ #n;
+ #r;
+ #i;
+ #a;
+ #o;
+ #s;
+ constructor(e) {
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Ne(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
+ }
+ get meta() {
+ return this.options.meta;
+ }
+ get queryType() {
+ return this.#e;
+ }
+ get promise() {
+ return this.#a?.promise;
+ }
+ setOptions(e) {
+ if (this.options = {
+ ...this.#o,
+ ...e
+ }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
+ let e = Ne(this.options);
+ e.data !== void 0 && (this.setState(Me(e.data, e.dataUpdatedAt)), this.#t = e);
+ }
+ }
+ optionalRemove() {
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
+ }
+ setData(e, t) {
+ let n = ue(this.state.data, e, this.options);
+ return this.#c({
+ data: n,
+ type: "success",
+ dataUpdatedAt: t?.updatedAt,
+ manual: t?.manual
+ }), n;
+ }
+ setState(e) {
+ this.#c({
+ type: "setState",
+ state: e
+ });
+ }
+ cancel(e) {
+ let t = this.#a?.promise;
+ return this.#a?.cancel(e), t ? t.then(E).catch(E) : Promise.resolve();
+ }
+ destroy() {
+ super.destroy(), this.cancel({ silent: !0 });
+ }
+ get resetState() {
+ return this.#t;
+ }
+ reset() {
+ this.destroy(), this.setState(this.resetState);
+ }
+ isActive() {
+ return this.observers.some((e) => A(e.options.enabled, this) !== !1);
+ }
+ isDisabled() {
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === pe || !this.isFetched();
+ }
+ isFetched() {
+ return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
+ }
+ isStatic() {
+ return this.getObserversCount() > 0 && this.observers.some((e) => A(e.options.staleTime, this) === "static");
+ }
+ isStale() {
+ return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
+ }
+ isStaleByTime(e = 0) {
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !k(this.state.dataUpdatedAt, e);
+ }
+ onFocus() {
+ this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
+ }
+ onOnline() {
+ this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
+ }
+ addObserver(e) {
+ this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
+ type: "observerAdded",
+ query: this,
+ observer: e
+ }));
+ }
+ removeObserver(e) {
+ let t = this.observers.indexOf(e);
+ t !== -1 && (this.observers.splice(t, 1), this.observers.length || (this.#a && (this.#s || this.state.fetchStatus === "paused" && this.state.status === "pending" ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
+ type: "observerRemoved",
+ query: this,
+ observer: e
+ }));
+ }
+ getObserversCount() {
+ return this.observers.length;
+ }
+ invalidate() {
+ this.state.isInvalidated || this.#c({ type: "invalidate" });
+ }
+ async fetch(e, t) {
+ if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
+ if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
+ else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
+ }
+ if (e && this.setOptions(e), !this.options.queryFn) {
+ let e = this.observers.find((e) => e.options.queryFn);
+ e && this.setOptions(e.options);
+ }
+ let n = new AbortController(), r = (e) => {
+ Object.defineProperty(e, "signal", {
+ enumerable: !0,
+ get: () => (this.#s = !0, n.signal)
+ });
+ }, i = () => {
+ let e = me(this.options, t), n = (() => {
+ let e = {
+ client: this.#i,
+ queryKey: this.queryKey,
+ meta: this.meta
+ };
+ return r(e), e;
+ })();
+ return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
+ }, a = (() => {
+ let e = {
+ fetchOptions: t,
+ options: this.options,
+ queryKey: this.queryKey,
+ client: this.#i,
+ state: this.state,
+ fetchFn: i
+ };
+ return r(e), e;
+ })();
+ (this.#e === "infinite" ? De(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
+ type: "fetch",
+ meta: a.fetchOptions?.meta
+ });
+ let o = this.#a = Te({
+ initialPromise: t?.initialPromise,
+ fn: a.fetchFn,
+ onCancel: (e) => {
+ e instanceof we && e.revert && this.setState({
+ ...this.#n,
+ fetchStatus: "idle"
+ }), n.abort();
+ },
+ onFail: (e, t) => {
+ this.#c({
+ type: "failed",
+ failureCount: e,
+ error: t
+ });
+ },
+ onPause: () => {
+ this.#c({ type: "pause" });
+ },
+ onContinue: () => {
+ this.#c({ type: "continue" });
+ },
+ retry: a.options.retry,
+ retryDelay: a.options.retryDelay,
+ networkMode: a.options.networkMode,
+ canRun: () => !0
+ });
+ try {
+ let e = await o.start();
+ if (e === void 0) throw Error(`${this.queryHash} data is undefined`);
+ return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
+ } catch (e) {
+ if (e instanceof we) {
+ if (e.silent) return this.#a.promise;
+ if (e.revert) {
+ if (this.state.data === void 0) throw e;
+ return this.state.data;
+ }
+ }
+ throw this.#c({
+ type: "error",
+ error: e
+ }), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
+ } finally {
+ this.#a === o && (this.#a = void 0), this.scheduleGc();
+ }
+ }
+ #c(e) {
+ let t = (t) => {
+ switch (e.type) {
+ case "failed": return {
+ ...t,
+ fetchFailureCount: e.failureCount,
+ fetchFailureReason: e.error
+ };
+ case "pause": return {
+ ...t,
+ fetchStatus: "paused"
+ };
+ case "continue": return {
+ ...t,
+ fetchStatus: "fetching"
+ };
+ case "fetch": return {
+ ...t,
+ ...je(t.data, this.options),
+ fetchMeta: e.meta ?? null
+ };
+ case "success":
+ let n = {
+ ...t,
+ ...Me(e.data, e.dataUpdatedAt),
+ dataUpdateCount: t.dataUpdateCount + 1,
+ ...!e.manual && {
+ fetchStatus: "idle",
+ fetchFailureCount: 0,
+ fetchFailureReason: null
+ }
+ };
+ return this.#n = e.manual ? n : void 0, n;
+ case "error":
+ let r = e.error;
+ return {
+ ...t,
+ error: r,
+ errorUpdateCount: t.errorUpdateCount + 1,
+ errorUpdatedAt: Date.now(),
+ fetchFailureCount: t.fetchFailureCount + 1,
+ fetchFailureReason: r,
+ fetchStatus: "idle",
+ status: "error",
+ isInvalidated: !0
+ };
+ case "invalidate": return {
+ ...t,
+ isInvalidated: !0
+ };
+ case "setState": return {
+ ...t,
+ ...e.state
+ };
+ }
+ };
+ this.state = t(this.state), F.batch(() => {
+ this.observers.slice().forEach((e) => {
+ e.onQueryUpdate();
+ }), this.#r.notify({
+ query: this,
+ type: "updated",
+ action: e
+ });
+ });
+ }
+};
+function je(e, t) {
+ return {
+ fetchFailureCount: 0,
+ fetchFailureReason: null,
+ fetchStatus: Ce(t.networkMode) ? "fetching" : "paused",
+ ...e === void 0 && {
+ error: null,
+ status: "pending"
+ }
+ };
+}
+function Me(e, t) {
+ return {
+ data: e,
+ dataUpdatedAt: t ?? Date.now(),
+ error: null,
+ isInvalidated: !1,
+ status: "success"
+ };
+}
+function Ne(e) {
+ let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
+ return {
+ data: t,
+ dataUpdateCount: 0,
+ dataUpdatedAt: n ? r ?? Date.now() : 0,
+ error: null,
+ errorUpdateCount: 0,
+ errorUpdatedAt: 0,
+ fetchFailureCount: 0,
+ fetchFailureReason: null,
+ fetchMeta: null,
+ isInvalidated: !1,
+ status: n ? "success" : "pending",
+ fetchStatus: "idle"
+ };
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/queryObserver.js
+var Pe = class extends _e {
+ #e;
+ #t = void 0;
+ #n = void 0;
+ #r = void 0;
+ #i;
+ #a;
+ #o;
+ #s;
+ #c;
+ #l;
+ #u;
+ #d;
+ #f;
+ #p = /* @__PURE__ */ new Set();
+ constructor(e, t) {
+ super(), this.options = t, this.#e = e, this.#o = null, this.bindMethods(), this.setOptions(t);
+ }
+ bindMethods() {
+ this.refetch = this.refetch.bind(this);
+ }
+ onSubscribe() {
+ this.listeners.size === 1 && (this.#t.addObserver(this), Ie(this.#t, this.options) ? this.#m() : this.updateResult(), this.#y());
+ }
+ onUnsubscribe() {
+ this.hasListeners() || this.destroy();
+ }
+ shouldFetchOnReconnect() {
+ return Le(this.#t, this.options, this.options.refetchOnReconnect);
+ }
+ shouldFetchOnWindowFocus() {
+ return Le(this.#t, this.options, this.options.refetchOnWindowFocus);
+ }
+ destroy() {
+ this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
+ }
+ setOptions(e) {
+ let t = this.options, n = this.#t;
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof A(this.options.enabled, this.#t) != "boolean") throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
+ this.#S(), this.#t.setOptions(this.options), t._defaulted && !ae(this.options, t) && this.#e.getQueryCache().notify({
+ type: "observerOptionsUpdated",
+ query: this.#t,
+ observer: this
+ });
+ let r = this.hasListeners();
+ r && Re(this.#t, n, this.options, t) && this.#m(), this.updateResult(), r && (this.#t !== n || A(this.options.enabled, this.#t) !== A(t.enabled, this.#t) || A(this.options.staleTime, this.#t) !== A(t.staleTime, this.#t)) && this.#g();
+ let i = this.#_();
+ r && (this.#t !== n || A(this.options.enabled, this.#t) !== A(t.enabled, this.#t) || i !== this.#f) && this.#v(i);
+ }
+ getOptimisticResult(e) {
+ let t = this.#e.getQueryCache().build(this.#e, e), n = this.createResult(t, e);
+ return ae(this.getCurrentResult(), n) || (this.#r = n, this.#a = this.options, this.#i = this.#t.state), n;
+ }
+ getCurrentResult() {
+ return this.#r;
+ }
+ trackResult(e, t) {
+ return new Proxy(e, { get: (e, n) => (this.trackProp(n), t?.(n), Reflect.get(e, n)) });
+ }
+ trackProp(e) {
+ this.#p.add(e);
+ }
+ getCurrentQuery() {
+ return this.#t;
+ }
+ refetch({ ...e } = {}) {
+ return this.fetch({ ...e });
+ }
+ fetchOptimistic(e) {
+ let t = this.#e.defaultQueryOptions(e), n = this.#e.getQueryCache().build(this.#e, t), r = () => {}, i, a = new Promise((e) => {
+ i = e, r = this.#e.getQueryCache().subscribe((i) => {
+ i.type === "updated" && i.query.queryHash === n.queryHash && n.state.data !== void 0 && (r(), e(this.createResult(n, t)));
+ });
+ });
+ return Promise.race([n.fetch().then(() => {
+ let e = this.createResult(n, t);
+ return i?.(e), e;
+ }).finally(() => {
+ r();
+ }), a]);
+ }
+ fetch(e) {
+ return this.#m({
+ ...e,
+ cancelRefetch: e.cancelRefetch ?? !0
+ }).then(() => (this.updateResult(), this.#r));
+ }
+ #m(e) {
+ this.#S();
+ let t = this.#t.fetch(this.options, e);
+ return e?.throwOnError || (t = t.catch(E)), t;
+ }
+ #h(e) {
+ return !ge() && A(this.options.enabled, this.#t) !== !1 && O(e);
+ }
+ #g() {
+ this.#b();
+ let e = A(this.options.staleTime, this.#t);
+ if (this.#r.isStale || !this.#h(e)) return;
+ let t = k(this.#r.dataUpdatedAt, e) + 1;
+ this.#u = C.setTimeout(() => {
+ this.#r.isStale || this.updateResult();
+ }, t);
+ }
+ #_() {
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
+ }
+ #v(e) {
+ this.#x(), this.#f = e, !(this.#f === 0 || !this.#h(this.#f)) && (this.#d = C.setInterval(() => {
+ (this.options.refetchIntervalInBackground || ve.isFocused()) && this.#m();
+ }, this.#f));
+ }
+ #y() {
+ this.#g(), this.#v(this.#_());
+ }
+ #b() {
+ this.#u !== void 0 && (C.clearTimeout(this.#u), this.#u = void 0);
+ }
+ #x() {
+ this.#d !== void 0 && (C.clearInterval(this.#d), this.#d = void 0);
+ }
+ createResult(e, t) {
+ let n = this.#t, r = this.options, i = this.#r, a = this.#i, o = this.#a, s = e === n ? this.#n : e.state, { state: c } = e, l = { ...c }, u = !1, d;
+ if (t._optimisticResults) {
+ let i = this.hasListeners(), a = !i && Ie(e, t), o = i && Re(e, n, t, r);
+ (a || o) && (l = {
+ ...l,
+ ...je(c.data, e.options)
+ }), t._optimisticResults === "isRestoring" && (l.fetchStatus = "idle");
+ }
+ let { error: f, errorUpdatedAt: p, status: m } = l;
+ d = l.data;
+ let h = !1;
+ if (t.placeholderData !== void 0 && d === void 0 && m === "pending") {
+ let e;
+ i?.isPlaceholderData && t.placeholderData === o?.placeholderData ? (e = i.data, h = !0) : e = typeof t.placeholderData == "function" ? t.placeholderData(this.#l?.state.data, this.#l) : t.placeholderData, e !== void 0 && (m = "success", d = ue(i?.data, e, t), u = !0);
+ }
+ if (t.select && d !== void 0 && !h) {
+ if (i && d === a?.data && t.select === this.#s) d = this.#c;
+ else try {
+ this.#s = t.select, d = t.select(d), d = ue(i?.data, d, t), this.#c = d, this.#o = null;
+ } catch (e) {
+ this.#o = e;
+ }
+ } else d === void 0 && (this.#o = null);
+ this.#o && (f = this.#o, d = this.#c, p = Date.now(), m = "error", u = !1);
+ let g = l.fetchStatus === "fetching", _ = m === "pending", v = m === "error", y = _ && g, b = d !== void 0;
+ return {
+ status: m,
+ fetchStatus: l.fetchStatus,
+ isPending: _,
+ isSuccess: m === "success",
+ isError: v,
+ isInitialLoading: y,
+ isLoading: y,
+ data: d,
+ dataUpdatedAt: l.dataUpdatedAt,
+ error: f,
+ errorUpdatedAt: p,
+ failureCount: l.fetchFailureCount,
+ failureReason: l.fetchFailureReason,
+ errorUpdateCount: l.errorUpdateCount,
+ isFetched: e.isFetched(),
+ isFetchedAfterMount: l.dataUpdateCount > s.dataUpdateCount || l.errorUpdateCount > s.errorUpdateCount,
+ isFetching: g,
+ isRefetching: g && !_,
+ isLoadingError: v && !b,
+ isPaused: l.fetchStatus === "paused",
+ isPlaceholderData: u,
+ isRefetchError: v && b,
+ isStale: ze(e, t),
+ refetch: this.refetch,
+ isEnabled: A(t.enabled, e) !== !1
+ };
+ }
+ updateResult() {
+ let e = this.#r, t = this.createResult(this.#t, this.options);
+ if (this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#l = this.#t), ae(t, e)) return;
+ this.#r = t;
+ let n = (() => {
+ if (!e) return !0;
+ let { notifyOnChangeProps: t } = this.options, n = typeof t == "function" ? t() : t;
+ if (n === "all" || !n && !this.#p.size) return !0;
+ let r = new Set(n ?? this.#p);
+ return this.options.throwOnError && r.add("error"), Object.keys(this.#r).some((t) => {
+ let n = t;
+ return this.#r[n] !== e[n] && r.has(n);
+ });
+ })();
+ F.batch(() => {
+ n && this.listeners.forEach((e) => {
+ e(this.#r);
+ }), this.#e.getQueryCache().notify({
+ query: this.#t,
+ type: "observerResultsUpdated"
+ });
+ });
+ }
+ #S() {
+ let e = this.#e.getQueryCache().build(this.#e, this.options);
+ if (e === this.#t) return;
+ let t = this.#t;
+ this.#t = e, this.#n = e.state, this.hasListeners() && (t?.removeObserver(this), e.addObserver(this));
+ }
+ onQueryUpdate() {
+ this.updateResult(), this.hasListeners() && this.#y();
+ }
+};
+function Fe(e, t) {
+ return A(t.enabled, e) !== !1 && e.state.data === void 0 && (e.state.status !== "error" || A(t.retryOnMount, e) !== !1);
+}
+function Ie(e, t) {
+ return Fe(e, t) || e.state.data !== void 0 && Le(e, t, t.refetchOnMount);
+}
+function Le(e, t, n) {
+ if (A(t.enabled, e) !== !1 && A(t.staleTime, e) !== "static") {
+ let r = typeof n == "function" ? n(e) : n;
+ return r === "always" || r !== !1 && ze(e, t);
+ }
+ return !1;
+}
+function Re(e, t, n, r) {
+ return (e !== t || A(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ze(e, n);
+}
+function ze(e, t) {
+ return A(t.enabled, e) !== !1 && e.isStaleByTime(A(t.staleTime, e));
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/mutation.js
+var Be = class extends Ee {
+ #e;
+ #t;
+ #n;
+ #r;
+ constructor(e) {
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Ve(), this.setOptions(e.options), this.scheduleGc();
+ }
+ setOptions(e) {
+ this.options = e, this.updateGcTime(this.options.gcTime);
+ }
+ get meta() {
+ return this.options.meta;
+ }
+ addObserver(e) {
+ this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
+ type: "observerAdded",
+ mutation: this,
+ observer: e
+ }));
+ }
+ removeObserver(e) {
+ this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
+ type: "observerRemoved",
+ mutation: this,
+ observer: e
+ });
+ }
+ optionalRemove() {
+ this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
+ }
+ continue() {
+ return this.#r?.continue() ?? (this.state.status === "pending" ? this.execute(this.state.variables) : Promise.resolve());
+ }
+ async execute(e) {
+ let t = () => {
+ this.#i({ type: "continue" });
+ }, n = {
+ client: this.#e,
+ meta: this.options.meta,
+ mutationKey: this.options.mutationKey
+ }, r = this.#r = Te({
+ fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
+ onFail: (e, t) => {
+ this.#i({
+ type: "failed",
+ failureCount: e,
+ error: t
+ });
+ },
+ onPause: () => {
+ this.#i({ type: "pause" });
+ },
+ onContinue: t,
+ retry: this.options.retry ?? 0,
+ retryDelay: this.options.retryDelay,
+ networkMode: this.options.networkMode,
+ canRun: () => this.#n.canRun(this)
+ }), i = this.state.status === "pending", a = !r.canStart();
+ try {
+ if (i) t();
+ else {
+ this.#i({
+ type: "pending",
+ variables: e,
+ isPaused: a
+ }), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
+ let t = await this.options.onMutate?.(e, n);
+ t !== this.state.context && this.#i({
+ type: "pending",
+ context: t,
+ variables: e,
+ isPaused: a
+ });
+ }
+ let o = await r.start();
+ return await this.#n.config.onSuccess?.(o, e, this.state.context, this, n), await this.options.onSuccess?.(o, e, this.state.context, n), await this.#n.config.onSettled?.(o, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(o, null, e, this.state.context, n), this.#i({
+ type: "success",
+ data: o
+ }), o;
+ } catch (t) {
+ try {
+ await this.#n.config.onError?.(t, e, this.state.context, this, n);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ try {
+ await this.options.onError?.(t, e, this.state.context, n);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ try {
+ await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ try {
+ await this.options.onSettled?.(void 0, t, e, this.state.context, n);
+ } catch (e) {
+ Promise.reject(e);
+ }
+ throw this.#i({
+ type: "error",
+ error: t
+ }), t;
+ } finally {
+ this.#r === r && (this.#r = void 0), this.#n.runNext(this);
+ }
+ }
+ #i(e) {
+ let t = (t) => {
+ switch (e.type) {
+ case "failed": return {
+ ...t,
+ failureCount: e.failureCount,
+ failureReason: e.error
+ };
+ case "pause": return {
+ ...t,
+ isPaused: !0
+ };
+ case "continue": return {
+ ...t,
+ isPaused: !1
+ };
+ case "pending": return {
+ ...t,
+ context: e.context,
+ data: void 0,
+ failureCount: 0,
+ failureReason: null,
+ error: null,
+ isPaused: e.isPaused,
+ status: "pending",
+ variables: e.variables,
+ submittedAt: Date.now()
+ };
+ case "success": return {
+ ...t,
+ data: e.data,
+ failureCount: 0,
+ failureReason: null,
+ error: null,
+ status: "success",
+ isPaused: !1
+ };
+ case "error": return {
+ ...t,
+ data: void 0,
+ error: e.error,
+ failureCount: t.failureCount + 1,
+ failureReason: e.error,
+ isPaused: !1,
+ status: "error"
+ };
+ }
+ };
+ this.state = t(this.state), F.batch(() => {
+ this.#t.forEach((t) => {
+ t.onMutationUpdate(e);
+ }), this.#n.notify({
+ mutation: this,
+ type: "updated",
+ action: e
+ });
+ });
+ }
+};
+function Ve() {
+ return {
+ context: void 0,
+ data: void 0,
+ error: null,
+ failureCount: 0,
+ failureReason: null,
+ isPaused: !1,
+ status: "idle",
+ variables: void 0,
+ submittedAt: 0
+ };
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
+var He = class extends _e {
+ #e;
+ #t;
+ #n;
+ constructor(e = {}) {
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
+ }
+ build(e, t, n) {
+ let r = new Be({
+ client: e,
+ mutationCache: this,
+ mutationId: ++this.#n,
+ options: e.defaultMutationOptions(t),
+ state: n
+ });
+ return this.add(r), r;
+ }
+ add(e) {
+ this.#e.add(e);
+ let t = Ue(e);
+ if (typeof t == "string") {
+ let n = this.#t.get(t);
+ n ? n.push(e) : this.#t.set(t, [e]);
+ }
+ this.notify({
+ type: "added",
+ mutation: e
+ });
+ }
+ remove(e) {
+ if (this.#e.delete(e)) {
+ let t = Ue(e);
+ if (typeof t == "string") {
+ let n = this.#t.get(t);
+ if (n) {
+ if (n.length > 1) {
+ let t = n.indexOf(e);
+ t !== -1 && n.splice(t, 1);
+ } else n[0] === e && this.#t.delete(t);
+ }
+ }
+ }
+ this.notify({
+ type: "removed",
+ mutation: e
+ });
+ }
+ canRun(e) {
+ let t = Ue(e);
+ if (typeof t == "string") {
+ let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
+ return !n || n === e;
+ }
+ return !0;
+ }
+ runNext(e) {
+ let t = Ue(e);
+ return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
+ }
+ clear() {
+ F.batch(() => {
+ this.#e.forEach((e) => {
+ this.notify({
+ type: "removed",
+ mutation: e
+ });
+ }), this.#e.clear(), this.#t.clear();
+ });
+ }
+ getAll() {
+ return Array.from(this.#e);
+ }
+ find(e) {
+ let t = {
+ exact: !0,
+ ...e
+ };
+ return this.getAll().find((e) => j(t, e));
+ }
+ findAll(e = {}) {
+ return this.getAll().filter((t) => j(e, t));
+ }
+ notify(e) {
+ F.batch(() => {
+ this.listeners.forEach((t) => {
+ t(e);
+ });
+ });
+ }
+ resumePausedMutations() {
+ let e = this.getAll().filter((e) => e.state.isPaused);
+ return F.batch(() => Promise.all(e.map((e) => e.continue().catch(E))));
+ }
+};
+function Ue(e) {
+ return e.options.scope?.id;
+}
+//#endregion
+//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
+var We = class extends _e {
+ #e;
+ constructor(e = {}) {
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
+ }
+ build(e, t, n) {
+ let r = t.queryKey, i = t.queryHash ?? te(r, t), a = this.get(i);
+ return a || (a = new Ae({
+ client: e,
+ queryKey: r,
+ queryHash: i,
+ options: e.defaultQueryOptions(t),
+ state: n,
+ defaultOptions: e.getQueryDefaults(r)
+ }), this.add(a)), a;
+ }
+ add(e) {
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
+ type: "added",
+ query: e
+ }));
+ }
+ remove(e) {
+ let t = this.#e.get(e.queryHash);
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
+ type: "removed",
+ query: e
+ }));
+ }
+ clear() {
+ F.batch(() => {
+ this.getAll().forEach((e) => {
+ this.remove(e);
+ });
+ });
+ }
+ get(e) {
+ return this.#e.get(e);
+ }
+ getAll() {
+ return [...this.#e.values()];
+ }
+ find(e) {
+ let t = {
+ exact: !0,
+ ...e
+ };
+ return this.getAll().find((e) => ee(t, e));
+ }
+ findAll(e = {}) {
+ let t = this.getAll();
+ return Object.keys(e).length > 0 ? t.filter((t) => ee(e, t)) : t;
+ }
+ notify(e) {
+ F.batch(() => {
+ this.listeners.forEach((t) => {
+ t(e);
+ });
+ });
+ }
+ onFocus() {
+ F.batch(() => {
+ this.getAll().forEach((e) => {
+ e.onFocus();
+ });
+ });
+ }
+ onOnline() {
+ F.batch(() => {
+ this.getAll().forEach((e) => {
+ e.onOnline();
+ });
+ });
+ }
+}, Ge = class {
+ #e;
+ #t;
+ #n;
+ #r;
+ #i;
+ #a;
+ #o;
+ #s;
+ constructor(e = {}) {
+ this.#e = e.queryCache || new We(), this.#t = e.mutationCache || new He(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
+ }
+ mount() {
+ this.#a++, this.#a === 1 && (this.#o = ve.subscribe(async (e) => {
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
+ }), this.#s = xe.subscribe(async (e) => {
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
+ }));
+ }
+ unmount() {
+ this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
+ }
+ isFetching(e) {
+ return this.#e.findAll({
+ ...e,
+ fetchStatus: "fetching"
+ }).length;
+ }
+ isMutating(e) {
+ return this.#t.findAll({
+ ...e,
+ status: "pending"
+ }).length;
+ }
+ getQueryData(e) {
+ let t = this.defaultQueryOptions({ queryKey: e });
+ return this.#e.get(t.queryHash)?.state.data;
+ }
+ ensureQueryData(e) {
+ let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(A(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
+ }
+ getQueriesData(e) {
+ return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
+ }
+ setQueryData(e, t, n) {
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = D(t, i);
+ if (a !== void 0) return this.#e.build(this, r).setData(a, {
+ ...n,
+ manual: !0
+ });
+ }
+ setQueriesData(e, t, n) {
+ return F.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
+ }
+ getQueryState(e) {
+ let t = this.defaultQueryOptions({ queryKey: e });
+ return this.#e.get(t.queryHash)?.state;
+ }
+ removeQueries(e) {
+ let t = this.#e;
+ F.batch(() => {
+ t.findAll(e).forEach((e) => {
+ t.remove(e);
+ });
+ });
+ }
+ resetQueries(e, t) {
+ let n = this.#e;
+ return F.batch(() => {
+ let r = n.findAll(e), i = new Set(r);
+ return r.forEach((e) => {
+ e.reset();
+ }), this.refetchQueries({
+ type: "active",
+ predicate: (e) => i.has(e)
+ }, t);
+ });
+ }
+ cancelQueries(e, t = {}) {
+ let n = {
+ revert: !0,
+ ...t
+ }, r = F.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
+ return Promise.all(r).then(E).catch(E);
+ }
+ invalidateQueries(e, t = {}) {
+ return F.batch(() => (this.#e.findAll(e).forEach((e) => {
+ e.invalidate();
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
+ ...e,
+ type: e?.refetchType ?? e?.type ?? "active"
+ }, t)));
+ }
+ refetchQueries(e, t = {}) {
+ let n = {
+ ...t,
+ cancelRefetch: t.cancelRefetch ?? !0
+ }, r = F.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
+ let t = e.fetch(void 0, n);
+ return n.throwOnError || (t = t.catch(E)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
+ }));
+ return Promise.all(r).then(E);
+ }
+ async query(e) {
+ let t = this.defaultQueryOptions(e);
+ t.retry === void 0 && (t.retry = !1);
+ let n = this.#e.build(this, t), r = n.isStaleByTime(A(t.staleTime, n)) ? await n.fetch(t) : n.state.data, i = t.select;
+ return i ? i(r) : r;
+ }
+ fetchQuery(e) {
+ let t = this.defaultQueryOptions(e);
+ t.retry === void 0 && (t.retry = !1);
+ let n = this.#e.build(this, t);
+ return n.isStaleByTime(A(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
+ }
+ prefetchQuery(e) {
+ return this.fetchQuery(e).then(E).catch(E);
+ }
+ infiniteQuery(e) {
+ return e._type = "infinite", this.query(e);
+ }
+ fetchInfiniteQuery(e) {
+ return e._type = "infinite", this.fetchQuery(e);
+ }
+ prefetchInfiniteQuery(e) {
+ return this.fetchInfiniteQuery(e).then(E).catch(E);
+ }
+ ensureInfiniteQueryData(e) {
+ return e._type = "infinite", this.ensureQueryData(e);
+ }
+ resumePausedMutations() {
+ return xe.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
+ }
+ getQueryCache() {
+ return this.#e;
+ }
+ getMutationCache() {
+ return this.#t;
+ }
+ getDefaultOptions() {
+ return this.#n;
+ }
+ setDefaultOptions(e) {
+ this.#n = e;
+ }
+ setQueryDefaults(e, t) {
+ this.#r.set(ne(e), {
+ queryKey: e,
+ defaultOptions: t
+ });
+ }
+ getQueryDefaults(e) {
+ let t = [...this.#r.values()], n = {};
+ return t.forEach((t) => {
+ re(e, t.queryKey) && Object.assign(n, t.defaultOptions);
+ }), n;
+ }
+ setMutationDefaults(e, t) {
+ this.#i.set(ne(e), {
+ mutationKey: e,
+ defaultOptions: t
+ });
+ }
+ getMutationDefaults(e) {
+ let t = [...this.#i.values()], n = {};
+ return t.forEach((t) => {
+ re(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
+ }), n;
+ }
+ defaultQueryOptions(e) {
+ if (e._defaulted) return e;
+ let t = {
+ ...this.#n.queries,
+ ...this.getQueryDefaults(e.queryKey),
+ ...e,
+ _defaulted: !0
+ };
+ return t.queryHash ||= te(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === pe && (t.enabled = !1), t;
+ }
+ defaultMutationOptions(e) {
+ return e?._defaulted ? e : {
+ ...this.#n.mutations,
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
+ ...e,
+ _defaulted: !0
+ };
+ }
+ clear() {
+ this.#e.clear(), this.#t.clear();
+ }
+}, Ke = _.createContext(!1), qe = () => _.useContext(Ke);
+Ke.Provider;
+//#endregion
+//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
+function Je() {
+ let e = !1;
+ return {
+ clearReset: () => {
+ e = !1;
+ },
+ reset: () => {
+ e = !0;
+ },
+ isReset: () => e
+ };
+}
+var Ye = _.createContext(Je()), Xe = () => _.useContext(Ye), Ze = (e, t, n) => {
+ let r = n?.state.error && typeof e.throwOnError == "function" ? he(e.throwOnError, [n.state.error, n]) : e.throwOnError;
+ (e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));
+}, Qe = (e) => {
+ _.useEffect(() => {
+ e.clearReset();
+ }, [e]);
+}, $e = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || he(n, [e.error, r])), et = (e) => {
+ if (e.suspense) {
+ let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;
+ e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));
+ }
+}, tt = (e, t) => e?.suspense && t.isPending, nt = (e, t, n) => t.fetchOptimistic(e).catch(() => {
+ n.clearReset();
+});
+//#endregion
+//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
+function rt(e, t, n) {
+ let r = qe(), i = Xe(), a = b(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;
+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, et(o), Ze(o, i, s), Qe(i);
+ let [l] = _.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;
+ if (_.useSyncExternalStore(_.useCallback((e) => {
+ let t = d ? l.subscribe(F.batchCalls(e)) : E;
+ return l.updateResult(), t;
+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), _.useEffect(() => {
+ l.setOptions(o);
+ }, [o, l]), tt(o, u)) throw nt(o, l, i);
+ if ($e({
+ result: u,
+ errorResetBoundary: i,
+ throwOnError: o.throwOnError,
+ query: s,
+ suspense: o.suspense
+ })) throw u.error;
+ return o.notifyOnChangeProps ? u : l.trackResult(u);
+}
+//#endregion
+//#region node_modules/@tanstack/react-query/build/modern/useQuery.js
+function it(e, t) {
+ return rt(e, Pe, t);
+}
+//#endregion
+//#region node_modules/react-aria/dist/private/collections/BaseCollection.mjs
+var at = class {
constructor(e) {
this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = this.constructor.type, this.key = e;
}
@@ -25,22 +1918,22 @@ var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescr
let r = this.clone();
return t.addDescendants(r, e), r;
}
-}, m = class extends p {
+}, ot = class extends at {
filter(e, t, n) {
- let [r, i] = v(e, t, this.firstChildKey, n), a = this.clone();
+ let [r, i] = ut(e, t, this.firstChildKey, n), a = this.clone();
return a.firstChildKey = r, a.lastChildKey = i, a;
}
};
-(class extends p {
+(class extends at {
static {
this.type = "header";
}
});
-var h = class extends p {
+var st = class extends at {
static {
this.type = "loader";
}
-}, g = class extends m {
+}, ct = class extends ot {
static {
this.type = "item";
}
@@ -52,7 +1945,7 @@ var h = class extends p {
return null;
}
};
-(class extends m {
+(class extends ot {
static {
this.type = "section";
}
@@ -65,7 +1958,7 @@ var h = class extends p {
return null;
}
});
-var _ = class {
+var lt = class {
get size() {
return this.itemCount;
}
@@ -140,14 +2033,14 @@ var _ = class {
this.firstKey = e, this.lastKey = t, this.frozen = !n;
}
filter(e) {
- let t = new this.constructor(), [n, r] = v(this, t, this.firstKey, e);
+ let t = new this.constructor(), [n, r] = ut(this, t, this.firstKey, e);
return t?.commit(n, r), t;
}
constructor() {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
}
};
-function v(e, t, n, r) {
+function ut(e, t, n, r) {
if (n == null) return [null, null];
let i = null, a = null, o = e.getItem(n);
for (; o != null;) {
@@ -162,7 +2055,7 @@ function v(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/collections/Document.mjs
-var y = class {
+var dt = class {
constructor(e) {
this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
}
@@ -243,7 +2136,7 @@ var y = class {
for (; e && e.isHidden;) e = e.previousSibling;
return e;
}
-}, b = class e extends y {
+}, ft = class e extends dt {
constructor(e, t) {
super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.isHidden = !1, this.node = null;
}
@@ -292,366 +2185,71 @@ var y = class {
}
hasAttribute() {}
setAttribute() {}
- setAttributeNS() {}
- removeAttribute() {}
-}, x = class extends y {
- constructor(e) {
- super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
- }
- get isConnected() {
- return !0;
- }
- createElement(e) {
- return new b(e, this);
- }
- getMutableCollection() {
- return this.nextCollection ||= this.collection.clone(), this.nextCollection;
- }
- markDirty(e) {
- this.dirtyNodes.add(e);
- }
- addNode(e) {
- if (e.isHidden || e.node == null) return;
- let t = this.getMutableCollection();
- if (!t.getItem(e.node.key)) for (let t of e) this.addNode(t);
- t.addNode(e.node);
- }
- removeNode(e) {
- for (let t of e) this.removeNode(t);
- e.node && this.getMutableCollection().removeNode(e.node.key);
- }
- getCollection() {
- return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
- }
- updateCollection() {
- for (let e of this.dirtyNodes) e instanceof b && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
- for (let e of this.dirtyNodes) e instanceof b ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
- this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
- }
- queueUpdate() {
- if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
- this.queuedRender = !0, this.inSubscription = !0, this.isSSR || (this.collection = this.collection.clone());
- for (let e of this.subscriptions) e();
- this.inSubscription = !1;
- }
- }
- subscribe(e) {
- return this.subscriptions.add(e), this.queuedRender && e(), () => this.subscriptions.delete(e);
- }
- resetAfterSSR() {
- this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
- }
-}, S = /* @__PURE__ */ u(((e) => {
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.for("react.view_transition"), m = Symbol.iterator;
- function h(e) {
- return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
- }
- var g = {
- isMounted: function() {
- return !1;
- },
- enqueueForceUpdate: function() {},
- enqueueReplaceState: function() {},
- enqueueSetState: function() {}
- }, _ = Object.assign, v = {};
- function y(e, t, n) {
- this.props = e, this.context = t, this.refs = v, this.updater = n || g;
- }
- y.prototype.isReactComponent = {}, y.prototype.setState = function(e, t) {
- if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
- this.updater.enqueueSetState(this, e, t, "setState");
- }, y.prototype.forceUpdate = function(e) {
- this.updater.enqueueForceUpdate(this, e, "forceUpdate");
- };
- function b() {}
- b.prototype = y.prototype;
- function x(e, t, n) {
- this.props = e, this.context = t, this.refs = v, this.updater = n || g;
- }
- var S = x.prototype = new b();
- S.constructor = x, _(S, y.prototype), S.isPureReactComponent = !0;
- var C = Array.isArray;
- function w() {}
- var T = {
- H: null,
- A: null,
- T: null,
- S: null
- }, ee = Object.prototype.hasOwnProperty;
- function E(e, n, r) {
- var i = r.ref;
- return {
- $$typeof: t,
- type: e,
- key: n,
- ref: i === void 0 ? null : i,
- props: r
- };
+ setAttributeNS() {}
+ removeAttribute() {}
+}, pt = class extends dt {
+ constructor(e) {
+ super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
}
- function D(e, t) {
- return E(e.type, t, e.props);
+ get isConnected() {
+ return !0;
}
- function O(e) {
- return typeof e == "object" && !!e && e.$$typeof === t;
+ createElement(e) {
+ return new ft(e, this);
}
- function k(e) {
- var t = {
- "=": "=0",
- ":": "=2"
- };
- return "$" + e.replace(/[=:]/g, function(e) {
- return t[e];
- });
+ getMutableCollection() {
+ return this.nextCollection ||= this.collection.clone(), this.nextCollection;
}
- var A = /\/+/g;
- function j(e, t) {
- return typeof e == "object" && e && e.key != null ? k("" + e.key) : t.toString(36);
+ markDirty(e) {
+ this.dirtyNodes.add(e);
}
- function M(e) {
- switch (e.status) {
- case "fulfilled": return e.value;
- case "rejected": throw e.reason;
- default: switch (typeof e.status == "string" ? e.then(w, w) : (e.status = "pending", e.then(function(t) {
- e.status === "pending" && (e.status = "fulfilled", e.value = t);
- }, function(t) {
- e.status === "pending" && (e.status = "rejected", e.reason = t);
- })), e.status) {
- case "fulfilled": return e.value;
- case "rejected": throw e.reason;
- }
- }
- throw e;
+ addNode(e) {
+ if (e.isHidden || e.node == null) return;
+ let t = this.getMutableCollection();
+ if (!t.getItem(e.node.key)) for (let t of e) this.addNode(t);
+ t.addNode(e.node);
}
- function te(e, r, i, a, o) {
- var s = typeof e;
- (s === "undefined" || s === "boolean") && (e = null);
- var c = !1;
- if (e === null) c = !0;
- else switch (s) {
- case "bigint":
- case "string":
- case "number":
- c = !0;
- break;
- case "object": switch (e.$$typeof) {
- case t:
- case n:
- c = !0;
- break;
- case d: return c = e._init, te(c(e._payload), r, i, a, o);
- }
- }
- if (c) return o = o(e), c = a === "" ? "." + j(e, 0) : a, C(o) ? (i = "", c != null && (i = c.replace(A, "$&/") + "/"), te(o, r, i, "", function(e) {
- return e;
- })) : o != null && (O(o) && (o = D(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(A, "$&/") + "/") + c)), r.push(o)), 1;
- c = 0;
- var l = a === "" ? "." : a + ":";
- if (C(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + j(a, u), c += te(a, r, i, s, o);
- else if (u = h(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + j(a, u++), c += te(a, r, i, s, o);
- else if (s === "object") {
- if (typeof e.then == "function") return te(M(e), r, i, a, o);
- throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
- }
- return c;
+ removeNode(e) {
+ for (let t of e) this.removeNode(t);
+ e.node && this.getMutableCollection().removeNode(e.node.key);
}
- function ne(e, t, n) {
- if (e == null) return e;
- var r = [], i = 0;
- return te(e, r, "", "", function(e) {
- return t.call(n, e, i++);
- }), r;
+ getCollection() {
+ return this.inSubscription ? this.collection : (this.queuedRender = !1, this.updateCollection(), this.collection);
}
- function N(e) {
- if (e._status === -1) {
- var t = e._result, n = t();
- n.then(function(t) {
- (e._status === 0 || e._status === -1) && (e._status = 1, e._result = t, n.status === void 0 && (n.status = "fulfilled", n.value = t));
- }, function(t) {
- (e._status === 0 || e._status === -1) && (e._status = 2, e._result = t, n.status === void 0 && (n.status = "rejected", n.reason = t));
- }), e._status === -1 && (e._status = 0, e._result = n);
- }
- if (e._status === 1) return e._result.default;
- throw e._result;
+ updateCollection() {
+ for (let e of this.dirtyNodes) e instanceof ft && (!e.isConnected || e.isHidden) ? this.removeNode(e) : e.updateChildIndices();
+ for (let e of this.dirtyNodes) e instanceof ft ? (e.isConnected && !e.isHidden && (e.updateNode(), this.addNode(e)), e.node && this.dirtyNodes.delete(e), e.isMutated = !1) : this.dirtyNodes.delete(e);
+ this.nextCollection && (this.nextCollection.commit(this.firstVisibleChild?.node?.key ?? null, this.lastVisibleChild?.node?.key ?? null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null));
}
- var re = typeof reportError == "function" ? reportError : function(e) {
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
- var t = new window.ErrorEvent("error", {
- bubbles: !0,
- cancelable: !0,
- message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
- error: e
- });
- if (!window.dispatchEvent(t)) return;
- } else if (typeof process == "object" && typeof process.emit == "function") {
- process.emit("uncaughtException", e);
- return;
- }
- console.error(e);
- };
- function ie(e) {
- var t = T.T, n = {};
- n.types = t === null ? null : t.types, T.T = n;
- try {
- var r = e(), i = T.S;
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(w, re);
- } catch (e) {
- re(e);
- } finally {
- t !== null && n.types !== null && (t.types = n.types), T.T = t;
+ queueUpdate() {
+ if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
+ this.queuedRender = !0, this.inSubscription = !0, this.isSSR || (this.collection = this.collection.clone());
+ for (let e of this.subscriptions) e();
+ this.inSubscription = !1;
}
}
- function ae(e) {
- var t = T.T;
- if (t !== null) {
- var n = t.types;
- n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
- } else ie(ae.bind(null, e));
+ subscribe(e) {
+ return this.subscriptions.add(e), this.queuedRender && e(), () => this.subscriptions.delete(e);
}
- var oe = {
- map: ne,
- forEach: function(e, t, n) {
- ne(e, function() {
- t.apply(this, arguments);
- }, n);
- },
- count: function(e) {
- var t = 0;
- return ne(e, function() {
- t++;
- }), t;
- },
- toArray: function(e) {
- return ne(e, function(e) {
- return e;
- }) || [];
- },
- only: function(e) {
- if (!O(e)) throw Error("React.Children.only expected to receive a single React element child.");
- return e;
- }
- };
- e.Activity = f, e.Children = oe, e.Component = y, e.Fragment = r, e.Profiler = a, e.PureComponent = x, e.StrictMode = i, e.Suspense = l, e.ViewTransition = p, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, e.__COMPILER_RUNTIME = {
- __proto__: null,
- c: function(e) {
- return T.H.useMemoCache(e);
- }
- }, e.addTransitionType = ae, e.cache = function(e) {
- return function() {
- return e.apply(null, arguments);
- };
- }, e.cacheSignal = function() {
- return null;
- }, e.cloneElement = function(e, t, n) {
- if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
- var r = _({}, e.props), i = e.key;
- if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !ee.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);
- var a = arguments.length - 2;
- if (a === 1) r.children = n;
- else if (1 < a) {
- for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
- r.children = o;
- }
- return E(e.type, i, r);
- }, e.createContext = function(e) {
- return e = {
- $$typeof: s,
- _currentValue: e,
- _currentValue2: e,
- _threadCount: 0,
- Provider: null,
- Consumer: null
- }, e.Provider = e, e.Consumer = {
- $$typeof: o,
- _context: e
- }, e;
- }, e.createElement = function(e, t, n) {
- var r, i = {}, a = null;
- if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) ee.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);
- var o = arguments.length - 2;
- if (o === 1) i.children = n;
- else if (1 < o) {
- for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2];
- i.children = s;
- }
- if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);
- return E(e, a, i);
- }, e.createRef = function() {
- return { current: null };
- }, e.forwardRef = function(e) {
- return {
- $$typeof: c,
- render: e
- };
- }, e.isValidElement = O, e.lazy = function(e) {
- return {
- $$typeof: d,
- _payload: {
- _status: -1,
- _result: e
- },
- _init: N
- };
- }, e.memo = function(e, t) {
- return {
- $$typeof: u,
- type: e,
- compare: t === void 0 ? null : t
- };
- }, e.startTransition = ie, e.unstable_useCacheRefresh = function() {
- return T.H.useCacheRefresh();
- }, e.use = function(e) {
- return T.H.use(e);
- }, e.useActionState = function(e, t, n) {
- return T.H.useActionState(e, t, n);
- }, e.useCallback = function(e, t) {
- return T.H.useCallback(e, t);
- }, e.useContext = function(e) {
- return T.H.useContext(e);
- }, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {
- return T.H.useDeferredValue(e, t);
- }, e.useEffect = function(e, t) {
- return T.H.useEffect(e, t);
- }, e.useEffectEvent = function(e) {
- return T.H.useEffectEvent(e);
- }, e.useId = function() {
- return T.H.useId();
- }, e.useImperativeHandle = function(e, t, n) {
- return T.H.useImperativeHandle(e, t, n);
- }, e.useInsertionEffect = function(e, t) {
- return T.H.useInsertionEffect(e, t);
- }, e.useLayoutEffect = function(e, t) {
- return T.H.useLayoutEffect(e, t);
- }, e.useMemo = function(e, t) {
- return T.H.useMemo(e, t);
- }, e.useOptimistic = function(e, t) {
- return T.H.useOptimistic(e, t);
- }, e.useReducer = function(e, t, n) {
- return T.H.useReducer(e, t, n);
- }, e.useRef = function(e) {
- return T.H.useRef(e);
- }, e.useState = function(e) {
- return T.H.useState(e);
- }, e.useSyncExternalStore = function(e, t, n) {
- return T.H.useSyncExternalStore(e, t, n);
- }, e.useTransition = function() {
- return T.H.useTransition();
- }, e.version = "19.3.0";
-})), C = /* @__PURE__ */ u(((e, t) => {
- t.exports = S();
-})), w = /* @__PURE__ */ f(C(), 1);
-function T(e) {
- let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, w.useMemo)(() => void 0, [t]), s = (0, w.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
- return (0, w.useMemo)(() => {
+ resetAfterSSR() {
+ this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
+ }
+};
+//#endregion
+//#region node_modules/react-aria/dist/private/collections/useCachedChildren.mjs
+function mt(e) {
+ let { children: t, items: n, idScope: r, addIdAndValue: i, dependencies: a = [] } = e, o = (0, _.useMemo)(() => void 0, [t]), s = (0, _.useMemo)(() => /* @__PURE__ */ new WeakMap(), [...a, o]);
+ return (0, _.useMemo)(() => {
if (n && typeof t == "function") {
let e = [];
for (let a of n) {
- let n = ee(a) ? a : null, o = n ? s.get(n) : null;
+ let n = ht(a) ? a : null, o = n ? s.get(n) : null;
if (!o) {
o = t(a);
let c = o.props.id ?? a?.key ?? a?.id;
r != null && o.props.id == null && c != null && (c = r + ":" + c);
let l = c ?? e.length;
- o = (0, w.cloneElement)(o, i ? {
+ o = (0, _.cloneElement)(o, i ? {
key: l,
id: c,
value: a
@@ -670,7 +2268,7 @@ function T(e) {
i
]);
}
-function ee(e) {
+function ht(e) {
switch (typeof e) {
case "object": return e != null;
case "function":
@@ -680,26 +2278,26 @@ function ee(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/focusWithoutScrolling.mjs
-function E(e) {
- if (O()) e.focus({ preventScroll: !0 });
+function gt(e) {
+ if (vt()) e.focus({ preventScroll: !0 });
else {
- let t = k(e);
- e.focus(), A(t);
+ let t = yt(e);
+ e.focus(), bt(t);
}
}
-var D = null;
-function O() {
- if (D == null) {
- D = !1;
+var _t = null;
+function vt() {
+ if (_t == null) {
+ _t = !1;
try {
document.createElement("div").focus({ get preventScroll() {
- return D = !0, !0;
+ return _t = !0, !0;
} });
} catch {}
}
- return D;
+ return _t;
}
-function k(e) {
+function yt(e) {
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
element: t,
@@ -712,25 +2310,25 @@ function k(e) {
scrollLeft: r.scrollLeft
}), n;
}
-function A(e) {
+function bt(e) {
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/domHelpers.mjs
-var j = (e) => ne(e) ? e.document : N(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), M = (e) => j(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
-function te(e) {
+var I = (e) => Ct(e) ? e.document : wt(e) ? e : e?.ownerDocument ?? (typeof document < "u" ? document : void 0), xt = (e) => I(e)?.defaultView ?? (typeof window < "u" ? window : void 0);
+function St(e) {
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
}
-function ne(e) {
+function Ct(e) {
return typeof e == "object" && !!e && "window" in e && e.window === e;
}
-function N(e) {
- return te(e) && e.nodeType === 9;
+function wt(e) {
+ return St(e) && e.nodeType === 9;
}
-function re(e) {
- return te(e) && e.nodeType === 11 && "host" in e;
+function Tt(e) {
+ return St(e) && e.nodeType === 11 && "host" in e;
}
-function ie(e, t, n, r) {
+function Et(e, t, n, r) {
if (n == null || e == null) return () => {};
let i = Array.isArray(e) ? e : [e];
for (let e of i) e.addEventListener(t, n, r);
@@ -738,7 +2336,7 @@ function ie(e, t, n, r) {
for (let e of i) e.removeEventListener(t, n, r);
};
}
-function ae(e, t, n, r) {
+function Dt(e, t, n, r) {
if (e == null) return () => {};
let i = [], a = Array.isArray(e) ? e : [e];
for (let e of a) {
@@ -753,73 +2351,73 @@ function ae(e, t, n, r) {
}
//#endregion
//#region node_modules/react-stately/dist/private/flags/flags.mjs
-var oe = !1;
-function P() {
- return oe;
+var Ot = !1;
+function kt() {
+ return Ot;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/DOMFunctions.mjs
-function F(e, t) {
- if (!P()) return t && e ? e.contains(t) : !1;
+function L(e, t) {
+ if (!kt()) return t && e ? e.contains(t) : !1;
if (!e || !t) return !1;
let n = t;
for (; n !== null;) {
if (n === e) return !0;
- n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : re(n) ? n.host : n.parentNode;
+ n = typeof n.assignedElements != "function" && n.assignedSlot?.parentNode ? n.assignedSlot.parentNode : Tt(n) ? n.host : n.parentNode;
}
return !1;
}
-var se = (e = document) => {
- if (!P()) return e.activeElement;
+var At = (e = document) => {
+ if (!kt()) return e.activeElement;
let t = e.activeElement;
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
return t;
};
-function I(e) {
- if (P() && e.target instanceof Element && e.target.shadowRoot) {
+function R(e) {
+ if (kt() && e.target instanceof Element && e.target.shadowRoot) {
if ("composedPath" in e) return e.composedPath()[0] ?? null;
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
}
return e.target;
}
-function ce(e, t) {
+function jt(e, t) {
if (t === null) return [];
- t ??= M(e);
+ t ??= xt(e);
let n = [t];
- if (!P() || !e || e === t) return n;
+ if (!kt() || !e || e === t) return n;
let r = "getRootNode" in t ? t.getRootNode() : null, i = e.getRootNode() ?? null;
- for (; re(i) && i !== r;) n.push(i), i = i.host.getRootNode();
+ for (; Tt(i) && i !== r;) n.push(i), i = i.host.getRootNode();
return n;
}
-function le(e) {
+function Mt(e) {
if (!e) return !1;
- let t = e.getRootNode(), n = M(e);
+ let t = e.getRootNode(), n = xt(e);
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
let r = t.activeElement;
return r != null && e.contains(r);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isElementVisible.mjs
-var ue = typeof Element < "u" && "checkVisibility" in Element.prototype;
-function de(e) {
- let t = M(e);
+var Nt = typeof Element < "u" && "checkVisibility" in Element.prototype;
+function Pt(e) {
+ let t = xt(e);
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
if (i) {
- let { getComputedStyle: t } = M(e), { display: n, visibility: r } = t(e);
+ let { getComputedStyle: t } = xt(e), { display: n, visibility: r } = t(e);
i = n !== "none" && r !== "hidden" && r !== "collapse";
}
return i;
}
-function L(e, t) {
+function Ft(e, t) {
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
}
-function R(e, t) {
- return ue ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && de(e) && L(e, t) && (!e.parentElement || R(e.parentElement, e));
+function It(e, t) {
+ return Nt ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && Pt(e) && Ft(e, t) && (!e.parentElement || It(e.parentElement, e));
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/isFocusable.mjs
-var fe = [
+var Lt = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
@@ -834,37 +2432,37 @@ var fe = [
"video[controls]",
"[contenteditable]:not([contenteditable^=\"false\"])",
"permission"
-], pe = fe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
-fe.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
-var me = fe.join(":not([hidden]):not([tabindex=\"-1\"]),");
-function he(e, t) {
- return e.matches(pe) && !_e(e) && (t?.skipVisibilityCheck || R(e));
+], Rt = Lt.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
+Lt.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
+var zt = Lt.join(":not([hidden]):not([tabindex=\"-1\"]),");
+function Bt(e, t) {
+ return e.matches(Rt) && !Ht(e) && (t?.skipVisibilityCheck || It(e));
}
-function ge(e) {
- return e.matches(me) && R(e) && !_e(e);
+function Vt(e) {
+ return e.matches(zt) && It(e) && !Ht(e);
}
-function _e(e) {
+function Ht(e) {
let t = e;
for (; t != null;) {
- if (t instanceof M(t).HTMLElement && t.inert) return !0;
+ if (t instanceof xt(t).HTMLElement && t.inert) return !0;
t = t.parentElement;
}
return !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLayoutEffect.mjs
-var z = typeof document < "u" ? w.useLayoutEffect : () => {};
+var z = typeof document < "u" ? _.useLayoutEffect : () => {};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/utils.mjs
-function ve(e) {
+function B(e) {
let t = e;
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
}
-function ye(e, t) {
+function Ut(e, t) {
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
}
-function be(e) {
- let t = (0, w.useRef)({
+function Wt(e) {
+ let t = (0, _.useRef)({
isFocused: !1,
observer: null
});
@@ -873,21 +2471,21 @@ function be(e) {
return () => {
e.observer &&= (e.observer.disconnect(), null);
};
- }, []), (0, w.useCallback)((n) => {
- let r = I(n);
+ }, []), (0, _.useCallback)((n) => {
+ let r = R(n);
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
t.current.isFocused = !0;
let n = r;
n.addEventListener("focusout", (r) => {
if (t.current.isFocused = !1, n.disabled) {
- let t = ve(r);
+ let t = B(r);
e?.(t);
}
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
if (t.current.isFocused && n.disabled) {
t.current.observer?.disconnect();
- let e = n === se() ? null : se();
+ let e = n === At() ? null : At();
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: e })), n.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: e
@@ -900,83 +2498,83 @@ function be(e) {
}
}, [e]);
}
-var xe = !1;
-function Se(e) {
- for (; e && !he(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
- let t = se(M(e).document);
+var Gt = !1;
+function Kt(e) {
+ for (; e && !Bt(e, { skipVisibilityCheck: !0 });) e = e.parentElement;
+ let t = At(xt(e).document);
if (!t || t === e) return;
- let n = e?.getRootNode(), r = n != null && re(n) ? n : M(e), i = (t) => t === e || t != null && F(e, t), a = (e) => e === t || t != null && e != null && F(t, e);
- xe = !0;
+ let n = e?.getRootNode(), r = n != null && Tt(n) ? n : xt(e), i = (t) => t === e || t != null && L(e, t), a = (e) => e === t || t != null && e != null && L(t, e);
+ Gt = !0;
let o = !1, s = (e) => {
- (a(I(e)) || o) && e.stopImmediatePropagation();
+ (a(R(e)) || o) && e.stopImmediatePropagation();
}, c = (n) => {
- (a(I(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, E(t), d()));
+ (a(R(n)) || o) && (n.stopImmediatePropagation(), !e && !o && (o = !0, gt(t), d()));
}, l = (e) => {
- (i(I(e)) || o) && e.stopImmediatePropagation();
+ (i(R(e)) || o) && e.stopImmediatePropagation();
}, u = (e) => {
- (i(I(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, E(t), d()));
+ (i(R(e)) || o) && (e.stopImmediatePropagation(), o || (o = !0, gt(t), d()));
};
r.addEventListener("blur", s, !0), r.addEventListener("focusout", c, !0), r.addEventListener("focusin", u, !0), r.addEventListener("focus", l, !0);
let d = () => {
- cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), xe = !1, o = !1;
+ cancelAnimationFrame(f), r.removeEventListener("blur", s, !0), r.removeEventListener("focusout", c, !0), r.removeEventListener("focusin", u, !0), r.removeEventListener("focus", l, !0), Gt = !1, o = !1;
}, f = requestAnimationFrame(d);
return d;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/platform.mjs
-function Ce(e) {
+function qt(e) {
if (typeof window > "u" || window.navigator == null) return !1;
let t = window.navigator.userAgentData?.brands;
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
}
-function we(e) {
+function Jt(e) {
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
}
-function Te(e) {
+function Yt(e) {
let t = null;
return () => (t ??= e(), t);
}
-var Ee = Te(function() {
- return we(/^Mac/i);
-}), De = Te(function() {
- return we(/^iPhone/i);
-}), Oe = Te(function() {
- return we(/^iPad/i) || Ee() && navigator.maxTouchPoints > 1;
-}), ke = Te(function() {
- return De() || Oe();
-}), Ae = Te(function() {
- return Ee() || ke();
-}), je = Te(function() {
- return Ce(/AppleWebKit/i) && (ke() || !Me());
-}), Me = Te(function() {
- return Ce(/Chrome|CriOS|CrMo/i);
-}), Ne = Te(function() {
- return Ce(/Android/i);
-}), Pe = Te(function() {
- return Ce(/(Firefox|FxiOS)/i);
+var Xt = Yt(function() {
+ return Jt(/^Mac/i);
+}), Zt = Yt(function() {
+ return Jt(/^iPhone/i);
+}), Qt = Yt(function() {
+ return Jt(/^iPad/i) || Xt() && navigator.maxTouchPoints > 1;
+}), $t = Yt(function() {
+ return Zt() || Qt();
+}), en = Yt(function() {
+ return Xt() || $t();
+}), tn = Yt(function() {
+ return qt(/AppleWebKit/i) && ($t() || !nn());
+}), nn = Yt(function() {
+ return qt(/Chrome|CriOS|CrMo/i);
+}), rn = Yt(function() {
+ return qt(/Android/i);
+}), an = Yt(function() {
+ return qt(/(Firefox|FxiOS)/i);
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/isVirtualEvent.mjs
-function Fe(e) {
- return e.pointerType === "" && e.isTrusted ? !0 : Ne() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
+function on(e) {
+ return e.pointerType === "" && e.isTrusted ? !0 : rn() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
}
-function Ie(e) {
- return !Ne() && e.width === 0 && e.height === 0 || Ne() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
+function sn(e) {
+ return !rn() && e.width === 0 && e.height === 0 || rn() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/openLink.mjs
-var Le = /*#__PURE__*/ (0, w.createContext)({
+var cn = /*#__PURE__*/ (0, _.createContext)({
isNative: !0,
- open: Ve,
+ open: fn,
useHref: (e) => e
});
-function Re() {
- return (0, w.useContext)(Le);
+function ln() {
+ return (0, _.useContext)(cn);
}
-function ze(e, t, n = !0) {
+function un(e, t, n = !0) {
let { metaKey: r, ctrlKey: i, altKey: a, shiftKey: o } = t;
- !je() && Pe() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Ee() ? r = !0 : i = !0);
- let s = je() && Ee() && !Oe() ? new KeyboardEvent("keydown", {
+ !tn() && an() && window.event?.type?.startsWith("key") && e.target === "_blank" && (Xt() ? r = !0 : i = !0);
+ let s = tn() && Xt() && !Qt() ? new KeyboardEvent("keydown", {
keyIdentifier: "Enter",
metaKey: r,
ctrlKey: i,
@@ -991,21 +2589,21 @@ function ze(e, t, n = !0) {
bubbles: !0,
cancelable: !0
});
- ze.isOpening = n, E(e), e.dispatchEvent(s), ze.isOpening = !1;
+ un.isOpening = n, gt(e), e.dispatchEvent(s), un.isOpening = !1;
}
-ze.isOpening = !1;
-function Be(e, t) {
+un.isOpening = !1;
+function dn(e, t) {
if (e instanceof HTMLAnchorElement) t(e);
else if (e.hasAttribute("data-href")) {
let n = document.createElement("a");
n.href = e.getAttribute("data-href"), e.hasAttribute("data-target") && (n.target = e.getAttribute("data-target")), e.hasAttribute("data-rel") && (n.rel = e.getAttribute("data-rel")), e.hasAttribute("data-download") && (n.download = e.getAttribute("data-download")), e.hasAttribute("data-ping") && (n.ping = e.getAttribute("data-ping")), e.hasAttribute("data-referrer-policy") && (n.referrerPolicy = e.getAttribute("data-referrer-policy")), e.appendChild(n), t(n), e.removeChild(n);
}
}
-function Ve(e, t) {
- Be(e, (e) => ze(e, t));
+function fn(e, t) {
+ dn(e, (e) => un(e, t));
}
-function He(e) {
- let t = Re().useHref(e?.href ?? ""), n = {};
+function pn(e) {
+ let t = ln().useHref(e?.href ?? ""), n = {};
if (e) for (let r of [
"href",
"target",
@@ -1018,121 +2616,121 @@ function He(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
-var Ue = {
+var mn = {
prefix: String(Math.round(Math.random() * 1e10)),
current: 0
-}, We = /*#__PURE__*/ w.createContext(Ue), Ge = /*#__PURE__*/ w.createContext(!1);
+}, hn = /*#__PURE__*/ _.createContext(mn), gn = /*#__PURE__*/ _.createContext(!1);
typeof window < "u" && window.document && window.document.createElement;
-var Ke = /* @__PURE__ */ new WeakMap();
-function qe(e = !1) {
- let t = (0, w.useContext)(We), n = (0, w.useRef)(null);
+var _n = /* @__PURE__ */ new WeakMap();
+function vn(e = !1) {
+ let t = (0, _.useContext)(hn), n = (0, _.useRef)(null);
if (n.current === null && !e) {
- let e = w.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
+ let e = _.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
if (e) {
- let n = Ke.get(e);
- n == null ? Ke.set(e, {
+ let n = _n.get(e);
+ n == null ? _n.set(e, {
id: t.current,
state: e.memoizedState
- }) : e.memoizedState !== n.state && (t.current = n.id, Ke.delete(e));
+ }) : e.memoizedState !== n.state && (t.current = n.id, _n.delete(e));
}
n.current = ++t.current;
}
return n.current;
}
-function Je(e) {
- let t = (0, w.useContext)(We), n = qe(!!e), r = `react-aria${t.prefix}`;
+function yn(e) {
+ let t = (0, _.useContext)(hn), n = vn(!!e), r = `react-aria${t.prefix}`;
return e || `${r}-${n}`;
}
-function Ye(e) {
- let t = w.useId(), [n] = (0, w.useState)(et()), r = n ? "react-aria" : `react-aria${Ue.prefix}`;
+function bn(e) {
+ let t = _.useId(), [n] = (0, _.useState)(Tn()), r = n ? "react-aria" : `react-aria${mn.prefix}`;
return e || `${r}-${t}`;
}
-var Xe = typeof w.useId == "function" ? Ye : Je;
-function Ze() {
+var xn = typeof _.useId == "function" ? bn : yn;
+function Sn() {
return !1;
}
-function Qe() {
+function Cn() {
return !0;
}
-function $e(e) {
+function wn(e) {
return () => {};
}
-function et() {
- return typeof w.useSyncExternalStore == "function" ? w.useSyncExternalStore($e, Ze, Qe) : (0, w.useContext)(Ge);
+function Tn() {
+ return typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore(wn, Sn, Cn) : (0, _.useContext)(gn);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusVisible.mjs
-var tt = null, nt = /* @__PURE__ */ new Set(), rt = /* @__PURE__ */ new Map(), it = !1, at = !1, ot = {
+var En = null, Dn = /* @__PURE__ */ new Set(), On = /* @__PURE__ */ new Map(), kn = !1, An = !1, jn = {
Tab: !0,
Escape: !0
};
-function st(e, t) {
- for (let n of nt) n(e, t);
+function Mn(e, t) {
+ for (let n of Dn) n(e, t);
}
-function ct(e) {
- return !(e.metaKey || !Ee() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
+function Nn(e) {
+ return !(e.metaKey || !Xt() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
}
-function lt(e) {
- it = !0, !ze.isOpening && ct(e) && (tt = "keyboard", st("keyboard", e));
+function Pn(e) {
+ kn = !0, !un.isOpening && Nn(e) && (En = "keyboard", Mn("keyboard", e));
}
-function ut(e) {
- tt = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (it = !0, st("pointer", e));
+function Fn(e) {
+ En = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (kn = !0, Mn("pointer", e));
}
-function dt(e) {
- !ze.isOpening && Fe(e) && (it = !0, tt = "virtual");
+function In(e) {
+ !un.isOpening && on(e) && (kn = !0, En = "virtual");
}
-function ft(e) {
- if (xe) return;
- let t = I(e), n = M(t), r = j(t);
+function Ln(e) {
+ if (Gt) return;
+ let t = R(e), n = xt(t), r = I(t);
if (t === n) {
- at = !0;
+ An = !0;
return;
}
- t === r || !e.isTrusted || (!it && !at && (tt = "virtual", st("virtual", e)), it = !1, at = !1);
+ t === r || !e.isTrusted || (!kn && !An && (En = "virtual", Mn("virtual", e)), kn = !1, An = !1);
}
-function pt() {
- xe || (it = !1, at = !0);
+function Rn() {
+ Gt || (kn = !1, An = !0);
}
-function mt(e) {
+function zn(e) {
if (typeof window > "u" || typeof document > "u") return;
- let t = M(e), n = j(e);
- if (rt.get(t)) return;
+ let t = xt(e), n = I(e);
+ if (On.get(t)) return;
let r = t.HTMLElement.prototype.focus;
Reflect.defineProperty(t.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function() {
- it = !0, r.apply(this, arguments);
+ kn = !0, r.apply(this, arguments);
}
- }), n.addEventListener("keydown", lt, !0), n.addEventListener("keyup", lt, !0), n.addEventListener("click", dt, !0), t.addEventListener("focus", ft, !0), t.addEventListener("blur", pt, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", ut, !0), n.addEventListener("pointermove", ut, !0), n.addEventListener("pointerup", ut, !0)), t.addEventListener("beforeunload", () => {
- ht(e);
- }, { once: !0 }), rt.set(t, { focus: r });
+ }), n.addEventListener("keydown", Pn, !0), n.addEventListener("keyup", Pn, !0), n.addEventListener("click", In, !0), t.addEventListener("focus", Ln, !0), t.addEventListener("blur", Rn, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", Fn, !0), n.addEventListener("pointermove", Fn, !0), n.addEventListener("pointerup", Fn, !0)), t.addEventListener("beforeunload", () => {
+ Bn(e);
+ }, { once: !0 }), On.set(t, { focus: r });
}
-var ht = (e, t) => {
- let n = M(e), r = j(e);
- t && r.removeEventListener("DOMContentLoaded", t), rt.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
+var Bn = (e, t) => {
+ let n = xt(e), r = I(e);
+ t && r.removeEventListener("DOMContentLoaded", t), On.has(n) && (Reflect.defineProperty(n.HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
- value: rt.get(n).focus
- }), r.removeEventListener("keydown", lt, !0), r.removeEventListener("keyup", lt, !0), r.removeEventListener("click", dt, !0), n.removeEventListener("focus", ft, !0), n.removeEventListener("blur", pt, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", ut, !0), r.removeEventListener("pointermove", ut, !0), r.removeEventListener("pointerup", ut, !0)), rt.delete(n));
+ value: On.get(n).focus
+ }), r.removeEventListener("keydown", Pn, !0), r.removeEventListener("keyup", Pn, !0), r.removeEventListener("click", In, !0), n.removeEventListener("focus", Ln, !0), n.removeEventListener("blur", Rn, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", Fn, !0), r.removeEventListener("pointermove", Fn, !0), r.removeEventListener("pointerup", Fn, !0)), On.delete(n));
};
-function gt(e) {
- let t = j(e), n;
+function Vn(e) {
+ let t = I(e), n;
return t.readyState === "loading" ? (n = () => {
- mt(e);
- }, t.addEventListener("DOMContentLoaded", n)) : mt(e), () => ht(e, n);
+ zn(e);
+ }, t.addEventListener("DOMContentLoaded", n)) : zn(e), () => Bn(e, n);
}
-typeof document < "u" && gt();
-function _t() {
- return tt !== "pointer";
+typeof document < "u" && Vn();
+function Hn() {
+ return En !== "pointer";
}
-function vt() {
- return tt;
+function Un() {
+ return En;
}
-function yt(e) {
- tt = e, st(e, null);
+function Wn(e) {
+ En = e, Mn(e, null);
}
-var bt = /* @__PURE__ */ new Set([
+var Gn = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -1143,78 +2741,78 @@ var bt = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function xt(e, t, n) {
- let r = n ? I(n) : void 0, i = j(r), a = M(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = se(i);
- return e = e || u instanceof o && !bt.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !ot[n.key]);
+function Kn(e, t, n) {
+ let r = n ? R(n) : void 0, i = I(r), a = xt(r), o = a === void 0 ? HTMLInputElement : a.HTMLInputElement, s = a === void 0 ? HTMLTextAreaElement : a.HTMLTextAreaElement, c = a === void 0 ? HTMLElement : a.HTMLElement, l = a === void 0 ? KeyboardEvent : a.KeyboardEvent, u = At(i);
+ return e = e || u instanceof o && !Gn.has(u.type) || u instanceof s || u instanceof c && u.isContentEditable, !(e && t === "keyboard" && n instanceof l && !jn[n.key]);
}
-function St(e, t, n) {
- mt(), (0, w.useEffect)(() => {
+function qn(e, t, n) {
+ zn(), (0, _.useEffect)(() => {
if (n?.enabled === !1) return;
let t = (t, r) => {
- xt(!!n?.isTextInput, t, r) && e(_t());
+ Kn(!!n?.isTextInput, t, r) && e(Hn());
};
- return nt.add(t), () => {
- nt.delete(t);
+ return Dn.add(t), () => {
+ Dn.delete(t);
};
}, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/runAfterTransition.mjs
-var Ct = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Set();
-function Tt() {
+var Jn = /* @__PURE__ */ new Map(), Yn = /* @__PURE__ */ new Set();
+function Xn() {
if (typeof window > "u") return;
function e(e) {
return "propertyName" in e;
}
let t = (t) => {
- let r = I(t);
+ let r = R(t);
if (!e(t) || !r) return;
- let i = Ct.get(r);
- i || (i = /* @__PURE__ */ new Set(), Ct.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
+ let i = Jn.get(r);
+ i || (i = /* @__PURE__ */ new Set(), Jn.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
}, n = (t) => {
- let r = I(t);
+ let r = R(t);
if (!e(t) || !r) return;
- let i = Ct.get(r);
- if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Ct.delete(r)), Ct.size === 0)) {
- for (let e of wt) e();
- wt.clear();
+ let i = Jn.get(r);
+ if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), Jn.delete(r)), Jn.size === 0)) {
+ for (let e of Yn) e();
+ Yn.clear();
}
};
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
}
-typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Tt) : Tt());
-function Et() {
- for (let [e] of Ct) "isConnected" in e && !e.isConnected && Ct.delete(e);
+typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Xn) : Xn());
+function Zn() {
+ for (let [e] of Jn) "isConnected" in e && !e.isConnected && Jn.delete(e);
}
-function Dt(e) {
+function Qn(e) {
requestAnimationFrame(() => {
- Et(), Ct.size === 0 ? e() : wt.add(e);
+ Zn(), Jn.size === 0 ? e() : Yn.add(e);
});
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/focusSafely.mjs
-function Ot(e) {
+function $n(e) {
if (!e.isConnected) return;
- let t = j(e);
- if (vt() === "virtual") {
- let n = se(t);
- Dt(() => {
- let r = se(t);
- (r === n || r === t.body) && e.isConnected && E(e);
+ let t = I(e);
+ if (Un() === "virtual") {
+ let n = At(t);
+ Qn(() => {
+ let r = At(t);
+ (r === n || r === t.body) && e.isConnected && gt(e);
});
- } else E(e);
+ } else gt(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/chain.mjs
-function kt(...e) {
+function er(...e) {
return (...t) => {
for (let n of e) typeof n == "function" && n(...t);
};
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useValueEffect.mjs
-function At(e) {
- let [t, n] = (0, w.useState)(e), r = (0, w.useRef)(t), i = (0, w.useRef)(null), a = (0, w.useRef)(() => {
+function tr(e) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(t), i = (0, _.useRef)(null), a = (0, _.useRef)(() => {
if (!i.current) return;
let e = i.current.next();
if (e.done) {
@@ -1225,44 +2823,44 @@ function At(e) {
});
return z(() => {
r.current = t, i.current && a.current();
- }), [t, (0, w.useCallback)((e) => {
+ }), [t, (0, _.useCallback)((e) => {
i.current = e(r.current), a.current();
}, [a])];
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useId.mjs
-var jt = !!(typeof window < "u" && window.document && window.document.createElement), Mt = /* @__PURE__ */ new Map(), Nt;
-typeof FinalizationRegistry < "u" && (Nt = new FinalizationRegistry((e) => {
- Mt.delete(e);
+var nr = !!(typeof window < "u" && window.document && window.document.createElement), rr = /* @__PURE__ */ new Map(), ir;
+typeof FinalizationRegistry < "u" && (ir = new FinalizationRegistry((e) => {
+ rr.delete(e);
}));
-var Pt = /* @__PURE__ */ new WeakMap();
-function Ft(e) {
- let [t, n] = (0, w.useState)(e), r = (0, w.useRef)(null), i = Xe(t), a = (0, w.useRef)(null), o = Pt.get(a);
- if (Nt && o !== i && (o != null && Nt.unregister(a), Nt.register(a, i, a), Pt.set(a, i)), jt) {
- let e = Mt.get(i);
- e && !e.includes(r) ? e.push(r) : Mt.set(i, [r]);
+var ar = /* @__PURE__ */ new WeakMap();
+function or(e) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(null), i = xn(t), a = (0, _.useRef)(null), o = ar.get(a);
+ if (ir && o !== i && (o != null && ir.unregister(a), ir.register(a, i, a), ar.set(a, i)), nr) {
+ let e = rr.get(i);
+ e && !e.includes(r) ? e.push(r) : rr.set(i, [r]);
}
return z(() => {
let e = i;
return () => {
- Nt && (Nt.unregister(a), Pt.delete(a)), Mt.delete(e);
+ ir && (ir.unregister(a), ar.delete(a)), rr.delete(e);
};
- }, [i]), (0, w.useEffect)(() => {
+ }, [i]), (0, _.useEffect)(() => {
let e = r.current;
return e && n(e), () => {
e && (r.current = null);
};
}), i;
}
-function It(e, t) {
+function sr(e, t) {
if (e === t) return e;
- let n = Mt.get(e);
+ let n = rr.get(e);
if (n) return n.forEach((e) => e.current = t), t;
- let r = Mt.get(t);
+ let r = rr.get(t);
return r ? (r.forEach((t) => t.current = e), e) : t;
}
-function Lt(e = []) {
- let t = Ft(), [n, r] = At(t), i = (0, w.useCallback)(() => {
+function cr(e = []) {
+ let t = or(), [n, r] = tr(t), i = (0, _.useCallback)(() => {
r(function* () {
yield t, yield document.getElementById(t) ? t : void 0;
});
@@ -1275,60 +2873,60 @@ function Lt(e = []) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeRefs.mjs
-function Rt(...e) {
+function lr(...e) {
return e.length === 1 && e[0] ? e[0] : (t) => {
let n = !1, r = e.map((e) => {
- let r = zt(e, t);
+ let r = ur(e, t);
return n ||= typeof r == "function", r;
});
if (n) return () => {
r.forEach((t, n) => {
- typeof t == "function" ? t() : zt(e[n], null);
+ typeof t == "function" ? t() : ur(e[n], null);
});
};
};
}
-function zt(e, t) {
+function ur(e, t) {
if (typeof e == "function") return e(t);
e != null && (e.current = t);
}
//#endregion
//#region node_modules/clsx/dist/clsx.mjs
-function Bt(e) {
+function dr(e) {
var t, n, r = "";
if (typeof e == "string" || typeof e == "number") r += e;
else if (typeof e == "object") {
if (Array.isArray(e)) {
var i = e.length;
- for (t = 0; t < i; t++) e[t] && (n = Bt(e[t])) && (r && (r += " "), r += n);
+ for (t = 0; t < i; t++) e[t] && (n = dr(e[t])) && (r && (r += " "), r += n);
} else for (n in e) e[n] && (r && (r += " "), r += n);
}
return r;
}
-function Vt() {
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Bt(e)) && (r && (r += " "), r += t);
+function fr() {
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = dr(e)) && (r && (r += " "), r += t);
return r;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/mergeProps.mjs
-function B(...e) {
+function V(...e) {
let t = { ...e[0] };
for (let n = 1; n < e.length; n++) {
let r = e[n];
for (let e in r) {
let n = t[e], i = r[e];
- typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = kt(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = Vt(n, i) : e === "id" && n && i ? t.id = It(n, i) : e === "ref" && n && i ? t.ref = Rt(n, i) : t[e] = i === void 0 ? n : i;
+ typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = er(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = fr(n, i) : e === "id" && n && i ? t.id = sr(n, i) : e === "ref" && n && i ? t.ref = lr(n, i) : t[e] = i === void 0 ? n : i;
}
}
return t;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocus.mjs
-function V(e) {
- let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, w.useCallback)((e) => {
- if (I(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
- }, [r, i]), o = be(a), s = (0, w.useCallback)((e) => {
- let t = I(e), r = j(t), a = r ? se(r) : se();
+function pr(e) {
+ let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, _.useCallback)((e) => {
+ if (R(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
+ }, [r, i]), o = Wt(a), s = (0, _.useCallback)((e) => {
+ let t = R(e), r = I(t), a = r ? At(r) : At();
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
}, [
i,
@@ -1342,7 +2940,7 @@ function V(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createEventHandler.mjs
-function Ht(e) {
+function mr(e) {
if (e) return (t) => {
let n = !0;
e({
@@ -1367,33 +2965,33 @@ function Ht(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/createKeyboardShortcutHandler.mjs
-var Ut = /* @__PURE__ */ new Set([
+var hr = /* @__PURE__ */ new Set([
"shift",
"alt",
"control",
"meta",
"mod"
-]), Wt = [
+]), gr = [
"Alt",
"Control",
"Meta",
"Shift"
];
-function Gt(e) {
+function _r(e) {
let t = /* @__PURE__ */ new Set();
- return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Ee() ? "Meta" : "Control"), t;
+ return e.alt && t.add("Alt"), e.shift && t.add("Shift"), e.ctrl && t.add("Control"), e.meta && t.add("Meta"), e.mod && t.add(Xt() ? "Meta" : "Control"), t;
}
-function Kt(e) {
+function vr(e) {
let t = /* @__PURE__ */ new Set();
return e.altKey && t.add("Alt"), e.ctrlKey && t.add("Control"), e.metaKey && t.add("Meta"), e.shiftKey && t.add("Shift"), t;
}
-function qt(e) {
- return Wt.filter((t) => e.has(t));
+function yr(e) {
+ return gr.filter((t) => e.has(t));
}
-function Jt(e) {
+function br(e) {
let t = e.split("+").reduce((e, t) => {
let n = t.toLowerCase();
- return Ut.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
+ return hr.has(n) ? n === "shift" ? e.shift = !0 : n === "alt" ? e.alt = !0 : n === "control" ? e.ctrl = !0 : n === "meta" ? e.meta = !0 : n === "mod" && (e.mod = !0) : e.key = t, e;
}, {
shift: !1,
alt: !1,
@@ -1405,10 +3003,10 @@ function Jt(e) {
if (t.key === "") throw Error(`Invalid keyboard shortcut: "${e}". Must include exactly one non-modifier key (e.g. "a", "Enter", "ArrowDown"). Combine any of Shift, Alt, Ctrl, Meta, and Mod.`);
return t;
}
-function Yt(e) {
+function xr(e) {
return e.toLowerCase();
}
-var Xt = {
+var Sr = {
space: " ",
esc: "escape",
del: "delete",
@@ -1420,26 +3018,26 @@ var Xt = {
pageup: "pageup",
pagedown: "pagedown"
};
-function Zt(e) {
- let t = Yt(e);
- return Xt[t] ?? t;
+function Cr(e) {
+ let t = xr(e);
+ return Sr[t] ?? t;
}
-function Qt(e) {
- let t = qt(Gt(e)), n = Zt(e.key);
+function wr(e) {
+ let t = yr(_r(e)), n = Cr(e.key);
return t.length > 0 ? `${t.join("+")}+${n}` : n;
}
-function $t(e) {
- let t = qt(Kt(e)), n = Yt(e.key);
+function Tr(e) {
+ let t = yr(vr(e)), n = xr(e.key);
return (t.length > 0 ? `${t.join("+")}+` : "") + n;
}
-function en(e) {
+function Er(e) {
let t = /* @__PURE__ */ new Map();
for (let [n, r] of Object.entries(e)) {
- let e = Jt(n);
- t.set(Qt(e), r);
+ let e = br(n);
+ t.set(wr(e), r);
}
return (e) => {
- let n = $t(e), r = t.get(n), i = r?.(e);
+ let n = Tr(e), r = t.get(n), i = r?.(e);
i === void 0 && r !== void 0 ? i = {
shouldContinuePropagation: !1,
shouldPreventDefault: !0
@@ -1451,11 +3049,11 @@ function en(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useKeyboard.mjs
-function tn(e) {
+function Dr(e) {
let { shortcuts: t, allowRepeats: n = !1, allowComposing: r = !1 } = e, i, a;
if (t) {
- let o = en(t), s = Ht((e) => {
- if (!F(e.currentTarget, I(e))) {
+ let o = Er(t), s = mr((e) => {
+ if (!L(e.currentTarget, R(e))) {
e.continuePropagation();
return;
}
@@ -1464,8 +3062,8 @@ function tn(e) {
return;
}
o(e);
- }), c = Ht((e) => {
- if (!F(e.currentTarget, I(e))) {
+ }), c = mr((e) => {
+ if (!L(e.currentTarget, R(e))) {
e.continuePropagation();
return;
}
@@ -1475,8 +3073,8 @@ function tn(e) {
}
e.continuePropagation();
});
- i = e.onKeyDown ? kt(e.onKeyDown, s) : s, a = e.onKeyUp ? kt(e.onKeyUp, c) : c;
- } else i = Ht(e.onKeyDown), a = Ht(e.onKeyUp);
+ i = e.onKeyDown ? er(e.onKeyDown, s) : s, a = e.onKeyUp ? er(e.onKeyUp, c) : c;
+ } else i = mr(e.onKeyDown), a = mr(e.onKeyUp);
return { keyboardProps: e.isDisabled ? {} : {
onKeyDown: i,
onKeyUp: a
@@ -1484,8 +3082,8 @@ function tn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useObjectRef.mjs
-function nn(e) {
- let t = (0, w.useRef)(null), n = (0, w.useRef)(void 0), r = (0, w.useCallback)((t) => {
+function Or(e) {
+ let t = (0, _.useRef)(null), n = (0, _.useRef)(void 0), r = (0, _.useCallback)((t) => {
if (typeof e == "function") {
let n = e, r = n(t);
return () => {
@@ -1496,7 +3094,7 @@ function nn(e) {
e.current = null;
};
}, [e]);
- return (0, w.useMemo)(() => ({
+ return (0, _.useMemo)(() => ({
get current() {
return t.current;
},
@@ -1507,7 +3105,7 @@ function nn(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSyncRef.mjs
-function rn(e, t) {
+function kr(e, t) {
z(() => {
if (e && e.ref && t) return e.ref.current = t.current, () => {
e.ref && (e.ref.current = null);
@@ -1516,20 +3114,20 @@ function rn(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusable.mjs
-var an = /*#__PURE__*/ w.createContext(null);
-function on(e) {
- let t = (0, w.useContext)(an) || {};
- rn(t, e);
+var Ar = /*#__PURE__*/ _.createContext(null);
+function jr(e) {
+ let t = (0, _.useContext)(Ar) || {};
+ kr(t, e);
let { ref: n, ...r } = t;
return r;
}
-function sn(e, t) {
- let { focusProps: n } = V(e), { keyboardProps: r } = tn(e), i = B(n, r), a = on(t), o = e.isDisabled ? {} : a, s = (0, w.useRef)(e.autoFocus);
- (0, w.useEffect)(() => {
- s.current && t.current && Ot(t.current), s.current = !1;
+function Mr(e, t) {
+ let { focusProps: n } = pr(e), { keyboardProps: r } = Dr(e), i = V(n, r), a = jr(t), o = e.isDisabled ? {} : a, s = (0, _.useRef)(e.autoFocus);
+ (0, _.useEffect)(() => {
+ s.current && t.current && $n(t.current), s.current = !1;
}, [t]);
let c = e.excludeFromTabOrder ? -1 : 0;
- return e.isDisabled && (c = void 0), { focusableProps: B({
+ return e.isDisabled && (c = void 0), { focusableProps: V({
...i,
tabIndex: c
}, o) };
@@ -1561,23 +3159,23 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
return this.content.insertBefore(e, t);
}
}));
-var cn = /*#__PURE__*/ (0, w.createContext)(!1);
-function ln(e) {
- if ((0, w.useContext)(cn)) return /*#__PURE__*/ w.createElement(w.Fragment, null, e.children);
- let t = /*#__PURE__*/ w.createElement(cn.Provider, { value: !0 }, e.children);
- return /*#__PURE__*/ w.createElement("template", null, t);
+var Nr = /*#__PURE__*/ (0, _.createContext)(!1);
+function Pr(e) {
+ if ((0, _.useContext)(Nr)) return /*#__PURE__*/ _.createElement(_.Fragment, null, e.children);
+ let t = /*#__PURE__*/ _.createElement(Nr.Provider, { value: !0 }, e.children);
+ return /*#__PURE__*/ _.createElement("template", null, t);
}
-function un(e) {
- let t = (t, n) => (0, w.useContext)(cn) ? null : e(t, n);
- return t.displayName = e.displayName || e.name, (0, w.forwardRef)(t);
+function Fr(e) {
+ let t = (t, n) => (0, _.useContext)(Nr) ? null : e(t, n);
+ return t.displayName = e.displayName || e.name, (0, _.forwardRef)(t);
}
-function dn() {
- return (0, w.useContext)(cn);
+function Ir() {
+ return (0, _.useContext)(Nr);
}
//#endregion
//#region node_modules/react-dom/cjs/react-dom.production.js
-var fn = /* @__PURE__ */ u(((e) => {
- var t = C();
+var Lr = /* @__PURE__ */ u(((e) => {
+ var t = m();
function n(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -1704,7 +3302,7 @@ var fn = /* @__PURE__ */ u(((e) => {
}, e.useFormStatus = function() {
return l.H.useHostTransitionStatus();
}, e.version = "19.3.0";
-})), pn = /* @__PURE__ */ u(((e, t) => {
+})), Rr = /* @__PURE__ */ u(((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);
@@ -1712,9 +3310,9 @@ var fn = /* @__PURE__ */ u(((e) => {
console.error(e);
}
}
- n(), t.exports = fn();
-})), mn = /* @__PURE__ */ u(((e) => {
- var t = C();
+ n(), t.exports = Lr();
+})), zr = /* @__PURE__ */ u(((e) => {
+ var t = m();
function n(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
@@ -1751,48 +3349,48 @@ var fn = /* @__PURE__ */ u(((e) => {
}
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
-})), hn = /* @__PURE__ */ u(((e, t) => {
- t.exports = mn();
-})), gn = /* @__PURE__ */ f(pn(), 1), _n = hn(), vn = /*#__PURE__*/ (0, w.createContext)(!1), yn = /*#__PURE__*/ (0, w.createContext)(null);
-function bn(e) {
- if ((0, w.useContext)(yn)) return e.content;
- let { collection: t, document: n } = wn(e.createCollection);
- return /*#__PURE__*/ w.createElement(w.Fragment, null, /*#__PURE__*/ w.createElement(ln, null, /*#__PURE__*/ w.createElement(yn.Provider, { value: n }, e.content)), /*#__PURE__*/ w.createElement(xn, {
+})), Br = /* @__PURE__ */ u(((e, t) => {
+ t.exports = zr();
+})), Vr = /* @__PURE__ */ f(Rr(), 1), Hr = Br(), Ur = /*#__PURE__*/ (0, _.createContext)(!1), Wr = /*#__PURE__*/ (0, _.createContext)(null);
+function Gr(e) {
+ if ((0, _.useContext)(Wr)) return e.content;
+ let { collection: t, document: n } = Yr(e.createCollection);
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(Pr, null, /*#__PURE__*/ _.createElement(Wr.Provider, { value: n }, e.content)), /*#__PURE__*/ _.createElement(Kr, {
render: e.children,
collection: t
}));
}
-function xn({ collection: e, render: t }) {
+function Kr({ collection: e, render: t }) {
return t(e);
}
-function Sn(e, t, n) {
- let r = et(), i = (0, w.useRef)(r);
+function qr(e, t, n) {
+ let r = Tn(), i = (0, _.useRef)(r);
i.current = r;
- let a = (0, w.useCallback)(() => i.current ? n() : t(), [t, n]);
- return (0, _n.useSyncExternalStore)(e, a);
+ let a = (0, _.useCallback)(() => i.current ? n() : t(), [t, n]);
+ return (0, Hr.useSyncExternalStore)(e, a);
}
-var Cn = typeof w.useSyncExternalStore == "function" ? w.useSyncExternalStore : Sn;
-function wn(e) {
- let [t] = (0, w.useState)(() => new x(e?.() || new _()));
+var Jr = typeof _.useSyncExternalStore == "function" ? _.useSyncExternalStore : qr;
+function Yr(e) {
+ let [t] = (0, _.useState)(() => new pt(e?.() || new lt()));
return {
- collection: Cn((0, w.useCallback)((e) => t.subscribe(e), [t]), (0, w.useCallback)(() => {
+ collection: Jr((0, _.useCallback)((e) => t.subscribe(e), [t]), (0, _.useCallback)(() => {
let e = t.getCollection();
return t.isSSR && t.resetAfterSSR(), e;
- }, [t]), (0, w.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
+ }, [t]), (0, _.useCallback)(() => (t.isSSR = !0, t.getCollection()), [t])),
document: t
};
}
-var Tn = /*#__PURE__*/ (0, w.createContext)(null);
-function En(e) {
- return class extends p {
+var Xr = /*#__PURE__*/ (0, _.createContext)(null);
+function Zr(e) {
+ return class extends at {
static {
this.type = e;
}
};
}
-function Dn(e, t, n, r, i, a) {
- typeof e == "string" && (e = En(e));
- let o = (0, w.useCallback)((i) => {
+function Qr(e, t, n, r, i, a) {
+ typeof e == "string" && (e = Zr(e));
+ let o = (0, _.useCallback)((i) => {
i?.setProps(t, n, e, r, a);
}, [
t,
@@ -1800,77 +3398,77 @@ function Dn(e, t, n, r, i, a) {
r,
a,
e
- ]), s = (0, w.useContext)(Tn);
+ ]), s = (0, _.useContext)(Xr);
if (s) {
let o = s.ownerDocument.nodesByProps.get(t);
- return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ w.createElement(Tn.Provider, { value: o }, i) : null;
+ return o || (o = s.ownerDocument.createElement(e.type), o.setProps(t, n, e, r, a), s.appendChild(o), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(t, o)), i ? /*#__PURE__*/ _.createElement(Xr.Provider, { value: o }, i) : null;
}
- return /*#__PURE__*/ w.createElement(e.type, { ref: o }, i);
+ return /*#__PURE__*/ _.createElement(e.type, { ref: o }, i);
}
-function On(e, t) {
- let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, w.forwardRef)((r, i) => {
- let a = (0, w.useContext)(an);
- if (!(0, w.useContext)(vn)) {
+function $r(e, t) {
+ let n = ({ node: e }) => t(e.props, e.props.ref, e), r = (0, _.forwardRef)((r, i) => {
+ let a = (0, _.useContext)(Ar);
+ if (!(0, _.useContext)(Ur)) {
if (t.length >= 3) throw Error(t.name + " cannot be rendered outside a collection.");
return t(r, i);
}
- return Dn(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ w.createElement(an.Provider, { value: a }, /*#__PURE__*/ w.createElement(n, { node: e })));
+ return Qr(e, r, i, "children" in r ? r.children : null, null, (e) => /*#__PURE__*/ _.createElement(Ar.Provider, { value: a }, /*#__PURE__*/ _.createElement(n, { node: e })));
});
return r.displayName = t.name, r;
}
-function kn(e) {
- return T({
+function ei(e) {
+ return mt({
...e,
addIdAndValue: !0
});
}
-var An = /*#__PURE__*/ (0, w.createContext)(null);
-function jn(e) {
- let t = (0, w.useContext)(An), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = kn({
+var ti = /*#__PURE__*/ (0, _.createContext)(null);
+function ni(e) {
+ let t = (0, _.useContext)(ti), n = (t?.dependencies || []).concat(e.dependencies), r = e.idScope ?? t?.idScope, i = ei({
...e,
idScope: r,
dependencies: n
});
- return (0, w.useContext)(yn) && (i = /*#__PURE__*/ w.createElement(Mn, null, i)), t = (0, w.useMemo)(() => ({
+ return (0, _.useContext)(Wr) && (i = /*#__PURE__*/ _.createElement(ri, null, i)), t = (0, _.useMemo)(() => ({
dependencies: n,
idScope: r
- }), [r, ...n]), /*#__PURE__*/ w.createElement(An.Provider, { value: t }, i);
+ }), [r, ...n]), /*#__PURE__*/ _.createElement(ti.Provider, { value: t }, i);
}
-function Mn({ children: e }) {
- let t = (0, w.useContext)(yn), n = (0, w.useMemo)(() => /*#__PURE__*/ w.createElement(yn.Provider, { value: null }, /*#__PURE__*/ w.createElement(vn.Provider, { value: !0 }, e)), [e]);
- return et() ? /*#__PURE__*/ w.createElement(Tn.Provider, { value: t }, n) : /*#__PURE__*/ (0, gn.createPortal)(n, t);
+function ri({ children: e }) {
+ let t = (0, _.useContext)(Wr), n = (0, _.useMemo)(() => /*#__PURE__*/ _.createElement(Wr.Provider, { value: null }, /*#__PURE__*/ _.createElement(Ur.Provider, { value: !0 }, e)), [e]);
+ return Tn() ? /*#__PURE__*/ _.createElement(Xr.Provider, { value: t }, n) : /*#__PURE__*/ (0, Vr.createPortal)(n, t);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/constants.mjs
-var Nn = "react-aria-clear-focus", Pn = "react-aria-focus";
+var ii = "react-aria-clear-focus", ai = "react-aria-focus";
//#endregion
//#region node_modules/react-aria/dist/private/focus/virtualFocus.mjs
-function Fn(e) {
- let t = Rn(j(e));
- t !== e && (t && In(t, e), e && Ln(e, t));
+function oi(e) {
+ let t = li(I(e));
+ t !== e && (t && si(t, e), e && ci(e, t));
}
-function In(e, t) {
+function si(e, t) {
e.dispatchEvent(new FocusEvent("blur", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusout", {
bubbles: !0,
relatedTarget: t
}));
}
-function Ln(e, t) {
+function ci(e, t) {
e.dispatchEvent(new FocusEvent("focus", { relatedTarget: t })), e.dispatchEvent(new FocusEvent("focusin", {
bubbles: !0,
relatedTarget: t
}));
}
-function Rn(e) {
- let t = se(e), n = t?.getAttribute("aria-activedescendant");
+function li(e) {
+ let t = At(e), n = t?.getAttribute("aria-activedescendant");
return n && e.getElementById(n) || t;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/keyboard.mjs
-function zn(e) {
- return Ee() ? e.metaKey : e.ctrlKey;
+function ui(e) {
+ return Xt() ? e.metaKey : e.ctrlKey;
}
-var Bn = /* @__PURE__ */ new Set([
+var di = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -1881,27 +3479,27 @@ var Bn = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Vn(e) {
- return e instanceof HTMLInputElement && !Bn.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
+function fi(e) {
+ return e instanceof HTMLInputElement && !di.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEffectEvent.mjs
-var Hn = w.useInsertionEffect ?? z;
-function Un(e) {
- let t = (0, w.useRef)(null);
- return Hn(() => {
+var pi = _.useInsertionEffect ?? z;
+function mi(e) {
+ let t = (0, _.useRef)(null);
+ return pi(() => {
t.current = e;
- }, [e]), (0, w.useCallback)((...e) => {
+ }, [e]), (0, _.useCallback)((...e) => {
let n = t.current;
return n?.(...e);
}, []);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useEvent.mjs
-function Wn(e, t, n, r) {
- let i = Un(n), a = n == null;
- (0, w.useEffect)(() => {
- if (!(a || e.current == null)) return ie(e.current, t, i, r);
+function hi(e, t, n, r) {
+ let i = mi(n), a = n == null;
+ (0, _.useEffect)(() => {
+ if (!(a || e.current == null)) return Et(e.current, t, i, r);
}, [
e,
t,
@@ -1911,9 +3509,9 @@ function Wn(e, t, n, r) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLabels.mjs
-function Gn(e, t) {
+function gi(e, t) {
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
- return n = Ft(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
+ return n = or(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
id: n,
"aria-label": r,
"aria-labelledby": i
@@ -1921,7 +3519,7 @@ function Gn(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/utils.mjs
-var Kn = /* @__PURE__ */ new Set([
+var _i = /* @__PURE__ */ new Set([
"Arab",
"Syrc",
"Samr",
@@ -1932,7 +3530,7 @@ var Kn = /* @__PURE__ */ new Set([
"Adlm",
"Rohg",
"Hebr"
-]), qn = /* @__PURE__ */ new Set([
+]), vi = /* @__PURE__ */ new Set([
"ae",
"ar",
"arc",
@@ -1953,20 +3551,20 @@ var Kn = /* @__PURE__ */ new Set([
"ur",
"yi"
]);
-function Jn(e) {
+function yi(e) {
if (Intl.Locale) {
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
if (n) return n.direction === "rtl";
- if (t.script) return Kn.has(t.script);
+ if (t.script) return _i.has(t.script);
}
let t = e.split("-")[0];
- return qn.has(t);
+ return vi.has(t);
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
-var Yn = Symbol.for("react-aria.i18n.locale");
-function Xn() {
- let e = typeof window < "u" && window[Yn] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
+var bi = Symbol.for("react-aria.i18n.locale");
+function xi() {
+ let e = typeof window < "u" && window[bi] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
try {
Intl.DateTimeFormat.supportedLocalesOf([e]);
} catch {
@@ -1974,33 +3572,33 @@ function Xn() {
}
return {
locale: e,
- direction: Jn(e) ? "rtl" : "ltr"
+ direction: yi(e) ? "rtl" : "ltr"
};
}
-var Zn = Xn(), Qn = /* @__PURE__ */ new Set();
-function $n() {
- Zn = Xn();
- for (let e of Qn) e(Zn);
+var Si = xi(), Ci = /* @__PURE__ */ new Set();
+function wi() {
+ Si = xi();
+ for (let e of Ci) e(Si);
}
-function er() {
- let e = et(), [t, n] = (0, w.useState)(Zn);
- return (0, w.useEffect)(() => (Qn.size === 0 && window.addEventListener("languagechange", $n), Qn.add(n), () => {
- Qn.delete(n), Qn.size === 0 && window.removeEventListener("languagechange", $n);
+function Ti() {
+ let e = Tn(), [t, n] = (0, _.useState)(Si);
+ return (0, _.useEffect)(() => (Ci.size === 0 && window.addEventListener("languagechange", wi), Ci.add(n), () => {
+ Ci.delete(n), Ci.size === 0 && window.removeEventListener("languagechange", wi);
}), []), e ? {
- locale: typeof window < "u" && window[Yn] || "en-US",
+ locale: typeof window < "u" && window[bi] || "en-US",
direction: "ltr"
} : t;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
-var tr = /*#__PURE__*/ w.createContext(null);
-function nr() {
- let e = er();
- return (0, w.useContext)(tr) || e;
+var Ei = /*#__PURE__*/ _.createContext(null);
+function Di() {
+ let e = Ti();
+ return (0, _.useContext)(Ei) || e;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
-var rr = Symbol.for("react-aria.i18n.locale"), ir = Symbol.for("react-aria.i18n.strings"), ar = void 0, or = class e {
+var Oi = Symbol.for("react-aria.i18n.locale"), ki = Symbol.for("react-aria.i18n.strings"), Ai = void 0, ji = class e {
constructor(e, t = "en-US") {
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
}
@@ -2011,39 +3609,39 @@ var rr = Symbol.for("react-aria.i18n.locale"), ir = Symbol.for("react-aria.i18n.
}
getStringsForLocale(e) {
let t = this.strings[e];
- return t || (t = sr(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
+ return t || (t = Mi(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
}
static getGlobalDictionaryForPackage(t) {
if (typeof window > "u") return null;
- let n = window[rr];
- if (ar === void 0) {
- let t = window[ir];
+ let n = window[Oi];
+ if (Ai === void 0) {
+ let t = window[ki];
if (!t) return null;
- ar = {};
- for (let r in t) ar[r] = new e({ [n]: t[r] }, n);
+ Ai = {};
+ for (let r in t) Ai[r] = new e({ [n]: t[r] }, n);
}
- let r = ar?.[t];
+ let r = Ai?.[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 sr(e, t, n = "en-US") {
+function Mi(e, t, n = "en-US") {
if (t[e]) return t[e];
- let r = cr(e), i = lr(e);
+ let r = Ni(e), i = Pi(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 cr(e) {
+function Ni(e) {
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
}
-function lr(e) {
+function Pi(e) {
if (Intl.Locale) return new Intl.Locale(e).script;
}
//#endregion
//#region node_modules/@internationalized/string/dist/private/LocalizedStringFormatter.mjs
-var ur = /* @__PURE__ */ new Map(), dr = /* @__PURE__ */ new Map(), fr = class {
+var Fi = /* @__PURE__ */ new Map(), Ii = /* @__PURE__ */ new Map(), Li = class {
constructor(e, t) {
this.locale = e, this.strings = t;
}
@@ -2054,37 +3652,37 @@ var ur = /* @__PURE__ */ new Map(), dr = /* @__PURE__ */ new Map(), fr = class {
plural(e, t, n = "cardinal") {
let r = t["=" + e];
if (r) return typeof r == "function" ? r() : r;
- let i = this.locale + ":" + n, a = ur.get(i);
- return a || (a = new Intl.PluralRules(this.locale, { type: n }), ur.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
+ let i = this.locale + ":" + n, a = Fi.get(i);
+ return a || (a = new Intl.PluralRules(this.locale, { type: n }), Fi.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
}
number(e) {
- let t = dr.get(this.locale);
- return t || (t = new Intl.NumberFormat(this.locale), dr.set(this.locale, t)), t.format(e);
+ let t = Ii.get(this.locale);
+ return t || (t = new Intl.NumberFormat(this.locale), Ii.set(this.locale, t)), t.format(e);
}
select(e, t) {
let n = e[t] || e.other;
return typeof n == "function" ? n() : n;
}
-}, pr = /* @__PURE__ */ new WeakMap();
-function mr(e) {
- let t = pr.get(e);
- return t || (t = new or(e), pr.set(e, t)), t;
+}, Ri = /* @__PURE__ */ new WeakMap();
+function zi(e) {
+ let t = Ri.get(e);
+ return t || (t = new ji(e), Ri.set(e, t)), t;
}
-function hr(e, t) {
- return t && or.getGlobalDictionaryForPackage(t) || mr(e);
+function Bi(e, t) {
+ return t && ji.getGlobalDictionaryForPackage(t) || zi(e);
}
-function gr(e, t) {
- let { locale: n } = nr(), r = hr(e, t);
- return (0, w.useMemo)(() => new fr(n, r), [n, r]);
+function Vi(e, t) {
+ let { locale: n } = Di(), r = Bi(e, t);
+ return (0, _.useMemo)(() => new Li(n, r), [n, r]);
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/filterDOMProps.mjs
-var _r = /* @__PURE__ */ new Set(["id"]), vr = /* @__PURE__ */ new Set([
+var Hi = /* @__PURE__ */ new Set(["id"]), Ui = /* @__PURE__ */ new Set([
"aria-label",
"aria-labelledby",
"aria-describedby",
"aria-details"
-]), yr = /* @__PURE__ */ new Set([
+]), Wi = /* @__PURE__ */ new Set([
"href",
"hrefLang",
"target",
@@ -2092,72 +3690,72 @@ var _r = /* @__PURE__ */ new Set(["id"]), vr = /* @__PURE__ */ new Set([
"download",
"ping",
"referrerPolicy"
-]), br = /* @__PURE__ */ new Set([
+]), Gi = /* @__PURE__ */ new Set([
"dir",
"lang",
"hidden",
"inert",
"translate"
-]), xr = /* @__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(".")), Sr = /^(data-.*)$/;
-function Cr(e, t = {}) {
+]), Ki = /* @__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(".")), qi = /^(data-.*)$/;
+function H(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) && (_r.has(t) || n && vr.has(t) || r && yr.has(t) || i && br.has(t) || a && (xr.has(t) || t.endsWith("Capture") && xr.has(t.slice(0, -7))) || o?.has(t) || Sr.test(t)) && (s[t] = e[t]);
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Hi.has(t) || n && Ui.has(t) || r && Wi.has(t) || i && Gi.has(t) || a && (Ki.has(t) || t.endsWith("Capture") && Ki.has(t.slice(0, -7))) || o?.has(t) || qi.test(t)) && (s[t] = e[t]);
return s;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/textSelection.mjs
-var wr = "default", Tr = "", Er = /* @__PURE__ */ new WeakMap();
-function Dr(e) {
- if (ke() && je()) {
- if (wr === "default") {
- let t = j(e);
- Tr = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
+var Ji = "default", Yi = "", Xi = /* @__PURE__ */ new WeakMap();
+function Zi(e) {
+ if ($t() && tn()) {
+ if (Ji === "default") {
+ let t = I(e);
+ Yi = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
}
- wr = "disabled";
+ Ji = "disabled";
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- Er.set(e, e.style[t]), e.style[t] = "none";
+ Xi.set(e, e.style[t]), e.style[t] = "none";
}
}
-function Or(e) {
- if (ke() && je()) {
- if (wr !== "disabled") return;
- wr = "restoring", setTimeout(() => {
- Dt(() => {
- if (wr === "restoring") {
- let t = j(e);
- t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Tr || ""), Tr = "", wr = "default";
+function Qi(e) {
+ if ($t() && tn()) {
+ if (Ji !== "disabled") return;
+ Ji = "restoring", setTimeout(() => {
+ Qn(() => {
+ if (Ji === "restoring") {
+ let t = I(e);
+ t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Yi || ""), Yi = "", Ji = "default";
}
});
}, 300);
- } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Er.has(e)) {
- let t = Er.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
- e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Er.delete(e);
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Xi.has(e)) {
+ let t = Xi.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
+ e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Xi.delete(e);
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getMetaValue.mjs
-function kr(e, t) {
- let n = M(t), r = j(t);
+function $i(e, t) {
+ let n = xt(t), r = I(t);
if (r == null || n == null) return;
let i, a = `meta[name="${CSS.escape(e)}"], meta[property="${CSS.escape(e)}"]`, o = r.querySelector(a);
return o && o instanceof n.HTMLMetaElement && (e === "csp-nonce" && o.nonce && (i ??= o.nonce || void 0), o.content && (i ??= o.content || void 0)), e === "csp-nonce" && (i ??= n.__webpack_nonce__ || globalThis.__webpack_nonce__ || void 0), i;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getNonce.mjs
-var Ar = /* @__PURE__ */ new WeakMap();
-function jr(e) {
- let t = j(e), n = Ar.get(t);
- return n ??= kr("csp-nonce", t), n !== void 0 && Ar.set(t, n), n;
+var ea = /* @__PURE__ */ new WeakMap();
+function U(e) {
+ let t = I(e), n = ea.get(t);
+ return n ??= $i("csp-nonce", t), n !== void 0 && ea.set(t, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/context.mjs
-var Mr = w.createContext({ register: () => {} });
-Mr.displayName = "PressResponderContext";
+var ta = _.createContext({ register: () => {} });
+ta.displayName = "PressResponderContext";
//#endregion
//#region node_modules/react-aria/dist/private/utils/useGlobalListeners.mjs
-function Nr() {
- let e = (0, w.useRef)(/* @__PURE__ */ new Map()), t = (0, w.useCallback)((t, n, r, i) => {
+function na() {
+ let e = (0, _.useRef)(/* @__PURE__ */ new Map()), t = (0, _.useCallback)((t, n, r, i) => {
let a = i?.once ? (...t) => {
e.current.delete(r), r(...t);
} : r;
@@ -2167,15 +3765,15 @@ function Nr() {
fn: a,
options: i
}), t.addEventListener(n, a, i);
- }, []), n = (0, w.useCallback)((t, n, r, i) => {
+ }, []), n = (0, _.useCallback)((t, n, r, i) => {
let a = e.current.get(r)?.fn || r;
t.removeEventListener(n, a, i), e.current.delete(r);
- }, []), r = (0, w.useCallback)(() => {
+ }, []), r = (0, _.useCallback)(() => {
e.current.forEach((e, t) => {
n(e.eventTarget, e.type, t, e.options);
});
}, [n]);
- return (0, w.useEffect)(() => r, [r]), {
+ return (0, _.useEffect)(() => r, [r]), {
addGlobalListener: t,
removeGlobalListener: n,
removeAllGlobalListeners: r
@@ -2183,15 +3781,15 @@ function Nr() {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/usePress.mjs
-function Pr(e) {
- let t = (0, w.useContext)(Mr);
+function ra(e) {
+ let t = (0, _.useContext)(ta);
if (t) {
let { register: n, ref: r, ...i } = t;
- e = B(i, e), n();
+ e = V(i, e), n();
}
- return rn(t, e.ref), e;
+ return kr(t, e.ref), e;
}
-var Fr = class {
+var ia = class {
#e;
constructor(e, t, n, r) {
this.#e = !0;
@@ -2204,9 +3802,9 @@ var Fr = class {
get shouldStopPropagation() {
return this.#e;
}
-}, Ir = Symbol("linkClicked"), Lr = "react-aria-pressable-style", Rr = "data-react-aria-pressable";
-function zr(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 } = Pr(e), [m, h] = (0, w.useState)(!1), g = (0, w.useRef)({
+}, aa = Symbol("linkClicked"), oa = "react-aria-pressable-style", sa = "data-react-aria-pressable";
+function ca(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 } = ra(e), [m, h] = (0, _.useState)(!1), g = (0, _.useRef)({
isPressed: !1,
ignoreEmulatedMouseEvents: !1,
didFirePressStart: !1,
@@ -2216,12 +3814,12 @@ function zr(e) {
isOverTarget: !1,
pointerType: null,
disposables: []
- }), { addGlobalListener: _, removeAllGlobalListeners: v } = Nr(), y = (0, w.useCallback)((e, t) => {
+ }), { addGlobalListener: v, removeAllGlobalListeners: y } = na(), b = (0, _.useCallback)((e, t) => {
let i = g.current;
if (s || i.didFirePressStart) return !1;
let a = !0;
if (i.isTriggeringEvent = !0, r) {
- let n = new Fr("pressstart", t, e);
+ let n = new ia("pressstart", t, e);
r(n), a = n.shouldStopPropagation;
}
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
@@ -2229,17 +3827,17 @@ function zr(e) {
s,
r,
n
- ]), b = (0, w.useCallback)((e, r, a = !0) => {
+ ]), x = (0, _.useCallback)((e, r, a = !0) => {
let o = g.current;
if (!o.didFirePressStart) return !1;
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
let c = !0;
if (i) {
- let t = new Fr("pressend", r, e);
+ let t = new ia("pressend", r, e);
i(t), c = t.shouldStopPropagation;
}
if (n && n(!1), h(!1), t && a && !s) {
- let n = new Fr("press", r, e);
+ let n = new ia("press", r, e);
t(n), c &&= n.shouldStopPropagation;
}
return o.isTriggeringEvent = !1, c;
@@ -2248,28 +3846,28 @@ function zr(e) {
i,
n,
t
- ]), x = Un(b), S = Un((0, w.useCallback)((e, t) => {
+ ]), S = mi(x), C = mi((0, _.useCallback)((e, t) => {
let n = g.current;
if (s) return !1;
if (a) {
n.isTriggeringEvent = !0;
- let r = new Fr("pressup", t, e);
+ let r = new ia("pressup", t, e);
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
}
return !0;
- }, [s, a])), C = (0, w.useCallback)((e) => {
+ }, [s, a])), w = (0, _.useCallback)((e) => {
let t = g.current;
if (t.isPressed && t.target) {
- t.didFirePressStart && t.pointerType != null && b(Hr(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Or(t.target);
+ t.didFirePressStart && t.pointerType != null && x(da(t.target, e), t.pointerType, !1), t.isPressed = !1, t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, y(), d || Qi(t.target);
for (let e of t.disposables) e();
t.disposables = [];
}
}, [
d,
- v,
- b
- ]), T = Un(C);
- (0, w.useEffect)(() => {
+ y,
+ x
+ ]), T = mi(w);
+ (0, _.useEffect)(() => {
s && g.current.isPressed && T({
currentTarget: g.current.target,
shiftKey: !1,
@@ -2278,46 +3876,46 @@ function zr(e) {
altKey: !1
});
}, [s]);
- let ee = (0, w.useCallback)((e) => {
- u && C(e);
- }, [u, C]), D = (0, w.useCallback)((e) => {
+ let E = (0, _.useCallback)((e) => {
+ u && w(e);
+ }, [u, w]), D = (0, _.useCallback)((e) => {
s || o?.(e);
- }, [s, o]), O = (0, w.useCallback)((e, t) => {
+ }, [s, o]), O = (0, _.useCallback)((e, t) => {
if (!s && o) {
let n = new MouseEvent("click", e);
- ye(n, t), o(ve(n));
+ Ut(n, t), o(B(n));
}
- }, [s, o]), k = (0, w.useMemo)(() => {
+ }, [s, o]), k = (0, _.useMemo)(() => {
let e = g.current, t = {
onKeyDown(t) {
- if (Vr(t.nativeEvent, t.currentTarget) && F(t.currentTarget, I(t))) {
- Wr(I(t), t.key) && t.preventDefault();
+ if (ua(t.nativeEvent, t.currentTarget) && L(t.currentTarget, R(t))) {
+ pa(R(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"));
+ !e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, e.pointerType = "keyboard", r = b(t, "keyboard"));
let i = t.currentTarget;
- _(j(t.currentTarget), "keyup", kt((t) => {
- Vr(t, i) && !t.repeat && F(i, I(t)) && e.target && S(Hr(e.target, t), "keyboard");
- }, n), !0), r && t.stopPropagation(), t.metaKey && Ee() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
+ v(I(t.currentTarget), "keyup", er((t) => {
+ ua(t, i) && !t.repeat && L(i, R(t)) && e.target && C(da(e.target, t), "keyboard");
+ }, n), !0), r && t.stopPropagation(), t.metaKey && Xt() && e.metaKeyEvents?.set(t.key, t.nativeEvent);
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
},
onClick(t) {
- if (!(t && !F(t.currentTarget, I(t))) && t && t.button === 0 && !e.isTriggeringEvent && !ze.isOpening) {
+ if (!(t && !L(t.currentTarget, R(t))) && t && t.button === 0 && !e.isTriggeringEvent && !un.isOpening) {
let n = !0;
- if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || Fe(t.nativeEvent))) {
- let e = y(t, "virtual"), r = S(t, "virtual"), i = x(t, "virtual");
+ if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || on(t.nativeEvent))) {
+ let e = b(t, "virtual"), r = C(t, "virtual"), i = S(t, "virtual");
D(t), n = e && r && i;
} else if (e.isPressed && e.pointerType !== "keyboard") {
- let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = S(Hr(t.currentTarget, t), r), a = x(Hr(t.currentTarget, t), r, !0);
+ let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(da(t.currentTarget, t), r), a = S(da(t.currentTarget, t), r, !0);
n = i && a, e.isOverTarget = !1, D(t), T(t);
}
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
}
}
}, n = (t) => {
- if (e.isPressed && e.target && Vr(t, e.target)) {
- Wr(I(t), t.key) && t.preventDefault();
- let n = I(t), r = F(e.target, n);
- x(Hr(e.target, t), "keyboard", r), r && O(t, e.target), v(), t.key !== "Enter" && Br(e.target) && F(e.target, n) && !t[Ir] && (t[Ir] = !0, ze(e.target, t, !1)), e.isPressed = !1, e.metaKeyEvents?.delete(t.key);
+ if (e.isPressed && e.target && ua(t, e.target)) {
+ pa(R(t), t.key) && t.preventDefault();
+ let n = R(t), r = L(e.target, n);
+ S(da(e.target, t), "keyboard", r), r && O(t, e.target), y(), t.key !== "Enter" && la(e.target) && L(e.target, n) && !t[aa] && (t[aa] = !0, un(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;
@@ -2326,41 +3924,41 @@ function zr(e) {
};
if (typeof PointerEvent < "u") {
t.onPointerDown = (t) => {
- if (t.button !== 0 || !F(t.currentTarget, I(t))) return;
- if (Ie(t.nativeEvent)) {
+ if (t.button !== 0 || !L(t.currentTarget, R(t))) return;
+ if (sn(t.nativeEvent)) {
e.pointerType = "virtual";
return;
}
e.pointerType = t.pointerType;
let i = !0;
if (!e.isPressed) {
- e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Dr(e.target), i = y(t, e.pointerType);
- let a = I(t);
- "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), _(j(t.currentTarget), "pointerup", n, !1), _(j(t.currentTarget), "pointercancel", r, !1);
+ e.isPressed = !0, e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || Zi(e.target), i = b(t, e.pointerType);
+ let a = R(t);
+ "releasePointerCapture" in a && ("hasPointerCapture" in a ? a.hasPointerCapture(t.pointerId) && a.releasePointerCapture(t.pointerId) : a.releasePointerCapture(t.pointerId)), v(I(t.currentTarget), "pointerup", n, !1), v(I(t.currentTarget), "pointercancel", r, !1);
}
i && t.stopPropagation();
}, t.onMouseDown = (t) => {
- if (F(t.currentTarget, I(t)) && t.button === 0) {
+ if (L(t.currentTarget, R(t)) && t.button === 0) {
if (l) {
- let n = Se(t.target);
+ let n = Kt(t.target);
n && e.disposables.push(n);
}
t.stopPropagation();
}
}, t.onPointerUp = (t) => {
- !F(t.currentTarget, I(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && S(t, e.pointerType || t.pointerType);
+ !L(t.currentTarget, R(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
}, t.onPointerEnter = (t) => {
- t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, y(Hr(e.target, t), e.pointerType));
+ t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, b(da(e.target, t), e.pointerType));
}, t.onPointerLeave = (t) => {
- t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(Hr(e.target, t), e.pointerType, !1), ee(t));
+ t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, S(da(e.target, t), e.pointerType, !1), E(t));
};
let n = (t) => {
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
- if (F(e.target, I(t)) && e.pointerType != null) {
+ if (L(e.target, R(t)) && e.pointerType != null) {
let n = !1, r = setTimeout(() => {
- e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (E(e.target), e.target.click()));
+ e.isPressed && e.target instanceof HTMLElement && (n ? T(t) : (gt(e.target), e.target.click()));
}, 80);
- _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
+ v(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
} else T(t);
e.isOverTarget = !1;
}
@@ -2368,55 +3966,55 @@ function zr(e) {
T(e);
};
t.onDragStart = (e) => {
- F(e.currentTarget, I(e)) && T(e);
+ L(e.currentTarget, R(e)) && T(e);
};
}
return t;
}, [
- _,
+ v,
s,
l,
- v,
- d,
- ee,
y,
+ d,
+ E,
+ b,
D,
O
]);
- return (0, w.useEffect)(() => {
+ return (0, _.useEffect)(() => {
if (!f) return;
- let e = j(f.current);
- if (!e || !e.head || e.getElementById(Lr)) return;
+ let e = I(f.current);
+ if (!e || !e.head || e.getElementById(oa)) return;
let t = e.createElement("style");
- t.id = Lr;
- let n = jr(e);
+ t.id = oa;
+ let n = U(e);
n && (t.nonce = n), t.textContent = `
@layer {
- [${Rr}] {
+ [${sa}] {
touch-action: pan-x pan-y pinch-zoom;
}
}
`.trim(), e.head.prepend(t);
- }, [f]), (0, w.useEffect)(() => {
+ }, [f]), (0, _.useEffect)(() => {
let e = g.current;
return () => {
- d || Or(e.target ?? void 0);
+ d || Qi(e.target ?? void 0);
for (let t of e.disposables) t();
e.disposables = [];
};
}, [d]), {
isPressed: c || m,
- pressProps: B(p, k, { [Rr]: !0 })
+ pressProps: V(p, k, { [sa]: !0 })
};
}
-function Br(e) {
+function la(e) {
return e.tagName === "A" && e.hasAttribute("href");
}
-function Vr(e, t) {
+function ua(e, t) {
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
- return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof M(i).HTMLInputElement && !Kr(i, n) || i instanceof M(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && Br(i)) && n !== "Enter");
+ return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof xt(i).HTMLInputElement && !ha(i, n) || i instanceof xt(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && la(i)) && n !== "Enter");
}
-function Hr(e, t) {
+function da(e, t) {
let n = t.clientX, r = t.clientY;
return {
currentTarget: e,
@@ -2429,13 +4027,13 @@ function Hr(e, t) {
key: t.key
};
}
-function Ur(e) {
- return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Br(e);
+function fa(e) {
+ return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !la(e);
}
-function Wr(e, t) {
- return Ee() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !Kr(e, t) : Ur(e);
+function pa(e, t) {
+ return Xt() && t === "Enter" ? !1 : e instanceof HTMLInputElement ? t === "Enter" && (e.type === "checkbox" || e.type === "radio") ? !1 : !ha(e, t) : fa(e);
}
-var Gr = /* @__PURE__ */ new Set([
+var ma = /* @__PURE__ */ new Set([
"checkbox",
"radio",
"range",
@@ -2446,12 +4044,12 @@ var Gr = /* @__PURE__ */ new Set([
"submit",
"reset"
]);
-function Kr(e, t) {
- return e.type === "checkbox" || e.type === "radio" ? t === " " : Gr.has(e.type);
+function ha(e, t) {
+ return e.type === "checkbox" || e.type === "radio" ? t === " " : ma.has(e.type);
}
//#endregion
//#region node_modules/react-aria/dist/private/button/useButton.mjs
-function qr(e, t) {
+function ga(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,
@@ -2473,7 +4071,7 @@ function qr(e, t) {
"aria-disabled": !r || n === "input" ? void 0 : r,
rel: n === "a" ? m : void 0
};
- let { pressProps: _, isPressed: v } = zr({
+ let { pressProps: _, isPressed: v } = ca({
onPressStart: a,
onPressEnd: o,
onPressChange: c,
@@ -2483,12 +4081,12 @@ function qr(e, t) {
isDisabled: r,
preventFocusOnPress: l,
ref: t
- }), { focusableProps: y } = sn(e, t);
+ }), { focusableProps: y } = Mr(e, t);
u && (y.tabIndex = r ? -1 : y.tabIndex);
- let b = B(y, _, Cr(e, { labelable: !0 }));
+ let b = V(y, _, H(e, { labelable: !0 }));
return {
isPressed: v,
- buttonProps: B(g, b, {
+ buttonProps: V(g, b, {
"aria-haspopup": e["aria-haspopup"],
"aria-expanded": e["aria-expanded"],
"aria-controls": e["aria-controls"],
@@ -2500,7 +4098,7 @@ function qr(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/shadowdom/ShadowTreeWalker.mjs
-var Jr = class {
+var _a = class {
constructor(e, t, n, r) {
this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (e) => {
if (e.nodeType === Node.ELEMENT_NODE) {
@@ -2525,7 +4123,7 @@ var Jr = class {
return this._currentNode;
}
set currentNode(e) {
- if (!F(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
+ if (!L(this.root, e)) throw Error("Cannot set currentNode to a node that is not contained by the root node.");
let t = [], n = e, r = e;
for (this._currentNode = e; n && n !== this.root;) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
let e = n, i = this._doc.createTreeWalker(e, this.whatToShow, { acceptNode: this._acceptNode });
@@ -2539,7 +4137,7 @@ var Jr = class {
}
firstChild() {
let e = this.currentNode, t = this.nextNode();
- return F(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
+ return L(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
}
lastChild() {
let e = this._walkerStack[0].lastChild();
@@ -2603,141 +4201,141 @@ var Jr = class {
return null;
}
};
-function Yr(e, t, n, r) {
- return P() ? new Jr(e, t, n, r) : e.createTreeWalker(t, n, r);
+function va(e, t, n, r) {
+ return kt() ? new _a(e, t, n, r) : e.createTreeWalker(t, n, r);
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/FocusScope.mjs
-var Xr = /*#__PURE__*/ w.createContext(null), Zr = "react-aria-focus-scope-restore", H = null;
-function Qr(e) {
- let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, w.useRef)(null), o = (0, w.useRef)(null), s = (0, w.useRef)([]), { parentNode: c } = (0, w.useContext)(Xr) || {}, l = (0, w.useMemo)(() => new bi({ scopeRef: s }), [s]);
+var ya = /*#__PURE__*/ _.createContext(null), ba = "react-aria-focus-scope-restore", W = null;
+function xa(e) {
+ let { children: t, contain: n, restoreFocus: r, autoFocus: i } = e, a = (0, _.useRef)(null), o = (0, _.useRef)(null), s = (0, _.useRef)([]), { parentNode: c } = (0, _.useContext)(ya) || {}, l = (0, _.useMemo)(() => new Ua({ scopeRef: s }), [s]);
z(() => {
- let e = c || xi.root;
- if (xi.getTreeNode(e.scopeRef) && H && !li(H, e.scopeRef)) {
- let t = xi.getTreeNode(H);
+ let e = c || Wa.root;
+ if (Wa.getTreeNode(e.scopeRef) && W && !Ma(W, e.scopeRef)) {
+ let t = Wa.getTreeNode(W);
t && (e = t);
}
- e.addChild(l), xi.addNode(l);
+ e.addChild(l), Wa.addNode(l);
}, [l, c]), z(() => {
- let e = xi.getTreeNode(s);
+ let e = Wa.getTreeNode(s);
e && (e.contain = !!n);
}, [n]), z(() => {
let e = a.current?.nextSibling, t = [], n = (e) => e.stopPropagation();
- for (; e && e !== o.current;) t.push(e), e.addEventListener(Zr, n), e = e.nextSibling;
+ for (; e && e !== o.current;) t.push(e), e.addEventListener(ba, n), e = e.nextSibling;
return s.current = t, () => {
- for (let e of t) e.removeEventListener(Zr, n);
+ for (let e of t) e.removeEventListener(ba, n);
};
- }, [t]), mi(s, r, n), ii(s, n), gi(s, r, n), pi(s, i), (0, w.useEffect)(() => {
- let e = se(j(s.current ? s.current[0] : void 0)), t = null;
- if (oi(e, s.current)) {
- for (let n of xi.traverse()) n.scopeRef && oi(e, n.scopeRef.current) && (t = n);
- t === xi.getTreeNode(s) && (H = t.scopeRef);
+ }, [t]), La(s, r, n), Da(s, n), za(s, r, n), Ia(s, i), (0, _.useEffect)(() => {
+ let e = At(I(s.current ? s.current[0] : void 0)), t = null;
+ if (ka(e, s.current)) {
+ for (let n of Wa.traverse()) n.scopeRef && ka(e, n.scopeRef.current) && (t = n);
+ t === Wa.getTreeNode(s) && (W = t.scopeRef);
}
}, [s]), z(() => () => {
- let e = xi.getTreeNode(s)?.parent?.scopeRef ?? null;
- (s === H || li(s, H)) && (!e || xi.getTreeNode(e)) && (H = e), xi.removeTreeNode(s);
+ let e = Wa.getTreeNode(s)?.parent?.scopeRef ?? null;
+ (s === W || Ma(s, W)) && (!e || Wa.getTreeNode(e)) && (W = e), Wa.removeTreeNode(s);
}, [s]);
- let u = (0, w.useMemo)(() => $r(s), []), d = (0, w.useMemo)(() => ({
+ let u = (0, _.useMemo)(() => Sa(s), []), d = (0, _.useMemo)(() => ({
focusManager: u,
parentNode: l
}), [l, u]);
- return /*#__PURE__*/ w.createElement(Xr.Provider, { value: d }, /*#__PURE__*/ w.createElement("span", {
+ return /*#__PURE__*/ _.createElement(ya.Provider, { value: d }, /*#__PURE__*/ _.createElement("span", {
"data-focus-scope-start": !0,
hidden: !0,
ref: a
- }), t, /*#__PURE__*/ w.createElement("span", {
+ }), t, /*#__PURE__*/ _.createElement("span", {
"data-focus-scope-end": !0,
hidden: !0,
ref: o
}));
}
-function $r(e) {
+function Sa(e) {
return {
focusNext(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || se(j(n[0] ?? void 0)), c = n[0].previousElementSibling, l = vi(ei(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || At(I(n[0] ?? void 0)), c = n[0].previousElementSibling, l = Va(Ca(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = oi(s, n) ? s : c;
+ l.currentNode = ka(s, n) ? s : c;
let u = l.nextNode();
- return !u && a && (l.currentNode = c, u = l.nextNode()), u && ui(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.nextNode()), u && Na(u, !0), u;
},
focusPrevious(t = {}) {
- let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || se(j(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = vi(ei(n), {
+ let n = e.current, { from: r, tabbable: i, wrap: a, accept: o } = t, s = r || At(I(n[0] ?? void 0)), c = n[n.length - 1].nextElementSibling, l = Va(Ca(n), {
tabbable: i,
accept: o
}, n);
- l.currentNode = oi(s, n) ? s : c;
+ l.currentNode = ka(s, n) ? s : c;
let u = l.previousNode();
- return !u && a && (l.currentNode = c, u = l.previousNode()), u && ui(u, !0), u;
+ return !u && a && (l.currentNode = c, u = l.previousNode()), u && Na(u, !0), u;
},
focusFirst(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = vi(ei(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Va(Ca(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[0].previousElementSibling;
let o = a.nextNode();
- return o && ui(o, !0), o;
+ return o && Na(o, !0), o;
},
focusLast(t = {}) {
- let n = e.current, { tabbable: r, accept: i } = t, a = vi(ei(n), {
+ let n = e.current, { tabbable: r, accept: i } = t, a = Va(Ca(n), {
tabbable: r,
accept: i
}, n);
a.currentNode = n[n.length - 1].nextElementSibling;
let o = a.previousNode();
- return o && ui(o, !0), o;
+ return o && Na(o, !0), o;
}
};
}
-function ei(e) {
+function Ca(e) {
return e[0].parentElement;
}
-function ti(e) {
- let t = xi.getTreeNode(H);
+function wa(e) {
+ let t = Wa.getTreeNode(W);
for (; t && t.scopeRef !== e;) {
if (t.contain) return !1;
t = t.parent;
}
return !0;
}
-function ni(e) {
- if (!e.form) return Array.from(j(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
- let t = e.form.elements.namedItem(e.name), n = M(e);
+function Ta(e) {
+ if (!e.form) return Array.from(I(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((e) => !e.form);
+ let t = e.form.elements.namedItem(e.name), n = xt(e);
return t instanceof n.RadioNodeList ? Array.from(t).filter((e) => e instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [t] : [];
}
-function ri(e) {
+function Ea(e) {
if (e.checked) return !0;
- let t = ni(e);
+ let t = Ta(e);
return t.length > 0 && !t.some((e) => e.checked);
}
-function ii(e, t) {
- let n = (0, w.useRef)(void 0), r = (0, w.useRef)(void 0);
+function Da(e, t) {
+ let n = (0, _.useRef)(void 0), r = (0, _.useRef)(void 0);
z(() => {
let i = e.current;
if (!t) {
r.current &&= (cancelAnimationFrame(r.current), void 0);
return;
}
- let a = j(i ? i[0] : void 0), o = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ti(e) || t.isComposing) return;
- let n = se(a), r = e.current;
- if (!r || !oi(n, r)) return;
- let i = vi(ei(r), { tabbable: !0 }, r);
+ let a = I(i ? i[0] : void 0), o = (t) => {
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !wa(e) || t.isComposing) return;
+ let n = At(a), r = e.current;
+ if (!r || !ka(n, r)) return;
+ let i = Va(Ca(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 && (ui(o, !0), o instanceof M(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 && (Na(o, !0), o instanceof xt(o).HTMLInputElement && o.select());
}, s = (t) => {
- (!H || li(H, e)) && oi(I(t), e.current) ? (H = e, n.current = I(t)) : ti(e) && !si(I(t), e) ? n.current ? ui(n.current) : H && H.current && fi(H.current) : ti(e) && (n.current = I(t));
+ (!W || Ma(W, e)) && ka(R(t), e.current) ? (W = e, n.current = R(t)) : wa(e) && !Aa(R(t), e) ? n.current ? Na(n.current) : W && W.current && Fa(W.current) : wa(e) && (n.current = R(t));
}, c = (t) => {
r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
- let r = vt(), i = (r === "virtual" || r === null) && Ne() && Me(), o = se(a);
- if (!i && o && ti(e) && !si(o, e)) {
- H = e;
- let r = I(t);
- r && r.isConnected ? (n.current = r, ui(n.current)) : H.current && fi(H.current);
+ let r = Un(), i = (r === "virtual" || r === null) && rn() && nn(), o = At(a);
+ if (!i && o && wa(e) && !Aa(o, e)) {
+ W = e;
+ let r = R(t);
+ r && r.isConnected ? (n.current = r, Na(n.current)) : W.current && Fa(W.current);
}
});
};
@@ -2748,57 +4346,57 @@ function ii(e, t) {
r.current && cancelAnimationFrame(r.current);
}, [r]);
}
-function ai(e) {
- return si(e);
+function Oa(e) {
+ return Aa(e);
}
-function oi(e, t) {
- return !e || !t ? !1 : t.some((t) => F(t, e));
+function ka(e, t) {
+ return !e || !t ? !1 : t.some((t) => L(t, e));
}
-function si(e, t = null) {
+function Aa(e, t = null) {
if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
- for (let { scopeRef: n } of xi.traverse(xi.getTreeNode(t))) if (n && oi(e, n.current)) return !0;
+ for (let { scopeRef: n } of Wa.traverse(Wa.getTreeNode(t))) if (n && ka(e, n.current)) return !0;
return !1;
}
-function ci(e) {
- return si(e, H);
+function ja(e) {
+ return Aa(e, W);
}
-function li(e, t) {
- let n = xi.getTreeNode(t)?.parent;
+function Ma(e, t) {
+ let n = Wa.getTreeNode(t)?.parent;
for (; n;) {
if (n.scopeRef === e) return !0;
n = n.parent;
}
return !1;
}
-function ui(e, t = !1) {
+function Na(e, t = !1) {
if (e != null && !t) try {
- Ot(e);
+ $n(e);
} catch {}
else if (e != null) try {
e.focus();
} catch {}
}
-function di(e, t = !0) {
- let n = e[0].previousElementSibling, r = ei(e), i = vi(r, { tabbable: t }, e);
+function Pa(e, t = !0) {
+ let n = e[0].previousElementSibling, r = Ca(e), i = Va(r, { tabbable: t }, e);
i.currentNode = n;
let a = i.nextNode();
- return t && !a && (r = ei(e), i = vi(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
+ return t && !a && (r = Ca(e), i = Va(r, { tabbable: !1 }, e), i.currentNode = n, a = i.nextNode()), a;
}
-function fi(e, t = !0) {
- ui(di(e, t));
+function Fa(e, t = !0) {
+ Na(Pa(e, t));
}
-function pi(e, t) {
- let n = w.useRef(t);
- (0, w.useEffect)(() => {
- n.current && (H = e, !oi(se(j(e.current ? e.current[0] : void 0)), H.current) && e.current && fi(e.current)), n.current = !1;
+function Ia(e, t) {
+ let n = _.useRef(t);
+ (0, _.useEffect)(() => {
+ n.current && (W = e, !ka(At(I(e.current ? e.current[0] : void 0)), W.current) && e.current && Fa(e.current)), n.current = !1;
}, [e]);
}
-function mi(e, t, n) {
+function La(e, t, n) {
z(() => {
if (t || n) return;
- let r = e.current, i = j(r ? r[0] : void 0), a = (t) => {
- let n = I(t);
- oi(n, e.current) ? H = e : ai(n) || (H = null);
+ let r = e.current, i = I(r ? r[0] : void 0), a = (t) => {
+ let n = R(t);
+ ka(n, e.current) ? W = e : Oa(n) || (W = 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));
@@ -2809,43 +4407,43 @@ function mi(e, t, n) {
n
]);
}
-function hi(e) {
- let t = xi.getTreeNode(H);
+function Ra(e) {
+ let t = Wa.getTreeNode(W);
for (; t && t.scopeRef !== e;) {
if (t.nodeToRestore) return !1;
t = t.parent;
}
return t?.scopeRef === e;
}
-function gi(e, t, n) {
- let r = (0, w.useRef)(typeof document < "u" ? se(j(e.current ? e.current[0] : void 0)) : null);
+function za(e, t, n) {
+ let r = (0, _.useRef)(typeof document < "u" ? At(I(e.current ? e.current[0] : void 0)) : null);
z(() => {
- let r = e.current, i = j(r ? r[0] : void 0);
+ let r = e.current, i = I(r ? r[0] : void 0);
if (!t || n) return;
let a = () => {
- (!H || li(H, e)) && oi(se(i), e.current) && (H = e);
+ (!W || Ma(W, e)) && ka(At(i), e.current) && (W = e);
};
return i.addEventListener("focusin", a, !1), r?.forEach((e) => e.addEventListener("focusin", a, !1)), () => {
i.removeEventListener("focusin", a, !1), r?.forEach((e) => e.removeEventListener("focusin", a, !1));
};
}, [e, n]), z(() => {
- let r = j(e.current ? e.current[0] : void 0);
+ let r = I(e.current ? e.current[0] : void 0);
if (!t) return;
let i = (t) => {
- if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !ti(e) || t.isComposing) return;
+ if (t.key !== "Tab" || t.altKey || t.ctrlKey || t.metaKey || !wa(e) || t.isComposing) return;
let n = r.activeElement;
- if (!si(n, e) || !hi(e)) return;
- let i = xi.getTreeNode(e);
+ if (!Aa(n, e) || !Ra(e)) return;
+ let i = Wa.getTreeNode(e);
if (!i) return;
- let a = i.nodeToRestore, o = vi(r.body, { tabbable: !0 });
+ let a = i.nodeToRestore, o = Va(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 || !si(s, e)) && a) {
+ if ((!a || !a.isConnected || a === r.body) && (a = void 0, i.nodeToRestore = void 0), (!s || !Aa(s, e)) && a) {
o.currentNode = a;
do
s = t.shiftKey ? o.previousNode() : o.nextNode();
- while (si(s, e));
- t.preventDefault(), t.stopPropagation(), s ? ui(s, !0) : ai(a) ? ui(a, !0) : n.blur();
+ while (Aa(s, e));
+ t.preventDefault(), t.stopPropagation(), s ? Na(s, !0) : Oa(a) ? Na(a, !0) : n.blur();
}
};
return n || r.addEventListener("keydown", i, !0), () => {
@@ -2856,30 +4454,30 @@ function gi(e, t, n) {
t,
n
]), z(() => {
- let n = j(e.current ? e.current[0] : void 0);
+ let n = I(e.current ? e.current[0] : void 0);
if (!t) return;
- let i = xi.getTreeNode(e);
+ let i = Wa.getTreeNode(e);
if (i) return i.nodeToRestore = r.current ?? void 0, () => {
- let r = xi.getTreeNode(e);
+ let r = Wa.getTreeNode(e);
if (!r) return;
- let i = r.nodeToRestore, a = se(n);
- if (t && i && (a && si(a, e) || a === n.body && hi(e))) {
- let t = xi.clone();
+ let i = r.nodeToRestore, a = At(n);
+ if (t && i && (a && Aa(a, e) || a === n.body && Ra(e))) {
+ let t = Wa.clone();
requestAnimationFrame(() => {
if (n.activeElement === n.body) {
let n = t.getTreeNode(e);
for (; n;) {
if (n.nodeToRestore && n.nodeToRestore.isConnected) {
- _i(n.nodeToRestore);
+ Ba(n.nodeToRestore);
return;
}
n = n.parent;
}
for (n = t.getTreeNode(e); n;) {
- if (n.scopeRef && n.scopeRef.current && xi.getTreeNode(n.scopeRef)) {
- let e = di(n.scopeRef.current, !0);
+ if (n.scopeRef && n.scopeRef.current && Wa.getTreeNode(n.scopeRef)) {
+ let e = Pa(n.scopeRef.current, !0);
if (e) {
- _i(e);
+ Ba(e);
return;
}
}
@@ -2891,21 +4489,21 @@ function gi(e, t, n) {
};
}, [e, t]);
}
-function _i(e) {
- e.dispatchEvent(new CustomEvent(Zr, {
+function Ba(e) {
+ e.dispatchEvent(new CustomEvent(ba, {
bubbles: !0,
cancelable: !0
- })) && ui(e);
+ })) && Na(e);
}
-function vi(e, t, n) {
- let r = t?.tabbable ? ge : he, i = j(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = Yr(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
- return F(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!ri(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || oi(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
+function Va(e, t, n) {
+ let r = t?.tabbable ? Vt : Bt, i = I(e?.nodeType === Node.ELEMENT_NODE ? e : null), a = va(i, e || i, NodeFilter.SHOW_ELEMENT, { acceptNode(e) {
+ return L(t?.from, e) || t?.tabbable && e.tagName === "INPUT" && e.getAttribute("type") === "radio" && (!Ea(e) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === e.name) ? NodeFilter.FILTER_REJECT : r(e) && (!n || ka(e, n)) && (!t?.accept || t.accept(e)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
} });
return t?.from && (a.currentNode = t.from), a;
}
-var yi = class e {
+var Ha = class e {
constructor() {
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new bi({ scopeRef: null }), this.fastMap.set(null, this.root);
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ua({ scopeRef: null }), this.fastMap.set(null, this.root);
}
get size() {
return this.fastMap.size;
@@ -2916,7 +4514,7 @@ var yi = class e {
addTreeNode(e, t, n) {
let r = this.fastMap.get(t ?? null);
if (!r) return;
- let i = new bi({ scopeRef: e });
+ let i = new Ua({ scopeRef: e });
r.addChild(i), i.parent = r, this.fastMap.set(e, i), n && (i.nodeToRestore = n);
}
addNode(e) {
@@ -2927,7 +4525,7 @@ var yi = 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 && oi(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 && ka(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);
}
@@ -2939,7 +4537,7 @@ var yi = class e {
for (let e of this.traverse()) t.addTreeNode(e.scopeRef, e.parent?.scopeRef ?? null, e.nodeToRestore);
return t;
}
-}, bi = class {
+}, Ua = class {
constructor(e) {
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
}
@@ -2949,13 +4547,13 @@ var yi = class e {
removeChild(e) {
this.children.delete(e), e.parent = void 0;
}
-}, xi = new yi(), Si = 7e3, Ci = null;
-function wi(e, t = "assertive", n = Si) {
- Ci ? Ci.announce(e, t, n) : (Ci = new Ti(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ci.announce(e, t, n) : setTimeout(() => {
- Ci?.isAttached() && Ci?.announce(e, t, n);
+}, Wa = new Ha(), Ga = 7e3, Ka = null;
+function qa(e, t = "assertive", n = Ga) {
+ Ka ? Ka.announce(e, t, n) : (Ka = new Ja(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? Ka.announce(e, t, n) : setTimeout(() => {
+ Ka?.isAttached() && Ka?.announce(e, t, n);
}, 100));
}
-var Ti = class {
+var Ja = 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,
@@ -2980,7 +4578,7 @@ var Ti = class {
destroy() {
this.node &&= (document.body.removeChild(this.node), null);
}
- announce(e, t = "assertive", n = Si) {
+ announce(e, t = "assertive", n = Ga) {
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(() => {
@@ -2993,46 +4591,46 @@ var Ti = class {
};
//#endregion
//#region node_modules/react-aria/dist/private/utils/isScrollable.mjs
-function Ei(e, t) {
+function Ya(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 Di(e, t) {
+function Xa(e, t) {
let n = e;
- for (Ei(n, t) && (n = n.parentElement); n && !Ei(n, t);) n = n.parentElement;
+ for (Ya(n, t) && (n = n.parentElement); n && !Ya(n, t);) n = n.parentElement;
return n || document.scrollingElement || document.documentElement;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/getScrollParents.mjs
-function Oi(e, t) {
+function Za(e, t) {
let n = [], r = document.scrollingElement || document.documentElement;
- for (; e && (Ei(e, t) && n.push(e), e !== r);) e = e.parentElement;
+ for (; e && (Ya(e, t) && n.push(e), e !== r);) e = e.parentElement;
return n;
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/scrollIntoView.mjs
-function ki(e, t, n = {}) {
- e !== t && Ai(e, t, t.getBoundingClientRect(), n);
-}
-function Ai(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, ee = parseFloat(u.borderBottomWidth) || 0, E = parseFloat(u.borderLeftWidth) || 0, D = parseFloat(u.borderRightWidth) || 0, O = n.top - _, k = n.bottom + v, A = n.left - y, j = n.right + b, M = e === d ? 0 : E + D, te = e === d ? 0 : T + ee, ne = e === d ? 0 : e.offsetWidth - e.clientWidth - M, N = e === d ? 0 : e.offsetHeight - e.clientHeight - te, re = p + (f ? 0 : T) + x, ie = m - (f ? 0 : ee) - S - N, ae = h + (f ? 0 : E) + C, oe = g - (f ? 0 : D) - w;
- ke() && je() || u.direction === "ltr" ? oe -= ne : u.direction === "rtl" && (ae += ne);
- let P = O < re || k > ie, F = A < ae || j > oe;
- if (P && i === "start") o += O - re;
- else if (P && i === "center") o += (O + k) / 2 - (re + ie) / 2;
- else if (P && i === "end") o += k - ie;
- else if (P && i === "nearest") {
- let e = O - re, t = k - ie;
+function Qa(e, t, n = {}) {
+ e !== t && $a(e, t, t.getBoundingClientRect(), n);
+}
+function $a(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, ee = n.left - y, j = n.right + b, te = e === d ? 0 : D + O, ne = e === d ? 0 : T + E, re = e === d ? 0 : e.offsetWidth - e.clientWidth - te, M = e === d ? 0 : e.offsetHeight - e.clientHeight - ne, ie = p + (f ? 0 : T) + x, ae = m - (f ? 0 : E) - S - M, oe = h + (f ? 0 : D) + C, se = g - (f ? 0 : O) - w;
+ $t() && tn() || u.direction === "ltr" ? se -= re : u.direction === "rtl" && (oe += re);
+ let ce = k < ie || A > ae, le = ee < oe || j > se;
+ if (ce && i === "start") o += k - ie;
+ else if (ce && i === "center") o += (k + A) / 2 - (ie + ae) / 2;
+ else if (ce && i === "end") o += A - ae;
+ else if (ce && i === "nearest") {
+ let e = k - ie, t = A - ae;
o += Math.abs(e) <= Math.abs(t) ? e : t;
}
- if (F && a === "start") s += A - ae;
- else if (F && a === "center") s += (A + j) / 2 - (ae + oe) / 2;
- else if (F && a === "end") s += j - oe;
- else if (F && a === "nearest") {
- let e = A - ae, t = j - oe;
+ if (le && a === "start") s += ee - oe;
+ else if (le && a === "center") s += (ee + j) / 2 - (oe + se) / 2;
+ else if (le && a === "end") s += j - se;
+ else if (le && a === "nearest") {
+ let e = ee - oe, t = j - se;
s += Math.abs(e) <= Math.abs(t) ? e : t;
}
e.scrollTo({
@@ -3040,7 +4638,7 @@ function Ai(e, t, n, r = {}) {
top: o
});
}
-function ji(e, t = {}) {
+function eo(e, t = {}) {
let { containingElement: n } = t;
if (e && e.isConnected) {
let t = document.scrollingElement || document.documentElement;
@@ -3053,50 +4651,50 @@ function ji(e, t = {}) {
inline: "center"
}), e.scrollIntoView?.({ block: "nearest" }));
} else {
- let { left: t, top: r } = e.getBoundingClientRect(), i = Oi(e, !0);
- for (let t of i) ki(t, e);
+ let { left: t, top: r } = e.getBoundingClientRect(), i = Za(e, !0);
+ for (let t of i) Qa(t, e);
let { left: a, top: o } = e.getBoundingClientRect();
if (Math.abs(t - a) > 1 || Math.abs(r - o) > 1) {
- i = n ? Oi(n, !0) : [];
- for (let e of i) ki(e, n, {
+ i = n ? Za(n, !0) : [];
+ for (let e of i) Qa(e, n, {
block: "center",
inline: "center"
});
- for (let t of Oi(e, !0)) ki(t, e);
+ for (let t of Za(e, !0)) Qa(t, e);
}
}
}
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useDescription.mjs
-var Mi = 0, Ni = /* @__PURE__ */ new Map();
-function Pi(e) {
- let [t, n] = (0, w.useState)();
+var to = 0, no = /* @__PURE__ */ new Map();
+function ro(e) {
+ let [t, n] = (0, _.useState)();
return z(() => {
if (!e) return;
- let t = Ni.get(e);
+ let t = no.get(e);
if (t) n(t.element.id);
else {
- let r = `react-aria-description-${Mi++}`;
+ let r = `react-aria-description-${to++}`;
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
- }, Ni.set(e, t);
+ }, no.set(e, t);
}
return t.refCount++, () => {
- t && --t.refCount === 0 && (t.element.remove(), Ni.delete(e));
+ t && --t.refCount === 0 && (t.element.remove(), no.delete(e));
};
}, [e]), { "aria-describedby": e ? t : void 0 };
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useFormReset.mjs
-function Fi(e, t, n) {
- let r = Un((e) => {
+function io(e, t, n) {
+ let r = mi((e) => {
n && !e.defaultPrevented && n(t);
});
- (0, w.useEffect)(() => {
+ (0, _.useEffect)(() => {
let t = e?.current?.form;
return t?.addEventListener("reset", r), () => {
t?.removeEventListener("reset", r);
@@ -3105,35 +4703,35 @@ function Fi(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/form/useFormValidation.mjs
-function Ii(e, t, n) {
+function ao(e, t, n) {
let { validationBehavior: r, focus: i } = e;
z(() => {
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(Ri(n.current));
+ n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(so(n.current));
}
});
- let a = (0, w.useRef)(!1), o = Un(() => {
+ let a = (0, _.useRef)(!1), o = mi(() => {
a.current || t.resetValidation();
- }), s = Un((e) => {
+ }), s = mi((e) => {
t.displayValidation.isInvalid || t.commitValidation();
let r = n?.current?.form;
- !e.defaultPrevented && n && r && zi(r) === n.current && (i ? i() : n.current?.focus(), yt("keyboard")), e.preventDefault();
- }), c = Un(() => {
+ !e.defaultPrevented && n && r && co(r) === n.current && (i ? i() : n.current?.focus(), Wn("keyboard")), e.preventDefault();
+ }), c = mi(() => {
t.commitValidation();
});
- (0, w.useEffect)(() => {
+ (0, _.useEffect)(() => {
let e = n?.current;
if (!e) return;
let t = e.form, r = t?.reset;
return t && (t.reset = () => {
- a.current = !window.event || window.event.type === "message" && I(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
+ a.current = !window.event || window.event.type === "message" && R(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
};
}, [n, r]);
}
-function Li(e) {
+function oo(e) {
let t = e.validity;
return {
badInput: t.badInput,
@@ -3149,14 +4747,14 @@ function Li(e) {
valid: t.valid
};
}
-function Ri(e) {
+function so(e) {
return {
isInvalid: !e.validity.valid,
- validationDetails: Li(e),
+ validationDetails: oo(e),
validationErrors: e.validationMessage ? [e.validationMessage] : []
};
}
-function zi(e) {
+function co(e) {
for (let t = 0; t < e.elements.length; t++) {
let n = e.elements[t];
if (n.validity?.valid === !1) return n;
@@ -3165,16 +4763,16 @@ function zi(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useSlot.mjs
-function Bi(e = !0) {
- let [t, n] = (0, w.useState)(e), r = (0, w.useRef)(!1), i = (0, w.useCallback)((e) => {
+function lo(e = !0) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(!1), i = (0, _.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
return z(() => {
r.current || n(!1);
}, []), [i, t];
}
-function Vi(e = !0) {
- let t = Ft(), [n, r] = Bi(e);
+function uo(e = !0) {
+ let t = or(), [n, r] = lo(e);
return {
id: r ? t : void 0,
ref: n
@@ -3182,7 +4780,7 @@ function Vi(e = !0) {
}
//#endregion
//#region node_modules/react-stately/dist/private/form/useFormValidationState.mjs
-var Hi = {
+var fo = {
badInput: !1,
customError: !1,
patternMismatch: !1,
@@ -3194,18 +4792,18 @@ var Hi = {
typeMismatch: !1,
valueMissing: !1,
valid: !0
-}, Ui = {
- ...Hi,
+}, po = {
+ ...fo,
customError: !0,
valid: !1
-}, Wi = {
+}, mo = {
isInvalid: !1,
- validationDetails: Hi,
+ validationDetails: fo,
validationErrors: []
-}, Gi = (0, w.createContext)({}), Ki = "__reactAriaFormValidationState";
-function qi(e) {
+}, ho = (0, _.createContext)({}), go = "__reactAriaFormValidationState";
+function _o(e) {
if (e.__reactAriaFormValidationState) {
- let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Ki];
+ let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[go];
return {
realtimeValidation: t,
displayValidation: n,
@@ -3214,127 +4812,127 @@ function qi(e) {
commitValidation: a
};
}
- return Ji(e);
+ return vo(e);
}
-function Ji(e) {
+function vo(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: Ui
- }, l = (0, w.useMemo)(() => !o || i == null ? null : Zi(Xi(o, i)), [o, i]);
+ validationDetails: po
+ }, l = (0, _.useMemo)(() => !o || i == null ? null : xo(bo(o, i)), [o, i]);
a?.validationDetails.valid && (a = void 0);
- let u = (0, w.useContext)(Gi), d = (0, w.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => Yi(u[e])) : Yi(u[r]) : [], [u, r]), [f, p] = (0, w.useState)(u), [m, h] = (0, w.useState)(!1);
+ let u = (0, _.useContext)(ho), d = (0, _.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => yo(u[e])) : yo(u[r]) : [], [u, r]), [f, p] = (0, _.useState)(u), [m, h] = (0, _.useState)(!1);
u !== f && (p(u), h(!1));
- let g = (0, w.useMemo)(() => Zi(m ? [] : d), [m, d]), _ = (0, w.useRef)(Wi), [v, y] = (0, w.useState)(Wi), b = (0, w.useRef)(Wi), x = () => {
- if (!S) return;
- C(!1);
- let e = l || a || _.current;
- Qi(e, b.current) || (b.current = e, y(e));
- }, [S, C] = (0, w.useState)(!1);
- return (0, w.useEffect)(x), {
- realtimeValidation: c || g || l || a || Wi,
- displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
+ let g = (0, _.useMemo)(() => xo(m ? [] : d), [m, d]), v = (0, _.useRef)(mo), [y, b] = (0, _.useState)(mo), x = (0, _.useRef)(mo), S = () => {
+ if (!C) return;
+ w(!1);
+ let e = l || a || v.current;
+ So(e, x.current) || (x.current = e, b(e));
+ }, [C, w] = (0, _.useState)(!1);
+ return (0, _.useEffect)(S), {
+ realtimeValidation: c || g || l || a || mo,
+ displayValidation: s === "native" ? c || g || y : c || g || l || a || y,
updateValidation(e) {
- s === "aria" && !Qi(v, e) ? y(e) : _.current = e;
+ s === "aria" && !So(y, e) ? b(e) : v.current = e;
},
resetValidation() {
- let e = Wi;
- Qi(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
+ let e = mo;
+ So(e, x.current) || (x.current = e, b(e)), s === "native" && w(!1), h(!0);
},
commitValidation() {
- s === "native" && C(!0), h(!0);
+ s === "native" && w(!0), h(!0);
}
};
}
-function Yi(e) {
+function yo(e) {
return e ? Array.isArray(e) ? e : [e] : [];
}
-function Xi(e, t) {
+function bo(e, t) {
if (typeof e == "function") {
let n = e(t);
- if (n && typeof n != "boolean") return Yi(n);
+ if (n && typeof n != "boolean") return yo(n);
}
return [];
}
-function Zi(e) {
+function xo(e) {
return e.length ? {
isInvalid: !0,
validationErrors: e,
- validationDetails: Ui
+ validationDetails: po
} : null;
}
-function Qi(e, t) {
+function So(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 $i(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 = qi({
+function Co(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: v, onPressUp: y, onClick: b } = e, x = _o({
...e,
value: t.isSelected
- }), { isInvalid: x, validationErrors: S, validationDetails: C } = b.displayValidation;
- Ii(e, b, n);
+ }), { isInvalid: S, validationErrors: C, validationDetails: w } = x.displayValidation;
+ ao(e, x, n);
let T = (e) => {
- e.stopPropagation(), t.setSelected(I(e).checked);
- }, { pressProps: ee, isPressed: E } = zr({
+ e.stopPropagation(), t.setSelected(R(e).checked);
+ }, { pressProps: E, isPressed: D } = ca({
onPressStart: m,
onPressEnd: h,
onPressChange: g,
- onPress: _,
- onPressUp: v,
- onClick: y,
+ onPress: v,
+ onPressUp: y,
+ onClick: b,
isDisabled: r
- }), [D, O] = (0, w.useState)(!1), { pressProps: k } = zr({
+ }), [O, k] = (0, _.useState)(!1), { pressProps: A } = ca({
onPressStart(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
return;
}
- m?.(e), g?.(!0), O(!0);
+ m?.(e), g?.(!0), k(!0);
},
onPressEnd(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
return;
}
- h?.(e), g?.(!1), O(!1);
+ h?.(e), g?.(!1), k(!1);
},
onPressUp(e) {
if (e.pointerType === "keyboard" || e.pointerType === "virtual") {
e.continuePropagation();
return;
}
- v?.(e);
+ y?.(e);
},
- onClick: y,
+ onClick: b,
onPress(r) {
if (r.pointerType === "keyboard" || r.pointerType === "virtual") {
r.continuePropagation();
return;
}
- _?.(r), t.toggle(), n.current?.focus();
- let { [Ki]: i } = e, { commitValidation: a } = i || b;
+ v?.(r), t.toggle(), n.current?.focus();
+ let { [go]: i } = e, { commitValidation: a } = i || x;
a();
},
isDisabled: r || i
- }), { focusableProps: A } = sn(e, n), j = B(ee, A), M = Cr(e, { labelable: !0 });
- Fi(n, t.defaultSelected, t.setSelected);
- let te = Vi(), ne = Vi();
+ }), { focusableProps: ee } = Mr(e, n), j = V(E, ee), te = H(e, { labelable: !0 });
+ io(n, t.defaultSelected, t.setSelected);
+ let ne = uo(), re = uo();
return {
- labelProps: B(k, { onClick: (e) => e.preventDefault() }),
- inputProps: B(M, {
+ labelProps: V(A, { onClick: (e) => e.preventDefault() }),
+ inputProps: V(te, {
checked: t.isSelected,
"aria-required": l && u === "aria" || void 0,
required: l && u === "native",
- "aria-invalid": x || e.validationState === "invalid" || void 0,
+ "aria-invalid": S || e.validationState === "invalid" || void 0,
"aria-errormessage": e["aria-errormessage"],
"aria-controls": e["aria-controls"],
"aria-readonly": i || void 0,
"aria-describedby": [
- te.id,
ne.id,
+ re.id,
p
].filter(Boolean).join(" ") || void 0,
onChange: T,
@@ -3345,25 +4943,25 @@ function $i(e, t, n) {
type: "checkbox",
...j
}),
- descriptionProps: te,
- errorMessageProps: ne,
+ descriptionProps: ne,
+ errorMessageProps: re,
isSelected: t.isSelected,
- isPressed: E || D,
+ isPressed: D || O,
isDisabled: r,
isReadOnly: i,
- isInvalid: x || e.validationState === "invalid",
- validationErrors: S,
- validationDetails: C
+ isInvalid: S || e.validationState === "invalid",
+ validationErrors: C,
+ validationDetails: w
};
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckbox.mjs
-function ea(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 } = $i(e, t, n), { isIndeterminate: m } = e;
- return (0, w.useEffect)(() => {
+function wo(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 } = Co(e, t, n), { isIndeterminate: m } = e;
+ return (0, _.useEffect)(() => {
n.current && (n.current.indeterminate = !!m);
}), {
- labelProps: B(r, (0, w.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
+ labelProps: V(r, (0, _.useMemo)(() => ({ onMouseDown: (e) => e.preventDefault() }), [])),
inputProps: i,
descriptionProps: a,
errorMessageProps: o,
@@ -3378,18 +4976,18 @@ function ea(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/utils.mjs
-var U = /* @__PURE__ */ new WeakMap();
+var To = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/label/useLabel.mjs
-function ta(e) {
+function Eo(e) {
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
- t = Ft(t);
- let o = Ft(), s = {};
+ t = or(t);
+ let o = or(), s = {};
n && (r = r ? `${o} ${r}` : o, s = {
id: o,
htmlFor: a === "label" ? t : void 0
});
- let c = Gn({
+ let c = gi({
id: t,
"aria-label": i,
"aria-labelledby": r
@@ -3401,19 +4999,19 @@ function ta(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/label/useField.mjs
-function na(e) {
- let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = ta(e), s = Lt([
+function Do(e) {
+ let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Eo(e), s = cr([
!!t,
!!n,
r,
i
- ]), c = Lt([
+ ]), c = cr([
!!t,
!!n,
r,
i
]);
- return o = B(o, { "aria-describedby": [
+ return o = V(o, { "aria-describedby": [
s,
c,
e["aria-describedby"]
@@ -3426,26 +5024,26 @@ function na(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useFocusWithin.mjs
-function ra(e) {
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, w.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = Nr(), c = (0, w.useCallback)((e) => {
- F(e.currentTarget, I(e)) && a.current.isFocusWithin && !F(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
+function Oo(e) {
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, _.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = na(), c = (0, _.useCallback)((e) => {
+ L(e.currentTarget, R(e)) && a.current.isFocusWithin && !L(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
}, [
n,
i,
a,
s
- ]), l = be(c), u = (0, w.useCallback)((e) => {
- if (!F(e.currentTarget, I(e))) return;
- let t = I(e), n = j(t), s = se(n);
+ ]), l = Wt(c), u = (0, _.useCallback)((e) => {
+ if (!L(e.currentTarget, R(e))) return;
+ let t = R(e), n = I(t), s = At(n);
if (!a.current.isFocusWithin && s === t) {
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
let t = e.currentTarget;
o(n, "focus", (e) => {
- let r = I(e);
- if (a.current.isFocusWithin && !F(t, r)) {
+ let r = R(e);
+ if (a.current.isFocusWithin && !L(t, r)) {
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
- ye(e, t);
- let i = ve(e);
+ Ut(e, t);
+ let i = B(e);
c(i);
}
}, { capture: !0 });
@@ -3467,26 +5065,26 @@ function ra(e) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/useControlledState.mjs
-var ia = typeof document < "u" ? w.useInsertionEffect ?? w.useLayoutEffect : () => {};
-function aa(e, t, n) {
- let [r, i] = (0, w.useState)(e || t), a = (0, w.useRef)(r), o = (0, w.useRef)(e !== void 0), s = e !== void 0;
- (0, w.useEffect)(() => {
+var ko = typeof document < "u" ? _.useInsertionEffect ?? _.useLayoutEffect : () => {};
+function Ao(e, t, n) {
+ let [r, i] = (0, _.useState)(e || t), a = (0, _.useRef)(r), o = (0, _.useRef)(e !== void 0), s = e !== void 0;
+ (0, _.useEffect)(() => {
o.current, o.current = s;
}, [s]);
let c = s ? e : r;
- ia(() => {
+ ko(() => {
a.current = c;
});
- let [, l] = (0, w.useReducer)(() => ({}), {});
- return [c, (0, w.useCallback)((e, ...t) => {
+ let [, l] = (0, _.useReducer)(() => ({}), {});
+ return [c, (0, _.useCallback)((e, ...t) => {
let r = typeof e == "function" ? e(a.current) : e;
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
}, [n])];
}
//#endregion
//#region node_modules/react-stately/dist/private/toggle/useToggleState.mjs
-function oa(e = {}) {
- let { isReadOnly: t } = e, [n, r] = aa(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, w.useState)(n);
+function jo(e = {}) {
+ let { isReadOnly: t } = e, [n, r] = Ao(e.isSelected, e.defaultSelected || !1, e.onChange), [i] = (0, _.useState)(n);
function a(e) {
t || r(e);
}
@@ -3502,26 +5100,26 @@ function oa(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/checkbox/useCheckboxGroupItem.mjs
-function sa(e, t, n) {
- let r = oa({
+function Mo(e, t, n) {
+ let r = jo({
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 } = U.get(t);
+ }), { name: i, form: a, descriptionId: o, errorMessageId: s, validationBehavior: c } = To.get(t);
c = e.validationBehavior ?? c;
- let { realtimeValidation: l } = qi({
+ let { realtimeValidation: l } = _o({
...e,
value: r.isSelected,
name: void 0,
validationBehavior: "aria"
- }), u = (0, w.useRef)(Wi), d = () => {
+ }), u = (0, _.useRef)(mo), d = () => {
t.setInvalid(e.value, l.isInvalid ? l : u.current);
};
- (0, w.useEffect)(d);
- let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = ea({
+ (0, _.useEffect)(d);
+ let f = t.realtimeValidation.isInvalid ? t.realtimeValidation : l, p = c === "native" ? t.displayValidation : f, m = wo({
...e,
isReadOnly: e.isReadOnly || t.isReadOnly,
isDisabled: e.isDisabled || t.isDisabled,
@@ -3529,7 +5127,7 @@ function sa(e, t, n) {
form: e.form || a,
isRequired: e.isRequired ?? t.isRequired,
validationBehavior: c,
- [Ki]: {
+ [go]: {
realtimeValidation: f,
displayValidation: p,
resetValidation: t.resetValidation,
@@ -3553,12 +5151,12 @@ function sa(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/utils/number.mjs
-function ca(e, t = -Infinity, n = Infinity) {
+function No(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 la = {
+var Po = {
border: 0,
clip: "rect(0 0 0 0)",
clipPath: "inset(50%)",
@@ -3570,40 +5168,40 @@ var la = {
width: "1px",
whiteSpace: "nowrap"
};
-function ua(e = {}) {
- let { style: t, isFocusable: n } = e, [r, i] = (0, w.useState)(!1), { focusWithinProps: a } = ra({
+function Fo(e = {}) {
+ let { style: t, isFocusable: n } = e, [r, i] = (0, _.useState)(!1), { focusWithinProps: a } = Oo({
isDisabled: !n,
onFocusWithinChange: (e) => i(e)
- }), o = (0, w.useMemo)(() => r ? t : t ? {
- ...la,
+ }), o = (0, _.useMemo)(() => r ? t : t ? {
+ ...Po,
...t
- } : la, [r]);
+ } : Po, [r]);
return { visuallyHiddenProps: {
...a,
style: o
} };
}
-function da(e) {
- let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = ua(e);
- return /*#__PURE__*/ w.createElement(n, B(a, o), t);
+function Io(e) {
+ let { children: t, elementType: n = "div", isFocusable: r, style: i, ...a } = e, { visuallyHiddenProps: o } = Fo(e);
+ return /*#__PURE__*/ _.createElement(n, V(a, o), t);
}
//#endregion
//#region node_modules/react-aria/dist/private/textfield/useTextField.mjs
-function fa(e, t) {
- let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = aa(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = sn(e, t), d = qi({
+function Lo(e, t) {
+ let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Ao(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Mr(e, t), d = _o({
...e,
value: c
- }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = na({
+ }), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: v, errorMessageProps: y } = Do({
...e,
isInvalid: f,
errorMessage: e.errorMessage || p
- }), y = Cr(e, { labelable: !0 }), b = {
+ }), b = H(e, { labelable: !0 }), x = {
type: o,
pattern: e.pattern
- }, [x] = (0, w.useState)(c);
- return Fi(t, e.defaultValue ?? x, l), Ii(e, d, t), {
+ }, [S] = (0, _.useState)(c);
+ return io(t, e.defaultValue ?? S, l), ao(e, d, t), {
labelProps: h,
- inputProps: B(y, n === "input" ? b : void 0, {
+ inputProps: V(b, n === "input" ? x : void 0, {
disabled: r,
readOnly: a,
required: i && s === "native",
@@ -3615,7 +5213,7 @@ function fa(e, t) {
"aria-haspopup": e["aria-haspopup"],
"aria-controls": e["aria-controls"],
value: c,
- onChange: (e) => l(I(e).value),
+ onChange: (e) => l(R(e).value),
autoComplete: e.autoComplete,
autoCapitalize: e.autoCapitalize,
maxLength: e.maxLength,
@@ -3639,8 +5237,8 @@ function fa(e, t) {
...u,
...g
}),
- descriptionProps: _,
- errorMessageProps: v,
+ descriptionProps: v,
+ errorMessageProps: y,
isInvalid: f,
validationErrors: p,
validationDetails: m
@@ -3648,42 +5246,42 @@ function fa(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/ariaHideOutside.mjs
-var pa = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
-function ma(e) {
+var G = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
+function Ro(e) {
return e.dataset.liveAnnouncer === "true" || e.dataset.reactAriaTopLayer !== void 0;
}
-var ha = /* @__PURE__ */ new WeakMap(), ga = [];
-function _a(e, t) {
- let n = M(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && pa, 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 zo = /* @__PURE__ */ new WeakMap(), Bo = [];
+function Vo(e, t) {
+ let n = xt(e?.[0]), r = t instanceof n.Element ? { root: t } : t, i = r?.root ?? document.body, a = r?.shouldUseInert && G, 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 (P()) {
+ if (kt()) {
let t = i.getRootNode();
for (let n of e) {
let e = n.getRootNode();
- for (; re(e) && e !== t;) u.add(e), e = e.host.getRootNode();
+ for (; Tt(e) && e !== t;) u.add(e), e = e.host.getRootNode();
}
}
let d = (e) => {
for (let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) o.add(t);
let t = (e) => {
if (s.has(e) || o.has(e) || e.parentElement && s.has(e.parentElement) && e.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
- for (let t of o) if (F(e, t)) return NodeFilter.FILTER_SKIP;
+ for (let t of o) if (L(e, t)) return NodeFilter.FILTER_SKIP;
return NodeFilter.FILTER_ACCEPT;
- }, n = Yr(j(e), e, NodeFilter.SHOW_ELEMENT, { acceptNode: t }), r = t(e);
+ }, n = va(I(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 = ha.get(e) ?? 0;
- c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), ha.set(e, t + 1));
+ let t = zo.get(e) ?? 0;
+ c(e) && t === 0 || (t === 0 && l(e, !0), s.add(e), zo.set(e, t + 1));
};
- ga.length && ga[ga.length - 1].disconnect(), d(i);
+ Bo.length && Bo[Bo.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) => F(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && ma(e) ? o.add(e) : e instanceof Element && d(e);
- if (P()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Ro(e) ? o.add(e) : e instanceof Element && d(e);
+ if (kt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -3696,11 +5294,11 @@ function _a(e, t) {
subtree: !0
});
let m = /* @__PURE__ */ new Set();
- if (P()) for (let e of u) {
+ if (kt()) 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) => F(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && ma(e) ? o.add(e) : e instanceof Element && d(e);
- if (P()) {
+ if (t.target.isConnected && ![...o, ...s].some((e) => L(e, t.target))) for (let e of t.addedNodes) (e instanceof HTMLElement || e instanceof SVGElement) && Ro(e) ? o.add(e) : e instanceof Element && d(e);
+ if (kt()) {
for (let e of u) if (!e.isConnected) {
p.disconnect();
break;
@@ -3726,59 +5324,59 @@ function _a(e, t) {
p.disconnect();
}
};
- return ga.push(h), () => {
- if (p.disconnect(), P()) for (let e of m) e.disconnect();
+ return Bo.push(h), () => {
+ if (p.disconnect(), kt()) for (let e of m) e.disconnect();
for (let e of s) {
- let t = ha.get(e);
- t != null && (t === 1 ? (l(e, !1), ha.delete(e)) : ha.set(e, t - 1));
+ let t = zo.get(e);
+ t != null && (t === 1 ? (l(e, !1), zo.delete(e)) : zo.set(e, t - 1));
}
- h === ga[ga.length - 1] ? (ga.pop(), ga.length && ga[ga.length - 1].observe()) : ga.splice(ga.indexOf(h), 1);
+ h === Bo[Bo.length - 1] ? (Bo.pop(), Bo.length && Bo[Bo.length - 1].observe()) : Bo.splice(Bo.indexOf(h), 1);
};
}
-function va(e) {
- let t = ga[ga.length - 1];
+function Ho(e) {
+ let t = Bo[Bo.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 ya = /* @__PURE__ */ new WeakMap();
-function ba(e) {
+var Uo = /* @__PURE__ */ new WeakMap();
+function Wo(e) {
return typeof e == "string" ? e.replace(/\s*/g, "") : "" + e;
}
-function xa(e, t) {
- let n = ya.get(e);
+function Go(e, t) {
+ let n = Uo.get(e);
if (!n) throw Error("Unknown list");
- return `${n.id}-option-${ba(t)}`;
+ return `${n.id}-option-${Wo(t)}`;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/utils.mjs
-function Sa(e) {
- return Ae() ? e.altKey : e.ctrlKey;
+function Ko(e) {
+ return en() ? e.altKey : e.ctrlKey;
}
-function Ca(e, t) {
+function qo(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 wa = /* @__PURE__ */ new WeakMap();
-function Ta(e) {
- let t = Ft();
- return wa.set(e, t), t;
+var Jo = /* @__PURE__ */ new WeakMap();
+function Yo(e) {
+ let t = or();
+ return Jo.set(e, t), t;
}
-function Ea(e) {
- return wa.get(e);
+function Xo(e) {
+ return Jo.get(e);
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/DOMLayoutDelegate.mjs
-var Da = class {
+var Zo = class {
constructor(e) {
this.ref = e;
}
getItemRect(e) {
let t = this.ref.current;
if (!t) return null;
- let n = e == null ? null : Ca(this.ref, e);
+ let n = e == null ? null : qo(this.ref, e);
if (!n) return null;
let r = t.getBoundingClientRect(), i = n.getBoundingClientRect();
return {
@@ -3804,12 +5402,12 @@ var Da = class {
height: e?.clientHeight ?? 0
};
}
-}, Oa = class {
+}, Qo = 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 Da(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 Da(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 Zo(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 Zo(this.ref);
this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
}
isDisabled(e) {
@@ -3849,14 +5447,14 @@ var Da = class {
return e.x === t.x || e.y !== t.y;
}
isReversed(e) {
- let t = this.getNextKey(e), n = Ca(this.ref, e);
+ let t = this.getNextKey(e), n = qo(this.ref, e);
if (t != null) {
- let e = Ca(this.ref, t);
+ let e = qo(this.ref, t);
return !n || !e ? !1 : n.getBoundingClientRect().top > e.getBoundingClientRect().top;
}
let r = this.getPreviousKey(e);
if (r != null) {
- let e = Ca(this.ref, r);
+ let e = qo(this.ref, r);
return !n || !e ? !1 : e.getBoundingClientRect().top > n.getBoundingClientRect().top;
}
return !1;
@@ -3890,7 +5488,7 @@ var Da = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Ei(t)) return this.getFirstKey();
+ if (t && !Ya(t)) return this.getFirstKey();
let i = e;
if (this.orientation === "horizontal") {
let e = Math.max(0, n.x + n.width - this.layoutDelegate.getVisibleRect().width);
@@ -3905,7 +5503,7 @@ var Da = class {
let t = this.ref.current, n = this.layoutDelegate.getItemRect(e);
if (!n) return null;
let r = this.isReversed(e);
- if (t && !Ei(t)) return this.getLastKey();
+ if (t && !Ya(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);
@@ -3928,184 +5526,184 @@ var Da = class {
}
return null;
}
-}, ka = {};
-ka = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
+}, $o = {};
+$o = { longPressMessage: "اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/bg-BG.mjs
-var Aa = {};
-Aa = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
+var es = {};
+es = { longPressMessage: "Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/cs-CZ.mjs
-var ja = {};
-ja = { longPressMessage: "Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku" };
+var ts = {};
+ts = { 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 Ma = {};
-Ma = { longPressMessage: "Langt tryk eller tryk på Alt + pil ned for at åbne menuen" };
+var ns = {};
+ns = { 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 Na = {};
-Na = { longPressMessage: "Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen" };
+var rs = {};
+rs = { 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 Pa = {};
-Pa = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
+var is = {};
+is = { longPressMessage: "Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/en-US.mjs
-var Fa = {};
-Fa = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
+var as = {};
+as = { longPressMessage: "Long press or press Alt + ArrowDown to open menu" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/es-ES.mjs
-var Ia = {};
-Ia = { longPressMessage: "Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú" };
+var os = {};
+os = { 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 La = {};
-La = { longPressMessage: "Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool" };
+var ss = {};
+ss = { 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 Ra = {};
-Ra = { longPressMessage: "Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli" };
+var cs = {};
+cs = { 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 za = {};
-za = { longPressMessage: "Appuyez de manière prolongée ou appuyez sur Alt\xA0+\xA0Flèche vers le bas pour ouvrir le menu." };
+var ls = {};
+ls = { 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 Ba = {};
-Ba = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
+var us = {};
+us = { longPressMessage: "לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/hr-HR.mjs
-var Va = {};
-Va = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika" };
+var ds = {};
+ds = { 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 Ha = {};
-Ha = { longPressMessage: "Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához" };
+var fs = {};
+fs = { 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 Ua = {};
-Ua = { longPressMessage: "Premi a lungo o premi Alt + Freccia giù per aprire il menu" };
+var ps = {};
+ps = { 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 Wa = {};
-Wa = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
+var ms = {};
+ms = { longPressMessage: "長押しまたは Alt+下矢印キーでメニューを開く" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/ko-KR.mjs
-var Ga = {};
-Ga = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
+var hs = {};
+hs = { longPressMessage: "길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/lt-LT.mjs
-var Ka = {};
-Ka = { longPressMessage: "Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“." };
+var gs = {};
+gs = { 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 qa = {};
-qa = { longPressMessage: "Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa" };
+var _s = {};
+_s = { 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 Ja = {};
-Ja = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
+var vs = {};
+vs = { longPressMessage: "Langt trykk eller trykk Alt + PilNed for å åpne menyen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/nl-NL.mjs
-var Ya = {};
-Ya = { longPressMessage: "Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen" };
+var ys = {};
+ys = { 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 Xa = {};
-Xa = { longPressMessage: "Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu" };
+var bs = {};
+bs = { 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 Za = {};
-Za = { longPressMessage: "Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu" };
+var xs = {};
+xs = { 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 Qa = {};
-Qa = { longPressMessage: "Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu" };
+var Ss = {};
+Ss = { 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 $a = {};
-$a = { longPressMessage: "Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul" };
+var Cs = {};
+Cs = { 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 eo = {};
-eo = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
+var ws = {};
+ws = { longPressMessage: "Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/sk-SK.mjs
-var to = {};
-to = { longPressMessage: "Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol" };
+var Ts = {};
+Ts = { 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 no = {};
-no = { longPressMessage: "Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol" };
+var Es = {};
+Es = { 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 ro = {};
-ro = { longPressMessage: "Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni" };
+var Ds = {};
+Ds = { 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 io = {};
-io = { longPressMessage: "Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn" };
+var Os = {};
+Os = { 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 ao = {};
-ao = { longPressMessage: "Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın" };
+var ks = {};
+ks = { 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 oo = {};
-oo = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
+var As = {};
+As = { longPressMessage: "Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-CN.mjs
-var so = {};
-so = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
+var js = {};
+js = { longPressMessage: "长按或按 Alt + 向下方向键以打开菜单" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/menu/zh-TW.mjs
-var co = {};
-co = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
+var Ms = {};
+Ms = { longPressMessage: "長按或按 Alt+向下鍵以開啟功能表" };
//#endregion
//#region node_modules/react-aria/dist/private/menu/intlStrings.mjs
-var lo = {};
-lo = {
- "ar-AE": ka,
- "bg-BG": Aa,
- "cs-CZ": ja,
- "da-DK": Ma,
- "de-DE": Na,
- "el-GR": Pa,
- "en-US": Fa,
- "es-ES": Ia,
- "et-EE": La,
- "fi-FI": Ra,
- "fr-FR": za,
- "he-IL": Ba,
- "hr-HR": Va,
- "hu-HU": Ha,
- "it-IT": Ua,
- "ja-JP": Wa,
- "ko-KR": Ga,
- "lt-LT": Ka,
- "lv-LV": qa,
- "nb-NO": Ja,
- "nl-NL": Ya,
- "pl-PL": Xa,
- "pt-BR": Za,
- "pt-PT": Qa,
- "ro-RO": $a,
- "ru-RU": eo,
- "sk-SK": to,
- "sl-SI": no,
- "sr-SP": ro,
- "sv-SE": io,
- "tr-TR": ao,
- "uk-UA": oo,
- "zh-CN": so,
- "zh-TW": co
+var Ns = {};
+Ns = {
+ "ar-AE": $o,
+ "bg-BG": es,
+ "cs-CZ": ts,
+ "da-DK": ns,
+ "de-DE": rs,
+ "el-GR": is,
+ "en-US": as,
+ "es-ES": os,
+ "et-EE": ss,
+ "fi-FI": cs,
+ "fr-FR": ls,
+ "he-IL": us,
+ "hr-HR": ds,
+ "hu-HU": fs,
+ "it-IT": ps,
+ "ja-JP": ms,
+ "ko-KR": hs,
+ "lt-LT": gs,
+ "lv-LV": _s,
+ "nb-NO": vs,
+ "nl-NL": ys,
+ "pl-PL": bs,
+ "pt-BR": xs,
+ "pt-PT": Ss,
+ "ro-RO": Cs,
+ "ru-RU": ws,
+ "sk-SK": Ts,
+ "sl-SI": Es,
+ "sr-SP": Ds,
+ "sv-SE": Os,
+ "tr-TR": ks,
+ "uk-UA": As,
+ "zh-CN": js,
+ "zh-TW": Ms
};
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useLongPress.mjs
-var uo = 500;
-function fo(e) {
- let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = uo, accessibilityDescription: s } = e, c = (0, w.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = Nr(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = zr({
+var Ps = 500;
+function Fs(e) {
+ let { isDisabled: t, pointerType: n, onLongPressStart: r, onLongPressEnd: i, onLongPress: a, threshold: o = Ps, accessibilityDescription: s } = e, c = (0, _.useRef)(void 0), { addGlobalListener: l, removeAllGlobalListeners: u } = na(), d = (e) => n ? e.pointerType === n : e.pointerType === "mouse" || e.pointerType === "touch", { pressProps: f } = ca({
isDisabled: t,
onPressStart(e) {
if (e.continuePropagation(), d(e)) {
@@ -4113,12 +5711,12 @@ function fo(e) {
...e,
type: "longpressstart"
}), c.current = setTimeout(() => {
- e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), j(e.target).activeElement !== e.target && E(e.target), a && a({
+ e.target.dispatchEvent(new PointerEvent("pointercancel", { bubbles: !0 })), l(e.target, "click", (e) => e.preventDefault(), { once: !0 }), I(e.target).activeElement !== e.target && gt(e.target), a && a({
...e,
type: "longpress"
}), c.current = void 0;
}, o), e.pointerType === "touch" && l(e.target, "contextmenu", (e) => e.preventDefault(), { once: !0 });
- let t = M(e.target);
+ let t = xt(e.target);
l(t, "pointerup", () => {
setTimeout(() => {
u();
@@ -4133,12 +5731,12 @@ function fo(e) {
});
}
});
- return { longPressProps: B(f, Pi(a && !t ? s : void 0)) };
+ return { longPressProps: V(f, ro(a && !t ? s : void 0)) };
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useContextMenu.mjs
-function po(e) {
- let { onContextMenu: t } = e, n = (0, w.useRef)(!1), { longPressProps: r } = fo({
+function Is(e) {
+ let { onContextMenu: t } = e, n = (0, _.useRef)(!1), { longPressProps: r } = Fs({
onLongPressStart() {
n.current = !1;
},
@@ -4150,7 +5748,7 @@ function po(e) {
});
}
});
- return t ? { contextMenuProps: B(ke() ? r : {}, {
+ return t ? { contextMenuProps: V($t() ? r : {}, {
onContextMenu(e) {
e.stopPropagation(), e.preventDefault(), n.current = !0;
let r = e.currentTarget.getBoundingClientRect();
@@ -4161,7 +5759,7 @@ function po(e) {
});
},
onKeyDown(e) {
- if (Ee() && e.ctrlKey && e.key === "Enter") {
+ if (Xt() && e.ctrlKey && e.key === "Enter") {
n.current = !1;
let r = e.currentTarget;
e.stopPropagation(), setTimeout(() => {
@@ -4181,13 +5779,13 @@ function po(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useCloseOnScroll.mjs
-var mo = /* @__PURE__ */ new WeakMap();
-function ho(e) {
+var Ls = /* @__PURE__ */ new WeakMap();
+function Rs(e) {
let { triggerRef: t, isOpen: n, onClose: r } = e;
- (0, w.useEffect)(() => !n || r === null ? void 0 : ie(ce(t.current), "scroll", (e) => {
- let n = I(e);
- if (!t.current || n instanceof Node && !F(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
- let i = r || mo.get(t.current);
+ (0, _.useEffect)(() => !n || r === null ? void 0 : Et(jt(t.current), "scroll", (e) => {
+ let n = R(e);
+ if (!t.current || n instanceof Node && !L(n, t.current) || n instanceof HTMLInputElement || n instanceof HTMLTextAreaElement) return;
+ let i = r || Ls.get(t.current);
i && i();
}, !0), [
n,
@@ -4197,14 +5795,14 @@ function ho(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlayTrigger.mjs
-function go(e, t, n) {
+function zs(e, t, n) {
let { type: r } = e, { isOpen: i } = t;
- (0, w.useEffect)(() => {
- n && n.current && mo.set(n.current, t.close);
+ (0, _.useEffect)(() => {
+ n && n.current && Ls.set(n.current, t.close);
});
let a;
r === "menu" ? a = !0 : r === "listbox" && (a = "listbox");
- let o = Ft();
+ let o = or();
return {
triggerProps: {
"aria-haspopup": a,
@@ -4217,14 +5815,14 @@ function go(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/menu/useMenuTrigger.mjs
-function _o(e) {
+function Bs(e) {
return e && e.__esModule ? e.default : e;
}
-function vo(e, t, n) {
- let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = Ft(), { triggerProps: s, overlayProps: c } = go({ type: r }, t, n), l = (e, n, r = "first") => {
+function Vs(e, t, n) {
+ let { type: r = "menu", isDisabled: i, trigger: a = "press" } = e, o = or(), { triggerProps: s, overlayProps: c } = zs({ type: r }, t, n), l = (e, n, r = "first") => {
if (!e || n.isDefaultPrevented()) return !1;
t.toggle(r);
- }, { keyboardProps: u } = tn({
+ }, { keyboardProps: u } = Dr({
isDisabled: i,
shortcuts: {
Enter: (e) => l(a !== "longPress", e, "first"),
@@ -4236,7 +5834,7 @@ function vo(e, t, n) {
"Alt+ArrowDown": (e) => l(!0, e, "first"),
"Alt+ArrowUp": (e) => l(!0, e, "last")
}
- }), d = gr(_o(lo), "@react-aria/menu"), { longPressProps: f } = fo({
+ }), d = Vi(Bs(Ns), "@react-aria/menu"), { longPressProps: f } = Fs({
isDisabled: i || a !== "longPress",
accessibilityDescription: d.format("longPressMessage"),
onLongPressStart() {
@@ -4248,24 +5846,24 @@ function vo(e, t, n) {
}), p = {
preventFocusOnPress: !0,
onPressStart(e) {
- e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (E(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
+ e.pointerType !== "touch" && e.pointerType !== "keyboard" && !i && (gt(e.target), t.open(e.pointerType === "virtual" ? "first" : null));
},
onPress(e) {
- e.pointerType === "touch" && !i && (E(e.target), t.toggle());
+ e.pointerType === "touch" && !i && (gt(e.target), t.toggle());
}
};
delete s.onPress;
- let { contextMenuProps: m } = po({ onContextMenu(e) {
+ let { contextMenuProps: m } = Is({ onContextMenu(e) {
let n = e.target.getBoundingClientRect();
t.setPoint({
x: n.x + e.x,
y: n.y + e.y
}), t.open();
} });
- (0, w.useEffect)(() => {
+ (0, _.useEffect)(() => {
if (t.isOpen && a === "contextMenu") {
let e = (e) => {
- (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && I(e) === document.body && t.close();
+ (e.button === 2 || e.button === 0 && e.ctrlKey === !0) && R(e) === document.body && t.close();
};
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
}
@@ -4300,13 +5898,13 @@ function vo(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useTypeSelect.mjs
-var yo = 1e3;
-function bo(e) {
- let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, w.useRef)({
+var Hs = 1e3;
+function Us(e) {
+ let { keyboardDelegate: t, selectionManager: n, onTypeSelect: r } = e, i = (0, _.useRef)({
search: "",
timeout: void 0
});
- return (0, w.useEffect)(() => {
+ return (0, _.useEffect)(() => {
let e = i.current.timeout;
return () => {
clearTimeout(e);
@@ -4320,12 +5918,12 @@ function bo(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, yo);
+ }, Hs);
}
} : void 0,
onKeyDown: t.getKeyForSearch ? (e) => {
- let a = xo(e.key);
- if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !F(e.currentTarget, I(e)) || i.current.search.length === 0 && a === " ")) {
+ let a = Ws(e.key);
+ if (!(!a || e.ctrlKey || e.metaKey || e.altKey || !L(e.currentTarget, R(e)) || i.current.search.length === 0 && a === " ")) {
if (i.current.search += a, t.getKeyForSearch != null) {
let a = t.getKeyForSearch(i.current.search, n.focusedKey);
if (a ??= t.getKeyForSearch(i.current.search), a != null) n.setFocusedKey(a), r && r(a), e.preventDefault(), "continuePropagation" in e || e.stopPropagation();
@@ -4336,18 +5934,18 @@ function bo(e) {
}
clearTimeout(i.current.timeout), i.current.timeout = setTimeout(() => {
i.current.search = "";
- }, yo);
+ }, Hs);
}
} : void 0
} };
}
-function xo(e) {
+function Ws(e) {
return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useUpdateLayoutEffect.mjs
-function So(e, t) {
- let n = (0, w.useRef)(!0), r = (0, w.useRef)(null);
+function Gs(e, t) {
+ let n = (0, _.useRef)(!0), r = (0, _.useRef)(null);
z(() => (n.current = !0, () => {
n.current = !1;
}), []), z(() => {
@@ -4356,16 +5954,16 @@ function So(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableCollection.mjs
-function Co(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 } = nr(), _ = Re(), v = (e, n, i) => {
+function Ks(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 } = Di(), v = ln(), y = (e, n, i) => {
if (n != null) {
- if (t.isLink(n) && m === "selection" && l && !Sa(e)) {
- (0, gn.flushSync)(() => {
+ if (t.isLink(n) && m === "selection" && l && !Ko(e)) {
+ (0, Vr.flushSync)(() => {
t.setFocusedKey(n, i);
});
- let a = Ca(r, n), o = t.getItemProps(n);
+ let a = qo(r, n), o = t.getItemProps(n);
if (a) {
- _.open(a, e, o.href, o.routerOptions);
+ v.open(a, e, o.href, o.routerOptions);
return;
}
return !1;
@@ -4375,36 +5973,36 @@ function Co(e) {
t.extendSelection(n);
return;
}
- if (l && !Sa(e)) {
+ if (l && !Ko(e)) {
t.replaceSelection(n);
return;
}
}
return !1;
- }, y = (e) => {
+ }, b = (e) => {
if (n.getKeyBelow) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyBelow?.(t.focusedKey);
if (r == null && a && (r = n.getFirstKey?.(t.focusedKey)), r != null) {
- v(e, r);
+ y(e, r);
return;
}
}
return !1;
- }, b = (e) => {
+ }, x = (e) => {
if (n.getKeyAbove) {
let r = t.focusedKey == null ? n.getLastKey?.() : n.getKeyAbove?.(t.focusedKey);
if (r == null && a && (r = n.getLastKey?.(t.focusedKey)), r != null) {
- v(e, r);
+ y(e, r);
return;
}
}
return !1;
- }, x = (e) => {
+ }, S = (e) => {
if (n.getFirstKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getFirstKey(t.focusedKey, zn(e));
+ let r = n.getFirstKey(t.focusedKey, ui(e));
if (t.setFocusedKey(r), r != null) {
- if (zn(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ui(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -4415,20 +6013,20 @@ function Co(e) {
}
}
return !1;
- }, S = (e) => {
+ }, C = (e) => {
if (n.getKeyLeftOf) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyLeftOf?.(t.focusedKey);
if (r == null && a && (r = g === "rtl" ? n.getFirstKey?.(t.focusedKey) : n.getLastKey?.(t.focusedKey)), r != null) {
- v(e, r, g === "rtl" ? "first" : "last");
+ y(e, r, g === "rtl" ? "first" : "last");
return;
}
}
return !1;
- }, C = (e) => {
+ }, w = (e) => {
if (n.getKeyRightOf) {
let r = t.focusedKey == null ? n.getFirstKey?.() : n.getKeyRightOf?.(t.focusedKey);
if (r == null && a && (r = g === "rtl" ? n.getLastKey?.(t.focusedKey) : n.getFirstKey?.(t.focusedKey)), r != null) {
- v(e, r, g === "rtl" ? "last" : "first");
+ y(e, r, g === "rtl" ? "last" : "first");
return;
}
}
@@ -4436,9 +6034,9 @@ function Co(e) {
}, T = (e) => {
if (n.getLastKey) {
if (t.focusedKey === null && e.shiftKey) return !1;
- let r = n.getLastKey(t.focusedKey, zn(e));
+ let r = n.getLastKey(t.focusedKey, ui(e));
if (t.setFocusedKey(r), r != null) {
- if (zn(e) && e.shiftKey && t.selectionMode === "multiple") {
+ if (ui(e) && e.shiftKey && t.selectionMode === "multiple") {
t.extendSelection(r);
return;
}
@@ -4449,16 +6047,16 @@ function Co(e) {
}
}
return !1;
- }, ee = (e) => {
+ }, E = (e) => {
if (n.getKeyPageBelow && t.focusedKey != null) {
let r = n.getKeyPageBelow(t.focusedKey);
- if (r != null) return v(e, r);
+ if (r != null) return y(e, r);
}
return !1;
}, D = (e) => {
if (n.getKeyPageAbove && t.focusedKey != null) {
let r = n.getKeyPageAbove(t.focusedKey);
- if (r != null) return v(e, r);
+ if (r != null) return y(e, r);
}
return !1;
}, O = () => {
@@ -4475,59 +6073,59 @@ function Co(e) {
return !1;
}, A = () => {
if (!f && r.current) {
- let e = vi(r.current, { tabbable: !0 }), t, n;
+ let e = Va(r.current, { tabbable: !0 }), t, n;
do
n = e.lastChild(), n && (t = n);
while (n);
- let i = se();
- t && (!le(t) || i && !ge(i)) && E(t);
+ let i = At();
+ t && (!Mt(t) || i && !Vt(i)) && gt(t);
}
return {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
};
- }, j = () => (!f && r.current && r.current.focus(), {
+ }, ee = () => (!f && r.current && r.current.focus(), {
shouldContinuePropagation: !0,
shouldPreventDefault: !1
- }), M = (e, t) => ({
- [Ee() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
+ }), j = (e, t) => ({
+ [Xt() ? e + "+Shift+Alt" : e + "+Shift+Control"]: t,
[e + "+Shift"]: t,
- [Ee() ? e + "+Alt" : e + "+Control"]: t,
+ [Xt() ? e + "+Alt" : e + "+Control"]: t,
[e]: t
- }), { keyboardProps: te } = tn({
+ }), { keyboardProps: te } = Dr({
shortcuts: {
- ...M("ArrowDown", y),
- ...M("ArrowUp", b),
- ...M("ArrowLeft", S),
- ...M("ArrowRight", C),
- ...M("PageDown", ee),
- ...M("PageUp", D)
+ ...j("ArrowDown", b),
+ ...j("ArrowUp", x),
+ ...j("ArrowLeft", C),
+ ...j("ArrowRight", w),
+ ...j("PageDown", E),
+ ...j("PageUp", D)
},
allowRepeats: !0
- }), { keyboardProps: ne } = tn({ shortcuts: {
- ...M("Home", x),
- ...M("End", T),
+ }), { keyboardProps: ne } = Dr({ shortcuts: {
+ ...j("Home", S),
+ ...j("End", T),
"Mod+A": O,
Escape: k,
Tab: A,
- "Tab+Shift": j
- } }), N = (0, w.useRef)({
+ "Tab+Shift": ee
+ } }), re = (0, _.useRef)({
top: 0,
left: 0
});
- Wn(p, "scroll", () => {
- N.current = {
+ hi(p, "scroll", () => {
+ re.current = {
top: p.current?.scrollTop ?? 0,
left: p.current?.scrollLeft ?? 0
};
});
- let re = (e) => {
+ let M = (e) => {
if (t.isFocused) {
- F(e.currentTarget, I(e)) || t.setFocused(!1);
+ L(e.currentTarget, R(e)) || t.setFocused(!1);
return;
}
- if (!F(e.currentTarget, I(e))) return;
- let i = vt();
+ if (!L(e.currentTarget, R(e))) return;
+ let i = Un();
t.setFocused(!0);
let a = (e) => {
e != null && (t.setFocusedKey(e), l && !t.isSelected(e) && t.replaceSelection(e));
@@ -4536,34 +6134,34 @@ function Co(e) {
else if (t.focusedKey == null) {
let r = e.relatedTarget;
r && e.currentTarget.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_FOLLOWING ? a(t.lastSelectedKey ?? n.getLastKey?.()) : a(t.firstSelectedKey ?? n.getFirstKey?.());
- } else p.current && (p.current.scrollTop = N.current.top, p.current.scrollLeft = N.current.left);
+ } else p.current && (p.current.scrollTop = re.current.top, p.current.scrollLeft = re.current.left);
if (t.focusedKey != null && p.current) {
- let e = Ca(r, t.focusedKey);
- e instanceof HTMLElement && (!le(e) && !d && E(e), (i === "keyboard" || h && i === "virtual") && ji(e, { containingElement: r.current }));
+ let e = qo(r, t.focusedKey);
+ e instanceof HTMLElement && (!Mt(e) && !d && gt(e), (i === "keyboard" || h && i === "virtual") && eo(e, { containingElement: r.current }));
}
}, ie = (e) => {
- F(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
- }, ae = (0, w.useRef)(!1);
- Wn(r, Pn, d ? (e) => {
+ L(e.currentTarget, e.relatedTarget) || t.setFocused(!1);
+ }, ae = (0, _.useRef)(!1);
+ hi(r, ai, d ? (e) => {
let { detail: n } = e;
e.stopPropagation(), t.setFocused(!0), n?.focusStrategy === "first" && (ae.current = !0);
} : void 0);
let oe = n.getFirstKey?.() ?? null;
- So(() => {
+ Gs(() => {
if (ae.current) {
if (oe == null) {
- let e = se();
- Fn(r.current), Ln(e, null), t.collection.size > 0 && (ae.current = !1);
+ let e = At();
+ oi(r.current), ci(e, null), t.collection.size > 0 && (ae.current = !1);
} else t.setFocusedKey(oe), ae.current = !1;
}
- }, [oe, t.collection.size]), So(() => {
+ }, [oe, t.collection.size]), Gs(() => {
t.collection.size > 0 && (ae.current = !1);
- }, [t.focusedKey]), Wn(r, Nn, d ? (e) => {
+ }, [t.focusedKey]), hi(r, ii, d ? (e) => {
e.stopPropagation(), t.setFocused(!1), e.detail?.clearFocusKey && t.setFocusedKey(null);
} : void 0);
- let P = (0, w.useRef)(i), ce = (0, w.useRef)(!1);
- (0, w.useEffect)(() => {
- if (P.current) {
+ let se = (0, _.useRef)(i), ce = (0, _.useRef)(!1);
+ (0, _.useEffect)(() => {
+ if (se.current) {
let e = null;
i === "first" && (e = n.getFirstKey?.() ?? null), i === "last" && (e = n.getLastKey?.() ?? null);
let a = t.selectedKeys;
@@ -4573,53 +6171,53 @@ function Co(e) {
break;
}
}
- t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && Ot(r.current), t.collection.size > 0 && (P.current = !1, ce.current = !0);
+ t.setFocused(!0), t.setFocusedKey(e), e != null && l && !a.size && t.canSelectItem(e) && t.replaceSelection(e), e == null && !d && r.current && $n(r.current), t.collection.size > 0 && (se.current = !1, ce.current = !0);
}
});
- let ue = (0, w.useRef)(t.focusedKey), de = (0, w.useRef)(null);
- (0, w.useEffect)(() => {
- if (t.isFocused && t.focusedKey != null && (t.focusedKey !== ue.current || ce.current) && p.current && r.current) {
- let e = vt(), n = Ca(r, t.focusedKey);
+ let le = (0, _.useRef)(t.focusedKey), ue = (0, _.useRef)(null);
+ (0, _.useEffect)(() => {
+ if (t.isFocused && t.focusedKey != null && (t.focusedKey !== le.current || ce.current) && p.current && r.current) {
+ let e = Un(), n = qo(r, t.focusedKey);
if (!(n instanceof HTMLElement)) return;
- (e === "keyboard" || ce.current) && (de.current && cancelAnimationFrame(de.current), de.current = requestAnimationFrame(() => {
- p.current && (ki(p.current, n), e !== "virtual" && ji(n, { containingElement: r.current }));
+ (e === "keyboard" || ce.current) && (ue.current && cancelAnimationFrame(ue.current), ue.current = requestAnimationFrame(() => {
+ p.current && (Qa(p.current, n), e !== "virtual" && eo(n, { containingElement: r.current }));
}));
}
- !d && t.isFocused && t.focusedKey == null && ue.current != null && r.current && Ot(r.current), ue.current = t.focusedKey, ce.current = !1;
- }), (0, w.useEffect)(() => () => {
- de.current && cancelAnimationFrame(de.current);
- }, []), Wn(r, "react-aria-focus-scope-restore", (e) => {
+ !d && t.isFocused && t.focusedKey == null && le.current != null && r.current && $n(r.current), le.current = t.focusedKey, ce.current = !1;
+ }), (0, _.useEffect)(() => () => {
+ ue.current && cancelAnimationFrame(ue.current);
+ }, []), hi(r, "react-aria-focus-scope-restore", (e) => {
e.preventDefault(), t.setFocused(!0);
});
- let L = {
- ...B(ne, te),
- onFocus: re,
+ let de = {
+ ...V(ne, te),
+ onFocus: M,
onBlur: ie,
onMouseDown(e) {
- p.current === I(e) && e.preventDefault();
+ p.current === R(e) && e.preventDefault();
}
- }, { typeSelectProps: R } = bo({
+ }, { typeSelectProps: fe } = Us({
keyboardDelegate: n,
selectionManager: t
});
- u || (L = B(R, L));
- let fe;
- d || (fe = t.focusedKey == null ? 0 : -1);
- let pe = Ta(t.collection);
- return { collectionProps: B(L, {
- tabIndex: fe,
- "data-collection": pe
+ u || (de = V(fe, de));
+ let pe;
+ d || (pe = t.focusedKey == null ? 0 : -1);
+ let me = Yo(t.collection);
+ return { collectionProps: V(de, {
+ tabIndex: pe,
+ "data-collection": me
}) };
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/getChildNodes.mjs
-function wo(e, t) {
+function qs(e, t) {
return typeof t.getChildren == "function" ? t.getChildren(e.key) : e.childNodes;
}
-function To(e) {
- return Eo(e, 0);
+function Js(e) {
+ return Ys(e, 0);
}
-function Eo(e, t) {
+function Ys(e, t) {
if (t < 0) return;
let n = 0;
for (let r of e) {
@@ -4627,96 +6225,96 @@ function Eo(e, t) {
n++;
}
}
-function Do(e, t, n) {
+function Xs(e, t, n) {
if (t.parentKey === n.parentKey) return t.index - n.index;
- let r = [...Oo(e, t), t], i = [...Oo(e, n), n], a = r.slice(0, i.length).findIndex((e, t) => e !== i[t]);
+ let r = [...Zs(e, t), t], i = [...Zs(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 Oo(e, t) {
+function Zs(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 ko = /* @__PURE__ */ new WeakMap();
-function Ao(e) {
- let t = ko.get(e);
+var Qs = /* @__PURE__ */ new WeakMap();
+function $s(e) {
+ let t = Qs.get(e);
if (t != null) return t;
let n = 0, r = (t) => {
- for (let i of t) i.type === "section" ? r(wo(i, e)) : i.type === "item" && n++;
+ for (let i of t) i.type === "section" ? r(qs(i, e)) : i.type === "item" && n++;
};
- return r(e), ko.set(e, n), n;
+ return r(e), Qs.set(e, n), n;
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useCollator.mjs
-var jo = /* @__PURE__ */ new Map();
-function Mo(e) {
- let { locale: t } = nr(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
- if (jo.has(n)) return jo.get(n);
+var ec = /* @__PURE__ */ new Map();
+function tc(e) {
+ let { locale: t } = Di(), n = t + (e ? Object.entries(e).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
+ if (ec.has(n)) return ec.get(n);
let r = new Intl.Collator(t, e);
- return jo.set(n, r), r;
+ return ec.set(n, r), r;
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/PressResponder.mjs
-function No({ children: e }) {
- let t = (0, w.useMemo)(() => ({ register: () => {} }), []);
- return /*#__PURE__*/ w.createElement(Mr.Provider, { value: t }, e);
+function nc({ children: e }) {
+ let t = (0, _.useMemo)(() => ({ register: () => {} }), []);
+ return /*#__PURE__*/ _.createElement(ta.Provider, { value: t }, e);
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/PortalProvider.mjs
-var Po = /*#__PURE__*/ (0, w.createContext)({});
-function Fo(e) {
- let { getContainer: t } = e, { getContainer: n } = Io();
- return /*#__PURE__*/ w.createElement(Po.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
+var rc = /*#__PURE__*/ (0, _.createContext)({});
+function ic(e) {
+ let { getContainer: t } = e, { getContainer: n } = ac();
+ return /*#__PURE__*/ _.createElement(rc.Provider, { value: { getContainer: t === null ? void 0 : t ?? n } }, e.children);
}
-function Io() {
- return (0, w.useContext)(Po) ?? {};
+function ac() {
+ return (0, _.useContext)(rc) ?? {};
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/Overlay.mjs
-var Lo = /*#__PURE__*/ w.createContext(null);
-function Ro(e) {
- let t = et(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, w.useState)(!1), o = (0, w.useMemo)(() => ({
+var oc = /*#__PURE__*/ _.createContext(null);
+function sc(e) {
+ let t = Tn(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [i, a] = (0, _.useState)(!1), o = (0, _.useMemo)(() => ({
contain: i,
setContain: a
- }), [i, a]), { getContainer: s } = Io();
+ }), [i, a]), { getContainer: s } = ac();
if (!e.portalContainer && s && (n = s()), !n) return null;
let c = e.children;
- return e.disableFocusManagement || (c = /*#__PURE__*/ w.createElement(Qr, {
+ return e.disableFocusManagement || (c = /*#__PURE__*/ _.createElement(xa, {
restoreFocus: !0,
contain: (e.shouldContainFocus || i) && !r
- }, c)), c = /*#__PURE__*/ w.createElement(Lo.Provider, { value: o }, /*#__PURE__*/ w.createElement(No, null, /*#__PURE__*/ w.createElement(an.Provider, { value: null }, c))), /*#__PURE__*/ gn.createPortal(c, n);
+ }, c)), c = /*#__PURE__*/ _.createElement(oc.Provider, { value: o }, /*#__PURE__*/ _.createElement(nc, null, /*#__PURE__*/ _.createElement(Ar.Provider, { value: null }, c))), /*#__PURE__*/ Vr.createPortal(c, n);
}
-function W() {
- let e = (0, w.useContext)(Lo)?.setContain;
+function cc() {
+ let e = (0, _.useContext)(oc)?.setContain;
z(() => {
e?.(!0);
}, [e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/dialog/useDialog.mjs
-function zo(e, t) {
- let { role: n = "dialog" } = e, r = Lt();
+function lc(e, t) {
+ let { role: n = "dialog" } = e, r = cr();
r = e["aria-label"] ? void 0 : r;
- let i = Lt();
+ let i = cr();
i = n === "alertdialog" && !e["aria-describedby"] ? i : void 0;
- let a = (0, w.useRef)(!1);
- (0, w.useEffect)(() => {
- if (t.current && !le(t.current)) {
- Ot(t.current);
+ let a = (0, _.useRef)(!1);
+ (0, _.useEffect)(() => {
+ if (t.current && !Mt(t.current)) {
+ $n(t.current);
let e = setTimeout(() => {
- (se() === t.current || se() === document.body) && (a.current = !0, t.current && (t.current.blur(), Ot(t.current)), a.current = !1);
+ (At() === t.current || At() === document.body) && (a.current = !0, t.current && (t.current.blur(), $n(t.current)), a.current = !1);
}, 500);
return () => {
clearTimeout(e);
};
}
- }, [t]), W(), (0, w.useRef)(!1), (0, w.useEffect)(() => {});
+ }, [t]), cc(), (0, _.useRef)(!1), (0, _.useEffect)(() => {});
let o = e["aria-describedby"] ?? i;
return {
dialogProps: {
- ...Cr(e, { labelable: !0 }),
+ ...H(e, { labelable: !0 }),
role: n,
tabIndex: -1,
"aria-labelledby": e["aria-labelledby"] ?? r,
@@ -4731,23 +6329,23 @@ function zo(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/focus/useFocusRing.mjs
-function Bo(e = {}) {
- let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, w.useRef)({
+function uc(e = {}) {
+ let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, _.useRef)({
isFocused: !1,
- isFocusVisible: t || _t()
- }), [a, o] = (0, w.useState)(!1), [s, c] = (0, w.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, w.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, w.useCallback)((e) => {
- i.current.isFocused = e, i.current.isFocusVisible = _t(), o(e), l();
+ isFocusVisible: t || Hn()
+ }), [a, o] = (0, _.useState)(!1), [s, c] = (0, _.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, _.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, _.useCallback)((e) => {
+ i.current.isFocused = e, i.current.isFocusVisible = Hn(), o(e), l();
}, [l]);
- St((e) => {
+ qn((e) => {
i.current.isFocusVisible = e, l();
}, [n, a], {
enabled: a,
isTextInput: n
});
- let { focusProps: d } = V({
+ let { focusProps: d } = pr({
isDisabled: r,
onFocusChange: u
- }), { focusWithinProps: f } = ra({
+ }), { focusWithinProps: f } = Oo({
isDisabled: !r,
onFocusWithinChange: u
});
@@ -4759,42 +6357,42 @@ function Bo(e = {}) {
}
//#endregion
//#region node_modules/react-aria/dist/private/i18n/useListFormatter.mjs
-function Vo(e = {}) {
- let { locale: t } = nr();
- return (0, w.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
+function dc(e = {}) {
+ let { locale: t } = Di();
+ return (0, _.useMemo)(() => new Intl.ListFormat(t, e), [t, e]);
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useHover.mjs
-var Ho = !1, Uo = 0;
-function Wo() {
- Ho = !0, setTimeout(() => {
- Ho = !1;
+var fc = !1, pc = 0;
+function mc() {
+ fc = !0, setTimeout(() => {
+ fc = !1;
}, 500);
}
-function Go(e) {
- e.pointerType === "touch" && Wo();
+function hc(e) {
+ e.pointerType === "touch" && mc();
}
-function Ko() {
- let e = j(null);
- if (e !== void 0) return Uo === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", Go), Uo++, () => {
- Uo--, !(Uo > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", Go);
+function gc() {
+ let e = I(null);
+ if (e !== void 0) return pc === 0 && typeof PointerEvent < "u" && e.addEventListener("pointerup", hc), pc++, () => {
+ pc--, !(pc > 0) && typeof PointerEvent < "u" && e.removeEventListener("pointerup", hc);
};
}
-function qo(e) {
- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, w.useState)(!1), s = (0, w.useRef)({
+function _c(e) {
+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, _.useState)(!1), s = (0, _.useRef)({
isHovered: !1,
ignoreEmulatedMouseEvents: !1,
pointerType: "",
target: null
}).current;
- (0, w.useEffect)(Ko, []);
- let { addGlobalListener: c, removeAllGlobalListeners: l } = Nr(), { hoverProps: u, triggerHoverEnd: d } = (0, w.useMemo)(() => {
+ (0, _.useEffect)(gc, []);
+ let { addGlobalListener: c, removeAllGlobalListeners: l } = na(), { hoverProps: u, triggerHoverEnd: d } = (0, _.useMemo)(() => {
let e = (e, r) => {
- if (s.pointerType = r, i || r === "touch" || s.isHovered || !F(e.currentTarget, I(e))) return;
+ if (s.pointerType = r, i || r === "touch" || s.isHovered || !L(e.currentTarget, R(e))) return;
s.isHovered = !0;
let l = e.currentTarget;
- s.target = l, c(j(I(e)), "pointerover", (e) => {
- s.isHovered && s.target && !F(s.target, I(e)) && a(e, e.pointerType);
+ s.target = l, c(I(R(e)), "pointerover", (e) => {
+ s.isHovered && s.target && !L(s.target, R(e)) && a(e, e.pointerType);
}, { capture: !0 }), t && t({
type: "hoverstart",
target: l,
@@ -4809,9 +6407,9 @@ function qo(e) {
}), n && n(!1), o(!1));
}, u = {};
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
- Ho && t.pointerType === "mouse" || e(t, t.pointerType);
+ fc && t.pointerType === "mouse" || e(t, t.pointerType);
}, u.onPointerLeave = (e) => {
- !i && F(e.currentTarget, I(e)) && a(e, e.pointerType);
+ !i && L(e.currentTarget, R(e)) && a(e, e.pointerType);
}), {
hoverProps: u,
triggerHoverEnd: a
@@ -4825,7 +6423,7 @@ function qo(e) {
c,
l
]);
- return (0, w.useEffect)(() => {
+ return (0, _.useEffect)(() => {
i && d({ currentTarget: s.target }, s.pointerType);
}, [i]), {
hoverProps: u,
@@ -4834,22 +6432,22 @@ function qo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/interactions/useInteractOutside.mjs
-function Jo(e) {
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, w.useRef)({
+function vc(e) {
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = e, a = (0, _.useRef)({
isPointerDown: !1,
ignoreEmulatedMouseEvents: !1
- }), o = Un((e) => {
- n && Yo(e, t) && (i && i(e), a.current.isPointerDown = !0);
- }), s = Un((e) => {
+ }), o = mi((e) => {
+ n && yc(e, t) && (i && i(e), a.current.isPointerDown = !0);
+ }), s = mi((e) => {
n && n(e);
});
- (0, w.useEffect)(() => {
+ (0, _.useEffect)(() => {
let e = a.current;
if (r) return;
- let n = t.current, i = j(n);
+ let n = t.current, i = I(n);
if (typeof PointerEvent < "u") {
let n = (n) => {
- e.isPointerDown && Yo(n, t) && s(n), e.isPointerDown = !1;
+ e.isPointerDown && yc(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);
@@ -4857,22 +6455,22 @@ function Jo(e) {
}
}, [t, r]);
}
-function Yo(e, t) {
+function yc(e, t) {
if (e.button > 0) return !1;
- let n = I(e);
+ let n = R(e);
if (n) {
let e = n.ownerDocument;
- if (!e || !F(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
+ if (!e || !L(e.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
}
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Xo(e) {
- let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = Mo({
+function bc(e) {
+ let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = tc({
usage: "search",
sensitivity: "base"
- }), l = t.disabledBehavior, u = (0, w.useMemo)(() => a || new Oa({
+ }), l = t.disabledBehavior, u = (0, _.useMemo)(() => a || new Qo({
collection: n,
disabledKeys: r,
disabledBehavior: l,
@@ -4889,7 +6487,7 @@ function Xo(e) {
c,
l,
s
- ]), { collectionProps: d } = Co({
+ ]), { collectionProps: d } = Ks({
...e,
ref: i,
selectionManager: t,
@@ -4899,11 +6497,11 @@ function Xo(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Zo(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 = Re();
- t = Ft(t);
+function xc(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 = ln();
+ t = or(t);
let p = (e) => {
- if (e.pointerType === "keyboard" && Sa(e)) n.toggleSelection(r);
+ if (e.pointerType === "keyboard" && Ko(e)) n.toggleSelection(r);
else {
if (n.selectionMode === "none") return;
if (n.isLink(r)) {
@@ -4914,11 +6512,11 @@ function Zo(e) {
}
if (d === "override" || d === "none") return;
}
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (zn(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : e && e.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || e && (ui(e) || e.pointerType === "touch" || e.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
}
};
- (0, w.useEffect)(() => {
- r === n.focusedKey && n.isFocused && (o ? Fn(i.current) : s ? s() : se() !== i.current && i.current && Ot(i.current));
+ (0, _.useEffect)(() => {
+ r === n.focusedKey && n.isFocused && (o ? oi(i.current) : s ? s() : At() !== i.current && i.current && $n(i.current));
}, [
i,
r,
@@ -4931,127 +6529,127 @@ function Zo(e) {
!o && !c ? m = {
tabIndex: r === n.focusedKey ? 0 : -1,
onFocus(e) {
- I(e) === i.current && n.setFocusedKey(r);
+ R(e) === i.current && n.setFocusedKey(r);
}
} : c && (m.onMouseDown = (e) => {
e.preventDefault();
- }), (0, w.useEffect)(() => {
+ }), (0, _.useEffect)(() => {
c && n.focusedKey === r && n.setFocusedKey(null);
}, [
n,
c,
r
]);
- let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", _ = n.isLink(r) && d !== "selection" && d !== "none", v = !c && n.canSelectItem(r) && !h && !g, y = (l || _) && !c, b = y && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), x = y && v && n.selectionBehavior === "replace", S = b || x, C = (0, w.useRef)(null), T = S && v, ee = (0, w.useRef)(!1), E = (0, w.useRef)(!1), D = n.getItemProps(r), O = (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, ee.current = T, e.pointerType === "keyboard" && (!S || $o(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" && !Qo(e.key)) return;
- O(e);
- } else e.pointerType !== "keyboard" && v && p(e);
- }) : (k.onPressStart = (e) => {
- C.current = e.pointerType, ee.current = T, E.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || $o(e.key))) && p(e);
- }, k.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && S && Qo(e.key) || e.pointerType === "mouse" && E.current) && (S ? O(e) : v && p(e));
+ let h = n.isLink(r) && d === "override", g = l && e.UNSTABLE_itemBehavior === "action", v = n.isLink(r) && d !== "selection" && d !== "none", y = !c && n.canSelectItem(r) && !h && !g, b = (l || v) && !c, x = b && (n.selectionBehavior === "replace" ? !y : !y || n.isEmpty), S = b && y && n.selectionBehavior === "replace", C = x || S, w = (0, _.useRef)(null), T = C && y, E = (0, _.useRef)(!1), D = (0, _.useRef)(!1), O = n.getItemProps(r), k = (e) => {
+ l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), v && i.current && f.open(i.current, e, O.href, O.routerOptions);
+ }, A = { ref: i };
+ a ? (A.onPressStart = (e) => {
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || Cc(e.key)) && p(e);
+ }, u ? (A.onPressUp = x ? void 0 : (e) => {
+ e.pointerType === "mouse" && y && p(e);
+ }, A.onPress = x ? k : (e) => {
+ e.pointerType !== "keyboard" && e.pointerType !== "mouse" && y && p(e);
+ }) : A.onPress = (e) => {
+ if (x || S && e.pointerType !== "mouse") {
+ if (e.pointerType === "keyboard" && !Sc(e.key)) return;
+ k(e);
+ } else e.pointerType !== "keyboard" && y && p(e);
+ }) : (A.onPressStart = (e) => {
+ w.current = e.pointerType, E.current = T, D.current = x, y && (e.pointerType === "mouse" && !x || e.pointerType === "keyboard" && (!b || Cc(e.key))) && p(e);
+ }, A.onPress = (e) => {
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Sc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : y && p(e));
});
- let A = Ea(n.collection);
- if (m["data-collection"] = A, m["data-key"] = r, k.preventFocusOnPress = o, o && (k = B(k, {
+ let ee = Xo(n.collection);
+ if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = V(A, {
onPressStart(e) {
e.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
},
onPress(e) {
e.pointerType === "touch" && (n.setFocused(!0), n.setFocusedKey(r));
}
- })), D) for (let e of [
+ })), O) for (let e of [
"onPressStart",
"onPressEnd",
"onPressChange",
"onPress",
"onPressUp",
"onClick"
- ]) D[e] && (k[e] = kt(k[e], D[e]));
- let { pressProps: j, isPressed: M } = zr(k), te = x ? (e) => {
- C.current === "mouse" && (e.stopPropagation(), e.preventDefault(), O(e));
- } : void 0, { longPressProps: ne } = fo({
+ ]) O[e] && (A[e] = er(A[e], O[e]));
+ let { pressProps: j, isPressed: te } = ca(A), ne = S ? (e) => {
+ w.current === "mouse" && (e.stopPropagation(), e.preventDefault(), k(e));
+ } : void 0, { longPressProps: re } = Fs({
isDisabled: !T,
onLongPress(e) {
e.pointerType === "touch" && (p(e), n.setSelectionBehavior("toggle"));
}
- }), N = (e) => {
- C.current === "touch" && ee.current && e.preventDefault();
- }, re = d !== "none" && n.isLink(r) ? (e) => {
- ze.isOpening || e.preventDefault();
- } : void 0, ie = B(m, v || b || o && !c ? j : {}, T ? ne : {}, {
- onDoubleClick: te,
- onDragStartCapture: N,
- onClick: re,
+ }), M = (e) => {
+ w.current === "touch" && E.current && e.preventDefault();
+ }, ie = d !== "none" && n.isLink(r) ? (e) => {
+ un.isOpening || e.preventDefault();
+ } : void 0, ae = V(m, y || x || o && !c ? j : {}, T ? re : {}, {
+ onDoubleClick: ne,
+ onDragStartCapture: M,
+ onClick: ie,
id: t
- }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), ae = (e) => {
+ }, o ? { onMouseDown: (e) => e.preventDefault() } : void 0), oe = (e) => {
let t = e;
for (; t && t !== i.current;) {
let e = t.getAttribute("data-collection");
- if (e != null) return e !== A;
+ if (e != null) return e !== ee;
t = t.parentElement;
}
- return ge(e);
- }, oe = ie.onPointerDown;
- ie.onPointerDown = (e) => {
- let t = I(e);
- if (t && t !== i.current && ae(t)) {
+ return Vt(e);
+ }, se = ae.onPointerDown;
+ ae.onPointerDown = (e) => {
+ let t = R(e);
+ if (t && t !== i.current && oe(t)) {
e.stopPropagation();
return;
}
- oe?.(e);
+ se?.(e);
};
- let P = ie.onMouseDown;
- return ie.onMouseDown = (e) => {
- let t = I(e);
- if (t && t !== i.current && ae(t)) {
+ let ce = ae.onMouseDown;
+ return ae.onMouseDown = (e) => {
+ let t = R(e);
+ if (t && t !== i.current && oe(t)) {
e.stopPropagation();
return;
}
- P?.(e);
+ ce?.(e);
}, {
- itemProps: ie,
- isPressed: M,
+ itemProps: ae,
+ isPressed: te,
isSelected: n.isSelected(r),
isFocused: n.isFocused && n.focusedKey === r,
isDisabled: c,
- allowsSelection: v,
- hasAction: S
+ allowsSelection: y,
+ hasAction: C
};
}
-function Qo(e) {
+function Sc(e) {
return e === "Enter";
}
-function $o(e) {
+function Cc(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function es(e, t, n) {
- let r = Cr(e, { labelable: !0 }), i = e.selectionBehavior || "toggle", a = e.orientation || "vertical", o = e.linkBehavior || (i === "replace" ? "action" : "override");
+function wc(e, t, n) {
+ let r = H(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 } = Xo({
+ let { listProps: s } = bc({
...e,
ref: n,
selectionManager: t.selectionManager,
collection: t.collection,
disabledKeys: t.disabledKeys,
linkBehavior: o
- }), { focusWithinProps: c } = ra({
+ }), { focusWithinProps: c } = Oo({
onFocusWithin: e.onFocus,
onBlurWithin: e.onBlur,
onFocusWithinChange: e.onFocusChange
- }), l = Ft(e.id);
- ya.set(t, {
+ }), l = or(e.id);
+ Uo.set(t, {
id: l,
shouldUseVirtualFocus: e.shouldUseVirtualFocus,
shouldSelectOnPressUp: e.shouldSelectOnPressUp,
@@ -5061,24 +6659,24 @@ function es(e, t, n) {
linkBehavior: o,
UNSTABLE_itemBehavior: e.UNSTABLE_itemBehavior
});
- let { labelProps: u, fieldProps: d } = ta({
+ let { labelProps: u, fieldProps: d } = Eo({
...e,
id: l,
labelElementType: "span"
});
return {
labelProps: u,
- listBoxProps: B(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
+ listBoxProps: V(r, c, t.selectionManager.selectionMode === "multiple" ? { "aria-multiselectable": "true" } : {}, {
role: "listbox",
"aria-orientation": a,
- ...B(d, s)
+ ...V(d, s)
})
};
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function ts(e) {
- let { heading: t, "aria-label": n } = e, r = Ft();
+function Tc(e) {
+ let { heading: t, "aria-label": n } = e, r = or();
return {
itemProps: { role: "presentation" },
headingProps: t ? {
@@ -5097,8 +6695,8 @@ function ts(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function ns(e, t, n) {
- let { key: r } = e, i = ya.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 = Lt(), f = Lt(), p = {
+function Ec(e, t, n) {
+ let { key: r } = e, i = Uo.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 = cr(), f = cr(), p = {
role: "option",
"aria-disabled": a || void 0,
"aria-selected": t.selectionManager.selectionMode === "none" ? void 0 : o,
@@ -5108,9 +6706,9 @@ function ns(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"] = Ao(t.collection);
+ p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = $s(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = xa(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Zo({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Go(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = xc({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -5119,28 +6717,28 @@ function ns(e, t, n) {
isVirtualized: u,
shouldUseVirtualFocus: l,
isDisabled: a,
- onAction: h || m?.props?.onAction ? kt(m?.props?.onAction, h) : void 0,
+ onAction: h || m?.props?.onAction ? er(m?.props?.onAction, h) : void 0,
linkBehavior: i?.linkBehavior,
UNSTABLE_itemBehavior: i?.UNSTABLE_itemBehavior,
id: g
- }), { hoverProps: S } = qo({
+ }), { hoverProps: S } = _c({
isDisabled: a || !c,
onHoverStart() {
- _t() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
+ Hn() || (t.selectionManager.setFocused(!0), t.selectionManager.setFocusedKey(r));
}
- }), C = Cr(m?.props);
+ }), C = H(m?.props);
delete C.id;
- let w = He(m?.props);
+ let w = pn(m?.props);
return {
optionProps: {
...p,
- ...B(C, _, S, w),
+ ...V(C, _, S, w),
id: g
},
labelProps: { id: d },
descriptionProps: { id: f },
isFocused: y,
- isFocusVisible: y && t.selectionManager.isFocused && _t(),
+ isFocusVisible: y && t.selectionManager.isFocused && Hn(),
isSelected: o,
isDisabled: a,
isPressed: v,
@@ -5150,15 +6748,15 @@ function ns(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function rs() {
+function Dc() {
return window.ResizeObserver !== void 0;
}
-function is(e) {
- let { ref: t, box: n, onResize: r } = e, i = Un(r);
- (0, w.useEffect)(() => {
+function Oc(e) {
+ let { ref: t, box: n, onResize: r } = e, i = mi(r);
+ (0, _.useEffect)(() => {
let e = t?.current;
if (e) {
- if (rs()) {
+ if (Dc()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -5174,189 +6772,189 @@ function is(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var as = {};
-as = { dismiss: "تجاهل" };
+var kc = {};
+kc = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var os = {};
-os = { dismiss: "Отхвърляне" };
+var Ac = {};
+Ac = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var ss = {};
-ss = { dismiss: "Odstranit" };
+var jc = {};
+jc = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var cs = {};
-cs = { dismiss: "Luk" };
+var Mc = {};
+Mc = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var ls = {};
-ls = { dismiss: "Schließen" };
+var Nc = {};
+Nc = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var us = {};
-us = { dismiss: "Απόρριψη" };
+var Pc = {};
+Pc = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var ds = {};
-ds = { dismiss: "Dismiss" };
+var Fc = {};
+Fc = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var fs = {};
-fs = { dismiss: "Descartar" };
+var Ic = {};
+Ic = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var ps = {};
-ps = { dismiss: "Lõpeta" };
+var Lc = {};
+Lc = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var ms = {};
-ms = { dismiss: "Hylkää" };
+var Rc = {};
+Rc = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var hs = {};
-hs = { dismiss: "Rejeter" };
+var zc = {};
+zc = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var gs = {};
-gs = { dismiss: "התעלם" };
+var Bc = {};
+Bc = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var _s = {};
-_s = { dismiss: "Odbaci" };
+var Vc = {};
+Vc = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var vs = {};
-vs = { dismiss: "Elutasítás" };
+var Hc = {};
+Hc = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var ys = {};
-ys = { dismiss: "Ignora" };
+var Uc = {};
+Uc = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var bs = {};
-bs = { dismiss: "閉じる" };
+var Wc = {};
+Wc = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var xs = {};
-xs = { dismiss: "무시" };
+var Gc = {};
+Gc = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Ss = {};
-Ss = { dismiss: "Atmesti" };
+var Kc = {};
+Kc = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Cs = {};
-Cs = { dismiss: "Nerādīt" };
+var qc = {};
+qc = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var ws = {};
-ws = { dismiss: "Lukk" };
+var Jc = {};
+Jc = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var Ts = {};
-Ts = { dismiss: "Negeren" };
+var Yc = {};
+Yc = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var Es = {};
-Es = { dismiss: "Zignoruj" };
+var Xc = {};
+Xc = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var Ds = {};
-Ds = { dismiss: "Descartar" };
+var Zc = {};
+Zc = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var Os = {};
-Os = { dismiss: "Dispensar" };
+var Qc = {};
+Qc = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var ks = {};
-ks = { dismiss: "Revocare" };
+var $c = {};
+$c = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var As = {};
-As = { dismiss: "Пропустить" };
+var el = {};
+el = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var js = {};
-js = { dismiss: "Zrušiť" };
+var tl = {};
+tl = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var Ms = {};
-Ms = { dismiss: "Opusti" };
+var nl = {};
+nl = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var Ns = {};
-Ns = { dismiss: "Odbaci" };
+var rl = {};
+rl = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var Ps = {};
-Ps = { dismiss: "Avvisa" };
+var il = {};
+il = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var Fs = {};
-Fs = { dismiss: "Kapat" };
+var al = {};
+al = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var Is = {};
-Is = { dismiss: "Скасувати" };
+var ol = {};
+ol = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var Ls = {};
-Ls = { dismiss: "取消" };
+var sl = {};
+sl = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var Rs = {};
-Rs = { dismiss: "關閉" };
+var cl = {};
+cl = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var zs = {};
-zs = {
- "ar-AE": as,
- "bg-BG": os,
- "cs-CZ": ss,
- "da-DK": cs,
- "de-DE": ls,
- "el-GR": us,
- "en-US": ds,
- "es-ES": fs,
- "et-EE": ps,
- "fi-FI": ms,
- "fr-FR": hs,
- "he-IL": gs,
- "hr-HR": _s,
- "hu-HU": vs,
- "it-IT": ys,
- "ja-JP": bs,
- "ko-KR": xs,
- "lt-LT": Ss,
- "lv-LV": Cs,
- "nb-NO": ws,
- "nl-NL": Ts,
- "pl-PL": Es,
- "pt-BR": Ds,
- "pt-PT": Os,
- "ro-RO": ks,
- "ru-RU": As,
- "sk-SK": js,
- "sl-SI": Ms,
- "sr-SP": Ns,
- "sv-SE": Ps,
- "tr-TR": Fs,
- "uk-UA": Is,
- "zh-CN": Ls,
- "zh-TW": Rs
+var ll = {};
+ll = {
+ "ar-AE": kc,
+ "bg-BG": Ac,
+ "cs-CZ": jc,
+ "da-DK": Mc,
+ "de-DE": Nc,
+ "el-GR": Pc,
+ "en-US": Fc,
+ "es-ES": Ic,
+ "et-EE": Lc,
+ "fi-FI": Rc,
+ "fr-FR": zc,
+ "he-IL": Bc,
+ "hr-HR": Vc,
+ "hu-HU": Hc,
+ "it-IT": Uc,
+ "ja-JP": Wc,
+ "ko-KR": Gc,
+ "lt-LT": Kc,
+ "lv-LV": qc,
+ "nb-NO": Jc,
+ "nl-NL": Yc,
+ "pl-PL": Xc,
+ "pt-BR": Zc,
+ "pt-PT": Qc,
+ "ro-RO": $c,
+ "ru-RU": el,
+ "sk-SK": tl,
+ "sl-SI": nl,
+ "sr-SP": rl,
+ "sv-SE": il,
+ "tr-TR": al,
+ "uk-UA": ol,
+ "zh-CN": sl,
+ "zh-TW": cl
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function Bs(e) {
+function ul(e) {
return e && e.__esModule ? e.default : e;
}
-function Vs(e) {
- let { onDismiss: t, ...n } = e, r = Gn(n, gr(Bs(zs), "@react-aria/overlays").format("dismiss")), i = () => {
+function dl(e) {
+ let { onDismiss: t, ...n } = e, r = gi(n, Vi(ul(ll), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
- return /*#__PURE__*/ w.createElement(da, null, /*#__PURE__*/ w.createElement("button", {
+ return /*#__PURE__*/ _.createElement(Io, null, /*#__PURE__*/ _.createElement("button", {
...r,
tabIndex: -1,
onClick: i,
@@ -5368,38 +6966,38 @@ function Vs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var Hs = [];
-function Us(e, t) {
- let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, w.useRef)(void 0);
- (0, w.useEffect)(() => {
- if (i && !Hs.includes(t)) return Hs.push(t), () => {
- let e = Hs.indexOf(t);
- e >= 0 && Hs.splice(e, 1);
+var fl = [];
+function pl(e, t) {
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, _.useRef)(void 0);
+ (0, _.useEffect)(() => {
+ if (i && !fl.includes(t)) return fl.push(t), () => {
+ let e = fl.indexOf(t);
+ e >= 0 && fl.splice(e, 1);
};
}, [i, t]);
let l = () => {
- Hs[Hs.length - 1] === t && n && n();
+ fl[fl.length - 1] === t && n && n();
}, u = (e) => {
- let n = Hs[Hs.length - 1];
- c.current = n, (!s || s(I(e))) && n === t && e.stopPropagation();
+ let n = fl[fl.length - 1];
+ c.current = n, (!s || s(R(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(I(e))) && (Hs[Hs.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
- }, { keyboardProps: f } = tn({ shortcuts: { Escape: () => {
+ (!s || s(R(e))) && (fl[fl.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ }, { keyboardProps: f } = Dr({ shortcuts: { Escape: () => {
if (!o) {
l();
return;
}
return !1;
} } });
- Jo({
+ vc({
ref: t,
onInteractOutside: a && i ? d : void 0,
onInteractOutsideStart: u
});
- let { focusWithinProps: p } = ra({
+ let { focusWithinProps: p } = Oo({
isDisabled: !r,
onBlurWithin: (e) => {
- !e.relatedTarget || ci(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
+ !e.relatedTarget || ja(e.relatedTarget) || (!s || s(e.relatedTarget)) && n?.();
}
});
return {
@@ -5412,26 +7010,26 @@ function Us(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var Ws = typeof document < "u" && window.visualViewport, Gs = 0, Ks;
-function qs(e = {}) {
+var ml = typeof document < "u" && window.visualViewport, hl = 0, gl;
+function _l(e = {}) {
let { isDisabled: t } = e;
z(() => {
- if (!t) return Gs++, Gs === 1 && (Ks = ke() && je() ? Ys() : Js()), () => {
- Gs--, Gs === 0 && Ks();
+ if (!t) return hl++, hl === 1 && (gl = $t() && tn() ? yl() : vl()), () => {
+ hl--, hl === 0 && gl();
};
}, [t]);
}
-function Js() {
+function vl() {
let e = window.innerWidth - document.documentElement.clientWidth;
- return kt(e > 0 && ("scrollbarGutter" in document.documentElement.style ? ae(document.documentElement, "scrollbar-gutter", "stable") : ae(document.documentElement, "padding-right", `${e}px`)), ae(document.documentElement, "overflow", "hidden"));
+ return er(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Dt(document.documentElement, "scrollbar-gutter", "stable") : Dt(document.documentElement, "padding-right", `${e}px`)), Dt(document.documentElement, "overflow", "hidden"));
}
-function Ys() {
- let e = ae(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
- let r = I(e);
- t = Ei(r) ? r : Di(r, !0), n = !1;
+function yl() {
+ let e = Dt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
+ let r = R(e);
+ t = Ya(r) ? r : Xa(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 = jr();
+ }, i = document.createElement("style"), a = U();
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)) {
@@ -5442,27 +7040,27 @@ function Ys() {
t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && e.preventDefault();
}
}, s = (e) => {
- let t = I(e), n = e.relatedTarget;
- n && Vn(n) ? (n.focus({ preventScroll: !0 }), Xs(n, Vn(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ let t = R(e), n = e.relatedTarget;
+ n && fi(n) ? (n.focus({ preventScroll: !0 }), bl(n, fi(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
writable: !0,
value: function(e) {
- let t = se(), n = t != null && Vn(t);
+ let t = At(), n = t != null && fi(t);
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Xs(this, n);
+ }), (!e || !e.preventScroll) && bl(this, n);
}
});
- let l = kt(ie(document, "touchstart", r, {
+ let l = er(Et(document, "touchstart", r, {
passive: !1,
capture: !0
- }), ie(document, "touchmove", o, {
+ }), Et(document, "touchmove", o, {
passive: !1,
capture: !0
- }), ie(document, "blur", s, !0));
+ }), Et(document, "blur", s, !0));
return () => {
e(), l(), i.remove(), Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -5471,18 +7069,18 @@ function Ys() {
});
};
}
-function Xs(e, t) {
- t || !Ws ? Zs(e) : Ws.addEventListener("resize", () => Zs(e), { once: !0 });
+function bl(e, t) {
+ t || !ml ? xl(e) : ml.addEventListener("resize", () => xl(e), { once: !0 });
}
-function Zs(e) {
+function xl(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
- let e = Di(n);
+ let e = Xa(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;
- Ws && (n = Math.min(n, Ws.offsetTop + Ws.height));
+ ml && (n = Math.min(n, ml.offsetTop + ml.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)),
@@ -5495,33 +7093,33 @@ function Zs(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Qs = {
+var Sl = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, $s = {
+}, Cl = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, ec = {
+}, wl = {
top: "left",
left: "top"
-}, tc = {
+}, Tl = {
top: "height",
left: "width"
-}, nc = {
+}, El = {
width: "totalWidth",
height: "totalHeight"
-}, rc = {}, ic = () => typeof document < "u" ? window.visualViewport : null;
-function ac(e, t) {
+}, Dl = {}, Ol = () => typeof document < "u" ? window.visualViewport : null;
+function kl(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} = gc(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
- return je() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
+ } else ({width: n, height: r, top: o, left: s} = Bl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ return tn() && (e.tagName === "BODY" || e.tagName === "HTML") && l && (c.top = 0, c.left = 0, o = t?.pageTop ?? 0, s = t?.pageLeft ?? 0), {
width: n,
height: r,
totalWidth: i,
@@ -5531,7 +7129,7 @@ function ac(e, t) {
left: s
};
}
-function oc(e) {
+function Al(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -5539,11 +7137,11 @@ function oc(e) {
height: e.scrollHeight
};
}
-function sc(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[tc[e]], l = o[e] + r.scroll[Qs[e]] + a, u = o[e] + r.scroll[Qs[e]] + c - a, d = t - s + r.scroll[Qs[e]] + o[e] - r[Qs[e]], f = t - s + n + r.scroll[Qs[e]] + o[e] - r[Qs[e]];
+function jl(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Tl[e]], l = o[e] + r.scroll[Sl[e]] + a, u = o[e] + r.scroll[Sl[e]] + c - a, d = t - s + r.scroll[Sl[e]] + o[e] - r[Sl[e]], f = t - s + n + r.scroll[Sl[e]] + o[e] - r[Sl[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function cc(e) {
+function Ml(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -5552,79 +7150,79 @@ function cc(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function lc(e) {
- if (rc[e]) return rc[e];
- let [t, n] = e.split(" "), r = Qs[t] || "right", i = ec[r];
- Qs[n] || (n = "center");
- let a = tc[r], o = tc[i];
- return rc[e] = {
+function Nl(e) {
+ if (Dl[e]) return Dl[e];
+ let [t, n] = e.split(" "), r = Sl[t] || "right", i = wl[r];
+ Sl[n] || (n = "center");
+ let a = Tl[r], o = Tl[i];
+ return Dl[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, rc[e];
+ }, Dl[e];
}
-function uc(e, t, n, r, i, a, o, s, c, l, u) {
+function Pl(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] = ca(_[m], v, y), d === p) {
- let t = s ? u[h] : u[nc[h]];
- _[$s[p]] = Math.floor(t - e[p] + i);
+ if (_[m] = No(_[m], v, y), d === p) {
+ let t = s ? u[h] : u[El[h]];
+ _[Cl[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function dc(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[nc.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Fl(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[El.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 fc(e, t, n, r, i, a, o, s) {
+function Il(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[$s[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[$s[l]] - i);
-}
-function pc(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = lc(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = uc(t, s, n, v, u, d, l, f, m, h, c), T = u, ee = fc(s, l, t, i, a + u, v, c, g);
- if (o && n[y] > ee) {
- let e = lc(`${$s[S]} ${C}`), r = uc(t, s, n, e, u, d, l, f, m, h, c);
- fc(s, l, t, i, a + u, e, c, g) > ee && (v = e, w = r, T = u);
- }
- let E = "bottom";
- v.axis === "top" ? v.placement === "top" ? E = "top" : v.placement === "bottom" && (E = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? E = "bottom" : v.crossPlacement === "bottom" && (E = "top"));
- let D = sc(b, w[b], n[x], s, c, a, l);
- w[b] += D;
- let O = dc(w, s, l, f, i, a, n.height, E, c, g, _);
- p && p < O && (O = p), n.height = Math.min(n.height, O), w = uc(t, s, n, v, T, d, l, f, m, h, c), D = sc(b, w[b], n[x], s, c, a, l), w[b] += D;
- let k = {}, A = t[b] - w[b] - i[Qs[b]], j = A + .5 * t[x], M = m / 2 + h, te = Qs[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - te - m / 2 - h;
- k[b] = ca(ca(j, t[b] + m / 2 - (w[b] + i[Qs[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Qs[b]])), M, ne), {placement: S, crossPlacement: C} = v, m ? A = k[b] : C === "right" ? A += t[x] : C === "center" && (A += t[x] / 2);
- let N = S === "left" || S === "top" ? n[y] : 0, re = {
- x: S === "top" || S === "bottom" ? A : N,
- y: S === "left" || S === "right" ? A : N
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Cl[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[Cl[l]] - i);
+}
+function Ll(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Nl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Pl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Il(s, l, t, i, a + u, v, c, g);
+ if (o && n[y] > E) {
+ let e = Nl(`${Cl[S]} ${C}`), r = Pl(t, s, n, e, u, d, l, f, m, h, c);
+ Il(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 = jl(b, w[b], n[x], s, c, a, l);
+ w[b] += O;
+ let k = Fl(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Pl(t, s, n, v, T, d, l, f, m, h, c), O = jl(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, ee = t[b] - w[b] - i[Sl[b]], j = ee + .5 * t[x], te = m / 2 + h, ne = Sl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), re = n[x] - ne - m / 2 - h;
+ A[b] = No(No(j, t[b] + m / 2 - (w[b] + i[Sl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Sl[b]])), te, re), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
+ let M = S === "left" || S === "top" ? n[y] : 0, ie = {
+ x: S === "top" || S === "bottom" ? ee : M,
+ y: S === "left" || S === "right" ? ee : M
};
return {
position: w,
- maxHeight: O,
- arrowOffsetLeft: k.left,
- arrowOffsetTop: k.top,
+ maxHeight: k,
+ arrowOffsetLeft: A.left,
+ arrowOffsetTop: A.top,
placement: S,
- triggerAnchorPoint: re
+ triggerAnchorPoint: ie
};
}
-function mc(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 = ic(), h = r instanceof HTMLElement ? vc(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? gc(n, !1, p) : _c(n, h, !1, p);
+function Rl(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 = Ol(), h = r instanceof HTMLElement ? Hl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Bl(n, !1, p) : Vl(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 = gc(r, !0), x = cc(r);
+ let b = Bl(r, !0), x = Ml(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = oc(i), C = ac(s, m), w = ac(h, m), T;
+ let S = Al(i), C = kl(s, m), w = kl(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = hc(h, !1);
+ let e = zl(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -5636,11 +7234,11 @@ function mc(e) {
left: 0,
width: 0,
height: 0
- } : _c(s, h, !1);
- let ee = F(s, h);
- return pc(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, ee, m);
+ } : Vl(s, h, !1);
+ let E = L(s, h);
+ return Ll(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function hc(e, t) {
+function zl(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,
@@ -5649,8 +7247,8 @@ function hc(e, t) {
height: a
};
}
-function gc(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || hc(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function Bl(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || zl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -5658,30 +7256,30 @@ function gc(e, t, n) {
height: o
};
}
-function _c(e, t, n, r) {
+function Vl(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || hc(e, n);
+ if (i.position === "fixed") a = r || zl(e, n);
else {
- a = gc(e, n, r);
- let i = gc(t, n), o = window.getComputedStyle(t);
+ a = Bl(e, n, r);
+ let i = Bl(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 vc(e) {
+function Hl(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !yc(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !yc(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Ul(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Ul(t);) t = t.parentElement;
return t || document.documentElement;
}
-function yc(e) {
+function Ul(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 bc = typeof document < "u" ? window.visualViewport : null;
-function xc(e) {
- let { direction: t } = nr(), { 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, w.useState)(null), x = [
+var Wl = typeof document < "u" ? window.visualViewport : null;
+function Gl(e) {
+ let { direction: t } = Di(), { 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: v = 0, getTargetRect: y } = e, [b, x] = (0, _.useState)(null), S = [
p,
s,
i.current,
@@ -5696,17 +7294,17 @@ function xc(e) {
m,
t,
g,
- _,
+ v,
n
- ], S = (0, w.useRef)(bc?.scale);
- (0, w.useEffect)(() => {
- m && (S.current = bc?.scale);
+ ], C = (0, _.useRef)(Wl?.scale);
+ (0, _.useEffect)(() => {
+ m && (C.current = Wl?.scale);
}, [m]);
- let C = (0, w.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || bc?.scale !== S.current) return;
+ let w = (0, _.useCallback)(() => {
+ if (p === !1 || !m || !i.current || !r.current || !u || Wl?.scale !== C.current) return;
let e = null;
- if (o.current && le(o.current)) {
- let t = se()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
+ if (o.current && Mt(o.current)) {
+ let t = At()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
e = {
type: "top",
offset: (t?.top ?? 0) - n.top
@@ -5714,8 +7312,8 @@ function xc(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 = mc({
- placement: Cc(s, t),
+ let _ = Rl({
+ placement: ql(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -5725,89 +7323,89 @@ function xc(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? hc(a.current, !0).width : 0),
- arrowBoundaryOffset: _,
- targetRect: v?.(r.current)
+ arrowSize: n ?? (a?.current ? zl(a.current, !0).width : 0),
+ arrowBoundaryOffset: v,
+ targetRect: y?.(r.current)
});
- if (!y.position) return;
- h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(y.position).forEach((e) => h.style[e] = y.position[e] + "px"), h.style.maxHeight = y.maxHeight == null ? "" : y.maxHeight + "px";
- let x = se();
- if (e && x && o.current) {
- let t = x.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
+ if (!_.position) return;
+ h.style.top = "", h.style.bottom = "", h.style.left = "", h.style.right = "", Object.keys(_.position).forEach((e) => h.style[e] = _.position[e] + "px"), h.style.maxHeight = _.maxHeight == null ? "" : _.maxHeight + "px";
+ let b = At();
+ if (e && b && o.current) {
+ let t = b.getBoundingClientRect(), n = o.current.getBoundingClientRect(), r = t[e.type] - n[e.type];
o.current.scrollTop += r - e.offset;
}
- b(y);
- }, x);
- z(C, x), Sc(C), is({
+ x(_);
+ }, S);
+ z(w, S), Kl(w), Oc({
ref: i,
- onResize: C
- }), is({
+ onResize: w
+ }), Oc({
ref: r,
- onResize: C
+ onResize: w
});
- let T = (0, w.useRef)(!1);
+ let T = (0, _.useRef)(!1);
z(() => {
let e, t = () => {
T.current = !0, clearTimeout(e), e = setTimeout(() => {
T.current = !1;
- }, 500), C();
+ }, 500), w();
}, n = () => {
T.current && t();
};
- bc?.addEventListener("resize", t), bc?.addEventListener("scroll", n);
- let r = ie(ce(window), "scroll", n);
+ Wl?.addEventListener("resize", t), Wl?.addEventListener("scroll", n);
+ let r = Et(jt(window), "scroll", n);
return () => {
- bc?.removeEventListener("resize", t), bc?.removeEventListener("scroll", n), r();
+ Wl?.removeEventListener("resize", t), Wl?.removeEventListener("scroll", n), r();
};
- }, [C]);
- let ee = (0, w.useCallback)(() => {
+ }, [w]);
+ let E = (0, _.useCallback)(() => {
T.current || h?.();
}, [h, T]);
- return ho({
+ return Rs({
triggerRef: r,
isOpen: m,
- onClose: h && ee
+ onClose: h && E
}), {
overlayProps: { style: {
- position: y ? "absolute" : "fixed",
- top: y ? void 0 : 0,
- left: y ? void 0 : 0,
+ position: b ? "absolute" : "fixed",
+ top: b ? void 0 : 0,
+ left: b ? void 0 : 0,
zIndex: 1e5,
- ...y?.position,
- maxHeight: y?.maxHeight ?? "100vh"
+ ...b?.position,
+ maxHeight: b?.maxHeight ?? "100vh"
} },
- placement: y?.placement ?? null,
- triggerAnchorPoint: y?.triggerAnchorPoint ?? null,
+ placement: b?.placement ?? null,
+ triggerAnchorPoint: b?.triggerAnchorPoint ?? null,
arrowProps: {
"aria-hidden": "true",
role: "presentation",
style: {
- left: y?.arrowOffsetLeft,
- top: y?.arrowOffsetTop
+ left: b?.arrowOffsetLeft,
+ top: b?.arrowOffsetTop
}
},
- updatePosition: C
+ updatePosition: w
};
}
-function Sc(e) {
+function Kl(e) {
z(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function Cc(e, t) {
+function ql(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 wc(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 } = Us({
+function Jl(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 } = pl({
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 } = xc({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Gl({
...c,
targetRef: n,
overlayRef: r,
@@ -5815,17 +7413,17 @@ function wc(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)
});
- qs({ isDisabled: a || !t.isOpen }), (0, w.useEffect)(() => {
- if (t.isOpen && r.current) return a ? va(i?.current ?? r.current) : _a([i?.current ?? r.current], { shouldUseInert: !0 });
+ _l({ isDisabled: a || !t.isOpen }), (0, _.useEffect)(() => {
+ if (t.isOpen && r.current) return a ? Ho(i?.current ?? r.current) : Vo([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
t.isOpen,
r,
i
]);
- let { focusWithinProps: g } = ra(e);
+ let { focusWithinProps: g } = Oo(e);
return {
- popoverProps: B(u, f, g),
+ popoverProps: V(u, f, g),
arrowProps: p,
underlayProps: d,
placement: m,
@@ -5834,13 +7432,13 @@ function wc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var Tc = /* @__PURE__ */ new WeakMap();
+var Yl = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function Ec(e, t, n) {
+function Xl(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: _ } = zr({
+ }, { pressProps: g, isPressed: v } = ca({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -5848,7 +7446,7 @@ function Ec(e, t, n) {
onPressUp: d,
onClick: f,
isDisabled: p
- }), { pressProps: v, isPressed: y } = zr({
+ }), { pressProps: y, isPressed: b } = ca({
onPressStart: s,
onPressEnd: c,
onPressChange: l,
@@ -5858,49 +7456,49 @@ function Ec(e, t, n) {
onPress(e) {
u?.(e), t.setSelectedValue(r), n.current?.focus();
}
- }), { focusableProps: b } = sn(B(e, { onFocus: () => t.setLastFocusedValue(r) }), n), x = B(g, b), S = Cr(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: T, form: ee, descriptionId: E, errorMessageId: D, validationBehavior: O } = Tc.get(t);
- Fi(n, t.defaultSelectedValue, t.setSelectedValue), Ii({ validationBehavior: O }, t, n);
- let k = Vi();
+ }), { focusableProps: x } = Mr(V(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = V(g, x), C = H(e, { labelable: !0 }), w = -1;
+ t.selectedValue == null ? (t.lastFocusedValue === r || t.lastFocusedValue == null) && (w = 0) : t.selectedValue === r && (w = 0), p && (w = void 0);
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = Yl.get(t);
+ io(n, t.defaultSelectedValue, t.setSelectedValue), ao({ validationBehavior: k }, t, n);
+ let A = uo();
return {
- labelProps: B(v, (0, w.useMemo)(() => ({
+ labelProps: V(y, (0, _.useMemo)(() => ({
onClick: (e) => e.preventDefault(),
onMouseDown: (e) => e.preventDefault()
}), [])),
- inputProps: B(S, {
- ...x,
+ inputProps: V(C, {
+ ...S,
type: "radio",
name: T,
- form: ee,
- tabIndex: C,
+ form: E,
+ tabIndex: w,
disabled: p,
- required: t.isRequired && O === "native",
+ required: t.isRequired && k === "native",
checked: m,
value: r,
onChange: h,
"aria-describedby": [
e["aria-describedby"],
- k.id,
- t.isInvalid ? D : null,
- E
+ A.id,
+ t.isInvalid ? O : null,
+ D
].filter(Boolean).join(" ") || void 0
}),
- descriptionProps: k,
+ descriptionProps: A,
isDisabled: p,
isSelected: m,
- isPressed: _ || y
+ isPressed: v || b
};
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function Dc(e, t) {
- let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = nr(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = na({
+function Zl(e, t) {
+ let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Di(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Do({
...e,
labelElementType: "span",
isInvalid: t.isInvalid,
errorMessage: e.errorMessage || d
- }), _ = Cr(e, { labelable: !0 }), { focusWithinProps: v } = ra({
+ }), _ = H(e, { labelable: !0 }), { focusWithinProps: v } = Oo({
onBlurWithin(n) {
e.onBlur?.(n), t.selectedValue || t.setLastFocusedValue(null);
},
@@ -5908,13 +7506,13 @@ function Dc(e, t) {
onFocusWithinChange: e.onFocusChange
});
function y(e, n) {
- let r = vi(n.currentTarget, {
- from: I(n),
- accept: (e) => e instanceof M(e).HTMLInputElement && e.type === "radio"
+ let r = Va(n.currentTarget, {
+ from: R(n),
+ accept: (e) => e instanceof xt(e).HTMLInputElement && e.type === "radio"
}), i;
return e === "next" ? (i = r.nextNode(), i ||= (r.currentNode = n.currentTarget, r.firstChild())) : (i = r.previousNode(), i ||= (r.currentNode = n.currentTarget, r.lastChild())), i ? (i.focus(), t.setSelectedValue(i.value), !0) : !1;
}
- let { keyboardProps: b } = tn({
+ let { keyboardProps: b } = Dr({
shortcuts: {
ArrowRight: (e) => y(l === "rtl" && s !== "vertical" ? "prev" : "next", e),
ArrowLeft: (e) => y(l === "rtl" && s !== "vertical" ? "next" : "prev", e),
@@ -5922,15 +7520,15 @@ function Dc(e, t) {
ArrowUp: (e) => y("prev", e)
},
allowRepeats: !0
- }), x = Ft(n);
- return Tc.set(t, {
+ }), x = or(n);
+ return Yl.set(t, {
name: x,
form: r,
descriptionId: h.id,
errorMessageId: g.id,
validationBehavior: c
}), {
- radioGroupProps: B(_, {
+ radioGroupProps: V(_, {
role: "radiogroup",
...b,
"aria-invalid": t.isInvalid || void 0,
@@ -5952,21 +7550,21 @@ function Dc(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var Oc = /* @__PURE__ */ new WeakMap();
-function kc(e, t, n) {
- let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = Mo({
+var Ql = /* @__PURE__ */ new WeakMap();
+function $l(e, t, n) {
+ let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = tc({
usage: "search",
sensitivity: "base"
- }), u = (0, w.useMemo)(() => r || new Oa(t.collection, t.disabledKeys, n, l), [
+ }), u = (0, _.useMemo)(() => r || new Qo(t.collection, t.disabledKeys, n, l), [
r,
t.collection,
t.disabledKeys,
l,
n
- ]), { menuTriggerProps: d, menuProps: f } = vo({
+ ]), { menuTriggerProps: d, menuProps: f } = Vs({
isDisabled: i,
type: "listbox"
- }, t, n), { keyboardProps: p } = tn({
+ }, t, n), { keyboardProps: p } = Dr({
shortcuts: {
ArrowLeft: () => {
if (t.selectionManager.selectionMode === "multiple") return !1;
@@ -5982,21 +7580,21 @@ function kc(e, t, n) {
allowRepeats: !0,
onKeyDown: e.onKeyDown,
onKeyUp: e.onKeyUp
- }), { typeSelectProps: m } = bo({
+ }), { typeSelectProps: m } = Us({
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 } = na({
+ }), { isInvalid: h, validationErrors: g, validationDetails: v } = t.displayValidation, { labelProps: y, fieldProps: b, descriptionProps: x, errorMessageProps: S } = Do({
...e,
labelElementType: "span",
isInvalid: h,
errorMessage: e.errorMessage || g
});
t.selectionManager.selectionMode === "multiple" && (m = {});
- let S = Cr(e, { labelable: !0 }), C = B(m, d, y), T = Ft();
- return Oc.set(t, {
+ let C = H(e, { labelable: !0 }), w = V(m, d, b), T = or();
+ return Ql.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -6004,20 +7602,20 @@ function kc(e, t, n) {
validationBehavior: c
}), {
labelProps: {
- ...v,
+ ...y,
onClick: () => {
- e.isDisabled || (n.current?.focus(), yt("keyboard"));
+ e.isDisabled || (n.current?.focus(), Wn("keyboard"));
}
},
- triggerProps: B(S, {
- ...C,
+ triggerProps: V(C, {
+ ...w,
isDisabled: i,
- onKeyDown: kt(C.onKeyDown, p.onKeyDown),
+ onKeyDown: er(w.onKeyDown, p.onKeyDown),
onKeyUp: p.onKeyUp,
"aria-labelledby": [
T,
- C["aria-labelledby"],
- C["aria-label"] && !C["aria-labelledby"] ? C.id : null
+ w["aria-labelledby"],
+ w["aria-label"] && !w["aria-labelledby"] ? w.id : null
].filter(Boolean).join(" "),
onFocus(n) {
t.isFocused || (e.onFocus && e.onFocus(n), e.onFocusChange && e.onFocusChange(!0), t.setFocused(!0));
@@ -6036,15 +7634,15 @@ function kc(e, t, n) {
disallowEmptySelection: !0,
linkBehavior: "selection",
onBlur: (n) => {
- F(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
+ L(n.currentTarget, n.relatedTarget) || (e.onBlur && e.onBlur(n), e.onFocusChange && e.onFocusChange(!1), t.setFocused(!1));
},
- "aria-labelledby": [y["aria-labelledby"], C["aria-label"] && !y["aria-labelledby"] ? C.id : null].filter(Boolean).join(" ")
+ "aria-labelledby": [b["aria-labelledby"], w["aria-label"] && !b["aria-labelledby"] ? w.id : null].filter(Boolean).join(" ")
},
- descriptionProps: b,
- errorMessageProps: x,
+ descriptionProps: x,
+ errorMessageProps: S,
isInvalid: h,
validationErrors: g,
- validationDetails: _,
+ validationDetails: v,
hiddenSelectProps: {
isDisabled: i,
name: o,
@@ -6057,18 +7655,18 @@ function kc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function Ac(e, t, n) {
- let r = Oc.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = ua({ style: {
+function eu(e, t, n) {
+ let r = Ql.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = Fo({ style: {
position: "fixed",
top: 0,
left: 0
} });
- Fi(e.selectRef, t.defaultValue, t.setValue), Ii({
+ io(e.selectRef, t.defaultValue, t.setValue), ao({
validationBehavior: c,
focus: () => n.current?.focus()
}, t, e.selectRef);
- let d = t.setValue, f = (0, w.useCallback)((e) => {
- let t = I(e);
+ let d = t.setValue, f = (0, _.useCallback)((e) => {
+ let t = R(e);
t.multiple ? d(Array.from(t.selectedOptions, (e) => e.value)) : d(e.currentTarget.value);
}, [d]);
return {
@@ -6093,32 +7691,32 @@ function Ac(e, t, n) {
}
};
}
-function jc(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, w.useRef)(null), c = (0, w.useRef)(null), { containerProps: l, selectProps: u } = Ac({
+function tu(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, _.useRef)(null), c = (0, _.useRef)(null), { containerProps: l, selectProps: u } = eu({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
- if (t.collection.size <= 300) return /*#__PURE__*/ w.createElement("div", {
+ if (t.collection.size <= 300) return /*#__PURE__*/ _.createElement("div", {
...l,
"data-testid": "hidden-select-container"
- }, /*#__PURE__*/ w.createElement("label", null, r, /*#__PURE__*/ w.createElement("select", {
+ }, /*#__PURE__*/ _.createElement("label", null, r, /*#__PURE__*/ _.createElement("select", {
...u,
ref: s
- }, /*#__PURE__*/ w.createElement("option", {
+ }, /*#__PURE__*/ _.createElement("option", {
value: "",
label: "\xA0"
}, "\xA0"), [...t.collection.getKeys()].map((e) => {
let n = t.collection.getItem(e);
- if (n && n.type === "item") return /*#__PURE__*/ w.createElement("option", {
+ if (n && n.type === "item") return /*#__PURE__*/ _.createElement("option", {
key: n.key,
value: n.key
}, n.textValue);
- }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ w.createElement("option", {
+ }), t.collection.size === 0 && i && d.map((e, t) => /*#__PURE__*/ _.createElement("option", {
key: t,
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = Oc.get(t) || {};
+ let { validationBehavior: e } = Ql.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -6129,7 +7727,7 @@ function jc(e) {
disabled: o,
value: t ?? ""
};
- return e === "native" ? /*#__PURE__*/ w.createElement("input", {
+ return e === "native" ? /*#__PURE__*/ _.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null,
@@ -6137,20 +7735,20 @@ function jc(e) {
type: "text",
required: n === 0 && u.required,
onChange: () => {}
- }) : /*#__PURE__*/ w.createElement("input", {
+ }) : /*#__PURE__*/ _.createElement("input", {
key: n,
...r,
ref: n === 0 ? c : null
});
});
- return /*#__PURE__*/ w.createElement(w.Fragment, null, n);
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, n);
}
return null;
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function Mc(e, t, n) {
- let { labelProps: r, inputProps: i, isSelected: a, ...o } = $i(e, t, n);
+function nu(e, t, n) {
+ let { labelProps: r, inputProps: i, isSelected: a, ...o } = Co(e, t, n);
return {
labelProps: r,
inputProps: {
@@ -6164,7 +7762,7 @@ function Mc(e, t, n) {
}
//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var Nc = /* @__PURE__ */ u(((e) => {
+var ru = /* @__PURE__ */ u(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -6217,18 +7815,18 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function x(e) {
if (h = !1, b(e), !m) {
- if (n(c) !== null) m = !0, S || (S = !0, D());
+ if (n(c) !== null) m = !0, S || (S = !0, O());
else {
var t = n(l);
- t !== null && A(x, t.startTime - e);
+ t !== null && ee(x, t.startTime - e);
}
}
}
var S = !1, C = -1, w = 5, T = -1;
- function ee() {
+ function E() {
return g ? !0 : !(e.unstable_now() - T < w);
}
- function E() {
+ function D() {
if (g = !1, S) {
var t = e.unstable_now();
T = t;
@@ -6239,7 +7837,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
var a = f;
try {
b: {
- for (b(t), d = n(c); d !== null && !(d.expirationTime > t && ee());) {
+ for (b(t), d = n(c); d !== null && !(d.expirationTime > t && E());) {
var o = d.callback;
if (typeof o == "function") {
d.callback = null, f = d.priorityLevel;
@@ -6255,7 +7853,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (d !== null) i = !0;
else {
var u = n(l);
- u !== null && A(x, u.startTime - t), i = !1;
+ u !== null && ee(x, u.startTime - t), i = !1;
}
}
break a;
@@ -6265,23 +7863,23 @@ var Nc = /* @__PURE__ */ u(((e) => {
i = void 0;
}
} finally {
- i ? D() : S = !1;
+ i ? O() : S = !1;
}
}
}
- var D;
- if (typeof y == "function") D = function() {
- y(E);
+ var O;
+ if (typeof y == "function") O = function() {
+ y(D);
};
else if (typeof MessageChannel < "u") {
- var O = new MessageChannel(), k = O.port2;
- O.port1.onmessage = E, D = function() {
- k.postMessage(null);
+ var k = new MessageChannel(), A = k.port2;
+ k.port1.onmessage = D, O = function() {
+ A.postMessage(null);
};
- } else D = function() {
- _(E, 0);
+ } else O = function() {
+ _(D, 0);
};
- function A(t, n) {
+ function ee(t, n) {
C = _(function() {
t(e.unstable_now());
}, n);
@@ -6350,8 +7948,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
startTime: a,
expirationTime: s,
sortIndex: -1
- }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, A(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, D()))), r;
- }, e.unstable_shouldYield = ee, e.unstable_wrapCallback = function(e) {
+ }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, ee(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;
+ }, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) {
var t = f;
return function() {
var n = f;
@@ -6363,10 +7961,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
};
};
-})), Pc = /* @__PURE__ */ u(((e, t) => {
- t.exports = Nc();
-})), Fc = /* @__PURE__ */ u(((e) => {
- var t = Pc(), n = C(), r = pn();
+})), iu = /* @__PURE__ */ u(((e, t) => {
+ t.exports = ru();
+})), au = /* @__PURE__ */ u(((e) => {
+ var t = iu(), n = m(), r = Rr();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -6481,27 +8079,27 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return null;
}
- function m(e) {
+ function h(e) {
var t = !1;
for (e = e.return; e !== null && (e.tag === 4 && (t = !0), e.tag !== 3 && e.tag !== 5 && e.tag !== 27);) e = e.return;
return t;
}
- function h(e) {
+ function g(e) {
var t = [null, null], n = p(e);
- return n === null || g(t, e, n.child, { foundSelf: !1 }), t;
+ return n === null || _(t, e, n.child, { foundSelf: !1 }), t;
}
- function g(e, t, n, r) {
+ function _(e, t, n, r) {
for (; n !== null;) {
if (n === t) r.foundSelf = !0;
else if (n.tag === 5 || n.tag === 27 || n.tag === 6) {
if (r.foundSelf) return e[1] = n, !0;
e[0] = n;
- } else if ((n.tag !== 22 || n.memoizedState === null) && g(e, t, n.child, r)) return !0;
+ } else if ((n.tag !== 22 || n.memoizedState === null) && _(e, t, n.child, r)) return !0;
n = n.sibling;
}
return !1;
}
- function _(e) {
+ function v(e) {
switch (e.tag) {
case 5:
case 27:
@@ -6510,14 +8108,14 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: throw Error(i(559));
}
}
- var v = null, y = null;
- function b(e, t, n) {
- return e === n || e === t && (v = e, !0);
- }
+ var y = null, b = null;
function x(e, t, n) {
- return e === n ? (y = e, !1) : e === t && (y !== null && (v = e), !0);
+ return e === n || e === t && (y = e, !0);
+ }
+ function S(e, t, n) {
+ return e === n ? (b = e, !1) : e === t && (b !== null && (y = e), !0);
}
- function S(e) {
+ function C(e) {
if (e === null) return null;
do
e = e === null ? null : e.return;
@@ -6536,58 +8134,58 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return null;
}
- var T = Object.assign, ee = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), ie = Symbol.for("react.lazy"), ae = Symbol.for("react.activity"), oe = Symbol.for("react.legacy_hidden"), P = Symbol.for("react.memo_cache_sentinel"), F = Symbol.for("react.view_transition"), se = Symbol.for("react.recoverable"), I = Symbol.iterator;
- function ce(e) {
- return typeof e != "object" || !e ? null : (e = I && e[I] || e["@@iterator"], typeof e == "function" ? e : null);
+ var T = Object.assign, E = Symbol.for("react.element"), D = Symbol.for("react.transitional.element"), O = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), te = Symbol.for("react.context"), ne = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), ie = Symbol.for("react.memo"), ae = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), se = Symbol.for("react.legacy_hidden"), ce = Symbol.for("react.memo_cache_sentinel"), le = Symbol.for("react.view_transition"), ue = Symbol.for("react.recoverable"), de = Symbol.iterator;
+ function fe(e) {
+ return typeof e != "object" || !e ? null : (e = de && e[de] || e["@@iterator"], typeof e == "function" ? e : null);
}
- var le = Symbol.for("react.client.reference");
- function ue(e) {
+ var pe = Symbol.for("react.client.reference");
+ function me(e) {
if (e == null) return null;
- if (typeof e == "function") return e.$$typeof === le ? null : e.displayName || e.name || null;
+ if (typeof e == "function") return e.$$typeof === pe ? null : e.displayName || e.name || null;
if (typeof e == "string") return e;
switch (e) {
- case O: return "Fragment";
- case A: return "Profiler";
- case k: return "StrictMode";
- case ne: return "Suspense";
- case N: return "SuspenseList";
- case ae: return "Activity";
- case F: return "ViewTransition";
+ case k: return "Fragment";
+ case ee: return "Profiler";
+ case A: return "StrictMode";
+ case re: return "Suspense";
+ case M: return "SuspenseList";
+ case oe: return "Activity";
+ case le: return "ViewTransition";
}
if (typeof e == "object") switch (e.$$typeof) {
- case D: return "Portal";
- case M: return e.displayName || "Context";
+ case O: return "Portal";
+ case te: return e.displayName || "Context";
case j: return (e._context.displayName || "Context") + ".Consumer";
- case te:
+ case ne:
var t = e.render;
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
- case re: return t = e.displayName || null, t === null ? ue(e.type) || "Memo" : t;
- case ie:
+ case ie: return t = e.displayName || null, t === null ? me(e.type) || "Memo" : t;
+ case ae:
t = e._payload, e = e._init;
try {
- return ue(e(t));
+ return me(e(t));
} catch {}
}
return null;
}
- var de = Array.isArray, L = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, R = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = {
+ var he = Array.isArray, N = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ge = {
pending: !1,
data: null,
method: null,
action: null
- }, pe = [], me = -1;
- function he(e) {
+ }, _e = [], ve = -1;
+ function ye(e) {
return { current: e };
}
- function ge(e) {
- 0 > me || (e.current = pe[me], pe[me] = null, me--);
+ function be(e) {
+ 0 > ve || (e.current = _e[ve], _e[ve] = null, ve--);
}
- function _e(e, t) {
- me++, pe[me] = e.current, e.current = t;
+ function F(e, t) {
+ ve++, _e[ve] = e.current, e.current = t;
}
- var z = he(null), ve = he(null), ye = he(null), be = he(null);
- function xe(e, t) {
- switch (_e(ye, t), _e(ve, e), _e(z, null), t.nodeType) {
+ var xe = ye(null), Se = ye(null), Ce = ye(null), we = ye(null);
+ function Te(e, t) {
+ switch (F(Ce, t), F(Se, e), F(xe, null), t.nodeType) {
case 9:
case 11:
e = (e = t.documentElement) && (e = e.namespaceURI) ? up(e) : 0;
@@ -6603,34 +8201,34 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: e = 0;
}
}
- ge(z), _e(z, e);
+ be(xe), F(xe, e);
}
- function Se() {
- ge(z), ge(ve), ge(ye);
+ function Ee() {
+ be(xe), be(Se), be(Ce);
}
- function Ce(e) {
+ function De(e) {
var t = e.memoizedState;
- t !== null && (sh._currentValue = t.memoizedState, _e(be, e)), t = z.current;
+ t !== null && (sh._currentValue = t.memoizedState, F(we, e)), t = xe.current;
var n = dp(t, e.type);
- t !== n && (_e(ve, e), _e(z, n));
+ t !== n && (F(Se, e), F(xe, n));
}
- function we(e) {
- ve.current === e && (ge(z), ge(ve)), be.current === e && (ge(be), sh._currentValue = fe);
+ function Oe(e) {
+ Se.current === e && (be(xe), be(Se)), we.current === e && (be(we), sh._currentValue = ge);
}
- var Te, Ee;
- function De(e) {
- if (Te === void 0) try {
+ var ke, Ae;
+ function je(e) {
+ if (ke === void 0) try {
throw Error();
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
- Te = t && t[1] || "", Ee = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
+ ke = t && t[1] || "", Ae = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";
}
- return "\n" + Te + e + Ee;
+ return "\n" + ke + e + Ae;
}
- var Oe = !1;
- function ke(e, t) {
- if (!e || Oe) return "";
- Oe = !0;
+ var Me = !1;
+ function Ne(e, t) {
+ if (!e || Me) return "";
+ Me = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
@@ -6701,50 +8299,50 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
} finally {
- Oe = !1, Error.prepareStackTrace = n;
+ Me = !1, Error.prepareStackTrace = n;
}
- return (n = e ? e.displayName || e.name : "") ? De(n) : "";
+ return (n = e ? e.displayName || e.name : "") ? je(n) : "";
}
- function Ae(e, t) {
+ function Pe(e, t) {
switch (e.tag) {
case 26:
case 27:
- case 5: return De(e.type);
- case 16: return De("Lazy");
- case 13: return e.child !== t && t !== null ? De("Suspense Fallback") : De("Suspense");
- case 19: return De("SuspenseList");
+ case 5: return je(e.type);
+ case 16: return je("Lazy");
+ case 13: return e.child !== t && t !== null ? je("Suspense Fallback") : je("Suspense");
+ case 19: return je("SuspenseList");
case 0:
- case 15: return ke(e.type, !1);
- case 11: return ke(e.type.render, !1);
- case 1: return ke(e.type, !0);
- case 31: return De("Activity");
- case 30: return De("ViewTransition");
+ case 15: return Ne(e.type, !1);
+ case 11: return Ne(e.type.render, !1);
+ case 1: return Ne(e.type, !0);
+ case 31: return je("Activity");
+ case 30: return je("ViewTransition");
default: return "";
}
}
- function je(e) {
+ function Fe(e) {
try {
var t = "", n = null;
do
- t += Ae(e, n), n = e, e = e.return;
+ t += Pe(e, n), n = e, e = e.return;
while (e);
return t;
} catch (e) {
return "\nError generating stack: " + e.message + "\n" + e.stack;
}
}
- var Me = Object.prototype.hasOwnProperty, Ne = t.unstable_scheduleCallback, Pe = t.unstable_cancelCallback, Fe = t.unstable_shouldYield, Ie = t.unstable_requestPaint, Le = t.unstable_now, Re = t.unstable_getCurrentPriorityLevel, ze = t.unstable_ImmediatePriority, Be = t.unstable_UserBlockingPriority, Ve = t.unstable_NormalPriority, He = t.unstable_LowPriority, Ue = t.unstable_IdlePriority, We = t.log, Ge = t.unstable_setDisableYieldValue, Ke = null, qe = null;
- function Je(e) {
- if (typeof We == "function" && Ge(e), qe && typeof qe.setStrictMode == "function") try {
- qe.setStrictMode(Ke, e);
- } catch {}
- }
- var Ye = Math.clz32 ? Math.clz32 : Qe, Xe = Math.log, Ze = Math.LN2;
+ var Ie = Object.prototype.hasOwnProperty, Le = t.unstable_scheduleCallback, Re = t.unstable_cancelCallback, ze = t.unstable_shouldYield, Be = t.unstable_requestPaint, Ve = t.unstable_now, He = t.unstable_getCurrentPriorityLevel, Ue = t.unstable_ImmediatePriority, We = t.unstable_UserBlockingPriority, Ge = t.unstable_NormalPriority, Ke = t.unstable_LowPriority, qe = t.unstable_IdlePriority, Je = t.log, Ye = t.unstable_setDisableYieldValue, Xe = null, Ze = null;
function Qe(e) {
- return e >>>= 0, e === 0 ? 32 : 31 - (Xe(e) / Ze | 0) | 0;
+ if (typeof Je == "function" && Ye(e), Ze && typeof Ze.setStrictMode == "function") try {
+ Ze.setStrictMode(Xe, e);
+ } catch {}
}
- var $e = 256, et = 262144, tt = 4194304;
+ var $e = Math.clz32 ? Math.clz32 : nt, et = Math.log, tt = Math.LN2;
function nt(e) {
+ return e >>>= 0, e === 0 ? 32 : 31 - (et(e) / tt | 0) | 0;
+ }
+ var rt = 256, it = 262144, at = 4194304;
+ function ot(e) {
var t = e & 42;
if (t !== 0) return t;
switch (e & -e) {
@@ -6782,27 +8380,27 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: return e;
}
}
- function rt(e, t, n) {
+ function st(e, t, n) {
var r = e.pendingLanes;
if (r === 0) return 0;
var i = 0, a = e.suspendedLanes, o = e.pingedLanes;
e = e.warmLanes;
var s = r & 134217727;
- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = nt(n))) : i = nt(o) : i = nt(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = nt(n))) : i = nt(o)) : i = nt(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = ot(n))) : i = ot(o) : i = ot(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = ot(n))) : i = ot(o)) : i = ot(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;
}
- function it(e, t) {
+ function ct(e, t) {
return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;
}
- function at(e, t) {
+ function lt(e, t) {
t & 8 && (t |= t & 32);
var n = e.entangledLanes;
if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {
- var r = 31 - Ye(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
t |= e[r], n &= ~i;
}
return t;
}
- function ot(e, t) {
+ function ut(e, t) {
switch (e) {
case 1:
case 2:
@@ -6838,23 +8436,23 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: return -1;
}
}
- function st() {
- var e = tt;
- return tt <<= 1, !(tt & 62914560) && (tt = 4194304), e;
+ function dt() {
+ var e = at;
+ return at <<= 1, !(at & 62914560) && (at = 4194304), e;
}
- function ct(e) {
+ function ft(e) {
for (var t = [], n = 0; 31 > n; n++) t.push(e);
return t;
}
- function lt(e, t) {
+ function pt(e, t) {
e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);
}
- function ut(e, t, n, r, i, a) {
+ function mt(e, t, n, r, i, a) {
var o = e.pendingLanes;
e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;
var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;
for (n = o & ~n; 0 < n;) {
- var u = 31 - Ye(n), d = 1 << u;
+ var u = 31 - $e(n), d = 1 << u;
s[u] = 0, c[u] = -1;
var f = l[u];
if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {
@@ -6863,25 +8461,25 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
n &= ~d;
}
- r !== 0 && dt(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
+ r !== 0 && ht(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));
}
- function dt(e, t, n) {
+ function ht(e, t, n) {
e.pendingLanes |= t, e.suspendedLanes &= ~t;
- var r = 31 - Ye(t);
+ var r = 31 - $e(t);
e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;
}
- function ft(e, t) {
+ function gt(e, t) {
var n = e.entangledLanes |= t;
for (e = e.entanglements; n;) {
- var r = 31 - Ye(n), i = 1 << r;
+ var r = 31 - $e(n), i = 1 << r;
i & t | e[r] & t && (e[r] |= t), n &= ~i;
}
}
- function pt(e, t) {
+ function _t(e, t) {
var n = t & -t;
- return n = n & 42 ? 1 : mt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
+ return n = n & 42 ? 1 : vt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;
}
- function mt(e) {
+ function vt(e) {
switch (e) {
case 2:
e = 1;
@@ -6919,32 +8517,32 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return e;
}
- function ht(e) {
+ function yt(e) {
return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;
}
- function gt() {
- var e = R.p;
+ function bt() {
+ var e = P.p;
return e === 0 ? (e = window.event, e === void 0 ? 32 : Ch(e.type)) : e;
}
- function _t(e, t) {
- var n = R.p;
+ function I(e, t) {
+ var n = P.p;
try {
- return R.p = e, t();
+ return P.p = e, t();
} finally {
- R.p = n;
+ P.p = n;
}
}
- var vt = Math.random().toString(36).slice(2), yt = "__reactFiber$" + vt, bt = "__reactProps$" + vt, xt = "__reactContainer$" + vt, St = "__reactEvents$" + vt, Ct = "__reactListeners$" + vt, wt = "__reactHandles$" + vt, Tt = "__reactResources$" + vt, Et = "__reactMarker$" + vt, Dt = "__reactLoad$" + vt;
- function Ot(e) {
- delete e[yt], delete e[bt], delete e[Ct], delete e[wt];
+ var xt = Math.random().toString(36).slice(2), St = "__reactFiber$" + xt, Ct = "__reactProps$" + xt, wt = "__reactContainer$" + xt, Tt = "__reactEvents$" + xt, Et = "__reactListeners$" + xt, Dt = "__reactHandles$" + xt, Ot = "__reactResources$" + xt, kt = "__reactMarker$" + xt, L = "__reactLoad$" + xt;
+ function At(e) {
+ delete e[St], delete e[Ct], delete e[Et], delete e[Dt];
}
- function kt(e) {
+ function R(e) {
var t;
- if (t = e[yt]) return t;
+ if (t = e[St]) return t;
for (var n = e.parentNode; n;) {
- if (t = n[xt] || n[yt]) {
+ if (t = n[wt] || n[St]) {
if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = fm(e); e !== null;) {
- if (n = e[yt]) return n;
+ if (n = e[St]) return n;
e = fm(e);
}
return t;
@@ -6953,49 +8551,49 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return null;
}
- function At(e) {
- if (e = e[yt] || e[xt]) {
+ function jt(e) {
+ if (e = e[St] || e[wt]) {
var t = e.tag;
if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;
}
return null;
}
- function jt(e) {
+ function Mt(e) {
var t = e.tag;
if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;
throw Error(i(33));
}
- function Mt(e) {
- var t = e[Tt];
- return t ||= e[Tt] = {
+ function Nt(e) {
+ var t = e[Ot];
+ return t ||= e[Ot] = {
hoistableStyles: /* @__PURE__ */ new Map(),
hoistableScripts: /* @__PURE__ */ new Map()
}, t;
}
- function Nt(e) {
- e[Et] = !0;
- }
function Pt(e) {
- e[Dt] = void 0;
+ e[kt] = !0;
}
- var Ft = /* @__PURE__ */ new Set(), It = {};
- function Lt(e, t) {
- Rt(e, t), Rt(e + "Capture", t);
+ function Ft(e) {
+ e[L] = void 0;
}
+ var It = /* @__PURE__ */ new Set(), Lt = {};
function Rt(e, t) {
- for (It[e] = t, e = 0; e < t.length; e++) Ft.add(t[e]);
+ zt(e, t), zt(e + "Capture", t);
+ }
+ function zt(e, t) {
+ for (Lt[e] = t, e = 0; e < t.length; e++) It.add(t[e]);
}
- var zt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Bt = {}, Vt = {};
- function B(e) {
- return Me.call(Vt, e) ? !0 : Me.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);
+ var Bt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Vt = {}, Ht = {};
+ function z(e) {
+ return Ie.call(Ht, e) ? !0 : Ie.call(Vt, e) ? !1 : Bt.test(e) ? Ht[e] = !0 : (Vt[e] = !0, !1);
}
- var V = !1;
- function Ht() {
- var e = V;
- return V = !1, e;
+ var B = !1;
+ function Ut() {
+ var e = B;
+ return B = !1, e;
}
- function Ut(e, t, n) {
- if (B(t)) {
+ function Wt(e, t, n) {
+ if (z(t)) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -7015,7 +8613,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
}
- function Wt(e, t, n) {
+ function Gt(e, t, n) {
if (n === null) e.removeAttribute(t);
else {
switch (typeof n) {
@@ -7029,7 +8627,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
e.setAttribute(t, n);
}
}
- function Gt(e, t, n, r) {
+ function Kt(e, t, n, r) {
if (r === null) e.removeAttribute(n);
else {
switch (typeof r) {
@@ -7043,7 +8641,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
e.setAttributeNS(t, n, r);
}
}
- function Kt(e) {
+ function qt(e) {
switch (typeof e) {
case "bigint":
case "boolean":
@@ -7054,11 +8652,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: return "";
}
}
- function qt(e) {
+ function Jt(e) {
var t = e.type;
return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");
}
- function Jt(e, t, n) {
+ function Yt(e, t, n) {
var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);
if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {
var i = r.get, a = r.set;
@@ -7083,48 +8681,48 @@ var Nc = /* @__PURE__ */ u(((e) => {
};
}
}
- function Yt(e) {
+ function Xt(e) {
if (!e._valueTracker) {
- var t = qt(e) ? "checked" : "value";
- e._valueTracker = Jt(e, t, "" + e[t]);
+ var t = Jt(e) ? "checked" : "value";
+ e._valueTracker = Yt(e, t, "" + e[t]);
}
}
- function Xt(e) {
+ function Zt(e) {
if (!e) return !1;
var t = e._valueTracker;
if (!t) return !0;
var n = t.getValue(), r = "";
- return e && (r = qt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
+ return e && (r = Jt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);
}
- var Zt = /[\n"\\]/g;
- function Qt(e) {
- return e.replace(Zt, function(e) {
+ var Qt = /[\n"\\]/g;
+ function $t(e) {
+ return e.replace(Qt, function(e) {
return "\\" + e.charCodeAt(0).toString(16) + " ";
});
}
- function $t(e, t, n, r, i, a, o, s) {
- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Kt(t)) : e.value !== "" + Kt(t) && (e.value = "" + Kt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : tn(e, Kt(n)) : o === "number" && e.value == t ? tn(e, Kt(e.value)) : tn(e, Kt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Kt(s) : e.removeAttribute("name");
- }
function en(e, t, n, r, i, a, o, s) {
+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + qt(t)) : e.value !== "" + qt(t) && (e.value = "" + qt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : nn(e, qt(n)) : o === "number" && e.value == t ? nn(e, qt(e.value)) : nn(e, qt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + qt(s) : e.removeAttribute("name");
+ }
+ function tn(e, t, n, r, i, a, o, s) {
if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {
if (!(a !== "submit" && a !== "reset" || t != null)) {
- Yt(e);
+ Xt(e);
return;
}
- n = n == null ? "" : "" + Kt(n), t = t == null ? n : "" + Kt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
+ n = n == null ? "" : "" + qt(n), t = t == null ? n : "" + qt(t), s || t === e.value || (e.value = t), e.defaultValue = t;
}
- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Yt(e);
+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Xt(e);
}
- function tn(e, t) {
+ function nn(e, t) {
e.defaultValue !== "" + t && (e.defaultValue = "" + t);
}
- function nn(e, t, n, r) {
+ function rn(e, t, n, r) {
if (e = e.options, t) {
t = {};
for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;
for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);
} else {
- for (n = "" + Kt(n), t = null, i = 0; i < e.length; i++) {
+ for (n = "" + qt(n), t = null, i = 0; i < e.length; i++) {
if (e[i].value === n) {
e[i].selected = !0, r && (e[i].defaultSelected = !0);
return;
@@ -7134,18 +8732,18 @@ var Nc = /* @__PURE__ */ u(((e) => {
t !== null && (t.selected = !0);
}
}
- function rn(e, t, n) {
- if (t != null && (t = "" + Kt(t), t !== e.value && (e.value = t), n == null)) {
+ function an(e, t, n) {
+ if (t != null && (t = "" + qt(t), t !== e.value && (e.value = t), n == null)) {
e.defaultValue !== t && (e.defaultValue = t);
return;
}
- e.defaultValue = n == null ? "" : "" + Kt(n);
+ e.defaultValue = n == null ? "" : "" + qt(n);
}
- function an(e, t, n, r) {
+ function on(e, t, n, r) {
if (t == null) {
if (r != null) {
if (n != null) throw Error(i(92));
- if (de(r)) {
+ if (he(r)) {
if (1 < r.length) throw Error(i(93));
r = r[0];
}
@@ -7153,9 +8751,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
n ??= "", t = n;
}
- n = Kt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Yt(e);
+ n = qt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Xt(e);
}
- function on(e, t) {
+ function sn(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && n.nodeType === 3) {
@@ -7165,19 +8763,19 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
e.textContent = t;
}
- var sn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
- function cn(e, t, n) {
+ var cn = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
+ function ln(e, t, n) {
var r = t.indexOf("--") === 0;
- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || sn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || cn.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";
}
- function ln(e, t, n) {
+ function un(e, t, n) {
if (t != null && typeof t != "object") throw Error(i(62));
if (e = e.style, n != null) {
- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", V = !0);
- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (cn(e, a, r), V = !0);
- } else for (var o in t) t.hasOwnProperty(o) && cn(e, o, t[o]);
+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", B = !0);
+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (ln(e, a, r), B = !0);
+ } else for (var o in t) t.hasOwnProperty(o) && ln(e, o, t[o]);
}
- function un(e) {
+ function dn(e) {
if (e.indexOf("-") === -1) return !1;
switch (e) {
case "annotation-xml":
@@ -7191,7 +8789,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: return !0;
}
}
- var dn = /* @__PURE__ */ new Map([
+ var fn = /* @__PURE__ */ new Map([
["acceptCharset", "accept-charset"],
["htmlFor", "for"],
["httpEquiv", "http-equiv"],
@@ -7271,9 +8869,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
["writingMode", "writing-mode"],
["xmlnsXlink", "xmlns:xlink"],
["xHeight", "x-height"]
- ]), fn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
+ ]), pn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
function mn(e) {
- return fn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
+ return pn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;
}
function hn() {}
var gn = null;
@@ -7282,28 +8880,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
var vn = null, yn = null;
function bn(e) {
- var t = At(e);
+ var t = jt(e);
if (t && (e = t.stateNode)) {
- var n = e[bt] || null;
+ var n = e[Ct] || null;
a: switch (e = t.stateNode, t.type) {
case "input":
- if ($t(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
+ if (en(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {
for (n = e; n.parentNode;) n = n.parentNode;
- for (n = n.querySelectorAll("input[name=\"" + Qt("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
+ for (n = n.querySelectorAll("input[name=\"" + $t("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
- var a = r[bt] || null;
+ var a = r[Ct] || null;
if (!a) throw Error(i(90));
- $t(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
+ en(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);
}
}
- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Xt(r);
+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Zt(r);
}
break a;
case "textarea":
- rn(e, n.value, n.defaultValue);
+ an(e, n.value, n.defaultValue);
break a;
- case "select": t = n.value, t != null && nn(e, !!n.multiple, t, !1);
+ case "select": t = n.value, t != null && rn(e, !!n.multiple, t, !1);
}
}
}
@@ -7320,7 +8918,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
function Cn(e, t) {
var n = e.stateNode;
if (n === null) return null;
- var r = n[bt] || null;
+ var r = n[Ct] || null;
if (r === null) return null;
n = r[t];
a: switch (t) {
@@ -7564,8 +9162,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
32
], cr = wn && "CompositionEvent" in window, lr = null;
wn && "documentMode" in document && (lr = document.documentMode);
- var ur = wn && "TextEvent" in window && !lr, dr = wn && (!cr || lr && 8 < lr && 11 >= lr), fr = " ", pr = !1;
- function mr(e, t) {
+ var ur = wn && "TextEvent" in window && !lr, dr = wn && (!cr || lr && 8 < lr && 11 >= lr), fr = " ", V = !1;
+ function pr(e, t) {
switch (e) {
case "keyup": return sr.indexOf(t.keyCode) !== -1;
case "keydown": return t.keyCode !== 229;
@@ -7575,20 +9173,20 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: return !1;
}
}
- function hr(e) {
+ function mr(e) {
return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;
}
- var gr = !1;
- function _r(e, t) {
+ var hr = !1;
+ function gr(e, t) {
switch (e) {
- case "compositionend": return hr(t);
- case "keypress": return t.which === 32 ? (pr = !0, fr) : null;
- case "textInput": return e = t.data, e === fr && pr ? null : e;
+ case "compositionend": return mr(t);
+ case "keypress": return t.which === 32 ? (V = !0, fr) : null;
+ case "textInput": return e = t.data, e === fr && V ? null : e;
default: return null;
}
}
- function vr(e, t) {
- if (gr) return e === "compositionend" || !cr && mr(e, t) ? (e = An(), kn = On = Dn = null, gr = !1, e) : null;
+ function _r(e, t) {
+ if (hr) return e === "compositionend" || !cr && pr(e, t) ? (e = An(), kn = On = Dn = null, hr = !1, e) : null;
switch (e) {
case "paste": return null;
case "keypress":
@@ -7601,7 +9199,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: return null;
}
}
- var yr = {
+ var vr = {
color: !0,
date: !0,
datetime: !0,
@@ -7618,72 +9216,72 @@ var Nc = /* @__PURE__ */ u(((e) => {
url: !0,
week: !0
};
- function br(e) {
+ function yr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
- return t === "input" ? !!yr[e.type] : t === "textarea";
+ return t === "input" ? !!vr[e.type] : t === "textarea";
}
- function xr(e, t, n, r) {
+ function br(e, t, n, r) {
vn ? yn ? yn.push(r) : yn = [r] : vn = r, t = qf(t, "onChange"), 0 < t.length && (n = new In("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
- var Sr = null, Cr = null;
- function wr(e) {
+ var xr = null, Sr = null;
+ function Cr(e) {
Bf(e, 0);
}
- function Tr(e) {
- if (Xt(jt(e))) return e;
+ function wr(e) {
+ if (Zt(Mt(e))) return e;
}
- function Er(e, t) {
+ function Tr(e, t) {
if (e === "change") return t;
}
- var Dr = !1;
+ var Er = !1;
if (wn) {
- var Or;
+ var Dr;
if (wn) {
- var kr = "oninput" in document;
- if (!kr) {
- var Ar = document.createElement("div");
- Ar.setAttribute("oninput", "return;"), kr = typeof Ar.oninput == "function";
+ var Or = "oninput" in document;
+ if (!Or) {
+ var kr = document.createElement("div");
+ kr.setAttribute("oninput", "return;"), Or = typeof kr.oninput == "function";
}
- Or = kr;
- } else Or = !1;
- Dr = Or && (!document.documentMode || 9 < document.documentMode);
+ Dr = Or;
+ } else Dr = !1;
+ Er = Dr && (!document.documentMode || 9 < document.documentMode);
}
- function jr() {
- Sr && (Sr.detachEvent("onpropertychange", Mr), Cr = Sr = null);
+ function Ar() {
+ xr && (xr.detachEvent("onpropertychange", jr), Sr = xr = null);
}
- function Mr(e) {
- if (e.propertyName === "value" && Tr(Cr)) {
+ function jr(e) {
+ if (e.propertyName === "value" && wr(Sr)) {
var t = [];
- xr(t, Cr, e, _n(e)), Sn(wr, t);
+ br(t, Sr, e, _n(e)), Sn(Cr, t);
}
}
- function Nr(e, t, n) {
- e === "focusin" ? (jr(), Sr = t, Cr = n, Sr.attachEvent("onpropertychange", Mr)) : e === "focusout" && jr();
+ function Mr(e, t, n) {
+ e === "focusin" ? (Ar(), xr = t, Sr = n, xr.attachEvent("onpropertychange", jr)) : e === "focusout" && Ar();
}
- function Pr(e) {
- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Tr(Cr);
+ function Nr(e) {
+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return wr(Sr);
+ }
+ function Pr(e, t) {
+ if (e === "click") return wr(t);
}
function Fr(e, t) {
- if (e === "click") return Tr(t);
+ if (e === "input" || e === "change") return wr(t);
}
function Ir(e, t) {
- if (e === "input" || e === "change") return Tr(t);
- }
- function Lr(e, t) {
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
}
- var Rr = typeof Object.is == "function" ? Object.is : Lr;
+ var Lr = typeof Object.is == "function" ? Object.is : Ir;
function zr(e, t) {
- if (Rr(e, t)) return !0;
+ if (Lr(e, t)) return !0;
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
var n = Object.keys(e), r = Object.keys(t);
if (n.length !== r.length) return !1;
for (r = 0; r < n.length; r++) {
var i = n[r];
- if (!Me.call(t, i) || !Rr(e[i], t[i])) return !1;
+ if (!Ie.call(t, i) || !Lr(e[i], t[i])) return !1;
}
return !0;
}
@@ -7760,41 +9358,41 @@ var Nc = /* @__PURE__ */ u(((e) => {
listeners: r
}), t.target = qr)));
}
- function H(e, t) {
+ function Qr(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;
}
- var Qr = {
- animationend: H("Animation", "AnimationEnd"),
- animationiteration: H("Animation", "AnimationIteration"),
- animationstart: H("Animation", "AnimationStart"),
- transitionrun: H("Transition", "TransitionRun"),
- transitionstart: H("Transition", "TransitionStart"),
- transitioncancel: H("Transition", "TransitionCancel"),
- transitionend: H("Transition", "TransitionEnd")
- }, $r = {}, ei = {};
- wn && (ei = document.createElement("div").style, "AnimationEvent" in window || (delete Qr.animationend.animation, delete Qr.animationiteration.animation, delete Qr.animationstart.animation), "TransitionEvent" in window || delete Qr.transitionend.transition);
- function ti(e) {
- if ($r[e]) return $r[e];
- if (!Qr[e]) return e;
- var t = Qr[e], n;
- for (n in t) if (t.hasOwnProperty(n) && n in ei) return $r[e] = t[n];
+ var $r = {
+ animationend: Qr("Animation", "AnimationEnd"),
+ animationiteration: Qr("Animation", "AnimationIteration"),
+ animationstart: Qr("Animation", "AnimationStart"),
+ transitionrun: Qr("Transition", "TransitionRun"),
+ transitionstart: Qr("Transition", "TransitionStart"),
+ transitioncancel: Qr("Transition", "TransitionCancel"),
+ transitionend: Qr("Transition", "TransitionEnd")
+ }, ei = {}, ti = {};
+ wn && (ti = document.createElement("div").style, "AnimationEvent" in window || (delete $r.animationend.animation, delete $r.animationiteration.animation, delete $r.animationstart.animation), "TransitionEvent" in window || delete $r.transitionend.transition);
+ function ni(e) {
+ if (ei[e]) return ei[e];
+ if (!$r[e]) return e;
+ var t = $r[e], n;
+ for (n in t) if (t.hasOwnProperty(n) && n in ti) return ei[e] = t[n];
return e;
}
- var ni = ti("animationend"), ri = ti("animationiteration"), ii = ti("animationstart"), ai = ti("transitionrun"), oi = ti("transitionstart"), si = ti("transitioncancel"), ci = ti("transitionend"), li = /* @__PURE__ */ new Map(), ui = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
- ui.push("scrollEnd");
- function di(e, t) {
- li.set(e, t), Lt(t, [e]);
+ var ri = ni("animationend"), ii = ni("animationiteration"), ai = ni("animationstart"), oi = ni("transitionrun"), si = ni("transitionstart"), ci = ni("transitioncancel"), li = ni("transitionend"), ui = /* @__PURE__ */ new Map(), di = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");
+ di.push("scrollEnd");
+ function fi(e, t) {
+ ui.set(e, t), Rt(t, [e]);
}
- var fi = 0;
- function pi(e, t) {
+ var pi = 0;
+ function mi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
e = vd.identifierPrefix;
- var n = fi++;
+ var n = pi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
- function mi(e) {
+ function hi(e) {
if (e == null || typeof e == "string") return e;
var t = null, n = Ed;
if (n !== null) for (var r = 0; r < n.length; r++) {
@@ -7806,10 +9404,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return t ?? e.default;
}
- function hi(e, t) {
- return e = mi(e), t = mi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
+ function gi(e, t) {
+ return e = hi(e), t = hi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;
}
- var gi = typeof reportError == "function" ? reportError : function(e) {
+ var _i = typeof reportError == "function" ? reportError : function(e) {
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
var t = new window.ErrorEvent("error", {
bubbles: !0,
@@ -7823,62 +9421,62 @@ var Nc = /* @__PURE__ */ u(((e) => {
return;
}
console.error(e);
- }, _i = [], vi = 0, yi = 0;
- function bi() {
- for (var e = vi, t = yi = vi = 0; t < e;) {
- var n = _i[t];
- _i[t++] = null;
- var r = _i[t];
- _i[t++] = null;
- var i = _i[t];
- _i[t++] = null;
- var a = _i[t];
- if (_i[t++] = null, r !== null && i !== null) {
+ }, vi = [], yi = 0, bi = 0;
+ function xi() {
+ for (var e = yi, t = bi = yi = 0; t < e;) {
+ var n = vi[t];
+ vi[t++] = null;
+ var r = vi[t];
+ vi[t++] = null;
+ var i = vi[t];
+ vi[t++] = null;
+ var a = vi[t];
+ if (vi[t++] = null, r !== null && i !== null) {
var o = r.pending;
o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;
}
- a !== 0 && wi(n, i, a);
+ a !== 0 && Ti(n, i, a);
}
}
- function xi(e, t, n, r) {
- _i[vi++] = e, _i[vi++] = t, _i[vi++] = n, _i[vi++] = r, yi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
- }
function Si(e, t, n, r) {
- return xi(e, t, n, r), Ti(e);
+ vi[yi++] = e, vi[yi++] = t, vi[yi++] = n, vi[yi++] = r, bi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);
+ }
+ function Ci(e, t, n, r) {
+ return Si(e, t, n, r), Ei(e);
}
- function Ci(e, t) {
- return xi(e, null, null, t), Ti(e);
+ function wi(e, t) {
+ return Si(e, null, null, t), Ei(e);
}
- function wi(e, t, n) {
+ function Ti(e, t, n) {
e.lanes |= n;
var r = e.alternate;
r !== null && (r.lanes |= n);
for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;
- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Ye(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - $e(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
- function Ti(e) {
+ function Ei(e) {
if (50 < Dd) throw Dd = 0, Od = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
- var Ei = {};
- function Di(e, t, n, r) {
+ var Di = {};
+ function Oi(e, t, n, r) {
this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
}
- function Oi(e, t, n, r) {
- return new Di(e, t, n, r);
+ function ki(e, t, n, r) {
+ return new Oi(e, t, n, r);
}
- function ki(e) {
+ function Ai(e) {
return e = e.prototype, !(!e || !e.isReactComponent);
}
- function Ai(e, t) {
+ function ji(e, t) {
var n = e.alternate;
- return n === null ? (n = Oi(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
+ return n === null ? (n = ki(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {
lanes: t.lanes,
firstContext: t.firstContext
}, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;
}
- function ji(e, t) {
+ function Mi(e, t) {
e.flags &= 1206910978;
var n = e.alternate;
return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {
@@ -7886,21 +9484,21 @@ var Nc = /* @__PURE__ */ u(((e) => {
firstContext: t.firstContext
}), e;
}
- function Mi(e, t, n, r, a, o) {
+ function Ni(e, t, n, r, a, o) {
var s = 0;
- if (r = e, typeof r == "function") ki(r) && (s = 1);
- else if (typeof r == "string") s = qm(e, n, z.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
+ if (r = e, typeof r == "function") Ai(r) && (s = 1);
+ else if (typeof r == "string") s = qm(e, n, xe.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;
else a: switch (r) {
- case ae: return e = Oi(31, n, t, a), e.elementType = ae, e.lanes = o, e;
- case O: return Ni(n.children, a, o, t);
- case k:
+ case oe: return e = ki(31, n, t, a), e.elementType = oe, e.lanes = o, e;
+ case k: return Pi(n.children, a, o, t);
+ case A:
s = 8, a |= 24;
break;
- case A: return e = Oi(12, n, t, a | 2), e.elementType = A, e.lanes = o, e;
- case ne: return e = Oi(13, n, t, a), e.elementType = ne, e.lanes = o, e;
- case N: return e = Oi(19, n, t, a), e.elementType = N, e.lanes = o, e;
- case oe:
- case F: return e = a | 32, e = Oi(30, n, t, e), e.elementType = F, e.lanes = o, e.stateNode = {
+ case ee: return e = ki(12, n, t, a | 2), e.elementType = ee, e.lanes = o, e;
+ case re: return e = ki(13, n, t, a), e.elementType = re, e.lanes = o, e;
+ case M: return e = ki(19, n, t, a), e.elementType = M, e.lanes = o, e;
+ case se:
+ case le: return e = a | 32, e = ki(30, n, t, e), e.elementType = le, e.lanes = o, e.stateNode = {
autoName: null,
paired: null,
clones: null,
@@ -7908,92 +9506,92 @@ var Nc = /* @__PURE__ */ u(((e) => {
}, e;
default:
if (typeof r == "object" && r) switch (r.$$typeof) {
- case M:
+ case te:
s = 10;
break a;
case j:
s = 9;
break a;
- case te:
+ case ne:
s = 11;
break a;
- case re:
+ case ie:
s = 14;
break a;
- case ie:
+ case ae:
s = 16, r = null;
break a;
}
s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;
}
- return t = Oi(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
+ return t = ki(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;
}
- function Ni(e, t, n, r) {
- return e = Oi(7, e, r, t), e.lanes = n, e;
+ function Pi(e, t, n, r) {
+ return e = ki(7, e, r, t), e.lanes = n, e;
}
- function Pi(e, t, n) {
- return e = Oi(6, e, null, t), e.lanes = n, e;
+ function Fi(e, t, n) {
+ return e = ki(6, e, null, t), e.lanes = n, e;
}
- function Fi(e) {
- var t = Oi(18, null, null, 0);
+ function Ii(e) {
+ var t = ki(18, null, null, 0);
return t.stateNode = e, t;
}
- function Ii(e, t, n) {
- return t = Oi(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
+ function Li(e, t, n) {
+ return t = ki(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
}, t;
}
- var Li = /* @__PURE__ */ new WeakMap();
- function Ri(e, t) {
+ var Ri = /* @__PURE__ */ new WeakMap();
+ function zi(e, t) {
if (typeof e == "object" && e) {
- var n = Li.get(e);
+ var n = Ri.get(e);
return n === void 0 ? (t = {
value: e,
source: t,
- stack: je(t)
- }, Li.set(e, t), t) : n;
+ stack: Fe(t)
+ }, Ri.set(e, t), t) : n;
}
return {
value: e,
source: t,
- stack: je(t)
+ stack: Fe(t)
};
}
- var zi = [], Bi = 0, Vi = null, Hi = 0, Ui = [], Wi = 0, Gi = null, Ki = 1, qi = "";
+ var Bi = [], Vi = 0, Hi = null, Ui = 0, Wi = [], Gi = 0, Ki = null, qi = 1, H = "";
function Ji(e, t) {
- zi[Bi++] = Hi, zi[Bi++] = Vi, Vi = e, Hi = t;
+ Bi[Vi++] = Ui, Bi[Vi++] = Hi, Hi = e, Ui = t;
}
function Yi(e, t, n) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Gi = e;
- var r = Ki;
- e = qi;
- var i = 32 - Ye(r) - 1;
+ Wi[Gi++] = qi, Wi[Gi++] = H, Wi[Gi++] = Ki, Ki = e;
+ var r = qi;
+ e = H;
+ var i = 32 - $e(r) - 1;
r &= ~(1 << i), n += 1;
- var a = 32 - Ye(t) + i;
+ var a = 32 - $e(t) + i;
if (30 < a) {
var o = i - i % 5;
- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ki = 1 << 32 - Ye(t) + i | n << i | r, qi = a + e;
- } else Ki = 1 << a | n << i | r, qi = e;
+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, qi = 1 << 32 - $e(t) + i | n << i | r, H = a + e;
+ } else qi = 1 << a | n << i | r, H = e;
}
function Xi(e) {
e.return !== null && (Ji(e, 1), Yi(e, 1, 0));
}
function Zi(e) {
- for (; e === Vi;) Vi = zi[--Bi], zi[Bi] = null, Hi = zi[--Bi], zi[Bi] = null;
- for (; e === Gi;) Gi = Ui[--Wi], Ui[Wi] = null, qi = Ui[--Wi], Ui[Wi] = null, Ki = Ui[--Wi], Ui[Wi] = null;
+ for (; e === Hi;) Hi = Bi[--Vi], Bi[Vi] = null, Ui = Bi[--Vi], Bi[Vi] = null;
+ for (; e === Ki;) Ki = Wi[--Gi], Wi[Gi] = null, H = Wi[--Gi], Wi[Gi] = null, qi = Wi[--Gi], Wi[Gi] = null;
}
function Qi(e, t) {
- Ui[Wi++] = Ki, Ui[Wi++] = qi, Ui[Wi++] = Gi, Ki = t.id, qi = t.overflow, Gi = e;
+ Wi[Gi++] = qi, Wi[Gi++] = H, Wi[Gi++] = Ki, qi = t.id, H = t.overflow, Ki = e;
}
var $i = null, ea = null, U = !1, ta = null, na = !1, ra = Error(i(519));
function ia(e) {
- throw ua(Ri(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ra;
+ throw ua(zi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), ra;
}
function aa(e) {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
- switch (t[yt] = e, t[bt] = r, n) {
+ switch (t[St] = e, t[Ct] = r, n) {
case "dialog":
$("cancel", t), $("close", t);
break;
@@ -8018,12 +9616,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
$("toggle", t);
break;
case "input":
- $("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ $("invalid", t), tn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
$("invalid", t);
break;
- case "textarea": $("invalid", t), an(t, r.value, r.defaultValue, r.children);
+ case "textarea": $("invalid", t), on(t, r.value, r.defaultValue, r.children);
}
n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || $f(t.textContent, n) ? (r.popover != null && ($("beforetoggle", t), $("toggle", t)), r.onScroll != null && $("scroll", t), r.onScrollEnd != null && $("scrollend", t), r.onClick != null && (t.onclick = hn), t = !0) : t = !1, t || ia(e, !0);
}
@@ -8059,17 +9657,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function la() {
var e = ta;
- return e !== null && (ud === null ? ud = e : ud.push.apply(ud, e), ta = null), e;
+ return e !== null && (dd === null ? dd = e : dd.push.apply(dd, e), ta = null), e;
}
function ua(e) {
ta === null ? ta = [e] : ta.push(e);
}
- var da = he(null), fa = null, pa = null;
+ var da = ye(null), fa = null, pa = null;
function ma(e, t, n) {
- _e(da, t._currentValue), t._currentValue = n;
+ F(da, t._currentValue), t._currentValue = n;
}
function ha(e) {
- e._currentValue = da.current, ge(da);
+ e._currentValue = da.current, be(da);
}
function ga(e, t, n) {
for (; e !== null;) {
@@ -8125,9 +9723,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (s === null) throw Error(i(387));
if (s = s.memoizedProps, s !== null) {
var c = a.type;
- Rr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
+ Lr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
}
- } else if (a === be.current) {
+ } else if (a === we.current) {
if (s = a.alternate, s === null) throw Error(i(387));
s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [sh] : e.push(sh));
}
@@ -8137,7 +9735,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function ya(e) {
for (e = e.firstContext; e !== null;) {
- if (!Rr(e.context._currentValue, e.memoizedValue)) return !0;
+ if (!Lr(e.context._currentValue, e.memoizedValue)) return !0;
e = e.next;
}
return !1;
@@ -8145,13 +9743,13 @@ var Nc = /* @__PURE__ */ u(((e) => {
function ba(e) {
fa = e, pa = null, e = e.dependencies, e !== null && (e.firstContext = null);
}
- function xa(e) {
- return Ca(fa, e);
+ function W(e) {
+ return Sa(fa, e);
}
- function Sa(e, t) {
- return fa === null && ba(e), Ca(e, t);
+ function xa(e, t) {
+ return fa === null && ba(e), Sa(e, t);
}
- function Ca(e, t) {
+ function Sa(e, t) {
var n = t._currentValue;
if (t = {
context: t,
@@ -8166,7 +9764,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
} else pa = pa.next = t;
return n;
}
- var wa = typeof AbortController < "u" ? AbortController : function() {
+ var Ca = typeof AbortController < "u" ? AbortController : function() {
var e = [], t = this.signal = {
aborted: !1,
addEventListener: function(t, n) {
@@ -8178,27 +9776,27 @@ var Nc = /* @__PURE__ */ u(((e) => {
return e();
});
};
- }, Ta = t.unstable_scheduleCallback, Ea = t.unstable_NormalPriority, Da = {
- $$typeof: M,
+ }, wa = t.unstable_scheduleCallback, Ta = t.unstable_NormalPriority, Ea = {
+ $$typeof: te,
Consumer: null,
Provider: null,
_currentValue: null,
_currentValue2: null,
_threadCount: 0
};
- function Oa() {
+ function Da() {
return {
- controller: new wa(),
+ controller: new Ca(),
data: /* @__PURE__ */ new Map(),
refCount: 0
};
}
- function ka(e) {
- e.refCount--, e.refCount === 0 && Ta(Ea, function() {
+ function Oa(e) {
+ e.refCount--, e.refCount === 0 && wa(Ta, function() {
e.controller.abort();
});
}
- function Aa(e, t) {
+ function ka(e, t) {
if (e.pendingLanes & 4194048) {
var n = e.transitionTypes;
for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {
@@ -8207,16 +9805,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
}
- var ja = null;
- function Ma(e) {
+ var Aa = null;
+ function ja(e) {
var t = e.transitionTypes;
return e.transitionTypes = null, t;
}
- var Na = null, Pa = 0, Fa = 0, Ia = null;
- function La(e, t) {
- if (Na === null) {
- var n = Na = [];
- Pa = 0, Fa = Nf(), Ia = {
+ var Ma = null, Na = 0, Pa = 0, Fa = null;
+ function Ia(e, t) {
+ if (Ma === null) {
+ var n = Ma = [];
+ Na = 0, Pa = Nf(), Fa = {
status: "pending",
value: void 0,
then: function(e) {
@@ -8224,17 +9822,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
};
}
- return Pa++, t.then(Ra, Ra), t;
+ return Na++, t.then(La, La), t;
}
- function Ra() {
- if (--Pa === 0 && (ja = null, Na !== null)) {
- Ia !== null && (Ia.status = "fulfilled");
- var e = Na;
- Na = null, Fa = 0, Ia = null;
+ function La() {
+ if (--Na === 0 && (Aa = null, Ma !== null)) {
+ Fa !== null && (Fa.status = "fulfilled");
+ var e = Ma;
+ Ma = null, Pa = 0, Fa = null;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
}
- function za(e, t) {
+ function Ra(e, t) {
var n = [], r = {
status: "pending",
value: null,
@@ -8250,48 +9848,48 @@ var Nc = /* @__PURE__ */ u(((e) => {
for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);
}), r;
}
- var Ba = L.S;
- L.S = function(e, t) {
- if (pd = Le(), typeof t == "object" && t && typeof t.then == "function" && La(e, t), ja !== null) for (var n = yf; n !== null;) Aa(n, ja), n = n.next;
+ var za = N.S;
+ N.S = function(e, t) {
+ if (md = Ve(), typeof t == "object" && t && typeof t.then == "function" && Ia(e, t), Aa !== null) for (var n = yf; n !== null;) ka(n, Aa), n = n.next;
if (n = e.types, n !== null) {
- for (var r = yf; r !== null;) Aa(r, n), r = r.next;
- if (Fa !== 0) {
- r = ja, r === null && (r = ja = []);
+ for (var r = yf; r !== null;) ka(r, n), r = r.next;
+ if (Pa !== 0) {
+ r = Aa, r === null && (r = Aa = []);
for (var i = 0; i < n.length; i++) {
var a = n[i];
r.indexOf(a) === -1 && r.push(a);
}
}
}
- Ba !== null && Ba(e, t);
+ za !== null && za(e, t);
};
- var Va = he(null);
- function Ha() {
- var e = Va.current;
- return e === null ? Xu.pooledCache : e;
+ var Ba = ye(null);
+ function Va() {
+ var e = Ba.current;
+ return e === null ? q.pooledCache : e;
}
- function Ua(e, t) {
- t === null ? _e(Va, Va.current) : _e(Va, t.pool);
+ function Ha(e, t) {
+ t === null ? F(Ba, Ba.current) : F(Ba, t.pool);
}
- function Wa() {
- var e = Ha();
+ function Ua() {
+ var e = Va();
return e === null ? null : {
- parent: Da._currentValue,
+ parent: Ea._currentValue,
pool: e
};
}
- var Ga = Error(i(460)), Ka = Error(i(474)), qa = Error(i(542)), Ja = { then: function() {} };
- function Ya(e) {
+ var Wa = Error(i(460)), Ga = Error(i(474)), Ka = Error(i(542)), qa = { then: function() {} };
+ function Ja(e) {
return e = e.status, e === "fulfilled" || e === "rejected";
}
- function Xa(e, t, n) {
+ function Ya(e, t, n) {
switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(hn, hn), t = n), t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, eo(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
+ case "rejected": throw e = t.reason, $a(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;
default:
if (typeof t.status == "string") t.then(hn, hn);
else {
- if (e = Xu, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
+ if (e = q, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));
e = t, e.status = "pending", e.then(function(e) {
if (t.status === "pending") {
var n = t;
@@ -8306,40 +9904,40 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
switch (t.status) {
case "fulfilled": return t.value;
- case "rejected": throw e = t.reason, eo(e), e;
+ case "rejected": throw e = t.reason, $a(e), e;
}
- throw Qa = t, Ga;
+ throw Za = t, Wa;
}
}
- function Za(e) {
+ function Xa(e) {
try {
var t = e._init;
return t(e._payload);
} catch (e) {
- throw typeof e == "object" && e && typeof e.then == "function" ? (Qa = e, Ga) : e;
+ throw typeof e == "object" && e && typeof e.then == "function" ? (Za = e, Wa) : e;
}
}
- var Qa = null;
- function $a() {
- if (Qa === null) throw Error(i(459));
- var e = Qa;
- return Qa = null, e;
+ var Za = null;
+ function Qa() {
+ if (Za === null) throw Error(i(459));
+ var e = Za;
+ return Za = null, e;
}
- function eo(e) {
- if (e === Ga || e === qa) throw Error(i(483));
+ function $a(e) {
+ if (e === Wa || e === Ka) throw Error(i(483));
}
- var to = null, no = 0;
- function ro(e) {
- var t = no;
- return no += 1, to === null && (to = []), Xa(to, e, t);
+ var eo = null, to = 0;
+ function no(e) {
+ var t = to;
+ return to += 1, eo === null && (eo = []), Ya(eo, e, t);
}
- function io(e, t) {
+ function ro(e, t) {
t = t.props.ref, e.ref = t === void 0 ? null : t;
}
- function ao(e, t) {
- throw t.$$typeof === ee ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
+ function io(e, t) {
+ throw t.$$typeof === E ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));
}
- function oo(e) {
+ function ao(e) {
function t(t, n) {
if (e) {
var r = t.deletions;
@@ -8356,7 +9954,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
return t;
}
function a(e, t) {
- return e = Ai(e, t), e.index = 0, e.sibling = null, e;
+ return e = ji(e, t), e.index = 0, e.sibling = null, e;
}
function o(t, n, r) {
return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);
@@ -8365,30 +9963,30 @@ var Nc = /* @__PURE__ */ u(((e) => {
return e && t.alternate === null && (t.flags |= 134217730), t;
}
function c(e, t, n, r) {
- return t === null || t.tag !== 6 ? (t = Pi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 6 ? (t = Fi(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function l(e, t, n, r) {
var i = n.type;
- return i === O ? (e = d(e, t, n.props.children, r, n.key), io(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ie && Za(i) === t.type) ? (t = a(t, n.props), io(t, n), t.return = e, t) : (t = Mi(n.type, n.key, n.props, null, e.mode, r), io(t, n), t.return = e, t);
+ return i === k ? (e = d(e, t, n.props.children, r, n.key), ro(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === ae && Xa(i) === t.type) ? (t = a(t, n.props), ro(t, n), t.return = e, t) : (t = Ni(n.type, n.key, n.props, null, e.mode, r), ro(t, n), t.return = e, t);
}
function u(e, t, n, r) {
- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Li(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);
}
function d(e, t, n, r, i) {
- return t === null || t.tag !== 7 ? (t = Ni(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
+ return t === null || t.tag !== 7 ? (t = Pi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);
}
function f(e, t, n) {
- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Pi("" + t, e.mode, n), t.return = e, t;
+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Fi("" + t, e.mode, n), t.return = e, t;
if (typeof t == "object" && t) {
switch (t.$$typeof) {
- case E: return n = Mi(t.type, t.key, t.props, null, e.mode, n), io(n, t), n.return = e, n;
- case D: return t = Ii(t, e.mode, n), t.return = e, t;
- case ie: return t = Za(t), f(e, t, n);
+ case D: return n = Ni(t.type, t.key, t.props, null, e.mode, n), ro(n, t), n.return = e, n;
+ case O: return t = Li(t, e.mode, n), t.return = e, t;
+ case ae: return t = Xa(t), f(e, t, n);
}
- if (de(t) || ce(t)) return t = Ni(t, e.mode, n, null), t.return = e, t;
- if (typeof t.then == "function") return f(e, ro(t), n);
- if (t.$$typeof === M) return f(e, Sa(e, t), n);
- ao(e, t);
+ if (he(t) || fe(t)) return t = Pi(t, e.mode, n, null), t.return = e, t;
+ if (typeof t.then == "function") return f(e, no(t), n);
+ if (t.$$typeof === te) return f(e, xa(e, t), n);
+ io(e, t);
}
return null;
}
@@ -8397,14 +9995,14 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? c(e, t, "" + n, r) : null;
if (typeof n == "object" && n) {
switch (n.$$typeof) {
- case E: return n.key === i ? l(e, t, n, r) : null;
- case D: return n.key === i ? u(e, t, n, r) : null;
- case ie: return n = Za(n), p(e, t, n, r);
+ case D: return n.key === i ? l(e, t, n, r) : null;
+ case O: return n.key === i ? u(e, t, n, r) : null;
+ case ae: return n = Xa(n), p(e, t, n, r);
}
- if (de(n) || ce(n)) return i === null ? d(e, t, n, r, null) : null;
- if (typeof n.then == "function") return p(e, t, ro(n), r);
- if (n.$$typeof === M) return p(e, t, Sa(e, n), r);
- ao(e, n);
+ if (he(n) || fe(n)) return i === null ? d(e, t, n, r, null) : null;
+ if (typeof n.then == "function") return p(e, t, no(n), r);
+ if (n.$$typeof === te) return p(e, t, xa(e, n), r);
+ io(e, n);
}
return null;
}
@@ -8412,14 +10010,14 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, c(t, e, "" + r, i);
if (typeof r == "object" && r) {
switch (r.$$typeof) {
- case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
- case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
- case ie: return r = Za(r), m(e, t, n, r, i);
+ case D: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);
+ case O: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);
+ case ae: return r = Xa(r), m(e, t, n, r, i);
}
- if (de(r) || ce(r)) return e = e.get(n) || null, d(t, e, r, i, null);
- if (typeof r.then == "function") return m(e, t, n, ro(r), i);
- if (r.$$typeof === M) return m(e, t, n, Sa(t, r), i);
- ao(t, r);
+ if (he(r) || fe(r)) return e = e.get(n) || null, d(t, e, r, i, null);
+ if (typeof r.then == "function") return m(e, t, n, no(r), i);
+ if (r.$$typeof === te) return m(e, t, n, xa(t, r), i);
+ io(t, r);
}
return null;
}
@@ -8465,19 +10063,19 @@ var Nc = /* @__PURE__ */ u(((e) => {
}), U && Ji(a, g), u;
}
function _(e, r, o, c) {
- if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
+ if (typeof o == "object" && o && o.type === k && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {
switch (o.$$typeof) {
- case E:
+ case D:
a: {
for (var l = o.key; r !== null;) {
if (r.key === l) {
- if (l = o.type, l === O) {
+ if (l = o.type, l === k) {
if (r.tag === 7) {
- n(e, r.sibling), c = a(r, o.props.children), io(c, o), c.return = e, e = c;
+ n(e, r.sibling), c = a(r, o.props.children), ro(c, o), c.return = e, e = c;
break a;
}
- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ie && Za(l) === r.type) {
- n(e, r.sibling), c = a(r, o.props), io(c, o), c.return = e, e = c;
+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === ae && Xa(l) === r.type) {
+ n(e, r.sibling), c = a(r, o.props), ro(c, o), c.return = e, e = c;
break a;
}
n(e, r);
@@ -8485,10 +10083,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
t(e, r), r = r.sibling;
}
- o.type === O ? (c = Ni(o.props.children, e.mode, c, o.key), io(c, o), c.return = e, e = c) : (c = Mi(o.type, o.key, o.props, null, e.mode, c), io(c, o), c.return = e, e = c);
+ o.type === k ? (c = Pi(o.props.children, e.mode, c, o.key), ro(c, o), c.return = e, e = c) : (c = Ni(o.type, o.key, o.props, null, e.mode, c), ro(c, o), c.return = e, e = c);
}
return s(e);
- case D:
+ case O:
a: {
for (l = o.key; r !== null;) {
if (r.key === l) {
@@ -8501,36 +10099,36 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
t(e, r), r = r.sibling;
}
- c = Ii(o, e.mode, c), c.return = e, e = c;
+ c = Li(o, e.mode, c), c.return = e, e = c;
}
return s(e);
- case ie: return o = Za(o), _(e, r, o, c);
+ case ae: return o = Xa(o), _(e, r, o, c);
}
- if (de(o)) return h(e, r, o, c);
- if (ce(o)) {
- if (l = ce(o), typeof l != "function") throw Error(i(150));
+ if (he(o)) return h(e, r, o, c);
+ if (fe(o)) {
+ if (l = fe(o), typeof l != "function") throw Error(i(150));
return o = l.call(o), g(e, r, o, c);
}
- if (typeof o.then == "function") return _(e, r, ro(o), c);
- if (o.$$typeof === M) return _(e, r, Sa(e, o), c);
- ao(e, o);
+ if (typeof o.then == "function") return _(e, r, no(o), c);
+ if (o.$$typeof === te) return _(e, r, xa(e, o), c);
+ io(e, o);
}
- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Pi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Fi(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);
}
return function(e, t, n, r) {
try {
- no = 0;
+ to = 0;
var i = _(e, t, n, r);
- return to = null, i;
+ return eo = null, i;
} catch (t) {
- if (t === Ga || t === qa) throw t;
- var a = Oi(29, t, null, e.mode);
+ if (t === Wa || t === Ka) throw t;
+ var a = ki(29, t, null, e.mode);
return a.lanes = r, a.return = e, a;
}
};
}
- var so = oo(!0), co = oo(!1), lo = !1;
- function uo(e) {
+ var oo = ao(!0), so = ao(!1), co = !1;
+ function lo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
@@ -8543,7 +10141,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
callbacks: null
};
}
- function fo(e, t) {
+ function uo(e, t) {
e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
@@ -8552,7 +10150,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
callbacks: null
});
}
- function po(e) {
+ function fo(e) {
return {
lane: e,
tag: 0,
@@ -8561,22 +10159,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
next: null
};
}
- function mo(e, t, n) {
+ function po(e, t, n) {
var r = e.updateQueue;
if (r === null) return null;
- if (r = r.shared, X & 2) {
+ if (r = r.shared, K & 2) {
var i = r.pending;
- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ti(e), wi(e, null, n), t;
+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Ei(e), Ti(e, null, n), t;
}
- return xi(e, r, t, n), Ti(e);
+ return Si(e, r, t, n), Ei(e);
}
- function ho(e, t, n) {
+ function mo(e, t, n) {
if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ft(e, n);
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
}
}
- function go(e, t) {
+ function ho(e, t) {
var n = e.updateQueue, r = e.alternate;
if (r !== null && (r = r.updateQueue, n === r)) {
var i = null, a = null;
@@ -8604,17 +10202,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;
}
- var _o = !1;
- function vo() {
- if (_o) {
- var e = Ia;
+ var go = !1;
+ function _o() {
+ if (go) {
+ var e = Fa;
if (e !== null) throw e;
}
}
- function yo(e, t, n, r) {
- _o = !1;
+ function vo(e, t, n, r) {
+ go = !1;
var i = e.updateQueue;
- lo = !1;
+ co = !1;
var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;
if (s !== null) {
i.shared.pending = null;
@@ -8628,8 +10226,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
o = 0, u = l = c = null, s = a;
do {
var f = s.lane & -536870913, p = f !== s.lane;
- if (p ? (Q & f) === f : (r & f) === f) {
- f !== 0 && f === Fa && (_o = !0), u !== null && (u = u.next = {
+ if (p ? (Y & f) === f : (r & f) === f) {
+ f !== 0 && f === Pa && (go = !0), u !== null && (u = u.next = {
lane: 0,
tag: s.tag,
payload: s.payload,
@@ -8653,7 +10251,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;
d = T({}, d, f);
break a;
- case 2: lo = !0;
+ case 2: co = !0;
}
}
f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));
@@ -8669,52 +10267,52 @@ var Nc = /* @__PURE__ */ u(((e) => {
p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;
}
} while (1);
- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), id |= o, e.lanes = o, e.memoizedState = d;
+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), od |= o, e.lanes = o, e.memoizedState = d;
}
}
- function bo(e, t) {
+ function yo(e, t) {
if (typeof e != "function") throw Error(i(191, e));
e.call(t);
}
- function xo(e, t) {
+ function bo(e, t) {
var n = e.callbacks;
- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) bo(n[e], t);
+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) yo(n[e], t);
+ }
+ var xo = ye(null), So = ye(0);
+ function Co(e, t) {
+ e = id, F(So, e), F(xo, t), id = e | t.baseLanes;
}
- var So = he(null), Co = he(0);
- function wo(e, t) {
- e = nd, _e(Co, e), _e(So, t), nd = e | t.baseLanes;
+ function wo() {
+ F(So, id), F(xo, xo.current);
}
function To() {
- _e(Co, nd), _e(So, So.current);
+ id = So.current, be(xo), be(So);
}
- function Eo() {
- nd = Co.current, ge(So), ge(Co);
+ var Eo = ye(null), Do = null;
+ function Oo(e) {
+ var t = e.alternate;
+ F(No, No.current & 1), F(Eo, e), Do === null && (t === null || xo.current !== null || t.memoizedState !== null) && (Do = e);
}
- var Do = he(null), Oo = null;
function ko(e) {
- var t = e.alternate;
- _e(Po, Po.current & 1), _e(Do, e), Oo === null && (t === null || So.current !== null || t.memoizedState !== null) && (Oo = e);
+ F(No, No.current), F(Eo, e), Do === null && (Do = e);
}
function Ao(e) {
- _e(Po, Po.current), _e(Do, e), Oo === null && (Oo = e);
+ e.tag === 22 ? (F(No, No.current), F(Eo, e), Do === null && (Do = e)) : jo();
}
- function jo(e) {
- e.tag === 22 ? (_e(Po, Po.current), _e(Do, e), Oo === null && (Oo = e)) : Mo();
+ function jo() {
+ F(No, No.current), F(Eo, Eo.current);
}
- function Mo() {
- _e(Po, Po.current), _e(Do, Do.current);
+ function Mo(e) {
+ be(Eo), Do === e && (Do = null), be(No);
}
- function No(e) {
- ge(Do), Oo === e && (Oo = null), ge(Po);
+ var No = ye(0);
+ function Po(e, t) {
+ F(Eo, Eo.current), F(No, t);
}
- var Po = he(0);
- function Fo(e, t) {
- _e(Do, Do.current), _e(Po, t);
+ function Fo(e) {
+ be(No), be(Eo), Do === e && (Do = null);
}
function Io(e) {
- ge(Po), ge(Do), Oo === e && (Oo = null);
- }
- function Lo(e) {
for (var t = e; t !== null;) {
if (t.tag === 13) {
var n = t.memoizedState;
@@ -8734,59 +10332,59 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return null;
}
- var Ro = 0, W = null, zo = null, Bo = null, Vo = !1, Ho = !1, Uo = !1, Wo = 0, Go = 0, Ko = null, qo = 0;
- function Jo() {
+ var Lo = 0, G = null, Ro = null, zo = null, Bo = !1, Vo = !1, Ho = !1, Uo = 0, Wo = 0, Go = null, Ko = 0;
+ function qo() {
throw Error(i(321));
}
- function Yo(e, t) {
+ function Jo(e, t) {
if (t === null) return !1;
- for (var n = 0; n < t.length && n < e.length; n++) if (!Rr(e[n], t[n])) return !1;
+ for (var n = 0; n < t.length && n < e.length; n++) if (!Lr(e[n], t[n])) return !1;
return !0;
}
- function Xo(e, t, n, r, i, a) {
- return Ro = a, W = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, L.H = e === null || e.memoizedState === null ? pc : mc, Uo = !1, a = n(r, i), Uo = !1, Ho && (a = Qo(t, n, r, i)), Zo(e), a;
+ function Yo(e, t, n, r, i, a) {
+ return Lo = a, G = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, N.H = e === null || e.memoizedState === null ? fc : pc, Ho = !1, a = n(r, i), Ho = !1, Vo && (a = Zo(t, n, r, i)), Xo(e), a;
}
- function Zo(e) {
- L.H = fc;
- var t = zo !== null && zo.next !== null;
- if (Ro = 0, Bo = zo = W = null, Vo = !1, Go = 0, Ko = null, t) throw Error(i(300));
- e === null || jc || (e = e.dependencies, e !== null && ya(e) && (jc = !0));
+ function Xo(e) {
+ N.H = dc;
+ var t = Ro !== null && Ro.next !== null;
+ if (Lo = 0, zo = Ro = G = null, Bo = !1, Wo = 0, Go = null, t) throw Error(i(300));
+ e === null || Ac || (e = e.dependencies, e !== null && ya(e) && (Ac = !0));
}
- function Qo(e, t, n, r) {
- W = e;
+ function Zo(e, t, n, r) {
+ G = e;
var a = 0;
do {
- if (Ho && (Ko = null), Go = 0, Ho = !1, 25 <= a) throw Error(i(301));
- if (a += 1, Bo = zo = null, e.updateQueue != null) {
+ if (Vo && (Go = null), Wo = 0, Vo = !1, 25 <= a) throw Error(i(301));
+ if (a += 1, zo = Ro = null, e.updateQueue != null) {
var o = e.updateQueue;
o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);
}
- L.H = hc, o = t(n, r);
- } while (Ho);
+ N.H = mc, o = t(n, r);
+ } while (Vo);
return o;
}
- function $o() {
- var e = L.H, t = e.useState()[0];
- return t = typeof t.then == "function" ? os(t) : t, e = e.useState()[0], (zo === null ? null : zo.memoizedState) !== e && (W.flags |= 1024), t;
+ function Qo() {
+ var e = N.H, t = e.useState()[0];
+ return t = typeof t.then == "function" ? as(t) : t, e = e.useState()[0], (Ro === null ? null : Ro.memoizedState) !== e && (G.flags |= 1024), t;
}
- function es() {
- var e = Wo !== 0;
- return Wo = 0, e;
+ function $o() {
+ var e = Uo !== 0;
+ return Uo = 0, e;
}
- function ts(e, t, n) {
+ function es(e, t, n) {
t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;
}
- function ns(e) {
- if (Vo) {
+ function ts(e) {
+ if (Bo) {
for (e = e.memoizedState; e !== null;) {
var t = e.queue;
t !== null && (t.pending = null), e = e.next;
}
- Vo = !1;
+ Bo = !1;
}
- Ro = 0, Bo = zo = W = null, Ho = !1, Go = Wo = 0, Ko = null;
+ Lo = 0, zo = Ro = G = null, Vo = !1, Wo = Uo = 0, Go = null;
}
- function rs() {
+ function ns() {
var e = {
memoizedState: null,
baseState: null,
@@ -8794,28 +10392,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
queue: null,
next: null
};
- return Bo === null ? W.memoizedState = Bo = e : Bo = Bo.next = e, Bo;
+ return zo === null ? G.memoizedState = zo = e : zo = zo.next = e, zo;
}
- function is() {
- if (zo === null) {
- var e = W.alternate;
+ function rs() {
+ if (Ro === null) {
+ var e = G.alternate;
e = e === null ? null : e.memoizedState;
- } else e = zo.next;
- var t = Bo === null ? W.memoizedState : Bo.next;
- if (t !== null) Bo = t, zo = e;
+ } else e = Ro.next;
+ var t = zo === null ? G.memoizedState : zo.next;
+ if (t !== null) zo = t, Ro = e;
else {
- if (e === null) throw W.alternate === null ? Error(i(467)) : Error(i(310));
- zo = e, e = {
- memoizedState: zo.memoizedState,
- baseState: zo.baseState,
- baseQueue: zo.baseQueue,
- queue: zo.queue,
+ if (e === null) throw G.alternate === null ? Error(i(467)) : Error(i(310));
+ Ro = e, e = {
+ memoizedState: Ro.memoizedState,
+ baseState: Ro.baseState,
+ baseQueue: Ro.baseQueue,
+ queue: Ro.queue,
next: null
- }, Bo === null ? W.memoizedState = Bo = e : Bo = Bo.next = e;
+ }, zo === null ? G.memoizedState = zo = e : zo = zo.next = e;
}
- return Bo;
+ return zo;
}
- function as() {
+ function is() {
return {
lastEffect: null,
events: null,
@@ -8823,22 +10421,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
memoCache: null
};
}
- function os(e) {
- var t = Go;
- return Go += 1, Ko === null && (Ko = []), e = Xa(Ko, e, t), t = W, (Bo === null ? t.memoizedState : Bo.next) === null && (t = t.alternate, L.H = t === null || t.memoizedState === null ? pc : mc), e;
+ function as(e) {
+ var t = Wo;
+ return Wo += 1, Go === null && (Go = []), e = Ya(Go, e, t), t = G, (zo === null ? t.memoizedState : zo.next) === null && (t = t.alternate, N.H = t === null || t.memoizedState === null ? fc : pc), e;
}
- function ss(e) {
+ function os(e) {
if (typeof e == "object" && e) {
- if (typeof e.then == "function") return os(e);
- if (e.$$typeof === se) return;
- if (e.$$typeof === M) return xa(e);
+ if (typeof e.then == "function") return as(e);
+ if (e.$$typeof === ue) return;
+ if (e.$$typeof === te) return W(e);
}
throw Error(i(438, String(e)));
}
- function cs(e) {
- var t = null, n = W.updateQueue;
+ function ss(e) {
+ var t = null, n = G.updateQueue;
if (n !== null && (t = n.memoCache), t == null) {
- var r = W.alternate;
+ var r = G.alternate;
r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {
data: r.data.map(function(e) {
return e.slice();
@@ -8849,16 +10447,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (t ??= {
data: [],
index: 0
- }, n === null && (n = as(), W.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = P;
+ }, n === null && (n = is(), G.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = ce;
return t.index++, n;
}
- function ls(e, t) {
+ function cs(e, t) {
return typeof t == "function" ? t(e) : t;
}
- function us(e) {
- return ds(is(), zo, e);
+ function ls(e) {
+ return us(rs(), Ro, e);
}
- function ds(e, t, n) {
+ function us(e, t, n) {
var r = e.queue;
if (r === null) throw Error(i(311));
r.lastRenderedReducer = n;
@@ -8876,7 +10474,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
var c = s = null, l = null, u = t, d = !1;
do {
var f = u.lane & -536870913;
- if (f === u.lane ? (Ro & f) === f : (Q & f) === f) {
+ if (f === u.lane ? (Lo & f) === f : (Y & f) === f) {
var p = u.revertLane;
if (p === 0) l !== null && (l = l.next = {
lane: 0,
@@ -8886,9 +10484,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }), f === Fa && (d = !0);
- else if ((Ro & p) === p) {
- u = u.next, p === Fa && (d = !0);
+ }), f === Pa && (d = !0);
+ else if ((Lo & p) === p) {
+ u = u.next, p === Pa && (d = !0);
continue;
} else f = {
lane: 0,
@@ -8898,8 +10496,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = f, s = o) : l = l.next = f, W.lanes |= p, id |= p;
- f = u.action, Uo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
+ }, l === null ? (c = l = f, s = o) : l = l.next = f, G.lanes |= p, od |= p;
+ f = u.action, Ho && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);
} else p = {
lane: f,
revertLane: u.revertLane,
@@ -8908,16 +10506,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
hasEagerState: u.hasEagerState,
eagerState: u.eagerState,
next: null
- }, l === null ? (c = l = p, s = o) : l = l.next = p, W.lanes |= f, id |= f;
+ }, l === null ? (c = l = p, s = o) : l = l.next = p, G.lanes |= f, od |= f;
u = u.next;
} while (u !== null && u !== t);
- if (l === null ? s = o : l.next = c, !Rr(o, e.memoizedState) && (jc = !0, d && (n = Ia, n !== null))) throw n;
+ if (l === null ? s = o : l.next = c, !Lr(o, e.memoizedState) && (Ac = !0, d && (n = Fa, n !== null))) throw n;
e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;
}
return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];
}
- function fs(e) {
- var t = is(), n = t.queue;
+ function ds(e) {
+ var t = rs(), n = t.queue;
if (n === null) throw Error(i(311));
n.lastRenderedReducer = e;
var r = n.dispatch, a = n.pending, o = t.memoizedState;
@@ -8927,61 +10525,61 @@ var Nc = /* @__PURE__ */ u(((e) => {
do
o = e(o, s.action), s = s.next;
while (s !== a);
- Rr(o, t.memoizedState) || (jc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
+ Lr(o, t.memoizedState) || (Ac = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;
}
return [o, r];
}
- function ps(e, t, n) {
- var r = W, a = is(), o = U;
+ function fs(e, t, n) {
+ var r = G, a = rs(), o = U;
if (o) {
if (n === void 0) throw Error(i(407));
n = n();
} else n = t();
- var s = !Rr((zo || a).memoizedState, n);
- if (s && (a.memoizedState = n, jc = !0), a = a.queue, Rs(gs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Bo !== null && !!(Bo.memoizedState.tag & 1), Ns(e ? 9 : 8, { destroy: void 0 }, hs.bind(null, r, a, n, t), null), e) {
- if (r.flags |= 2048, Xu === null) throw Error(i(349));
- o || Ro & 127 || ms(r, t, n);
+ var s = !Lr((Ro || a).memoizedState, n);
+ if (s && (a.memoizedState = n, Ac = !0), a = a.queue, Ls(hs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || zo !== null && !!(zo.memoizedState.tag & 1), Ms(e ? 9 : 8, { destroy: void 0 }, ms.bind(null, r, a, n, t), null), e) {
+ if (r.flags |= 2048, q === null) throw Error(i(349));
+ o || Lo & 127 || ps(r, t, n);
}
return n;
}
- function ms(e, t, n) {
+ function ps(e, t, n) {
e.flags |= 16384, e = {
getSnapshot: t,
value: n
- }, t = W.updateQueue, t === null ? (t = as(), W.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
+ }, t = G.updateQueue, t === null ? (t = is(), G.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));
}
- function hs(e, t, n, r) {
- t.value = n, t.getSnapshot = r, _s(t) && vs(e);
+ function ms(e, t, n, r) {
+ t.value = n, t.getSnapshot = r, gs(t) && _s(e);
}
- function gs(e, t, n) {
+ function hs(e, t, n) {
return n(function() {
- _s(t) && vs(e);
+ gs(t) && _s(e);
});
}
- function _s(e) {
+ function gs(e) {
var t = e.getSnapshot;
e = e.value;
try {
var n = t();
- return !Rr(e, n);
+ return !Lr(e, n);
} catch {
return !0;
}
}
- function vs(e) {
- var t = Ci(e, 2);
+ function _s(e) {
+ var t = wi(e, 2);
t !== null && Md(t, e, 2);
}
- function ys(e) {
- var t = rs();
+ function vs(e) {
+ var t = ns();
if (typeof e == "function") {
var n = e;
- if (e = n(), Uo) {
- Je(!0);
+ if (e = n(), Ho) {
+ Qe(!0);
try {
n();
} finally {
- Je(!1);
+ Qe(!1);
}
}
}
@@ -8989,15 +10587,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ls,
+ lastRenderedReducer: cs,
lastRenderedState: e
}, t;
}
- function bs(e, t, n, r) {
- return e.baseState = n, ds(e, zo, typeof r == "function" ? r : ls);
+ function ys(e, t, n, r) {
+ return e.baseState = n, us(e, Ro, typeof r == "function" ? r : cs);
}
- function xs(e, t, n, r, a) {
- if (lc(e)) throw Error(i(485));
+ function bs(e, t, n, r, a) {
+ if (cc(e)) throw Error(i(485));
if (e = t.action, e !== null) {
var o = {
payload: a,
@@ -9012,61 +10610,61 @@ var Nc = /* @__PURE__ */ u(((e) => {
o.listeners.push(e);
}
};
- L.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Ss(t, o)) : (o.next = n.next, t.pending = n.next = o);
+ N.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, xs(t, o)) : (o.next = n.next, t.pending = n.next = o);
}
}
- function Ss(e, t) {
+ function xs(e, t) {
var n = t.action, r = t.payload, i = e.state;
if (t.isTransition) {
- var a = L.T, o = {};
- o.types = a === null ? null : a.types, L.T = o;
+ var a = N.T, o = {};
+ o.types = a === null ? null : a.types, N.T = o;
try {
- var s = n(i, r), c = L.S;
- c !== null && c(o, s), Cs(e, t, s);
+ var s = n(i, r), c = N.S;
+ c !== null && c(o, s), Ss(e, t, s);
} catch (n) {
- Ts(e, t, n);
+ ws(e, t, n);
} finally {
- a !== null && o.types !== null && (a.types = o.types), L.T = a;
+ a !== null && o.types !== null && (a.types = o.types), N.T = a;
}
} else try {
- a = n(i, r), Cs(e, t, a);
+ a = n(i, r), Ss(e, t, a);
} catch (n) {
- Ts(e, t, n);
+ ws(e, t, n);
}
}
- function Cs(e, t, n) {
+ function Ss(e, t, n) {
typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {
- ws(e, t, n);
+ Cs(e, t, n);
}, function(n) {
- return Ts(e, t, n);
- }) : ws(e, t, n);
+ return ws(e, t, n);
+ }) : Cs(e, t, n);
}
- function ws(e, t, n) {
- t.status = "fulfilled", t.value = n, Es(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Ss(e, n)));
+ function Cs(e, t, n) {
+ t.status = "fulfilled", t.value = n, Ts(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, xs(e, n)));
}
- function Ts(e, t, n) {
+ function ws(e, t, n) {
var r = e.pending;
if (e.pending = null, r !== null) {
r = r.next;
do
- t.status = "rejected", t.reason = n, Es(t), t = t.next;
+ t.status = "rejected", t.reason = n, Ts(t), t = t.next;
while (t !== r);
}
e.action = null;
}
- function Es(e) {
+ function Ts(e) {
e = e.listeners;
for (var t = 0; t < e.length; t++) (0, e[t])();
}
- function Ds(e, t) {
+ function Es(e, t) {
return t;
}
- function Os(e, t) {
+ function Ds(e, t) {
if (U) {
- var n = Xu.formState;
+ var n = q.formState;
if (n !== null) {
a: {
- var r = W;
+ var r = G;
if (U) {
if (ea) {
b: {
@@ -9094,48 +10692,48 @@ var Nc = /* @__PURE__ */ u(((e) => {
r && (t = n[0]);
}
}
- return n = rs(), n.memoizedState = n.baseState = t, r = {
+ return n = ns(), n.memoizedState = n.baseState = t, r = {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: Ds,
+ lastRenderedReducer: Es,
lastRenderedState: t
- }, n.queue = r, n = oc.bind(null, W, r), r.dispatch = n, r = ys(!1), a = cc.bind(null, W, !1, r.queue), r = rs(), i = {
+ }, n.queue = r, n = ac.bind(null, G, r), r.dispatch = n, r = vs(!1), a = sc.bind(null, G, !1, r.queue), r = ns(), i = {
state: t,
dispatch: null,
action: e,
pending: null
- }, r.queue = i, n = xs.bind(null, W, i, a, n), i.dispatch = n, r.memoizedState = e, [
+ }, r.queue = i, n = bs.bind(null, G, i, a, n), i.dispatch = n, r.memoizedState = e, [
t,
n,
!1
];
}
- function ks(e) {
- return As(is(), zo, e);
+ function Os(e) {
+ return ks(rs(), Ro, e);
}
- function As(e, t, n) {
- if (t = ds(e, t, Ds)[0], e = us(ls)[0], typeof t == "object" && t && typeof t.then == "function") try {
- var r = os(t);
+ function ks(e, t, n) {
+ if (t = us(e, t, Es)[0], e = ls(cs)[0], typeof t == "object" && t && typeof t.then == "function") try {
+ var r = as(t);
} catch (e) {
- throw e === Ga ? qa : e;
+ throw e === Wa ? Ka : e;
}
else r = t;
- t = is();
+ t = rs();
var i = t.queue, a = i.dispatch;
- return n !== t.memoizedState && (W.flags |= 2048, Ns(9, { destroy: void 0 }, js.bind(null, i, n), null)), [
+ return n !== t.memoizedState && (G.flags |= 2048, Ms(9, { destroy: void 0 }, As.bind(null, i, n), null)), [
r,
a,
e
];
}
- function js(e, t) {
+ function As(e, t) {
e.action = t;
}
- function Ms(e) {
- var t = is(), n = zo;
- if (n !== null) return As(t, n, e);
- is(), t = t.memoizedState, n = is();
+ function js(e) {
+ var t = rs(), n = Ro;
+ if (n !== null) return ks(t, n, e);
+ rs(), t = t.memoizedState, n = rs();
var r = n.queue.dispatch;
return n.memoizedState = e, [
t,
@@ -9143,60 +10741,60 @@ var Nc = /* @__PURE__ */ u(((e) => {
!1
];
}
- function Ns(e, t, n, r) {
+ function Ms(e, t, n, r) {
return e = {
tag: e,
create: n,
deps: r,
inst: t,
next: null
- }, t = W.updateQueue, t === null && (t = as(), W.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }, t = G.updateQueue, t === null && (t = is(), G.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;
+ }
+ function Ns() {
+ return rs().memoizedState;
}
- function Ps() {
- return is().memoizedState;
+ function Ps(e, t, n, r) {
+ var i = ns();
+ G.flags |= e, i.memoizedState = Ms(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
}
function Fs(e, t, n, r) {
var i = rs();
- W.flags |= e, i.memoizedState = Ns(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);
- }
- function Is(e, t, n, r) {
- var i = is();
r = r === void 0 ? null : r;
var a = i.memoizedState.inst;
- zo !== null && r !== null && Yo(r, zo.memoizedState.deps) ? i.memoizedState = Ns(t, a, n, r) : (W.flags |= e, i.memoizedState = Ns(1 | t, a, n, r));
+ Ro !== null && r !== null && Jo(r, Ro.memoizedState.deps) ? i.memoizedState = Ms(t, a, n, r) : (G.flags |= e, i.memoizedState = Ms(1 | t, a, n, r));
}
- function Ls(e, t) {
- Fs(8390656, 8, e, t);
+ function Is(e, t) {
+ Ps(8390656, 8, e, t);
}
- function Rs(e, t) {
- Is(2048, 8, e, t);
+ function Ls(e, t) {
+ Fs(2048, 8, e, t);
}
- function zs(e) {
- W.flags |= 4;
- var t = W.updateQueue;
- if (t === null) t = as(), W.updateQueue = t, t.events = [e];
+ function Rs(e) {
+ G.flags |= 4;
+ var t = G.updateQueue;
+ if (t === null) t = is(), G.updateQueue = t, t.events = [e];
else {
var n = t.events;
n === null ? t.events = [e] : n.push(e);
}
}
- function Bs(e) {
- var t = is().memoizedState;
- return zs({
+ function zs(e) {
+ var t = rs().memoizedState;
+ return Rs({
ref: t,
nextImpl: e
}), function() {
- if (X & 2) throw Error(i(440));
+ if (K & 2) throw Error(i(440));
return t.impl.apply(void 0, arguments);
};
}
+ function Bs(e, t) {
+ return Fs(4, 2, e, t);
+ }
function Vs(e, t) {
- return Is(4, 2, e, t);
+ return Fs(4, 4, e, t);
}
function Hs(e, t) {
- return Is(4, 4, e, t);
- }
- function Us(e, t) {
if (typeof t == "function") {
e = e();
var n = t(e);
@@ -9208,76 +10806,76 @@ var Nc = /* @__PURE__ */ u(((e) => {
t.current = null;
};
}
- function Ws(e, t, n) {
- n = n == null ? null : n.concat([e]), Is(4, 4, Us.bind(null, t, e), n);
+ function Us(e, t, n) {
+ n = n == null ? null : n.concat([e]), Fs(4, 4, Hs.bind(null, t, e), n);
}
- function Gs() {}
- function Ks(e, t) {
- var n = is();
+ function Ws() {}
+ function Gs(e, t) {
+ var n = rs();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- return t !== null && Yo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
+ return t !== null && Jo(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);
}
- function qs(e, t) {
- var n = is();
+ function Ks(e, t) {
+ var n = rs();
t = t === void 0 ? null : t;
var r = n.memoizedState;
- if (t !== null && Yo(t, r[1])) return r[0];
- if (r = e(), Uo) {
- Je(!0);
+ if (t !== null && Jo(t, r[1])) return r[0];
+ if (r = e(), Ho) {
+ Qe(!0);
try {
e();
} finally {
- Je(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
}
- function Js(e, t, n) {
- return n === void 0 || Ro & 1073741824 && !(Q & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), W.lanes |= e, id |= e, n);
+ function qs(e, t, n) {
+ return n === void 0 || Lo & 1073741824 && !(Y & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Ad(), G.lanes |= e, od |= e, n);
}
- function Ys(e, t, n, r) {
- return Rr(n, t) ? n : So.current === null ? !(Ro & 106) || Ro & 1073741824 && !(Q & 261930) ? (jc = !0, e.memoizedState = n) : (e = Ad(), W.lanes |= e, id |= e, t) : (e = Js(e, n, r), Rr(e, t) || (jc = !0), e);
+ function Js(e, t, n, r) {
+ return Lr(n, t) ? n : xo.current === null ? !(Lo & 106) || Lo & 1073741824 && !(Y & 261930) ? (Ac = !0, e.memoizedState = n) : (e = Ad(), G.lanes |= e, od |= e, t) : (e = qs(e, n, r), Lr(e, t) || (Ac = !0), e);
}
- function Xs(e, t, n, r, i) {
- var a = R.p;
- R.p = a !== 0 && 8 > a ? a : 8;
- var o = L.T, s = {};
- s.types = o === null ? null : o.types, L.T = s, cc(e, !1, t, n);
+ function Ys(e, t, n, r, i) {
+ var a = P.p;
+ P.p = a !== 0 && 8 > a ? a : 8;
+ var o = N.T, s = {};
+ s.types = o === null ? null : o.types, N.T = s, sc(e, !1, t, n);
try {
- var c = i(), l = L.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? sc(e, t, za(c, r), kd(e)) : sc(e, t, r, kd(e));
+ var c = i(), l = N.S;
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? oc(e, t, Ra(c, r), kd(e)) : oc(e, t, r, kd(e));
} catch (n) {
- sc(e, t, {
+ oc(e, t, {
then: function() {},
status: "rejected",
reason: n
}, kd());
} finally {
- R.p = a, o !== null && s.types !== null && (o.types = s.types), L.T = o;
+ P.p = a, o !== null && s.types !== null && (o.types = s.types), N.T = o;
}
}
- function Zs() {}
- function Qs(e, t, n, r) {
+ function Xs() {}
+ function Zs(e, t, n, r) {
if (e.tag !== 5) throw Error(i(476));
- var a = $s(e).queue;
- Xs(e, a, t, fe, n === null ? Zs : function() {
- return ec(e), n(r);
+ var a = Qs(e).queue;
+ Ys(e, a, t, ge, n === null ? Xs : function() {
+ return $s(e), n(r);
});
}
- function $s(e) {
+ function Qs(e) {
var t = e.memoizedState;
if (t !== null) return t;
t = {
- memoizedState: fe,
- baseState: fe,
+ memoizedState: ge,
+ baseState: ge,
baseQueue: null,
queue: {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ls,
- lastRenderedState: fe
+ lastRenderedReducer: cs,
+ lastRenderedState: ge
},
next: null
};
@@ -9290,40 +10888,40 @@ var Nc = /* @__PURE__ */ u(((e) => {
pending: null,
lanes: 0,
dispatch: null,
- lastRenderedReducer: ls,
+ lastRenderedReducer: cs,
lastRenderedState: n
},
next: null
}, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;
}
- function ec(e) {
- var t = $s(e);
- t.next === null && (t = e.alternate.memoizedState), sc(e, t.next.queue, {}, kd());
+ function $s(e) {
+ var t = Qs(e);
+ t.next === null && (t = e.alternate.memoizedState), oc(e, t.next.queue, {}, kd());
+ }
+ function ec() {
+ return W(sh);
}
function tc() {
- return xa(sh);
+ return rs().memoizedState;
}
function nc() {
- return is().memoizedState;
+ return rs().memoizedState;
}
- function rc() {
- return is().memoizedState;
- }
- function ic(e) {
+ function rc(e) {
for (var t = e.return; t !== null;) {
switch (t.tag) {
case 24:
case 3:
var n = kd();
- e = po(n);
- var r = mo(t, e, n);
- r !== null && (Md(r, t, n), ho(r, t, n)), t = { cache: Oa() }, e.payload = t;
+ e = fo(n);
+ var r = po(t, e, n);
+ r !== null && (Md(r, t, n), mo(r, t, n)), t = { cache: Da() }, e.payload = t;
return;
}
t = t.return;
}
}
- function ac(e, t, n) {
+ function ic(e, t, n) {
var r = kd();
n = {
lane: r,
@@ -9333,12 +10931,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, lc(e) ? uc(t, n) : (n = Si(e, t, n, r), n !== null && (Md(n, e, r), dc(n, t, r)));
+ }, cc(e) ? lc(t, n) : (n = Ci(e, t, n, r), n !== null && (Md(n, e, r), uc(n, t, r)));
}
- function oc(e, t, n) {
- sc(e, t, n, kd());
+ function ac(e, t, n) {
+ oc(e, t, n, kd());
}
- function sc(e, t, n, r) {
+ function oc(e, t, n, r) {
var i = {
lane: r,
revertLane: 0,
@@ -9348,18 +10946,18 @@ var Nc = /* @__PURE__ */ u(((e) => {
eagerState: null,
next: null
};
- if (lc(e)) uc(t, i);
+ if (cc(e)) lc(t, i);
else {
var a = e.alternate;
if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {
var o = t.lastRenderedState, s = a(o, n);
- if (i.hasEagerState = !0, i.eagerState = s, Rr(s, o)) return xi(e, t, i, 0), Xu === null && bi(), !1;
+ if (i.hasEagerState = !0, i.eagerState = s, Lr(s, o)) return Si(e, t, i, 0), q === null && xi(), !1;
} catch {}
- if (n = Si(e, t, i, r), n !== null) return Md(n, e, r), dc(n, t, r), !0;
+ if (n = Ci(e, t, i, r), n !== null) return Md(n, e, r), uc(n, t, r), !0;
}
return !1;
}
- function cc(e, t, n, r) {
+ function sc(e, t, n, r) {
if (r = {
lane: 2,
revertLane: Nf(),
@@ -9368,91 +10966,91 @@ var Nc = /* @__PURE__ */ u(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, lc(e)) {
+ }, cc(e)) {
if (t) throw Error(i(479));
- } else t = Si(e, n, r, 2), t !== null && Md(t, e, 2);
+ } else t = Ci(e, n, r, 2), t !== null && Md(t, e, 2);
}
- function lc(e) {
+ function cc(e) {
var t = e.alternate;
- return e === W || t !== null && t === W;
+ return e === G || t !== null && t === G;
}
- function uc(e, t) {
- Ho = Vo = !0;
+ function lc(e, t) {
+ Vo = Bo = !0;
var n = e.pending;
n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;
}
- function dc(e, t, n) {
+ function uc(e, t, n) {
if (n & 4194048) {
var r = t.lanes;
- r &= e.pendingLanes, n |= r, t.lanes = n, ft(e, n);
- }
- }
- var fc = {
- readContext: xa,
- use: ss,
- useCallback: Jo,
- useContext: Jo,
- useEffect: Jo,
- useImperativeHandle: Jo,
- useLayoutEffect: Jo,
- useInsertionEffect: Jo,
- useMemo: Jo,
- useReducer: Jo,
- useRef: Jo,
- useState: Jo,
- useDebugValue: Jo,
- useDeferredValue: Jo,
- useTransition: Jo,
- useSyncExternalStore: Jo,
- useId: Jo,
- useHostTransitionStatus: Jo,
- useFormState: Jo,
- useActionState: Jo,
- useOptimistic: Jo,
- useMemoCache: Jo,
- useCacheRefresh: Jo,
- useEffectEvent: Jo
- }, pc = {
- readContext: xa,
- use: ss,
+ r &= e.pendingLanes, n |= r, t.lanes = n, gt(e, n);
+ }
+ }
+ var dc = {
+ readContext: W,
+ use: os,
+ useCallback: qo,
+ useContext: qo,
+ useEffect: qo,
+ useImperativeHandle: qo,
+ useLayoutEffect: qo,
+ useInsertionEffect: qo,
+ useMemo: qo,
+ useReducer: qo,
+ useRef: qo,
+ useState: qo,
+ useDebugValue: qo,
+ useDeferredValue: qo,
+ useTransition: qo,
+ useSyncExternalStore: qo,
+ useId: qo,
+ useHostTransitionStatus: qo,
+ useFormState: qo,
+ useActionState: qo,
+ useOptimistic: qo,
+ useMemoCache: qo,
+ useCacheRefresh: qo,
+ useEffectEvent: qo
+ }, fc = {
+ readContext: W,
+ use: os,
useCallback: function(e, t) {
- return rs().memoizedState = [e, t === void 0 ? null : t], e;
+ return ns().memoizedState = [e, t === void 0 ? null : t], e;
},
- useContext: xa,
- useEffect: Ls,
+ useContext: W,
+ useEffect: Is,
useImperativeHandle: function(e, t, n) {
- n = n == null ? null : n.concat([e]), Fs(4194308, 4, Us.bind(null, t, e), n);
+ n = n == null ? null : n.concat([e]), Ps(4194308, 4, Hs.bind(null, t, e), n);
},
useLayoutEffect: function(e, t) {
- return Fs(4194308, 4, e, t);
+ return Ps(4194308, 4, e, t);
},
useInsertionEffect: function(e, t) {
- Fs(4, 2, e, t);
+ Ps(4, 2, e, t);
},
useMemo: function(e, t) {
- var n = rs();
+ var n = ns();
t = t === void 0 ? null : t;
var r = e();
- if (Uo) {
- Je(!0);
+ if (Ho) {
+ Qe(!0);
try {
e();
} finally {
- Je(!1);
+ Qe(!1);
}
}
return n.memoizedState = [r, t], r;
},
useReducer: function(e, t, n) {
- var r = rs();
+ var r = ns();
if (n !== void 0) {
var i = n(t);
- if (Uo) {
- Je(!0);
+ if (Ho) {
+ Qe(!0);
try {
n(t);
} finally {
- Je(!1);
+ Qe(!1);
}
}
} else i = t;
@@ -9462,54 +11060,54 @@ var Nc = /* @__PURE__ */ u(((e) => {
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: i
- }, r.queue = e, e = e.dispatch = ac.bind(null, W, e), [r.memoizedState, e];
+ }, r.queue = e, e = e.dispatch = ic.bind(null, G, e), [r.memoizedState, e];
},
useRef: function(e) {
- var t = rs();
+ var t = ns();
return e = { current: e }, t.memoizedState = e;
},
useState: function(e) {
- e = ys(e);
- var t = e.queue, n = oc.bind(null, W, t);
+ e = vs(e);
+ var t = e.queue, n = ac.bind(null, G, t);
return t.dispatch = n, [e.memoizedState, n];
},
- useDebugValue: Gs,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return Js(rs(), e, t);
+ return qs(ns(), e, t);
},
useTransition: function() {
- var e = ys(!1);
- return e = Xs.bind(null, W, e.queue, !0, !1), rs().memoizedState = e, [!1, e];
+ var e = vs(!1);
+ return e = Ys.bind(null, G, e.queue, !0, !1), ns().memoizedState = e, [!1, e];
},
useSyncExternalStore: function(e, t, n) {
- var r = W, a = rs();
+ var r = G, a = ns();
if (U) {
if (n === void 0) throw Error(i(407));
n = n();
} else {
- if (n = t(), Xu === null) throw Error(i(349));
- Q & 127 || ms(r, t, n);
+ if (n = t(), q === null) throw Error(i(349));
+ Y & 127 || ps(r, t, n);
}
a.memoizedState = n;
var o = {
value: n,
getSnapshot: t
};
- return a.queue = o, Ls(gs.bind(null, r, o, e), [e]), r.flags |= 2048, Ns(9, { destroy: void 0 }, hs.bind(null, r, o, n, t), null), n;
+ return a.queue = o, Is(hs.bind(null, r, o, e), [e]), r.flags |= 2048, Ms(9, { destroy: void 0 }, ms.bind(null, r, o, n, t), null), n;
},
useId: function() {
- var e = rs(), t = Xu.identifierPrefix;
+ var e = ns(), t = q.identifierPrefix;
if (U) {
- var n = qi, r = Ki;
- n = (r & ~(1 << 32 - Ye(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Wo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
- } else n = qo++, t = "_" + t + "r_" + n.toString(32) + "_";
+ var n = H, r = qi;
+ n = (r & ~(1 << 32 - $e(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Uo++, 0 < n && (t += "H" + n.toString(32)), t += "_";
+ } else n = Ko++, t = "_" + t + "r_" + n.toString(32) + "_";
return e.memoizedState = t;
},
- useHostTransitionStatus: tc,
- useFormState: Os,
- useActionState: Os,
+ useHostTransitionStatus: ec,
+ useFormState: Ds,
+ useActionState: Ds,
useOptimistic: function(e) {
- var t = rs();
+ var t = ns();
t.memoizedState = t.baseState = e;
var n = {
pending: null,
@@ -9518,132 +11116,132 @@ var Nc = /* @__PURE__ */ u(((e) => {
lastRenderedReducer: null,
lastRenderedState: null
};
- return t.queue = n, t = cc.bind(null, W, !0, n), n.dispatch = t, [e, t];
+ return t.queue = n, t = sc.bind(null, G, !0, n), n.dispatch = t, [e, t];
},
- useMemoCache: cs,
+ useMemoCache: ss,
useCacheRefresh: function() {
- return rs().memoizedState = ic.bind(null, W);
+ return ns().memoizedState = rc.bind(null, G);
},
useEffectEvent: function(e) {
- var t = rs(), n = { impl: e };
+ var t = ns(), n = { impl: e };
return t.memoizedState = n, function() {
- if (X & 2) throw Error(i(440));
+ if (K & 2) throw Error(i(440));
return n.impl.apply(void 0, arguments);
};
}
- }, mc = {
- readContext: xa,
- use: ss,
- useCallback: Ks,
- useContext: xa,
- useEffect: Rs,
- useImperativeHandle: Ws,
- useInsertionEffect: Vs,
- useLayoutEffect: Hs,
- useMemo: qs,
- useReducer: us,
- useRef: Ps,
+ }, pc = {
+ readContext: W,
+ use: os,
+ useCallback: Gs,
+ useContext: W,
+ useEffect: Ls,
+ useImperativeHandle: Us,
+ useInsertionEffect: Bs,
+ useLayoutEffect: Vs,
+ useMemo: Ks,
+ useReducer: ls,
+ useRef: Ns,
useState: function() {
- return us(ls);
+ return ls(cs);
},
- useDebugValue: Gs,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- return Ys(is(), zo.memoizedState, e, t);
+ return Js(rs(), Ro.memoizedState, e, t);
},
useTransition: function() {
- var e = us(ls)[0], t = is().memoizedState;
- return [typeof e == "boolean" ? e : os(e), t];
+ var e = ls(cs)[0], t = rs().memoizedState;
+ return [typeof e == "boolean" ? e : as(e), t];
},
- useSyncExternalStore: ps,
- useId: nc,
- useHostTransitionStatus: tc,
- useFormState: ks,
- useActionState: ks,
+ useSyncExternalStore: fs,
+ useId: tc,
+ useHostTransitionStatus: ec,
+ useFormState: Os,
+ useActionState: Os,
useOptimistic: function(e, t) {
- return bs(is(), zo, e, t);
+ return ys(rs(), Ro, e, t);
},
- useMemoCache: cs,
- useCacheRefresh: rc,
- useEffectEvent: Bs
- }, hc = {
- readContext: xa,
- use: ss,
- useCallback: Ks,
- useContext: xa,
- useEffect: Rs,
- useImperativeHandle: Ws,
- useInsertionEffect: Vs,
- useLayoutEffect: Hs,
- useMemo: qs,
- useReducer: fs,
- useRef: Ps,
+ useMemoCache: ss,
+ useCacheRefresh: nc,
+ useEffectEvent: zs
+ }, mc = {
+ readContext: W,
+ use: os,
+ useCallback: Gs,
+ useContext: W,
+ useEffect: Ls,
+ useImperativeHandle: Us,
+ useInsertionEffect: Bs,
+ useLayoutEffect: Vs,
+ useMemo: Ks,
+ useReducer: ds,
+ useRef: Ns,
useState: function() {
- return fs(ls);
+ return ds(cs);
},
- useDebugValue: Gs,
+ useDebugValue: Ws,
useDeferredValue: function(e, t) {
- var n = is();
- return zo === null ? Js(n, e, t) : Ys(n, zo.memoizedState, e, t);
+ var n = rs();
+ return Ro === null ? qs(n, e, t) : Js(n, Ro.memoizedState, e, t);
},
useTransition: function() {
- var e = fs(ls)[0], t = is().memoizedState;
- return [typeof e == "boolean" ? e : os(e), t];
+ var e = ds(cs)[0], t = rs().memoizedState;
+ return [typeof e == "boolean" ? e : as(e), t];
},
- useSyncExternalStore: ps,
- useId: nc,
- useHostTransitionStatus: tc,
- useFormState: Ms,
- useActionState: Ms,
+ useSyncExternalStore: fs,
+ useId: tc,
+ useHostTransitionStatus: ec,
+ useFormState: js,
+ useActionState: js,
useOptimistic: function(e, t) {
- var n = is();
- return zo === null ? (n.baseState = e, [e, n.queue.dispatch]) : bs(n, zo, e, t);
+ var n = rs();
+ return Ro === null ? (n.baseState = e, [e, n.queue.dispatch]) : ys(n, Ro, e, t);
},
- useMemoCache: cs,
- useCacheRefresh: rc,
- useEffectEvent: Bs
+ useMemoCache: ss,
+ useCacheRefresh: nc,
+ useEffectEvent: zs
};
- function gc(e, t, n, r) {
+ function hc(e, t, n, r) {
t = e.memoizedState, n = n(r, t), n = n == null ? t : T({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);
}
- var _c = {
+ var gc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = po(r);
- i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Md(t, e, r), ho(t, e, r));
+ var r = kd(), i = fo(r);
+ i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Md(t, e, r), mo(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = kd(), i = po(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = mo(e, i, r), t !== null && (Md(t, e, r), ho(t, e, r));
+ var r = kd(), i = fo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = po(e, i, r), t !== null && (Md(t, e, r), mo(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = kd(), r = po(n);
- r.tag = 2, t != null && (r.callback = t), t = mo(e, r, n), t !== null && (Md(t, e, n), ho(t, e, n));
+ var n = kd(), r = fo(n);
+ r.tag = 2, t != null && (r.callback = t), t = po(e, r, n), t !== null && (Md(t, e, n), mo(t, e, n));
}
};
- function vc(e, t, n, r, i, a, o) {
+ function _c(e, t, n, r, i, a, o) {
return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !zr(n, r) || !zr(i, a) : !0;
}
- function yc(e, t, n, r) {
- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && _c.enqueueReplaceState(t, t.state, null);
+ function vc(e, t, n, r) {
+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && gc.enqueueReplaceState(t, t.state, null);
}
- function bc(e, t) {
+ function yc(e, t) {
var n = t;
if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);
if (e = e.defaultProps) for (var i in n === t && (n = T({}, n)), e) n[i] === void 0 && (n[i] = e[i]);
return n;
}
- function xc(e) {
- gi(e);
+ function bc(e) {
+ _i(e);
}
- function Sc(e) {
+ function xc(e) {
console.error(e);
}
- function Cc(e) {
- gi(e);
+ function Sc(e) {
+ _i(e);
}
- function wc(e, t) {
+ function Cc(e, t) {
try {
var n = e.onUncaughtError;
n(t.value, { componentStack: t.stack });
@@ -9653,7 +11251,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
});
}
}
- function Tc(e, t, n) {
+ function wc(e, t, n) {
try {
var r = e.onCaughtError;
r(n.value, {
@@ -9666,39 +11264,39 @@ var Nc = /* @__PURE__ */ u(((e) => {
});
}
}
- function Ec(e, t, n) {
- return n = po(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
- wc(e, t);
+ function Tc(e, t, n) {
+ return n = fo(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {
+ Cc(e, t);
}, n;
}
- function Dc(e) {
- return e = po(e), e.tag = 3, e;
+ function Ec(e) {
+ return e = fo(e), e.tag = 3, e;
}
- function Oc(e, t, n, r) {
+ function Dc(e, t, n, r) {
var i = n.type.getDerivedStateFromError;
if (typeof i == "function") {
var a = r.value;
e.payload = function() {
return i(a);
}, e.callback = function() {
- Tc(t, n, r);
+ wc(t, n, r);
};
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Tc(t, n, r), typeof i != "function" && (gd === null ? gd = /* @__PURE__ */ new Set([this]) : gd.add(this));
+ wc(t, n, r), typeof i != "function" && (gd === null ? gd = /* @__PURE__ */ new Set([this]) : gd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
}
- function kc(e, t, n, r, a) {
+ function Oc(e, t, n, r, a) {
if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {
- if (t = n.alternate, t !== null && va(t, n, a, !0), n = Do.current, n !== null) {
+ if (t = n.alternate, t !== null && va(t, n, a, !0), n = Eo.current, n !== null) {
switch (n.tag) {
case 31:
case 13:
- case 19: return Oo === null ? Wd() : n.alternate === null && rd === 0 && (rd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
- case 22: return n.flags |= 65536, r === Ja ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
+ case 19: return Do === null ? Wd() : n.alternate === null && ad === 0 && (ad = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
+ case 22: return n.flags |= 65536, r === qa ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
@@ -9708,15 +11306,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return pf(e, r, a), Wd(), !1;
}
- if (U) return t = Do.current, t === null ? (r !== ra && (t = Error(i(423), { cause: r }), ua(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = Ec(e.stateNode, r, a), go(e, a), rd !== 4 && (rd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ra && (e = Error(i(422), { cause: r }), ua(Ri(e, n)))), !1;
+ if (U) return t = Eo.current, t === null ? (r !== ra && (t = Error(i(423), { cause: r }), ua(zi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = zi(r, n), a = Tc(e.stateNode, r, a), ho(e, a), ad !== 4 && (ad = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== ra && (e = Error(i(422), { cause: r }), ua(zi(e, n)))), !1;
var o = Error(i(520), { cause: r });
- if (o = Ri(o, n), ld === null ? ld = [o] : ld.push(o), rd !== 4 && (rd = 2), t === null) return !0;
- r = Ri(r, n), n = t;
+ if (o = zi(o, n), ud === null ? ud = [o] : ud.push(o), ad !== 4 && (ad = 2), t === null) return !0;
+ r = zi(r, n), n = t;
do {
switch (n.tag) {
- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Ec(n.stateNode, r, e), go(n, e), !1;
+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Tc(n.stateNode, r, e), ho(n, e), !1;
case 1:
- if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (gd === null || !gd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Dc(a), Oc(a, e, n, r), go(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (gd === null || !gd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Ec(a), Dc(a, e, n, r), ho(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -9724,41 +11322,41 @@ var Nc = /* @__PURE__ */ u(((e) => {
} while (n !== null);
return !1;
}
- var Ac = Error(i(461)), jc = !1;
- function Mc(e, t, n, r) {
- t.child = e === null ? co(t, null, n, r) : so(t, e.child, n, r);
+ var kc = Error(i(461)), Ac = !1;
+ function jc(e, t, n, r) {
+ t.child = e === null ? so(t, null, n, r) : oo(t, e.child, n, r);
}
- function Nc(e, t, n, r, i) {
+ function Mc(e, t, n, r, i) {
n = n.render;
var a = t.ref;
if ("ref" in r) {
var o = {};
for (var s in r) s !== "ref" && (o[s] = r[s]);
} else o = r;
- return ba(t), r = Xo(e, t, n, o, a, i), s = es(), e !== null && !jc ? (ts(e, t, i), cl(e, t, i)) : (U && s && Xi(t), t.flags |= 1, Mc(e, t, r, i), t.child);
+ return ba(t), r = Yo(e, t, n, o, a, i), s = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (U && s && Xi(t), t.flags |= 1, jc(e, t, r, i), t.child);
}
- function Fc(e, t, n, r, i) {
+ function Nc(e, t, n, r, i) {
if (e === null) {
var a = n.type;
- return typeof a == "function" && !ki(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Ic(e, t, a, r, i)) : (e = Mi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
+ return typeof a == "function" && !Ai(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, Pc(e, t, a, r, i)) : (e = Ni(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);
}
- if (a = e.child, !ll(e, i)) {
+ if (a = e.child, !sl(e, i)) {
var o = a.memoizedProps;
- if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return cl(e, t, i);
+ if (n = n.compare, n = n === null ? zr : n, n(o, r) && e.ref === t.ref) return ol(e, t, i);
}
- return t.flags |= 1, e = Ai(a, r), e.ref = t.ref, e.return = t, t.child = e;
+ return t.flags |= 1, e = ji(a, r), e.ref = t.ref, e.return = t, t.child = e;
}
- function Ic(e, t, n, r, i) {
+ function Pc(e, t, n, r, i) {
if (e !== null) {
var a = e.memoizedProps;
if (zr(a, r) && e.ref === t.ref) {
- if (jc = !1, t.pendingProps = r = a, ll(e, i)) e.flags & 131072 && (jc = !0);
- else return t.lanes = e.lanes, cl(e, t, i);
+ if (Ac = !1, t.pendingProps = r = a, sl(e, i)) e.flags & 131072 && (Ac = !0);
+ else return t.lanes = e.lanes, ol(e, t, i);
}
}
- return Wc(e, t, n, r, i);
+ return Hc(e, t, n, r, i);
}
- function Lc(e, t, n, r) {
+ function Fc(e, t, n, r) {
var i = r.children, a = e === null ? null : e.memoizedState;
if (e === null && t.stateNode === null && (t.stateNode = {
_visibility: 1,
@@ -9771,17 +11369,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;
r = i & ~a;
} else r = 0, t.child = null;
- return zc(e, t, a, n, r);
+ return Lc(e, t, a, n, r);
}
if (n & 536870912) t.memoizedState = {
baseLanes: 0,
cachePool: null
- }, e !== null && Ua(t, a === null ? null : a.cachePool), a === null ? To() : wo(t, a), jo(t);
- else return r = t.lanes = 536870912, zc(e, t, a === null ? n : a.baseLanes | n, n, r);
- } else a === null ? (e !== null && Ua(t, null), To(), Mo()) : (Ua(t, a.cachePool), wo(t, a), Mo(), t.memoizedState = null);
- return Mc(e, t, i, n), t.child;
+ }, e !== null && Ha(t, a === null ? null : a.cachePool), a === null ? wo() : Co(t, a), Ao(t);
+ else return r = t.lanes = 536870912, Lc(e, t, a === null ? n : a.baseLanes | n, n, r);
+ } else a === null ? (e !== null && Ha(t, null), wo(), jo()) : (Ha(t, a.cachePool), Co(t, a), jo(), t.memoizedState = null);
+ return jc(e, t, i, n), t.child;
}
- function Rc(e, t) {
+ function Ic(e, t) {
return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {
_visibility: 1,
_pendingMarkers: null,
@@ -9789,68 +11387,68 @@ var Nc = /* @__PURE__ */ u(((e) => {
_transitions: null
}), t.sibling;
}
- function zc(e, t, n, r, i) {
- var a = Ha();
+ function Lc(e, t, n, r, i) {
+ var a = Va();
return a = a === null ? null : {
- parent: Da._currentValue,
+ parent: Ea._currentValue,
pool: a
}, t.memoizedState = {
baseLanes: n,
cachePool: a
- }, e !== null && Ua(t, null), To(), jo(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
+ }, e !== null && Ha(t, null), wo(), Ao(t), e !== null && va(e, t, r, !0), t.childLanes = i, null;
}
- function Bc(e, t) {
- return t = $c({
+ function Rc(e, t) {
+ return t = Zc({
mode: t.mode,
children: t.children
}, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;
}
- function Vc(e, t, n) {
- return so(t, e.child, null, n), e = Bc(t, t.pendingProps), e.flags |= 2, No(t), t.memoizedState = null, e;
+ function zc(e, t, n) {
+ return oo(t, e.child, null, n), e = Rc(t, t.pendingProps), e.flags |= 2, Mo(t), t.memoizedState = null, e;
}
- function Hc(e, t, n) {
+ function Bc(e, t, n) {
var r = t.pendingProps, a = !!(t.flags & 128);
if (t.flags &= -129, e === null) {
if (U) {
- if (r.mode === "hidden") return e = Bc(t, r), t.lanes = 536870912, e.memoizedState = {
+ if (r.mode === "hidden") return e = Rc(t, r), t.lanes = 536870912, e.memoizedState = {
baseLanes: 0,
cachePool: null
- }, Rc(null, e);
- if (Ao(t), (e = ea) ? (e = am(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
+ }, Ic(null, e);
+ if (ko(t), (e = ea) ? (e = am(e, na), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: H
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
+ }, n = Ii(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
return t.lanes = 536870912, null;
}
- return Bc(t, r);
+ return Rc(t, r);
}
var o = e.memoizedState;
if (o !== null) {
var s = o.dehydrated;
- if (Ao(t), a) {
- if (t.flags & 256) t.flags &= -257, t = Vc(e, t, n);
+ if (ko(t), a) {
+ if (t.flags & 256) t.flags &= -257, t = zc(e, t, n);
else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;
else throw Error(i(558));
- } else if (jc || va(e, t, n, !1), a = (n & e.childLanes) !== 0, jc || a) {
- if (So.current === null) {
- if (r = Xu, r !== null && (s = pt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Md(r, e, s), Ac;
+ } else if (Ac || va(e, t, n, !1), a = (n & e.childLanes) !== 0, Ac || a) {
+ if (xo.current === null) {
+ if (r = q, r !== null && (s = _t(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, wi(e, s), Md(r, e, s), kc;
Wd();
}
- t = Vc(e, t, n);
- } else e = o.treeContext, ea = lm(s.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Bc(t, r), t.flags |= 134221824;
+ t = zc(e, t, n);
+ } else e = o.treeContext, ea = lm(s.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Rc(t, r), t.flags |= 134221824;
return t;
}
- return e = Ai(e.child, {
+ return e = ji(e.child, {
mode: r.mode,
children: r.children
}), e.ref = t.ref, t.child = e, e.return = t, e;
}
- function Uc(e, t) {
+ function Vc(e, t) {
var n = t.ref;
if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);
else {
@@ -9858,135 +11456,135 @@ var Nc = /* @__PURE__ */ u(((e) => {
(e === null || e.ref !== n) && (t.flags |= 4194816);
}
}
- function Wc(e, t, n, r, i) {
- return ba(t), n = Xo(e, t, n, r, void 0, i), r = es(), e !== null && !jc ? (ts(e, t, i), cl(e, t, i)) : (U && r && Xi(t), t.flags |= 1, Mc(e, t, n, i), t.child);
+ function Hc(e, t, n, r, i) {
+ return ba(t), n = Yo(e, t, n, r, void 0, i), r = $o(), e !== null && !Ac ? (es(e, t, i), ol(e, t, i)) : (U && r && Xi(t), t.flags |= 1, jc(e, t, n, i), t.child);
}
- function Gc(e, t, n, r, i, a) {
- return ba(t), t.updateQueue = null, n = Qo(t, r, n, i), Zo(e), r = es(), e !== null && !jc ? (ts(e, t, a), cl(e, t, a)) : (U && r && Xi(t), t.flags |= 1, Mc(e, t, n, a), t.child);
+ function Uc(e, t, n, r, i, a) {
+ return ba(t), t.updateQueue = null, n = Zo(t, r, n, i), Xo(e), r = $o(), e !== null && !Ac ? (es(e, t, a), ol(e, t, a)) : (U && r && Xi(t), t.flags |= 1, jc(e, t, n, a), t.child);
}
- function Kc(e, t, n, r, i) {
+ function Wc(e, t, n, r, i) {
if (ba(t), t.stateNode === null) {
- var a = Ei, o = n.contextType;
- typeof o == "object" && o && (a = xa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = _c, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, uo(t), o = n.contextType, a.context = typeof o == "object" && o ? xa(o) : Ei, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (gc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && _c.enqueueReplaceState(a, a.state, null), yo(t, r, a, i), vo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
+ var a = Di, o = n.contextType;
+ typeof o == "object" && o && (a = W(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = gc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, lo(t), o = n.contextType, a.context = typeof o == "object" && o ? W(o) : Di, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (hc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && gc.enqueueReplaceState(a, a.state, null), vo(t, r, a, i), _o(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;
} else if (e === null) {
a = t.stateNode;
- var s = t.memoizedProps, c = bc(n, s);
+ var s = t.memoizedProps, c = yc(n, s);
a.props = c;
var l = a.context, u = n.contextType;
- o = Ei, typeof u == "object" && u && (o = xa(u));
+ o = Di, typeof u == "object" && u && (o = W(u));
var d = n.getDerivedStateFromProps;
- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && yc(t, a, r, o), lo = !1;
+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && vc(t, a, r, o), co = !1;
var f = t.memoizedState;
- a.state = f, yo(t, r, a, i), vo(), l = t.memoizedState, s || f !== l || lo ? (typeof d == "function" && (gc(t, n, d, r), l = t.memoizedState), (c = lo || vc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
+ a.state = f, vo(t, r, a, i), _o(), l = t.memoizedState, s || f !== l || co ? (typeof d == "function" && (hc(t, n, d, r), l = t.memoizedState), (c = co || _c(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);
} else {
- a = t.stateNode, fo(e, t), o = t.memoizedProps, u = bc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Ei, typeof l == "object" && l && (c = xa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && yc(t, a, r, c), lo = !1, f = t.memoizedState, a.state = f, yo(t, r, a, i), vo();
+ a = t.stateNode, uo(e, t), o = t.memoizedProps, u = yc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Di, typeof l == "object" && l && (c = W(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && vc(t, a, r, c), co = !1, f = t.memoizedState, a.state = f, vo(t, r, a, i), _o();
var p = t.memoizedState;
- o !== d || f !== p || lo || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (gc(t, n, s, r), p = t.memoizedState), (u = lo || vc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ya(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
+ o !== d || f !== p || co || e !== null && e.dependencies !== null && ya(e.dependencies) ? (typeof s == "function" && (hc(t, n, s, r), p = t.memoizedState), (u = co || _c(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && ya(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);
}
- return a = r, Uc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = so(t, e.child, null, i), t.child = so(t, null, n, i)) : Mc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = cl(e, t, i), e;
+ return a = r, Vc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = oo(t, e.child, null, i), t.child = oo(t, null, n, i)) : jc(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = ol(e, t, i), e;
}
- function qc(e, t, n, r) {
- return ca(), t.flags |= 256, Mc(e, t, n, r), t.child;
+ function Gc(e, t, n, r) {
+ return ca(), t.flags |= 256, jc(e, t, n, r), t.child;
}
- var Jc = {
+ var Kc = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
};
- function Yc(e) {
+ function qc(e) {
return {
baseLanes: e,
- cachePool: Wa()
+ cachePool: Ua()
};
}
- function Xc(e, t, n) {
- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= sd), e;
+ function Jc(e, t, n) {
+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= cd), e;
}
- function Zc(e, t, n) {
+ function Yc(e, t, n) {
var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;
- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Po.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(No.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {
if (U) {
- if (i ? ko(t) : Mo(), (e = ea) ? (e = am(e, na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
+ if (i ? Oo(t) : jo(), (e = ea) ? (e = am(e, na), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {
dehydrated: e,
- treeContext: Gi === null ? null : {
- id: Ki,
- overflow: qi
+ treeContext: Ki === null ? null : {
+ id: qi,
+ overflow: H
},
retryLane: 536870912,
hydrationErrors: null
- }, n = Fi(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
+ }, n = Ii(e), n.return = t, t.child = n, $i = t, ea = null)) : e = null, e === null) throw ia(t);
return t.lanes = sm(e) ? 32 : 536870912, null;
}
- return a = r.children, r = r.fallback, i ? (Mo(), i = t.mode, a = $c({
+ return a = r.children, r = r.fallback, i ? (jo(), i = t.mode, a = Zc({
mode: "hidden",
children: a
- }, i), r = Ni(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Yc(n), r.childLanes = Xc(e, o, n), t.memoizedState = Jc, Rc(null, r)) : (ko(t), Qc(t, a));
+ }, i), r = Pi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = qc(n), r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(null, r)) : (Oo(t), Xc(t, a));
}
var s = e.memoizedState;
if (s !== null) {
var c = s.dehydrated;
- if (c !== null) return tl(e, t, a, o, r, c, s, n);
+ if (c !== null) return $c(e, t, a, o, r, c, s, n);
}
- return i ? (Mo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Ai(s, {
+ return i ? (jo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = ji(s, {
mode: "hidden",
children: r.children
- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Ni(i, a, n, null), i.flags |= 2) : i = Ai(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Rc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Yc(n) : (a = i.cachePool, a === null ? a = Wa() : (s = Da._currentValue, a = a.parent === s ? a : {
+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Pi(i, a, n, null), i.flags |= 2) : i = ji(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Ic(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = qc(n) : (a = i.cachePool, a === null ? a = Ua() : (s = Ea._currentValue, a = a.parent === s ? a : {
parent: s,
pool: s
}), i = {
baseLanes: i.baseLanes | n,
cachePool: a
- }), r.memoizedState = i, r.childLanes = Xc(e, o, n), t.memoizedState = Jc, Rc(e.child, r)) : (ko(t), n = e.child, e = n.sibling, n = Ai(n, {
+ }), r.memoizedState = i, r.childLanes = Jc(e, o, n), t.memoizedState = Kc, Ic(e.child, r)) : (Oo(t), n = e.child, e = n.sibling, n = ji(n, {
mode: "visible",
children: r.children
}), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);
}
- function Qc(e, t) {
- return t = $c({
+ function Xc(e, t) {
+ return t = Zc({
mode: "visible",
children: t
}, e.mode), t.return = e, e.child = t;
}
- function $c(e, t) {
- return e = Oi(22, e, null, t), e.lanes = 0, e;
+ function Zc(e, t) {
+ return e = ki(22, e, null, t), e.lanes = 0, e;
}
- function el(e, t, n) {
- return so(t, e.child, null, n), e = Qc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
+ function Qc(e, t, n) {
+ return oo(t, e.child, null, n), e = Xc(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;
}
- function tl(e, t, n, r, a, o, s, c) {
- if (n) return t.flags & 256 ? (ko(t), t.flags &= -257, el(e, t, c)) : t.memoizedState === null ? (Mo(), o = a.fallback, s = t.mode, a = $c({
+ function $c(e, t, n, r, a, o, s, c) {
+ if (n) return t.flags & 256 ? (Oo(t), t.flags &= -257, Qc(e, t, c)) : t.memoizedState === null ? (jo(), o = a.fallback, s = t.mode, a = Zc({
mode: "visible",
children: a.children
- }, s), o = Ni(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, so(t, e.child, null, c), a = t.child, a.memoizedState = Yc(c), a.childLanes = Xc(e, r, c), t.memoizedState = Jc, Rc(null, a)) : (Mo(), t.child = e.child, t.flags |= 128, null);
- if (ko(t), sm(o)) {
+ }, s), o = Pi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, oo(t, e.child, null, c), a = t.child, a.memoizedState = qc(c), a.childLanes = Jc(e, r, c), t.memoizedState = Kc, Ic(null, a)) : (jo(), t.child = e.child, t.flags |= 128, null);
+ if (Oo(t), sm(o)) {
if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;
return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, ua({
value: a,
source: null,
stack: null
- })), el(e, t, c);
+ })), Qc(e, t, c);
}
- if (jc || va(e, t, c, !1), r = (c & e.childLanes) !== 0, jc || r) {
- if (So.current !== null) return el(e, t, c);
- if (r = Xu, r !== null && (a = pt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Md(r, e, a), Ac;
- return om(o) || Wd(), el(e, t, c);
+ if (Ac || va(e, t, c, !1), r = (c & e.childLanes) !== 0, Ac || r) {
+ if (xo.current !== null) return Qc(e, t, c);
+ if (r = q, r !== null && (a = _t(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, wi(e, a), Md(r, e, a), kc;
+ return om(o) || Wd(), Qc(e, t, c);
}
- return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = lm(o.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Qc(t, a.children), t.flags |= 134221824, t);
+ return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, ea = lm(o.nextSibling), $i = t, U = !0, ta = null, na = !1, e !== null && Qi(t, e), t = Xc(t, a.children), t.flags |= 134221824, t);
}
- function nl(e, t, n) {
+ function el(e, t, n) {
e.lanes |= t;
var r = e.alternate;
r !== null && (r.lanes |= t), ga(e.return, t, n);
}
- function rl(e) {
+ function tl(e) {
for (var t = null; e !== null;) {
var n = e.alternate;
- n !== null && Lo(n) === null && (t = e), e = e.sibling;
+ n !== null && Io(n) === null && (t = e), e = e.sibling;
}
return t;
}
- function il(e, t, n, r, i, a) {
+ function nl(e, t, n, r, i, a) {
var o = e.memoizedState;
o === null ? e.memoizedState = {
isBackwards: t,
@@ -9998,22 +11596,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
treeForkCount: a
} : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);
}
- function al(e) {
+ function rl(e) {
var t = e.child;
for (e.child = null; t !== null;) {
var n = t.sibling;
t.sibling = e.child, e.child = t, t = n;
}
}
- function ol(e, t, n) {
+ function il(e, t, n) {
var r = t.pendingProps, i = r.revealOrder, a = r.tail;
r = r.children;
- var o = Po.current;
- if (t.flags & 128) return Fo(t, o), null;
+ var o = No.current;
+ if (t.flags & 128) return Po(t, o), null;
var s = !!(o & 2);
- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Fo(t, o), i === "backwards" && e !== null ? (al(e), Mc(e, t, r, n), al(e)) : Mc(e, t, r, n), r = U ? Hi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
- if (e.tag === 13) e.memoizedState !== null && nl(e, n, t);
- else if (e.tag === 19) nl(e, n, t);
+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Po(t, o), i === "backwards" && e !== null ? (rl(e), jc(e, t, r, n), rl(e)) : jc(e, t, r, n), r = U ? Ui : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {
+ if (e.tag === 13) e.memoizedState !== null && el(e, n, t);
+ else if (e.tag === 19) el(e, n, t);
else if (e.child !== null) {
e.child.return = e, e = e.child;
continue;
@@ -10027,142 +11625,142 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
switch (i) {
case "backwards":
- n = rl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, al(t)), il(t, !0, i, null, a, r);
+ n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, rl(t)), nl(t, !0, i, null, a, r);
break;
case "unstable_legacy-backwards":
for (n = null, i = t.child, t.child = null; i !== null;) {
- if (e = i.alternate, e !== null && Lo(e) === null) {
+ if (e = i.alternate, e !== null && Io(e) === null) {
t.child = i;
break;
}
e = i.sibling, i.sibling = n, n = i, i = e;
}
- il(t, !0, n, null, a, r);
+ nl(t, !0, n, null, a, r);
break;
case "together":
- il(t, !1, null, null, void 0, r);
+ nl(t, !1, null, null, void 0, r);
break;
case "independent":
t.memoizedState = null;
break;
- default: n = rl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), il(t, !1, i, n, a, r);
+ default: n = tl(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), nl(t, !1, i, n, a, r);
}
return t.child;
}
- function sl(e, t, n) {
+ function al(e, t, n) {
var r = t.pendingProps;
- return ma(t, t.type, r.value), Mc(e, t, r.children, n), t.child;
+ return ma(t, t.type, r.value), jc(e, t, r.children, n), t.child;
}
- function cl(e, t, n) {
- if (e !== null && (t.dependencies = e.dependencies), id |= t.lanes, (n & t.childLanes) === 0) {
+ function ol(e, t, n) {
+ if (e !== null && (t.dependencies = e.dependencies), od |= t.lanes, (n & t.childLanes) === 0) {
if (e !== null) {
if (va(e, t, n, !1), (n & t.childLanes) === 0) return null;
} else return null;
}
if (e !== null && t.child !== e.child) throw Error(i(153));
if (t.child !== null) {
- for (e = t.child, n = Ai(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Ai(e, e.pendingProps), n.return = t;
+ for (e = t.child, n = ji(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = ji(e, e.pendingProps), n.return = t;
n.sibling = null;
}
return t.child;
}
- function ll(e, t) {
+ function sl(e, t) {
return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && ya(e)));
}
- function ul(e, t, n) {
+ function cl(e, t, n) {
switch (t.tag) {
case 3:
- xe(t, t.stateNode.containerInfo), ma(t, Da, e.memoizedState.cache), ca();
+ Te(t, t.stateNode.containerInfo), ma(t, Ea, e.memoizedState.cache), ca();
break;
case 27:
case 5:
- Ce(t);
+ De(t);
break;
case 4:
- xe(t, t.stateNode.containerInfo);
+ Te(t, t.stateNode.containerInfo);
break;
case 10:
ma(t, t.type, t.memoizedProps.value);
break;
case 31:
- if (t.memoizedState !== null) return t.flags |= 128, Ao(t), null;
+ if (t.memoizedState !== null) return t.flags |= 128, ko(t), null;
break;
case 13:
var r = t.memoizedState;
if (r !== null) {
- if (r.dehydrated !== null) return ko(t), t.flags |= 128, null;
+ if (r.dehydrated !== null) return Oo(t), t.flags |= 128, null;
r = va(e, t, n, !1);
var i = t.child.childLanes;
- return r || (n & i) !== 0 ? Zc(e, t, n) : (ko(t), e = cl(e, t, n), e === null ? null : e.sibling);
+ return r || (n & i) !== 0 ? Yc(e, t, n) : (Oo(t), e = ol(e, t, n), e === null ? null : e.sibling);
}
- ko(t);
+ Oo(t);
break;
case 19:
- if (t.flags & 128) return ol(e, t, n);
+ if (t.flags & 128) return il(e, t, n);
if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (va(e, t, n, !1), (n & t.childLanes) !== 0), i) {
- if (r) return ol(e, t, n);
+ if (r) return il(e, t, n);
t.flags |= 128;
}
- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Fo(t, Po.current), r) break;
+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Po(t, No.current), r) break;
return null;
- case 22: return t.lanes = 0, Lc(e, t, n, t.pendingProps);
- case 24: ma(t, Da, e.memoizedState.cache);
+ case 22: return t.lanes = 0, Fc(e, t, n, t.pendingProps);
+ case 24: ma(t, Ea, e.memoizedState.cache);
}
- return cl(e, t, n);
+ return ol(e, t, n);
}
- function dl(e, t, n) {
+ function ll(e, t, n) {
if (e !== null) {
- if (e.memoizedProps !== t.pendingProps) jc = !0;
+ if (e.memoizedProps !== t.pendingProps) Ac = !0;
else {
- if (!ll(e, n) && !(t.flags & 128)) return jc = !1, ul(e, t, n);
- jc = !!(e.flags & 131072);
+ if (!sl(e, n) && !(t.flags & 128)) return Ac = !1, cl(e, t, n);
+ Ac = !!(e.flags & 131072);
}
- } else jc = !1, U && t.flags & 1048576 && Yi(t, Hi, t.index);
+ } else Ac = !1, U && t.flags & 1048576 && Yi(t, Ui, t.index);
switch (t.lanes = 0, t.tag) {
case 16:
a: {
var r = t.pendingProps;
- if (e = Za(t.elementType), t.type = e, typeof e == "function") ki(e) ? (r = bc(e, r), t.tag = 1, t = Kc(null, t, e, r, n)) : (t.tag = 0, t = Wc(null, t, e, r, n));
+ if (e = Xa(t.elementType), t.type = e, typeof e == "function") Ai(e) ? (r = yc(e, r), t.tag = 1, t = Wc(null, t, e, r, n)) : (t.tag = 0, t = Hc(null, t, e, r, n));
else {
if (e != null) {
var a = e.$$typeof;
- if (a === te) {
- t.tag = 11, t = Nc(null, t, e, r, n);
+ if (a === ne) {
+ t.tag = 11, t = Mc(null, t, e, r, n);
break a;
}
- if (a === re) {
- t.tag = 14, t = Fc(null, t, e, r, n);
+ if (a === ie) {
+ t.tag = 14, t = Nc(null, t, e, r, n);
break a;
}
- if (a === M) {
- t.tag = 10, t.type = e, t = sl(null, t, n);
+ if (a === te) {
+ t.tag = 10, t.type = e, t = al(null, t, n);
break a;
}
}
- throw t = ue(e) || e, Error(i(306, t, ""));
+ throw t = me(e) || e, Error(i(306, t, ""));
}
}
return t;
- case 0: return Wc(e, t, t.type, t.pendingProps, n);
- case 1: return r = t.type, a = bc(r, t.pendingProps), Kc(e, t, r, a, n);
+ case 0: return Hc(e, t, t.type, t.pendingProps, n);
+ case 1: return r = t.type, a = yc(r, t.pendingProps), Wc(e, t, r, a, n);
case 3:
a: {
- if (xe(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
+ if (Te(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
r = t.pendingProps;
var o = t.memoizedState;
- a = o.element, fo(e, t), yo(t, r, null, n);
+ a = o.element, uo(e, t), vo(t, r, null, n);
var s = t.memoizedState;
- if (r = s.cache, ma(t, Da, r), r !== o.cache && _a(t, [Da], n, !0), vo(), r = s.element, o.isDehydrated) {
+ if (r = s.cache, ma(t, Ea, r), r !== o.cache && _a(t, [Ea], n, !0), _o(), r = s.element, o.isDehydrated) {
if (o = {
element: r,
isDehydrated: !1,
cache: s.cache
}, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {
- t = qc(e, t, r, n);
+ t = Gc(e, t, r, n);
break a;
}
if (r !== a) {
- a = Ri(Error(i(424)), t), ua(a), t = qc(e, t, r, n);
+ a = zi(Error(i(424)), t), ua(a), t = Gc(e, t, r, n);
break a;
}
switch (e = t.stateNode.containerInfo, e.nodeType) {
@@ -10171,75 +11769,75 @@ var Nc = /* @__PURE__ */ u(((e) => {
break;
default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;
}
- for (ea = lm(e.firstChild), $i = t, U = !0, ta = null, na = !0, n = co(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
+ for (ea = lm(e.firstChild), $i = t, U = !0, ta = null, na = !0, n = so(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;
} else {
if (ca(), r === a) {
- t = cl(e, t, n);
+ t = ol(e, t, n);
break a;
}
- Mc(e, t, r, n);
+ jc(e, t, r, n);
}
t = t.child;
}
return t;
- case 26: return Uc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : U || (t.stateNode = fp(t.type, t.pendingProps, ye.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
- case 27: return Ce(t), e === null && U && (r = t.stateNode = hm(t.type, t.pendingProps, ye.current), $i = t, na = !0, a = ea, Sp(t.type) ? (um = a, ea = lm(r.firstChild)) : ea = a), Mc(e, t, t.pendingProps.children, n), Uc(e, t), e === null && (t.flags |= 4194304), t.child;
- case 5: return e === null && U && ((a = r = ea) && (r = rm(r, t.type, t.pendingProps, na), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = lm(r.firstChild), na = !1, a = !0)), a || ia(t)), Ce(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Xo(e, t, $o, null, null, n), sh._currentValue = a), Uc(e, t), Mc(e, t, r, n), t.child;
+ case 26: return Vc(e, t), e === null ? (n = Nm(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : U || (t.stateNode = fp(t.type, t.pendingProps, Ce.current, t)) : t.memoizedState = Nm(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
+ case 27: return De(t), e === null && U && (r = t.stateNode = hm(t.type, t.pendingProps, Ce.current), $i = t, na = !0, a = ea, Sp(t.type) ? (um = a, ea = lm(r.firstChild)) : ea = a), jc(e, t, t.pendingProps.children, n), Vc(e, t), e === null && (t.flags |= 4194304), t.child;
+ case 5: return e === null && U && ((a = r = ea) && (r = rm(r, t.type, t.pendingProps, na), r === null ? a = !1 : (t.stateNode = r, $i = t, ea = lm(r.firstChild), na = !1, a = !0)), a || ia(t)), De(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, pp(a, o) ? r = null : s !== null && pp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = Yo(e, t, Qo, null, null, n), sh._currentValue = a), Vc(e, t), jc(e, t, r, n), t.child;
case 6: return e === null && U && ((e = n = ea) && (n = im(n, t.pendingProps, na), n === null ? e = !1 : (t.stateNode = n, $i = t, ea = null, e = !0)), e || ia(t)), null;
- case 13: return Zc(e, t, n);
- case 4: return xe(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = so(t, null, r, n) : Mc(e, t, r, n), t.child;
- case 11: return Nc(e, t, t.type, t.pendingProps, n);
- case 7: return r = t.pendingProps, Uc(e, t), Mc(e, t, r, n), t.child;
- case 8: return Mc(e, t, t.pendingProps.children, n), t.child;
- case 12: return Mc(e, t, t.pendingProps.children, n), t.child;
- case 10: return sl(e, t, n);
- case 9: return a = t.type._context, r = t.pendingProps.children, ba(t), a = xa(a), r = r(a), t.flags |= 1, Mc(e, t, r, n), t.child;
- case 14: return Fc(e, t, t.type, t.pendingProps, n);
- case 15: return Ic(e, t, t.type, t.pendingProps, n);
- case 19: return ol(e, t, n);
- case 31: return Hc(e, t, n);
- case 22: return Lc(e, t, n, t.pendingProps);
- case 24: return ba(t), r = xa(Da), e === null ? (a = Ha(), a === null && (a = Xu, o = Oa(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
+ case 13: return Yc(e, t, n);
+ case 4: return Te(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = oo(t, null, r, n) : jc(e, t, r, n), t.child;
+ case 11: return Mc(e, t, t.type, t.pendingProps, n);
+ case 7: return r = t.pendingProps, Vc(e, t), jc(e, t, r, n), t.child;
+ case 8: return jc(e, t, t.pendingProps.children, n), t.child;
+ case 12: return jc(e, t, t.pendingProps.children, n), t.child;
+ case 10: return al(e, t, n);
+ case 9: return a = t.type._context, r = t.pendingProps.children, ba(t), a = W(a), r = r(a), t.flags |= 1, jc(e, t, r, n), t.child;
+ case 14: return Nc(e, t, t.type, t.pendingProps, n);
+ case 15: return Pc(e, t, t.type, t.pendingProps, n);
+ case 19: return il(e, t, n);
+ case 31: return Bc(e, t, n);
+ case 22: return Fc(e, t, n, t.pendingProps);
+ case 24: return ba(t), r = W(Ea), e === null ? (a = Va(), a === null && (a = q, o = Da(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {
parent: r,
cache: a
- }, uo(t), ma(t, Da, a)) : ((e.lanes & n) !== 0 && (fo(e, t), yo(t, null, null, n), vo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, Da, r), r !== a.cache && _a(t, [Da], n, !0)) : (a = {
+ }, lo(t), ma(t, Ea, a)) : ((e.lanes & n) !== 0 && (uo(e, t), vo(t, null, null, n), _o()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, ma(t, Ea, r), r !== a.cache && _a(t, [Ea], n, !0)) : (a = {
parent: r,
cache: r
- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Da, r))), Mc(e, t, t.pendingProps.children, n), t.child;
+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), ma(t, Ea, r))), jc(e, t, t.pendingProps.children, n), t.child;
case 30: return t.stateNode === null && (t.stateNode = {
autoName: null,
paired: null,
clones: null,
ref: null
- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : U && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Uc(e, t), Mc(e, t, r.children, n), t.child;
+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : U && Xi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Vc(e, t), jc(e, t, r.children, n), t.child;
case 29: throw t.pendingProps;
}
throw Error(i(156, t.tag));
}
- function fl(e) {
+ function ul(e) {
e.flags |= 4;
}
- function pl(e, t, n, r, i) {
+ function dl(e, t, n, r, i) {
var a;
if ((a = !!(e.mode & 32)) && (a = n === null ? Jm(t, r) : Jm(t, r) && (r.src !== n.src || r.srcSet !== n.srcSet)), a) {
if (e.flags |= 16777216, (i & 335544128) === i) {
if (e.stateNode.complete) e.flags |= 8192;
else if (Vd()) e.flags |= 8192;
- else throw Qa = Ja, Ka;
+ else throw Za = qa, Ga;
}
} else e.flags &= -16777217;
}
- function ml(e, t) {
+ function fl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
else if (e.flags |= 16777216, !Ym(t)) {
if (Vd()) e.flags |= 8192;
- else throw Qa = Ja, Ka;
+ else throw Za = qa, Ga;
}
}
- function hl(e, t) {
- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : st(), e.lanes |= t, cd |= t);
+ function pl(e, t) {
+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : dt(), e.lanes |= t, ld |= t);
}
- function gl(e, t) {
+ function ml(e, t) {
if (!U) switch (e.tailMode) {
case "visible": break;
case "collapsed":
@@ -10251,13 +11849,13 @@ var Nc = /* @__PURE__ */ u(((e) => {
n === null ? e.tail = null : n.sibling = null;
}
}
- function _l(e) {
+ function hl(e) {
var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;
if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;
else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;
return e.subtreeFlags |= r, e.childLanes = n, t;
}
- function vl(e, t, n) {
+ function gl(e, t, n) {
var r = t.pendingProps;
switch (Zi(t), t.tag) {
case 16:
@@ -10268,32 +11866,32 @@ var Nc = /* @__PURE__ */ u(((e) => {
case 8:
case 12:
case 9:
- case 14: return _l(t), null;
- case 1: return _l(t), null;
- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(Da), Se(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (sa(t) ? fl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, la())), _l(t), null;
+ case 14: return hl(t), null;
+ case 1: return hl(t), null;
+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), ha(Ea), Ee(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (sa(t) ? ul(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, la())), hl(t), null;
case 26:
var a = t.type, o = t.memoizedState;
- return e === null ? (fl(t), o === null ? (_l(t), pl(t, a, null, r, n)) : (_l(t), ml(t, o))) : o ? o === e.memoizedState ? (_l(t), t.flags &= -16777217) : (fl(t), _l(t), ml(t, o)) : (e = e.memoizedProps, e !== r && fl(t), _l(t), pl(t, a, e, r, n)), null;
+ return e === null ? (ul(t), o === null ? (hl(t), dl(t, a, null, r, n)) : (hl(t), fl(t, o))) : o ? o === e.memoizedState ? (hl(t), t.flags &= -16777217) : (ul(t), hl(t), fl(t, o)) : (e = e.memoizedProps, e !== r && ul(t), hl(t), dl(t, a, e, r, n)), null;
case 27:
- if (we(t), n = ye.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && fl(t);
+ if (Oe(t), n = Ce.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return _l(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
}
- e = z.current, sa(t) ? aa(t, e) : (e = hm(a, r, n), t.stateNode = e, fl(t));
+ e = xe.current, sa(t) ? aa(t, e) : (e = hm(a, r, n), t.stateNode = e, ul(t));
}
- return _l(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
case 5:
- if (we(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && fl(t);
+ if (Oe(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (!r) {
if (t.stateNode === null) throw Error(i(166));
- return _l(t), t.subtreeFlags &= -33554433, null;
+ return hl(t), t.subtreeFlags &= -33554433, null;
}
- if (o = z.current, sa(t)) aa(t, o);
+ if (o = xe.current, sa(t)) aa(t, o);
else {
- var s = lp(ye.current);
+ var s = lp(Ce.current);
switch (o) {
case 1:
o = s.createElementNS("http://www.w3.org/2000/svg", a);
@@ -10317,7 +11915,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);
}
}
- o[yt] = t, o[bt] = r;
+ o[St] = t, o[Ct] = r;
a: for (s = t.child; s !== null;) {
if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);
else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {
@@ -10344,71 +11942,71 @@ var Nc = /* @__PURE__ */ u(((e) => {
break a;
default: r = !1;
}
- r && fl(t);
+ r && ul(t);
}
}
- return _l(t), t.subtreeFlags &= -33554433, pl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
+ return hl(t), t.subtreeFlags &= -33554433, dl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;
case 6:
- if (e && t.stateNode != null) e.memoizedProps !== r && fl(t);
+ if (e && t.stateNode != null) e.memoizedProps !== r && ul(t);
else {
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
- if (e = ye.current, sa(t)) {
+ if (e = Ce.current, sa(t)) {
if (e = t.stateNode, n = t.memoizedProps, r = null, a = $i, a !== null) switch (a.tag) {
case 27:
case 5: r = a.memoizedProps;
}
- e[yt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ia(t, !0);
- } else e = lp(e).createTextNode(r), e[yt] = t, t.stateNode = e;
+ e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ia(t, !0);
+ } else e = lp(e).createTextNode(r), e[St] = t, t.stateNode = e;
}
- return _l(t), null;
+ return hl(t), null;
case 31:
if (n = t.memoizedState, e === null || e.memoizedState !== null) {
if (r = sa(t), n !== null) {
if (e === null) {
if (!r) throw Error(i(318));
if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));
- e[yt] = t;
+ e[St] = t;
} else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- _l(t), e = !1;
+ hl(t), e = !1;
} else n = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;
- if (!e) return t.flags & 256 ? (No(t), t) : (No(t), null);
+ if (!e) return t.flags & 256 ? (Mo(t), t) : (Mo(t), null);
if (t.flags & 128) throw Error(i(558));
}
- return _l(t), null;
+ return hl(t), null;
case 13:
if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
if (a = sa(t), r !== null && r.dehydrated !== null) {
if (e === null) {
if (!a) throw Error(i(318));
if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));
- a[yt] = t;
+ a[St] = t;
} else ca(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;
- _l(t), a = !1;
+ hl(t), a = !1;
} else a = la(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;
- if (!a) return t.flags & 256 ? (No(t), t) : (No(t), null);
+ if (!a) return t.flags & 256 ? (Mo(t), t) : (Mo(t), null);
}
- return No(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), hl(t, t.updateQueue), _l(t), null);
- case 4: return Se(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, _l(t), null;
- case 10: return ha(t.type), _l(t), null;
+ return Mo(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), pl(t, t.updateQueue), hl(t), null);
+ case 4: return Ee(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, hl(t), null;
+ case 10: return ha(t.type), hl(t), null;
case 19:
- if (Io(t), r = t.memoizedState, r === null) return _l(t), null;
+ if (Fo(t), r = t.memoizedState, r === null) return hl(t), null;
if (a = !!(t.flags & 128), o = r.rendering, o === null) {
- if (a) gl(r, !1);
+ if (a) ml(r, !1);
else {
- if (rd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
- if (o = Lo(e), o !== null) {
- for (t.flags |= 128, gl(r, !1), e = o.updateQueue, t.updateQueue = e, hl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) ji(n, e), n = n.sibling;
- return Fo(t, Po.current & 1 | 2), U && Ji(t, r.treeForkCount), t.child;
+ if (ad !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {
+ if (o = Io(e), o !== null) {
+ for (t.flags |= 128, ml(r, !1), e = o.updateQueue, t.updateQueue = e, pl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Mi(n, e), n = n.sibling;
+ return Po(t, No.current & 1 | 2), U && Ji(t, r.treeForkCount), t.child;
}
e = e.sibling;
}
- r.tail !== null && Le() > md && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
+ r.tail !== null && Ve() > Q && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
- if (e = Lo(o), e !== null) {
- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, hl(t, e), gl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !U) return _l(t), null;
- } else 2 * Le() - r.renderingStartTime > md && n !== 536870912 && (t.flags |= 128, a = !0, gl(r, !1), t.lanes = 4194304);
+ if (e = Io(o), e !== null) {
+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, pl(t, e), ml(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !U) return hl(t), null;
+ } else 2 * Ve() - r.renderingStartTime > Q && n !== 536870912 && (t.flags |= 128, a = !0, ml(r, !1), t.lanes = 4194304);
}
r.isBackwards ? (o.sibling = t.child, t.child = o) : (e = r.last, e === null ? t.child = o : e.sibling = o, r.last = o);
}
@@ -10424,79 +12022,79 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
n = !0;
}
- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Le(), e.sibling = null, o = Po.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || U ? Fo(t, o) : (n = o, _e(Do, t), _e(Po, n), Oo === null && (Oo = t)), U && Ji(t, r.treeForkCount), e;
+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Ve(), e.sibling = null, o = No.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || U ? Po(t, o) : (n = o, F(Eo, t), F(No, n), Do === null && (Do = t)), U && Ji(t, r.treeForkCount), e;
}
- return _l(t), null;
+ return hl(t), null;
case 22:
- case 23: return No(t), Eo(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (_l(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : _l(t), n = t.updateQueue, n !== null && hl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && ge(Va), null;
- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Da), _l(t), null;
+ case 23: return Mo(t), To(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (hl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : hl(t), n = t.updateQueue, n !== null && pl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && be(Ba), null;
+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), ha(Ea), hl(t), null;
case 25: return null;
- case 30: return t.flags |= 33554432, _l(t), null;
+ case 30: return t.flags |= 33554432, hl(t), null;
}
throw Error(i(156, t.tag));
}
- function yl(e, t) {
+ function _l(e, t) {
switch (Zi(t), t.tag) {
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 3: return ha(Da), Se(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
+ case 3: return ha(Ea), Ee(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
case 26:
case 27:
- case 5: return we(t), null;
+ case 5: return Oe(t), null;
case 31:
if (t.memoizedState !== null) {
- if (No(t), t.alternate === null) throw Error(i(340));
+ if (Mo(t), t.alternate === null) throw Error(i(340));
ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
case 13:
- if (No(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
+ if (Mo(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {
if (t.alternate === null) throw Error(i(340));
ca();
}
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 19: return Io(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
- case 4: return Se(), null;
+ case 19: return Fo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;
+ case 4: return Ee(), null;
case 10: return ha(t.type), null;
case 22:
- case 23: return No(t), Eo(), e !== null && ge(Va), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
- case 24: return ha(Da), null;
+ case 23: return Mo(t), To(), e !== null && be(Ba), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
+ case 24: return ha(Ea), null;
case 25: return null;
default: return null;
}
}
- function bl(e, t) {
+ function vl(e, t) {
switch (Zi(t), t.tag) {
case 3:
- ha(Da), Se();
+ ha(Ea), Ee();
break;
case 26:
case 27:
case 5:
- we(t);
+ Oe(t);
break;
case 4:
- Se();
+ Ee();
break;
case 31:
- t.memoizedState !== null && No(t);
+ t.memoizedState !== null && Mo(t);
break;
case 13:
- No(t);
+ Mo(t);
break;
case 19:
- Io(t);
+ Fo(t);
break;
case 10:
ha(t.type);
break;
case 22:
case 23:
- No(t), Eo(), e !== null && ge(Va);
+ Mo(t), To(), e !== null && be(Ba);
break;
- case 24: ha(Da);
+ case 24: ha(Ea);
}
}
- function xl(e, t) {
+ function yl(e, t) {
try {
var n = t.updateQueue, r = n === null ? null : n.lastEffect;
if (r !== null) {
@@ -10515,7 +12113,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
ff(t, t.return, e);
}
}
- function Sl(e, t, n) {
+ function bl(e, t, n) {
try {
var r = t.updateQueue, i = r === null ? null : r.lastEffect;
if (i !== null) {
@@ -10541,26 +12139,26 @@ var Nc = /* @__PURE__ */ u(((e) => {
ff(t, t.return, e);
}
}
- function Cl(e) {
+ function xl(e) {
var t = e.updateQueue;
if (t !== null) {
var n = e.stateNode;
try {
- xo(t, n);
+ bo(t, n);
} catch (t) {
ff(e, e.return, t);
}
}
}
- function wl(e, t, n) {
- n.props = bc(e.type, e.memoizedProps), n.state = e.memoizedState;
+ function Sl(e, t, n) {
+ n.props = yc(e.type, e.memoizedProps), n.state = e.memoizedState;
try {
n.componentWillUnmount();
} catch (n) {
ff(e, t, n);
}
}
- function Tl(e, t) {
+ function Cl(e, t) {
try {
var n = e.ref;
if (n !== null) {
@@ -10571,7 +12169,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
var r = e.stateNode;
break;
case 30:
- var i = e.stateNode, a = pi(e.memoizedProps, i);
+ var i = e.stateNode, a = mi(e.memoizedProps, i);
(i.ref === null || i.ref.name !== a) && (i.ref = Pp(a)), r = i.ref;
break;
case 7:
@@ -10589,7 +12187,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
ff(e, t, n);
}
}
- function G(e, t) {
+ function wl(e, t) {
var n = e.ref, r = e.refCleanup;
if (n !== null) {
if (typeof r == "function") try {
@@ -10607,22 +12205,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
else n.current = null;
}
}
- function El(e, t) {
+ function Tl(e, t) {
if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) em(e.stateNode, t[n]);
}
+ function El(e) {
+ for (var t = e.return; t !== null && (kl(t) && em(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
+ }
function Dl(e) {
- for (var t = e.return; t !== null && (Al(t) && em(e.stateNode, t.stateNode), !kl(t));) t = t.return;
+ for (var t = e.return; t !== null && (kl(t) && tm(e.stateNode, t.stateNode), !Ol(t));) t = t.return;
}
function Ol(e) {
- for (var t = e.return; t !== null && (Al(t) && tm(e.stateNode, t.stateNode), !kl(t));) t = t.return;
- }
- function kl(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 27;
}
- function Al(e) {
+ function kl(e) {
return e && e.tag === 7 && e.stateNode !== null;
}
- function jl(e) {
+ function Al(e) {
var t = e.type, n = e.memoizedProps, r = e.stateNode;
try {
a: switch (t) {
@@ -10638,21 +12236,21 @@ var Nc = /* @__PURE__ */ u(((e) => {
ff(e, e.return, t);
}
}
- function Ml(e, t, n) {
+ function jl(e, t, n) {
try {
var r = e.stateNode;
- ip(r, e.type, n, t), r[bt] = t;
+ ip(r, e.type, n, t), r[Ct] = t;
} catch (t) {
ff(e, e.return, t);
}
}
- function Nl(e) {
+ function Ml(e) {
return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Sp(e.type) || e.tag === 4;
}
- function Pl(e) {
+ function Nl(e) {
a: for (;;) {
for (; e.sibling === null;) {
- if (e.return === null || Nl(e.return)) return null;
+ if (e.return === null || Ml(e.return)) return null;
e = e.return;
}
for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {
@@ -10662,21 +12260,21 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (!(e.flags & 2)) return e.stateNode;
}
}
- function Fl(e, t, n, r) {
+ function Pl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), El(e, r), V = !0;
- else if (i !== 4 && (i === 27 && (El(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Fl(e, t, n, r), e = e.sibling; e !== null;) Fl(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = hn)), Tl(e, r), B = !0;
+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Sp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (Pl(e, t, n, r), e = e.sibling; e !== null;) Pl(e, t, n, r), e = e.sibling;
}
- function Il(e, t, n, r) {
+ function Fl(e, t, n, r) {
var i = e.tag;
- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), El(e, r), V = !0;
- else if (i !== 4 && (i === 27 && (El(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Il(e, t, n, r), e = e.sibling; e !== null;) Il(e, t, n, r), e = e.sibling;
+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Tl(e, r), B = !0;
+ else if (i !== 4 && (i === 27 && (Tl(e, r), r = null, Sp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Fl(e, t, n, r), e = e.sibling; e !== null;) Fl(e, t, n, r), e = e.sibling;
}
- function K(e) {
+ function Il(e) {
var t = e.stateNode, n = e.memoizedProps;
try {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
- np(t, r, n), t[yt] = e, t[bt] = n;
+ np(t, r, n), t[St] = e, t[Ct] = n;
} catch (t) {
ff(e, e.return, t);
}
@@ -10692,9 +12290,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
var Hl = 0;
function Ul(e, t, n, r, i) {
- return Hl = 0, q(e.child, t, n, r, i);
+ return Hl = 0, Wl(e.child, t, n, r, i);
}
- function q(e, t, n, r, i) {
+ function Wl(e, t, n, r, i) {
for (var a = !1; e !== null;) {
if (e.tag === 5) {
var o = e.stateNode;
@@ -10703,33 +12301,33 @@ var Nc = /* @__PURE__ */ u(((e) => {
r.push(s), s.view && (a = !0);
} else a || Op(o).view && (a = !0);
Ll = !0, Tp(o, Hl === 0 ? t : t + "_" + Hl, n), Hl++;
- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || q(e.child, t, n, r, i) && (a = !0));
+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Wl(e.child, t, n, r, i) && (a = !0));
e = e.sibling;
}
return a;
}
- function Wl(e, t) {
- for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Wl(e.child, t)), e = e.sibling;
+ function Gl(e, t) {
+ for (; e !== null;) e.tag === 5 ? Ep(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Gl(e.child, t)), e = e.sibling;
}
- function Gl(e) {
+ function Kl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
- if ((e.tag !== 22 || e.memoizedState === null) && (Gl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
+ if ((e.tag !== 22 || e.memoizedState === null) && (Kl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {
var t = e.memoizedProps;
if (t.name == null || t.name === "auto") throw Error(i(544));
var n = t.name;
- t = hi(t.default, t.share), t !== "none" && (Ul(e, n, t, null, !1) || Wl(e.child, !1));
+ t = gi(t.default, t.share), t !== "none" && (Ul(e, n, t, null, !1) || Gl(e.child, !1));
}
e = e.sibling;
}
}
- function Kl(e, t) {
+ function ql(e, t) {
if (e.tag === 30) {
- var n = e.stateNode, r = e.memoizedProps, i = pi(r, n), a = hi(r.default, n.paired ? r.share : r.enter);
- a === "none" ? Gl(e) : Ul(e, i, a, null, !1) ? (Gl(e), n.paired || t || jd(e, r.onEnter)) : Wl(e.child, !1);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Kl(e, t), e = e.sibling;
- else Gl(e);
+ var n = e.stateNode, r = e.memoizedProps, i = mi(r, n), a = gi(r.default, n.paired ? r.share : r.enter);
+ a === "none" ? Kl(e) : Ul(e, i, a, null, !1) ? (Kl(e), n.paired || t || jd(e, r.onEnter)) : Gl(e.child, !1);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ql(e, t), e = e.sibling;
+ else Kl(e);
}
- function ql(e) {
+ function Jl(e) {
if (Rl !== null && Rl.size !== 0) {
var t = Rl;
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
@@ -10739,54 +12337,54 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (r != null && r !== "auto") {
var i = t.get(r);
if (i !== void 0) {
- var a = hi(n.default, n.share);
- if (a !== "none" && (Ul(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, jd(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
+ var a = gi(n.default, n.share);
+ if (a !== "none" && (Ul(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, jd(e, n.onShare)) : Gl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
- ql(e);
+ Jl(e);
}
e = e.sibling;
}
}
}
- function Jl(e) {
+ function Yl(e) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode), r = Rl === null ? void 0 : Rl.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Ul(e, n, i, null, !1) ? r === void 0 ? jd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Rl.delete(n), jd(e, t.onShare)) : Wl(e.child, !1)), Rl !== null && ql(e);
- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e), e = e.sibling;
- else Rl !== null && ql(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode), r = Rl === null ? void 0 : Rl.get(n), i = gi(t.default, r === void 0 ? t.exit : t.share);
+ i !== "none" && (Ul(e, n, i, null, !1) ? r === void 0 ? jd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Rl.delete(n), jd(e, t.onShare)) : Gl(e.child, !1)), Rl !== null && Jl(e);
+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Yl(e), e = e.sibling;
+ else Rl !== null && Jl(e);
}
- function Yl(e) {
+ function Xl(e) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var t = e.memoizedProps, n = pi(t, e.stateNode);
- t = hi(t.default, t.update), e.flags &= -5, t !== "none" && Ul(e, n, t, e.memoizedState = [], !1);
- } else e.subtreeFlags & 33554432 && Yl(e);
+ var t = e.memoizedProps, n = mi(t, e.stateNode);
+ t = gi(t.default, t.update), e.flags &= -5, t !== "none" && Ul(e, n, t, e.memoizedState = [], !1);
+ } else e.subtreeFlags & 33554432 && Xl(e);
e = e.sibling;
}
}
- function Xl(e) {
+ function Zl(e) {
if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {
if (e.tag !== 22 || e.memoizedState === null) {
if (e.tag === 30 && e.flags & 18874368) {
var t = e.stateNode;
- t.paired !== null && (t.paired = null, Wl(e.child, !1));
+ t.paired !== null && (t.paired = null, Gl(e.child, !1));
}
- Xl(e);
+ Zl(e);
}
e = e.sibling;
}
}
- function Zl(e) {
- if (e.tag === 30) e.stateNode.paired = null, Wl(e.child, !1), Xl(e);
- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Zl(e), e = e.sibling;
- else Xl(e);
- }
function Ql(e) {
- for (e = e.child; e !== null;) e.tag === 30 ? Wl(e.child, !1) : e.subtreeFlags & 33554432 && Ql(e), e = e.sibling;
+ if (e.tag === 30) e.stateNode.paired = null, Gl(e.child, !1), Zl(e);
+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e), e = e.sibling;
+ else Zl(e);
}
- function $l(e, t, n, r, i, a, o) {
+ function $l(e) {
+ for (e = e.child; e !== null;) e.tag === 30 ? Gl(e.child, !1) : e.subtreeFlags & 33554432 && $l(e), e = e.sibling;
+ }
+ function eu(e, t, n, r, i, a, o) {
for (var s = !1; t !== null;) {
if (t.tag === 5) {
var c = t.stateNode;
@@ -10805,28 +12403,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);
} else e.flags |= 32;
e.flags & 4 && Tp(c, Hl === 0 ? n : n + "_" + Hl, i), s && e.flags & 4 || (Bl === null && (Bl = []), Bl.push(c, Hl === 0 ? r : r + "_" + Hl, t.memoizedProps)), Hl++;
- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : $l(e, t.child, n, r, i, a, o) && (s = !0));
+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : eu(e, t.child, n, r, i, a, o) && (s = !0));
t = t.sibling;
}
return s;
}
- function eu(e, t) {
+ function tu(e, t) {
for (e = e.child; e !== null;) {
if (e.tag === 30) {
- var n = e.memoizedProps, r = e.stateNode, i = pi(n, r), a = hi(n.default, n.update);
+ var n = e.memoizedProps, r = e.stateNode, i = mi(n, r), a = gi(n.default, n.update);
if (t) {
r = r.clones;
var o = r === null ? null : r.map(kp);
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Hl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || jd(e, n.onUpdate));
- } else e.subtreeFlags & 33554432 && eu(e, t);
+ Hl = 0, i = eu(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || jd(e, n.onUpdate));
+ } else e.subtreeFlags & 33554432 && tu(e, t);
e = e.sibling;
}
}
- var tu = !1, nu = !1, ru = !1, iu = !1, au = typeof WeakSet == "function" ? WeakSet : Set, ou = null, su = !1, cu = !1, lu = !1, uu = !1;
- function du(e, t, n) {
+ var nu = !1, ru = !1, au = !1, ou = !1, su = typeof WeakSet == "function" ? WeakSet : Set, cu = null, lu = !1, uu = !1, du = !1, fu = !1;
+ function pu(e, t, n) {
if (e = e.containerInfo, sp = gh, e = Wr(e), Gr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
@@ -10869,28 +12467,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
for (cp = {
focusedElem: e,
selectionRange: r
- }, gh = !1, n = (n & 335544064) === n, ou = t, t = n ? 9270 : 1024; ou !== null;) {
- if (e = ou, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Jl(r[a]);
- if (e.alternate === null && e.flags & 2) n && zl(e), fu(n);
+ }, gh = !1, n = (n & 335544064) === n, cu = t, t = n ? 9270 : 1024; cu !== null;) {
+ if (e = cu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && Yl(r[a]);
+ if (e.alternate === null && e.flags & 2) n && zl(e), mu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Jl(r), fu(n);
+ r !== null && r.memoizedState === null && n && Yl(r), mu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && zl(e), fu(n);
+ n && zl(e), mu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), fu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, cu = r) : (n && Xl(e), mu(n));
}
}
Rl = null;
}
- function fu(e) {
- for (; ou !== null;) {
- var t = ou, n = e, r = t.alternate, a = t.flags;
+ function mu(e) {
+ for (; cu !== null;) {
+ var t = cu, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
case 0:
case 11:
@@ -10900,7 +12498,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
n = void 0, a = r.memoizedProps, r = r.memoizedState;
var o = t.stateNode;
try {
- var s = bc(t.type, a);
+ var s = yc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
ff(t, t.return, e);
@@ -10927,34 +12525,34 @@ var Nc = /* @__PURE__ */ u(((e) => {
case 4:
case 17: break;
case 30:
- n && r !== null && (n = pi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = hi(a.default, a.update), a !== "none" && Ul(r, n, a, r.memoizedState = [], !0));
+ n && r !== null && (n = mi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = gi(a.default, a.update), a !== "none" && Ul(r, n, a, r.memoizedState = [], !0));
break;
default: if (a & 1024) throw Error(i(163));
}
if (r = t.sibling, r !== null) {
- r.return = t.return, ou = r;
+ r.return = t.return, cu = r;
break;
}
- ou = t.return;
+ cu = t.return;
}
}
- function pu(e, t, n) {
+ function hu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
case 11:
case 15:
- ju(e, n), r & 4 && xl(5, n);
+ Fu(e, n), r & 4 && yl(5, n);
break;
case 1:
- if (ju(e, n), r & 4) {
+ if (Fu(e, n), r & 4) {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
ff(n, n.return, e);
}
else {
- var i = bc(n.type, t.memoizedProps);
+ var i = yc(n.type, t.memoizedProps);
t = t.memoizedState;
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
@@ -10963,10 +12561,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
}
- r & 64 && Cl(n), r & 512 && Tl(n, n.return);
+ r & 64 && xl(n), r & 512 && Cl(n, n.return);
break;
case 3:
- if (ju(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
+ if (Fu(e, n), r & 64 && (e = n.updateQueue, e !== null)) {
if (t = null, n.child !== null) switch (n.child.tag) {
case 27:
case 5:
@@ -10975,43 +12573,43 @@ var Nc = /* @__PURE__ */ u(((e) => {
case 1: t = n.child.stateNode;
}
try {
- xo(e, t);
+ bo(e, t);
} catch (e) {
ff(n, n.return, e);
}
}
break;
- case 27: t === null && r & 4 && K(n);
+ case 27: t === null && r & 4 && Il(n);
case 26:
case 5:
- ju(e, n), t === null && r & 4 && jl(n), r & 512 && Tl(n, n.return);
+ Fu(e, n), t === null && r & 4 && Al(n), r & 512 && Cl(n, n.return);
break;
case 12:
- ju(e, n);
+ Fu(e, n);
break;
case 31:
- ju(e, n), r & 4 && xu(e, n);
+ Fu(e, n), r & 4 && wu(e, n);
break;
case 13:
- ju(e, n), r & 4 && Su(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));
+ Fu(e, n), r & 4 && Tu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));
break;
case 22:
- if (r = n.memoizedState !== null || tu, !r) {
- var a = t !== null && t.memoizedState !== null || nu;
- t = tu, i = nu, tu = r, (nu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Nu(e, n, r)) : ju(e, n), tu = t, nu = i;
+ if (r = n.memoizedState !== null || nu, !r) {
+ var a = t !== null && t.memoizedState !== null || ru;
+ t = nu, i = ru, nu = r, (ru = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Lu(e, n, r)) : Fu(e, n), nu = t, ru = i;
}
break;
case 30:
- ju(e, n), r & 512 && Tl(n, n.return);
+ Fu(e, n), r & 512 && Cl(n, n.return);
break;
- case 7: r & 512 && Tl(n, n.return);
- default: ju(e, n);
+ case 7: r & 512 && Cl(n, n.return);
+ default: Fu(e, n);
}
}
- function mu(e, t) {
- for (e = e.child; e !== null;) hu(e, t), e = e.sibling;
+ function gu(e, t) {
+ for (e = e.child; e !== null;) _u(e, t), e = e.sibling;
}
- function hu(e, t) {
+ function _u(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -11027,11 +12625,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
} catch (t) {
ff(e, e.return, t);
}
- gu(e, t);
+ vu(e, t);
break;
case 6:
try {
- e.stateNode.nodeValue = t ? "" : e.memoizedProps, V = !0;
+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, B = !0;
} catch (t) {
ff(e, e.return, t);
}
@@ -11046,95 +12644,95 @@ var Nc = /* @__PURE__ */ u(((e) => {
break;
case 22:
case 23:
- e.memoizedState === null && mu(e, t);
+ e.memoizedState === null && gu(e, t);
break;
- default: mu(e, t);
+ default: gu(e, t);
}
}
- function gu(e, t) {
+ function vu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- hu(n, r);
+ _u(n, r);
break a;
case 22:
- n.memoizedState === null && gu(n, r);
+ n.memoizedState === null && vu(n, r);
break a;
- default: gu(n, r);
+ default: vu(n, r);
}
}
e = e.sibling;
}
}
- function _u(e) {
+ function yu(e) {
var t = e.alternate;
- t !== null && (e.alternate = null, _u(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Ot(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
+ t !== null && (e.alternate = null, yu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && At(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;
}
- var vu = null, J = !1;
- function yu(e, t, n) {
- for (n = n.child; n !== null;) bu(e, t, n), n = n.sibling;
+ var bu = null, xu = !1;
+ function Su(e, t, n) {
+ for (n = n.child; n !== null;) Cu(e, t, n), n = n.sibling;
}
- function bu(e, t, n) {
- if (qe && typeof qe.onCommitFiberUnmount == "function") try {
- qe.onCommitFiberUnmount(Ke, n);
+ function Cu(e, t, n) {
+ if (Ze && typeof Ze.onCommitFiberUnmount == "function") try {
+ Ze.onCommitFiberUnmount(Xe, n);
} catch {}
switch (n.tag) {
case 26:
- nu || G(n, t), yu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !nu && (n = n.stateNode, n.parentNode.removeChild(n));
+ ru || wl(n, t), Su(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !ru && (n = n.stateNode, n.parentNode.removeChild(n));
break;
case 27:
- nu || G(n, t), Ol(n);
- var r = vu, i = J;
- Sp(n.type) && (vu = n.stateNode, J = !1), yu(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), vu = r, J = i;
+ ru || wl(n, t), Dl(n);
+ var r = bu, i = xu;
+ Sp(n.type) && (bu = n.stateNode, xu = !1), Su(e, t, n), gm(n.stateNode, n.type, n.memoizedProps), bu = r, xu = i;
break;
- case 5: nu || G(n, t), Ol(n);
+ case 5: ru || wl(n, t), Dl(n);
case 6:
- if (n.tag === 6 && Ol(n), r = vu, i = J, vu = null, yu(e, t, n), vu = r, J = i, vu !== null) {
- if (J) try {
- (vu.nodeType === 9 ? vu.body : vu.nodeName === "HTML" ? vu.ownerDocument.body : vu).removeChild(n.stateNode), V = !0;
+ if (n.tag === 6 && Dl(n), r = bu, i = xu, bu = null, Su(e, t, n), bu = r, xu = i, bu !== null) {
+ if (xu) try {
+ (bu.nodeType === 9 ? bu.body : bu.nodeName === "HTML" ? bu.ownerDocument.body : bu).removeChild(n.stateNode), B = !0;
} catch (e) {
ff(n, t, e);
}
else try {
- vu.removeChild(n.stateNode), V = !0;
+ bu.removeChild(n.stateNode), B = !0;
} catch (e) {
ff(n, t, e);
}
}
break;
case 18:
- vu !== null && (J ? (e = vu, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(vu, n.stateNode));
+ bu !== null && (xu ? (e = bu, Cp(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Hh(e)) : Cp(bu, n.stateNode));
break;
case 4:
- r = vu, i = J, vu = n.stateNode.containerInfo, J = !0, yu(e, t, n), vu = r, J = i;
+ r = bu, i = xu, bu = n.stateNode.containerInfo, xu = !0, Su(e, t, n), bu = r, xu = i;
break;
case 0:
case 11:
case 14:
case 15:
- Sl(2, n, t), nu || Sl(4, n, t), yu(e, t, n);
+ bl(2, n, t), ru || bl(4, n, t), Su(e, t, n);
break;
case 1:
- nu || (G(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && wl(n, t, r)), yu(e, t, n);
+ ru || (wl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Sl(n, t, r)), Su(e, t, n);
break;
case 21:
- yu(e, t, n);
+ Su(e, t, n);
break;
case 22:
- nu = (r = nu) || n.memoizedState !== null, yu(e, t, n), nu = r;
+ ru = (r = ru) || n.memoizedState !== null, Su(e, t, n), ru = r;
break;
case 30:
- G(n, t), yu(e, t, n);
+ wl(n, t), Su(e, t, n);
break;
case 7:
- nu || G(n, t), yu(e, t, n);
+ ru || wl(n, t), Su(e, t, n);
break;
- default: yu(e, t, n);
+ default: Su(e, t, n);
}
}
- function xu(e, t) {
+ function wu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {
e = e.dehydrated;
try {
@@ -11144,26 +12742,26 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
}
- function Su(e, t) {
+ function Tu(e, t) {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Hh(e);
} catch (e) {
ff(t, t.return, e);
}
}
- function Cu(e) {
+ function Eu(e) {
switch (e.tag) {
case 31:
case 13:
case 19:
var t = e.stateNode;
- return t === null && (t = e.stateNode = new au()), t;
- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new au()), t;
+ return t === null && (t = e.stateNode = new su()), t;
+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new su()), t;
default: throw Error(i(435, e.tag));
}
}
- function wu(e, t) {
- var n = Cu(e);
+ function Du(e, t) {
+ var n = Eu(e);
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
@@ -11172,7 +12770,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
});
}
- function Tu(e, t, n) {
+ function Ou(e, t, n) {
var r = t.deletions;
if (r !== null) for (var a = 0; a < r.length; a++) {
var o = r[a], s = e, c = t, l = c;
@@ -11180,27 +12778,27 @@ var Nc = /* @__PURE__ */ u(((e) => {
switch (l.tag) {
case 27:
if (Sp(l.type)) {
- vu = l.stateNode, J = !1;
+ bu = l.stateNode, xu = !1;
break a;
}
break;
case 5:
- vu = l.stateNode, J = !1;
+ bu = l.stateNode, xu = !1;
break a;
case 3:
case 4:
- vu = l.stateNode.containerInfo, J = !0;
+ bu = l.stateNode.containerInfo, xu = !0;
break a;
}
l = l.return;
}
- if (vu === null) throw Error(i(160));
- bu(s, c, o), vu = null, J = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
+ if (bu === null) throw Error(i(160));
+ Cu(s, c, o), bu = null, xu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;
}
- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Du(t, e, n), t = t.sibling;
+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Au(t, e, n), t = t.sibling;
}
- var Eu = null;
- function Du(e, t, n) {
+ var ku = null;
+ function Au(e, t, n) {
var r = e.alternate, a = e.flags;
switch (e.tag) {
case 0:
@@ -11211,23 +12809,23 @@ var Nc = /* @__PURE__ */ u(((e) => {
var s = r[o];
s.ref.impl = s.nextImpl;
}
- Tu(t, e, n), Y(e), a & 4 && (Sl(3, e, e.return), xl(3, e), Sl(5, e, e.return));
+ Ou(t, e, n), ju(e), a & 4 && (bl(3, e, e.return), yl(3, e), bl(5, e, e.return));
break;
case 1:
- Tu(t, e, n), Y(e), a & 512 && (nu || r === null || G(r, r.return)), a & 64 && tu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
+ Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 64 && nu && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));
break;
case 26:
- if (o = Eu, Tu(t, e, n), Y(e), a & 512 && (nu || r === null || G(r, r.return)), a & 4) {
+ if (o = ku, Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), a & 4) {
if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {
if (n === null) {
if (e.stateNode === null) {
- if (tu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);
+ if (nu) e.stateNode = fp(e.type, e.memoizedProps, t.containerInfo, e);
else {
a: {
t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;
b: switch (t) {
case "title":
- r = a.getElementsByTagName("title")[0], (!r || r[Et] || r[yt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[yt] = e, Nt(r), t = r;
+ r = a.getElementsByTagName("title")[0], (!r || r[kt] || r[St] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), np(r, t, n), r[St] = e, Pt(r), t = r;
break a;
case "link":
if (o = Gm("link", "href", a).get(t + (n.href || ""))) {
@@ -11249,82 +12847,82 @@ var Nc = /* @__PURE__ */ u(((e) => {
break;
default: throw Error(i(468, t));
}
- r[yt] = e, Nt(r), t = r;
+ r[St] = e, Pt(r), t = r;
}
e.stateNode = t;
}
- } else tu || Km(o, e.type, e.stateNode);
+ } else nu || Km(o, e.type, e.stateNode);
} else e.stateNode = Bm(o, n, e.memoizedProps);
- } else a === n ? n === null && e.stateNode !== null && Ml(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || nu || t.parentNode.removeChild(t)) : a.count--, n === null ? tu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
+ } else a === n ? n === null && e.stateNode !== null && jl(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || ru || t.parentNode.removeChild(t)) : a.count--, n === null ? nu || Km(o, e.type, e.stateNode) : Bm(o, n, e.memoizedProps));
}
break;
case 27:
- Tu(t, e, n), Y(e), a & 512 && (nu || r === null || G(r, r.return)), r !== null && a & 4 && Ml(e, e.memoizedProps, r.memoizedProps);
+ Ou(t, e, n), ju(e), a & 512 && (ru || r === null || wl(r, r.return)), r !== null && a & 4 && jl(e, e.memoizedProps, r.memoizedProps);
break;
case 5:
- if (o = ru, ru = !1, Tu(t, e, n), ru = o, Y(e), a & 512 && (nu || r === null || G(r, r.return)), e.flags & 32) {
+ if (o = au, au = !1, Ou(t, e, n), au = o, ju(e), a & 512 && (ru || r === null || wl(r, r.return)), e.flags & 32) {
t = e.stateNode;
try {
- on(t, ""), V = !0;
+ sn(t, ""), B = !0;
} catch (t) {
ff(e, e.return, t);
}
}
- a & 4 && e.stateNode != null && (t = e.memoizedProps, Ml(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
+ a & 4 && e.stateNode != null && (t = e.memoizedProps, jl(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (ou = !0);
break;
case 6:
- if (Tu(t, e, n), Y(e), a & 4) {
+ if (Ou(t, e, n), ju(e), a & 4) {
if (e.stateNode === null) throw Error(i(162));
t = e.memoizedProps, n = e.stateNode;
try {
- n.nodeValue = t, V = !0;
+ n.nodeValue = t, B = !0;
} catch (t) {
ff(e, e.return, t);
}
}
break;
case 3:
- if (V = !1, Wm = null, o = Eu, Eu = bm(t.containerInfo), Tu(t, e, n), Eu = o, Y(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
+ if (B = !1, Wm = null, o = ku, ku = bm(t.containerInfo), Ou(t, e, n), ku = o, ju(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Hh(t.containerInfo);
} catch (t) {
ff(e, e.return, t);
}
- iu && (iu = !1, Ou(e)), V = !1;
+ ou && (ou = !1, Mu(e)), B = !1;
break;
case 4:
- a = ru, ru = tu, r = Ht(), o = Eu, Eu = bm(e.stateNode.containerInfo), Tu(t, e, n), Y(e), Eu = o, V && cu && (lu = !0), V = r, ru = a;
+ a = au, au = nu, r = Ut(), o = ku, ku = bm(e.stateNode.containerInfo), Ou(t, e, n), ju(e), ku = o, B && uu && (du = !0), B = r, au = a;
break;
case 12:
- Tu(t, e, n), Y(e);
+ Ou(t, e, n), ju(e);
break;
case 31:
- Tu(t, e, n), Y(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 13:
- Tu(t, e, n), Y(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (fd = Le()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ Ou(t, e, n), ju(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (pd = Ve()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 22:
o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;
- var c = tu, l = nu, u = ru;
- tu = c || o, ru = u || o, nu = l || s, Tu(t, e, n), nu = l, ru = u, tu = c, Y(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || tu || nu || (t = s || nu, n = tu, r = nu, tu = o || tu, nu = t, Mu(e, 2), tu = n, nu = r), !o && ru || mu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, wu(e, n))));
+ var c = nu, l = ru, u = au;
+ nu = c || o, au = u || o, ru = l || s, Ou(t, e, n), ru = l, au = u, nu = c, ju(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || nu || ru || (t = s || ru, n = nu, r = ru, nu = o || nu, ru = t, Iu(e, 2), nu = n, ru = r), !o && au || gu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Du(e, n))));
break;
case 19:
- Tu(t, e, n), Y(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, wu(e, t)));
+ Ou(t, e, n), ju(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Du(e, t)));
break;
case 30:
- a & 512 && (nu || r === null || G(r, r.return)), a = Ht(), o = cu, s = (n & 335544064) === n, c = e.memoizedProps, cu = s && hi(c.default, c.update) !== "none", Tu(t, e, n), Y(e), s && r !== null && V && (e.flags |= 4), cu = o, V = a;
+ a & 512 && (ru || r === null || wl(r, r.return)), a = Ut(), o = uu, s = (n & 335544064) === n, c = e.memoizedProps, uu = s && gi(c.default, c.update) !== "none", Ou(t, e, n), ju(e), s && r !== null && B && (e.flags |= 4), uu = o, B = a;
break;
case 21: break;
- case 7: a & 512 && (nu || r === null || G(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
- default: Tu(t, e, n), Y(e);
+ case 7: a & 512 && (ru || r === null || wl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);
+ default: Ou(t, e, n), ju(e);
}
}
- function Y(e) {
+ function ju(e) {
var t = e.flags;
if (t & 2) {
try {
for (var n, r = e.return; r !== null;) {
- if (Nl(r)) {
+ if (Ml(r)) {
n = r;
break;
}
@@ -11332,11 +12930,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
r = null;
for (var a = e.return; a !== null;) {
- if (Al(a)) {
+ if (kl(a)) {
var o = a.stateNode;
r === null ? r = [o] : r.push(o);
}
- if (kl(a)) break;
+ if (Ol(a)) break;
a = a.return;
}
var s = r;
@@ -11344,16 +12942,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
switch (n.tag) {
case 27:
var c = n.stateNode;
- Il(e, Pl(e), c, s);
+ Fl(e, Nl(e), c, s);
break;
case 5:
var l = n.stateNode;
- n.flags & 32 && (on(l, ""), n.flags &= -33), Il(e, Pl(e), l, s);
+ n.flags & 32 && (sn(l, ""), n.flags &= -33), Fl(e, Nl(e), l, s);
break;
case 3:
case 4:
var u = n.stateNode.containerInfo;
- Fl(e, Pl(e), u, s);
+ Pl(e, Nl(e), u, s);
break;
default: throw Error(i(161));
}
@@ -11364,22 +12962,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
t & 4096 && (e.flags &= -4097);
}
- function Ou(e) {
+ function Mu(e) {
if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {
var t = e;
- Ou(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
+ Mu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, gh = !0, t.reset(), gh = !1), e = e.sibling;
}
}
- function ku(e, t) {
- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Au(t, e), t = t.sibling;
- else eu(t, !1);
+ function Nu(e, t) {
+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Pu(t, e), t = t.sibling;
+ else tu(t, !1);
}
- function Au(e, t) {
+ function Pu(e, t) {
var n = e.alternate;
- if (n === null) Kl(e, !1);
+ if (n === null) ql(e, !1);
else switch (e.tag) {
case 3:
- if (uu = su = !1, Vl(), ku(t, e), !su && !lu) {
+ if (fu = lu = !1, Vl(), Nu(t, e), !lu && !du) {
if (e = Bl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
@@ -11406,33 +13004,33 @@ var Nc = /* @__PURE__ */ u(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), uu = !0;
+ })), fu = !0;
}
Bl = null;
break;
case 5:
- ku(t, e);
+ Nu(t, e);
break;
case 4:
- r = su, su = !1, ku(t, e), su && (lu = !0), su = r;
+ r = lu, lu = !1, Nu(t, e), lu && (du = !0), lu = r;
break;
case 22:
- e.memoizedState === null && (n.memoizedState === null ? ku(t, e) : Kl(e, !1));
+ e.memoizedState === null && (n.memoizedState === null ? Nu(t, e) : ql(e, !1));
break;
case 30:
- r = su, i = Vl(), su = !1, ku(t, e), su && (e.flags |= 4);
+ r = lu, i = Vl(), lu = !1, Nu(t, e), lu && (e.flags |= 4);
var a = e.memoizedProps, o = e.stateNode;
- t = pi(a, o), o = pi(n.memoizedProps, o);
- var s = hi(a.default, a.update);
- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Hl = 0, t = $l(e, n, t, o, s, a, !0), Hl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), Bl = i) : i !== null && (i.push.apply(i, Bl), Bl = i), su = e.flags & 32 ? !0 : r;
+ t = mi(a, o), o = mi(n.memoizedProps, o);
+ var s = gi(a.default, a.update);
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Hl = 0, t = eu(e, n, t, o, s, a, !0), Hl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (jd(e, e.memoizedProps.onUpdate), Bl = i) : i !== null && (i.push.apply(i, Bl), Bl = i), lu = e.flags & 32 ? !0 : r;
break;
- default: ku(t, e);
+ default: Nu(t, e);
}
}
- function ju(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) pu(e, t.alternate, t), t = t.sibling;
+ function Fu(e, t) {
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) hu(e, t.alternate, t), t = t.sibling;
}
- function Mu(e, t) {
+ function Iu(e, t) {
for (e = e.child; e !== null;) {
var n = e, r = t;
switch (n.tag) {
@@ -11440,46 +13038,46 @@ var Nc = /* @__PURE__ */ u(((e) => {
case 11:
case 14:
case 15:
- Sl(4, n, n.return), Mu(n, r);
+ bl(4, n, n.return), Iu(n, r);
break;
case 1:
- G(n, n.return);
+ wl(n, n.return);
var i = n.stateNode;
- typeof i.componentWillUnmount == "function" && wl(n, n.return, i), Mu(n, r);
+ typeof i.componentWillUnmount == "function" && Sl(n, n.return, i), Iu(n, r);
break;
case 27: r & 2 && gm(n.stateNode, n.type, n.memoizedProps);
case 5:
- G(n, n.return), n.tag !== 5 && n.tag !== 27 || Ol(n), Mu(n, r);
+ wl(n, n.return), n.tag !== 5 && n.tag !== 27 || Dl(n), Iu(n, r);
break;
case 6:
- Ol(n);
+ Dl(n);
break;
case 26:
- G(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || nu || i.parentNode.removeChild(i), Mu(n, r);
+ wl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || ru || i.parentNode.removeChild(i), Iu(n, r);
break;
case 22:
- n.memoizedState === null && Mu(n, r);
+ n.memoizedState === null && Iu(n, r);
break;
case 30:
- G(n, n.return), Mu(n, r);
+ wl(n, n.return), Iu(n, r);
break;
- case 7: G(n, n.return);
- default: Mu(n, r);
+ case 7: wl(n, n.return);
+ default: Iu(n, r);
}
e = e.sibling;
}
}
- function Nu(e, t, n) {
+ function Lu(e, t, n) {
for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {
var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);
switch (a.tag) {
case 0:
case 11:
case 15:
- Nu(i, a, n), xl(4, a);
+ Lu(i, a, n), yl(4, a);
break;
case 1:
- if (Nu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
+ if (Lu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
ff(r, r.return, e);
@@ -11488,170 +13086,170 @@ var Nc = /* @__PURE__ */ u(((e) => {
var c = r.stateNode;
try {
var l = i.shared.hiddenCallbacks;
- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) bo(l[i], c);
+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) yo(l[i], c);
} catch (e) {
ff(r, r.return, e);
}
}
- s && o & 64 && Cl(a), Tl(a, a.return);
+ s && o & 64 && xl(a), Cl(a, a.return);
break;
- case 27: n & 2 && K(a);
+ case 27: n & 2 && Il(a);
case 5:
- a.tag !== 5 && a.tag !== 27 || Dl(a), Nu(i, a, n), s && r === null && o & 4 && jl(a), Tl(a, a.return);
+ a.tag !== 5 && a.tag !== 27 || El(a), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
break;
case 6:
- Dl(a);
+ El(a);
break;
case 26:
- c = a.stateNode, a.memoizedState !== null || c === null || tu || Km(bm(c.ownerDocument), a.type, c), Nu(i, a, n), s && r === null && o & 4 && jl(a), Tl(a, a.return);
+ c = a.stateNode, a.memoizedState !== null || c === null || nu || Km(bm(c.ownerDocument), a.type, c), Lu(i, a, n), s && r === null && o & 4 && Al(a), Cl(a, a.return);
break;
case 12:
- Nu(i, a, n);
+ Lu(i, a, n);
break;
case 31:
- Nu(i, a, n), s && o & 4 && xu(i, a);
+ Lu(i, a, n), s && o & 4 && wu(i, a);
break;
case 13:
- Nu(i, a, n), s && o & 4 && Su(i, a);
+ Lu(i, a, n), s && o & 4 && Tu(i, a);
break;
case 22:
- a.memoizedState === null && Nu(i, a, n), Tl(a, a.return);
+ a.memoizedState === null && Lu(i, a, n), Cl(a, a.return);
break;
case 30:
- Nu(i, a, n), Tl(a, a.return);
+ Lu(i, a, n), Cl(a, a.return);
break;
- case 7: Tl(a, a.return);
- default: Nu(i, a, n);
+ case 7: Cl(a, a.return);
+ default: Lu(i, a, n);
}
t = t.sibling;
}
}
- function Pu(e, t) {
+ function Ru(e, t) {
var n = null;
- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && ka(n));
+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Oa(n));
}
- function Fu(e, t) {
- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && ka(e));
+ function zu(e, t) {
+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Oa(e));
}
- function Iu(e, t, n, r) {
+ function Bu(e, t, n, r) {
var i = (n & 335544064) === n;
- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Lu(e, t, n, r), t = t.sibling;
- else i && Ql(t);
+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Vu(e, t, n, r), t = t.sibling;
+ else i && $l(t);
}
- function Lu(e, t, n, r) {
+ function Vu(e, t, n, r) {
var i = (n & 335544064) === n;
- i && t.alternate === null && t.return !== null && t.return.alternate !== null && Zl(t);
+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && Ql(t);
var a = t.flags;
switch (t.tag) {
case 0:
case 11:
case 15:
- Iu(e, t, n, r), a & 2048 && xl(9, t);
+ Bu(e, t, n, r), a & 2048 && yl(9, t);
break;
case 1:
- Iu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 3:
- Iu(e, t, n, r), i && uu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && ka(a)));
+ Bu(e, t, n, r), i && fu && (e = e.containerInfo, e = e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, e.style.viewTransitionName === "root" && (e.style.viewTransitionName = ""), e = e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "none" && (e.style.viewTransitionName = "")), a & 2048 && (a = null, t.alternate !== null && (a = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== a && (t.refCount++, a != null && Oa(a)));
break;
case 12:
if (a & 2048) {
- Iu(e, t, n, r), a = t.stateNode;
+ Bu(e, t, n, r), a = t.stateNode;
try {
var o = t.memoizedProps, s = o.id, c = o.onPostCommit;
typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);
} catch (e) {
ff(t, t.return, e);
}
- } else Iu(e, t, n, r);
+ } else Bu(e, t, n, r);
break;
case 31:
- Iu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 13:
- Iu(e, t, n, r);
+ Bu(e, t, n, r);
break;
case 23: break;
case 22:
- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Zl(t), o._visibility & 2 ? Iu(e, t, n, r) : (o._visibility |= 2, Ru(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Zl(s), o._visibility & 2 ? Iu(e, t, n, r) : zu(e, t)), a & 2048 && Pu(s, t);
+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && Ql(t), o._visibility & 2 ? Bu(e, t, n, r) : (o._visibility |= 2, Hu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && Ql(s), o._visibility & 2 ? Bu(e, t, n, r) : Uu(e, t)), a & 2048 && Ru(s, t);
break;
case 24:
- Iu(e, t, n, r), a & 2048 && Fu(t.alternate, t);
+ Bu(e, t, n, r), a & 2048 && zu(t.alternate, t);
break;
case 30:
- i && (a = t.alternate, a !== null && (Wl(a.child, !0), Wl(t.child, !0))), Iu(e, t, n, r);
+ i && (a = t.alternate, a !== null && (Gl(a.child, !0), Gl(t.child, !0))), Bu(e, t, n, r);
break;
- default: Iu(e, t, n, r);
+ default: Bu(e, t, n, r);
}
}
- function Ru(e, t, n, r, i) {
+ function Hu(e, t, n, r, i) {
for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {
var a = e, o = t, s = n, c = r, l = o.flags;
switch (o.tag) {
case 0:
case 11:
case 15:
- Ru(a, o, s, c, i), xl(8, o);
+ Hu(a, o, s, c, i), yl(8, o);
break;
case 23: break;
case 22:
var u = o.stateNode;
- o.memoizedState === null ? (u._visibility |= 2, Ru(a, o, s, c, i)) : u._visibility & 2 ? Ru(a, o, s, c, i) : zu(a, o), i && l & 2048 && Pu(o.alternate, o);
+ o.memoizedState === null ? (u._visibility |= 2, Hu(a, o, s, c, i)) : u._visibility & 2 ? Hu(a, o, s, c, i) : Uu(a, o), i && l & 2048 && Ru(o.alternate, o);
break;
case 24:
- Ru(a, o, s, c, i), i && l & 2048 && Fu(o.alternate, o);
+ Hu(a, o, s, c, i), i && l & 2048 && zu(o.alternate, o);
break;
- default: Ru(a, o, s, c, i);
+ default: Hu(a, o, s, c, i);
}
t = t.sibling;
}
}
- function zu(e, t) {
+ function Uu(e, t) {
if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {
var n = e, r = t, i = r.flags;
switch (r.tag) {
case 22:
- zu(n, r), i & 2048 && Pu(r.alternate, r);
+ Uu(n, r), i & 2048 && Ru(r.alternate, r);
break;
case 24:
- zu(n, r), i & 2048 && Fu(r.alternate, r);
+ Uu(n, r), i & 2048 && zu(r.alternate, r);
break;
- default: zu(n, r);
+ default: Uu(n, r);
}
t = t.sibling;
}
}
- var Bu = 8192;
- function Vu(e, t, n) {
- if (e.subtreeFlags & Bu) for (e = e.child; e !== null;) Hu(e, t, n), e = e.sibling;
+ var Wu = 8192;
+ function Gu(e, t, n) {
+ if (e.subtreeFlags & Wu) for (e = e.child; e !== null;) Ku(e, t, n), e = e.sibling;
}
- function Hu(e, t, n) {
+ function Ku(e, t, n) {
switch (e.tag) {
case 26:
- Vu(e, t, n), e.flags & Bu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, Eu, e.memoizedState, e.memoizedProps));
+ Gu(e, t, n), e.flags & Wu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && Zm(n, e)) : Qm(n, ku, e.memoizedState, e.memoizedProps));
break;
case 5:
- Vu(e, t, n), e.flags & Bu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
+ Gu(e, t, n), e.flags & Wu && (e = e.stateNode, (t & 335544128) === t && Zm(n, e));
break;
case 3:
case 4:
- var r = Eu;
- Eu = bm(e.stateNode.containerInfo), Vu(e, t, n), Eu = r;
+ var r = ku;
+ ku = bm(e.stateNode.containerInfo), Gu(e, t, n), ku = r;
break;
case 22:
- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Bu, Bu = 16777216, Vu(e, t, n), Bu = r) : Vu(e, t, n));
+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = Wu, Wu = 16777216, Gu(e, t, n), Wu = r) : Gu(e, t, n));
break;
case 30:
- if ((e.flags & Bu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
+ if ((e.flags & Wu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {
var i = e.stateNode;
i.paired = null, Rl === null && (Rl = /* @__PURE__ */ new Map()), Rl.set(r, i);
}
- Vu(e, t, n);
+ Gu(e, t, n);
break;
- default: Vu(e, t, n);
+ default: Gu(e, t, n);
}
}
- function Uu(e) {
+ function qu(e) {
var t = e.alternate;
if (t !== null && (e = t.child, e !== null)) {
t.child = null;
@@ -11660,69 +13258,69 @@ var Nc = /* @__PURE__ */ u(((e) => {
while (e !== null);
}
}
- function Wu(e) {
+ function Ju(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, qu(r, e);
+ cu = r, Zu(r, e);
}
- Uu(e);
+ qu(e);
}
- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Gu(e), e = e.sibling;
+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Yu(e), e = e.sibling;
}
- function Gu(e) {
+ function Yu(e) {
switch (e.tag) {
case 0:
case 11:
case 15:
- Wu(e), e.flags & 2048 && Sl(9, e, e.return);
+ Ju(e), e.flags & 2048 && bl(9, e, e.return);
break;
case 3:
- Wu(e);
+ Ju(e);
break;
case 12:
- Wu(e);
+ Ju(e);
break;
case 22:
var t = e.stateNode;
- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Ku(e)) : Wu(e);
+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, Xu(e)) : Ju(e);
break;
- default: Wu(e);
+ default: Ju(e);
}
}
- function Ku(e) {
+ function Xu(e) {
var t = e.deletions;
if (e.flags & 16) {
if (t !== null) for (var n = 0; n < t.length; n++) {
var r = t[n];
- ou = r, qu(r, e);
+ cu = r, Zu(r, e);
}
- Uu(e);
+ qu(e);
}
for (e = e.child; e !== null;) {
switch (t = e, t.tag) {
case 0:
case 11:
case 15:
- Sl(8, t, t.return), Ku(t);
+ bl(8, t, t.return), Xu(t);
break;
case 22:
- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Ku(t));
+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, Xu(t));
break;
- default: Ku(t);
+ default: Xu(t);
}
e = e.sibling;
}
}
- function qu(e, t) {
- for (; ou !== null;) {
- var n = ou;
+ function Zu(e, t) {
+ for (; cu !== null;) {
+ var n = cu;
switch (n.tag) {
case 0:
case 11:
case 15:
- Sl(8, n, t);
+ bl(8, n, t);
break;
case 23:
case 22:
@@ -11731,60 +13329,60 @@ var Nc = /* @__PURE__ */ u(((e) => {
r != null && r.refCount++;
}
break;
- case 24: ka(n.memoizedState.cache);
+ case 24: Oa(n.memoizedState.cache);
}
- if (r = n.child, r !== null) r.return = n, ou = r;
- else a: for (n = e; ou !== null;) {
- r = ou;
+ if (r = n.child, r !== null) r.return = n, cu = r;
+ else a: for (n = e; cu !== null;) {
+ r = cu;
var i = r.sibling, a = r.return;
- if (_u(r), r === n) {
- ou = null;
+ if (yu(r), r === n) {
+ cu = null;
break a;
}
if (i !== null) {
- i.return = a, ou = i;
+ i.return = a, cu = i;
break a;
}
- ou = a;
+ cu = a;
}
}
}
- var Ju = {
+ var Qu = {
getCacheForType: function(e) {
- var t = xa(Da), n = t.data.get(e);
+ var t = W(Ea), n = t.data.get(e);
return n === void 0 && (n = e(), t.data.set(e, n)), n;
},
cacheSignal: function() {
- return xa(Da).controller.signal;
+ return W(Ea).controller.signal;
}
- }, Yu = typeof WeakMap == "function" ? WeakMap : Map, X = 0, Xu = null, Z = null, Q = 0, Zu = 0, Qu = null, $u = !1, ed = !1, td = !1, nd = 0, rd = 0, id = 0, ad = 0, od = 0, sd = 0, cd = 0, ld = null, ud = null, dd = !1, fd = 0, pd = 0, md = Infinity, hd = null, gd = null, _d = 0, vd = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
+ }, $u = typeof WeakMap == "function" ? WeakMap : Map, K = 0, q = null, J = null, Y = 0, X = 0, ed = null, td = !1, nd = !1, rd = !1, id = 0, ad = 0, od = 0, sd = 0, Z = 0, cd = 0, ld = 0, ud = null, dd = null, fd = !1, pd = 0, md = 0, Q = Infinity, hd = null, gd = null, _d = 0, vd = null, yd = null, bd = 0, xd = 0, Sd = null, Cd = null, wd = null, Td = null, Ed = null, Dd = 0, Od = null;
function kd() {
- return X & 2 && Q !== 0 ? Q & -Q : L.T === null ? gt() : Nf();
+ return K & 2 && Y !== 0 ? Y & -Y : N.T === null ? bt() : Nf();
}
function Ad() {
- if (sd === 0) {
- if (!(Q & 536870912) || U) {
- var e = et;
- et <<= 1, !(et & 3932160) && (et = 262144), sd = e;
- } else sd = 536870912;
+ if (cd === 0) {
+ if (!(Y & 536870912) || U) {
+ var e = it;
+ it <<= 1, !(it & 3932160) && (it = 262144), cd = e;
+ } else cd = 536870912;
}
- return e = Do.current, e !== null && (e.flags |= 32), sd;
+ return e = Eo.current, e !== null && (e.flags |= 32), cd;
}
function jd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
+ r === null && (r = n.ref = Pp(mi(e.memoizedProps, n))), Td === null && (Td = []), Td.push(t.bind(null, r));
}
}
function Md(e, t, n) {
- (e === Xu && (Zu === 2 || Zu === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Q, sd, !1)), lt(e, n), (!(X & 2) || e !== Xu) && (e === Xu && (!(X & 2) && (ad |= n), rd === 4 && Id(e, Q, sd, !1)), Tf(e));
+ (e === q && (X === 2 || X === 9) || e.cancelPendingCommit !== null) && (zd(e, 0), Id(e, Y, cd, !1)), pt(e, n), (!(K & 2) || e !== q) && (e === q && (!(K & 2) && (sd |= n), ad === 4 && Id(e, Y, cd, !1)), Tf(e));
}
function Nd(e, t, n) {
- if (X & 6) throw Error(i(327));
- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || it(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
+ if (K & 6) throw Error(i(327));
+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || ct(e, t), a = r ? qd(e, t) : Gd(e, t, !0), o = r;
do {
if (a === 0) {
- ed && !r && Id(e, t, 0, !1);
+ nd && !r && Id(e, t, 0, !1);
break;
}
if (n = e.current.alternate, o && !Fd(n)) {
@@ -11798,14 +13396,14 @@ var Nc = /* @__PURE__ */ u(((e) => {
t = s;
a: {
var c = e;
- a = ld;
+ a = ud;
var l = c.current.memoizedState.isDehydrated;
if (l && (zd(c, s).flags |= 256), s = Gd(c, s, !1), s !== 2 && s !== 6) {
- if (td && !l) {
- c.errorRecoveryDisabledLanes |= o, ad |= o, a = 4;
+ if (rd && !l) {
+ c.errorRecoveryDisabledLanes |= o, sd |= o, a = 4;
break a;
}
- o = ud, ud = a, o !== null && (ud === null ? ud = o : ud.push.apply(ud, o));
+ o = dd, dd = a, o !== null && (dd === null ? dd = o : dd.push.apply(dd, o));
}
a = s;
}
@@ -11822,21 +13420,21 @@ var Nc = /* @__PURE__ */ u(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Id(r, t, sd, !$u);
+ Id(r, t, cd, !td);
break a;
case 2:
- ud = null;
+ dd = null;
break;
case 3:
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = fd + 300 - Le(), 10 < a)) {
- if (Id(r, t, sd, !$u), rt(r, 0, !0) !== 0) break a;
- bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, ud, hd, dd, t, sd, ad, cd, $u, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = pd + 300 - Ve(), 10 < a)) {
+ if (Id(r, t, cd, !td), st(r, 0, !0) !== 0) break a;
+ bd = t, r.timeoutHandle = gp(Pd.bind(null, r, n, dd, hd, fd, t, cd, sd, ld, td, o, "Throttled", -0, 0), a);
break a;
}
- Pd(r, n, ud, hd, dd, t, sd, ad, cd, $u, o, null, -0, 0);
+ Pd(r, n, dd, hd, fd, t, cd, sd, ld, td, o, null, -0, 0);
}
break;
} while (1);
@@ -11854,7 +13452,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: hn
- }, Rl = null, Hu(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? fd - Le() : (a & 4194048) === a ? pd - Le() : 0, m = eh(d, m), m !== null)) {
+ }, Rl = null, Ku(t, a, d), h && (m = d, h = e.containerInfo, h = (h.nodeType === 9 ? h : h.ownerDocument).__reactViewTransition, h != null && (m.count++, m.waitingForViewTransition = !0, m = nh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? pd - Ve() : (a & 4194048) === a ? md - Ve() : 0, m = eh(d, m), m !== null)) {
bd = a, e.cancelPendingCommit = m(ef.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Id(e, a, o, !l);
return;
}
@@ -11867,7 +13465,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
var i = n[r], a = i.getSnapshot;
i = i.value;
try {
- if (!Rr(a(), i)) return !1;
+ if (!Lr(a(), i)) return !1;
} catch {
return !1;
}
@@ -11885,57 +13483,57 @@ var Nc = /* @__PURE__ */ u(((e) => {
return !0;
}
function Id(e, t, n, r) {
- t = at(e, t), t &= ~od, t &= ~ad, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
+ t = lt(e, t), t &= ~Z, t &= ~sd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
- var a = 31 - Ye(i), o = 1 << a;
+ var a = 31 - $e(i), o = 1 << a;
r[a] = -1, i &= ~o;
}
- n !== 0 && dt(e, n, t);
+ n !== 0 && ht(e, n, t);
}
function Ld() {
- return X & 6 ? !0 : (Ef(0, !1), !1);
+ return K & 6 ? !0 : (Ef(0, !1), !1);
}
function Rd() {
- if (Z !== null) {
- if (Zu === 0) var e = Z.return;
- else e = Z, pa = fa = null, ns(e), to = null, no = 0, e = Z;
- for (; e !== null;) bl(e.alternate, e), e = e.return;
- Z = null;
+ if (J !== null) {
+ if (X === 0) var e = J.return;
+ else e = J, pa = fa = null, ts(e), eo = null, to = 0, e = J;
+ for (; e !== null;) vl(e.alternate, e), e = e.return;
+ J = null;
}
}
function zd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(), Xu = e, Z = n = Ai(e.current, null), Q = t, Zu = 0, Qu = null, $u = !1, ed = it(e, t), td = !1, cd = sd = od = ad = id = rd = 0, ud = ld = null, dd = !1, nd = at(e, t), bi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), bd = 0, Rd(), q = e, J = n = ji(e.current, null), Y = t, X = 0, ed = null, td = !1, nd = ct(e, t), rd = !1, ld = cd = Z = sd = od = ad = 0, dd = ud = null, fd = !1, id = lt(e, t), xi(), n;
}
function Bd(e, t) {
- W = null, L.H = fc, t === Ga || t === qa ? (t = $a(), Zu = 3) : t === Ka ? (t = $a(), Zu = 4) : Zu = t === Ac ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, Qu = t, Z === null && (rd = 1, wc(e, Ri(t, e.current)));
+ G = null, N.H = dc, t === Wa || t === Ka ? (t = Qa(), X = 3) : t === Ga ? (t = Qa(), X = 4) : X = t === kc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, ed = t, J === null && (ad = 1, Cc(e, zi(t, e.current)));
}
function Vd() {
- var e = Do.current;
- return e === null ? !0 : (Q & 4194048) === Q ? Oo === null : (Q & 62914560) === Q || Q & 536870912 ? e === Oo : !1;
+ var e = Eo.current;
+ return e === null ? !0 : (Y & 4194048) === Y ? Do === null : (Y & 62914560) === Y || Y & 536870912 ? e === Do : !1;
}
function Hd() {
- var e = L.H;
- return L.H = fc, e === null ? fc : e;
+ var e = N.H;
+ return N.H = dc, e === null ? dc : e;
}
function Ud() {
- var e = L.A;
- return L.A = Ju, e;
+ var e = N.A;
+ return N.A = Qu, e;
}
function Wd() {
- rd = 4, $u || (Q & 4194048) !== Q && Do.current !== null || (ed = !0), !(id & 134217727) && !(ad & 134217727) || Xu === null || Id(Xu, Q, sd, !1);
+ ad = 4, td || (Y & 4194048) !== Y && Eo.current !== null || (nd = !0), !(od & 134217727) && !(sd & 134217727) || q === null || Id(q, Y, cd, !1);
}
function Gd(e, t, n) {
- var r = X;
- X |= 2;
+ var r = K;
+ K |= 2;
var i = Hd(), a = Ud();
- (Xu !== e || Q !== t) && (hd = null, zd(e, t)), t = !1;
- var o = rd;
+ (q !== e || Y !== t) && (hd = null, zd(e, t)), t = !1;
+ var o = ad;
a: do
try {
- if (Zu !== 0 && Z !== null) {
- var s = Z, c = Qu;
- switch (Zu) {
+ if (X !== 0 && J !== null) {
+ var s = J, c = ed;
+ switch (X) {
case 8:
Rd(), o = 6;
break a;
@@ -11943,85 +13541,85 @@ var Nc = /* @__PURE__ */ u(((e) => {
case 2:
case 9:
case 6:
- Do.current === null && (t = !0);
- var l = Zu;
- if (Zu = 0, Qu = null, Zd(e, s, c, l), n && ed) {
+ Eo.current === null && (t = !0);
+ var l = X;
+ if (X = 0, ed = null, Zd(e, s, c, l), n && nd) {
o = 0;
break a;
}
break;
- default: l = Zu, Zu = 0, Qu = null, Zd(e, s, c, l);
+ default: l = X, X = 0, ed = null, Zd(e, s, c, l);
}
}
- Kd(), o = rd;
+ Kd(), o = ad;
break;
} catch (t) {
Bd(e, t);
}
while (1);
- return t && e.shellSuspendCounter++, pa = fa = null, X = r, L.H = i, L.A = a, Z === null && (Xu = null, Q = 0, bi()), o;
+ return t && e.shellSuspendCounter++, pa = fa = null, K = r, N.H = i, N.A = a, J === null && (q = null, Y = 0, xi()), o;
}
function Kd() {
- for (; Z !== null;) Yd(Z);
+ for (; J !== null;) Yd(J);
}
function qd(e, t) {
- var n = X;
- X |= 2;
+ var n = K;
+ K |= 2;
var r = Hd(), a = Ud();
- Xu !== e || Q !== t ? (hd = null, md = Le() + 500, zd(e, t)) : ed = it(e, t);
+ q !== e || Y !== t ? (hd = null, Q = Ve() + 500, zd(e, t)) : nd = ct(e, t);
a: do
try {
- if (Zu !== 0 && Z !== null) {
- t = Z;
- var o = Qu;
- b: switch (Zu) {
+ if (X !== 0 && J !== null) {
+ t = J;
+ var o = ed;
+ b: switch (X) {
case 1:
- Zu = 0, Qu = null, Zd(e, t, o, 1);
+ X = 0, ed = null, Zd(e, t, o, 1);
break;
case 2:
case 9:
- if (Ya(o)) {
- Zu = 0, Qu = null, Xd(t);
+ if (Ja(o)) {
+ X = 0, ed = null, Xd(t);
break;
}
t = function() {
- Zu !== 2 && Zu !== 9 || Xu !== e || (Zu = 7), Tf(e);
+ X !== 2 && X !== 9 || q !== e || (X = 7), Tf(e);
}, o.then(t, t);
break a;
case 3:
- Zu = 7;
+ X = 7;
break a;
case 4:
- Zu = 5;
+ X = 5;
break a;
case 7:
- Ya(o) ? (Zu = 0, Qu = null, Xd(t)) : (Zu = 0, Qu = null, Zd(e, t, o, 7));
+ Ja(o) ? (X = 0, ed = null, Xd(t)) : (X = 0, ed = null, Zd(e, t, o, 7));
break;
case 5:
var s = null;
- switch (Z.tag) {
- case 26: s = Z.memoizedState;
+ switch (J.tag) {
+ case 26: s = J.memoizedState;
case 5:
case 27:
- var c = Z;
+ var c = J;
if (s ? Ym(s) : c.stateNode.complete) {
- Zu = 0, Qu = null;
+ X = 0, ed = null;
var l = c.sibling;
- if (l !== null) Z = l;
+ if (l !== null) J = l;
else {
var u = c.return;
- u === null ? Z = null : (Z = u, Qd(u));
+ u === null ? J = null : (J = u, Qd(u));
}
break b;
}
}
- Zu = 0, Qu = null, Zd(e, t, o, 5);
+ X = 0, ed = null, Zd(e, t, o, 5);
break;
case 6:
- Zu = 0, Qu = null, Zd(e, t, o, 6);
+ X = 0, ed = null, Zd(e, t, o, 6);
break;
case 8:
- Rd(), rd = 6;
+ Rd(), ad = 6;
break a;
default: throw Error(i(462));
}
@@ -12032,105 +13630,105 @@ var Nc = /* @__PURE__ */ u(((e) => {
Bd(e, t);
}
while (1);
- return pa = fa = null, L.H = r, L.A = a, X = n, Z === null ? (Xu = null, Q = 0, bi(), rd) : 0;
+ return pa = fa = null, N.H = r, N.A = a, K = n, J === null ? (q = null, Y = 0, xi(), ad) : 0;
}
function Jd() {
- for (; Z !== null && !Fe();) Yd(Z);
+ for (; J !== null && !ze();) Yd(J);
}
function Yd(e) {
- var t = dl(e.alternate, e, nd);
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : Z = t;
+ var t = ll(e.alternate, e, id);
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
}
function Xd(e) {
var t = e, n = t.alternate;
switch (t.tag) {
case 15:
case 0:
- t = Gc(n, t, t.pendingProps, t.type, void 0, Q);
+ t = Uc(n, t, t.pendingProps, t.type, void 0, Y);
break;
case 11:
- t = Gc(n, t, t.pendingProps, t.type.render, t.ref, Q);
+ t = Uc(n, t, t.pendingProps, t.type.render, t.ref, Y);
break;
case 5:
- ns(t);
+ ts(t);
var r = t;
r === $i && (U ? (oa(r), r.tag === 5 && r.stateNode != null && (ea = r.stateNode)) : (oa(r), U = !0));
- default: bl(n, t), t = Z = ji(t, nd), t = dl(n, t, nd);
+ default: vl(n, t), t = J = Mi(t, id), t = ll(n, t, id);
}
- e.memoizedProps = e.pendingProps, t === null ? Qd(e) : Z = t;
+ e.memoizedProps = e.pendingProps, t === null ? Qd(e) : J = t;
}
function Zd(e, t, n, r) {
- pa = fa = null, ns(t), to = null, no = 0;
+ pa = fa = null, ts(t), eo = null, to = 0;
var i = t.return;
try {
- if (kc(e, i, t, n, Q)) {
- rd = 1, wc(e, Ri(n, e.current)), Z = null;
+ if (Oc(e, i, t, n, Y)) {
+ ad = 1, Cc(e, zi(n, e.current)), J = null;
return;
}
} catch (t) {
- if (i !== null) throw Z = i, t;
- rd = 1, wc(e, Ri(n, e.current)), Z = null;
+ if (i !== null) throw J = i, t;
+ ad = 1, Cc(e, zi(n, e.current)), J = null;
return;
}
- t.flags & 32768 ? (U || r === 1 ? e = !0 : ed || Q & 536870912 ? e = !1 : ($u = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Do.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
+ t.flags & 32768 ? (U || r === 1 ? e = !0 : nd || Y & 536870912 ? e = !1 : (td = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Eo.current, r !== null && r.tag === 13 && (r.flags |= 16384))), $d(t, e)) : Qd(t);
}
function Qd(e) {
var t = e;
do {
if (t.flags & 32768) {
- $d(t, $u);
+ $d(t, td);
return;
}
e = t.return;
- var n = vl(t.alternate, t, nd);
+ var n = gl(t.alternate, t, id);
if (n !== null) {
- Z = n;
+ J = n;
return;
}
if (t = t.sibling, t !== null) {
- Z = t;
+ J = t;
return;
}
- Z = t = e;
+ J = t = e;
} while (t !== null);
- rd === 0 && (rd = 5);
+ ad === 0 && (ad = 5);
}
function $d(e, t) {
do {
- var n = yl(e.alternate, e);
+ var n = _l(e.alternate, e);
if (n !== null) {
- n.flags &= 32767, Z = n;
+ n.flags &= 32767, J = n;
return;
}
if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {
- Z = e;
+ J = e;
return;
}
- Z = e = n;
+ J = e = n;
} while (e !== null);
- rd = 6, Z = null;
+ ad = 6, J = null;
}
function ef(e, t, n, r, a, o, s, c, l, u, d, f) {
e.cancelPendingCommit = null;
do
lf();
while (_d !== 0);
- if (X & 6) throw Error(i(327));
+ if (K & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === Xu && (Z = Xu = null, Q = 0), yd = t, vd = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);
+ e === q && (J = q = null, Y = 0), yd = t, vd = e, bd = n, Sd = a, Cd = r, tf(e, t, n, s, c, l, f);
}
}
function tf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (xd = s, s |= yi, ut(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = Ma(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Ve, function() {
+ if (xd = s, s |= bi, mt(e, n, s, r, i, a), Td = null, (n & 335544064) === n ? (Ed = ja(e), r = 10262) : (Ed = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(Ge, function() {
return uf(), null;
})) : (e.callbackNode = null, e.callbackPriority = 0), Ll = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
- r = L.T, L.T = null, i = R.p, R.p = 2, a = X, X |= 4;
+ r = N.T, N.T = null, i = P.p, P.p = 2, a = K, K |= 4;
try {
- du(e, t, n);
+ pu(e, t, n);
} finally {
- X = a, R.p = i, L.T = r;
+ K = a, P.p = i, N.T = r;
}
}
_d = 1, Ll ? wd = Mp(o, e.containerInfo, Ed, af, of, rf, sf, uf, nf, null, null) : (af(), of(), sf());
@@ -12142,20 +13740,20 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
function rf() {
- _d === 3 && (_d = 0, Au(yd, vd), _d = 4);
+ _d === 3 && (_d = 0, Pu(yd, vd), _d = 4);
}
function af() {
if (_d === 1) {
_d = 0;
var e = vd, t = yd, n = bd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
- r = L.T, L.T = null;
- var i = R.p;
- R.p = 2;
- var a = X;
- X |= 4;
+ r = N.T, N.T = null;
+ var i = P.p;
+ P.p = 2;
+ var a = K;
+ K |= 4;
try {
- cu = lu = !1, Du(t, e, n), n = cp;
+ uu = du = !1, Au(t, e, n), n = cp;
var o = Wr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;
if (o !== s && s && s.ownerDocument && Ur(s.ownerDocument.documentElement, s)) {
if (c !== null && Gr(s)) {
@@ -12186,7 +13784,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
gh = !!sp, cp = sp = null;
} finally {
- X = a, R.p = i, L.T = r;
+ K = a, P.p = i, N.T = r;
}
}
e.current = t, _d = 2;
@@ -12197,15 +13795,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
_d = 0;
var e = vd, t = yd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
- n = L.T, L.T = null;
- var r = R.p;
- R.p = 2;
- var i = X;
- X |= 4;
+ n = N.T, N.T = null;
+ var r = P.p;
+ P.p = 2;
+ var i = K;
+ K |= 4;
try {
- pu(e, t.alternate, t);
+ hu(e, t.alternate, t);
} finally {
- X = i, R.p = r, L.T = n;
+ K = i, P.p = r, N.T = n;
}
}
_d = 3;
@@ -12215,20 +13813,20 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (_d === 4 || _d === 3) {
_d = 0;
var e = wd;
- wd = null, Ie();
+ wd = null, Be();
var t = vd, n = yd, r = bd, i = Cd, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? _d = 5 : (_d = 0, yd = vd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (gd = null), ht(r), n = n.stateNode, qe && typeof qe.onCommitFiberRoot == "function") try {
- qe.onCommitFiberRoot(Ke, n, void 0, (n.current.flags & 128) == 128);
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? _d = 5 : (_d = 0, yd = vd = null, cf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (gd = null), yt(r), n = n.stateNode, Ze && typeof Ze.onCommitFiberRoot == "function") try {
+ Ze.onCommitFiberRoot(Xe, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
- n = L.T, a = R.p, R.p = 2, L.T = null;
+ n = N.T, a = P.p, P.p = 2, N.T = null;
try {
for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {
var c = i[s];
o(c.value, { componentStack: c.stack });
}
} finally {
- L.T = n, R.p = a;
+ N.T = n, P.p = a;
}
}
if (i = Td, o = Ed, Ed = null, i !== null && (Td = null, o === null && (o = []), e !== null)) for (c = 0; c < i.length; c++) n = (0, i[c])(o), n !== void 0 && e.finished.finally(n);
@@ -12236,7 +13834,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
function cf(e, t) {
- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, ka(t)));
+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Oa(t)));
}
function lf() {
return wd !== null && (wd.skipTransition(), wd = null), af(), of(), sf(), uf();
@@ -12245,22 +13843,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (_d !== 5) return !1;
var e = vd, t = xd;
xd = 0;
- var n = ht(bd), r = L.T, a = R.p;
+ var n = yt(bd), r = N.T, a = P.p;
try {
- R.p = 32 > n ? 32 : n, L.T = null, n = Sd, Sd = null;
+ P.p = 32 > n ? 32 : n, N.T = null, n = Sd, Sd = null;
var o = vd, s = bd;
- if (_d = 0, yd = vd = null, bd = 0, X & 6) throw Error(i(331));
- var c = X;
- if (X |= 4, Gu(o.current), Lu(o, o.current, s, n), X = c, Ef(0, !1), qe && typeof qe.onPostCommitFiberRoot == "function") try {
- qe.onPostCommitFiberRoot(Ke, o);
+ if (_d = 0, yd = vd = null, bd = 0, K & 6) throw Error(i(331));
+ var c = K;
+ if (K |= 4, Yu(o.current), Vu(o, o.current, s, n), K = c, Ef(0, !1), Ze && typeof Ze.onPostCommitFiberRoot == "function") try {
+ Ze.onPostCommitFiberRoot(Xe, o);
} catch {}
return !0;
} finally {
- R.p = a, L.T = r, cf(e, t);
+ P.p = a, N.T = r, cf(e, t);
}
}
function df(e, t, n) {
- t = Ri(n, t), t = Ec(e.stateNode, t, 2), e = mo(e, t, 2), e !== null && (lt(e, 2), Tf(e));
+ t = zi(n, t), t = Tc(e.stateNode, t, 2), e = po(e, t, 2), e !== null && (pt(e, 2), Tf(e));
}
function ff(e, t, n) {
if (e.tag === 3) df(e, e, n);
@@ -12272,7 +13870,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (t.tag === 1) {
var r = t.stateNode;
if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (gd === null || !gd.has(r))) {
- e = Ri(n, e), n = Dc(2), r = mo(t, n, 2), r !== null && (Oc(n, r, t, e), lt(r, 2), Tf(r));
+ e = zi(n, e), n = Ec(2), r = po(t, n, 2), r !== null && (Dc(n, r, t, e), pt(r, 2), Tf(r));
break;
}
}
@@ -12282,18 +13880,18 @@ var Nc = /* @__PURE__ */ u(((e) => {
function pf(e, t, n) {
var r = e.pingCache;
if (r === null) {
- r = e.pingCache = new Yu();
+ r = e.pingCache = new $u();
var i = /* @__PURE__ */ new Set();
r.set(t, i);
} else i = r.get(t), i === void 0 && (i = /* @__PURE__ */ new Set(), r.set(t, i));
- i.has(n) || (td = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (rd = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
}
function mf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, Xu === e && (Q & n) === n && (rd === 4 || rd === 3 && (Q & 62914560) === Q && 300 > Le() - fd ? X & 2 ? od |= n : zd(e, 0) : od |= n, cd === Q && (cd = 0)), Tf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, q === e && (Y & n) === n && (ad === 4 || ad === 3 && (Y & 62914560) === Y && 300 > Ve() - pd ? K & 2 ? Z |= n : zd(e, 0) : Z |= n, ld === Y && (ld = 0)), Tf(e);
}
function hf(e, t) {
- t === 0 && (t = st()), e = Ci(e, t), e !== null && (lt(e, t), Tf(e));
+ t === 0 && (t = dt()), e = wi(e, t), e !== null && (pt(e, t), Tf(e));
}
function gf(e) {
var t = e.memoizedState, n = 0;
@@ -12318,7 +13916,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
r !== null && r.delete(t), hf(e, n);
}
function vf(e, t) {
- return Ne(e, t);
+ return Le(e, t);
}
var yf = null, bf = null, xf = !1, Sf = !1, Cf = !1, wf = 0;
function Tf(e) {
@@ -12335,10 +13933,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (i === 0) var a = 0;
else {
var o = r.suspendedLanes, s = r.pingedLanes;
- a = (1 << 31 - Ye(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
+ a = (1 << 31 - $e(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;
}
a !== 0 && (n = !0, jf(r, a));
- } else a = Q, a = rt(r, r === Xu ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || it(r, a) || (n = !0, jf(r, a));
+ } else a = Y, a = st(r, r === q ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || ct(r, a) || (n = !0, jf(r, a));
}
r = r.next;
}
@@ -12353,7 +13951,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
Sf = xf = !1;
var e = 0;
wf !== 0 && hp() && (e = wf);
- for (var t = Le(), n = null, r = yf; r !== null;) {
+ for (var t = Ve(), n = null, r = yf; r !== null;) {
var i = r.next, a = kf(r, t);
a === 0 ? (r.next = null, n === null ? yf = i : n.next = i, i === null && (bf = n)) : (n = r, (e !== 0 || a & 3) && (Sf = !0)), r = i;
}
@@ -12361,35 +13959,35 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function kf(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
- var o = 31 - Ye(a), s = 1 << o, c = i[o];
- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ot(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
+ var o = 31 - $e(a), s = 1 << o, c = i[o];
+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = ut(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
}
- if (t = Xu, n = Q, n = rt(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (Zu === 2 || Zu === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Pe(r), e.callbackNode = null, e.callbackPriority = 0;
- if (!(n & 3) || it(e, n)) {
+ if (t = q, n = Y, n = st(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (X === 2 || X === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Re(r), e.callbackNode = null, e.callbackPriority = 0;
+ if (!(n & 3) || ct(e, n)) {
if (t = n & -n, t === e.callbackPriority) return t;
- switch (r !== null && Pe(r), ht(n)) {
+ switch (r !== null && Re(r), yt(n)) {
case 2:
case 8:
- n = Be;
+ n = We;
break;
case 32:
- n = Ve;
+ n = Ge;
break;
case 268435456:
- n = Ue;
+ n = qe;
break;
- default: n = Ve;
+ default: n = Ge;
}
- return r = Af.bind(null, e), n = Ne(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = Af.bind(null, e), n = Le(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
- return r !== null && r !== null && Pe(r), e.callbackPriority = 2, e.callbackNode = null, 2;
+ return r !== null && r !== null && Re(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
function Af(e, t) {
if (_d !== 0 && _d !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
if (lf() && e.callbackNode !== n) return null;
- var r = Q;
- return r = rt(e, e === Xu ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Le()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
+ var r = Y;
+ return r = st(e, e === q ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Nd(e, r, t), kf(e, Ve()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
}
function jf(e, t) {
if (lf()) return null;
@@ -12397,13 +13995,13 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function Mf() {
bp(function() {
- X & 6 ? Ne(ze, Df) : Of();
+ K & 6 ? Le(Ue, Df) : Of();
});
}
function Nf() {
if (wf === 0) {
- var e = Fa;
- e === 0 && (e = $e, $e <<= 1, !($e & 261888) && ($e = 256)), wf = e;
+ var e = Pa;
+ e === 0 && (e = rt, rt <<= 1, !(rt & 261888) && (rt = 256)), wf = e;
}
return wf;
}
@@ -12412,8 +14010,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function Ff(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- var a = Pf((i[bt] || null).action), o = r.submitter;
- o && (t = (t = o[bt] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
+ var a = Pf((i[Ct] || null).action), o = r.submitter;
+ o && (t = (t = o[Ct] || null) ? Pf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new In("action", "action", null, r, i);
e.push({
event: s,
@@ -12423,14 +14021,14 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (r.defaultPrevented) {
if (wf !== 0) {
var e = new FormData(i, o);
- Qs(n, {
+ Zs(n, {
pending: !0,
data: e,
method: i.method,
action: a
}, null, e);
}
- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Qs(n, {
+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), Zs(n, {
pending: !0,
data: e,
method: i.method,
@@ -12442,16 +14040,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
});
}
}
- for (var If = 0; If < ui.length; If++) {
- var Lf = ui[If];
- di(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
+ for (var If = 0; If < di.length; If++) {
+ var Lf = di[If];
+ fi(Lf.toLowerCase(), "on" + (Lf[0].toUpperCase() + Lf.slice(1)));
}
- di(ni, "onAnimationEnd"), di(ri, "onAnimationIteration"), di(ii, "onAnimationStart"), di("dblclick", "onDoubleClick"), di("focusin", "onFocus"), di("focusout", "onBlur"), di(ai, "onTransitionRun"), di(oi, "onTransitionStart"), di(si, "onTransitionCancel"), di(ci, "onTransitionEnd"), Rt("onMouseEnter", ["mouseout", "mouseover"]), Rt("onMouseLeave", ["mouseout", "mouseover"]), Rt("onPointerEnter", ["pointerout", "pointerover"]), Rt("onPointerLeave", ["pointerout", "pointerover"]), Lt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Lt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Lt("onBeforeInput", [
+ fi(ri, "onAnimationEnd"), fi(ii, "onAnimationIteration"), fi(ai, "onAnimationStart"), fi("dblclick", "onDoubleClick"), fi("focusin", "onFocus"), fi("focusout", "onBlur"), fi(oi, "onTransitionRun"), fi(si, "onTransitionStart"), fi(ci, "onTransitionCancel"), fi(li, "onTransitionEnd"), zt("onMouseEnter", ["mouseout", "mouseover"]), zt("onMouseLeave", ["mouseout", "mouseover"]), zt("onPointerEnter", ["pointerout", "pointerover"]), zt("onPointerLeave", ["pointerout", "pointerover"]), Rt("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")), Rt("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")), Rt("onBeforeInput", [
"compositionend",
"keypress",
"textInput",
"paste"
- ]), Lt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
+ ]), Rt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Rt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
var Rf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), zf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rf));
function Bf(e, t) {
t = !!(t & 4);
@@ -12467,7 +14065,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -12477,7 +14075,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
try {
a(i);
} catch (e) {
- gi(e);
+ _i(e);
}
i.currentTarget = null, a = c;
}
@@ -12485,8 +14083,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
function $(e, t) {
- var n = t[St];
- n === void 0 && (n = t[St] = /* @__PURE__ */ new Set());
+ var n = t[Tt];
+ n === void 0 && (n = t[Tt] = /* @__PURE__ */ new Set());
var r = e + "__bubble";
n.has(r) || (Wf(t, e, 2, !1), n.add(r));
}
@@ -12497,7 +14095,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
var Hf = "_reactListening" + Math.random().toString(36).slice(2);
function Uf(e) {
if (!e[Hf]) {
- e[Hf] = !0, Ft.forEach(function(t) {
+ e[Hf] = !0, It.forEach(function(t) {
t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
@@ -12533,7 +14131,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
s = s.return;
}
for (; c !== null;) {
- if (s = kt(c), s === null) return;
+ if (s = R(c), s === null) return;
if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {
r = a = s;
continue a;
@@ -12546,7 +14144,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
Sn(function() {
var r = a, i = _n(n), s = [];
a: {
- var c = li.get(e);
+ var c = ui.get(e);
if (c !== void 0) {
var l = In, u = e;
switch (e) {
@@ -12592,12 +14190,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "touchstart":
l = rr;
break;
- case ni:
case ri:
case ii:
+ case ai:
l = Kn;
break;
- case ci:
+ case li:
l = ir;
break;
case "scroll":
@@ -12643,27 +14241,27 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
if (!(t & 7)) {
a: {
- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (kt(u) || u[xt])) break a;
- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? kt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : jt(c), h = l == null ? u : jt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, kt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Jf) : null, c !== null && Yf(s, u, c, d, !1), l !== null && f !== null && Yf(s, f, l, d, !0)));
+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== gn && (u = n.relatedTarget || n.fromElement) && (R(u) || u[wt])) break a;
+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? R(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Un, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = tr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, R(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? w(c, l, Jf) : null, c !== null && Yf(s, u, c, d, !1), l !== null && f !== null && Yf(s, f, l, d, !0)));
}
a: {
- if (c = r ? jt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Er;
- else if (br(c)) {
- if (Dr) _ = Ir;
+ if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Tr;
+ else if (yr(c)) {
+ if (Er) _ = Fr;
else {
- _ = Pr;
- var v = Nr;
+ _ = Nr;
+ var v = Mr;
}
- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && un(r.elementType) && (_ = Er) : _ = Fr;
+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && dn(r.elementType) && (_ = Tr) : _ = Pr;
if (_ &&= _(e, r)) {
- xr(s, _, n, i);
+ br(s, _, n, i);
break a;
}
v && v(e, c, r);
}
- switch (v = r ? jt(r) : window, e) {
+ switch (v = r ? Mt(r) : window, e) {
case "focusin":
- (br(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
+ (yr(v) || v.contentEditable === "true") && (qr = v, Jr = r, Yr = null);
break;
case "focusout":
Yr = Jr = qr = null;
@@ -12695,11 +14293,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
b = void 0;
}
- else gr ? mr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (dr && n.locale !== "ko" && (gr || b !== "onCompositionStart" ? b === "onCompositionEnd" && gr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, gr = !0)), v = qf(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
+ else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
+ b && (dr && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = An()) : (Dn = i, On = "value" in Dn ? Dn.value : Dn.textContent, hr = !0)), v = qf(r, b), 0 < v.length && (b = new Jn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = hr(n), y !== null && (b.data = y)))), (y = ur ? _r(e, n) : vr(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = ur ? gr(e, n) : _r(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new Jn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
}), v.data = y)), Ff(s, e, r, n, i);
@@ -12750,28 +14348,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
function ep(e, t, n, r, a, o) {
switch (n) {
case "children":
- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || on(e, r);
- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && on(e, "" + r);
+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || sn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && sn(e, "" + r);
else return;
break;
case "className":
- Wt(e, "class", r);
+ Gt(e, "class", r);
break;
case "tabIndex":
- Wt(e, "tabindex", r);
+ Gt(e, "tabindex", r);
break;
case "dir":
case "role":
case "viewBox":
case "width":
case "height":
- Wt(e, n, r);
+ Gt(e, n, r);
break;
case "style":
- ln(e, r, o);
+ un(e, r, o);
return;
case "data": if (t !== "object") {
- Wt(e, "data", r);
+ Gt(e, "data", r);
break;
}
case "src":
@@ -12887,49 +14485,49 @@ var Nc = /* @__PURE__ */ u(((e) => {
r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);
break;
case "popover":
- $("beforetoggle", e), $("toggle", e), Ut(e, "popover", r);
+ $("beforetoggle", e), $("toggle", e), Wt(e, "popover", r);
break;
case "xlinkActuate":
- Gt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
break;
case "xlinkArcrole":
- Gt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);
break;
case "xlinkRole":
- Gt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);
break;
case "xlinkShow":
- Gt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);
break;
case "xlinkTitle":
- Gt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);
break;
case "xlinkType":
- Gt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
+ Kt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);
break;
case "xmlBase":
- Gt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
+ Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);
break;
case "xmlLang":
- Gt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
+ Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);
break;
case "xmlSpace":
- Gt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
+ Kt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);
break;
case "is":
- Ut(e, "is", r);
+ Wt(e, "is", r);
break;
case "innerText":
case "textContent": return;
- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = dn.get(n) || n, Ut(e, n, r);
+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = fn.get(n) || n, Wt(e, n, r);
else return;
}
- V = !0;
+ B = !0;
}
function tp(e, t, n, r, a, o) {
switch (n) {
case "style":
- ln(e, r, o);
+ un(e, r, o);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -12941,8 +14539,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
break;
case "children":
- if (typeof r == "string") on(e, r);
- else if (typeof r == "number" || typeof r == "bigint") on(e, "" + r);
+ if (typeof r == "string") sn(e, r);
+ else if (typeof r == "number" || typeof r == "bigint") sn(e, "" + r);
else return;
break;
case "onScroll":
@@ -12961,16 +14559,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "innerText":
case "textContent": return;
default:
- if (!It.hasOwnProperty(n)) a: {
- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[bt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
+ if (!Lt.hasOwnProperty(n)) a: {
+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[Ct] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {
typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);
break a;
}
- V = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Ut(e, n, r);
+ B = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Wt(e, n, r);
}
return;
}
- V = !0;
+ B = !0;
}
function np(e, t, n) {
switch (t) {
@@ -13032,7 +14630,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: ep(e, t, r, d, n, null);
}
}
- en(e, o, c, l, u, s, a, !1);
+ tn(e, o, c, l, u, s, a, !1);
return;
case "select":
for (a in $("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
@@ -13045,7 +14643,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "multiple": r = c;
default: ep(e, t, a, c, n, null);
}
- t = o, n = s, e.multiple = !!r, t == null ? n != null && nn(e, !!r, n, !0) : nn(e, !!r, t, !1);
+ t = o, n = s, e.multiple = !!r, t == null ? n != null && rn(e, !!r, n, !0) : rn(e, !!r, t, !1);
return;
case "textarea":
for (s in $("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
@@ -13063,7 +14661,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
break;
default: ep(e, t, s, c, n, null);
}
- an(e, r, a, o);
+ on(e, r, a, o);
return;
case "option":
for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {
@@ -13110,7 +14708,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: ep(e, t, u, r, n, null);
}
return;
- default: if (un(t)) {
+ default: if (dn(t)) {
for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && tp(e, t, d, r, n, void 0));
return;
}
@@ -13143,22 +14741,22 @@ var Nc = /* @__PURE__ */ u(((e) => {
var m = r[p];
if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {
case "type":
- m !== f && (V = !0), o = m;
+ m !== f && (B = !0), o = m;
break;
case "name":
- m !== f && (V = !0), a = m;
+ m !== f && (B = !0), a = m;
break;
case "checked":
- m !== f && (V = !0), u = m;
+ m !== f && (B = !0), u = m;
break;
case "defaultChecked":
- m !== f && (V = !0), d = m;
+ m !== f && (B = !0), d = m;
break;
case "value":
- m !== f && (V = !0), s = m;
+ m !== f && (B = !0), s = m;
break;
case "defaultValue":
- m !== f && (V = !0), c = m;
+ m !== f && (B = !0), c = m;
break;
case "children":
case "dangerouslySetInnerHTML":
@@ -13167,7 +14765,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: m !== f && ep(e, t, p, m, r, f);
}
}
- $t(e, s, c, l, u, d, o, a);
+ en(e, s, c, l, u, d, o, a);
return;
case "select":
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
@@ -13177,15 +14775,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
- o !== l && (V = !0), p = o;
+ o !== l && (B = !0), p = o;
break;
case "defaultValue":
- o !== l && (V = !0), c = o;
+ o !== l && (B = !0), c = o;
break;
- case "multiple": o !== l && (V = !0), s = o;
+ case "multiple": o !== l && (B = !0), s = o;
default: o !== l && ep(e, t, a, o, r, l);
}
- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? nn(e, !!n, n ? [] : "", !1) : nn(e, !!n, t, !0)) : nn(e, !!n, p, !1);
+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? rn(e, !!n, n ? [] : "", !1) : rn(e, !!n, t, !0)) : rn(e, !!n, p, !1);
return;
case "textarea":
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
@@ -13195,10 +14793,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
- a !== o && (V = !0), p = a;
+ a !== o && (B = !0), p = a;
break;
case "defaultValue":
- a !== o && (V = !0), m = a;
+ a !== o && (B = !0), m = a;
break;
case "children": break;
case "dangerouslySetInnerHTML":
@@ -13206,7 +14804,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
break;
default: a !== o && ep(e, t, s, a, r, o);
}
- rn(e, p, m);
+ an(e, p, m);
return;
case "option":
for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {
@@ -13217,7 +14815,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
for (l in r) if (p = r[l], m = n[l], r.hasOwnProperty(l) && p !== m && (p != null || m != null)) switch (l) {
case "selected":
- p !== m && (V = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
+ p !== m && (B = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
default: ep(e, t, l, p, r, m);
}
@@ -13246,7 +14844,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
default: ep(e, t, u, p, r, m);
}
return;
- default: if (un(t)) {
+ default: if (dn(t)) {
for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && tp(e, t, _, void 0, r, p);
for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || tp(e, t, d, p, r, m);
return;
@@ -13305,7 +14903,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
return e === 1 && t === "foreignObject" ? 0 : e;
}
function fp(e, t, n, r) {
- return n = lp(n).createElement(e), n[yt] = r, n[bt] = t, np(n, e, t), Nt(n), n;
+ return n = lp(n).createElement(e), n[St] = r, n[Ct] = t, np(n, e, t), Pt(n), n;
}
function pp(e, t) {
return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;
@@ -13343,7 +14941,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
n = e.ownerDocument.head, _m(n);
for (var a = n.firstChild; a;) {
var o = a.nextSibling, s = a.nodeName;
- a[Et] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
+ a[kt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;
}
} else n === "body" && _m(e.ownerDocument.body);
}
@@ -13522,7 +15120,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
};
function Ip(e, t, n, r) {
- return _(e).addEventListener(t, n, r), !1;
+ return v(e).addEventListener(t, n, r), !1;
}
Fp.prototype.removeEventListener = function(e, t, n) {
var r = this._eventListeners;
@@ -13534,7 +15132,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
};
function Lp(e, t, n, r) {
- return _(e).removeEventListener(t, n, r), !1;
+ return v(e).removeEventListener(t, n, r), !1;
}
function Rp(e) {
return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {
@@ -13557,7 +15155,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
Fp.prototype.dispatchEvent = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return !0;
- t = _(t);
+ t = v(t);
var n = this._eventListeners;
if (n !== null && 0 < n.length || !e.bubbles) {
var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");
@@ -13573,7 +15171,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
f(this._fragmentFiber.child, !0, Vp, e, void 0, void 0);
};
function Vp(e, t) {
- return e.tag !== 6 && (e = _(e), pm(e, t));
+ return e.tag !== 6 && (e = v(e), pm(e, t));
}
Fp.prototype.focusLast = function(e) {
var t = [];
@@ -13585,16 +15183,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
Fp.prototype.blur = function() {
var e = p(this._fragmentFiber);
- e !== null && (e = _(e), e = lp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Up, e, void 0, void 0));
+ e !== null && (e = v(e), e = lp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, Up, e, void 0, void 0));
};
function Up(e, t) {
- return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
+ return e.tag !== 6 && (e = v(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);
}
Fp.prototype.observeUsing = function(e) {
this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, Wp, e, void 0, void 0);
};
function Wp(e, t) {
- return e.tag !== 6 && (e = _(e), t.observe(e), !1);
+ return e.tag !== 6 && (e = v(e), t.observe(e), !1);
}
Fp.prototype.unobserveUsing = function(e) {
var t = this._observers;
@@ -13608,7 +15206,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
};
function Gp(e, t) {
- return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);
+ return e.tag !== 6 && (e = v(e), t.unobserve(e), !1);
}
var Kp = [], qp = !1;
function Jp(e, t, n) {
@@ -13635,20 +15233,20 @@ var Nc = /* @__PURE__ */ u(((e) => {
e = e.stateNode;
var n = e.ownerDocument.createRange();
n.selectNodeContents(e), t.push.apply(t, n.getClientRects());
- } else e = _(e), t.push.apply(t, e.getClientRects());
+ } else e = v(e), t.push.apply(t, e.getClientRects());
return !1;
}
Fp.prototype.getRootNode = function(e) {
var t = p(this._fragmentFiber);
- return t === null ? this : _(t).getRootNode(e);
+ return t === null ? this : v(t).getRootNode(e);
}, Fp.prototype.compareDocumentPosition = function(e) {
var t = p(this._fragmentFiber);
if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;
var n = [];
f(this._fragmentFiber.child, !1, Hp, n, void 0, void 0);
- var r = _(t);
+ var r = v(t);
if (n.length === 0) {
- if (n = r, m(this._fragmentFiber)) {
+ if (n = r, h(this._fragmentFiber)) {
a: {
for (t = this._fragmentFiber.return; t !== null;) {
if (t.tag === 4) {
@@ -13664,17 +15262,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
t = this._fragmentFiber;
var i = r = n.compareDocumentPosition(e);
- return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = _(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
+ return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = g(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = v(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
- t = _(n[0]), i = _(n[n.length - 1]);
- var a = m(this._fragmentFiber) ? t.parentElement : r;
+ t = v(n[0]), i = v(n[n.length - 1]);
+ var a = h(this._fragmentFiber) ? t.parentElement : r;
if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;
r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;
var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;
return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || Xp(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
};
function Xp(e, t, n, r, i) {
- var a = kt(i);
+ var a = R(i);
if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {
if (n = !!a) a: {
for (; a !== null;) {
@@ -13702,7 +15300,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return a;
}
- return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;
+ return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = w(n, a, C), t === null ? t = !1 : (f(t, !0, x, a, n), a = y, y = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = w(r, a, C), t === null ? t = !1 : (f(t, !0, S, a, r), a = y, b = y = null, t = a !== null)), t) : !1;
}
function Zp(e, t) {
var n = e.ownerDocument.createRange();
@@ -13714,13 +15312,13 @@ var Nc = /* @__PURE__ */ u(((e) => {
f(this._fragmentFiber.child, !1, Hp, t, void 0, void 0);
var n = !1 !== e;
if (t.length === 0) {
- var r = h(this._fragmentFiber);
+ var r = g(this._fragmentFiber);
if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;
if (r.tag === 6) {
- e = _(r), Zp(e, n);
+ e = v(r), Zp(e, n);
return;
}
- if (r = _(r), r.nodeType !== 9) {
+ if (r = v(r), r.nodeType !== 9) {
if (r.nodeType === 11) {
n = "host" in r ? r.host : null, n !== null && n.scrollIntoView(e);
return;
@@ -13730,11 +15328,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {
var a = t[r];
- a.tag === 6 ? (a = _(a), Zp(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;
+ a.tag === 6 ? (a = v(a), Zp(a, n)) : v(a).scrollIntoView(e), r += n ? -1 : 1;
}
};
function Qp(e, t) {
- return e = _(e), $p(e, t), !1;
+ return e = v(e), $p(e, t), !1;
}
function $p(e, t) {
e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);
@@ -13771,7 +15369,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "HTML":
case "HEAD":
case "BODY":
- nm(n), Ot(n);
+ nm(n), At(n);
continue;
case "SCRIPT":
case "STYLE": continue;
@@ -13790,7 +15388,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
var a = i.name == null ? null : "" + i.name;
if (i.type === "hidden" && e.getAttribute("name") === a) return e;
} else return e;
- } else if (!e[Et]) switch (t) {
+ } else if (!e[kt]) switch (t) {
case "meta":
if (!e.hasAttribute("itemprop")) break;
return e;
@@ -13914,11 +15512,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
var i = n[r];
n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);
}
- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), Ot(e);
+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === hn && (e.onclick = null), At(e);
}
function _m(e) {
for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);
- Ot(e);
+ At(e);
}
var vm = /* @__PURE__ */ new Map(), ym = /* @__PURE__ */ new Set();
function bm(e) {
@@ -13928,8 +15526,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return e.nodeType === 9 ? e : e.ownerDocument;
}
- var xm = R.d;
- R.d = {
+ var xm = P.d;
+ P.d = {
f: Sm,
r: Cm,
D: Em,
@@ -13945,19 +15543,19 @@ var Nc = /* @__PURE__ */ u(((e) => {
return e || t;
}
function Cm(e) {
- var t = At(e);
- t !== null && t.tag === 5 && t.type === "form" ? ec(t) : xm.r(e);
+ var t = jt(e);
+ t !== null && t.tag === 5 && t.type === "form" ? $s(t) : xm.r(e);
}
var wm = typeof document > "u" ? null : document;
function Tm(e, t, n) {
var r = wm;
if (r && typeof t == "string" && t) {
- var i = Qt(t);
+ var i = $t(t);
i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), ym.has(i) || (ym.add(i), e = {
rel: e,
crossOrigin: n,
href: t
- }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), Nt(t), r.head.appendChild(t)));
+ }, r.querySelector(i) === null && (t = r.createElement("link"), np(t, "link", e), Pt(t), r.head.appendChild(t)));
}
}
function Em(e) {
@@ -13970,8 +15568,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
xm.L(e, t, n);
var r = wm;
if (r && e && t) {
- var i = "link[rel=\"preload\"][as=\"" + Qt(t) + "\"]";
- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + Qt(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + Qt(n.imageSizes) + "\"]")) : i += "[href=\"" + Qt(e) + "\"]";
+ var i = "link[rel=\"preload\"][as=\"" + $t(t) + "\"]";
+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + $t(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + $t(n.imageSizes) + "\"]")) : i += "[href=\"" + $t(e) + "\"]";
var a = i;
switch (t) {
case "style":
@@ -13985,9 +15583,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
as: t
}, n), vm.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Fm(a)) || t === "script" && r.querySelector(zm(a))))) {
var o = r.createElement("link");
- np(o, "link", e), t === "style" && (o[Dt] = !0, o.onload = o.onerror = function() {
- Pt(o);
- }), Nt(o), r.head.appendChild(o);
+ np(o, "link", e), t === "style" && (o[L] = !0, o.onload = o.onerror = function() {
+ Ft(o);
+ }), Pt(o), r.head.appendChild(o);
}
}
}
@@ -13995,7 +15593,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
xm.m(e, t);
var n = wm;
if (n && e) {
- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + Qt(r) + "\"][href=\"" + Qt(e) + "\"]", a = i;
+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + $t(r) + "\"][href=\"" + $t(e) + "\"]", a = i;
switch (r) {
case "audioworklet":
case "paintworklet":
@@ -14016,7 +15614,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "worker":
case "script": if (n.querySelector(zm(a))) return;
}
- r = n.createElement("link"), np(r, "link", e), Nt(r), n.head.appendChild(r);
+ r = n.createElement("link"), np(r, "link", e), Pt(r), n.head.appendChild(r);
}
}
}
@@ -14024,7 +15622,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
xm.S(e, t, n);
var r = wm;
if (r && e) {
- var i = Mt(r).hoistableStyles, a = Pm(e);
+ var i = Nt(r).hoistableStyles, a = Pm(e);
t ||= "default";
var o = i.get(a);
if (!o) {
@@ -14040,7 +15638,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
"data-precedence": t
}, n), (n = vm.get(a)) && Hm(e, n);
var c = o = r.createElement("link");
- Nt(c), np(c, "link", e), c._p = new Promise(function(e, t) {
+ Pt(c), np(c, "link", e), c._p = new Promise(function(e, t) {
c.onload = e, c.onerror = t;
}), c.addEventListener("load", function() {
s.loading |= 1;
@@ -14061,11 +15659,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
xm.X(e, t);
var n = wm;
if (n && e) {
- var r = Mt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Nt(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = T({
src: e,
async: !0
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Nt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Pt(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -14077,12 +15675,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
xm.M(e, t);
var n = wm;
if (n && e) {
- var r = Mt(n).hoistableScripts, i = Rm(e), a = r.get(i);
+ var r = Nt(n).hoistableScripts, i = Rm(e), a = r.get(i);
a || (a = n.querySelector(zm(i)), a || (e = T({
src: e,
async: !0,
type: "module"
- }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Nt(a), np(a, "link", e), n.head.appendChild(a)), a = {
+ }, t), (t = vm.get(i)) && Um(e, t), a = n.createElement("script"), Pt(a), np(a, "link", e), n.head.appendChild(a)), a = {
type: "script",
instance: a,
count: 1,
@@ -14091,12 +15689,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
function Nm(e, t, n, r) {
- var a = (a = ye.current) ? bm(a) : null;
+ var a = (a = Ce.current) ? bm(a) : null;
if (!a) throw Error(i(446));
switch (e) {
case "meta":
case "title": return null;
- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Mt(a).hoistableStyles, r = t.get(n), r || (r = {
+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Pm(n.href), t = Nt(a).hoistableStyles, r = t.get(n), r || (r = {
type: "style",
instance: null,
count: 0,
@@ -14110,7 +15708,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "link":
if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {
e = Pm(n.href);
- var o = Mt(a).hoistableStyles, s = o.get(e);
+ var o = Nt(a).hoistableStyles, s = o.get(e);
if (s || (a = a.ownerDocument || a, s = {
type: "stylesheet",
instance: null,
@@ -14133,7 +15731,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
if (t && r !== null) throw Error(i(529, ""));
return null;
- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Rm(n), t = Mt(a).hoistableScripts, r = t.get(n), r || (r = {
+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Rm(n), t = Nt(a).hoistableScripts, r = t.get(n), r || (r = {
type: "script",
instance: null,
count: 0,
@@ -14148,7 +15746,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
function Pm(e) {
- return "href=\"" + Qt(e) + "\"";
+ return "href=\"" + $t(e) + "\"";
}
function Fm(e) {
return "link[rel=\"stylesheet\"][" + e + "]";
@@ -14161,11 +15759,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function Lm(e, t, n, r) {
if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {
- if (!0 !== t[Dt]) {
+ if (!0 !== t[L]) {
r.loading = 1;
return;
}
- } else t = e.createElement("link"), t[Dt] = !0, t.onload = t.onerror = Pt.bind(null, t), np(t, "link", n), Nt(t), e.head.appendChild(t);
+ } else t = e.createElement("link"), t[L] = !0, t.onload = t.onerror = Ft.bind(null, t), np(t, "link", n), Pt(t), e.head.appendChild(t);
r.preload = t, t.addEventListener("load", function() {
return r.loading |= 1;
}), t.addEventListener("error", function() {
@@ -14173,7 +15771,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
});
}
function Rm(e) {
- return "[src=\"" + Qt(e) + "\"]";
+ return "[src=\"" + $t(e) + "\"]";
}
function zm(e) {
return "script[async]" + e;
@@ -14181,25 +15779,25 @@ var Nc = /* @__PURE__ */ u(((e) => {
function Bm(e, t, n) {
if (t.count++, t.instance === null) switch (t.type) {
case "style":
- var r = e.querySelector("style[data-href~=\"" + Qt(n.href) + "\"]");
- if (r) return t.instance = r, Nt(r), r;
+ var r = e.querySelector("style[data-href~=\"" + $t(n.href) + "\"]");
+ if (r) return t.instance = r, Pt(r), r;
var a = T({}, n, {
"data-href": n.href,
"data-precedence": n.precedence,
href: null,
precedence: null
});
- return r = (e.ownerDocument || e).createElement("style"), Nt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
+ return r = (e.ownerDocument || e).createElement("style"), Pt(r), np(r, "style", a), Vm(r, n.precedence, e), t.instance = r;
case "stylesheet":
a = Pm(n.href);
var o = e.querySelector(Fm(a));
- if (o) return t.state.loading |= 4, t.instance = o, Nt(o), o;
- r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Nt(o);
+ if (o) return t.state.loading |= 4, t.instance = o, Pt(o), o;
+ r = Im(n), (a = vm.get(a)) && Hm(r, a), o = (e.ownerDocument || e).createElement("link"), Pt(o);
var s = o;
return s._p = new Promise(function(e, t) {
s.onload = e, s.onerror = t;
}), np(o, "link", r), t.state.loading |= 4, Vm(o, n.precedence, e), t.instance = o;
- case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, Nt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
+ case "script": return o = Rm(n.src), (a = e.querySelector(zm(o))) ? (t.instance = a, Pt(a), a) : (r = n, (a = vm.get(o)) && (r = T({}, n), Um(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Pt(a), np(a, "link", r), e.head.appendChild(a), t.instance = a);
case "void": return null;
default: throw Error(i(443, t.type));
}
@@ -14229,7 +15827,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (r.has(e)) return r;
for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {
var a = n[i];
- if (!(a[Et] || a[yt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
+ if (!(a[kt] || a[St] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {
var o = a.getAttribute(t) || "";
o = e + o;
var s = r.get(o);
@@ -14276,10 +15874,10 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (n.instance === null) {
var i = Pm(r.href), a = t.querySelector(Fm(i));
if (a) {
- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Nt(a);
+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = nh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Pt(a);
return;
}
- a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Nt(a);
+ a = t.ownerDocument || t, r = Im(r), (i = vm.get(i)) && Hm(r, i), a = a.createElement("link"), Pt(a);
var o = a;
o._p = new Promise(function(e, t) {
o.onload = e, o.onerror = t;
@@ -14344,28 +15942,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
}
var sh = {
- $$typeof: M,
+ $$typeof: te,
Provider: null,
Consumer: null,
- _currentValue: fe,
- _currentValue2: fe,
+ _currentValue: ge,
+ _currentValue2: ge,
_threadCount: 0
};
function ch(e, t, n, r, i, a, o, s, c) {
- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ct(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ct(0), this.hiddenUpdates = ct(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = ft(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = ft(0), this.hiddenUpdates = ft(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();
}
function lh(e, t, n, r, i, a, o, s, c, l, u, d) {
- return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Oi(3, null, null, t), e.current = a, a.stateNode = e, t = Oa(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
+ return e = new ch(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = ki(3, null, null, t), e.current = a, a.stateNode = e, t = Da(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {
element: r,
isDehydrated: n,
cache: t
- }, uo(a), e;
+ }, lo(a), e;
}
function uh(e) {
- return e ? (e = Ei, e) : Ei;
+ return e ? (e = Di, e) : Di;
}
function dh(e, t, n, r, i, a) {
- i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = po(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = mo(e, r, t), n !== null && (Md(n, e, t), ho(n, e, t));
+ i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = fo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = po(e, r, t), n !== null && (Md(n, e, t), mo(n, e, t));
}
function fh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -14378,37 +15976,37 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
function mh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = Ci(e, 67108864);
+ var t = wi(e, 67108864);
t !== null && Md(t, e, 67108864), ph(e, 67108864);
}
}
function hh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = kd();
- t = mt(t);
- var n = Ci(e, t);
+ t = vt(t);
+ var n = wi(e, t);
n !== null && Md(n, e, t), ph(e, t);
}
}
var gh = !0;
function _h(e, t, n, r) {
- var i = L.T;
- L.T = null;
- var a = R.p;
+ var i = N.T;
+ N.T = null;
+ var a = P.p;
try {
- R.p = 2, yh(e, t, n, r);
+ P.p = 2, yh(e, t, n, r);
} finally {
- R.p = a, L.T = i;
+ P.p = a, N.T = i;
}
}
function vh(e, t, n, r) {
- var i = L.T;
- L.T = null;
- var a = R.p;
+ var i = N.T;
+ N.T = null;
+ var a = P.p;
try {
- R.p = 8, yh(e, t, n, r);
+ P.p = 8, yh(e, t, n, r);
} finally {
- R.p = a, L.T = i;
+ P.p = a, N.T = i;
}
}
function yh(e, t, n, r) {
@@ -14418,23 +16016,23 @@ var Nc = /* @__PURE__ */ u(((e) => {
else if (Ph(i, e, t, n, r)) r.stopPropagation();
else if (Mh(e, r), t & 4 && -1 < jh.indexOf(e)) {
for (; i !== null;) {
- var a = At(i);
+ var a = jt(i);
if (a !== null) switch (a.tag) {
case 3:
if (a = a.stateNode, a.current.memoizedState.isDehydrated) {
- var o = nt(a.pendingLanes);
+ var o = ot(a.pendingLanes);
if (o !== 0) {
var s = a;
for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {
- var c = 1 << 31 - Ye(o);
+ var c = 1 << 31 - $e(o);
s.entanglements[1] |= c, o &= ~c;
}
- Tf(a), !(X & 6) && (md = Le() + 500, Ef(0, !1));
+ Tf(a), !(K & 6) && (Q = Ve() + 500, Ef(0, !1));
}
}
break;
case 31:
- case 13: s = Ci(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
+ case 13: s = wi(a, 2), s !== null && Md(s, a, 2), Ld(), ph(a, 2);
}
if (a = bh(r), a === null && Gf(e, t, r, xh, n), a === i) break;
i = a;
@@ -14448,7 +16046,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
var xh = null;
function Sh(e) {
- if (xh = null, e = kt(e), e !== null) {
+ if (xh = null, e = R(e), e !== null) {
var t = o(e);
if (t === null) e = null;
else {
@@ -14541,12 +16139,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
case "mouseleave":
case "pointerenter":
case "pointerleave": return 8;
- case "message": switch (Re()) {
- case ze: return 2;
- case Be: return 8;
- case Ve:
- case He: return 32;
- case Ue: return 268435456;
+ case "message": switch (He()) {
+ case Ue: return 2;
+ case We: return 8;
+ case Ge:
+ case Ke: return 32;
+ case qe: return 268435456;
default: return 32;
}
default: return 32;
@@ -14582,7 +16180,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
eventSystemFlags: r,
nativeEvent: a,
targetContainers: [i]
- }, t !== null && (t = At(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
+ }, t !== null && (t = jt(t), t !== null && mh(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);
}
function Ph(e, t, n, r, i) {
switch (t) {
@@ -14597,20 +16195,20 @@ var Nc = /* @__PURE__ */ u(((e) => {
return !1;
}
function Fh(e) {
- var t = kt(e.target);
+ var t = R(e.target);
if (t !== null) {
var n = o(t);
if (n !== null) {
if (t = n.tag, t === 13) {
if (t = s(n), t !== null) {
- e.blockedOn = t, _t(e.priority, function() {
+ e.blockedOn = t, I(e.priority, function() {
hh(n);
});
return;
}
} else if (t === 31) {
if (t = c(n), t !== null) {
- e.blockedOn = t, _t(e.priority, function() {
+ e.blockedOn = t, I(e.priority, function() {
hh(n);
});
return;
@@ -14631,7 +16229,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
n = e.nativeEvent;
var r = new n.constructor(n.type, n);
gn = r, n.target.dispatchEvent(r), gn = null;
- } else return t = At(n), t !== null && mh(t), e.blockedOn = n, !1;
+ } else return t = jt(n), t !== null && mh(t), e.blockedOn = n, !1;
t.shift();
}
return !0;
@@ -14655,8 +16253,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (Sh(r || n) === null) continue;
break;
}
- var a = At(n);
- a !== null && (e.splice(t, 3), t -= 3, Qs(a, {
+ var a = jt(n);
+ a !== null && (e.splice(t, 3), t -= 3, Zs(a, {
pending: !0,
data: i,
method: n.method,
@@ -14676,12 +16274,12 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
for (; 0 < Ah.length && (n = Ah[0], n.blockedOn === null);) Fh(n), n.blockedOn === null && Ah.shift();
if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {
- var i = n[r], a = n[r + 1], o = i[bt] || null;
+ var i = n[r], a = n[r + 1], o = i[Ct] || null;
if (typeof a == "function") o || Vh(n);
else if (o) {
var s = null;
if (a && a.hasAttribute("formAction")) {
- if (i = a, o = a[bt] || null) s = o.formAction;
+ if (i = a, o = a[Ct] || null) s = o.formAction;
else if (Sh(i) !== null) continue;
} else s = o.action;
typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Vh(n);
@@ -14733,7 +16331,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- dh(e.current, 2, null, e, null, null), Ld(), t[xt] = null;
+ dh(e.current, 2, null, e, null, null), Ld(), t[wt] = null;
}
};
function Gh(e) {
@@ -14741,7 +16339,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
Gh.prototype.unstable_scheduleHydration = function(e) {
if (e) {
- var t = gt();
+ var t = bt();
e = {
blockedOn: null,
target: e,
@@ -14753,7 +16351,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
};
var Kh = n.version;
if (Kh !== "19.3.0") throw Error(i(527, Kh, "19.3.0"));
- R.findDOMNode = function(e) {
+ P.findDOMNode = function(e) {
var t = e._reactInternals;
if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));
return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;
@@ -14762,21 +16360,21 @@ var Nc = /* @__PURE__ */ u(((e) => {
bundleType: 0,
version: "19.3.0",
rendererPackageName: "react-dom",
- currentDispatcherRef: L,
+ currentDispatcherRef: N,
reconcilerVersion: "19.3.0"
};
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
var Jh = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!Jh.isDisabled && Jh.supportsFiber) try {
- Ke = Jh.inject(qh), qe = Jh;
+ Xe = Jh.inject(qh), Ze = Jh;
} catch {}
}
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
- var n = !1, r = "", o = xc, s = Sc, c = Cc;
- 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 = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[xt] = t.current, Uf(e), new Wh(t);
+ var n = !1, r = "", o = bc, s = xc, c = Sc;
+ 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 = lh(e, 1, !1, null, null, n, r, null, o, s, c, Uh), e[wt] = t.current, Uf(e), new Wh(t);
};
-})), Ic = (/* @__PURE__ */ u(((e, t) => {
+})), ou = (/* @__PURE__ */ u(((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);
@@ -14784,101 +16382,141 @@ var Nc = /* @__PURE__ */ u(((e) => {
console.error(e);
}
}
- n(), t.exports = Fc();
-})))(), Lc = (e, t) => {
+ n(), t.exports = au();
+})))(), su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), uu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => _.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, _.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" })), fu = (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;
-}, Rc = (e, t) => ({
+}, pu = (e, t) => ({
classGroupId: e,
validator: t
-}), zc = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), mu = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), Bc = "-", Vc = [], Hc = "arbitrary..", Uc = (e) => {
- let t = Kc(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), hu = "-", gu = [], _u = "arbitrary..", vu = (e) => {
+ let t = xu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Gc(e);
- let n = e.split(Bc);
- return Wc(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return bu(e);
+ let n = e.split(hu);
+ return yu(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Lc(i, t) : t : i || Vc;
+ return t ? i ? fu(i, t) : t : i || gu;
}
- return n[e] || Vc;
+ return n[e] || gu;
}
};
-}, Wc = (e, t, n) => {
+}, yu = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = Wc(e, t + 1, i);
+ let n = yu(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(Bc) : e.slice(t).join(Bc), s = a.length;
+ let o = t === 0 ? e.join(hu) : e.slice(t).join(hu), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Gc = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, bu = (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 ? Hc + r : void 0;
-})(), Kc = (e) => {
+ return r ? _u + r : void 0;
+})(), xu = (e) => {
let { theme: t, classGroups: n } = e;
- return qc(n, t);
-}, qc = (e, t) => {
- let n = zc();
+ return Su(n, t);
+}, Su = (e, t) => {
+ let n = mu();
for (let r in e) {
let i = e[r];
- Jc(i, n, r, t);
+ Cu(i, n, r, t);
}
return n;
-}, Jc = (e, t, n, r) => {
+}, Cu = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Yc(i, t, n, r);
+ wu(i, t, n, r);
}
-}, Yc = (e, t, n, r) => {
+}, wu = (e, t, n, r) => {
if (typeof e == "string") {
- Xc(e, t, n);
+ Tu(e, t, n);
return;
}
if (typeof e == "function") {
- Zc(e, t, n, r);
+ Eu(e, t, n, r);
return;
}
- Qc(e, t, n, r);
-}, Xc = (e, t, n) => {
- let r = e === "" ? t : $c(t, e);
+ Du(e, t, n, r);
+}, Tu = (e, t, n) => {
+ let r = e === "" ? t : Ou(t, e);
r.classGroupId = n;
-}, Zc = (e, t, n, r) => {
- if (el(e)) {
- Jc(e(r), t, n, r);
+}, Eu = (e, t, n, r) => {
+ if (ku(e)) {
+ Cu(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(Rc(n, e));
-}, Qc = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(pu(n, e));
+}, Du = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- Jc(o, $c(t, a), n, r);
+ Cu(o, Ou(t, a), n, r);
}
-}, $c = (e, t) => {
- let n = e, r = t.split(Bc), i = r.length;
+}, Ou = (e, t) => {
+ let n = e, r = t.split(hu), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = zc(), n.nextPart.set(t, i)), n = i;
+ i || (i = mu(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, el = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, tl = (e) => {
+}, ku = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Au = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -14896,19 +16534,19 @@ var Nc = /* @__PURE__ */ u(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, nl = "!", rl = ":", il = [], al = (e, t, n, r, i) => ({
+}, ju = "!", Mu = ":", Nu = [], Pu = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), ol = (e) => {
+}), Fu = (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 === rl) {
+ if (o === Mu) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -14920,13 +16558,13 @@ var Nc = /* @__PURE__ */ u(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(nl) ? (c = s.slice(0, -1), l = !0) : s.startsWith(nl) && (c = s.slice(1), l = !0);
+ s.endsWith(ju) ? (c = s.slice(0, -1), l = !0) : s.startsWith(ju) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return al(t, l, c, u);
+ return Pu(t, l, c, u);
};
if (t) {
- let e = t + rl, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : al(il, !1, t, void 0, !0);
+ let e = t + Mu, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Pu(Nu, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -14936,7 +16574,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
});
}
return r;
-}, sl = (e) => {
+}, Iu = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -14948,18 +16586,18 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, cl = (e) => ({
- cache: tl(e.cacheSize),
- parseClassName: ol(e),
- sortModifiers: sl(e),
- postfixLookupClassGroupIds: ll(e),
- ...Uc(e)
-}), ll = (e) => {
+}, Lu = (e) => ({
+ cache: Au(e.cacheSize),
+ parseClassName: Fu(e),
+ sortModifiers: Iu(e),
+ postfixLookupClassGroupIds: Ru(e),
+ ...vu(e)
+}), Ru = (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;
-}, ul = /\s+/, dl = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ul), l = "";
+}, zu = /\s+/, Bu = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(zu), 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) {
@@ -14983,7 +16621,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + nl : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + ju : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -14994,34 +16632,34 @@ var Nc = /* @__PURE__ */ u(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, fl = (...e) => {
+}, Vu = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = pl(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = Hu(n)) && (i && (i += " "), i += r);
return i;
-}, pl = (e) => {
+}, Hu = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = pl(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = Hu(e[r])) && (n && (n += " "), n += t);
return n;
-}, ml = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = cl(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, Uu = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = Lu(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 = dl(e, n);
+ let a = Bu(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(fl(...e));
-}, hl = [], gl = (e) => {
- let t = (t) => t[e] || hl;
+ return a = o, (...e) => a(Vu(...e));
+}, Wu = [], Gu = (e) => {
+ let t = (t) => t[e] || Wu;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, _l = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, vl = /^\((?:(\w[\w-]*):)?(.+)\)$/i, yl = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, bl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xl = /\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$/, Sl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Cl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wl = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Tl = (e) => yl.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), El = (e) => !!e && Number.isInteger(Number(e)), Dl = (e) => e.endsWith("%") && G(e.slice(0, -1)), Ol = (e) => bl.test(e), kl = () => !0, Al = (e) => xl.test(e) && !Sl.test(e), jl = () => !1, Ml = (e) => Cl.test(e), Nl = (e) => wl.test(e), Pl = (e) => !K(e) && !q(e), Fl = (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)), Il = (e) => Zl(e, tu, jl), K = (e) => _l.test(e), Ll = (e) => Zl(e, nu, Al), Rl = (e) => Zl(e, ru, G), zl = (e) => Zl(e, au, kl), Bl = (e) => Zl(e, iu, jl), Vl = (e) => Zl(e, $l, jl), Hl = (e) => Zl(e, eu, Nl), Ul = (e) => Zl(e, ou, Ml), q = (e) => vl.test(e), Wl = (e) => Ql(e, nu), Gl = (e) => Ql(e, iu), Kl = (e) => Ql(e, $l), ql = (e) => Ql(e, tu), Jl = (e) => Ql(e, eu), Yl = (e) => Ql(e, ou, !0), Xl = (e) => Ql(e, au, !0), Zl = (e, t, n) => {
- let r = _l.exec(e);
+}, Ku = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, qu = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ju = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xu = /\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$/, Zu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Qu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, $u = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Ju.test(e), q = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), Y = (e) => e.endsWith("%") && q(e.slice(0, -1)), X = (e) => Yu.test(e), ed = () => !0, td = (e) => Xu.test(e) && !Zu.test(e), nd = () => !1, rd = (e) => Qu.test(e), id = (e) => $u.test(e), ad = (e) => !Z(e) && !Q(e), od = (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)), sd = (e) => Sd(e, Ed, nd), Z = (e) => Ku.test(e), cd = (e) => Sd(e, Dd, td), ld = (e) => Sd(e, Od, q), ud = (e) => Sd(e, Ad, ed), dd = (e) => Sd(e, kd, nd), fd = (e) => Sd(e, wd, nd), pd = (e) => Sd(e, Td, id), md = (e) => Sd(e, jd, rd), Q = (e) => qu.test(e), hd = (e) => Cd(e, Dd), gd = (e) => Cd(e, kd), _d = (e) => Cd(e, wd), vd = (e) => Cd(e, Ed), yd = (e) => Cd(e, Td), bd = (e) => Cd(e, jd, !0), xd = (e) => Cd(e, Ad, !0), Sd = (e, t, n) => {
+ let r = Ku.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Ql = (e, t, n = !1) => {
- let r = vl.exec(e);
+}, Cd = (e, t, n = !1) => {
+ let r = qu.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, $l = (e) => e === "position" || e === "percentage", eu = (e) => e === "image" || e === "url", tu = (e) => e === "length" || e === "size" || e === "bg-size", nu = (e) => e === "length", ru = (e) => e === "number", iu = (e) => e === "family-name", au = (e) => e === "number" || e === "weight", ou = (e) => e === "shadow", su = () => {
- let e = gl("color"), t = gl("font"), n = gl("text"), r = gl("font-weight"), i = gl("tracking"), a = gl("leading"), o = gl("breakpoint"), s = gl("container"), c = gl("spacing"), l = gl("radius"), u = gl("shadow"), d = gl("inset-shadow"), f = gl("text-shadow"), p = gl("drop-shadow"), m = gl("blur"), h = gl("perspective"), g = gl("aspect"), _ = gl("ease"), v = gl("animate"), y = () => [
+}, wd = (e) => e === "position" || e === "percentage", Td = (e) => e === "image" || e === "url", Ed = (e) => e === "length" || e === "size" || e === "bg-size", Dd = (e) => e === "length", Od = (e) => e === "number", kd = (e) => e === "family-name", Ad = (e) => e === "number" || e === "weight", jd = (e) => e === "shadow", Md = () => {
+ let e = Gu("color"), t = Gu("font"), n = Gu("text"), r = Gu("font-weight"), i = Gu("tracking"), a = Gu("leading"), o = Gu("breakpoint"), s = Gu("container"), c = Gu("spacing"), l = Gu("radius"), u = Gu("shadow"), d = Gu("inset-shadow"), f = Gu("text-shadow"), p = Gu("drop-shadow"), m = Gu("blur"), h = Gu("perspective"), g = Gu("aspect"), _ = Gu("ease"), v = Gu("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -15046,8 +16684,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
"left-bottom"
], x = () => [
...b(),
- q,
- K
+ Q,
+ Z
], S = () => [
"auto",
"hidden",
@@ -15059,44 +16697,44 @@ var Nc = /* @__PURE__ */ u(((e) => {
"contain",
"none"
], w = () => [
- q,
- K,
+ Q,
+ Z,
c
], T = () => [
- Tl,
+ K,
"full",
"auto",
...w()
- ], ee = () => [
- El,
+ ], E = () => [
+ J,
"none",
"subgrid",
- q,
- K
- ], E = () => [
+ Q,
+ Z
+ ], D = () => [
"auto",
{ span: [
"full",
- El,
- q,
- K
+ J,
+ Q,
+ Z
] },
- El,
- q,
- K
- ], D = () => [
- El,
- "auto",
- q,
- K
+ J,
+ Q,
+ Z
], O = () => [
+ J,
+ "auto",
+ Q,
+ Z
+ ], k = () => [
"auto",
"min",
"max",
"fr",
- q,
- K
- ], k = () => [
+ Q,
+ Z
+ ], A = () => [
"start",
"end",
"center",
@@ -15107,15 +16745,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
"baseline",
"center-safe",
"end-safe"
- ], A = () => [
+ ], ee = () => [
"start",
"end",
"center",
"stretch",
"center-safe",
"end-safe"
- ], j = () => ["auto", ...w()], M = () => [
- Tl,
+ ], j = () => ["auto", ...w()], te = () => [
+ K,
"auto",
"full",
"dvw",
@@ -15128,9 +16766,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
"max",
"fit",
...w()
- ], te = () => [
+ ], ne = () => [
s,
- Tl,
+ K,
"screen",
"full",
"dvw",
@@ -15140,8 +16778,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
"max",
"fit",
...w()
- ], ne = () => [
- Tl,
+ ], re = () => [
+ K,
"screen",
"full",
"lh",
@@ -15152,50 +16790,50 @@ var Nc = /* @__PURE__ */ u(((e) => {
"max",
"fit",
...w()
- ], N = () => [
+ ], M = () => [
e,
- q,
- K
- ], re = () => [
+ Q,
+ Z
+ ], ie = () => [
...b(),
- Kl,
- Vl,
- { position: [q, K] }
- ], ie = () => ["no-repeat", { repeat: [
+ _d,
+ fd,
+ { position: [Q, Z] }
+ ], ae = () => ["no-repeat", { repeat: [
"",
"x",
"y",
"space",
"round"
- ] }], ae = () => [
+ ] }], oe = () => [
"auto",
"cover",
"contain",
- ql,
- Il,
- { size: [q, K] }
- ], oe = () => [
- Dl,
- Wl,
- Ll
- ], P = () => [
+ vd,
+ sd,
+ { size: [Q, Z] }
+ ], se = () => [
+ Y,
+ hd,
+ cd
+ ], ce = () => [
"",
"none",
"full",
l,
- q,
- K
- ], F = () => [
+ Q,
+ Z
+ ], le = () => [
"",
- G,
- Wl,
- Ll
- ], se = () => [
+ q,
+ hd,
+ cd
+ ], ue = () => [
"solid",
"dashed",
"dotted",
"double"
- ], I = () => [
+ ], de = () => [
"normal",
"multiply",
"screen",
@@ -15212,33 +16850,33 @@ var Nc = /* @__PURE__ */ u(((e) => {
"saturation",
"color",
"luminosity"
- ], ce = () => [
- G,
- Dl,
- Kl,
- Vl
- ], le = () => [
+ ], fe = () => [
+ q,
+ Y,
+ _d,
+ fd
+ ], pe = () => [
"",
"none",
m,
- q,
- K
- ], ue = () => [
+ Q,
+ Z
+ ], me = () => [
"none",
- G,
q,
- K
- ], de = () => [
+ Q,
+ Z
+ ], he = () => [
"none",
- G,
q,
- K
- ], L = () => [
- G,
+ Q,
+ Z
+ ], N = () => [
q,
- K
- ], R = () => [
- Tl,
+ Q,
+ Z
+ ], P = () => [
+ K,
"full",
...w()
];
@@ -15252,17 +16890,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [Ol],
- breakpoint: [Ol],
- color: [kl],
- container: [Ol],
- "drop-shadow": [Ol],
+ blur: [X],
+ breakpoint: [X],
+ color: [ed],
+ container: [X],
+ "drop-shadow": [X],
ease: [
"in",
"out",
"in-out"
],
- font: [Pl],
+ font: [ad],
"font-weight": [
"thin",
"extralight",
@@ -15274,7 +16912,7 @@ var Nc = /* @__PURE__ */ u(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [Ol],
+ "inset-shadow": [X],
leading: [
"none",
"tight",
@@ -15291,11 +16929,11 @@ var Nc = /* @__PURE__ */ u(((e) => {
"distant",
"none"
],
- radius: [Ol],
- shadow: [Ol],
- spacing: ["px", G],
- text: [Ol],
- "text-shadow": [Ol],
+ radius: [X],
+ shadow: [X],
+ spacing: ["px", q],
+ text: [X],
+ "text-shadow": [X],
tracking: [
"tighter",
"tight",
@@ -15309,9 +16947,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- Tl,
K,
- q,
+ Z,
+ Q,
g
] }],
container: ["container"],
@@ -15319,15 +16957,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
"",
"normal",
"size",
- q,
- K
+ Q,
+ Z
] }],
- "container-named": [Fl],
+ "container-named": [od],
columns: [{ columns: [
- G,
- "auto",
- K,
q,
+ "auto",
+ Z,
+ Q,
s
] }],
"break-after": [{ "break-after": y() }],
@@ -15424,13 +17062,13 @@ var Nc = /* @__PURE__ */ u(((e) => {
"collapse"
],
z: [{ z: [
- El,
+ J,
"auto",
- q,
- K
+ Q,
+ Z
] }],
basis: [{ basis: [
- Tl,
+ K,
"full",
"auto",
s,
@@ -15448,41 +17086,41 @@ var Nc = /* @__PURE__ */ u(((e) => {
"wrap-reverse"
] }],
flex: [{ flex: [
- G,
- Tl,
+ q,
+ K,
"auto",
"initial",
"none",
- K
+ Z
] }],
grow: [{ grow: [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
shrink: [{ shrink: [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
order: [{ order: [
- El,
+ J,
"first",
"last",
"none",
- q,
- K
+ Q,
+ Z
] }],
- "grid-cols": [{ "grid-cols": ee() }],
- "col-start-end": [{ col: E() }],
- "col-start": [{ "col-start": D() }],
- "col-end": [{ "col-end": D() }],
- "grid-rows": [{ "grid-rows": ee() }],
- "row-start-end": [{ row: E() }],
- "row-start": [{ "row-start": D() }],
- "row-end": [{ "row-end": D() }],
+ "grid-cols": [{ "grid-cols": E() }],
+ "col-start-end": [{ col: D() }],
+ "col-start": [{ "col-start": O() }],
+ "col-end": [{ "col-end": O() }],
+ "grid-rows": [{ "grid-rows": E() }],
+ "row-start-end": [{ row: D() }],
+ "row-start": [{ "row-start": O() }],
+ "row-end": [{ "row-end": O() }],
"grid-flow": [{ "grid-flow": [
"row",
"col",
@@ -15490,24 +17128,24 @@ var Nc = /* @__PURE__ */ u(((e) => {
"row-dense",
"col-dense"
] }],
- "auto-cols": [{ "auto-cols": O() }],
- "auto-rows": [{ "auto-rows": O() }],
+ "auto-cols": [{ "auto-cols": k() }],
+ "auto-rows": [{ "auto-rows": k() }],
gap: [{ gap: w() }],
"gap-x": [{ "gap-x": w() }],
"gap-y": [{ "gap-y": w() }],
- "justify-content": [{ justify: [...k(), "normal"] }],
- "justify-items": [{ "justify-items": [...A(), "normal"] }],
- "justify-self": [{ "justify-self": ["auto", ...A()] }],
- "align-content": [{ content: ["normal", ...k()] }],
- "align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
+ "justify-content": [{ justify: [...A(), "normal"] }],
+ "justify-items": [{ "justify-items": [...ee(), "normal"] }],
+ "justify-self": [{ "justify-self": ["auto", ...ee()] }],
+ "align-content": [{ content: ["normal", ...A()] }],
+ "align-items": [{ items: [...ee(), { baseline: ["", "last"] }] }],
"align-self": [{ self: [
"auto",
- ...A(),
+ ...ee(),
{ baseline: ["", "last"] }
] }],
- "place-content": [{ "place-content": k() }],
- "place-items": [{ "place-items": [...A(), "baseline"] }],
- "place-self": [{ "place-self": ["auto", ...A()] }],
+ "place-content": [{ "place-content": A() }],
+ "place-items": [{ "place-items": [...ee(), "baseline"] }],
+ "place-self": [{ "place-self": ["auto", ...ee()] }],
p: [{ p: w() }],
px: [{ px: w() }],
py: [{ py: w() }],
@@ -15534,23 +17172,23 @@ var Nc = /* @__PURE__ */ u(((e) => {
"space-x-reverse": ["space-x-reverse"],
"space-y": [{ "space-y": w() }],
"space-y-reverse": ["space-y-reverse"],
- size: [{ size: M() }],
- "inline-size": [{ inline: ["auto", ...te()] }],
- "min-inline-size": [{ "min-inline": ["auto", ...te()] }],
- "max-inline-size": [{ "max-inline": ["none", ...te()] }],
- "block-size": [{ block: ["auto", ...ne()] }],
- "min-block-size": [{ "min-block": ["auto", ...ne()] }],
- "max-block-size": [{ "max-block": ["none", ...ne()] }],
+ size: [{ size: te() }],
+ "inline-size": [{ inline: ["auto", ...ne()] }],
+ "min-inline-size": [{ "min-inline": ["auto", ...ne()] }],
+ "max-inline-size": [{ "max-inline": ["none", ...ne()] }],
+ "block-size": [{ block: ["auto", ...re()] }],
+ "min-block-size": [{ "min-block": ["auto", ...re()] }],
+ "max-block-size": [{ "max-block": ["none", ...re()] }],
w: [{ w: [
s,
"screen",
- ...M()
+ ...te()
] }],
"min-w": [{ "min-w": [
s,
"screen",
"none",
- ...M()
+ ...te()
] }],
"max-w": [{ "max-w": [
s,
@@ -15558,37 +17196,37 @@ var Nc = /* @__PURE__ */ u(((e) => {
"none",
"prose",
{ screen: [o] },
- ...M()
+ ...te()
] }],
h: [{ h: [
"screen",
"lh",
- ...M()
+ ...te()
] }],
"min-h": [{ "min-h": [
"screen",
"lh",
"none",
- ...M()
+ ...te()
] }],
"max-h": [{ "max-h": [
"screen",
"lh",
"none",
- ...M()
+ ...te()
] }],
"font-size": [{ text: [
"base",
n,
- Wl,
- Ll
+ hd,
+ cd
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- Xl,
- zl
+ xd,
+ ud
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -15600,15 +17238,15 @@ var Nc = /* @__PURE__ */ u(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- Dl,
- K
+ Y,
+ Z
] }],
"font-family": [{ font: [
- Gl,
- Bl,
+ gd,
+ dd,
t
] }],
- "font-features": [{ "font-features": [K] }],
+ "font-features": [{ "font-features": [Z] }],
"fvn-normal": ["normal-nums"],
"fvn-ordinal": ["ordinal"],
"fvn-slashed-zero": ["slashed-zero"],
@@ -15617,14 +17255,14 @@ var Nc = /* @__PURE__ */ u(((e) => {
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
tracking: [{ tracking: [
i,
- q,
- K
+ Q,
+ Z
] }],
"line-clamp": [{ "line-clamp": [
- G,
- "none",
q,
- Rl
+ "none",
+ Q,
+ ld
] }],
leading: [{ leading: [
"none",
@@ -15633,16 +17271,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
] }],
"list-image": [{ "list-image": [
"none",
- q,
- K
+ Q,
+ Z
] }],
"list-style-position": [{ list: ["inside", "outside"] }],
"list-style-type": [{ list: [
"disc",
"decimal",
"none",
- q,
- K
+ Q,
+ Z
] }],
"text-alignment": [{ text: [
"left",
@@ -15652,28 +17290,28 @@ var Nc = /* @__PURE__ */ u(((e) => {
"start",
"end"
] }],
- "placeholder-color": [{ placeholder: N() }],
- "text-color": [{ text: N() }],
+ "placeholder-color": [{ placeholder: M() }],
+ "text-color": [{ text: M() }],
"text-decoration": [
"underline",
"overline",
"line-through",
"no-underline"
],
- "text-decoration-style": [{ decoration: [...se(), "wavy"] }],
+ "text-decoration-style": [{ decoration: [...ue(), "wavy"] }],
"text-decoration-thickness": [{ decoration: [
- G,
+ q,
"from-font",
"auto",
- q,
- Ll
+ Q,
+ cd
] }],
- "text-decoration-color": [{ decoration: N() }],
+ "text-decoration-color": [{ decoration: M() }],
"underline-offset": [{ "underline-offset": [
- G,
- "auto",
q,
- K
+ "auto",
+ Q,
+ Z
] }],
"text-transform": [
"uppercase",
@@ -15694,9 +17332,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- El,
- q,
- K
+ J,
+ Q,
+ Z
] }],
"vertical-align": [{ align: [
"baseline",
@@ -15707,8 +17345,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
"text-bottom",
"sub",
"super",
- q,
- K
+ Q,
+ Z
] }],
whitespace: [{ whitespace: [
"normal",
@@ -15736,8 +17374,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
] }],
content: [{ content: [
"none",
- q,
- K
+ Q,
+ Z
] }],
"bg-attachment": [{ bg: [
"fixed",
@@ -15755,9 +17393,9 @@ var Nc = /* @__PURE__ */ u(((e) => {
"padding",
"content"
] }],
- "bg-position": [{ bg: re() }],
- "bg-repeat": [{ bg: ie() }],
- "bg-size": [{ bg: ae() }],
+ "bg-position": [{ bg: ie() }],
+ "bg-repeat": [{ bg: ae() }],
+ "bg-size": [{ bg: oe() }],
"bg-image": [{ bg: [
"none",
{
@@ -15772,142 +17410,142 @@ var Nc = /* @__PURE__ */ u(((e) => {
"l",
"tl"
] },
- El,
- q,
- K
+ J,
+ Q,
+ Z
],
radial: [
"",
- q,
- K
+ Q,
+ Z
],
conic: [
"",
- El,
- q,
- K
+ J,
+ Q,
+ Z
]
},
- Jl,
- Hl
+ yd,
+ pd
] }],
- "bg-color": [{ bg: N() }],
- "gradient-from-pos": [{ from: oe() }],
- "gradient-via-pos": [{ via: oe() }],
- "gradient-to-pos": [{ to: oe() }],
- "gradient-from": [{ from: N() }],
- "gradient-via": [{ via: N() }],
- "gradient-to": [{ to: N() }],
- rounded: [{ rounded: P() }],
- "rounded-s": [{ "rounded-s": P() }],
- "rounded-e": [{ "rounded-e": P() }],
- "rounded-t": [{ "rounded-t": P() }],
- "rounded-r": [{ "rounded-r": P() }],
- "rounded-b": [{ "rounded-b": P() }],
- "rounded-l": [{ "rounded-l": P() }],
- "rounded-ss": [{ "rounded-ss": P() }],
- "rounded-se": [{ "rounded-se": P() }],
- "rounded-ee": [{ "rounded-ee": P() }],
- "rounded-es": [{ "rounded-es": P() }],
- "rounded-tl": [{ "rounded-tl": P() }],
- "rounded-tr": [{ "rounded-tr": P() }],
- "rounded-br": [{ "rounded-br": P() }],
- "rounded-bl": [{ "rounded-bl": P() }],
- "border-w": [{ border: F() }],
- "border-w-x": [{ "border-x": F() }],
- "border-w-y": [{ "border-y": F() }],
- "border-w-s": [{ "border-s": F() }],
- "border-w-e": [{ "border-e": F() }],
- "border-w-bs": [{ "border-bs": F() }],
- "border-w-be": [{ "border-be": F() }],
- "border-w-t": [{ "border-t": F() }],
- "border-w-r": [{ "border-r": F() }],
- "border-w-b": [{ "border-b": F() }],
- "border-w-l": [{ "border-l": F() }],
- "divide-x": [{ "divide-x": F() }],
+ "bg-color": [{ bg: M() }],
+ "gradient-from-pos": [{ from: se() }],
+ "gradient-via-pos": [{ via: se() }],
+ "gradient-to-pos": [{ to: se() }],
+ "gradient-from": [{ from: M() }],
+ "gradient-via": [{ via: M() }],
+ "gradient-to": [{ to: M() }],
+ rounded: [{ rounded: ce() }],
+ "rounded-s": [{ "rounded-s": ce() }],
+ "rounded-e": [{ "rounded-e": ce() }],
+ "rounded-t": [{ "rounded-t": ce() }],
+ "rounded-r": [{ "rounded-r": ce() }],
+ "rounded-b": [{ "rounded-b": ce() }],
+ "rounded-l": [{ "rounded-l": ce() }],
+ "rounded-ss": [{ "rounded-ss": ce() }],
+ "rounded-se": [{ "rounded-se": ce() }],
+ "rounded-ee": [{ "rounded-ee": ce() }],
+ "rounded-es": [{ "rounded-es": ce() }],
+ "rounded-tl": [{ "rounded-tl": ce() }],
+ "rounded-tr": [{ "rounded-tr": ce() }],
+ "rounded-br": [{ "rounded-br": ce() }],
+ "rounded-bl": [{ "rounded-bl": ce() }],
+ "border-w": [{ border: le() }],
+ "border-w-x": [{ "border-x": le() }],
+ "border-w-y": [{ "border-y": le() }],
+ "border-w-s": [{ "border-s": le() }],
+ "border-w-e": [{ "border-e": le() }],
+ "border-w-bs": [{ "border-bs": le() }],
+ "border-w-be": [{ "border-be": le() }],
+ "border-w-t": [{ "border-t": le() }],
+ "border-w-r": [{ "border-r": le() }],
+ "border-w-b": [{ "border-b": le() }],
+ "border-w-l": [{ "border-l": le() }],
+ "divide-x": [{ "divide-x": le() }],
"divide-x-reverse": ["divide-x-reverse"],
- "divide-y": [{ "divide-y": F() }],
+ "divide-y": [{ "divide-y": le() }],
"divide-y-reverse": ["divide-y-reverse"],
"border-style": [{ border: [
- ...se(),
+ ...ue(),
"hidden",
"none"
] }],
"divide-style": [{ divide: [
- ...se(),
+ ...ue(),
"hidden",
"none"
] }],
- "border-color": [{ border: N() }],
- "border-color-x": [{ "border-x": N() }],
- "border-color-y": [{ "border-y": N() }],
- "border-color-s": [{ "border-s": N() }],
- "border-color-e": [{ "border-e": N() }],
- "border-color-bs": [{ "border-bs": N() }],
- "border-color-be": [{ "border-be": N() }],
- "border-color-t": [{ "border-t": N() }],
- "border-color-r": [{ "border-r": N() }],
- "border-color-b": [{ "border-b": N() }],
- "border-color-l": [{ "border-l": N() }],
- "divide-color": [{ divide: N() }],
+ "border-color": [{ border: M() }],
+ "border-color-x": [{ "border-x": M() }],
+ "border-color-y": [{ "border-y": M() }],
+ "border-color-s": [{ "border-s": M() }],
+ "border-color-e": [{ "border-e": M() }],
+ "border-color-bs": [{ "border-bs": M() }],
+ "border-color-be": [{ "border-be": M() }],
+ "border-color-t": [{ "border-t": M() }],
+ "border-color-r": [{ "border-r": M() }],
+ "border-color-b": [{ "border-b": M() }],
+ "border-color-l": [{ "border-l": M() }],
+ "divide-color": [{ divide: M() }],
"outline-style": [{ outline: [
- ...se(),
+ ...ue(),
"none",
"hidden"
] }],
"outline-offset": [{ "outline-offset": [
- G,
q,
- K
+ Q,
+ Z
] }],
"outline-w": [{ outline: [
"",
- G,
- Wl,
- Ll
+ q,
+ hd,
+ cd
] }],
- "outline-color": [{ outline: N() }],
+ "outline-color": [{ outline: M() }],
shadow: [{ shadow: [
"",
"inner",
"none",
u,
- Yl,
- Ul
+ bd,
+ md
] }],
- "shadow-color": [{ shadow: N() }],
+ "shadow-color": [{ shadow: M() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Yl,
- Ul
+ bd,
+ md
] }],
- "inset-shadow-color": [{ "inset-shadow": N() }],
- "ring-w": [{ ring: F() }],
+ "inset-shadow-color": [{ "inset-shadow": M() }],
+ "ring-w": [{ ring: le() }],
"ring-w-inset": ["ring-inset"],
- "ring-color": [{ ring: N() }],
- "ring-offset-w": [{ "ring-offset": [G, Ll] }],
- "ring-offset-color": [{ "ring-offset": N() }],
- "inset-ring-w": [{ "inset-ring": F() }],
- "inset-ring-color": [{ "inset-ring": N() }],
+ "ring-color": [{ ring: M() }],
+ "ring-offset-w": [{ "ring-offset": [q, cd] }],
+ "ring-offset-color": [{ "ring-offset": M() }],
+ "inset-ring-w": [{ "inset-ring": le() }],
+ "inset-ring-color": [{ "inset-ring": M() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Yl,
- Ul
+ bd,
+ md
] }],
- "text-shadow-color": [{ "text-shadow": N() }],
+ "text-shadow-color": [{ "text-shadow": M() }],
opacity: [{ opacity: [
- G,
q,
- K
+ Q,
+ Z
] }],
"mix-blend": [{ "mix-blend": [
- ...I(),
+ ...de(),
"plus-darker",
"plus-lighter"
] }],
- "bg-blend": [{ "bg-blend": I() }],
+ "bg-blend": [{ "bg-blend": de() }],
"mask-clip": [{ "mask-clip": [
"border",
"padding",
@@ -15922,51 +17560,51 @@ var Nc = /* @__PURE__ */ u(((e) => {
"intersect",
"exclude"
] }],
- "mask-image-linear-pos": [{ "mask-linear": [G] }],
- "mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],
- "mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],
- "mask-image-linear-from-color": [{ "mask-linear-from": N() }],
- "mask-image-linear-to-color": [{ "mask-linear-to": N() }],
- "mask-image-t-from-pos": [{ "mask-t-from": ce() }],
- "mask-image-t-to-pos": [{ "mask-t-to": ce() }],
- "mask-image-t-from-color": [{ "mask-t-from": N() }],
- "mask-image-t-to-color": [{ "mask-t-to": N() }],
- "mask-image-r-from-pos": [{ "mask-r-from": ce() }],
- "mask-image-r-to-pos": [{ "mask-r-to": ce() }],
- "mask-image-r-from-color": [{ "mask-r-from": N() }],
- "mask-image-r-to-color": [{ "mask-r-to": N() }],
- "mask-image-b-from-pos": [{ "mask-b-from": ce() }],
- "mask-image-b-to-pos": [{ "mask-b-to": ce() }],
- "mask-image-b-from-color": [{ "mask-b-from": N() }],
- "mask-image-b-to-color": [{ "mask-b-to": N() }],
- "mask-image-l-from-pos": [{ "mask-l-from": ce() }],
- "mask-image-l-to-pos": [{ "mask-l-to": ce() }],
- "mask-image-l-from-color": [{ "mask-l-from": N() }],
- "mask-image-l-to-color": [{ "mask-l-to": N() }],
- "mask-image-x-from-pos": [{ "mask-x-from": ce() }],
- "mask-image-x-to-pos": [{ "mask-x-to": ce() }],
- "mask-image-x-from-color": [{ "mask-x-from": N() }],
- "mask-image-x-to-color": [{ "mask-x-to": N() }],
- "mask-image-y-from-pos": [{ "mask-y-from": ce() }],
- "mask-image-y-to-pos": [{ "mask-y-to": ce() }],
- "mask-image-y-from-color": [{ "mask-y-from": N() }],
- "mask-image-y-to-color": [{ "mask-y-to": N() }],
- "mask-image-radial": [{ "mask-radial": [q, K] }],
- "mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],
- "mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],
- "mask-image-radial-from-color": [{ "mask-radial-from": N() }],
- "mask-image-radial-to-color": [{ "mask-radial-to": N() }],
+ "mask-image-linear-pos": [{ "mask-linear": [q] }],
+ "mask-image-linear-from-pos": [{ "mask-linear-from": fe() }],
+ "mask-image-linear-to-pos": [{ "mask-linear-to": fe() }],
+ "mask-image-linear-from-color": [{ "mask-linear-from": M() }],
+ "mask-image-linear-to-color": [{ "mask-linear-to": M() }],
+ "mask-image-t-from-pos": [{ "mask-t-from": fe() }],
+ "mask-image-t-to-pos": [{ "mask-t-to": fe() }],
+ "mask-image-t-from-color": [{ "mask-t-from": M() }],
+ "mask-image-t-to-color": [{ "mask-t-to": M() }],
+ "mask-image-r-from-pos": [{ "mask-r-from": fe() }],
+ "mask-image-r-to-pos": [{ "mask-r-to": fe() }],
+ "mask-image-r-from-color": [{ "mask-r-from": M() }],
+ "mask-image-r-to-color": [{ "mask-r-to": M() }],
+ "mask-image-b-from-pos": [{ "mask-b-from": fe() }],
+ "mask-image-b-to-pos": [{ "mask-b-to": fe() }],
+ "mask-image-b-from-color": [{ "mask-b-from": M() }],
+ "mask-image-b-to-color": [{ "mask-b-to": M() }],
+ "mask-image-l-from-pos": [{ "mask-l-from": fe() }],
+ "mask-image-l-to-pos": [{ "mask-l-to": fe() }],
+ "mask-image-l-from-color": [{ "mask-l-from": M() }],
+ "mask-image-l-to-color": [{ "mask-l-to": M() }],
+ "mask-image-x-from-pos": [{ "mask-x-from": fe() }],
+ "mask-image-x-to-pos": [{ "mask-x-to": fe() }],
+ "mask-image-x-from-color": [{ "mask-x-from": M() }],
+ "mask-image-x-to-color": [{ "mask-x-to": M() }],
+ "mask-image-y-from-pos": [{ "mask-y-from": fe() }],
+ "mask-image-y-to-pos": [{ "mask-y-to": fe() }],
+ "mask-image-y-from-color": [{ "mask-y-from": M() }],
+ "mask-image-y-to-color": [{ "mask-y-to": M() }],
+ "mask-image-radial": [{ "mask-radial": [Q, Z] }],
+ "mask-image-radial-from-pos": [{ "mask-radial-from": fe() }],
+ "mask-image-radial-to-pos": [{ "mask-radial-to": fe() }],
+ "mask-image-radial-from-color": [{ "mask-radial-from": M() }],
+ "mask-image-radial-to-color": [{ "mask-radial-to": M() }],
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
"mask-image-radial-size": [{ "mask-radial": [{
closest: ["side", "corner"],
farthest: ["side", "corner"]
}] }],
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
- "mask-image-conic-pos": [{ "mask-conic": [G] }],
- "mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],
- "mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],
- "mask-image-conic-from-color": [{ "mask-conic-from": N() }],
- "mask-image-conic-to-color": [{ "mask-conic-to": N() }],
+ "mask-image-conic-pos": [{ "mask-conic": [q] }],
+ "mask-image-conic-from-pos": [{ "mask-conic-from": fe() }],
+ "mask-image-conic-to-pos": [{ "mask-conic-to": fe() }],
+ "mask-image-conic-from-color": [{ "mask-conic-from": M() }],
+ "mask-image-conic-to-color": [{ "mask-conic-to": M() }],
"mask-mode": [{ mask: [
"alpha",
"luminance",
@@ -15980,117 +17618,117 @@ var Nc = /* @__PURE__ */ u(((e) => {
"stroke",
"view"
] }],
- "mask-position": [{ mask: re() }],
- "mask-repeat": [{ mask: ie() }],
- "mask-size": [{ mask: ae() }],
+ "mask-position": [{ mask: ie() }],
+ "mask-repeat": [{ mask: ae() }],
+ "mask-size": [{ mask: oe() }],
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
"mask-image": [{ mask: [
"none",
- q,
- K
+ Q,
+ Z
] }],
filter: [{ filter: [
"",
"none",
- q,
- K
+ Q,
+ Z
] }],
- blur: [{ blur: le() }],
+ blur: [{ blur: pe() }],
brightness: [{ brightness: [
- G,
q,
- K
+ Q,
+ Z
] }],
contrast: [{ contrast: [
- G,
q,
- K
+ Q,
+ Z
] }],
"drop-shadow": [{ "drop-shadow": [
"",
"none",
p,
- Yl,
- Ul
+ bd,
+ md
] }],
- "drop-shadow-color": [{ "drop-shadow": N() }],
+ "drop-shadow-color": [{ "drop-shadow": M() }],
grayscale: [{ grayscale: [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
"hue-rotate": [{ "hue-rotate": [
- G,
q,
- K
+ Q,
+ Z
] }],
invert: [{ invert: [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
saturate: [{ saturate: [
- G,
q,
- K
+ Q,
+ Z
] }],
sepia: [{ sepia: [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-filter": [{ "backdrop-filter": [
"",
"none",
- q,
- K
+ Q,
+ Z
] }],
- "backdrop-blur": [{ "backdrop-blur": le() }],
+ "backdrop-blur": [{ "backdrop-blur": pe() }],
"backdrop-brightness": [{ "backdrop-brightness": [
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-contrast": [{ "backdrop-contrast": [
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-grayscale": [{ "backdrop-grayscale": [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-invert": [{ "backdrop-invert": [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-opacity": [{ "backdrop-opacity": [
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-saturate": [{ "backdrop-saturate": [
- G,
q,
- K
+ Q,
+ Z
] }],
"backdrop-sepia": [{ "backdrop-sepia": [
"",
- G,
q,
- K
+ Q,
+ Z
] }],
"border-collapse": [{ border: ["collapse", "separate"] }],
"border-spacing": [{ "border-spacing": w() }],
@@ -16106,56 +17744,56 @@ var Nc = /* @__PURE__ */ u(((e) => {
"shadow",
"transform",
"none",
- q,
- K
+ Q,
+ Z
] }],
"transition-behavior": [{ transition: ["normal", "discrete"] }],
duration: [{ duration: [
- G,
- "initial",
q,
- K
+ "initial",
+ Q,
+ Z
] }],
ease: [{ ease: [
"linear",
"initial",
_,
- q,
- K
+ Q,
+ Z
] }],
delay: [{ delay: [
- G,
q,
- K
+ Q,
+ Z
] }],
animate: [{ animate: [
"none",
v,
- q,
- K
+ Q,
+ Z
] }],
backface: [{ backface: ["hidden", "visible"] }],
perspective: [{ perspective: [
h,
- q,
- K
+ Q,
+ Z
] }],
"perspective-origin": [{ "perspective-origin": x() }],
- rotate: [{ rotate: ue() }],
- "rotate-x": [{ "rotate-x": ue() }],
- "rotate-y": [{ "rotate-y": ue() }],
- "rotate-z": [{ "rotate-z": ue() }],
- scale: [{ scale: de() }],
- "scale-x": [{ "scale-x": de() }],
- "scale-y": [{ "scale-y": de() }],
- "scale-z": [{ "scale-z": de() }],
+ rotate: [{ rotate: me() }],
+ "rotate-x": [{ "rotate-x": me() }],
+ "rotate-y": [{ "rotate-y": me() }],
+ "rotate-z": [{ "rotate-z": me() }],
+ scale: [{ scale: he() }],
+ "scale-x": [{ "scale-x": he() }],
+ "scale-y": [{ "scale-y": he() }],
+ "scale-z": [{ "scale-z": he() }],
"scale-3d": ["scale-3d"],
- skew: [{ skew: L() }],
- "skew-x": [{ "skew-x": L() }],
- "skew-y": [{ "skew-y": L() }],
+ skew: [{ skew: N() }],
+ "skew-x": [{ "skew-x": N() }],
+ "skew-y": [{ "skew-y": N() }],
transform: [{ transform: [
- q,
- K,
+ Q,
+ Z,
"",
"none",
"gpu",
@@ -16163,19 +17801,19 @@ var Nc = /* @__PURE__ */ u(((e) => {
] }],
"transform-origin": [{ origin: x() }],
"transform-style": [{ transform: ["3d", "flat"] }],
- translate: [{ translate: R() }],
- "translate-x": [{ "translate-x": R() }],
- "translate-y": [{ "translate-y": R() }],
- "translate-z": [{ "translate-z": R() }],
+ translate: [{ translate: P() }],
+ "translate-x": [{ "translate-x": P() }],
+ "translate-y": [{ "translate-y": P() }],
+ "translate-z": [{ "translate-z": P() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- El,
- q,
- K
+ J,
+ Q,
+ Z
] }],
- accent: [{ accent: N() }],
+ accent: [{ accent: M() }],
appearance: [{ appearance: ["none", "auto"] }],
- "caret-color": [{ caret: N() }],
+ "caret-color": [{ caret: M() }],
"color-scheme": [{ scheme: [
"normal",
"dark",
@@ -16221,8 +17859,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
"nwse-resize",
"zoom-in",
"zoom-out",
- q,
- K
+ Q,
+ Z
] }],
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
@@ -16233,8 +17871,8 @@ var Nc = /* @__PURE__ */ u(((e) => {
"x"
] }],
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
- "scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
- "scrollbar-track-color": [{ "scrollbar-track": N() }],
+ "scrollbar-thumb-color": [{ "scrollbar-thumb": M() }],
+ "scrollbar-track-color": [{ "scrollbar-track": M() }],
"scrollbar-gutter": [{ "scrollbar-gutter": [
"auto",
"stable",
@@ -16308,17 +17946,17 @@ var Nc = /* @__PURE__ */ u(((e) => {
"scroll",
"contents",
"transform",
- q,
- K
+ Q,
+ Z
] }],
- fill: [{ fill: ["none", ...N()] }],
+ fill: [{ fill: ["none", ...M()] }],
"stroke-w": [{ stroke: [
- G,
- Wl,
- Ll,
- Rl
+ q,
+ hd,
+ cd,
+ ld
] }],
- stroke: [{ stroke: ["none", ...N()] }],
+ stroke: [{ stroke: ["none", ...M()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
},
conflictingClassGroups: {
@@ -16574,16 +18212,16 @@ var Nc = /* @__PURE__ */ u(((e) => {
"selection"
]
};
-}, cu = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (lu(e, "cacheSize", t), lu(e, "prefix", n), lu(e, "experimentalParseClassName", r), uu(e.theme, a.theme), uu(e.classGroups, a.classGroups), uu(e.conflictingClassGroups, a.conflictingClassGroups), uu(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), lu(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), lu(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), du(e.theme, i.theme), du(e.classGroups, i.classGroups), du(e.conflictingClassGroups, i.conflictingClassGroups), du(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), fu(e, i, "postfixLookupClassGroups"), fu(e, i, "orderSensitiveModifiers"), e), lu = (e, t, n) => {
+}, Nd = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Pd(e, "cacheSize", t), Pd(e, "prefix", n), Pd(e, "experimentalParseClassName", r), Fd(e.theme, a.theme), Fd(e.classGroups, a.classGroups), Fd(e.conflictingClassGroups, a.conflictingClassGroups), Fd(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Pd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Pd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), Id(e.theme, i.theme), Id(e.classGroups, i.classGroups), Id(e.conflictingClassGroups, i.conflictingClassGroups), Id(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), Ld(e, i, "postfixLookupClassGroups"), Ld(e, i, "orderSensitiveModifiers"), e), Pd = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, uu = (e, t) => {
- if (t) for (let n in t) lu(e, n, t[n]);
-}, du = (e, t) => {
- if (t) for (let n in t) fu(e, t, n);
-}, fu = (e, t, n) => {
+}, Fd = (e, t) => {
+ if (t) for (let n in t) Pd(e, n, t[n]);
+}, Id = (e, t) => {
+ if (t) for (let n in t) Ld(e, t, n);
+}, Ld = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, pu = (e, ...t) => typeof e == "function" ? ml(su, e, ...t) : ml(() => cu(su(), e), ...t), mu = [
+}, Rd = (e, ...t) => typeof e == "function" ? Uu(Md, e, ...t) : Uu(() => Nd(Md(), e), ...t), zd = [
"large-title",
"display-1",
"display-2",
@@ -16597,56 +18235,448 @@ var Nc = /* @__PURE__ */ u(((e) => {
"body-2",
"caption-1",
"caption-2"
-], hu = [
+], Bd = [
"regular",
"medium",
"semibold",
"bold"
-], gu = pu({ extend: { classGroups: { "font-size": [{ text: mu.flatMap((e) => hu.map((t) => `${e}-${t}`)) }] } } });
-function _u(e) {
+], Vd = Rd({ extend: { classGroups: { "font-size": [{ text: zd.flatMap((e) => Bd.map((t) => `${e}-${t}`)) }] } } });
+function Hd(e) {
return e;
}
//#endregion
-//#region node_modules/react/cjs/react-jsx-runtime.production.js
-var vu = /* @__PURE__ */ u(((e) => {
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
- function r(e, n, r) {
- var i = null;
- if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
- else r = n;
- return n = r.ref, {
- $$typeof: t,
- type: e,
- key: i,
- ref: n === void 0 ? null : n,
- props: r
- };
+//#region src/react/boardui/components/base/badges/chip.tsx
+var Ud = Hd({
+ 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",
+ subtle: "py-1 text-body-medium",
+ caption: "py-1 text-caption-1-medium"
+ },
+ color: {
+ lime: "bg-status-lime-background text-status-lime-text",
+ rose: "bg-status-rose-background text-status-rose-text",
+ yellow: "bg-status-yellow-background text-status-yellow-text",
+ cyan: "bg-status-cyan-background text-status-cyan-text",
+ blue: "bg-status-blue-background text-status-blue-text",
+ purple: "bg-status-purple-background text-status-purple-text",
+ neutral: "bg-background-tertiary-default text-text-secondary",
+ gray: "bg-background-secondary-default text-text-primary",
+ soft: "bg-background-secondary-default text-text-secondary"
+ }
+});
+function Wd({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+ return /* @__PURE__ */ (0, v.jsx)("span", {
+ ref: r,
+ className: Vd(Ud.base, Ud.variant[e], Ud.color[t], n),
+ ...i
+ });
+}
+//#endregion
+//#region src/api.ts
+var Gd = class extends Error {
+ status;
+ body;
+ constructor(t, n, r = null) {
+ super(e(t, n)), this.name = "ApiError", this.status = n, this.body = r;
+ }
+}, Kd = (e) => {
+ if (!e || typeof e != "object") return "";
+ let t = e;
+ for (let e of [
+ "message",
+ "detail",
+ "error"
+ ]) {
+ let n = t[e];
+ if (typeof n == "string" && n) return n;
+ }
+ return "";
+}, qd = (t) => e(t);
+async function Jd(e, t) {
+ let n = await fetch(e, {
+ headers: { Accept: "application/json" },
+ credentials: "same-origin",
+ ...t ? { signal: t } : {}
+ }), r = null;
+ try {
+ r = await n.json();
+ } catch {}
+ if (!n.ok) throw new Gd(Kd(r) || `请求失败(${n.status})`, n.status);
+ return r;
+}
+async function Yd(e, t, n = "POST", r) {
+ let i = await fetch(e, {
+ method: n,
+ ...r ? { signal: r } : {},
+ headers: {
+ Accept: "application/json",
+ "Content-Type": "application/json"
+ },
+ credentials: "same-origin",
+ body: JSON.stringify(t)
+ }), a = null;
+ try {
+ a = await i.json();
+ } catch {}
+ if (!i.ok) throw new Gd(Kd(a) || `请求失败(${i.status})`, i.status, a);
+ return a;
+}
+//#endregion
+//#region src/react/components/empty-state.tsx
+function Xd({ icon: e, title: t, children: n }) {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
+ className: "flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center",
+ children: [
+ /* @__PURE__ */ (0, v.jsx)(e, {
+ "aria-hidden": !0,
+ className: "size-6 text-text-tertiary"
+ }),
+ /* @__PURE__ */ (0, v.jsx)("h3", {
+ className: "text-headline-medium text-text-primary",
+ children: t
+ }),
+ /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "max-w-prose text-body-2-regular text-text-secondary",
+ children: n
+ })
+ ]
+ });
+}
+//#endregion
+//#region src/react/components/loading-dots.tsx
+function Zd({ label: e }) {
+ return /* @__PURE__ */ (0, v.jsxs)("p", {
+ role: "status",
+ className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, v.jsxs)("span", {
+ "aria-hidden": !0,
+ className: "inline-flex items-center gap-1",
+ children: [
+ /* @__PURE__ */ (0, v.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, v.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),
+ /* @__PURE__ */ (0, v.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })
+ ]
+ }), e]
+ });
+}
+//#endregion
+//#region src/react/components/note.tsx
+function Qd({ tone: e, title: t, children: n }) {
+ let r = /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [t ? /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "text-body-medium",
+ children: t
+ }) : null, /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "text-body-2-regular",
+ children: n
+ })] });
+ switch (e) {
+ case "info": return /* @__PURE__ */ (0, v.jsx)("div", {
+ role: "status",
+ className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",
+ children: r
+ });
+ case "success": return /* @__PURE__ */ (0, v.jsx)("div", {
+ role: "status",
+ className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",
+ children: r
+ });
+ case "warning": return /* @__PURE__ */ (0, v.jsx)("div", {
+ role: "note",
+ className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",
+ children: r
+ });
+ case "error": return /* @__PURE__ */ (0, v.jsx)("div", {
+ role: "alert",
+ className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",
+ children: r
+ });
+ default: return /* @__PURE__ */ (0, v.jsx)("div", {
+ role: "note",
+ className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",
+ children: r
+ });
}
- e.Fragment = n, e.jsx = r, e.jsxs = r;
-})), J = (/* @__PURE__ */ u(((e, t) => {
- t.exports = vu();
-})))();
-function yu({ className: e, children: t }) {
- return /* @__PURE__ */ (0, J.jsx)("div", {
- className: gu("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+}
+//#endregion
+//#region src/react/components/progress.tsx
+function $d({ label: e, value: t, max: n = 100, stops: r = [] }) {
+ let i = Math.min(Math.max(t, 0), n);
+ return /* @__PURE__ */ (0, v.jsxs)("svg", {
+ role: "progressbar",
+ "aria-label": e,
+ "aria-valuemin": 0,
+ "aria-valuemax": n,
+ "aria-valuenow": t,
+ viewBox: `0 0 ${n} 1`,
+ preserveAspectRatio: "none",
+ className: "h-1.5 w-full overflow-hidden rounded-full",
+ children: [
+ /* @__PURE__ */ (0, v.jsx)("rect", {
+ width: n,
+ height: 1,
+ className: "fill-background-tertiary-default"
+ }),
+ /* @__PURE__ */ (0, v.jsx)("rect", {
+ width: i,
+ height: 1,
+ className: "fill-border-focus-ring"
+ }),
+ r.map((e) => /* @__PURE__ */ (0, v.jsx)("rect", {
+ x: e,
+ width: .4,
+ height: 1,
+ className: "fill-background-secondary-default"
+ }, e))
+ ]
+ });
+}
+//#endregion
+//#region src/react/query.ts
+var ef = new Ge({ defaultOptions: { queries: {
+ networkMode: "always",
+ retry: 0,
+ refetchOnWindowFocus: !1,
+ refetchOnMount: !1,
+ retryOnMount: !1
+} } }), tf = "/api/tasks", nf = ["tasks"], rf = 2e3, af = 1e4, of = (e) => e?.running.length ? rf : af, sf = (e) => Jd(tf, e);
+async function cf(e) {
+ await ef.fetchQuery({
+ queryKey: nf,
+ queryFn: () => sf(e)
+ });
+}
+var lf = {
+ manual: "手动",
+ scheduled: "定时",
+ startup: "启动",
+ cli: "命令行"
+}, uf = {
+ pending: "排队中",
+ running: "进行中",
+ succeeded: "已完成",
+ failed: "失败",
+ cancelled: "已取消",
+ interrupted: "被打断"
+}, df = (e) => uf[e] || e, ff = {
+ checked: "已检查",
+ total: "总数",
+ scanned: "已扫描",
+ identified: "已识别",
+ candidates: "资料候选",
+ covers: "封面",
+ changed: "已改动",
+ operation: "操作",
+ ok: "取得",
+ miss: "未取得",
+ kept: "保留",
+ planned: "计划",
+ done: "已处理",
+ added: "新增",
+ written: "已写入",
+ removed: "已移除",
+ exit_code: "退出码",
+ issue_count: "问题"
+};
+function pf(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 mf(e) {
+ if (!e) return "";
+ let t = new Date(e);
+ return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
+ month: "2-digit",
+ day: "2-digit",
+ hour: "2-digit",
+ minute: "2-digit"
+ });
+}
+function hf(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${ff[e] || e} ${t}`).join(" · ");
+}
+//#endregion
+//#region src/react/activity/activity-page.tsx
+var gf = {
+ succeeded: "lime",
+ failed: "rose",
+ cancelled: "yellow",
+ interrupted: "yellow"
+};
+function _f({ status: e }) {
+ return /* @__PURE__ */ (0, v.jsx)(Wd, {
+ color: gf[e] ?? "neutral",
+ children: df(e)
+ });
+}
+function vf({ run: e, meta: t, children: n, footer: r }) {
+ return /* @__PURE__ */ (0, v.jsxs)("li", {
+ "data-status": e.status,
+ "data-task-key": e.task_key,
+ className: e.status === "failed" ? "flex flex-col rounded-2xl border border-border-error-default" : "flex flex-col rounded-2xl border border-separator-border",
+ children: [/* @__PURE__ */ (0, v.jsxs)("div", {
+ className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",
+ children: [
+ /* @__PURE__ */ (0, v.jsxs)("div", {
+ className: "flex flex-wrap items-center gap-2",
+ children: [/* @__PURE__ */ (0, v.jsx)("strong", {
+ className: "min-w-0 break-words text-title-1-medium text-text-primary",
+ children: e.task_label
+ }), /* @__PURE__ */ (0, v.jsx)(_f, { status: e.status })]
+ }),
+ /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: t
+ }),
+ n
+ ]
+ }), r ? /* @__PURE__ */ (0, v.jsx)("div", {
+ className: "border-t border-separator-border px-5 py-3",
+ children: /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: r
+ })
+ }) : null]
+ });
+}
+function yf({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = pf(e.elapsed_seconds), a = [lf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, v.jsx)(vf, {
+ run: e,
+ meta: a,
+ children: t > 0 ? /* @__PURE__ */ (0, v.jsxs)("div", {
+ className: "flex flex-col gap-1.5",
+ children: [/* @__PURE__ */ (0, v.jsx)($d, {
+ label: r,
+ value: n,
+ max: t
+ }), /* @__PURE__ */ (0, v.jsxs)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: [
+ r,
+ " · ",
+ n,
+ " / ",
+ t,
+ " 项"
+ ]
+ })]
+ }) : /* @__PURE__ */ (0, v.jsx)(Zd, { label: r })
+ });
+}
+function bf({ run: e }) {
+ let t = hf(e.result_summary), n = pf(e.elapsed_seconds), r = [
+ lf[e.trigger] || e.trigger,
+ mf(e.finished_at),
+ n && `用时 ${n}`
+ ].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, v.jsx)(vf, {
+ run: e,
+ meta: r,
+ footer: e.error,
+ children: t ? /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: t
+ }) : null
+ });
+}
+function xf({ title: e, children: t }) {
+ let n = (0, _.useId)();
+ return /* @__PURE__ */ (0, v.jsxs)("section", {
+ "aria-labelledby": n,
+ className: "flex min-w-0 flex-col gap-3",
+ children: [/* @__PURE__ */ (0, v.jsx)("h3", {
+ id: n,
+ className: "text-title-2-semibold text-text-primary",
+ children: e
+ }), t]
+ });
+}
+function Sf({ live: e = !1, children: t }) {
+ return /* @__PURE__ */ (0, v.jsx)("ul", {
+ "aria-live": e ? "polite" : void 0,
+ className: "flex min-w-0 flex-col gap-3",
+ children: t
+ });
+}
+function Cf({ children: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("div", {
+ className: "mx-auto flex w-full max-w-board flex-col gap-8",
+ children: e
+ });
+}
+function wf(e) {
+ let t = it({
+ queryKey: nf,
+ queryFn: ({ signal: e }) => sf(e),
+ refetchInterval: (e) => of(e.state.data)
+ }), n = t.data, r = t.error ? qd(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, v.jsx)(Cf, { children: /* @__PURE__ */ (0, v.jsx)(Qd, {
+ tone: "error",
+ children: r || "读取任务中心失败"
+ }) });
+ let i = n.running || [], a = n.skipped || [], o = (n.finished || []).filter((e) => !a.some((t) => t.id === e.id)), s = !i.length && !a.length && !o.length;
+ return /* @__PURE__ */ (0, v.jsxs)(Cf, { children: [
+ r ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ tone: "error",
+ children: r
+ }) : null,
+ n.available === !1 ? /* @__PURE__ */ (0, v.jsx)(Qd, {
+ tone: "warning",
+ children: n.message || "账本上还没有任务中心的表"
+ }) : null,
+ s ? /* @__PURE__ */ (0, v.jsx)(Xd, {
+ icon: uu,
+ title: "还没有任务记录",
+ children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
+ }) : /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
+ /* @__PURE__ */ (0, v.jsx)(xf, {
+ title: "正在进行",
+ children: i.length ? /* @__PURE__ */ (0, v.jsx)(Sf, {
+ live: !0,
+ children: i.map((e) => /* @__PURE__ */ (0, v.jsx)(yf, { run: e }, e.id))
+ }) : /* @__PURE__ */ (0, v.jsx)("p", {
+ className: "text-body-2-regular text-text-secondary",
+ children: "没有任务在跑。"
+ })
+ }),
+ a.length ? /* @__PURE__ */ (0, v.jsx)(xf, {
+ title: "被挡下的",
+ children: /* @__PURE__ */ (0, v.jsx)(Sf, { children: a.map((e) => /* @__PURE__ */ (0, v.jsx)(bf, { run: e }, e.id)) })
+ }) : null,
+ o.length ? /* @__PURE__ */ (0, v.jsx)(xf, {
+ title: "最近完成",
+ children: /* @__PURE__ */ (0, v.jsx)(Sf, { children: o.map((e) => /* @__PURE__ */ (0, v.jsx)(bf, { run: e }, e.id)) })
+ }) : null
+ ] })
+ ] });
+}
+//#endregion
+//#region src/react/boardui/components/application/settings/settings-rows.tsx
+function Tf({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, v.jsx)("div", {
+ className: Vd("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function bu({ className: e, children: t }) {
- return /* @__PURE__ */ (0, J.jsx)("p", {
- className: gu("w-full px-3 text-body-2-medium text-text-secondary", e),
+function Ef({ className: e, children: t }) {
+ return /* @__PURE__ */ (0, v.jsx)("p", {
+ className: Vd("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function xu({ label: e, description: t, children: n }) {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
- className: gu("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, J.jsxs)("div", {
+function Df({ label: e, description: t, children: n }) {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
+ className: Vd("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, v.jsxs)("div", {
className: "flex min-w-0 flex-col",
- children: [/* @__PURE__ */ (0, J.jsx)("p", {
+ children: [/* @__PURE__ */ (0, v.jsx)("p", {
className: "text-body-regular text-text-primary",
children: e
- }), t && /* @__PURE__ */ (0, J.jsx)("p", {
+ }), t && /* @__PURE__ */ (0, v.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: t
})]
@@ -16655,7 +18685,7 @@ function xu({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/button.tsx
-var Su = _u({
+var Of = Hd({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -16710,23 +18740,23 @@ var Su = _u({
].join(" ")
}
});
-function Cu({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
- return /* @__PURE__ */ (0, J.jsxs)("button", {
+function kf({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+ return /* @__PURE__ */ (0, v.jsxs)("button", {
ref: c,
type: s,
- className: gu(Su.base, Su.size[t], Su.variant[e], n && Su.iconOnlySize[t], o),
+ className: Vd(Of.base, Of.size[t], Of.variant[e], n && Of.iconOnlySize[t], o),
...l,
children: [
- r ? /* @__PURE__ */ (0, J.jsx)(r, {
- className: Su.icon[t],
+ r ? /* @__PURE__ */ (0, v.jsx)(r, {
+ className: Of.icon[t],
"aria-hidden": !0
}) : null,
- !n && a != null && /* @__PURE__ */ (0, J.jsx)("span", {
- className: Su.label[t],
+ !n && a != null && /* @__PURE__ */ (0, v.jsx)("span", {
+ className: Of.label[t],
children: a
}),
- !n && i ? /* @__PURE__ */ (0, J.jsx)(i, {
- className: Su.icon[t],
+ !n && i ? /* @__PURE__ */ (0, v.jsx)(i, {
+ className: Of.icon[t],
"aria-hidden": !0
}) : null
]
@@ -16734,14 +18764,14 @@ function Cu({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var wu = Symbol("default");
-function Tu({ values: e, children: t }) {
- for (let [n, r] of e) t = /*#__PURE__*/ w.createElement(n.Provider, { value: r }, t);
+var Af = Symbol("default");
+function jf({ values: e, children: t }) {
+ for (let [n, r] of e) t = /*#__PURE__*/ _.createElement(n.Provider, { value: r }, t);
return t;
}
-function Eu(e) {
+function Mf(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
- return (0, w.useMemo)(() => {
+ return (0, _.useMemo)(() => {
let e, l, u;
return e = typeof t == "function" ? t({
...s,
@@ -16773,11 +18803,11 @@ function Eu(e) {
c
]);
}
-function Du(e, t) {
- let n = (0, w.useContext)(e);
+function Nf(e, t) {
+ let n = (0, _.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || wu;
+ let e = t || Af;
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}.`);
@@ -16786,8 +18816,8 @@ function Du(e, t) {
}
return n;
}
-function Y(e, t, n) {
- let { ref: r, ...i } = Du(n, e.slot) || {}, a = nn((0, w.useMemo)(() => Rt(t, r), [t, r])), o = B(i, e);
+function Pf(e, t, n) {
+ let { ref: r, ...i } = Nf(n, e.slot) || {}, a = Or((0, _.useMemo)(() => lr(t, r), [t, r])), o = V(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,
@@ -16805,56 +18835,56 @@ function Y(e, t, n) {
...e.style
}), [o, a];
}
-function Ou(e = !0) {
- let [t, n] = (0, w.useState)(e), r = (0, w.useRef)(!1), i = (0, w.useCallback)((e) => {
+function Ff(e = !0) {
+ let [t, n] = (0, _.useState)(e), r = (0, _.useRef)(!1), i = (0, _.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
return z(() => {
r.current || n(!1);
}, []), [i, t];
}
-function ku(e) {
+function If(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Au(e, t, n) {
- let { render: r, ...i } = t, a = (0, w.useRef)(null), o = (0, w.useMemo)(() => Rt(n, a), [n, a]);
+function Lf(e, t, n) {
+ let { render: r, ...i } = t, a = (0, _.useRef)(null), o = (0, _.useMemo)(() => lr(n, a), [n, a]);
z(() => {}, [e, r]);
let s = {
...i,
ref: o
};
- return r ? r(s, void 0) : /*#__PURE__*/ w.createElement(e, s);
+ return r ? r(s, void 0) : /*#__PURE__*/ _.createElement(e, s);
}
-var ju = {}, Mu = new Proxy({}, { get(e, t) {
+var Rf = {}, zf = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = ju[t];
- return n || (n = /*#__PURE__*/ (0, w.forwardRef)(Au.bind(null, t)), ju[t] = n), n;
-} }), Nu = /*#__PURE__*/ (0, w.createContext)(null), Pu = /*#__PURE__*/ (0, w.createContext)(null), Fu = /*#__PURE__*/ (0, w.createContext)(null), Iu = {
+ let n = Rf[t];
+ return n || (n = /*#__PURE__*/ (0, _.forwardRef)(Lf.bind(null, t)), Rf[t] = n), n;
+} }), Bf = /*#__PURE__*/ (0, _.createContext)(null), $ = /*#__PURE__*/ (0, _.createContext)(null), Vf = /*#__PURE__*/ (0, _.createContext)(null), Hf = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return Lu(e, null, t);
+ return Uf(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return Lu(e, t, n);
+ return Uf(e, t, n);
}
};
-function Lu(e, t, n) {
- return T({
+function Uf(e, t, n) {
+ return mt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
children(t) {
- if (t.type === "content") return /*#__PURE__*/ w.createElement(w.Fragment, null);
+ if (t.type === "content") return /*#__PURE__*/ _.createElement(_.Fragment, null);
let r = t.render(t);
- return !n || t.type !== "item" ? r : /*#__PURE__*/ w.createElement(w.Fragment, null, n({
+ return !n || t.type !== "item" ? r : /*#__PURE__*/ _.createElement(_.Fragment, null, n({
type: "item",
key: t.key,
dropPosition: "before"
- }), r, Ru(e, t, n));
+ }), r, Wf(e, t, n));
}
});
}
-function Ru(e, t, n) {
+function Wf(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);
@@ -16868,24 +18898,24 @@ function Ru(e, t, n) {
key: r.key,
dropPosition: "after"
});
- /*#__PURE__*/ (0, w.isValidElement)(t) && s.push(/*#__PURE__*/ (0, w.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
+ /*#__PURE__*/ (0, _.isValidElement)(t) && s.push(/*#__PURE__*/ (0, _.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);
}
}
return s;
}
-var zu = /*#__PURE__*/ (0, w.createContext)(Iu), Bu = /*#__PURE__*/ (0, w.createContext)({}), Vu = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, Bu);
- let { elementType: n = "label", ...r } = e, i = Mu[n];
- return /*#__PURE__*/ w.createElement(i, {
+var Gf = /*#__PURE__*/ (0, _.createContext)(Hf), Kf = /*#__PURE__*/ (0, _.createContext)({}), qf = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, Kf);
+ let { elementType: n = "label", ...r } = e, i = zf[n];
+ return /*#__PURE__*/ _.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), Hu = /*#__PURE__*/ (0, w.createContext)(null), Uu = /*#__PURE__*/ (0, w.createContext)({}), Wu = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, Uu);
- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = qr(e, t);
- i = Ku(i, r);
- let { focusProps: o, isFocused: s, isFocusVisible: c } = Bo(e), { hoverProps: l, isHovered: u } = qo({
+}), Jf = /*#__PURE__*/ (0, _.createContext)(null), Yf = /*#__PURE__*/ (0, _.createContext)({}), Xf = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, Yf);
+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = ga(e, t);
+ i = Qf(i, r);
+ let { focusProps: o, isFocused: s, isFocusVisible: c } = uc(e), { hoverProps: l, isHovered: u } = _c({
...e,
isDisabled: e.isDisabled || r
}), d = {
@@ -16895,25 +18925,25 @@ var zu = /*#__PURE__*/ (0, w.createContext)(Iu), Bu = /*#__PURE__*/ (0, w.create
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Eu({
+ }, f = Mf({
...e,
values: d,
defaultClassName: "react-aria-Button"
- }), p = Ft(i.id), m = Ft(), h = i["aria-labelledby"];
+ }), p = or(i.id), m = or(), h = i["aria-labelledby"];
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
- let g = (0, w.useRef)(r);
- (0, w.useEffect)(() => {
+ let g = (0, _.useRef)(r);
+ (0, _.useEffect)(() => {
let e = { "aria-labelledby": h || p };
- (!g.current && s && r || g.current && s && !r) && wi(e, "assertive"), g.current = r;
+ (!g.current && s && r || g.current && s && !r) && qa(e, "assertive"), g.current = r;
}, [
r,
s,
h,
p
]);
- let _ = Cr(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ w.createElement(Mu.button, {
- ...B(_, f, i, o, l),
+ let v = H(e, { global: !0 });
+ return delete v.onClick, /*#__PURE__*/ _.createElement(zf.button, {
+ ...V(v, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
ref: t,
@@ -16926,69 +18956,69 @@ var zu = /*#__PURE__*/ (0, w.createContext)(Iu), Bu = /*#__PURE__*/ (0, w.create
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ w.createElement(Hu.Provider, { value: { id: m } }, f.children));
-}), Gu = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function Ku(e, t) {
+ }, /*#__PURE__*/ _.createElement(Jf.Provider, { value: { id: m } }, f.children));
+}), Zf = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function Qf(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !Gu.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !Zf.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 qu = /*#__PURE__*/ (0, w.createContext)({}), Ju = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- [e, t] = Y(e, t, qu);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Mu[`h${r}`];
- return /*#__PURE__*/ w.createElement(o, {
+var $f = /*#__PURE__*/ (0, _.createContext)({}), ep = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = Pf(e, t, $f);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = zf[`h${r}`];
+ return /*#__PURE__*/ _.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), Yu = /*#__PURE__*/ (0, w.createContext)({}), X = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, Yu);
- let { elementType: n = "span", ...r } = e, i = Mu[n];
- return /*#__PURE__*/ w.createElement(i, {
+}), tp = /*#__PURE__*/ (0, _.createContext)({}), np = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, tp);
+ let { elementType: n = "span", ...r } = e, i = zf[n];
+ return /*#__PURE__*/ _.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), Xu = /*#__PURE__*/ (0, w.createContext)(null), Z = /*#__PURE__*/ (0, w.createContext)(null), Q = /*#__PURE__*/ (0, w.createContext)(null), Zu = /*#__PURE__*/ (0, w.createContext)(null), Qu = /*#__PURE__*/ (0, w.createContext)(null);
-function $u(e, t) {
- let { validationBehavior: n } = Du(Z) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, w.useContext)(Zu), a = nn((0, w.useMemo)(() => Rt(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...ku(e),
+}), rp = /*#__PURE__*/ (0, _.createContext)(null), ip = /*#__PURE__*/ (0, _.createContext)(null), ap = /*#__PURE__*/ (0, _.createContext)(null), op = /*#__PURE__*/ (0, _.createContext)(null), sp = /*#__PURE__*/ (0, _.createContext)(null);
+function cp(e, t) {
+ let { validationBehavior: n } = Nf(ip) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, _.useContext)(op), a = Or((0, _.useMemo)(() => lr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...If(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
- return [i ? sa(o, i, a) : ea(o, oa(e), a), a];
+ return [i ? Mo(o, i, a) : wo(o, jo(e), a), a];
}
-var ed = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
+var lp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Y(r, t, Q);
- let [i, a] = $u(e, n);
- return /*#__PURE__*/ w.createElement(Qu.Provider, { value: {
+ [e, t] = Pf(r, t, ap);
+ let [i, a] = cp(e, n);
+ return /*#__PURE__*/ _.createElement(sp.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ w.createElement(td, {
+ } }, /*#__PURE__*/ _.createElement(up, {
...e,
ref: t
}));
-}), td = /*#__PURE__*/ (0, w.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, w.useContext)(Qu), { isFocused: p, isFocusVisible: m, focusProps: h } = Bo(), g = a || o, { hoverProps: _, isHovered: v } = qo({
+}), up = /*#__PURE__*/ (0, _.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, _.useContext)(sp), { isFocused: p, isFocusVisible: m, focusProps: h } = uc(), g = a || o, { hoverProps: v, isHovered: y } = _c({
...e,
isDisabled: g
- }), y = Eu({
+ }), b = Mf({
...e,
defaultClassName: u,
values: {
isSelected: i,
isIndeterminate: d || !1,
isPressed: s,
- isHovered: v,
+ isHovered: y,
isFocused: p,
isFocusVisible: m,
isDisabled: a,
@@ -16996,35 +19026,35 @@ var ed = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
isInvalid: c,
isRequired: f || !1
}
- }), b = Cr(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ w.createElement(Mu.label, {
- ...B(b, n, _, y),
+ }), x = H(e, { global: !0 });
+ return delete x.id, delete x.onClick, /*#__PURE__*/ _.createElement(zf.label, {
+ ...V(x, n, v, b),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
"data-indeterminate": d || void 0,
"data-pressed": s || void 0,
- "data-hovered": v || void 0,
+ "data-hovered": y || void 0,
"data-focused": p || void 0,
"data-focus-visible": m || void 0,
"data-disabled": a || void 0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": f || void 0
- }, /*#__PURE__*/ w.createElement(da, { elementType: "span" }, /*#__PURE__*/ w.createElement("input", {
- ...B(r, h),
+ }, /*#__PURE__*/ _.createElement(Io, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
+ ...V(r, h),
ref: l
- })), y.children);
-}), nd = /*#__PURE__*/ (0, w.createContext)({}), rd = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- [e, t] = Y(e, t, nd);
+ })), b.children);
+}), dp = /*#__PURE__*/ (0, _.createContext)({}), fp = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = Pf(e, t, dp);
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 } = qo({
+ let { hoverProps: l, isHovered: u } = _c({
onHoverStart: a,
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = Bo({ within: !0 }), m = Eu({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = uc({ within: !0 }), m = Mf({
...e,
values: {
isHovered: u,
@@ -17035,8 +19065,8 @@ var ed = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ w.createElement(Mu.div, {
- ...B(c, p, l),
+ return /*#__PURE__*/ _.createElement(zf.div, {
+ ...V(c, p, l),
...m,
ref: t,
role: e.role ?? "group",
@@ -17048,18 +19078,18 @@ var ed = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), id = /*#__PURE__*/ (0, w.createContext)({}), ad = (e) => {
+}), pp = /*#__PURE__*/ (0, _.createContext)({}), mp = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, od = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, id);
- let { hoverProps: n, isHovered: r } = qo({
+}, hp = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, pp);
+ let { hoverProps: n, isHovered: r } = _c({
...e,
isDisabled: e.disabled
- }), { isFocused: i, isFocusVisible: a, focusProps: o } = Bo({
+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = uc({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Eu({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Mf({
...e,
values: {
isHovered: r,
@@ -17070,8 +19100,8 @@ var ed = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ w.createElement(Mu.input, {
- ...B(ad(e), o, n),
+ return /*#__PURE__*/ _.createElement(zf.input, {
+ ...V(mp(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -17080,8 +19110,8 @@ var ed = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), sd = {};
-sd = {
+}), gp = {};
+gp = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -17089,8 +19119,8 @@ sd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var cd = {};
-cd = {
+var _p = {};
+_p = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -17098,8 +19128,8 @@ cd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var ld = {};
-ld = {
+var vp = {};
+vp = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -17107,8 +19137,8 @@ ld = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var ud = {};
-ud = {
+var yp = {};
+yp = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -17116,8 +19146,8 @@ ud = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var dd = {};
-dd = {
+var bp = {};
+bp = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -17125,8 +19155,8 @@ dd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var fd = {};
-fd = {
+var xp = {};
+xp = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -17134,8 +19164,8 @@ fd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var pd = {};
-pd = {
+var Sp = {};
+Sp = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -17143,8 +19173,8 @@ pd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var md = {};
-md = {
+var Cp = {};
+Cp = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -17152,8 +19182,8 @@ md = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var hd = {};
-hd = {
+var wp = {};
+wp = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -17161,8 +19191,8 @@ hd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var gd = {};
-gd = {
+var Tp = {};
+Tp = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -17170,8 +19200,8 @@ gd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var _d = {};
-_d = {
+var Ep = {};
+Ep = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -17179,8 +19209,8 @@ _d = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var vd = {};
-vd = {
+var Dp = {};
+Dp = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -17188,8 +19218,8 @@ vd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var yd = {};
-yd = {
+var Op = {};
+Op = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -17197,8 +19227,8 @@ yd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var bd = {};
-bd = {
+var kp = {};
+kp = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -17206,8 +19236,8 @@ bd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var xd = {};
-xd = {
+var Ap = {};
+Ap = {
colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
@@ -17215,8 +19245,8 @@ xd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Sd = {};
-Sd = {
+var jp = {};
+jp = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -17224,8 +19254,8 @@ Sd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Cd = {};
-Cd = {
+var Mp = {};
+Mp = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -17233,8 +19263,8 @@ Cd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var wd = {};
-wd = {
+var Np = {};
+Np = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -17242,8 +19272,8 @@ wd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Td = {};
-Td = {
+var Pp = {};
+Pp = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -17251,8 +19281,8 @@ Td = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var Ed = {};
-Ed = {
+var Fp = {};
+Fp = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -17260,8 +19290,8 @@ Ed = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Dd = {};
-Dd = {
+var Ip = {};
+Ip = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -17269,8 +19299,8 @@ Dd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Od = {};
-Od = {
+var Lp = {};
+Lp = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -17278,8 +19308,8 @@ Od = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var kd = {};
-kd = {
+var Rp = {};
+Rp = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -17287,8 +19317,8 @@ kd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Ad = {};
-Ad = {
+var zp = {};
+zp = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -17296,8 +19326,8 @@ Ad = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var jd = {};
-jd = {
+var Bp = {};
+Bp = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -17305,8 +19335,8 @@ jd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var Md = {};
-Md = {
+var Vp = {};
+Vp = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -17314,8 +19344,8 @@ Md = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var Nd = {};
-Nd = {
+var Hp = {};
+Hp = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -17323,8 +19353,8 @@ Nd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var Pd = {};
-Pd = {
+var Up = {};
+Up = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -17332,8 +19362,8 @@ Pd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var Fd = {};
-Fd = {
+var Wp = {};
+Wp = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -17341,8 +19371,8 @@ Fd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var Id = {};
-Id = {
+var Gp = {};
+Gp = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -17350,8 +19380,8 @@ Id = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var Ld = {};
-Ld = {
+var Kp = {};
+Kp = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -17359,8 +19389,8 @@ Ld = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var Rd = {};
-Rd = {
+var qp = {};
+qp = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -17368,8 +19398,8 @@ Rd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var zd = {};
-zd = {
+var Jp = {};
+Jp = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -17377,8 +19407,8 @@ zd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var Bd = {};
-Bd = {
+var Yp = {};
+Yp = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -17386,52 +19416,52 @@ Bd = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var Vd = {};
-Vd = {
- "ar-AE": sd,
- "bg-BG": cd,
- "cs-CZ": ld,
- "da-DK": ud,
- "de-DE": dd,
- "el-GR": fd,
- "en-US": pd,
- "es-ES": md,
- "et-EE": hd,
- "fi-FI": gd,
- "fr-FR": _d,
- "he-IL": vd,
- "hr-HR": yd,
- "hu-HU": bd,
- "it-IT": xd,
- "ja-JP": Sd,
- "ko-KR": Cd,
- "lt-LT": wd,
- "lv-LV": Td,
- "nb-NO": Ed,
- "nl-NL": Dd,
- "pl-PL": Od,
- "pt-BR": kd,
- "pt-PT": Ad,
- "ro-RO": jd,
- "ru-RU": Md,
- "sk-SK": Nd,
- "sl-SI": Pd,
- "sr-SP": Fd,
- "sv-SE": Id,
- "tr-TR": Ld,
- "uk-UA": Rd,
- "zh-CN": zd,
- "zh-TW": Bd
+var Xp = {};
+Xp = {
+ "ar-AE": gp,
+ "bg-BG": _p,
+ "cs-CZ": vp,
+ "da-DK": yp,
+ "de-DE": bp,
+ "el-GR": xp,
+ "en-US": Sp,
+ "es-ES": Cp,
+ "et-EE": wp,
+ "fi-FI": Tp,
+ "fr-FR": Ep,
+ "he-IL": Dp,
+ "hr-HR": Op,
+ "hu-HU": kp,
+ "it-IT": Ap,
+ "ja-JP": jp,
+ "ko-KR": Mp,
+ "lt-LT": Np,
+ "lv-LV": Pp,
+ "nb-NO": Fp,
+ "nl-NL": Ip,
+ "pl-PL": Lp,
+ "pt-BR": Rp,
+ "pt-PT": zp,
+ "ro-RO": Bp,
+ "ru-RU": Vp,
+ "sk-SK": Hp,
+ "sl-SI": Up,
+ "sr-SP": Wp,
+ "sv-SE": Gp,
+ "tr-TR": Kp,
+ "uk-UA": qp,
+ "zh-CN": Jp,
+ "zh-TW": Yp
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var Hd = /*#__PURE__*/ (0, w.createContext)({}), Ud = /*#__PURE__*/ (0, w.createContext)(null), Wd = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- let { render: n } = (0, w.useContext)(Ud);
- return /*#__PURE__*/ w.createElement(w.Fragment, null, n(e, t));
+var Zp = /*#__PURE__*/ (0, _.createContext)({}), Qp = /*#__PURE__*/ (0, _.createContext)(null), $p = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ let { render: n } = (0, _.useContext)(Qp);
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, n(e, t));
});
-function Gd(e, t) {
- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, w.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ w.createElement(Wd, { target: e });
+function em(e, t) {
+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, _.useCallback)((e) => {
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ _.createElement($p, { target: e });
}, [
t?.target,
r,
@@ -17439,7 +19469,7 @@ function Gd(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function Kd(e, t, n) {
+function tm(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;
@@ -17458,19 +19488,19 @@ function Kd(e, t, n) {
}
i = e ?? t ?? i;
}
- return (0, w.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
+ return (0, _.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var qd = /*#__PURE__*/ (0, w.createContext)({}), Jd = /*#__PURE__*/ (0, w.createContext)(null);
-function Yd(e) {
- let t = (0, w.useRef)({});
- return /*#__PURE__*/ w.createElement(Jd.Provider, { value: t }, e.children);
+var nm = /*#__PURE__*/ (0, _.createContext)({}), rm = /*#__PURE__*/ (0, _.createContext)(null);
+function im(e) {
+ let t = (0, _.useRef)({});
+ return /*#__PURE__*/ _.createElement(rm.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var Xd = /*#__PURE__*/ (0, w.createContext)({ isSelected: !1 }), Zd = /*#__PURE__*/ (0, w.createContext)({});
-(class extends p {
+var am = /*#__PURE__*/ (0, _.createContext)({ isSelected: !1 }), om = /*#__PURE__*/ (0, _.createContext)({});
+(class extends at {
static {
this.type = "separator";
}
@@ -17485,13 +19515,13 @@ var Xd = /*#__PURE__*/ (0, w.createContext)({ isSelected: !1 }), Zd = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function Qd(e) {
- let t = w.version.split(".");
+function sm(e) {
+ let t = _.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 $d = class {
+var cm = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -17535,23 +19565,23 @@ var $d = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, ef = class e extends Set {
+}, lm = 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 tf(e, t) {
+function um(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function nf(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, w.useRef)(!1), [, s] = (0, w.useState)(!1), c = (0, w.useRef)(null), l = (0, w.useRef)(null), [, u] = (0, w.useState)(null), [d, f] = aa((0, w.useMemo)(() => rf(e.selectedKeys), [e.selectedKeys]), (0, w.useMemo)(() => rf(e.defaultSelectedKeys, new ef()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, w.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, w.useState)(i);
+function dm(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, _.useRef)(!1), [, s] = (0, _.useState)(!1), c = (0, _.useRef)(null), l = (0, _.useRef)(null), [, u] = (0, _.useState)(null), [d, f] = Ao((0, _.useMemo)(() => fm(e.selectedKeys), [e.selectedKeys]), (0, _.useMemo)(() => fm(e.defaultSelectedKeys, new lm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, _.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, _.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
- let g = (0, w.useRef)(i);
- return (0, w.useEffect)(() => {
+ let g = (0, _.useRef)(i);
+ return (0, _.useEffect)(() => {
i !== g.current && (h(i), g.current = i);
}, [i]), {
selectionMode: t,
@@ -17575,18 +19605,18 @@ function nf(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !tf(e, d)) && f(e);
+ (r || !um(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function rf(e, t) {
- return e ? e === "all" ? "all" : new ef(e) : t;
+function fm(e, t) {
+ return e ? e === "all" ? "all" : new lm(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var af = class e {
+var pm = 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;
}
@@ -17642,7 +19672,7 @@ var af = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Do(this.collection, n, e) < 0) && (e = n);
+ (!e || n && Xs(this.collection, n, e) < 0) && (e = n);
}
return e?.key ?? null;
}
@@ -17650,7 +19680,7 @@ var af = class e {
let e = null;
for (let t of this.state.selectedKeys) {
let n = this.collection.getItem(t);
- (!e || n && Do(this.collection, n, e) > 0) && (e = n);
+ (!e || n && Xs(this.collection, n, e) > 0) && (e = n);
}
return e?.key ?? null;
}
@@ -17669,10 +19699,10 @@ var af = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new ef([t], t, t);
+ if (this.state.selectedKeys === "all") n = new lm([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new ef(e, r, t);
+ n = new lm(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);
}
@@ -17680,7 +19710,7 @@ var af = class e {
}
getKeyRange(e, t) {
let n = this.collection.getItem(e), r = this.collection.getItem(t);
- return n && r ? Do(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
+ return n && r ? Xs(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);
@@ -17706,19 +19736,19 @@ var af = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new ef(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new lm(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 ef([t], t, t) : new ef();
+ let n = this.canSelectItem(t) ? new lm([t], t, t) : new lm();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new ef();
+ let t = new lm();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -17730,7 +19760,7 @@ var af = 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(To(wo(i, e))?.key ?? null);
+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Js(qs(i, e))?.key ?? null);
}
r = e.getKeyAfter(r);
}
@@ -17741,7 +19771,7 @@ var af = 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 ef());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new lm());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -17782,13 +19812,13 @@ var af = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, of = class {
+}, mm = class {
build(e, t) {
- return this.context = t, sf(() => this.iterateCollection(e));
+ return this.context = t, hm(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
- if (w.isValidElement(t) && t.type === w.Fragment) yield* this.iterateCollection({
+ if (_.isValidElement(t) && t.type === _.Fragment) yield* this.iterateCollection({
children: t.props.children,
items: n
});
@@ -17801,7 +19831,7 @@ var af = class e {
}, { renderer: t }), e++;
} else {
let e = [];
- w.Children.forEach(t, (t) => {
+ _.Children.forEach(t, (t) => {
t && e.push(t);
});
let n = 0;
@@ -17829,9 +19859,9 @@ var af = class e {
return { renderer: t.renderer || e.renderer };
}
*getFullNode(e, t, n, r) {
- if (w.isValidElement(e.element) && e.element.type === w.Fragment) {
+ if (_.isValidElement(e.element) && e.element.type === _.Fragment) {
let i = [];
- w.Children.forEach(e.element.props.children, (e) => {
+ _.Children.forEach(e.element.props.children, (e) => {
i.push(e);
});
let a = e.index ?? 0;
@@ -17850,7 +19880,7 @@ var af = class e {
}
i = t.renderer(e.value);
}
- if (w.isValidElement(i)) {
+ if (_.isValidElement(i)) {
let a = i.type;
if (typeof a != "function" && typeof a.getCollectionNode != "function") {
let e = i.type;
@@ -17866,10 +19896,10 @@ var af = class e {
...a,
key: l,
index: s,
- wrapper: cf(e.wrapper, a.wrapper)
+ wrapper: gm(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 <${lf(t.type)}> in <${lf(r?.type ?? "unknown parent type")}>. Only <${lf(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 <${_m(t.type)}> in <${_m(r?.type ?? "unknown parent type")}>. Only <${_m(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -17891,7 +19921,7 @@ var af = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: sf(function* () {
+ childNodes: hm(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -17910,7 +19940,7 @@ var af = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function sf(e) {
+function hm(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -17918,19 +19948,19 @@ function sf(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function cf(e, t) {
+function gm(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function lf(e) {
+function _m(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function uf(e, t, n) {
- let r = (0, w.useMemo)(() => new of(), []), { children: i, items: a, collection: o } = e;
- return (0, w.useMemo)(() => o || t(r.build({
+function vm(e, t, n) {
+ let r = (0, _.useMemo)(() => new mm(), []), { children: i, items: a, collection: o } = e;
+ return (0, _.useMemo)(() => o || t(r.build({
children: i,
items: a
}, n)), [
@@ -17944,29 +19974,29 @@ function uf(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function df(e) {
- let { filter: t, layoutDelegate: n } = e, r = nf(e), i = (0, w.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = uf(e, (0, w.useCallback)((e) => t ? new $d(t(e)) : new $d(e), [t]), (0, w.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, w.useMemo)(() => new af(a, r, { layoutDelegate: n }), [
+function ym(e) {
+ let { filter: t, layoutDelegate: n } = e, r = dm(e), i = (0, _.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = vm(e, (0, _.useCallback)((e) => t ? new cm(t(e)) : new cm(e), [t]), (0, _.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, _.useMemo)(() => new pm(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return pf(a, o), {
+ return xm(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function ff(e, t) {
- let n = (0, w.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return pf(n, r), {
+function bm(e, t) {
+ let n = (0, _.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
+ return xm(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function pf(e, t) {
- let n = (0, w.useRef)(null);
- (0, w.useEffect)(() => {
+function xm(e, t) {
+ let n = (0, _.useRef)(null);
+ (0, _.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
let r = n.current.getKeyAfter(t.focusedKey), i = null;
for (; r != null;) {
@@ -17992,15 +20022,15 @@ function pf(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function mf(e, t) {
- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, w.useRef)(null), s = Un((e) => {
+function Sm(e, t) {
+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, _.useRef)(null), s = mi((e) => {
for (let t of e) t.isIntersecting && r && r();
});
z(() => {
if (t.current) {
let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;
o.current = new IntersectionObserver(s, {
- root: Di(t?.current),
+ root: Xa(t?.current),
rootMargin: n
}), o.current.observe(t.current);
}
@@ -18016,42 +20046,42 @@ function mf(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var hf = /*#__PURE__*/ (0, w.createContext)(null), gf = /*#__PURE__*/ (0, w.createContext)(null), _f = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- [e, t] = Y(e, t, hf);
- let n = (0, w.useContext)(gf);
- return n ? /*#__PURE__*/ w.createElement(yf, {
+var Cm = /*#__PURE__*/ (0, _.createContext)(null), wm = /*#__PURE__*/ (0, _.createContext)(null), Tm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = Pf(e, t, Cm);
+ let n = (0, _.useContext)(wm);
+ return n ? /*#__PURE__*/ _.createElement(Dm, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ w.createElement(bn, { content: /*#__PURE__*/ w.createElement(jn, e) }, (n) => /*#__PURE__*/ w.createElement(vf, {
+ }) : /*#__PURE__*/ _.createElement(Gr, { content: /*#__PURE__*/ _.createElement(ni, e) }, (n) => /*#__PURE__*/ _.createElement(Em, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function vf({ props: e, listBoxRef: t, collection: n }) {
+function Em({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, w.useContext)(zu), i = df({
+ let { layoutDelegate: r } = (0, _.useContext)(Gf), i = ym({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ w.createElement(yf, {
+ return /*#__PURE__*/ _.createElement(Dm, {
state: i,
props: e,
listBoxRef: t
});
}
-function yf({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Y(t, n, Nu);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = ff(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = nr(), { disabledBehavior: p, disabledKeys: m } = l, h = Mo({
+function Dm({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = Pf(t, n, Bf);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = bm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Di(), { disabledBehavior: p, disabledKeys: m } = l, h = tc({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, w.useContext)(zu), b = (0, w.useMemo)(() => t.keyboardDelegate || new Oa({
+ }), { isVirtualized: g, layoutDelegate: v, dropTargetDelegate: y, CollectionRoot: b } = (0, _.useContext)(Gf), x = (0, _.useMemo)(() => t.keyboardDelegate || new Qo({
collection: c,
collator: h,
ref: n,
@@ -18060,7 +20090,7 @@ function yf({ state: e, props: t, listBoxRef: n }) {
layout: i,
orientation: a,
direction: f,
- layoutDelegate: _
+ layoutDelegate: v
}), [
c,
h,
@@ -18071,134 +20101,134 @@ function yf({ state: e, props: t, listBoxRef: n }) {
f,
t.keyboardDelegate,
i,
- _
- ]), { listBoxProps: x } = es({
+ v
+ ]), { listBoxProps: S } = wc({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
- keyboardDelegate: b,
+ keyboardDelegate: x,
isVirtualized: g
}, s, n);
- (0, w.useRef)(u), (0, w.useRef)(d), (0, w.useEffect)(() => {}, [u, d]);
- let S, C, T, ee = !1, E = null, D = (0, w.useRef)(null);
+ (0, _.useRef)(u), (0, _.useRef)(d), (0, _.useEffect)(() => {}, [u, d]);
+ let C, w, T, E = !1, D = null, O = (0, _.useRef)(null);
if (u && r) {
- S = r.useDraggableCollectionState({
+ C = r.useDraggableCollectionState({
collection: c,
selectionManager: l,
- preview: r.renderDragPreview ? D : void 0
- }), r.useDraggableCollection({}, S, n);
+ preview: r.renderDragPreview ? O : void 0
+ }), r.useDraggableCollection({}, C, n);
let e = r.DragPreview;
- E = r.renderDragPreview ? /*#__PURE__*/ w.createElement(e, { ref: D }, r.renderDragPreview) : null;
+ D = r.renderDragPreview ? /*#__PURE__*/ _.createElement(e, { ref: O }, r.renderDragPreview) : null;
}
if (d && r) {
- C = r.useDroppableCollectionState({
+ w = r.useDroppableCollectionState({
collection: c,
selectionManager: l
});
- let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(c, n, {
+ let e = r.dropTargetDelegate || y || new r.ListDropTargetDelegate(c, n, {
orientation: a,
layout: i,
direction: f
});
T = r.useDroppableCollection({
- keyboardDelegate: b,
+ keyboardDelegate: x,
dropTargetDelegate: e
- }, C, n), ee = C.isDropTarget({ type: "root" });
+ }, w, n), E = w.isDropTarget({ type: "root" });
}
- let { focusProps: O, isFocused: k, isFocusVisible: A } = Bo(), j = s.collection.size === 0, M = {
- isDropTarget: ee,
+ let { focusProps: k, isFocused: A, isFocusVisible: ee } = uc(), j = s.collection.size === 0, te = {
+ isDropTarget: E,
isEmpty: j,
- isFocused: k,
- isFocusVisible: A,
+ isFocused: A,
+ isFocusVisible: ee,
layout: t.layout || "stack",
orientation: a,
state: s
- }, te = Eu({
+ }, ne = Mf({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
- values: M
- }), ne = null;
- j && t.renderEmptyState && (ne = /*#__PURE__*/ w.createElement("div", {
+ values: te
+ }), re = null;
+ j && t.renderEmptyState && (re = /*#__PURE__*/ _.createElement("div", {
role: "option",
style: { display: "contents" }
- }, t.renderEmptyState(M)));
- let N = Cr(t, { global: !0 });
- return /*#__PURE__*/ w.createElement(Qr, null, /*#__PURE__*/ w.createElement(Mu.div, {
- ...B(N, te, x, O, T?.collectionProps),
+ }, t.renderEmptyState(te)));
+ let M = H(t, { global: !0 });
+ return /*#__PURE__*/ _.createElement(xa, null, /*#__PURE__*/ _.createElement(zf.div, {
+ ...V(M, ne, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
onScroll: t.onScroll,
- "data-drop-target": ee || void 0,
+ "data-drop-target": E || void 0,
"data-empty": j || void 0,
- "data-focused": k || void 0,
- "data-focus-visible": A || void 0,
+ "data-focused": A || void 0,
+ "data-focus-visible": ee || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ w.createElement(Tu, { values: [
- [hf, t],
- [gf, s],
- [Hd, {
+ }, /*#__PURE__*/ _.createElement(jf, { values: [
+ [Cm, t],
+ [wm, s],
+ [Zp, {
dragAndDropHooks: r,
- dragState: S,
- dropState: C
+ dragState: C,
+ dropState: w
}],
- [Zd, { elementType: "div" }],
- [Ud, { render: Sf }],
- [Fu, {
+ [om, { elementType: "div" }],
+ [Qp, { render: Am }],
+ [Vf, {
name: "ListBoxSection",
- render: bf
+ render: Om
}]
- ] }, /*#__PURE__*/ w.createElement(Yd, null, /*#__PURE__*/ w.createElement(y, {
+ ] }, /*#__PURE__*/ _.createElement(im, null, /*#__PURE__*/ _.createElement(b, {
collection: c,
scrollRef: n,
- persistedKeys: Kd(l, r, C),
- renderDropIndicator: Gd(r, C)
- }))), ne, E));
+ persistedKeys: tm(l, r, w),
+ renderDropIndicator: em(r, w)
+ }))), re, D));
}
-function bf(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, w.useContext)(gf), { dragAndDropHooks: a, dropState: o } = (0, w.useContext)(Hd), { CollectionBranch: s } = (0, w.useContext)(zu), [c, l] = Ou(), { headingProps: u, groupProps: d } = ts({
+function Om(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, _.useContext)(wm), { dragAndDropHooks: a, dropState: o } = (0, _.useContext)(Zp), { CollectionBranch: s } = (0, _.useContext)(Gf), [c, l] = Ff(), { headingProps: u, groupProps: d } = Tc({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Eu({
+ }), f = Mf({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
- }), p = Cr(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ w.createElement(Mu.section, {
- ...B(p, f, d),
+ }), p = H(e, { global: !0 });
+ return delete p.id, /*#__PURE__*/ _.createElement(zf.section, {
+ ...V(p, f, d),
ref: t
- }, /*#__PURE__*/ w.createElement(qd.Provider, { value: {
+ }, /*#__PURE__*/ _.createElement(nm.Provider, { value: {
...u,
ref: c
- } }, /*#__PURE__*/ w.createElement(s, {
+ } }, /*#__PURE__*/ _.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: Gd(a, o)
+ renderDropIndicator: em(a, o)
})));
}
-var xf = /*#__PURE__*/ On(g, function(e, t, n) {
- let r = nn(t), i = (0, w.useContext)(gf), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, w.useContext)(Hd), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = ns({
+var km = /*#__PURE__*/ $r(ct, function(e, t, n) {
+ let r = Or(t), i = (0, _.useContext)(wm), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, _.useContext)(Zp), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ec({
key: n.key,
"aria-label": e?.["aria-label"]
- }, i, r), { hoverProps: p, isHovered: m } = qo({
+ }, i, r), { hoverProps: p, isHovered: m } = _c({
isDisabled: !f.allowsSelection && !f.hasAction && !c,
onHoverStart: n.props.onHoverStart,
onHoverChange: n.props.onHoverChange,
onHoverEnd: n.props.onHoverEnd
- }), { keyboardProps: h } = tn(e), { focusProps: g } = V(e), _ = null;
- o && a && (_ = a.useDraggableItem({
+ }), { keyboardProps: h } = Dr(e), { focusProps: g } = pr(e), v = null;
+ o && a && (v = a.useDraggableItem({
key: n.key,
hasAction: f.hasAction
}, o));
- let v = null;
- s && a && (v = a.useDroppableItem({ target: {
+ let y = null;
+ s && a && (y = a.useDroppableItem({ target: {
type: "item",
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Eu({
+ let b = o && o.isDragging(n.key), x = Mf({
...e,
id: void 0,
children: e.children,
@@ -18209,16 +20239,16 @@ var xf = /*#__PURE__*/ On(g, function(e, t, n) {
selectionMode: i.selectionManager.selectionMode,
selectionBehavior: i.selectionManager.selectionBehavior,
allowsDragging: !!o,
- isDragging: y,
- isDropTarget: v?.isDropTarget
+ isDragging: b,
+ isDropTarget: y?.isDropTarget
}
});
- (0, w.useEffect)(() => {
+ (0, _.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let x = e.href ? Mu.a : Mu.div, S = Cr(e, { global: !0 });
- return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ w.createElement(x, {
- ...B(S, b, l, p, h, g, _?.dragProps, v?.dropProps),
+ let S = e.href ? zf.a : zf.div, C = H(e, { global: !0 });
+ return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ _.createElement(S, {
+ ...V(C, x, l, p, h, g, v?.dragProps, y?.dropProps),
ref: r,
"data-allows-dragging": !!o || void 0,
"data-selected": f.isSelected || void 0,
@@ -18227,32 +20257,32 @@ var xf = /*#__PURE__*/ On(g, function(e, t, n) {
"data-focused": f.isFocused || void 0,
"data-focus-visible": f.isFocusVisible || void 0,
"data-pressed": f.isPressed || void 0,
- "data-dragging": y || void 0,
- "data-drop-target": v?.isDropTarget || void 0,
+ "data-dragging": b || void 0,
+ "data-drop-target": y?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ w.createElement(Tu, { values: [[Yu, { slots: {
- [wu]: u,
+ }, /*#__PURE__*/ _.createElement(jf, { values: [[tp, { slots: {
+ [Af]: u,
label: u,
description: d
- } }], [Xd, { isSelected: f.isSelected }]] }, b.children));
+ } }], [am, { isSelected: f.isSelected }]] }, x.children));
});
-function Sf(e, t) {
- t = nn(t);
- let { dragAndDropHooks: n, dropState: r } = (0, w.useContext)(Hd), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ w.createElement(wf, {
+function Am(e, t) {
+ t = Or(t);
+ let { dragAndDropHooks: n, dropState: r } = (0, _.useContext)(Zp), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ _.createElement(Mm, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Cf(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Eu({
+function jm(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Mf({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ w.createElement(w.Fragment, null, /*#__PURE__*/ w.createElement(Mu.div, {
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(zf.div, {
...n,
...a,
role: "option",
@@ -18260,10 +20290,10 @@ function Cf(e, t) {
"data-drop-target": r || void 0
}));
}
-var wf = /*#__PURE__*/ (0, w.forwardRef)(Cf);
-On(h, function(e, t, n) {
- let r = (0, w.useContext)(gf), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, w.useRef)(null);
- mf((0, w.useMemo)(() => ({
+var Mm = /*#__PURE__*/ (0, _.forwardRef)(jm);
+$r(st, function(e, t, n) {
+ let r = (0, _.useContext)(wm), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, _.useRef)(null);
+ Sm((0, _.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -18273,21 +20303,21 @@ On(h, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Eu({
+ let l = Mf({
...s,
id: void 0,
children: n.rendered,
defaultClassName: "react-aria-ListBoxLoadingIndicator",
values: void 0
});
- return /*#__PURE__*/ w.createElement(w.Fragment, null, /*#__PURE__*/ w.createElement("div", {
+ return /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement("div", {
style: {
position: "relative",
width: 0,
height: 0
},
- inert: Qd(!0)
- }, /*#__PURE__*/ w.createElement("div", {
+ inert: sm(!0)
+ }, /*#__PURE__*/ _.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
style: {
@@ -18295,8 +20325,8 @@ On(h, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ w.createElement(w.Fragment, null, /*#__PURE__*/ w.createElement(Mu.div, {
- ...B(Cr(e, { global: !0 }), { tabIndex: -1 }),
+ })), i && l.children && /*#__PURE__*/ _.createElement(_.Fragment, null, /*#__PURE__*/ _.createElement(zf.div, {
+ ...V(H(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
ref: t
@@ -18304,21 +20334,21 @@ On(h, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Tf = /*#__PURE__*/ (0, w.createContext)({ placement: "bottom" });
+var Nm = /*#__PURE__*/ (0, _.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Ef(e) {
- let [t, n] = aa(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, w.useState)(null);
+function Pm(e) {
+ let [t, n] = Ao(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, _.useState)(null);
return {
isOpen: t,
setOpen: n,
- open: (0, w.useCallback)(() => {
+ open: (0, _.useCallback)(() => {
n(!0);
}, [n]),
- close: (0, w.useCallback)(() => {
+ close: (0, _.useCallback)(() => {
n(!1);
}, [n]),
- toggle: (0, w.useCallback)(() => {
+ toggle: (0, _.useCallback)(() => {
n(!t);
}, [n, t]),
point: r,
@@ -18327,14 +20357,14 @@ function Ef(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function Df(e, t = !0) {
- let [n, r] = (0, w.useState)(!0), i = n && t;
+function Fm(e, t = !0) {
+ let [n, r] = (0, _.useState)(!0), i = n && t;
return z(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), kf(e, i, (0, w.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), Lm(e, i, (0, _.useCallback)(() => r(!1), [])), i;
}
-function Of(e, t) {
- let [n, r] = (0, w.useState)(t ? "open" : "closed");
+function Im(e, t) {
+ let [n, r] = (0, _.useState)(t ? "open" : "closed");
switch (n) {
case "open":
t || r("exiting");
@@ -18343,11 +20373,11 @@ function Of(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return kf(e, i, (0, w.useCallback)(() => {
+ return Lm(e, i, (0, _.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function kf(e, t, n) {
+function Lm(e, t, n) {
z(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -18361,7 +20391,7 @@ function kf(e, t, n) {
}
let r = !1;
return Promise.allSettled(t.map((e) => e.finished)).then(() => {
- r || (0, gn.flushSync)(() => {
+ r || (0, Vr.flushSync)(() => {
n();
});
}), () => {
@@ -18376,9 +20406,9 @@ function kf(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Af = /*#__PURE__*/ (0, w.createContext)(null), jf = /*#__PURE__*/ (0, w.createContext)(null), Mf = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- [e, t] = Y(e, t, Af);
- let n = (0, w.useContext)(Ff), r = Ef(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Of(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = dn(), { direction: c } = nr();
+var Rm = /*#__PURE__*/ (0, _.createContext)(null), zm = /*#__PURE__*/ (0, _.createContext)(null), Bm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = Pf(e, t, Rm);
+ let n = (0, _.useContext)(Um), r = Pm(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Im(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Ir(), { direction: c } = Di();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -18387,9 +20417,9 @@ var Af = /*#__PURE__*/ (0, w.createContext)(null), jf = /*#__PURE__*/ (0, w.crea
isEntering: !1,
isExiting: !1,
defaultChildren: null
- })), /*#__PURE__*/ w.createElement(w.Fragment, null, t);
+ })), /*#__PURE__*/ _.createElement(_.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ w.createElement(Nf, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ _.createElement(Vm, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -18398,13 +20428,13 @@ var Af = /*#__PURE__*/ (0, w.createContext)(null), jf = /*#__PURE__*/ (0, w.crea
dir: c
});
});
-function Nf({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, w.useRef)(null), o = (0, w.useRef)(null), s = (0, w.useContext)(jf), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = wc({
+function Vm({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, _.useRef)(null), o = (0, _.useRef)(null), s = (0, _.useContext)(zm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jl({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = Df(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Eu({
+ }, e), m = i.popoverRef, h = Fm(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, v = Mf({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -18413,117 +20443,117 @@ function Nf({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
isEntering: g,
isExiting: t
}
- }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, w.useState)(i.trigger === "PreviewTrigger");
+ }), y = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [b, x] = (0, _.useState)(i.trigger === "PreviewTrigger");
z(() => {
- m.current && b(v && !m.current.querySelector("[role=dialog]"));
- }, [m, v]), (0, w.useEffect)(() => {
- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || vt() !== "pointer") && m.current && !le(m.current) && Ot(m.current);
+ m.current && x(y && !m.current.querySelector("[role=dialog]"));
+ }, [m, y]), (0, _.useEffect)(() => {
+ b && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Un() !== "pointer") && m.current && !Mt(m.current) && $n(m.current);
}, [
- y,
+ b,
m,
i.trigger
]);
- let x = (0, w.useMemo)(() => {
- let e = _.children;
- if (r) for (let t of r) e = /*#__PURE__*/ w.createElement(t.Provider, { value: null }, e);
+ let S = (0, _.useMemo)(() => {
+ let e = v.children;
+ if (r) for (let t of r) e = /*#__PURE__*/ _.createElement(t.Provider, { value: null }, e);
return e;
- }, [_.children, r]), [S, C] = (0, w.useState)(null), T = (0, w.useCallback)(() => {
- i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");
+ }, [v.children, r]), [C, w] = (0, _.useState)(null), T = (0, _.useCallback)(() => {
+ i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- z(T, [T]), is({
- ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
+ z(T, [T]), Oc({
+ ref: v.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
- let ee = {
+ let E = {
...l.style,
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
- ..._.style,
- "--trigger-width": _.style?.["--trigger-width"] || S
- }, E = /*#__PURE__*/ w.createElement(Mu.div, {
- ...B(Cr(i, { global: !0 }), l),
- ..._,
- id: y ? i.id : void 0,
- role: y ? "dialog" : void 0,
- tabIndex: y ? -1 : void 0,
+ ...v.style,
+ "--trigger-width": v.style?.["--trigger-width"] || C
+ }, D = /*#__PURE__*/ _.createElement(zf.div, {
+ ...V(H(i, { global: !0 }), l),
+ ...v,
+ id: b ? i.id : void 0,
+ role: b ? "dialog" : void 0,
+ tabIndex: b ? -1 : void 0,
"aria-label": i["aria-label"],
"aria-labelledby": i["aria-labelledby"],
ref: m,
slot: i.slot || void 0,
- style: ee,
+ style: E,
dir: i.dir,
"data-trigger": i.trigger,
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ w.createElement(Vs, { onDismiss: e.close }), /*#__PURE__*/ w.createElement(Tf.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ _.createElement(dl, { onDismiss: e.close }), /*#__PURE__*/ _.createElement(Nm.Provider, { value: {
...d,
placement: f,
ref: a
- } }, x), /*#__PURE__*/ w.createElement(Vs, { onDismiss: e.close }));
- return c ? /*#__PURE__*/ w.createElement(Ro, {
+ } }, S), /*#__PURE__*/ _.createElement(dl, { onDismiss: e.close }));
+ return c ? /*#__PURE__*/ _.createElement(sc, {
...i,
- shouldContainFocus: y && i.trigger !== "PreviewTrigger",
+ shouldContainFocus: b && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n ?? s?.current ?? void 0
- }, E) : /*#__PURE__*/ w.createElement(Ro, {
+ }, D) : /*#__PURE__*/ _.createElement(sc, {
...i,
- shouldContainFocus: y && i.trigger !== "PreviewTrigger",
+ shouldContainFocus: b && i.trigger !== "PreviewTrigger",
isExiting: t,
portalContainer: n
- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ w.createElement("div", {
+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ _.createElement("div", {
"data-testid": "underlay",
...u,
style: {
position: "fixed",
inset: 0
}
- }), /*#__PURE__*/ w.createElement("div", {
+ }), /*#__PURE__*/ _.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ w.createElement(jf.Provider, { value: o }, E)));
+ }, /*#__PURE__*/ _.createElement(zm.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var Pf = /*#__PURE__*/ (0, w.createContext)(null), Ff = /*#__PURE__*/ (0, w.createContext)(null), If = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
+var Hm = /*#__PURE__*/ (0, _.createContext)(null), Um = /*#__PURE__*/ (0, _.createContext)(null), Wm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Y(e, t, Pf);
- let { dialogProps: r, titleProps: i, contentProps: a } = zo({
+ [e, t] = Pf(e, t, Hm);
+ let { dialogProps: r, titleProps: i, contentProps: a } = lc({
...e,
"aria-labelledby": n
- }, t), o = (0, w.useContext)(Ff);
+ }, t), o = (0, _.useContext)(Um);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Eu({
+ let s = Mf({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
- }), c = Cr(e, { global: !0 });
- return /*#__PURE__*/ w.createElement(Mu.section, {
- ...B(c, s, r),
+ }), c = H(e, { global: !0 });
+ return /*#__PURE__*/ _.createElement(zf.section, {
+ ...V(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ w.createElement(Tu, { values: [
- [qu, { slots: {
- [wu]: {},
+ }, /*#__PURE__*/ _.createElement(jf, { values: [
+ [$f, { slots: {
+ [Af]: {},
title: {
...i,
level: 2
}
} }],
- [Yu, { slots: {
- [wu]: {},
+ [tp, { slots: {
+ [Af]: {},
description: a
} }],
- [Uu, { slots: {
- [wu]: {},
+ [Yf, { slots: {
+ [Af]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), Lf = Math.round(Math.random() * 1e10), Rf = 0;
-function zf(e) {
- let t = (0, w.useMemo)(() => e.name || `radio-group-${Lf}-${++Rf}`, [e.name]), [n, r] = aa(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, w.useState)(n), [a, o] = (0, w.useState)(null), s = qi({
+}), Gm = Math.round(Math.random() * 1e10), Km = 0;
+function qm(e) {
+ let t = (0, _.useMemo)(() => e.name || `radio-group-${Gm}-${++Km}`, [e.name]), [n, r] = Ao(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, _.useState)(n), [a, o] = (0, _.useState)(null), s = _o({
...e,
value: n
}), c = (t) => {
@@ -18546,16 +20576,16 @@ function zf(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var Bf = /*#__PURE__*/ (0, w.createContext)(null), $ = /*#__PURE__*/ (0, w.createContext)(null), Vf = /*#__PURE__*/ (0, w.createContext)(null), Hf = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- [e, t] = Y(e, t, Bf);
- let { validationBehavior: n } = Du(Z) || {}, r = e.validationBehavior ?? n ?? "native", i = zf({
+var Jm = /*#__PURE__*/ (0, _.createContext)(null), Ym = /*#__PURE__*/ (0, _.createContext)(null), Xm = /*#__PURE__*/ (0, _.createContext)(null), Zm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ [e, t] = Pf(e, t, Jm);
+ let { validationBehavior: n } = Nf(ip) || {}, r = e.validationBehavior ?? n ?? "native", i = qm({
...e,
validationBehavior: r
- }), [a, o] = Ou(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Dc({
+ }), [a, o] = Ff(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Zl({
...e,
label: o,
validationBehavior: r
- }, i), f = Eu({
+ }, i), f = Mf({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -18566,9 +20596,9 @@ var Bf = /*#__PURE__*/ (0, w.createContext)(null), $ = /*#__PURE__*/ (0, w.creat
state: i
},
defaultClassName: "react-aria-RadioGroup"
- }), p = Cr(e, { global: !0 });
- return /*#__PURE__*/ w.createElement(Mu.div, {
- ...B(p, f, s),
+ }), p = H(e, { global: !0 });
+ return /*#__PURE__*/ _.createElement(zf.div, {
+ ...V(p, f, s),
ref: t,
slot: e.slot || void 0,
"data-orientation": e.orientation || "vertical",
@@ -18576,39 +20606,39 @@ var Bf = /*#__PURE__*/ (0, w.createContext)(null), $ = /*#__PURE__*/ (0, w.creat
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ w.createElement(Tu, { values: [
- [Vf, i],
- [Bu, {
+ }, /*#__PURE__*/ _.createElement(jf, { values: [
+ [Xm, i],
+ [Kf, {
...c,
ref: a,
elementType: "span"
}],
- [Yu, { slots: {
+ [tp, { slots: {
description: l,
errorMessage: u
} }],
- [Xu, d]
- ] }, /*#__PURE__*/ w.createElement(Yd, null, f.children)));
-}), Uf = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
+ [rp, d]
+ ] }, /*#__PURE__*/ _.createElement(im, null, f.children)));
+}), Qm = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Y(r, t, $);
- let i = w.useContext(Vf), a = nn((0, w.useMemo)(() => Rt(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Ec({
- ...ku(e),
+ [e, t] = Pf(r, t, Ym);
+ let i = _.useContext(Xm), a = Or((0, _.useMemo)(() => lr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Xl({
+ ...If(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ w.createElement(Wf.Provider, { value: {
+ return /*#__PURE__*/ _.createElement($m.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ w.createElement(Gf, {
+ } }, /*#__PURE__*/ _.createElement(eh, {
...e,
ref: t
}));
-}), Wf = /*#__PURE__*/ (0, w.createContext)(null), Gf = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, w.useContext)(Wf), l = w.useContext(Vf), { isFocused: u, isFocusVisible: d, focusProps: f } = Bo(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = qo({
+}), $m = /*#__PURE__*/ (0, _.createContext)(null), eh = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, _.useContext)($m), l = _.useContext(Xm), { isFocused: u, isFocusVisible: d, focusProps: f } = uc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = _c({
...e,
isDisabled: p
- }), g = Eu({
+ }), g = Mf({
...e,
defaultClassName: s,
values: {
@@ -18622,9 +20652,9 @@ var Bf = /*#__PURE__*/ (0, w.createContext)(null), $ = /*#__PURE__*/ (0, w.creat
isInvalid: l.isInvalid,
isRequired: l.isRequired
}
- }), _ = Cr(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ w.createElement(Mu.label, {
- ...B(_, n, m, g),
+ }), v = H(e, { global: !0 });
+ return delete v.id, delete v.onClick, /*#__PURE__*/ _.createElement(zf.label, {
+ ...V(v, n, m, g),
ref: t,
"data-selected": i || void 0,
"data-pressed": o || void 0,
@@ -18635,19 +20665,19 @@ var Bf = /*#__PURE__*/ (0, w.createContext)(null), $ = /*#__PURE__*/ (0, w.creat
"data-readonly": l.isReadOnly || void 0,
"data-invalid": l.isInvalid || void 0,
"data-required": l.isRequired || void 0
- }, /*#__PURE__*/ w.createElement(da, { elementType: "span" }, /*#__PURE__*/ w.createElement("input", {
- ...B(r, f),
+ }, /*#__PURE__*/ _.createElement(Io, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
+ ...V(r, f),
ref: c
})), g.children);
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Kf(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Ef(e), [i, a] = (0, w.useState)(null), o = (0, w.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function th(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Pm(e), [i, a] = (0, _.useState)(null), o = (0, _.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
- ]), [s, c] = aa((0, w.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
+ ]), [s, c] = Ao((0, _.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [
e.value,
e.selectedKey,
t
@@ -18659,12 +20689,12 @@ function Kf(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = df({
+ }, d = ym({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, w.useMemo)(() => qf(l), [l]),
+ selectedKeys: (0, _.useMemo)(() => nh(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -18674,22 +20704,22 @@ function Kf(e) {
n && r.close(), m.commitValidation();
}
}
- }), f = d.selectionManager.firstSelectedKey, p = (0, w.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = qi({
+ }), f = d.selectionManager.firstSelectedKey, p = (0, _.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = _o({
...e,
value: Array.isArray(l) && l.length === 0 ? null : l
- }), [h, g] = (0, w.useState)(!1), [_] = (0, w.useState)(l);
+ }), [h, g] = (0, _.useState)(!1), [v] = (0, _.useState)(l);
return {
...m,
...d,
...r,
value: l,
- defaultValue: o ?? _,
+ defaultValue: o ?? v,
setValue: u,
selectedKey: f,
setSelectedKey: u,
selectedItem: p[0] ?? null,
selectedItems: p,
- defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? _ : null),
+ defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? v : null),
focusStrategy: i,
open(t = null) {
(d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.open());
@@ -18701,17 +20731,17 @@ function Kf(e) {
setFocused: g
};
}
-function qf(e) {
+function nh(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 Jf(e) {
+function rh(e) {
return e && e.__esModule ? e.default : e;
}
-var Yf = /*#__PURE__*/ (0, w.createContext)(null), Xf = /*#__PURE__*/ (0, w.createContext)(null), Zf = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, Yf);
- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, w.useMemo)(() => typeof n == "function" ? n({
+var ih = /*#__PURE__*/ (0, _.createContext)(null), ah = /*#__PURE__*/ (0, _.createContext)(null), oh = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, ih);
+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, _.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
isInvalid: i,
@@ -18725,99 +20755,99 @@ var Yf = /*#__PURE__*/ (0, w.createContext)(null), Xf = /*#__PURE__*/ (0, w.crea
i,
a
]);
- return /*#__PURE__*/ w.createElement(bn, { content: o }, (n) => /*#__PURE__*/ w.createElement($f, {
+ return /*#__PURE__*/ _.createElement(Gr, { content: o }, (n) => /*#__PURE__*/ _.createElement(ch, {
props: e,
collection: n,
selectRef: t
}));
-}), Qf = [
- Bu,
- Uu,
- Yu
+}), sh = [
+ Kf,
+ Yf,
+ tp
];
-function $f({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Du(Z) || {}, i = e.validationBehavior ?? r ?? "native", a = Kf({
+function ch({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = Nf(ip) || {}, i = e.validationBehavior ?? r ?? "native", a = th({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = Bo({ within: !0 }), c = (0, w.useRef)(null), [l, u] = Ou(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = kc({
- ...ku(e),
+ }), { isFocusVisible: o, focusProps: s } = uc({ within: !0 }), c = (0, _.useRef)(null), [l, u] = Ff(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: v, ...y } = $l({
+ ...If(e),
label: u,
validationBehavior: i
- }, a, c), y = (0, w.useMemo)(() => ({
+ }, a, c), b = (0, _.useMemo)(() => ({
isOpen: a.isOpen,
isFocused: a.isFocused,
isFocusVisible: o,
isDisabled: e.isDisabled || !1,
- isInvalid: v.isInvalid || !1,
+ isInvalid: y.isInvalid || !1,
isRequired: e.isRequired || !1
}), [
a.isOpen,
a.isFocused,
o,
e.isDisabled,
- v.isInvalid,
+ y.isInvalid,
e.isRequired
- ]), b = Eu({
+ ]), x = Mf({
...e,
- values: y,
+ values: b,
defaultClassName: "react-aria-Select"
- }), x = Cr(e, { global: !0 });
- delete x.id;
- let S = (0, w.useRef)(null);
- return /*#__PURE__*/ w.createElement(Tu, { values: [
- [Yf, e],
- [Xf, a],
- [ep, p],
- [Bu, {
+ }), S = H(e, { global: !0 });
+ delete S.id;
+ let C = (0, _.useRef)(null);
+ return /*#__PURE__*/ _.createElement(jf, { values: [
+ [ih, e],
+ [ah, a],
+ [lh, p],
+ [Kf, {
...d,
ref: l,
elementType: "span"
}],
- [Uu, {
+ [Yf, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [Ff, a],
- [Af, {
+ [Um, a],
+ [Rm, {
trigger: "Select",
triggerRef: c,
- scrollRef: S,
+ scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: Qf
+ clearContexts: sh
}],
- [hf, {
+ [Cm, {
...m,
- ref: S
+ ref: C
}],
- [gf, a],
- [Yu, { slots: {
+ [wm, a],
+ [tp, { slots: {
description: h,
errorMessage: g
} }],
- [Xu, v]
- ] }, /*#__PURE__*/ w.createElement(Mu.div, {
- ...B(x, b, s),
+ [rp, y]
+ ] }, /*#__PURE__*/ _.createElement(zf.div, {
+ ...V(S, x, s),
ref: t,
slot: e.slot || void 0,
"data-focused": a.isFocused || void 0,
"data-focus-visible": o || void 0,
"data-open": a.isOpen || void 0,
"data-disabled": e.isDisabled || void 0,
- "data-invalid": v.isInvalid || void 0,
+ "data-invalid": y.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ w.createElement(jc, {
- ..._,
+ }, x.children, /*#__PURE__*/ _.createElement(tu, {
+ ...v,
autoComplete: e.autoComplete
})));
}
-var ep = /*#__PURE__*/ (0, w.createContext)(null), tp = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, ep);
- let n = (0, w.useContext)(Xf), { placeholder: r } = Du(Yf), i = n.selectedItems.map((e) => {
+var lh = /*#__PURE__*/ (0, _.createContext)(null), uh = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, lh);
+ let n = (0, _.useContext)(ah), { placeholder: r } = Nf(ih), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -18829,65 +20859,65 @@ var ep = /*#__PURE__*/ (0, w.createContext)(null), tp = /*#__PURE__*/ un(functio
selectionMode: "single",
selectionBehavior: "toggle"
})), t;
- }), a = Vo(), o = (0, w.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, w.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
+ }), a = dc(), o = (0, _.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, _.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [
s,
a,
o
- ]), l = (0, w.useMemo)(() => {
+ ]), l = (0, _.useMemo)(() => {
if (s === "single") return i[0];
let e = a.formatToParts(o);
if (e.length === 0) return null;
let t = 0;
- return e.map((e) => e.type === "element" ? /*#__PURE__*/ w.createElement(w.Fragment, { key: t }, i[t++]) : e.value);
+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ _.createElement(_.Fragment, { key: t }, i[t++]) : e.value);
}, [
s,
a,
o,
i
- ]), u = gr(Jf(Vd), "react-aria-components"), d = Eu({
+ ]), u = Vi(rh(Xp), "react-aria-components"), d = Mf({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
values: {
selectedItem: n.selectedItems[0]?.value ?? null,
- selectedItems: (0, w.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
+ selectedItems: (0, _.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),
selectedText: c,
isPlaceholder: n.selectedItems.length === 0,
state: n
}
- }), f = Cr(e, { global: !0 });
- return /*#__PURE__*/ w.createElement(Mu.span, {
+ }), f = H(e, { global: !0 });
+ return /*#__PURE__*/ _.createElement(zf.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ w.createElement(Yu.Provider, { value: void 0 }, d.children));
-}), np = /*#__PURE__*/ (0, w.createContext)(null), rp = /*#__PURE__*/ (0, w.createContext)(null), ip = /*#__PURE__*/ (0, w.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ _.createElement(tp.Provider, { value: void 0 }, d.children));
+}), dh = /*#__PURE__*/ (0, _.createContext)(null), fh = /*#__PURE__*/ (0, _.createContext)(null), ph = /*#__PURE__*/ (0, _.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Y(r, t, np);
- let i = nn((0, w.useMemo)(() => Rt(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = oa(e), o = Mc({
- ...ku(e),
+ [e, t] = Pf(r, t, dh);
+ let i = Or((0, _.useMemo)(() => lr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = jo(e), o = nu({
+ ...If(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ w.createElement(Tu, { values: [[rp, a], [ap, {
+ return /*#__PURE__*/ _.createElement(jf, { values: [[fh, a], [mh, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ w.createElement(op, {
+ }]] }, /*#__PURE__*/ _.createElement(hh, {
...e,
ref: t
}));
-}), ap = /*#__PURE__*/ (0, w.createContext)(null), op = /*#__PURE__*/ (0, w.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, w.useContext)(ap), { isFocused: f, isFocusVisible: p, focusProps: m } = Bo(), h = a || o, g = (0, w.useContext)(rp), { hoverProps: _, isHovered: v } = qo({
+}), mh = /*#__PURE__*/ (0, _.createContext)(null), hh = /*#__PURE__*/ (0, _.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, _.useContext)(mh), { isFocused: f, isFocusVisible: p, focusProps: m } = uc(), h = a || o, g = (0, _.useContext)(fh), { hoverProps: v, isHovered: y } = _c({
...e,
isDisabled: h
- }), y = Eu({
+ }), b = Mf({
...e,
defaultClassName: u,
values: {
isSelected: i,
isPressed: s,
- isHovered: v,
+ isHovered: y,
isFocused: f,
isFocusVisible: p,
isDisabled: a,
@@ -18896,36 +20926,36 @@ var ep = /*#__PURE__*/ (0, w.createContext)(null), tp = /*#__PURE__*/ un(functio
isRequired: d || !1,
state: g
}
- }), b = Cr(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ w.createElement(Mu.label, {
- ...B(b, n, _, y),
+ }), x = H(e, { global: !0 });
+ return delete x.id, delete x.onClick, /*#__PURE__*/ _.createElement(zf.label, {
+ ...V(x, n, v, b),
ref: t,
slot: e.slot || void 0,
"data-selected": i || void 0,
"data-pressed": s || void 0,
- "data-hovered": v || void 0,
+ "data-hovered": y || void 0,
"data-focused": f || void 0,
"data-focus-visible": p || void 0,
"data-disabled": a || void 0,
"data-readonly": o || void 0,
"data-invalid": c || void 0,
"data-required": d || void 0
- }, /*#__PURE__*/ w.createElement(da, { elementType: "span" }, /*#__PURE__*/ w.createElement("input", {
- ...B(r, m),
+ }, /*#__PURE__*/ _.createElement(Io, { elementType: "span" }, /*#__PURE__*/ _.createElement("input", {
+ ...V(r, m),
ref: l
- })), y.children);
-}), sp = /*#__PURE__*/ (0, w.createContext)({}), cp = /*#__PURE__*/ (0, w.createContext)(null), lp = /*#__PURE__*/ un(function(e, t) {
- [e, t] = Y(e, t, cp);
- let { validationBehavior: n } = Du(Z) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, w.useRef)(null);
- [e, i] = Y(e, i, Pu);
- let [a, o] = Ou(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, w.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = fa({
- ...ku(e),
+ })), b.children);
+}), gh = /*#__PURE__*/ (0, _.createContext)({}), _h = /*#__PURE__*/ (0, _.createContext)(null), vh = /*#__PURE__*/ Fr(function(e, t) {
+ [e, t] = Pf(e, t, _h);
+ let { validationBehavior: n } = Nf(ip) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, _.useRef)(null);
+ [e, i] = Pf(e, i, $);
+ let [a, o] = Ff(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, _.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Lo({
+ ...If(e),
inputElementType: s,
label: o,
validationBehavior: r
- }, i), m = (0, w.useCallback)((e) => {
+ }, i), m = (0, _.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Eu({
+ }, [i]), h = Mf({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -18934,8 +20964,8 @@ var ep = /*#__PURE__*/ (0, w.createContext)(null), tp = /*#__PURE__*/ un(functio
isRequired: e.isRequired || !1
},
defaultClassName: "react-aria-TextField"
- }), g = Cr(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ w.createElement(Mu.div, {
+ }), g = H(e, { global: !0 });
+ return delete g.id, /*#__PURE__*/ _.createElement(zf.div, {
...g,
...h,
ref: t,
@@ -18944,31 +20974,31 @@ var ep = /*#__PURE__*/ (0, w.createContext)(null), tp = /*#__PURE__*/ un(functio
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ w.createElement(Tu, { values: [
- [Bu, {
+ }, /*#__PURE__*/ _.createElement(jf, { values: [
+ [Kf, {
...l,
ref: a
}],
- [id, {
+ [pp, {
...u,
ref: m
}],
- [sp, {
+ [gh, {
...u,
ref: m
}],
- [nd, {
+ [dp, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [Yu, { slots: {
+ [tp, { slots: {
description: d,
errorMessage: f
} }],
- [Xu, p]
+ [rp, p]
] }, h.children));
-}), up = _u({
+}), yh = Hd({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -19030,117 +21060,35 @@ var ep = /*#__PURE__*/ (0, w.createContext)(null), tp = /*#__PURE__*/ un(functio
}
}
});
-function dp({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = up[t];
- return /* @__PURE__ */ (0, J.jsx)("span", {
+function bh({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = yh[t];
+ return /* @__PURE__ */ (0, v.jsx)("span", {
"aria-hidden": !0,
- className: gu("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gu("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, J.jsx)("span", {
- className: gu("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, J.jsx)("span", { className: gu("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: Vd("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? Vd("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, v.jsx)("span", {
+ className: Vd("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, v.jsx)("span", { className: Vd("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 fp({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, J.jsx)(ip, {
+function xh({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, v.jsx)(ph, {
ref: i,
...a,
- className: (t) => gu("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, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(dp, {
+ className: (t) => Vd("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, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(bh, {
state: e,
size: n,
shape: r
- }), t != null && t !== !1 && /* @__PURE__ */ (0, J.jsx)("span", {
+ }), t != null && t !== !1 && /* @__PURE__ */ (0, v.jsx)("span", {
className: "text-body-medium text-text-primary",
children: t
})] })
});
}
//#endregion
-//#region src/api.ts
-var pp = class extends Error {
- status;
- body;
- constructor(t, n, r = null) {
- super(e(t, n)), this.name = "ApiError", this.status = n, this.body = r;
- }
-}, mp = (e) => {
- if (!e || typeof e != "object") return "";
- let t = e;
- for (let e of [
- "message",
- "detail",
- "error"
- ]) {
- let n = t[e];
- if (typeof n == "string" && n) return n;
- }
- return "";
-}, hp = (t) => e(t);
-async function gp(e, t) {
- let n = await fetch(e, {
- headers: { Accept: "application/json" },
- credentials: "same-origin",
- ...t ? { signal: t } : {}
- }), r = null;
- try {
- r = await n.json();
- } catch {}
- if (!n.ok) throw new pp(mp(r) || `请求失败(${n.status})`, n.status);
- return r;
-}
-async function _p(e, t, n = "POST", r) {
- let i = await fetch(e, {
- method: n,
- ...r ? { signal: r } : {},
- headers: {
- Accept: "application/json",
- "Content-Type": "application/json"
- },
- credentials: "same-origin",
- body: JSON.stringify(t)
- }), a = null;
- try {
- a = await i.json();
- } catch {}
- if (!i.ok) throw new pp(mp(a) || `请求失败(${i.status})`, i.status, a);
- return a;
-}
-//#endregion
-//#region node_modules/@remixicon/react/index.mjs
-var vp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => w.createElement("svg", {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg",
- width: t,
- height: t,
- fill: e,
- ...r,
- className: "remixicon " + (n || "")
-}, w.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" })), yp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => w.createElement("svg", {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg",
- width: t,
- height: t,
- fill: e,
- ...r,
- className: "remixicon " + (n || "")
-}, w.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" })), bp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => w.createElement("svg", {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg",
- width: t,
- height: t,
- fill: e,
- ...r,
- className: "remixicon " + (n || "")
-}, w.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" })), xp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => w.createElement("svg", {
- viewBox: "0 0 24 24",
- xmlns: "http://www.w3.org/2000/svg",
- width: t,
- height: t,
- fill: e,
- ...r,
- className: "remixicon " + (n || "")
-}, w.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" })), Sp = _u({
+//#region src/react/boardui/components/base/buttons/link-button.tsx
+var Sh = Hd({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -19164,21 +21112,21 @@ var vp = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => w.
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function Cp({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = gu(Sp.base, Sp.size[t], Sp.variant[e], a), l = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [
- n ? /* @__PURE__ */ (0, J.jsx)(n, {
- className: Sp.icon[t],
+function Ch({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = Vd(Sh.base, Sh.size[t], Sh.variant[e], a), l = /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
+ n ? /* @__PURE__ */ (0, v.jsx)(n, {
+ className: Sh.icon[t],
"aria-hidden": !0
}) : null,
- i != null && /* @__PURE__ */ (0, J.jsx)("span", { children: i }),
- r ? /* @__PURE__ */ (0, J.jsx)(r, {
- className: Sp.icon[t],
+ i != null && /* @__PURE__ */ (0, v.jsx)("span", { children: i }),
+ r ? /* @__PURE__ */ (0, v.jsx)(r, {
+ className: Sh.icon[t],
"aria-hidden": !0
}) : null
] });
if (s.href !== void 0) {
let { ref: e, href: t, ...n } = s;
- return /* @__PURE__ */ (0, J.jsx)("a", {
+ return /* @__PURE__ */ (0, v.jsx)("a", {
ref: e,
href: o ? void 0 : t,
"aria-disabled": o || void 0,
@@ -19188,7 +21136,7 @@ function Cp({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
});
}
let { ref: u, type: d = "button", ...f } = s;
- return /* @__PURE__ */ (0, J.jsx)("button", {
+ return /* @__PURE__ */ (0, v.jsx)("button", {
ref: u,
type: d,
disabled: o,
@@ -19199,210 +21147,143 @@ function Cp({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/settings/section.tsx
-function wp({ title: e, id: t, onSubmit: n, children: r }) {
- let i = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(bu, { children: e }), /* @__PURE__ */ (0, J.jsx)(yu, { children: r })] });
- return n ? /* @__PURE__ */ (0, J.jsx)("form", {
+function wh({ title: e, id: t, onSubmit: n, children: r }) {
+ let i = /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(Ef, { children: e }), /* @__PURE__ */ (0, v.jsx)(Tf, { children: r })] });
+ return n ? /* @__PURE__ */ (0, v.jsx)("form", {
id: t,
"aria-label": e,
noValidate: !0,
onSubmit: n,
className: "flex w-full flex-col gap-2",
children: i
- }) : /* @__PURE__ */ (0, J.jsx)("section", {
+ }) : /* @__PURE__ */ (0, v.jsx)("section", {
id: t,
"aria-label": e,
className: "flex w-full flex-col gap-2",
children: i
});
}
-function Tp({ children: e }) {
- return /* @__PURE__ */ (0, J.jsx)("div", {
+function Th({ children: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Ep({ divided: e = !1, children: t }) {
- return e ? /* @__PURE__ */ (0, J.jsx)("div", {
+function Eh({ divided: e = !1, children: t }) {
+ return e ? /* @__PURE__ */ (0, v.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
- }) : /* @__PURE__ */ (0, J.jsx)("div", {
+ }) : /* @__PURE__ */ (0, v.jsx)("div", {
className: "flex flex-col gap-4 py-4 pr-3",
children: t
});
}
-function Dp({ status: e, children: t }) {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
+function Dh({ status: e, children: t }) {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-wrap items-center justify-end gap-3 border-t border-separator-border py-3 pr-3",
- children: [e ? /* @__PURE__ */ (0, J.jsx)("div", {
+ children: [e ? /* @__PURE__ */ (0, v.jsx)("div", {
className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",
children: e
}) : null, t]
});
}
-function Op({ role: e, children: t }) {
- return /* @__PURE__ */ (0, J.jsx)("p", {
+function Oh({ role: e, children: t }) {
+ return /* @__PURE__ */ (0, v.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function kp({ children: e }) {
- return /* @__PURE__ */ (0, J.jsx)("p", {
+function kh({ children: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Ap({ children: e }) {
- return /* @__PURE__ */ (0, J.jsx)("p", {
+function Ah({ children: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function jp({ tone: e, title: t, children: n }) {
- let r = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [t ? /* @__PURE__ */ (0, J.jsx)("p", {
- className: "text-body-medium",
- children: t
- }) : null, /* @__PURE__ */ (0, J.jsx)("p", {
- className: "text-body-2-regular",
- children: n
- })] });
- switch (e) {
- case "info": return /* @__PURE__ */ (0, J.jsx)("div", {
- role: "status",
- className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",
- children: r
- });
- case "success": return /* @__PURE__ */ (0, J.jsx)("div", {
- role: "status",
- className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",
- children: r
- });
- case "warning": return /* @__PURE__ */ (0, J.jsx)("div", {
- role: "note",
- className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",
- children: r
- });
- case "error": return /* @__PURE__ */ (0, J.jsx)("div", {
- role: "alert",
- className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",
- children: r
- });
- default: return /* @__PURE__ */ (0, J.jsx)("div", {
- role: "note",
- className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",
- children: r
- });
- }
-}
-function Mp({ href: e, children: t }) {
- return /* @__PURE__ */ (0, J.jsx)(Cp, {
+function jh({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, v.jsx)(Ch, {
href: e,
target: "_blank",
rel: "noreferrer",
size: "small",
- trailingIcon: bp,
+ trailingIcon: lu,
children: t
});
}
-function Np({ children: e }) {
- return /* @__PURE__ */ (0, J.jsx)("dl", {
+function Mh({ children: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Pp({ term: e, children: t }) {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
+function Nh({ term: e, children: t }) {
+ return /* @__PURE__ */ (0, v.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, J.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, v.jsx)("dt", {
className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",
children: e
- }), /* @__PURE__ */ (0, J.jsx)("dd", {
+ }), /* @__PURE__ */ (0, v.jsx)("dd", {
className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",
children: t
})]
});
}
-function Fp({ label: e, value: t, max: n = 100, stops: r = [] }) {
- let i = Math.min(Math.max(t, 0), n);
- return /* @__PURE__ */ (0, J.jsxs)("svg", {
- role: "progressbar",
- "aria-label": e,
- "aria-valuemin": 0,
- "aria-valuemax": n,
- "aria-valuenow": t,
- viewBox: `0 0 ${n} 1`,
- preserveAspectRatio: "none",
- className: "h-1.5 w-full overflow-hidden rounded-full",
- children: [
- /* @__PURE__ */ (0, J.jsx)("rect", {
- width: n,
- height: 1,
- className: "fill-background-tertiary-default"
- }),
- /* @__PURE__ */ (0, J.jsx)("rect", {
- width: i,
- height: 1,
- className: "fill-border-focus-ring"
- }),
- r.map((e) => /* @__PURE__ */ (0, J.jsx)("rect", {
- x: e,
- width: .4,
- height: 1,
- className: "fill-background-secondary-default"
- }, e))
- ]
- });
-}
-function Ip({ summary: e, children: t }) {
- let n = (0, w.useId)(), i = (0, w.useRef)(null), a = (0, w.useRef)(null), [o, s] = (0, w.useState)(!1);
- return /* @__PURE__ */ (0, J.jsxs)("details", {
+function Ph({ summary: e, children: t }) {
+ let n = (0, _.useId)(), i = (0, _.useRef)(null), a = (0, _.useRef)(null), [o, s] = (0, _.useState)(!1);
+ return /* @__PURE__ */ (0, v.jsxs)("details", {
ref: i,
- children: [/* @__PURE__ */ (0, J.jsxs)("summary", {
+ children: [/* @__PURE__ */ (0, v.jsxs)("summary", {
"aria-expanded": o,
"aria-controls": n,
onClick: (e) => {
e.preventDefault(), !(!i.current || !a.current) && (r(i.current, a.current, !o), s(!o));
},
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, J.jsx)(vp, {
+ children: [/* @__PURE__ */ (0, v.jsx)(su, {
"aria-hidden": !0,
className: o ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
- }), /* @__PURE__ */ (0, J.jsx)("div", {
+ }), /* @__PURE__ */ (0, v.jsx)("div", {
ref: a,
id: n,
inert: !o,
- children: /* @__PURE__ */ (0, J.jsx)("div", {
+ children: /* @__PURE__ */ (0, v.jsx)("div", {
className: "flex flex-col gap-2 pt-3",
children: t
})
})]
});
}
-function Lp({ name: e }) {
- return /* @__PURE__ */ (0, J.jsx)("svg", {
+function Fh({ name: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
className: "size-4 shrink-0 stroke-current stroke-2",
- children: /* @__PURE__ */ (0, J.jsx)("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ (0, v.jsx)("use", { href: `#i-${e}` })
});
}
-function Rp({ mark: e }) {
- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, J.jsx)("img", {
+function Ih({ mark: e }) {
+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, v.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, J.jsx)(Lp, { name: e });
+ }) : /* @__PURE__ */ (0, v.jsx)(Fh, { name: e });
}
//#endregion
//#region src/react/settings/use-action.ts
-function zp(e = "") {
- let t = (0, w.useRef)(null), [n, r] = (0, w.useState)(""), [i, a] = (0, w.useState)(e);
- (0, w.useEffect)(() => () => t.current?.abort(), []);
+function Lh(e = "") {
+ let t = (0, _.useRef)(null), [n, r] = (0, _.useState)(""), [i, a] = (0, _.useState)(e);
+ (0, _.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
if (t.current) return;
let s = new AbortController();
@@ -19412,7 +21293,7 @@ function zp(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(hp(e));
+ o ? o(e) : a(qd(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -19424,7 +21305,7 @@ function zp(e = "") {
setError: a
};
}
-function Bp(e) {
+function Rh(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -19432,48 +21313,48 @@ function Bp(e) {
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Vp({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, J.jsx)(Hp, {
+function zh({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, v.jsx)(Bh, {
startup: e.startup,
receipt: t
}) : null;
}
-function Hp({ startup: e, receipt: t }) {
- let [n, r] = (0, w.useState)(e.enabled), [i, a] = (0, w.useState)(e.silent), [o, s] = (0, w.useState)(e.desktop), c = zp(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, J.jsxs)(wp, {
+function Bh({ startup: e, receipt: t }) {
+ let [n, r] = (0, _.useState)(e.enabled), [i, a] = (0, _.useState)(e.silent), [o, s] = (0, _.useState)(e.desktop), c = Lh(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => _p("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => Yd("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, J.jsxs)(Tp, { children: [
- /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsxs)(Th, { children: [
+ /* @__PURE__ */ (0, v.jsx)(Df, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, J.jsx)(fp, {
+ children: /* @__PURE__ */ (0, v.jsx)(xh, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsx)(Df, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, J.jsx)(fp, {
+ children: /* @__PURE__ */ (0, v.jsx)(xh, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsx)(Df, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, J.jsx)(fp, {
+ children: /* @__PURE__ */ (0, v.jsx)(xh, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -19481,14 +21362,14 @@ function Hp({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, J.jsxs)(Ep, {
+ e.message || c.error ? /* @__PURE__ */ (0, v.jsxs)(Eh, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, J.jsx)(Op, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, J.jsx)(kp, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, v.jsx)(kh, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, J.jsx)(Dp, { children: /* @__PURE__ */ (0, J.jsx)(Cu, {
+ /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
type: "submit",
disabled: !e.available,
- ...Bp(c.busy === "save"),
+ ...Rh(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -19496,7 +21377,7 @@ function Hp({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Up = {
+var Vh = {
md: {
box: "size-4",
glyph: "size-4",
@@ -19510,21 +21391,21 @@ var Up = {
gap: "gap-1.5"
}
};
-function Wp({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Up[t], c = n || r, l = o && !a;
- return /* @__PURE__ */ (0, J.jsx)("span", {
+function Hh({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Vh[t], c = n || r, l = o && !a;
+ return /* @__PURE__ */ (0, v.jsx)("span", {
"aria-hidden": !0,
- className: gu("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gu("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gu("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, J.jsx)("svg", {
+ className: Vd("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? Vd("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : Vd("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, v.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
className: s.glyph,
- children: r ? /* @__PURE__ */ (0, J.jsx)("path", {
+ children: r ? /* @__PURE__ */ (0, v.jsx)("path", {
d: "M4.5 8H8H11.5",
stroke: "white",
strokeWidth: "2",
strokeLinecap: "round"
- }) : n ? /* @__PURE__ */ (0, J.jsx)("path", {
+ }) : n ? /* @__PURE__ */ (0, v.jsx)("path", {
d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",
stroke: "white",
strokeWidth: "2",
@@ -19538,24 +21419,24 @@ function Wp({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function Gp({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Up[n];
- return /* @__PURE__ */ (0, J.jsx)(ed, {
+function Uh({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = Vh[n];
+ return /* @__PURE__ */ (0, v.jsx)(lp, {
ref: r,
...i,
- className: (t) => gu("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, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(Wp, {
+ className: (t) => Vd("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, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(Hh, {
state: e,
size: n
- }), t != null && /* @__PURE__ */ (0, J.jsx)("span", {
- className: gu(a.label, "text-text-primary"),
+ }), t != null && /* @__PURE__ */ (0, v.jsx)("span", {
+ className: Vd(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var Kp = [
+var Wh = [
"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",
@@ -19563,16 +21444,16 @@ var Kp = [
"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(" "), qp = "w-[266px]", Jp = "flex w-full flex-col gap-1 outline-none", Yp = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");
+].join(" "), Gh = "w-[266px]", Kh = "flex w-full flex-col gap-1 outline-none", qh = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" ");
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function Xp(e) {
- return /* @__PURE__ */ (0, J.jsx)("svg", {
+function Jh(e) {
+ return /* @__PURE__ */ (0, v.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
"aria-hidden": !0,
...e,
- children: /* @__PURE__ */ (0, J.jsx)("path", {
+ children: /* @__PURE__ */ (0, v.jsx)("path", {
d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",
stroke: "currentColor",
strokeWidth: "2",
@@ -19582,8 +21463,8 @@ function Xp(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function Zp(e, t, n) {
- (0, w.useEffect)(() => {
+function Yh(e, t, n) {
+ (0, _.useEffect)(() => {
if (!e) return;
let r = (e) => {
let r = e.target;
@@ -19596,9 +21477,9 @@ function Zp(e, t, n) {
n
]);
}
-function Qp(e, t) {
- let n = (0, w.useRef)(!1);
- return (0, w.useEffect)(() => {
+function Xh(e, t) {
+ let n = (0, _.useRef)(!1);
+ return (0, _.useEffect)(() => {
if (!e) return;
let r = (e) => {
t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {
@@ -19610,33 +21491,33 @@ function Qp(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var $p = (0, w.createContext)("md");
-function em({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
- let l = (0, w.useRef)(null), u = (0, w.useRef)(null), [d, f] = (0, w.useState)(!1);
- Zp(d, () => f(!1), [l, u]);
- let p = Qp(d, l);
- return /* @__PURE__ */ (0, J.jsx)(Zf, {
+var Zh = (0, _.createContext)("md");
+function Qh({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+ let l = (0, _.useRef)(null), u = (0, _.useRef)(null), [d, f] = (0, _.useState)(!1);
+ Yh(d, () => f(!1), [l, u]);
+ let p = Xh(d, l);
+ return /* @__PURE__ */ (0, v.jsx)(oh, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: gu("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsxs)(Wu, {
+ className: Vd("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsxs)(Xf, {
ref: l,
- className: gu("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, J.jsx)(tp, {
- className: gu("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: Vd("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, v.jsx)(uh, {
+ className: Vd("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, J.jsx)(Xp, { className: gu("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, J.jsx)(Mf, {
+ }), /* @__PURE__ */ (0, v.jsx)(Jh, { className: Vd("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, v.jsx)(Bm, {
ref: u,
isNonModal: !0,
offset: 4,
- className: gu(qp, Kp, "p-2", n),
- children: /* @__PURE__ */ (0, J.jsx)(_f, {
+ className: Vd(Gh, Wh, "p-2", n),
+ children: /* @__PURE__ */ (0, v.jsx)(Tm, {
items: a,
- className: gu(Jp, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, J.jsx)($p.Provider, {
+ className: Vd(Kh, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, v.jsx)(Zh.Provider, {
value: r,
children: i
})
@@ -19644,38 +21525,38 @@ function em({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function tm({ className: e, children: t, ...n }) {
- let r = (0, w.useContext)($p);
- return /* @__PURE__ */ (0, J.jsx)(xf, {
+function $h({ className: e, children: t, ...n }) {
+ let r = (0, _.useContext)(Zh);
+ return /* @__PURE__ */ (0, v.jsx)(km, {
...n,
- className: (t) => gu(Yp, 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) => Vd(qh, 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/settings/release-updates.tsx
-var nm = /* @__PURE__ */ new Set([
+var eg = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), rm = [
+]), tg = [
65,
67,
90
-], im = 120;
-function am({ initial: e, initialJob: t }) {
- let [r, i] = (0, w.useState)(e), [a, o] = (0, w.useState)(t || {
+], ng = 120;
+function rg({ initial: e, initialJob: t }) {
+ let [r, i] = (0, _.useState)(e), [a, o] = (0, _.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, w.useState)(""), l = zp(), u = (0, w.useRef)(!1), d = (0, w.useRef)(!0), f = nm.has(a.state);
- (0, w.useEffect)(() => (d.current = !0, () => {
+ }), [s, c] = (0, _.useState)(""), l = Lh(), u = (0, _.useRef)(!1), d = (0, _.useRef)(!0), f = eg.has(a.state);
+ (0, _.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await _p("/api/configuration/update-restart", {});
+ let e = await Yd("/api/configuration/update-restart", {});
d.current && o(e);
}, m = () => void n({
title: "更新已准备好",
@@ -19684,12 +21565,12 @@ function am({ initial: e, initialJob: t }) {
cancelLabel: "稍后",
onConfirm: p
});
- (0, w.useEffect)(() => {
+ (0, _.useEffect)(() => {
a.state !== "ready" || u.current || (u.current = !0, m());
- }, [a.state]), (0, w.useEffect)(() => {
- let e = new AbortController(), t = nm.has(a.state) ? 1e3 : 3e4, n, r = 0, s = async () => {
+ }, [a.state]), (0, _.useEffect)(() => {
+ let e = new AbortController(), t = eg.has(a.state) ? 1e3 : 3e4, n, r = 0, s = async () => {
try {
- let t = await gp("/api/configuration/update-status", e.signal);
+ let t = await Jd("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
o(t), r = 0, t.state === "complete" && i((e) => ({
...e,
@@ -19697,93 +21578,93 @@ function am({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await gp("/api/configuration/automatic-updates", e.signal);
+ let n = await Jd("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && i(n.result);
} catch {
- r += 1, r >= im && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ r += 1, r >= ng && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && r < im && (n = setTimeout(s, t));
+ !e.signal.aborted && r < ng && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
};
}, [a.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => _p("/api/configuration/update", {}, "POST", e), o));
- }, g = () => void l.run("check", (e) => gp("/api/configuration/updates", e), i, (t) => {
+ f || (u.current = !1, c(""), l.run("download", (e) => Yd("/api/configuration/update", {}, "POST", e), o));
+ }, g = () => void l.run("check", (e) => Jd("/api/configuration/updates", e), i, (t) => {
i({
...e,
state: "error"
- }), l.setError(hp(t));
- }), _ = l.error || s, v = a.state === "downloading" && a.total ? `${((a.downloaded || 0) / 1048576).toFixed(1)} / ${(a.total / 1048576).toFixed(1)} MB` : `${a.progress}%`;
- return /* @__PURE__ */ (0, J.jsxs)(wp, {
+ }), l.setError(qd(t));
+ }), y = l.error || s, b = a.state === "downloading" && a.total ? `${((a.downloaded || 0) / 1048576).toFixed(1)} / ${(a.total / 1048576).toFixed(1)} MB` : `${a.progress}%`;
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, J.jsxs)(Np, { children: [
- /* @__PURE__ */ (0, J.jsx)(Pp, {
+ /* @__PURE__ */ (0, v.jsxs)(Mh, { children: [
+ /* @__PURE__ */ (0, v.jsx)(Nh, {
term: "当前版本",
children: r.current_version
}),
- /* @__PURE__ */ (0, J.jsx)(Pp, {
+ /* @__PURE__ */ (0, v.jsx)(Nh, {
term: "安装方式",
children: r.installation
}),
- /* @__PURE__ */ (0, J.jsx)(Pp, {
+ /* @__PURE__ */ (0, v.jsx)(Nh, {
term: "更新通道",
children: r.channel
}),
- /* @__PURE__ */ (0, J.jsx)(Pp, {
+ /* @__PURE__ */ (0, v.jsx)(Nh, {
term: "最新版本",
children: r.latest_version || (r.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, J.jsxs)(Ep, {
+ /* @__PURE__ */ (0, v.jsxs)(Eh, {
divided: !0,
children: [
- r.checked_at ? /* @__PURE__ */ (0, J.jsxs)(Op, { children: ["检查于 ", (/* @__PURE__ */ new Date(r.checked_at * 1e3)).toLocaleString()] }) : null,
- r.state === "available" && !_ ? /* @__PURE__ */ (0, J.jsx)(jp, {
+ r.checked_at ? /* @__PURE__ */ (0, v.jsxs)(Oh, { children: ["检查于 ", (/* @__PURE__ */ new Date(r.checked_at * 1e3)).toLocaleString()] }) : null,
+ r.state === "available" && !y ? /* @__PURE__ */ (0, v.jsx)(Qd, {
tone: "info",
title: "有可用更新",
children: r.message
- }) : _ || r.state === "error" ? /* @__PURE__ */ (0, J.jsx)(kp, { children: _ || r.message }) : /* @__PURE__ */ (0, J.jsx)(Op, {
+ }) : y || r.state === "error" ? /* @__PURE__ */ (0, v.jsx)(kh, { children: y || r.message }) : /* @__PURE__ */ (0, v.jsx)(Oh, {
role: "status",
children: r.message
}),
- a.state === "error" ? /* @__PURE__ */ (0, J.jsx)(kp, { children: a.message }) : null,
- a.state !== "idle" && a.state !== "error" ? /* @__PURE__ */ (0, J.jsxs)("div", {
+ a.state === "error" ? /* @__PURE__ */ (0, v.jsx)(kh, { children: a.message }) : null,
+ a.state !== "idle" && a.state !== "error" ? /* @__PURE__ */ (0, v.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, J.jsx)(Fp, {
+ /* @__PURE__ */ (0, v.jsx)($d, {
label: "更新准备进度:下载、校验、解压、准备安装",
value: a.progress,
- stops: rm
+ stops: tg
}),
- /* @__PURE__ */ (0, J.jsxs)(Op, { children: ["下载 → 校验 → 解压 → 准备安装 · ", a.message] }),
- /* @__PURE__ */ (0, J.jsx)(Op, { children: v })
+ /* @__PURE__ */ (0, v.jsxs)(Oh, { children: ["下载 → 校验 → 解压 → 准备安装 · ", a.message] }),
+ /* @__PURE__ */ (0, v.jsx)(Oh, { children: b })
]
}) : null
]
}),
- /* @__PURE__ */ (0, J.jsxs)(Dp, {
- status: /* @__PURE__ */ (0, J.jsx)(Mp, {
+ /* @__PURE__ */ (0, v.jsxs)(Dh, {
+ status: /* @__PURE__ */ (0, v.jsx)(jh, {
href: r.release_url,
children: "查看发布页"
}),
children: [
- a.state === "ready" ? /* @__PURE__ */ (0, J.jsx)(Cu, {
+ a.state === "ready" ? /* @__PURE__ */ (0, v.jsx)(kf, {
onClick: m,
children: "重启安装"
}) : null,
- r.state === "available" && r.installation === "独立测试包" && a.state !== "ready" ? /* @__PURE__ */ (0, J.jsx)(Cu, {
+ r.state === "available" && r.installation === "独立测试包" && a.state !== "ready" ? /* @__PURE__ */ (0, v.jsx)(kf, {
onClick: h,
- ...Bp(f || l.busy === "download"),
+ ...Rh(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, J.jsx)(Cu, {
+ /* @__PURE__ */ (0, v.jsx)(kf, {
disabled: f,
onClick: g,
- ...Bp(l.busy === "check"),
+ ...Rh(l.busy === "check"),
children: "检查更新"
})
]
@@ -19793,138 +21674,138 @@ function am({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var om = [
+var ig = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function sm({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
+function ag({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, J.jsx)(cm, {
+ e.automatic_updates ? /* @__PURE__ */ (0, v.jsx)(og, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, J.jsx)(am, {
+ e.updates ? /* @__PURE__ */ (0, v.jsx)(rg, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, J.jsx)(lm, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, J.jsx)(um, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, v.jsx)(sg, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, v.jsx)(cg, { uninstall: e.uninstall }) : null
]
});
}
-function cm({ initial: e, receipt: t }) {
- let [n, r] = (0, w.useState)(e.mode), [i, a] = (0, w.useState)(e.interval_hours), o = zp(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => _p("/api/configuration/automatic-updates", {
+function og({ initial: e, receipt: t }) {
+ let [n, r] = (0, _.useState)(e.mode), [i, a] = (0, _.useState)(e.interval_hours), o = Lh(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => Yd("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, J.jsxs)(wp, {
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, J.jsxs)(Tp, { children: [
- /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsxs)(Th, { children: [
+ /* @__PURE__ */ (0, v.jsx)(Df, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, J.jsx)(fp, {
+ children: /* @__PURE__ */ (0, v.jsx)(xh, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsx)(Df, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, J.jsx)(fp, {
+ children: /* @__PURE__ */ (0, v.jsx)(xh, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsx)(Df, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, J.jsx)(em, {
+ children: /* @__PURE__ */ (0, v.jsx)(Qh, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: om.map(([e, t]) => /* @__PURE__ */ (0, J.jsx)(tm, {
+ children: ig.map(([e, t]) => /* @__PURE__ */ (0, v.jsx)($h, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, J.jsx)(Ep, {
+ o.error ? /* @__PURE__ */ (0, v.jsx)(Eh, {
divided: !0,
- children: /* @__PURE__ */ (0, J.jsx)(kp, { children: o.error })
+ children: /* @__PURE__ */ (0, v.jsx)(kh, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, J.jsx)(Dp, { children: /* @__PURE__ */ (0, J.jsx)(Cu, {
+ /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
type: "submit",
disabled: !e.available,
- ...Bp(o.busy === "save"),
+ ...Rh(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
-function lm({ facts: e }) {
- return /* @__PURE__ */ (0, J.jsx)(wp, {
+function sg({ facts: e }) {
+ return /* @__PURE__ */ (0, v.jsx)(wh, {
title: "运行信息",
- children: /* @__PURE__ */ (0, J.jsx)(Np, { children: e.map((e) => /* @__PURE__ */ (0, J.jsxs)(Pp, {
+ children: /* @__PURE__ */ (0, v.jsx)(Mh, { children: e.map((e) => /* @__PURE__ */ (0, v.jsxs)(Nh, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, J.jsx)(Mp, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, v.jsx)(jh, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function um({ uninstall: e }) {
- let [t, r] = (0, w.useState)(!1), [i, a] = (0, w.useState)(""), o = () => void n({
+function cg({ uninstall: e }) {
+ let [t, r] = (0, _.useState)(!1), [i, a] = (0, _.useState)(""), o = () => void n({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await _p("/api/configuration/uninstall", {
+ let e = await Yd("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
a(e.message);
}
}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, J.jsxs)(wp, {
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, J.jsxs)(Ep, { children: [
- e.available ? /* @__PURE__ */ (0, J.jsx)(Op, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, J.jsx)(Gp, {
+ children: [/* @__PURE__ */ (0, v.jsxs)(Eh, { children: [
+ e.available ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, v.jsx)(Uh, {
isSelected: t,
isDisabled: !e.full_available || !!i,
onChange: r,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, J.jsx)(Ip, {
+ /* @__PURE__ */ (0, v.jsx)(Ph, {
summary: "数据目录",
- children: c.map((e) => /* @__PURE__ */ (0, J.jsx)("p", {
+ children: c.map((e) => /* @__PURE__ */ (0, v.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, J.jsx)(Dp, {
- status: s ? /* @__PURE__ */ (0, J.jsx)("p", {
+ ] }), /* @__PURE__ */ (0, v.jsx)(Dh, {
+ status: s ? /* @__PURE__ */ (0, v.jsx)("p", {
role: i ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, J.jsx)(Cu, {
+ children: /* @__PURE__ */ (0, v.jsx)(kf, {
variant: "danger",
disabled: !e.available || !!i,
onClick: o,
@@ -19935,7 +21816,7 @@ function um({ uninstall: e }) {
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var dm = _u({
+var lg = Hd({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -19956,33 +21837,33 @@ var dm = _u({
small: "size-4 shrink-0"
}
});
-function fm({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
- return /* @__PURE__ */ (0, J.jsx)("button", {
+function ug({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, v.jsx)("button", {
ref: i,
type: r,
- className: gu(dm.base, dm.size[t], n),
+ className: Vd(lg.base, lg.size[t], n),
...a,
- children: /* @__PURE__ */ (0, J.jsx)(e, {
- className: dm.icon[t],
+ children: /* @__PURE__ */ (0, v.jsx)(e, {
+ className: lg.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function pm({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, J.jsxs)(Vu, {
+function dg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, v.jsxs)(qf, {
"data-label": "true",
...a,
- className: gu("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: Vd("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
- e && /* @__PURE__ */ (0, J.jsx)("span", {
+ e && /* @__PURE__ */ (0, v.jsx)("span", {
"aria-hidden": "true",
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, J.jsx)(xp, {
+ n && /* @__PURE__ */ (0, v.jsx)(du, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -19991,33 +21872,33 @@ function pm({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function mm({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, J.jsx)(X, {
+function fg({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, v.jsx)(np, {
slot: e ? "errorMessage" : "description",
...n,
- className: gu("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: Vd("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 hm = (0, w.createContext)({});
-function gm({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, J.jsx)(hm.Provider, {
+var pg = (0, _.createContext)({});
+function mg({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, v.jsx)(pg.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, J.jsx)(lp, {
+ children: /* @__PURE__ */ (0, v.jsx)(vh, {
...a,
"data-input-size": e,
- className: gu("group flex h-max w-full flex-col items-start gap-1", r),
+ className: Vd("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-gm.displayName = "TextField";
-var _m = _u({
+mg.displayName = "TextField";
+var hg = Hd({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -20046,44 +21927,44 @@ var _m = _u({
].join(" "),
icon: "size-5 shrink-0"
});
-function vm({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, w.useContext)(hm), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, J.jsx)(rd, {
+function gg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, _.useContext)(pg), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, v.jsx)(fp, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gu(_m.field, d ? _m.fieldWithAddonSize[u] : _m.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, J.jsxs)("div", {
- className: _m.content,
- children: [/* @__PURE__ */ (0, J.jsxs)("div", {
- className: _m.leftSection,
- children: [d ? r : t ? /* @__PURE__ */ (0, J.jsx)(t, {
- className: _m.icon,
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => Vd(hg.field, d ? hg.fieldWithAddonSize[u] : hg.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, v.jsxs)("div", {
+ className: hg.content,
+ children: [/* @__PURE__ */ (0, v.jsxs)("div", {
+ className: hg.leftSection,
+ children: [d ? r : t ? /* @__PURE__ */ (0, v.jsx)(t, {
+ className: hg.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, J.jsx)(od, {
+ }) : null, /* @__PURE__ */ (0, v.jsx)(hp, {
ref: o,
...c,
- className: gu(_m.input, l.inputClassName, a)
+ className: Vd(hg.input, l.inputClassName, a)
})]
- }), n ? /* @__PURE__ */ (0, J.jsx)(n, {
- className: _m.icon,
+ }), n ? /* @__PURE__ */ (0, v.jsx)(n, {
+ className: hg.icon,
"aria-hidden": !0
}) : null]
})
});
}
-vm.displayName = "InputBase";
-function ym({ 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, J.jsx)(gm, {
+gg.displayName = "InputBase";
+function _g({ 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, v.jsx)(mg, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [
- e && /* @__PURE__ */ (0, J.jsx)(pm, {
+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
+ e && /* @__PURE__ */ (0, v.jsx)(dg, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, J.jsx)(vm, {
+ /* @__PURE__ */ (0, v.jsx)(gg, {
ref: c,
groupRef: l,
placeholder: r,
@@ -20092,17 +21973,17 @@ function ym({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, J.jsx)(mm, {
+ t && /* @__PURE__ */ (0, v.jsx)(fg, {
isInvalid: d,
children: t
})
] })
});
}
-ym.displayName = "Input";
+_g.displayName = "Input";
//#endregion
//#region src/configuration-endpoints.ts
-var bm = "/api/configuration", xm = "/api/pick-folder", Sm = [
+var vg = "/api/configuration", yg = "/api/pick-folder", bg = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -20121,37 +22002,37 @@ var bm = "/api/configuration", xm = "/api/pick-folder", Sm = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], Cm = [
+], xg = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function wm() {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
+function Sg() {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, J.jsxs)(Op, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, J.jsx)(Mp, {
+ children: [/* @__PURE__ */ (0, v.jsxs)(Oh, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, v.jsx)(jh, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, J.jsxs)(Ip, {
+ })] }), /* @__PURE__ */ (0, v.jsxs)(Ph, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, J.jsx)(Op, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
- /* @__PURE__ */ (0, J.jsx)("ul", {
+ /* @__PURE__ */ (0, v.jsx)(Oh, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, v.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: Sm.map((e) => /* @__PURE__ */ (0, J.jsxs)("li", {
+ children: bg.map((e) => /* @__PURE__ */ (0, v.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, J.jsx)("p", {
+ children: [/* @__PURE__ */ (0, v.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
- }), /* @__PURE__ */ (0, J.jsx)("dl", {
+ }), /* @__PURE__ */ (0, v.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: Cm.map(([t, n]) => /* @__PURE__ */ (0, J.jsxs)("div", {
+ children: xg.map(([t, n]) => /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col",
- children: [/* @__PURE__ */ (0, J.jsx)("dt", {
+ children: [/* @__PURE__ */ (0, v.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
children: n
- }), /* @__PURE__ */ (0, J.jsx)("dd", {
+ }), /* @__PURE__ */ (0, v.jsx)("dd", {
className: "text-body-regular text-text-primary",
children: e[t]
})]
@@ -20159,17 +22040,17 @@ function wm() {
})]
}, e.name))
}),
- /* @__PURE__ */ (0, J.jsxs)("ul", {
+ /* @__PURE__ */ (0, v.jsxs)("ul", {
className: "flex list-disc flex-col gap-1 pl-5 text-body-2-regular text-text-secondary",
children: [
- /* @__PURE__ */ (0, J.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
- /* @__PURE__ */ (0, J.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
- /* @__PURE__ */ (0, J.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
+ /* @__PURE__ */ (0, v.jsx)("li", { children: "缓存上限和清理方式填在 CloudDrive「设置」里,清理方式选 LRU。上限不要填 0,系统盘至少留 40 GiB;填完重开设置页确认存住了。" }),
+ /* @__PURE__ */ (0, v.jsx)("li", { children: "读取长度和下载线程填在每个网盘各自的下载设置里,线程都从 2 开始。" }),
+ /* @__PURE__ */ (0, v.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, J.jsxs)(Op, { children: [
+ /* @__PURE__ */ (0, v.jsxs)(Oh, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, J.jsx)(Mp, {
+ /* @__PURE__ */ (0, v.jsx)(jh, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -20181,7 +22062,7 @@ function wm() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var Tm = [
+var Cg = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -20225,14 +22106,14 @@ var Tm = [
["star", "收藏"],
["tags", "主题"]
];
-function Em(e) {
+function wg(e) {
let n = e === "local" ? "" : t[e];
return n ? [n, "自动识别"] : ["hard-drive", "默认"];
}
-var Dm = "auto";
-function Om({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, w.useRef)(null), [a, o] = (0, w.useState)(!1), [s, c] = (0, w.useState)(e), [l, u] = Em(n);
- return /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(Cu, {
+var Tg = "auto";
+function Eg({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, _.useRef)(null), [a, o] = (0, _.useState)(!1), [s, c] = (0, _.useState)(e), [l, u] = wg(n);
+ return /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(kf, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -20242,46 +22123,46 @@ function Om({ value: e, label: t, kind: n = "local", onChange: r }) {
onClick: () => {
c(e), o(!0);
},
- children: /* @__PURE__ */ (0, J.jsxs)("span", {
+ children: /* @__PURE__ */ (0, v.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, J.jsx)(Rp, { mark: e || l }), ((e) => e && Tm.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, v.jsx)(Ih, { mark: e || l }), ((e) => e && Cg.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, J.jsx)(Mf, {
+ }), /* @__PURE__ */ (0, v.jsx)(Bm, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: Kp,
- children: /* @__PURE__ */ (0, J.jsxs)(If, {
+ className: Wh,
+ children: /* @__PURE__ */ (0, v.jsxs)(Wm, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, J.jsx)(Ju, {
+ /* @__PURE__ */ (0, v.jsx)(ep, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, J.jsx)(Hf, {
+ /* @__PURE__ */ (0, v.jsx)(Zm, {
"aria-label": "候选图标",
- value: s || Dm,
- onChange: (e) => c(e === Dm ? "" : e),
+ value: s || Tg,
+ onChange: (e) => c(e === Tg ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: Tm.map(([e, t]) => /* @__PURE__ */ (0, J.jsx)(Uf, {
- value: e || Dm,
+ children: Cg.map(([e, t]) => /* @__PURE__ */ (0, v.jsx)(Qm, {
+ value: e || Tg,
"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, J.jsx)(Rp, { mark: e || l })
- }, e || Dm))
+ children: /* @__PURE__ */ (0, v.jsx)(Ih, { mark: e || l })
+ }, e || Tg))
}),
- /* @__PURE__ */ (0, J.jsxs)("div", {
+ /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, J.jsx)(Cu, {
+ children: [/* @__PURE__ */ (0, v.jsx)(kf, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, J.jsx)(Cu, {
+ }), /* @__PURE__ */ (0, v.jsx)(kf, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -20295,9 +22176,9 @@ function Om({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var km = 8e3;
-function Am({ className: e }) {
- return /* @__PURE__ */ (0, J.jsx)("svg", {
+var Dg = 8e3;
+function Og({ className: e }) {
+ return /* @__PURE__ */ (0, v.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
fill: "none",
@@ -20306,98 +22187,98 @@ function Am({ className: e }) {
strokeLinecap: "round",
strokeLinejoin: "round",
className: e,
- children: /* @__PURE__ */ (0, J.jsx)("use", { href: "#i-folder-search" })
+ children: /* @__PURE__ */ (0, v.jsx)("use", { href: "#i-folder-search" })
});
}
-var jm = [
+var kg = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Mm = (e) => jm.find(([t]) => t === e)?.[1] ?? e, Nm = (e) => t[e] || "database", Pm = (e = "") => ({
+], Ag = (e) => kg.find(([t]) => t === e)?.[1] ?? e, jg = (e) => t[e] || "database", Mg = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Fm(e) {
- let t = e.media_sources?.filter((e) => jm.some(([t]) => t === e.location));
+function Ng(e) {
+ let t = e.media_sources?.filter((e) => kg.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) => Pm(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Mg(e));
}
-var Im = (e) => !(e instanceof pp) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Lm({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
+var Pg = (e) => !(e instanceof Gd) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Fg({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, J.jsx)(Rm, {
+ children: [e.editable ? /* @__PURE__ */ (0, v.jsx)(Ig, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, J.jsx)(jp, {
+ }) : /* @__PURE__ */ (0, v.jsx)(Qd, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, J.jsx)(Bm, { data: e })]
+ }), /* @__PURE__ */ (0, v.jsx)(Rg, { data: e })]
});
}
-function Rm({ data: e, receipt: t }) {
- let [n, r] = (0, w.useState)(() => Fm(e)), [i, a] = (0, w.useState)(String(e.port)), [o, s] = (0, w.useState)(!1), [c, l] = (0, w.useState)([]), [u, d] = (0, w.useState)(""), [f, p] = (0, w.useState)(""), [m, h] = (0, w.useState)(null), [g, _] = (0, w.useState)(null), [v, y] = (0, w.useState)(null), b = (0, w.useRef)(!1), x = (0, w.useRef)(e.revision), S = (0, w.useRef)([]), C = zp();
- (0, w.useLayoutEffect)(() => {
- g !== null && (S.current[g]?.focus(), _(null));
- }, [g]), (0, w.useEffect)(() => {
+function Ig({ data: e, receipt: t }) {
+ let [n, r] = (0, _.useState)(() => Ng(e)), [i, a] = (0, _.useState)(String(e.port)), [o, s] = (0, _.useState)(!1), [c, l] = (0, _.useState)([]), [u, d] = (0, _.useState)(""), [f, p] = (0, _.useState)(""), [m, h] = (0, _.useState)(null), [g, y] = (0, _.useState)(null), [b, x] = (0, _.useState)(null), S = (0, _.useRef)(!1), C = (0, _.useRef)(e.revision), w = (0, _.useRef)([]), T = Lh();
+ (0, _.useLayoutEffect)(() => {
+ g !== null && (w.current[g]?.focus(), y(null));
+ }, [g]), (0, _.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), km);
+ let e = setTimeout(() => location.assign(m.url), Dg);
return () => clearTimeout(e);
}, [m]);
- let T = (e, t) => r((n) => n.map((n, r) => r === e ? {
+ let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
...n,
...t
- } : n)), ee = (e, t) => l((n) => {
+ } : n)), D = (e, t) => l((n) => {
let r = [...n];
for (; r.length <= e;) r.push("");
return r[e] = t, r;
- }), E = () => {
- _(n.length), r((e) => [...e, Pm()]);
- }, D = (e) => {
+ }), O = () => {
+ y(n.length), r((e) => [...e, Mg()]);
+ }, k = (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);
+ }, A = async (e) => {
+ if (!S.current) {
+ S.current = !0, x(e);
try {
- let { path: t } = await _p(xm, { initial: n[e]?.path ?? "" });
- t && (T(e, { path: t }), ee(e, ""));
+ let { path: t } = await Yd(yg, { initial: n[e]?.path ?? "" });
+ t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- ee(e, hp(t));
+ D(e, qd(t));
} finally {
- b.current = !1, y(null);
+ S.current = !1, x(null);
}
}
- }, k = (r) => {
- r.preventDefault(), p(""), C.run("save", (t) => _p(bm, {
- revision: x.current,
+ }, ee = (r) => {
+ r.preventDefault(), p(""), T.run("save", (t) => Yd(vg, {
+ revision: C.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
port: i,
scan_now: o
}, "POST", t), (e) => {
- x.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
+ C.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Im(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(hp(e));
+ let t = Pg(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(qd(e));
});
};
- if (m) return /* @__PURE__ */ (0, J.jsx)(wp, {
+ if (m) return /* @__PURE__ */ (0, v.jsx)(wh, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, J.jsx)(Ep, { children: /* @__PURE__ */ (0, J.jsxs)(jp, {
+ children: /* @__PURE__ */ (0, v.jsx)(Eh, { children: /* @__PURE__ */ (0, v.jsxs)(Qd, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, J.jsx)(Cp, {
+ /* @__PURE__ */ (0, v.jsx)(Ch, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -20406,113 +22287,113 @@ function Rm({ 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, J.jsxs)(wp, {
+ let j = n.some((e) => e.location === "115" || e.location === "pikpak"), te = j ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
title: "这台电脑",
- onSubmit: k,
- children: [/* @__PURE__ */ (0, J.jsxs)(Ep, { children: [
- /* @__PURE__ */ (0, J.jsxs)("div", {
+ onSubmit: ee,
+ children: [/* @__PURE__ */ (0, v.jsxs)(Eh, { children: [
+ /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, J.jsx)(Ap, { children: "媒体文件夹" }),
- /* @__PURE__ */ (0, J.jsx)("div", {
+ /* @__PURE__ */ (0, v.jsx)(Ah, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, v.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
className: "flex flex-col gap-3",
- children: n.map((t, r) => /* @__PURE__ */ (0, J.jsxs)("div", {
+ children: n.map((t, r) => /* @__PURE__ */ (0, v.jsxs)("div", {
"data-folder-row": !0,
className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",
- children: [/* @__PURE__ */ (0, J.jsxs)("div", {
+ children: [/* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, J.jsx)(ym, {
+ /* @__PURE__ */ (0, v.jsx)(_g, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
value: t.path,
- onChange: (e) => T(r, { path: e }),
+ onChange: (e) => E(r, { path: e }),
ref: (e) => {
- S.current[r] = e;
+ w.current[r] = e;
},
validationBehavior: "aria",
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, J.jsx)(fm, {
- icon: Am,
+ /* @__PURE__ */ (0, v.jsx)(ug, {
+ icon: Og,
"aria-label": "选择文件夹",
- onClick: () => void O(r),
- ...Bp(v === r)
+ onClick: () => void A(r),
+ ...Rh(b === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, J.jsx)(fm, {
- icon: yp,
+ n.length > 1 ? /* @__PURE__ */ (0, v.jsx)(ug, {
+ icon: cu,
"aria-label": "移除这个文件夹",
- onClick: () => D(r)
+ onClick: () => k(r)
}) : null
]
- }), /* @__PURE__ */ (0, J.jsxs)("div", {
+ }), /* @__PURE__ */ (0, v.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, J.jsx)(ym, {
+ /* @__PURE__ */ (0, v.jsx)(_g, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
value: t.library,
- onChange: (e) => T(r, { library: e })
+ onChange: (e) => E(r, { library: e })
}),
- /* @__PURE__ */ (0, J.jsxs)("div", {
+ /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, J.jsx)(Ap, { children: "媒体库图标" }), /* @__PURE__ */ (0, J.jsx)(Om, {
+ children: [/* @__PURE__ */ (0, v.jsx)(Ah, { children: "媒体库图标" }), /* @__PURE__ */ (0, v.jsx)(Eg, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
- onChange: (e) => T(r, { library_icon: e })
+ onChange: (e) => E(r, { library_icon: e })
})]
}),
- /* @__PURE__ */ (0, J.jsxs)("div", {
+ /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, J.jsx)(Ap, { children: "媒体来源" }), /* @__PURE__ */ (0, J.jsx)(em, {
+ children: [/* @__PURE__ */ (0, v.jsx)(Ah, { children: "媒体来源" }), /* @__PURE__ */ (0, v.jsx)(Qh, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
- e !== null && T(r, { location: String(e) });
+ e !== null && E(r, { location: String(e) });
},
- children: jm.map(([e, t]) => /* @__PURE__ */ (0, J.jsxs)(tm, {
+ children: kg.map(([e, t]) => /* @__PURE__ */ (0, v.jsxs)($h, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, J.jsx)(Rp, { mark: Nm(e) }), t]
+ children: [/* @__PURE__ */ (0, v.jsx)(Ih, { mark: jg(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, J.jsx)(ym, {
+ e.windows === !1 ? /* @__PURE__ */ (0, v.jsx)(_g, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
- onChange: (e) => T(r, { root: e })
+ onChange: (e) => E(r, { root: e })
}) : null
]
})]
}, r))
}),
- /* @__PURE__ */ (0, J.jsx)(Cu, {
+ /* @__PURE__ */ (0, v.jsx)(kf, {
className: "self-start",
- onClick: E,
+ onClick: O,
children: "添加文件夹"
})
]
}),
- A ? /* @__PURE__ */ (0, J.jsx)(wm, {}) : null,
- j.map((e) => /* @__PURE__ */ (0, J.jsxs)(Op, { children: [
+ j ? /* @__PURE__ */ (0, v.jsx)(Sg, {}) : null,
+ te.map((e) => /* @__PURE__ */ (0, v.jsxs)(Oh, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, J.jsxs)(Mp, {
+ /* @__PURE__ */ (0, v.jsxs)(jh, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, J.jsx)(Op, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, J.jsx)(ym, {
+ e.windows === !1 ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, v.jsx)(_g, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -20522,66 +22403,66 @@ function Rm({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, J.jsx)(Gp, {
+ /* @__PURE__ */ (0, v.jsx)(Uh, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, J.jsx)(jp, {
+ f ? /* @__PURE__ */ (0, v.jsx)(Qd, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, J.jsx)(Dp, {
+ ] }), /* @__PURE__ */ (0, v.jsx)(Dh, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, J.jsx)(Cu, {
+ children: /* @__PURE__ */ (0, v.jsx)(kf, {
type: "submit",
- ...Bp(C.busy === "save"),
+ ...Rh(T.busy === "save"),
children: "保存配置"
})
})]
});
}
-function zm({ online: e }) {
- return e === !0 ? /* @__PURE__ */ (0, J.jsxs)("span", {
+function Lg({ online: e }) {
+ return e === !0 ? /* @__PURE__ */ (0, v.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
- children: [/* @__PURE__ */ (0, J.jsx)("span", {
+ children: [/* @__PURE__ */ (0, v.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "在线"]
- }) : e === !1 ? /* @__PURE__ */ (0, J.jsxs)("span", {
+ }) : e === !1 ? /* @__PURE__ */ (0, v.jsxs)("span", {
"data-mount": "offline",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-error-primary",
- children: [/* @__PURE__ */ (0, J.jsx)("span", {
+ children: [/* @__PURE__ */ (0, v.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "离线"]
- }) : /* @__PURE__ */ (0, J.jsxs)("span", {
+ }) : /* @__PURE__ */ (0, v.jsxs)("span", {
"data-mount": "unknown",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-text-secondary",
- children: [/* @__PURE__ */ (0, J.jsx)("span", {
+ children: [/* @__PURE__ */ (0, v.jsx)("span", {
"aria-hidden": !0,
className: "size-1.5 rounded-full bg-current"
}), "未检测"]
});
}
-function Bm({ data: e }) {
- let [t, n] = (0, w.useState)(e.media_sources), r = zp();
- return t ? /* @__PURE__ */ (0, J.jsxs)(wp, {
+function Rg({ data: e }) {
+ let [t, n] = (0, _.useState)(e.media_sources), r = Lh();
+ return t ? /* @__PURE__ */ (0, v.jsxs)(wh, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, J.jsx)(Np, { children: t.map((e, t) => /* @__PURE__ */ (0, J.jsxs)(Pp, {
- term: /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(Rp, { mark: Nm(e.location) }), Mm(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, J.jsx)(zm, { online: e.online })]
+ /* @__PURE__ */ (0, v.jsx)(Mh, { children: t.map((e, t) => /* @__PURE__ */ (0, v.jsxs)(Nh, {
+ term: /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(Ih, { mark: jg(e.location) }), Ag(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, v.jsx)(Lg, { online: e.online })]
}, t)) }),
- r.error ? /* @__PURE__ */ (0, J.jsx)(Ep, {
+ r.error ? /* @__PURE__ */ (0, v.jsx)(Eh, {
divided: !0,
- children: /* @__PURE__ */ (0, J.jsx)(kp, { children: r.error })
+ children: /* @__PURE__ */ (0, v.jsx)(kh, { children: r.error })
}) : null,
- /* @__PURE__ */ (0, J.jsx)(Dp, { children: /* @__PURE__ */ (0, J.jsx)(Cu, {
- onClick: () => void r.run("refresh", (e) => gp(bm, e), (e) => n(e.media_sources)),
- ...Bp(r.busy === "refresh"),
+ /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
+ onClick: () => void r.run("refresh", (e) => Jd(vg, e), (e) => n(e.media_sources)),
+ ...Rh(r.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -20589,20 +22470,20 @@ function Bm({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Vm = {
+var zg = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function Hm({ initial: e, receipt: t }) {
- let [n, r] = (0, w.useState)(e), [i, a] = (0, w.useState)(""), [o, s] = (0, w.useState)(""), [c, l] = (0, w.useState)(""), [u, d] = (0, w.useState)(!1), [f, p] = (0, w.useState)({}), m = (0, w.useRef)(null), h = zp(), g = (e) => {
+function Bg({ initial: e, receipt: t }) {
+ let [n, r] = (0, _.useState)(e), [i, a] = (0, _.useState)(""), [o, s] = (0, _.useState)(""), [c, l] = (0, _.useState)(""), [u, d] = (0, _.useState)(!1), [f, p] = (0, _.useState)({}), m = (0, _.useRef)(null), h = Lh(), 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) {
requestAnimationFrame(() => m.current?.querySelector("input[aria-invalid=\"true\"]")?.focus());
return;
}
- h.run("save", (e) => _p("/api/configuration/access", {
+ h.run("save", (e) => Yd("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -20612,28 +22493,28 @@ function Hm({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof pp ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(hp(e));
+ let t = e instanceof Gd ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(qd(e));
});
- }, _ = Vm[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, J.jsxs)(wp, {
+ }, y = zg[n.mode], b = n.mode !== "locked";
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
title: "访问密码",
onSubmit: g,
- children: [/* @__PURE__ */ (0, J.jsx)("div", {
+ children: [/* @__PURE__ */ (0, v.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, J.jsxs)(Ep, { children: [
- _ ? /* @__PURE__ */ (0, J.jsx)(Op, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, J.jsx)(jp, {
+ children: /* @__PURE__ */ (0, v.jsxs)(Eh, { children: [
+ y ? /* @__PURE__ */ (0, v.jsx)(Oh, { children: y }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, v.jsx)(Qd, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, J.jsx)(Gp, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, v.jsx)(Uh, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, J.jsx)(ym, {
+ n.mode === "password" ? /* @__PURE__ */ (0, v.jsx)(_g, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -20646,7 +22527,7 @@ function Hm({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(ym, {
+ b ? /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [/* @__PURE__ */ (0, v.jsx)(_g, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -20659,7 +22540,7 @@ function Hm({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, J.jsx)(ym, {
+ }), /* @__PURE__ */ (0, v.jsx)(_g, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -20673,18 +22554,18 @@ function Hm({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, J.jsx)(jp, {
+ u ? /* @__PURE__ */ (0, v.jsx)(Qd, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, J.jsx)(kp, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, v.jsx)(kh, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, J.jsx)(Dp, {
+ }), b ? /* @__PURE__ */ (0, v.jsx)(Dh, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, J.jsx)(Cu, {
+ children: /* @__PURE__ */ (0, v.jsx)(kf, {
type: "submit",
- ...Bp(h.busy === "save"),
+ ...Rh(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -20692,30 +22573,30 @@ function Hm({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Um = [
+var Vg = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Wm({ data: e, receipt: t }) {
- return /* @__PURE__ */ (0, J.jsxs)("div", {
+function Hg({ data: e, receipt: t }) {
+ return /* @__PURE__ */ (0, v.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, J.jsx)(Gm, {
+ children: [e.peach_proxy ? /* @__PURE__ */ (0, v.jsx)(Ug, {
initial: e.peach_proxy,
receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, J.jsx)(Hm, {
+ }) : null, e.access ? /* @__PURE__ */ (0, v.jsx)(Bg, {
initial: e.access,
receipt: t
}) : null]
});
}
-function Gm({ initial: e, receipt: t }) {
- let [n, r] = (0, w.useState)(e), [i, a] = (0, w.useState)(e.mode), [o, s] = (0, w.useState)(""), c = zp();
- return /* @__PURE__ */ (0, J.jsxs)(wp, {
+function Ug({ initial: e, receipt: t }) {
+ let [n, r] = (0, _.useState)(e), [i, a] = (0, _.useState)(e.mode), [o, s] = (0, _.useState)(""), c = Lh();
+ return /* @__PURE__ */ (0, v.jsxs)(wh, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => _p("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => Yd("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -20723,25 +22604,25 @@ function Gm({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, J.jsx)(Tp, { children: /* @__PURE__ */ (0, J.jsx)(xu, {
+ /* @__PURE__ */ (0, v.jsx)(Th, { children: /* @__PURE__ */ (0, v.jsx)(Df, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, J.jsx)(em, {
+ children: /* @__PURE__ */ (0, v.jsx)(Qh, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Um.map(([e, t]) => /* @__PURE__ */ (0, J.jsx)(tm, {
+ children: Vg.map(([e, t]) => /* @__PURE__ */ (0, v.jsx)($h, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, J.jsxs)(Ep, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, v.jsxs)(Eh, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, J.jsx)(ym, {
+ i === "proxy" ? /* @__PURE__ */ (0, v.jsx)(_g, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -20750,17 +22631,17 @@ function Gm({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, J.jsx)(jp, {
+ n.needs_selection ? /* @__PURE__ */ (0, v.jsx)(Qd, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, J.jsx)(kp, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, v.jsx)(kh, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, J.jsx)(Dp, { children: /* @__PURE__ */ (0, J.jsx)(Cu, {
+ /* @__PURE__ */ (0, v.jsx)(Dh, { children: /* @__PURE__ */ (0, v.jsx)(kf, {
type: "submit",
- ...Bp(c.busy === "save"),
+ ...Rh(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -20768,15 +22649,18 @@ function Gm({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/entry.tsx
-var Km = null;
-function qm() {
- return Km?.isConnected || (Km = document.createElement("div"), Km.className = "peach-react", Km.dataset.reactOverlays = "", document.body.append(Km)), Km;
+var Wg = null;
+function Gg() {
+ return Wg?.isConnected || (Wg = document.createElement("div"), Wg.className = "peach-react", Wg.dataset.reactOverlays = "", document.body.append(Wg)), Wg;
}
-function Jm(e) {
+function Kg(e) {
return (t, n) => {
- let r = (0, Ic.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, J.jsx)(Fo, {
- getContainer: qm,
- children: /* @__PURE__ */ (0, J.jsx)(e, { ...t })
+ let r = (0, ou.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, v.jsx)(x, {
+ client: ef,
+ children: /* @__PURE__ */ (0, v.jsx)(ic, {
+ getContainer: Gg,
+ children: /* @__PURE__ */ (0, v.jsx)(e, { ...t })
+ })
}));
return i(n), {
update: i,
@@ -20784,6 +22668,9 @@ function Jm(e) {
};
};
}
-var Ym = Jm(Vp), Xm = Jm(Lm), Zm = Jm(Wm), Qm = Jm(sm);
+var qg = { activity: {
+ prefetch: (e, t) => cf(t),
+ mount: Kg(wf)
+} }, Jg = Kg(zh), Yg = Kg(Fg), Xg = Kg(Hg), Zg = Kg(ag);
//#endregion
-export { Ym as mountGeneralSettings, Qm as mountMaintenanceSettings, Xm as mountMediaSettings, Zm as mountNetworkSettings };
+export { Jg as mountGeneralSettings, Zg as mountMaintenanceSettings, Yg as mountMediaSettings, Xg as mountNetworkSettings, qg as pages };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index ea8fc2d5e..e08e359fe 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -1,21 +1,21 @@
import { LOC as e, esc as t, fmtDur as n, fmtSize as r, icon as i, requestErrorMessage as a, siteMarkUrl as o } from "/js/core.js";
-import { MEDIA_SOURCE_ICONS as s, attachOverlayScrollbar as c, checkboxHtml as l, collectionSummaryHtml as u, emptyStateHtml as d, fieldsetTitle as f, loadingDotsHtml as p, moveGlidePane as m, noteHtml as h, progressHtml as g, projectBannerHtml as _, selectFieldHtml as v, selectOptionIconHtml as y, setActionBusy as b, wireAnchoredMenu as x, wireCollapse as S, wireSelectField as C } from "/js/ui-components.js";
+import { MEDIA_SOURCE_ICONS as s, attachOverlayScrollbar as c, checkboxHtml as l, collectionSummaryHtml as u, emptyStateHtml as d, fieldsetTitle as f, loadingDotsHtml as p, moveGlidePane as m, noteHtml as h, projectBannerHtml as g, selectFieldHtml as _, selectOptionIconHtml as v, setActionBusy as y, wireAnchoredMenu as b, wireCollapse as x, wireSelectField as S } from "/js/ui-components.js";
//#region node_modules/preact/dist/preact.module.js
-var w, T, E, D, O, k, A, j, ee, te, M, ne, re, N, ie, ae = {}, oe = [], se = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ce = Array.isArray;
+var C, w, T, E, D, O, k, A, j, ee, M, te, ne, re, N, ie = {}, ae = [], oe = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, se = Array.isArray;
function P(e, t) {
for (var n in t) e[n] = t[n];
return e;
}
-function le(e) {
+function ce(e) {
e && e.parentNode && e.parentNode.removeChild(e);
}
-function ue(e, t, n) {
+function le(e, t, n) {
var r, i, a, o = {};
for (a in t) a == "key" ? r = t[a] : a == "ref" ? i = t[a] : o[a] = t[a];
- if (arguments.length > 2 && (o.children = arguments.length > 3 ? w.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);
- return de(e, o, r, i, null);
+ if (arguments.length > 2 && (o.children = arguments.length > 3 ? C.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (a in e.defaultProps) o[a] === void 0 && (o[a] = e.defaultProps[a]);
+ return ue(e, o, r, i, null);
}
-function de(e, t, n, r, i) {
+function ue(e, t, n, r, i) {
var a = {
type: e,
props: t,
@@ -27,68 +27,68 @@ function de(e, t, n, r, i) {
__e: null,
__c: null,
constructor: void 0,
- __v: i ?? ++E,
+ __v: i ?? ++T,
__i: -1,
__u: 0
};
- return i == null && T.vnode != null && T.vnode(a), a;
+ return i == null && w.vnode != null && w.vnode(a), a;
}
function F(e) {
return e.children;
}
-function fe(e, t) {
+function de(e, t) {
this.props = e, this.context = t;
}
-function pe(e, t) {
- if (t == null) return e.__ ? pe(e.__, e.__i + 1) : null;
+function I(e, t) {
+ if (t == null) return e.__ ? I(e.__, e.__i + 1) : null;
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
- return typeof e.type == "function" ? pe(e) : null;
+ return typeof e.type == "function" ? I(e) : null;
}
-function me(e) {
+function fe(e) {
if (e.__P && e.__d) {
var t = e.__v, n = t.__e, r = [], i = [], a = P({}, t);
- a.__v = t.__v + 1, T.vnode && T.vnode(a), Te(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? pe(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, De(r, a, i), t.__e = t.__ = null, a.__e != n && he(a);
+ a.__v = t.__v + 1, w.vnode && w.vnode(a), Ce(e.__P, a, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? I(t), !!(32 & t.__u), i), a.__v = t.__v, a.__.__k[a.__i] = a, Te(r, a, i), t.__e = t.__ = null, a.__e != n && pe(a);
}
}
-function he(e) {
+function pe(e) {
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
- }), he(e);
+ }), pe(e);
}
-function ge(e) {
- (!e.__d && (e.__d = !0) && O.push(e) && !_e.__r++ || k != T.debounceRendering) && ((k = T.debounceRendering) || A)(_e);
+function me(e) {
+ (!e.__d && (e.__d = !0) && D.push(e) && !he.__r++ || O != w.debounceRendering) && ((O = w.debounceRendering) || k)(he);
}
-function _e() {
+function he() {
try {
- for (var e, t = 1; O.length;) O.length > t && O.sort(j), e = O.shift(), t = O.length, me(e);
+ for (var e, t = 1; D.length;) D.length > t && D.sort(A), e = D.shift(), t = D.length, fe(e);
} finally {
- O.length = _e.__r = 0;
+ D.length = he.__r = 0;
}
}
-function ve(e, t, n, r, i, a, o, s, c, l, u) {
- var d, f, p, m, h, g, _ = r && r.__k || oe, v = t.length;
- for (c = ye(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || ae, p.__i = d, g = Te(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && Ae(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = be(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
+function ge(e, t, n, r, i, a, o, s, c, l, u) {
+ var d, f, p, m, h, g, _ = r && r.__k || ae, v = t.length;
+ for (c = _e(n, t, _, c, v), d = 0; d < v; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && _[p.__i] || ie, p.__i = d, g = Ce(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && Oe(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), 4 & p.__u ? (c = ve(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && g !== void 0 ? c = g : m && (c = m.nextSibling), p.__u &= -7);
return n.__e = h, c;
}
-function ye(e, t, n, r, i) {
+function _e(e, t, n, r, i) {
var a, o, s, c, l, u = n.length, d = u, f = 0;
- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = de(null, o, null, null, null) : ce(o) ? o = e.__k[a] = de(F, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = de(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = xe(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
- if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = pe(s)), je(s, s));
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = ue(null, o, null, null, null) : se(o) ? o = e.__k[a] = ue(F, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = ue(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = ye(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
+ if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = I(s)), ke(s, s));
return r;
}
-function be(e, t, n) {
+function ve(e, t, n) {
var r, i;
if (typeof e.type == "function") {
- for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = be(r[i], t, n));
+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = ve(r[i], t, n));
return t;
}
- e.__e != t && (t && e.type && !t.parentNode && (t = pe(e)), t = n.insertBefore(e.__e, t || null));
+ e.__e != t && (t && e.type && !t.parentNode && (t = I(e)), t = n.insertBefore(e.__e, t || null));
do
t &&= t.nextSibling;
while (t != null && t.nodeType == 8);
return t;
}
-function xe(e, t, n, r) {
+function ye(e, t, n, r) {
var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
if (l === null && s == null || u && s == l.key && c == l.type) return n;
if (r > +!!u) {
@@ -96,18 +96,18 @@ function xe(e, t, n, r) {
}
return -1;
}
-function Se(e, t, n) {
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || se.test(t) ? n : n + "px";
+function be(e, t, n) {
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || oe.test(t) ? n : n + "px";
}
-function Ce(e, t, n, r, i) {
+function xe(e, t, n, r, i) {
var a, o;
n: if (t == "style") {
if (typeof n == "string") e.style.cssText = n;
else {
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || Se(e.style, t, "");
- if (n) for (t in n) r && n[t] == r[t] || Se(e.style, t, n[t]);
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || be(e.style, t, "");
+ if (n) for (t in n) r && n[t] == r[t] || be(e.style, t, n[t]);
}
- } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(ne, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[M] = r[M] : (n[M] = re, e.addEventListener(t, a ? ie : N, a)) : e.removeEventListener(t, a ? ie : N, a);
+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(te, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[M] = r[M] : (n[M] = ne, e.addEventListener(t, a ? N : re, a)) : e.removeEventListener(t, a ? N : re, a);
else {
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -117,72 +117,72 @@ function Ce(e, t, n, r, i) {
typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
}
}
-function we(e) {
+function Se(e) {
return function(t) {
if (this.l) {
var n = this.l[t.type + e];
- if (t[te] == null) t[te] = re++;
- else if (t[te] < n[M]) return;
- return n(T.event ? T.event(t) : t);
+ if (t[ee] == null) t[ee] = ne++;
+ else if (t[ee] < n[M]) return;
+ return n(w.event ? w.event(t) : t);
}
};
}
-function Te(e, t, n, r, i, a, o, s, c, l) {
- var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, E, D = t.type;
+function Ce(e, t, n, r, i, a, o, s, c, l) {
+ var u, d, f, p, m, h, g, _, v, y, b, x, S, C, T, E, D = t.type;
if (t.constructor !== void 0) return null;
- 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = T.__b) && u(t);
+ 128 & n.__u && (c = !!(32 & n.__u), a = [s = t.__e = n.__e]), (u = w.__b) && u(t);
n: if (typeof D == "function") {
d = o.length;
try {
- if (v = t.props, y = D.prototype && D.prototype.render, b = (u = D.contextType) && r[u.__c], x = u ? b ? b.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (y ? t.__c = f = new D(v, x) : (t.__c = f = new fe(v, x), f.constructor = D, f.render = Me), b && b.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = P({}, f.__s)), P(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);
+ if (v = t.props, y = D.prototype && D.prototype.render, b = (u = D.contextType) && r[u.__c], x = u ? b ? b.props.value : u.__ : r, n.__c ? _ = (f = t.__c = n.__c).__ = f.__E : (y ? t.__c = f = new D(v, x) : (t.__c = f = new de(v, x), f.constructor = D, f.render = Ae), b && b.sub(f), f.state || (f.state = {}), f.__n = r, p = f.__d = !0, f.__h = [], f._sb = []), y && f.__s == null && (f.__s = f.state), y && D.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = P({}, f.__s)), P(f.__s, D.getDerivedStateFromProps(v, f.__s))), m = f.props, h = f.state, f.__v = t, p) y && D.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), y && f.componentDidMount != null && f.__h.push(f.componentDidMount);
else {
if (y && D.getDerivedStateFromProps == null && v !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(v, x), t.__v == n.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(v, f.__s, x)) {
t.__v != n.__v && (f.props = v, f.state = f.__s, f.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(e) {
e && (e.__ = t);
- }), oe.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = pe(n);
+ }), ae.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && o.push(f), s = I(n);
break n;
}
f.componentWillUpdate != null && f.componentWillUpdate(v, f.__s, x), y && f.componentDidUpdate != null && f.__h.push(function() {
f.componentDidUpdate(m, h, g);
});
}
- if (f.context = x, f.props = v, f.__P = e, f.__e = !1, S = T.__r, C = 0, y) f.state = f.__s, f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), oe.push.apply(f.__h, f._sb), f._sb = [];
+ if (f.context = x, f.props = v, f.__P = e, f.__e = !1, S = w.__r, C = 0, y) f.state = f.__s, f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), ae.push.apply(f.__h, f._sb), f._sb = [];
else do
f.__d = !1, S && S(t), u = f.render(f.props, f.state, f.context), f.state = f.__s;
while (f.__d && ++C < 25);
- f.state = f.__s, f.getChildContext != null && (r = P(P({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), w = u != null && u.type === F && u.key == null ? Oe(u.props.children) : u, s = ve(e, ce(w) ? w : [w], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);
+ f.state = f.__s, f.getChildContext != null && (r = P(P({}, r), f.getChildContext())), y && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), T = u != null && u.type === F && u.key == null ? Ee(u.props.children) : u, s = ge(e, se(T) ? T : [T], t, n, r, i, a, o, s, c, l), f.base = t.__e, t.__u &= -161, f.__h.length && o.push(f), _ && (f.__E = f.__ = null);
} catch (e) {
if (o.length = d, t.__v = null, c || a != null) {
if (e.then) {
for (t.__u |= c ? 160 : 128; s && s.nodeType == 8 && s.nextSibling;) s = s.nextSibling;
a != null && (a[a.indexOf(s)] = null), t.__e = s;
- } else if (a != null) for (E = a.length; E--;) le(a[E]);
+ } else if (a != null) for (E = a.length; E--;) ce(a[E]);
} else t.__e = n.__e;
- t.__k ??= n.__k || [], e.then || Ee(t), T.__e(e, t, n);
+ t.__k ??= n.__k || [], e.then || we(t), w.__e(e, t, n);
}
- } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = ke(n.__e, t, n, r, i, a, o, c, l);
- return (u = T.diffed) && u(t), 128 & t.__u ? void 0 : s;
+ } else a == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = De(n.__e, t, n, r, i, a, o, c, l);
+ return (u = w.diffed) && u(t), 128 & t.__u ? void 0 : s;
}
-function Ee(e) {
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(Ee));
+function we(e) {
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(we));
}
-function De(e, t, n) {
- for (var r = 0; r < n.length; r++) Ae(n[r], n[++r], n[++r]);
- T.__c && T.__c(t, e), e.some(function(t) {
+function Te(e, t, n) {
+ for (var r = 0; r < n.length; r++) Oe(n[r], n[++r], n[++r]);
+ w.__c && w.__c(t, e), e.some(function(t) {
try {
e = t.__h, t.__h = [], e.some(function(e) {
e.call(t);
});
} catch (e) {
- T.__e(e, t.__v);
+ w.__e(e, t.__v);
}
});
}
-function Oe(e) {
- return typeof e != "object" || !e || e.__b > 0 ? e : ce(e) ? e.map(Oe) : e.constructor === void 0 ? P({}, e) : null;
+function Ee(e) {
+ return typeof e != "object" || !e || e.__b > 0 ? e : se(e) ? e.map(Ee) : e.constructor === void 0 ? P({}, e) : null;
}
-function ke(e, t, n, r, i, a, o, s, c) {
- var l, u, d, f, p, m, h, g = n.props || ae, _ = t.props, v = t.type;
+function De(e, t, n, r, i, a, o, s, c) {
+ var l, u, d, f, p, m, h, g = n.props || ie, _ = t.props, v = t.type;
if (v == "svg" ? i = "http://www.w3.org/2000/svg" : v == "math" ? i = "http://www.w3.org/1998/Math/MathML" : i ||= "http://www.w3.org/1999/xhtml", a != null) {
for (l = 0; l < a.length; l++) if ((p = a[l]) && "setAttribute" in p == !!v && (v ? p.localName == v : p.nodeType == 3)) {
e = p, a[l] = null;
@@ -191,74 +191,74 @@ function ke(e, t, n, r, i, a, o, s, c) {
}
if (e == null) {
if (v == null) return document.createTextNode(_);
- e = document.createElementNS(i, v, _.is && _), s &&= (T.__m && T.__m(t, a), !1), a = null;
+ e = document.createElementNS(i, v, _.is && _), s &&= (w.__m && w.__m(t, a), !1), a = null;
}
if (v == null) g === _ || s && e.data == _ || (e.data = _);
else {
- if (a = v == "textarea" && _.defaultValue != null ? null : a && w.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;
- for (l in g) p = g[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in _ || l == "value" && "defaultValue" in _ || l == "checked" && "defaultChecked" in _ || Ce(e, l, null, p, i);
- for (l in _) p = _[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? h = p : s && typeof p != "function" || g[l] === p || Ce(e, l, p, g[l], i);
+ if (a = v == "textarea" && _.defaultValue != null ? null : a && C.call(e.childNodes), !s && a != null) for (g = {}, l = 0; l < e.attributes.length; l++) g[(p = e.attributes[l]).name] = p.value;
+ for (l in g) p = g[l], l == "dangerouslySetInnerHTML" ? d = p : l == "children" || l in _ || l == "value" && "defaultValue" in _ || l == "checked" && "defaultChecked" in _ || xe(e, l, null, p, i);
+ for (l in _) p = _[l], l == "children" ? f = p : l == "dangerouslySetInnerHTML" ? u = p : l == "value" ? m = p : l == "checked" ? h = p : s && typeof p != "function" || g[l] === p || xe(e, l, p, g[l], i);
if (u) s || d && (u.__html == d.__html || u.__html == e.innerHTML) || (e.innerHTML = u.__html), t.__k = [];
- else if (d && (e.innerHTML = ""), ve(t.type == "template" ? e.content : e, ce(f) ? f : [f], t, n, r, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && pe(n, 0), s, c), a != null) for (l = a.length; l--;) le(a[l]);
- s && v != "textarea" || (l = "value", v == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || v == "progress" && !m || v == "option" && m != g[l]) && Ce(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && Ce(e, l, h, g[l], i));
+ else if (d && (e.innerHTML = ""), ge(t.type == "template" ? e.content : e, se(f) ? f : [f], t, n, r, v == "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, a, o, a ? a[0] : n.__k && I(n, 0), s, c), a != null) for (l = a.length; l--;) ce(a[l]);
+ s && v != "textarea" || (l = "value", v == "progress" && m == null ? e.removeAttribute("value") : m != null && (m !== e[l] || v == "progress" && !m || v == "option" && m != g[l]) && xe(e, l, m, g[l], i), l = "checked", h != null && h != e[l] && xe(e, l, h, g[l], i));
}
return e;
}
-function Ae(e, t, n) {
+function Oe(e, t, n) {
try {
if (typeof e == "function") {
var r = typeof e.__u == "function";
r && e.__u(), r && t == null || (e.__u = e(t));
} else e.current = t;
} catch (e) {
- T.__e(e, n);
+ w.__e(e, n);
}
}
-function je(e, t, n) {
+function ke(e, t, n) {
var r, i;
- if (T.unmount && T.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Ae(r, null, t)), (r = e.__c) != null) {
+ if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || Oe(r, null, t)), (r = e.__c) != null) {
if (r.componentWillUnmount) try {
r.componentWillUnmount();
} catch (e) {
- T.__e(e, t);
+ w.__e(e, t);
}
r.base = r.__P = r.__n = null;
}
- if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && je(r[i], t, n || typeof e.type != "function");
- n || le(e.__e), e.__c = e.__ = e.__e = void 0;
+ if (r = e.__k) for (i = 0; i < r.length; i++) r[i] && ke(r[i], t, n || typeof e.type != "function");
+ n || ce(e.__e), e.__c = e.__ = e.__e = void 0;
}
-function Me(e, t, n) {
+function Ae(e, t, n) {
return this.constructor(e, n);
}
-function Ne(e, t, n) {
+function je(e, t, n) {
var r, i, a, o;
- t == document && (t = document.documentElement), T.__ && T.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], Te(t, e = (!r && n || t).__k = ue(F, null, [e]), i || ae, ae, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? w.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), De(a, e, o), e.props.children = null;
+ t == document && (t = document.documentElement), w.__ && w.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], o = [], Ce(t, e = (!r && n || t).__k = le(F, null, [e]), i || ie, ie, t.namespaceURI, !r && n ? [n] : i ? null : t.firstChild ? C.call(t.childNodes) : null, a, !r && n ? n : i ? i.__e : t.firstChild, r, o), Te(a, e, o), e.props.children = null;
}
-w = oe.slice, T = { __e: function(e, t, n, r) {
+C = ae.slice, w = { __e: function(e, t, n, r) {
for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
} catch (t) {
e = t;
}
throw e;
-} }, E = 0, D = function(e) {
+} }, T = 0, E = function(e) {
return e != null && e.constructor === void 0;
-}, fe.prototype.setState = function(e, t) {
+}, de.prototype.setState = function(e, t) {
var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = P({}, this.state);
- typeof e == "function" && (e = e(P({}, n), this.props)), e && P(n, e), e != null && this.__v && (t && this._sb.push(t), ge(this));
-}, fe.prototype.forceUpdate = function(e) {
- this.__v && (this.__e = !0, e && this.__h.push(e), ge(this));
-}, fe.prototype.render = F, O = [], A = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, j = function(e, t) {
+ typeof e == "function" && (e = e(P({}, n), this.props)), e && P(n, e), e != null && this.__v && (t && this._sb.push(t), me(this));
+}, de.prototype.forceUpdate = function(e) {
+ this.__v && (this.__e = !0, e && this.__h.push(e), me(this));
+}, de.prototype.render = F, D = [], k = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, A = function(e, t) {
return e.__v.__b - t.__v.__b;
-}, _e.__r = 0, ee = Math.random().toString(8), te = "__d" + ee, M = "__a" + ee, ne = /(PointerCapture)$|Capture$/i, re = 0, N = we(!1), ie = we(!0);
+}, he.__r = 0, j = Math.random().toString(8), ee = "__d" + j, M = "__a" + j, te = /(PointerCapture)$|Capture$/i, ne = 0, re = Se(!1), N = Se(!0);
//#endregion
//#region src/sort-preferences.ts
-function Pe(e, t, n) {
+function Me(e, t, n) {
return e === "seed" ? "" : e === t && n === "asc" ? "asc" : "desc";
}
//#endregion
//#region src/number-setting.ts
-var Fe = {
+var Ne = {
loginDaysSetting: {
min: 1,
max: 365,
@@ -306,17 +306,17 @@ var Fe = {
fallback: 60
}
};
-function Ie(e, t, n, r) {
+function Pe(e, t, n, r) {
return Number.isInteger(e) && e >= t && e <= n ? e : r;
}
-function Le(e, t, n) {
+function Fe(e, t, n) {
let r = e.querySelector("input[type=number]"), i = e.querySelector("[role=switch]"), a = e.querySelector(".board-number-fields");
r && (r.disabled = n, t !== null && t > 0 && (r.value = String(t))), i && (i.disabled = n, t !== null && (i.checked = t > 0)), a && t !== null && (a.hidden = t === 0);
}
-function Re(e, t, n, r, i) {
- let a = Fe[t];
+function Ie(e, t, n, r, i) {
+ let a = Ne[t];
if (!a) return !1;
- let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = Ie(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");
+ let { min: o, max: s, unit: c, optional: l, fallback: u } = a, d = `peach.number.${t}`, f = Pe(Number(localStorage.getItem(d)), o, s, r > 0 ? r : u), p = document.createElement("div");
p.className = "board-optional-number";
let m = document.createElement("div");
m.className = "board-number-fields", m.hidden = !!l && r === 0;
@@ -351,37 +351,37 @@ function Re(e, t, n, r, i) {
}
//#endregion
//#region src/board-metrics.ts
-var I = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
+var L = (e) => String(e ?? "").replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function ze(e, t, n, r = "chart-no-axes-combined") {
- return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${I(e)}</span><b class="board-stat-value">${I(t)}</b><small class="board-stat-footer">${I(n || "当前记录")}</small>`;
+function Le(e, t, n, r = "chart-no-axes-combined") {
+ return `<span class="board-stat-label"><span class="board-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24"><use href="#i-${/^[a-z0-9-]+$/.test(r) ? r : "database"}"/></svg></span>${L(e)}</span><b class="board-stat-value">${L(t)}</b><small class="board-stat-footer">${L(n || "当前记录")}</small>`;
}
-function Be(e, t, n) {
+function Re(e, t, n) {
if (!Number.isFinite(n) || n <= 0) return "";
let r = Math.max(0, Math.min(n, Number.isFinite(t) ? t : 0)), i = r / n * 100;
- return `<div class="board-job-progress" role="progressbar" aria-label="${I(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${I(e)}<small>${Math.round(i)}%</small></span></div>`;
+ return `<div class="board-job-progress" role="progressbar" aria-label="${L(e)}" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}"><svg width="36" height="36" viewBox="0 0 36 36" aria-hidden="true"><circle class="board-job-track" cx="18" cy="18" r="15"/><circle class="board-job-fill" cx="18" cy="18" r="15" pathLength="100" stroke-dasharray="${i} ${100 - i}" transform="rotate(-90 18 18)"/></svg><span>${L(e)}<small>${Math.round(i)}%</small></span></div>`;
}
-function Ve(e, t) {
+function ze(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0), r = n.reduce((e, t) => e + t.score, 0);
if (!r) return "";
let i = 0, a = n.map((e, t) => {
- let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${I(e.name)}:${e.score.toLocaleString()}</title></circle>`;
+ let n = e.score / r * 100, a = `<circle cx="100" cy="100" r="72" pathLength="100" fill="none" stroke="var(--chart-${t % 4})" stroke-width="22" stroke-dasharray="${n} ${100 - n}" stroke-dashoffset="${-i}"><title>${L(e.name)}:${e.score.toLocaleString()}</title></circle>`;
return i += n, a;
}).join("");
- return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${I(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${I(t)}</text></svg>`;
+ return `<svg class="board-distribution" viewBox="0 0 200 200" role="img" aria-label="${L(t)}"><g transform="rotate(-90 100 100)">${a}</g><text x="100" y="100" text-anchor="middle" dominant-baseline="middle">${L(t)}</text></svg>`;
}
-function He(e, t) {
+function Be(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 8);
if (!n.length) return "";
- let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${I(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
- return `<ol class="board-ranked-chart" aria-label="${I(t)}">${i}</ol>`;
+ let r = n[0].score, i = n.map((e) => `<li><span class="board-rank-fill" style="width:${(e.score / r * 100).toFixed(2)}%"></span><span>${L(e.name)}</span><b>${e.score.toLocaleString()}</b></li>`).join("");
+ return `<ol class="board-ranked-chart" aria-label="${L(t)}">${i}</ol>`;
}
-function Ue(e, t) {
+function Ve(e, t) {
let n = e.filter((e) => Number.isFinite(e.score) && e.score > 0).slice().sort((e, t) => t.score - e.score).slice(0, 6);
if (n.length < 3) return "";
let r = Math.max(...n.map((e) => e.score)), i = n.length, a = (e, t) => {
@@ -394,30 +394,30 @@ function Ue(e, t) {
100
].map((e) => `<polygon points="${o(() => e)}" class="board-radar-grid"/>`).join(""), c = n.map((e, t) => {
let [n, r] = a(t, 116);
- return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${I(e.name)}</text>`;
+ return `<text x="${n}" y="${r}" text-anchor="${n < 145 ? "end" : n > 175 ? "start" : "middle"}">${L(e.name)}</text>`;
}).join("");
- return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${I(t)}"><title>${I(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
+ return `<svg class="board-radar" viewBox="0 0 320 280" role="img" aria-label="${L(t)}"><title>${L(n.map((e) => `${e.name} ${e.score}`).join(","))}</title>${s}<polygon points="${o((e) => n[e].score / r * 100)}" class="board-radar-value"/>${c}</svg>`;
}
//#endregion
//#region node_modules/preact/hooks/dist/hooks.module.js
-var We, L, Ge, Ke, qe = 0, Je = [], R = T, Ye = R.__b, Xe = R.__r, Ze = R.diffed, Qe = R.__c, $e = R.unmount, et = R.__;
-function tt(e, t) {
- R.__h && R.__h(L, e, qe || t), qe = 0;
- var n = L.__H || (L.__H = {
+var He, R, Ue, We, Ge = 0, Ke = [], z = w, qe = z.__b, Je = z.__r, Ye = z.diffed, Xe = z.__c, Ze = z.unmount, Qe = z.__;
+function $e(e, t) {
+ z.__h && z.__h(R, e, Ge || t), Ge = 0;
+ var n = R.__H || (R.__H = {
__: [],
__h: []
});
return e >= n.__.length && n.__.push({}), n.__[e];
}
-function z(e) {
- return qe = 1, nt(dt, e);
+function B(e) {
+ return Ge = 1, et(lt, e);
}
-function nt(e, t, n) {
- var r = tt(We++, 2);
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : dt(void 0, t), function(e) {
+function et(e, t, n) {
+ var r = $e(He++, 2);
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : lt(void 0, t), function(e) {
var t = r.__N ? r.__N[0] : r.__[0], n = r.t(t, e);
t !== n && (r.__N = [n, r.__[1]], r.__c.setState({}));
- }], r.__c = L, !L.__f)) {
+ }], r.__c = R, !R.__f)) {
var i = function(e, t, n) {
if (!r.__c.__H) return !0;
var i = !1, o = r.__c.props !== e;
@@ -433,116 +433,116 @@ function nt(e, t, n) {
}
return !i || o;
};
- L.__f = !0;
- var a = L.shouldComponentUpdate, o = L.componentWillUpdate;
- L.componentWillUpdate = function(e, t, n) {
+ R.__f = !0;
+ var a = R.shouldComponentUpdate, o = R.componentWillUpdate;
+ R.componentWillUpdate = function(e, t, n) {
if (this.__e) {
var r = a;
a = void 0, i(e, t, n), a = r;
}
o && o.call(this, e, t, n);
- }, L.shouldComponentUpdate = i;
+ }, R.shouldComponentUpdate = i;
}
return r.__N || r.__;
}
-function B(e, t) {
- var n = tt(We++, 3);
- !R.__s && ut(n.__H, t) && (n.__ = e, n.u = t, L.__H.__h.push(n));
+function V(e, t) {
+ var n = $e(He++, 3);
+ !z.__s && ct(n.__H, t) && (n.__ = e, n.u = t, R.__H.__h.push(n));
}
-function rt(e, t) {
- var n = tt(We++, 4);
- !R.__s && ut(n.__H, t) && (n.__ = e, n.u = t, L.__h.push(n));
+function tt(e, t) {
+ var n = $e(He++, 4);
+ !z.__s && ct(n.__H, t) && (n.__ = e, n.u = t, R.__h.push(n));
}
-function V(e) {
- return qe = 5, it(function() {
+function H(e) {
+ return Ge = 5, nt(function() {
return { current: e };
}, []);
}
-function it(e, t) {
- var n = tt(We++, 7);
- return ut(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
+function nt(e, t) {
+ var n = $e(He++, 7);
+ return ct(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
}
-function at() {
- for (var e; e = Je.shift();) {
+function rt() {
+ for (var e; e = Ke.shift();) {
var t = e.__H;
if (e.__P && t) try {
- t.__h.some(ct), t.__h.some(lt), t.__h = [];
+ t.__h.some(ot), t.__h.some(st), t.__h = [];
} catch (n) {
- t.__h = [], R.__e(n, e.__v);
+ t.__h = [], z.__e(n, e.__v);
}
}
}
-R.__b = function(e) {
- L = null, Ye && Ye(e);
-}, R.__ = function(e, t) {
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), et && et(e, t);
-}, R.__r = function(e) {
- Xe && Xe(e), We = 0;
- var t = (L = e.__c).__H;
- t && (Ge === L ? (t.__h = [], L.__h = [], t.__.some(function(e) {
+z.__b = function(e) {
+ R = null, qe && qe(e);
+}, z.__ = function(e, t) {
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Qe && Qe(e, t);
+}, z.__r = function(e) {
+ Je && Je(e), He = 0;
+ var t = (R = e.__c).__H;
+ t && (Ue === R ? (t.__h = [], R.__h = [], t.__.some(function(e) {
e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
- })) : (t.__h.some(ct), t.__h.some(lt), t.__h = [], We = 0)), Ge = L;
-}, R.diffed = function(e) {
- Ze && Ze(e);
+ })) : (t.__h.some(ot), t.__h.some(st), t.__h = [], He = 0)), Ue = R;
+}, z.diffed = function(e) {
+ Ye && Ye(e);
var t = e.__c;
- t && t.__H && (t.__H.__h.length && (Je.push(t) !== 1 && Ke === R.requestAnimationFrame || ((Ke = R.requestAnimationFrame) || st)(at)), t.__H.__.some(function(e) {
+ t && t.__H && (t.__H.__h.length && (Ke.push(t) !== 1 && We === z.requestAnimationFrame || ((We = z.requestAnimationFrame) || at)(rt)), t.__H.__.some(function(e) {
e.u &&= (e.__H = e.u, void 0);
- })), Ge = L = null;
-}, R.__c = function(e, t) {
+ })), Ue = R = null;
+}, z.__c = function(e, t) {
t.some(function(e) {
try {
- e.__h.some(ct), e.__h = e.__h.filter(function(e) {
- return !e.__ || lt(e);
+ e.__h.some(ot), e.__h = e.__h.filter(function(e) {
+ return !e.__ || st(e);
});
} catch (n) {
t.some(function(e) {
e.__h &&= [];
- }), t = [], R.__e(n, e.__v);
+ }), t = [], z.__e(n, e.__v);
}
- }), Qe && Qe(e, t);
-}, R.unmount = function(e) {
- $e && $e(e);
+ }), Xe && Xe(e, t);
+}, z.unmount = function(e) {
+ Ze && Ze(e);
var t, n = e.__c;
n && n.__H && (n.__H.__.some(function(e) {
try {
- ct(e);
+ ot(e);
} catch (e) {
t = e;
}
- }), n.__H = void 0, t && R.__e(t, n.__v));
+ }), n.__H = void 0, t && z.__e(t, n.__v));
};
-var ot = typeof requestAnimationFrame == "function";
-function st(e) {
+var it = typeof requestAnimationFrame == "function";
+function at(e) {
var t, n = function() {
- clearTimeout(r), ot && cancelAnimationFrame(t), setTimeout(e);
+ clearTimeout(r), it && cancelAnimationFrame(t), setTimeout(e);
}, r = setTimeout(n, 35);
- ot && (t = requestAnimationFrame(n));
+ it && (t = requestAnimationFrame(n));
}
-function ct(e) {
- var t = L, n = e.__c;
- typeof n == "function" && (e.__c = void 0, n()), L = t;
+function ot(e) {
+ var t = R, n = e.__c;
+ typeof n == "function" && (e.__c = void 0, n()), R = t;
}
-function lt(e) {
- var t = L;
- e.__c = e.__(), L = t;
+function st(e) {
+ var t = R;
+ e.__c = e.__(), R = t;
}
-function ut(e, t) {
+function ct(e, t) {
return !e || e.length !== t.length || t.some(function(t, n) {
return t !== e[n];
});
}
-function dt(e, t) {
+function lt(e, t) {
return typeof t == "function" ? t(e) : t;
}
//#endregion
//#region src/api.ts
-var ft = class extends Error {
+var ut = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(a(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, pt = (e) => {
+}, dt = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -554,8 +554,8 @@ var ft = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, H = (e) => a(e);
-async function U(e, t) {
+}, U = (e) => a(e);
+async function W(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -564,10 +564,10 @@ async function U(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new ft(pt(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new ut(dt(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function mt(e, t, n = "POST", r) {
+async function ft(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -581,15 +581,15 @@ async function mt(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new ft(pt(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new ut(dt(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/jobs.ts
-function ht(e, t = 0, n = 0) {
- return n > 0 ? Be(e, t, n) : p(e);
+function pt(e, t = 0, n = 0) {
+ return n > 0 ? Re(e, t, n) : p(e);
}
-async function gt(e) {
+async function mt(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -604,14 +604,14 @@ async function gt(e) {
await t(2e3);
}
}
-function _t(e) {
+function ht(e) {
let t = e.note || ((e) => h(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || p, r = e.progress || ((e, t, n) => ht(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
+ })), n = e.loading || p, r = e.progress || ((e, t, n) => pt(n || `已处理 ${e} / ${t}`, e, t)), i = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), a = document.createElement("div");
e.host.hidden = !0, a.dataset.followJob = "", a.setAttribute("aria-live", "polite"), e.host.prepend(a);
let o = e.storageKey || "peach-follow-job", s = sessionStorage.getItem(o) || void 0, c = !1;
- gt({
+ mt({
read: e.read,
active: () => !c && e.active() && a.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -637,9 +637,9 @@ function _t(e) {
}
//#endregion
//#region node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
-var vt = 0;
+var gt = 0;
Array.isArray;
-function W(e, t, n, r, i, a) {
+function G(e, t, n, r, i, a) {
t ||= {};
var o, s, c = t;
if ("ref" in c) for (s in c = {}, t) s == "ref" ? o = t[s] : c[s] = t[s];
@@ -654,46 +654,46 @@ function W(e, t, n, r, i, a) {
__e: null,
__c: null,
constructor: void 0,
- __v: --vt,
+ __v: --gt,
__i: -1,
__u: 0,
__source: i,
__self: a
};
if (typeof e == "function" && (o = e.defaultProps)) for (s in o) c[s] === void 0 && (c[s] = o[s]);
- return T.vnode && T.vnode(l), l;
+ return w.vnode && w.vnode(l), l;
}
//#endregion
//#region src/link-button.tsx
-function yt({ href: e, children: t }) {
- return /* @__PURE__ */ W("a", {
+function _t({ href: e, children: t }) {
+ return /* @__PURE__ */ G("a", {
class: "board-link-button",
href: e,
- children: [/* @__PURE__ */ W("span", { children: t }), /* @__PURE__ */ W("svg", {
+ children: [/* @__PURE__ */ G("span", { children: t }), /* @__PURE__ */ G("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-arrow-up" })
+ children: /* @__PURE__ */ G("use", { href: "#i-arrow-up" })
})]
});
}
//#endregion
//#region src/split-action.tsx
-function bt({ id: e, label: t, actions: n, busy: r }) {
- let i = V(null), a = V();
- rt(() => {
+function vt({ id: e, label: t, actions: n, busy: r }) {
+ let i = H(null), a = H();
+ tt(() => {
let e = i.current;
- return a.current = x(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
- }, []), rt(() => {
- i.current?.querySelectorAll("button").forEach((e) => b(e, r)), r && a.current?.setOpen(!1);
+ return a.current = b(e, e.querySelector(".splittoggle"), e.querySelector("[role=menu]")), () => a.current?.setOpen(!1);
+ }, []), tt(() => {
+ i.current?.querySelectorAll("button").forEach((e) => y(e, r)), r && a.current?.setOpen(!1);
}, [r]);
- let o = (e) => /* @__PURE__ */ W("svg", {
+ let o = (e) => /* @__PURE__ */ G("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: `#i-${e}` })
+ children: /* @__PURE__ */ G("use", { href: `#i-${e}` })
}), s = (e) => {
r || (a.current?.setOpen(!1), e.run());
};
- return /* @__PURE__ */ W("div", {
+ return /* @__PURE__ */ G("div", {
ref: i,
class: "splitbutton board-button-group primary",
onClickCapture: (e) => {
@@ -710,13 +710,13 @@ function bt({ id: e, label: t, actions: n, busy: r }) {
e.key === "Tab" && a.current?.setOpen(!1);
},
children: [
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
type: "button",
class: "splitmain geist-button primary",
onClick: () => s(n[0]),
children: [o(n[0].icon), n[0].label]
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
type: "button",
class: "splittoggle geist-button primary",
"aria-label": t,
@@ -725,16 +725,16 @@ function bt({ id: e, label: t, actions: n, busy: r }) {
"aria-controls": e,
children: o("chevron-down")
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "popmenu cardmenupanel",
id: e,
role: "menu",
hidden: !0,
- children: n.map((e) => /* @__PURE__ */ W("button", {
+ children: n.map((e) => /* @__PURE__ */ G("button", {
type: "button",
role: "menuitem",
onClick: () => s(e),
- children: [o(e.icon), /* @__PURE__ */ W("span", { children: e.label })]
+ children: [o(e.icon), /* @__PURE__ */ G("span", { children: e.label })]
}, e.label))
})
]
@@ -742,58 +742,58 @@ function bt({ id: e, label: t, actions: n, busy: r }) {
}
//#endregion
//#region src/islands/library-processing.tsx
-var xt = (e, t) => U("/api/library-processing", t), St = {
+var yt = (e, t) => W("/api/library-processing", t), bt = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
};
-function Ct(e) {
- let t = St[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function xt(e) {
+ let t = bt[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;
}
-var wt = "peach.library-processing.announced", Tt = 120;
-function Et(e, t, n) {
+var St = "peach.library-processing.announced", Ct = 120;
+function wt(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Tt;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Ct;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(wt) === e.job_id) return;
- e.job_id && localStorage.setItem(wt, e.job_id);
+ if (e.job_id && localStorage.getItem(St) === e.job_id) return;
+ e.job_id && localStorage.setItem(St, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选`);
}
}
-function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {
- let [s, c] = z(e || { status: "idle" }), [l, u] = z(t), [d, p] = z(!1), [m, g] = z(!1), v = V(new AbortController()), y = V(0), b = V(s.status), x = V(null);
- B(() => {
- x.current && S(x.current, ".geist-note-details", "library-issues");
+function Tt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, preview: o }) {
+ let [s, c] = B(e || { status: "idle" }), [l, u] = B(t), [d, p] = B(!1), [m, _] = B(!1), v = H(new AbortController()), y = H(0), b = H(s.status), S = H(null);
+ V(() => {
+ S.current && x(S.current, ".geist-note-details", "library-issues");
}, [s, l]);
let C = d || s.status === "running";
async function w() {
let e = ++y.current;
- await gt({
- read: (e) => U("/api/library-processing", e),
+ await mt({
+ read: (e) => W("/api/library-processing", e),
active: () => !v.current.signal.aborted && y.current === e,
keepWatching: i === "notice" || !!a,
render: (e) => {
c(e), u("");
let t = e.status === "complete" && b.current === "running";
- t && i !== "notice" && g(!0), (t || i === "notice") && Et(e, n, t), b.current === "running" && (e.status === "complete" || e.status === "failed") && r?.(), b.current = e.status;
+ t && i !== "notice" && _(!0), (t || i === "notice") && wt(e, n, t), b.current === "running" && (e.status === "complete" || e.status === "failed") && r?.(), b.current = e.status;
},
disconnected: () => u("连接中断,正在重新读取处理进度")
});
}
- B(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => v.current.abort()), []);
+ V(() => (!o && (s.status === "running" || i === "notice" || a) && w(), () => v.current.abort()), []);
async function T(e) {
if (!(C || o)) {
- p(!0), u(""), g(!1);
+ p(!0), u(""), _(!1);
try {
- let t = await mt("/api/library-processing", e, "POST", v.current.signal);
+ let t = await ft("/api/library-processing", e, "POST", v.current.signal);
if (v.current.signal.aborted) return;
b.current = t.status, c(t), p(!1), await w();
} catch (e) {
- v.current.signal.aborted || (u(H(e)), p(!1));
+ v.current.signal.aborted || (u(U(e)), p(!1));
}
}
}
@@ -805,8 +805,8 @@ function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
};
if (i === "notice") {
if (!l && s.status !== "running" && s.status !== "failed") return null;
- let e = l || (s.status === "failed" ? "扫描与资料采集未完成" : Ct(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));
- return /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: _(e, {
+ let e = l || (s.status === "failed" ? "扫描与资料采集未完成" : xt(s) + (s.total ? ` · ${s.checked || 0} / ${s.total}` : ""));
+ return /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: g(e, {
variant: s.status === "failed" ? "error" : l || s.stalled ? "warning" : "gray",
href: "/data-cleanup#libraryProcessing",
label: l || s.status === "failed" ? "查看并处理" : "查看进度",
@@ -824,33 +824,33 @@ function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
})),
footnote: s.issues_log ? `完整记录:${s.issues_log}` : ""
} : null;
- return /* @__PURE__ */ W(F, { children: [/* @__PURE__ */ W("section", {
+ return /* @__PURE__ */ G(F, { children: [/* @__PURE__ */ G("section", {
class: "cleanupfieldset",
"data-geist-fieldset": !0,
"aria-labelledby": "cleanupScrapingTitle",
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ G("div", {
class: "geist-fieldset-content library-processing",
children: [
- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("cleanupScrapingTitle", "扫描与采集") } }),
- /* @__PURE__ */ W("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
- s.status === "running" && /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: f("cleanupScrapingTitle", "扫描与采集") } }),
+ /* @__PURE__ */ G("p", { children: "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。" }),
+ s.status === "running" && /* @__PURE__ */ G("div", {
"aria-live": "polite",
- dangerouslySetInnerHTML: { __html: ht(s.total ? `${Ct(s)} · ${s.checked || 0} / ${s.total} 个视频` : Ct(s), s.checked, s.total) }
+ dangerouslySetInnerHTML: { __html: pt(s.total ? `${xt(s)} · ${s.checked || 0} / ${s.total} 个视频` : xt(s), s.checked, s.total) }
})
]
- }), /* @__PURE__ */ W("footer", {
+ }), /* @__PURE__ */ G("footer", {
class: "geist-fieldset-footer",
"data-geist-fieldset-footer": !0,
children: [
- /* @__PURE__ */ W(yt, {
+ /* @__PURE__ */ G(_t, {
href: "/scraping",
children: "来源和凭证"
}),
- !!s.candidates && /* @__PURE__ */ W(yt, {
+ !!s.candidates && /* @__PURE__ */ G(_t, {
href: "/review",
children: "复核资料"
}),
- (s.status !== "failed" || !k) && /* @__PURE__ */ W(bt, {
+ (s.status !== "failed" || !k) && /* @__PURE__ */ G(vt, {
id: "libraryProcessingMenu",
label: "更多扫描与采集方式",
busy: C,
@@ -874,12 +874,12 @@ function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
})
]
})]
- }), /* @__PURE__ */ W("div", {
+ }), /* @__PURE__ */ G("div", {
class: "library-processing-outcome",
"aria-live": "polite",
- ref: x,
+ ref: S,
children: [
- s.status === "running" && s.stalled && /* @__PURE__ */ W("div", {
+ s.status === "running" && s.stalled && /* @__PURE__ */ G("div", {
class: "library-processing-stalled",
dangerouslySetInnerHTML: { __html: h("这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", {
variant: "warning",
@@ -887,7 +887,7 @@ function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
filled: !0
}) }
}),
- (l || s.status === "failed") && /* @__PURE__ */ W("div", {
+ (l || s.status === "failed") && /* @__PURE__ */ G("div", {
role: "alert",
onClick: (e) => {
e.target.closest("[data-note-action]") && D();
@@ -899,14 +899,14 @@ function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
details: A
}) }
}),
- m && /* @__PURE__ */ W("div", {
+ m && /* @__PURE__ */ G("div", {
class: "library-processing-result",
dangerouslySetInnerHTML: { __html: h(`已扫描 ${s.scanned || 0} 个文件,识别 ${s.identified || 0} 个番号,整理 ${s.candidates || 0} 组资料候选。`, {
variant: "success",
label: "处理完成"
}) }
}),
- s.status === "complete" && A && /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h(`${s.issue_count || 0} 项采集记录`, {
+ s.status === "complete" && A && /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: h(`${s.issue_count || 0} 项采集记录`, {
variant: "secondary",
details: A
}) } })
@@ -915,13 +915,13 @@ function Dt({ data: e, error: t, toast: n, onComplete: r, mode: i, monitor: a, p
}
//#endregion
//#region src/management.ts
-function Ot(e) {
+function Et(e) {
return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);
}
-function kt(e, t) {
+function Dt(e, t) {
return t.filter((t) => e.some((e) => e.location === t));
}
-function At() {
+function Ot() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -966,7 +966,7 @@ function At() {
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
-function jt(e, t = !1, n = !1) {
+function kt(e, t = !1, n = !1) {
if (t || n) return "";
let r = "<svg class=\"externalmark\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-external-link\"></use></svg>";
return `<details class="taste-history-guide"${e ? " open" : ""}>
@@ -980,17 +980,17 @@ function jt(e, t = !1, n = !1) {
<button type="button" class="geist-button taste-guide-skip">跳过</button>
</div></details>`;
}
-var Mt = "peach-taste-guide-dismissed";
-function Nt(e, t) {
- S(e, ".taste-history-guide", "taste-guide-collapse");
+var At = "peach-taste-guide-dismissed";
+function jt(e, t) {
+ x(e, ".taste-history-guide", "taste-guide-collapse");
let n = e.querySelector(".taste-history-guide");
n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
- t.setItem(Mt, "1"), n.remove();
+ t.setItem(At, "1"), n.remove();
});
}
//#endregion
//#region src/board-state-preview.tsx
-var Pt = [
+var Mt = [
["idle", "待开始"],
["loading", "页面加载"],
["preparing", "准备任务"],
@@ -1002,9 +1002,9 @@ var Pt = [
["complete", "任务完成"],
["expired", "状态已失效"],
["paused", "来源已暂停"]
-], G = ({ html: e }) => /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: e } });
-function Ft() {
- let [e, t] = z("running"), [n, r] = z(0), [i, a] = z(document.documentElement.dataset.theme === "dark"), [o, s] = z(38), c = {
+], K = ({ html: e }) => /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: e } });
+function Nt() {
+ let [e, t] = B("running"), [n, r] = B(0), [i, a] = B(document.documentElement.dataset.theme === "dark"), [o, s] = B(38), c = {
status: e === "failed" ? "failed" : [
"running",
"preparing",
@@ -1026,19 +1026,19 @@ function Ft() {
issues_log: e === "failed" ? "peach-data\\state\\library-processing-preview.issues.jsonl" : "",
retryable_asset_ids: e === "failed" ? [7] : []
}, l = e === "disconnected" ? "连接中断,正在重新读取处理进度" : "";
- return /* @__PURE__ */ W("main", {
+ return /* @__PURE__ */ G("main", {
class: "board-state-preview",
children: [
- /* @__PURE__ */ W("header", { children: [/* @__PURE__ */ W("div", { children: [/* @__PURE__ */ W("h1", { children: "运行状态预览" }), /* @__PURE__ */ W("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("header", { children: [/* @__PURE__ */ G("div", { children: [/* @__PURE__ */ G("h1", { children: "运行状态预览" }), /* @__PURE__ */ G("p", { children: "演示数据 · 不连接任务接口,不执行扫描或写入。" })] }), /* @__PURE__ */ G("button", {
class: "geist-button",
onClick: () => {
document.documentElement.dataset.theme = i ? "light" : "dark", a(!i);
},
children: i ? "浅色" : "深色"
})] }),
- /* @__PURE__ */ W("nav", {
+ /* @__PURE__ */ G("nav", {
"aria-label": "演示状态",
- children: Pt.map(([i, a]) => /* @__PURE__ */ W("button", {
+ children: Mt.map(([i, a]) => /* @__PURE__ */ G("button", {
class: "geist-button",
"aria-pressed": e === i,
onClick: () => {
@@ -1047,29 +1047,29 @@ function Ft() {
children: a
}))
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "board-preview-tools",
- children: [/* @__PURE__ */ W("label", { children: [
+ children: [/* @__PURE__ */ G("label", { children: [
"任务进度 ",
- /* @__PURE__ */ W("input", {
+ /* @__PURE__ */ G("input", {
type: "range",
min: "0",
max: "100",
value: o,
onInput: (e) => s(Number(e.currentTarget.value))
}),
- /* @__PURE__ */ W("output", { children: [o, "%"] })
- ] }), /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("output", { children: [o, "%"] })
+ ] }), /* @__PURE__ */ G("button", {
class: "geist-button",
onClick: () => r(n + 1),
children: "重播状态"
})]
}),
- /* @__PURE__ */ W("section", {
+ /* @__PURE__ */ G("section", {
"aria-label": "页面横幅",
children: [
- /* @__PURE__ */ W("h2", { children: "全局任务横幅" }),
- /* @__PURE__ */ W(Dt, {
+ /* @__PURE__ */ G("h2", { children: "全局任务横幅" }),
+ /* @__PURE__ */ G(Tt, {
data: c,
error: l,
mode: "notice",
@@ -1083,17 +1083,17 @@ function Ft() {
"retrying",
"reconnected",
"failed"
- ].includes(e) && /* @__PURE__ */ W("p", { children: "此状态不常驻全局横幅。" })
+ ].includes(e) && /* @__PURE__ */ G("p", { children: "此状态不常驻全局横幅。" })
]
}),
- /* @__PURE__ */ W("section", { children: [
- /* @__PURE__ */ W("h2", { children: "数据管理 · 扫描与采集" }),
- e === "loading" ? /* @__PURE__ */ W(G, { html: At() }) : /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("section", { children: [
+ /* @__PURE__ */ G("h2", { children: "数据管理 · 扫描与采集" }),
+ e === "loading" ? /* @__PURE__ */ G(K, { html: Ot() }) : /* @__PURE__ */ G("div", {
class: "cleanupgrid",
- children: /* @__PURE__ */ W("div", {
+ children: /* @__PURE__ */ G("div", {
id: "libraryProcessing",
class: "cleanupscraping",
- children: /* @__PURE__ */ W(Dt, {
+ children: /* @__PURE__ */ G(Tt, {
data: c,
error: l,
preview: !0,
@@ -1101,52 +1101,52 @@ function Ft() {
}, `${e}-${n}-${o}`)
})
}),
- e === "complete" && /* @__PURE__ */ W(G, { html: h("已完成扫描与资料采集", {
+ e === "complete" && /* @__PURE__ */ G(K, { html: h("已完成扫描与资料采集", {
variant: "success",
label: "任务完成"
}) }),
- e === "expired" && /* @__PURE__ */ W(G, { html: h("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
- e === "paused" && /* @__PURE__ */ W("span", {
+ e === "expired" && /* @__PURE__ */ G(K, { html: h("任务状态已失效,请重新发起任务", { variant: "warning" }) }),
+ e === "paused" && /* @__PURE__ */ G("span", {
class: "sbadge paused",
children: "已暂停"
})
] }),
- /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ W("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ G("h2", { children: "关注检查与资源同步" }), /* @__PURE__ */ G("div", {
class: "board-preview-grid",
- children: [/* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "检查更新" }), /* @__PURE__ */ W(G, { html: e === "disconnected" ? h("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? h("检查失败:来源连接超时", {
+ children: [/* @__PURE__ */ G("article", { children: [/* @__PURE__ */ G("h3", { children: "检查更新" }), /* @__PURE__ */ G(K, { html: e === "disconnected" ? h("暂时无法读取进度,正在重新连接…", { label: "任务状态" }) : e === "failed" ? h("检查失败:来源连接超时", {
variant: "error",
actionLabel: "重试"
- }) : e === "running" || e === "retrying" || e === "reconnected" ? Be(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? p("正在准备检查任务…") : h(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ W("article", { children: [
- /* @__PURE__ */ W("h3", { children: "连接与恢复" }),
- /* @__PURE__ */ W(G, { html: _(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
+ }) : e === "running" || e === "retrying" || e === "reconnected" ? Re(`${e === "retrying" ? "第 2/3 次尝试,8 秒后重试 · " : ""}已完成 ${o}/100 个来源`, o, 100) : e === "preparing" ? p("正在准备检查任务…") : h(e === "complete" ? "已完成检查" : e === "paused" ? "已暂停自动检查" : e === "expired" ? "任务状态已失效,请重新发起任务" : "等待开始", { variant: e === "complete" ? "success" : "secondary" }) })] }), /* @__PURE__ */ G("article", { children: [
+ /* @__PURE__ */ G("h3", { children: "连接与恢复" }),
+ /* @__PURE__ */ G(K, { html: g(e === "disconnected" ? "暂时无法连接服务器,正在重连" : e === "reconnected" ? "连接已恢复,继续读取任务进度" : "连接正常", {
variant: e === "disconnected" ? "warning" : "gray",
href: "#",
label: "查看状态"
}) }),
- /* @__PURE__ */ W("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
+ /* @__PURE__ */ G("p", { children: "失去连接只影响进度读取;恢复连接后继续展示任务状态。" })
] })]
})] }),
- /* @__PURE__ */ W("section", { children: [/* @__PURE__ */ W("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ G("h2", { children: "错误与加载状态一览" }), /* @__PURE__ */ G("div", {
class: "board-preview-grid",
children: [
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "读取失败" }), /* @__PURE__ */ W(G, { html: h("无法读取状态,请重试", {
+ /* @__PURE__ */ G("article", { children: [/* @__PURE__ */ G("h3", { children: "读取失败" }), /* @__PURE__ */ G(K, { html: h("无法读取状态,请重试", {
variant: "error",
actionLabel: "重试"
}) })] }),
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "来源离线" }), /* @__PURE__ */ W(G, { html: h("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "没有待处理内容" }), /* @__PURE__ */ W(G, { html: h("没有待处理内容", { variant: "secondary" }) })] }),
- /* @__PURE__ */ W("article", { children: [/* @__PURE__ */ W("h3", { children: "等待响应" }), /* @__PURE__ */ W(G, { html: p("正在读取来源状态") })] })
+ /* @__PURE__ */ G("article", { children: [/* @__PURE__ */ G("h3", { children: "来源离线" }), /* @__PURE__ */ G(K, { html: h("媒体来源离线,请检查挂载状态", { variant: "warning" }) })] }),
+ /* @__PURE__ */ G("article", { children: [/* @__PURE__ */ G("h3", { children: "没有待处理内容" }), /* @__PURE__ */ G(K, { html: h("没有待处理内容", { variant: "secondary" }) })] }),
+ /* @__PURE__ */ G("article", { children: [/* @__PURE__ */ G("h3", { children: "等待响应" }), /* @__PURE__ */ G(K, { html: p("正在读取来源状态") })] })
]
})] })
]
});
}
-function It(e) {
- Ne(ue(Ft, {}), e);
+function Pt(e) {
+ je(le(Nt, {}), e);
}
//#endregion
//#region src/board-controls.ts
-function Lt(e) {
+function Ft(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");
@@ -1156,17 +1156,17 @@ function Lt(e) {
let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = l.right > c.right ? c.right - l.right : l.left < c.left ? c.left - l.left : 0;
u && s.style.setProperty("--range-tip-shift", `${Math.round(u)}px`), a.querySelectorAll(".board-range-tip").forEach((e) => e.toggleAttribute("data-range-active", e === s));
}
-function Rt() {
+function It() {
let e = (e) => {
- e.querySelectorAll("input[type=range]").forEach(Lt), Ht(e), Bt(e), Ut(e);
+ e.querySelectorAll("input[type=range]").forEach(Ft), Bt(e), Rt(e), Vt(e);
};
e(document), new MutationObserver((t) => {
- for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Lt(t), e(t));
+ for (let n of t) for (let t of n.addedNodes) t instanceof Element && (t.matches("input[type=range]") && Ft(t), e(t));
}).observe(document.body, {
subtree: !0,
childList: !0
}), document.addEventListener("input", (e) => {
- e.target instanceof HTMLInputElement && e.target.type === "range" && Lt(e.target);
+ e.target instanceof HTMLInputElement && e.target.type === "range" && Ft(e.target);
});
let t = document.createElement("div");
t.className = "board-tooltip", t.id = "board-control-tooltip", t.role = "tooltip", t.hidden = !0, document.body.append(t);
@@ -1187,8 +1187,8 @@ function Rt() {
e.key === "Escape" && o();
}), document.addEventListener("scroll", o, !0), window.addEventListener("resize", o);
}
-var zt = /* @__PURE__ */ new Map();
-function Bt(e) {
+var Lt = /* @__PURE__ */ new Map();
+function Rt(e) {
let t = ".managebar-menu,.board-local-nav:not(.settingscard>.board-local-nav)", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-tabs")) return;
@@ -1202,8 +1202,8 @@ function Bt(e) {
left: r.offsetLeft,
width: r.offsetWidth
};
- n(i), zt.set(t, i);
- }, i = zt.get(t);
+ n(i), Lt.set(t, i);
+ }, i = Lt.get(t);
i ? n(i) : r(), requestAnimationFrame(() => {
e.classList.add("board-tabs-ready"), requestAnimationFrame(r);
});
@@ -1223,15 +1223,15 @@ function Bt(e) {
o.observe(e);
});
}
-var Vt = /* @__PURE__ */ new Map();
-function Ht(e) {
+var zt = /* @__PURE__ */ new Map();
+function Bt(e) {
let t = ".iconswitch,.insightswitch,.insighttabs,.follow-workspace-switch", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-segments") || e.closest("[data-skeleton]")) return;
e.dataset.boardSegments = "true";
let t = document.createElement("span");
t.className = "board-segment-thumb", t.setAttribute("aria-hidden", "true"), e.prepend(t);
- let n = e.className + (e.getAttribute("aria-label") ?? ""), r = Vt.get(n) ?? null, i = () => {
+ let n = e.className + (e.getAttribute("aria-label") ?? ""), r = zt.get(n) ?? null, i = () => {
let i = e.querySelector("label:has(input:checked),button[aria-selected=true]");
if (!i || !i.offsetWidth) return;
let a = {
@@ -1240,7 +1240,7 @@ function Ht(e) {
w: i.offsetWidth,
h: i.offsetHeight
};
- m(t, r, a, "x"), r = a, Vt.set(n, a);
+ m(t, r, a, "x"), r = a, zt.set(n, a);
};
e.addEventListener("change", i);
let a = new MutationObserver(i);
@@ -1259,7 +1259,7 @@ function Ht(e) {
o.observe(e), i(), requestAnimationFrame(() => e.classList.add("board-segments-ready"));
});
}
-function Ut(e) {
+function Vt(e) {
let t = ".board-ranked-chart,.board-radar,.tasteranks,.board-heat-card,.board-sankey-card", n = [...e.querySelectorAll(t)];
e instanceof HTMLElement && e.matches(t) && n.push(e), n.forEach((e) => {
if (e.hasAttribute("data-board-chart")) return;
@@ -1277,7 +1277,7 @@ function Ut(e) {
n.observe(e);
});
}
-function Wt(e) {
+function Ht(e) {
e.querySelectorAll(".tasteranks,.insightranking").forEach((e, t) => {
if (e.children.length <= 5 || e.parentElement?.hasAttribute("data-expandable-ranks")) return;
let n = document.createElement("div");
@@ -1309,7 +1309,7 @@ function Wt(e) {
}
//#endregion
//#region node_modules/d3-array/src/max.js
-function Gt(e, t) {
+function Ut(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
else {
@@ -1320,7 +1320,7 @@ function Gt(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/min.js
-function Kt(e, t) {
+function Wt(e, t) {
let n;
if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
else {
@@ -1331,7 +1331,7 @@ function Kt(e, t) {
}
//#endregion
//#region node_modules/d3-array/src/sum.js
-function qt(e, t) {
+function Gt(e, t) {
let n = 0;
if (t === void 0) for (let t of e) (t = +t) && (n += t);
else {
@@ -1342,66 +1342,66 @@ function qt(e, t) {
}
//#endregion
//#region node_modules/d3-sankey/src/align.js
-function Jt(e, t) {
+function Kt(e, t) {
return e.sourceLinks.length ? e.depth : t - 1;
}
//#endregion
//#region node_modules/d3-sankey/src/constant.js
-function Yt(e) {
+function qt(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-sankey/src/sankey.js
-function Xt(e, t) {
- return Qt(e.source, t.source) || e.index - t.index;
+function Jt(e, t) {
+ return Xt(e.source, t.source) || e.index - t.index;
}
-function Zt(e, t) {
- return Qt(e.target, t.target) || e.index - t.index;
+function Yt(e, t) {
+ return Xt(e.target, t.target) || e.index - t.index;
}
-function Qt(e, t) {
+function Xt(e, t) {
return e.y0 - t.y0;
}
-function $t(e) {
+function Zt(e) {
return e.value;
}
-function en(e) {
+function Qt(e) {
return e.index;
}
-function tn(e) {
+function $t(e) {
return e.nodes;
}
-function nn(e) {
+function en(e) {
return e.links;
}
-function rn(e, t) {
+function tn(e, t) {
let n = e.get(t);
if (!n) throw Error("missing: " + t);
return n;
}
-function an({ nodes: e }) {
+function nn({ 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 on() {
- let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = en, c = Jt, l, u, d = tn, f = nn, p = 6;
+function rn() {
+ let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = Qt, c = Kt, l, u, d = $t, f = en, 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), an(e), e;
+ return h(e), g(e), _(e), v(e), x(e), nn(e), e;
}
m.update = function(e) {
- return an(e), e;
+ return nn(e), e;
}, m.nodeId = function(e) {
- return arguments.length ? (s = typeof e == "function" ? e : Yt(e), m) : s;
+ return arguments.length ? (s = typeof e == "function" ? e : qt(e), m) : s;
}, m.nodeAlign = function(e) {
- return arguments.length ? (c = typeof e == "function" ? e : Yt(e), m) : c;
+ return arguments.length ? (c = typeof e == "function" ? e : qt(e), m) : c;
}, m.nodeSort = function(e) {
return arguments.length ? (l = e, m) : l;
}, m.nodeWidth = function(e) {
@@ -1409,9 +1409,9 @@ function on() {
}, m.nodePadding = function(e) {
return arguments.length ? (a = o = +e, m) : a;
}, m.nodes = function(e) {
- return arguments.length ? (d = typeof e == "function" ? e : Yt(e), m) : d;
+ return arguments.length ? (d = typeof e == "function" ? e : qt(e), m) : d;
}, m.links = function(e) {
- return arguments.length ? (f = typeof e == "function" ? e : Yt(e), m) : f;
+ return arguments.length ? (f = typeof e == "function" ? e : qt(e), m) : f;
}, m.linkSort = function(e) {
return arguments.length ? (u = e, m) : u;
}, m.size = function(i) {
@@ -1427,12 +1427,12 @@ function on() {
for (let [e, r] of t.entries()) {
r.index = e;
let { source: t, target: i } = r;
- typeof t != "object" && (t = r.source = rn(n, t)), typeof i != "object" && (i = r.target = rn(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
+ typeof t != "object" && (t = r.source = tn(n, t)), typeof i != "object" && (i = r.target = tn(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(qt(t.sourceLinks, $t), qt(t.targetLinks, $t)) : t.fixedValue;
+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Gt(t.sourceLinks, Zt), Gt(t.targetLinks, Zt)) : t.fixedValue;
}
function _({ nodes: e }) {
let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;
@@ -1457,7 +1457,7 @@ function on() {
}
}
function y({ nodes: t }) {
- let r = Gt(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
+ let r = Ut(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
for (let n of t) {
let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -1466,7 +1466,7 @@ function on() {
return o;
}
function b(e) {
- let n = Kt(e, (e) => (r - t - (e.length - 1) * o) / qt(e, $t));
+ let n = Wt(e, (e) => (r - t - (e.length - 1) * o) / Gt(e, Zt));
for (let i of e) {
let e = t;
for (let t of i) {
@@ -1483,7 +1483,7 @@ function on() {
}
function x(e) {
let n = y(e);
- o = Math.min(a, (r - t) / (Gt(n, (e) => e.length) - 1)), b(n);
+ o = Math.min(a, (r - t) / (Ut(n, (e) => e.length) - 1)), b(n);
for (let e = 0; e < p; ++e) {
let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
C(n, t, r), S(n, t, r);
@@ -1502,7 +1502,7 @@ function on() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(Qt), w(i, n);
+ l === void 0 && i.sort(Xt), w(i, n);
}
}
function C(e, t, n) {
@@ -1518,7 +1518,7 @@ function on() {
let i = (n / r - e.y0) * t;
e.y0 += i, e.y1 += i, D(e);
}
- l === void 0 && i.sort(Qt), w(i, n);
+ l === void 0 && i.sort(Xt), w(i, n);
}
}
function w(e, n) {
@@ -1539,12 +1539,12 @@ function on() {
}
function D({ sourceLinks: e, targetLinks: t }) {
if (u === void 0) {
- for (let { source: { sourceLinks: e } } of t) e.sort(Zt);
- for (let { target: { targetLinks: t } } of e) t.sort(Xt);
+ for (let { source: { sourceLinks: e } } of t) e.sort(Yt);
+ for (let { target: { targetLinks: t } } of e) t.sort(Jt);
}
}
function O(e) {
- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Zt), n.sort(Xt);
+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Yt), n.sort(Jt);
}
function k(e, t) {
let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
@@ -1574,15 +1574,15 @@ function on() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var sn = Math.PI, cn = 2 * sn, K = 1e-6, ln = cn - K;
-function un() {
+var an = Math.PI, on = 2 * an, q = 1e-6, sn = on - q;
+function cn() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function dn() {
- return new un();
+function ln() {
+ return new cn();
}
-un.prototype = dn.prototype = {
- constructor: un,
+cn.prototype = ln.prototype = {
+ constructor: cn,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -1603,11 +1603,11 @@ un.prototype = dn.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 > K) {
- if (!(Math.abs(u * s - c * l) > K) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > q) {
+ if (!(Math.abs(u * s - c * l) > q) || !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((sn - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > K && (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((an - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > q && (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);
}
}
},
@@ -1615,7 +1615,7 @@ un.prototype = dn.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) > K || Math.abs(this._y1 - l) > K) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % cn + cn), d > ln ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > K && (this._ += "A" + n + "," + n + ",0," + +(d >= sn) + "," + 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) > q || Math.abs(this._y1 - l) > q) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % on + on), d > sn ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > q && (this._ += "A" + n + "," + n + ",0," + +(d >= an) + "," + 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";
@@ -1626,71 +1626,71 @@ un.prototype = dn.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function fn(e) {
+function un(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function pn(e) {
+function dn(e) {
return e[0];
}
-function mn(e) {
+function fn(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var hn = Array.prototype.slice;
+var pn = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function gn(e) {
+function mn(e) {
return e.source;
}
-function _n(e) {
+function hn(e) {
return e.target;
}
-function vn(e) {
- var t = gn, n = _n, r = pn, i = mn, a = null;
+function gn(e) {
+ var t = mn, n = hn, r = dn, i = fn, a = null;
function o() {
- var o, s = hn.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = dn(), 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 = pn.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = ln(), 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 : fn(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : un(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : fn(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : un(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function yn(e, t, n, r, i) {
+function _n(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function bn() {
- return vn(yn);
+function vn() {
+ return gn(_n);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function xn(e) {
+function yn(e) {
return [e.source.x1, e.y0];
}
-function Sn(e) {
+function bn(e) {
return [e.target.x0, e.y1];
}
-function Cn() {
- return bn().source(xn).target(Sn);
+function xn() {
+ return vn().source(yn).target(bn);
}
//#endregion
//#region src/board-sankey.ts
-function wn(e = []) {
+function Sn(e = []) {
let n = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!n.length) return "";
- let r = [...new Set(n.map((e) => e.source))], i = [...new Set(n.map((e) => e.target))], a = on().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
+ let r = [...new Set(n.map((e) => e.source))], i = [...new Set(n.map((e) => e.target))], a = rn().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
nodes: [...r.map((e) => ({
id: `source:${e}`,
name: e,
@@ -1705,13 +1705,13 @@ function wn(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), o = n.reduce((e, t) => e + t.value, 0), s = Cn(), c = a.links.map((e) => {
+ }), o = n.reduce((e, t) => e + t.value, 0), s = xn(), c = a.links.map((e) => {
let n = e.source, i = e.target;
return `<path d="${s(e)}" stroke-width="${Math.max(.5, e.width || 0)}" style="--flow-color:var(--board-chart-${r.indexOf(n.name) % 6})" data-flow-source="${n.index}" data-flow-target="${i.index}" data-flow-value="${e.value}" data-flow-label="${t(n.name)} → ${t(i.name)}" tabindex="0" role="img" aria-label="${t(n.name)} → ${t(i.name)}:${e.value} 条线索"/>`;
}).join(""), l = a.nodes.map((e) => `<g data-flow-node="${e.index}" data-flow-value="${e.value}" data-flow-label="${t(e.name)}" tabindex="0" role="img" aria-label="${t(e.name)}:${e.value} 条线索"><rect x="${e.x0}" y="${e.y0}" width="10" height="${Math.max(1, (e.y1 || 0) - (e.y0 || 0))}" rx="5" fill="${e.side === "source" ? `var(--board-chart-${r.indexOf(e.name) % 6})` : "var(--color-text-secondary)"}"/><text x="${e.side === "source" ? 145 : 545}" y="${((e.y0 || 0) + (e.y1 || 0)) / 2}" text-anchor="${e.side === "source" ? "end" : "start"}" dominant-baseline="middle">${t(e.name.length > 18 ? e.name.slice(0, 16) + "…" : e.name)}<tspan x="${e.side === "source" ? 145 : 545}" dy="15">${e.side === "source" ? e.value?.toLocaleString() : ((e.value || 0) / o * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");
return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${o.toLocaleString()}</b><span data-sankey-label>条线索</span></header><div class="board-sankey-scroll"><svg viewBox="0 0 720 435" aria-label="来源网站与创作者线索"><g class="board-sankey-links">${c}</g><g class="board-sankey-nodes">${l}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;
}
-function Tn(e) {
+function Cn(e) {
e.querySelectorAll("[data-sankey-card]").forEach((e) => {
let t = [...e.querySelectorAll("[data-flow-source]")], n = [...e.querySelectorAll("[data-flow-node]")], r = e.querySelector("[data-sankey-number]"), i = e.querySelector("[data-sankey-label]"), a = r.textContent, o = () => {
t.forEach((e) => e.style.opacity = ""), n.forEach((e) => e.style.opacity = ""), r.textContent = a, i.textContent = "条线索";
@@ -1727,9 +1727,9 @@ function Tn(e) {
}
//#endregion
//#region src/board-analytics.ts
-var En = (e) => Number.isFinite(e) && e >= 0;
-function Dn(e, n, r = "个视频") {
- let i = e.filter((e) => En(e.value));
+var wn = (e) => Number.isFinite(e) && e >= 0;
+function Tn(e, n, r = "个视频") {
+ let i = e.filter((e) => wn(e.value));
if (!i.length) return "";
let a = i.reduce((e, t) => e + t.value, 0), o = Math.max(1, ...i.map((e) => e.value)) * 1.1, s = Math.min(22, 110 / Math.max(1, i.length)), c = Math.min(15, s * .68), l = i.map((e, n) => {
let i = 32 + n * s, a = e.value / o * 100;
@@ -1737,7 +1737,7 @@ function Dn(e, n, r = "个视频") {
}).join("");
return `<section class="board-radial-card" data-radial-card data-radial-total="${a}" data-radial-title="${t(n)}"><header><span data-radial-label>${t(n)}</span><b data-radial-number>${a.toLocaleString()}</b><small>${t(r)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${t(n)}">${l}</svg><div class="board-radial-tiles">${i.map((e, n) => `<button type="button" data-radial-tile="${n}" data-radial-value="${e.value}" data-radial-name="${t(e.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${n % 6})"><span><i aria-hidden="true"></i>${t(e.name)}</span><b>${e.value.toLocaleString()}</b>${e.detail ? `<small>${t(e.detail)}</small>` : ""}</button>`).join("")}</div></section>`;
}
-function On(e) {
+function En(e) {
e.querySelectorAll("[data-radial-card]").forEach((e) => {
let t = [...e.querySelectorAll("[data-radial-tile]")], n = [...e.querySelectorAll("[data-radial-ring]")], r = e.querySelector("[data-radial-number]"), i = e.querySelector("[data-radial-label]"), a = -1, o = 0, s = 0, c = (c, l = 300) => {
e.dataset.radialFocus = String(c), t.forEach((e, t) => {
@@ -1774,7 +1774,7 @@ function On(e) {
}
});
}
-var kn = [
+var Dn = [
"周一",
"周二",
"周三",
@@ -1783,11 +1783,11 @@ var kn = [
"周六",
"周日"
];
-function An(e) {
+function On(e) {
if (!e?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";
let n = Array.from({ length: 7 }, () => Array(24).fill(0));
- for (let t of e.hours || []) Number.isInteger(t.weekday) && t.weekday >= 0 && t.weekday < 7 && Number.isInteger(t.hour) && t.hour >= 0 && t.hour < 24 && En(t.count) && (n[t.weekday][t.hour] = (n[t.weekday][t.hour] || 0) + t.count);
- let r = Math.max(1, ...n.flat()), i = n.flat().reduce((e, t) => e + t, 0), a = n.map((e, t) => `<span class="board-heat-axis">${kn[t]}</span>${e.map((e, n) => `<button type="button" data-heat-value="${e}" data-heat-label="${kn[t]} ${n}:00" aria-label="${kn[t]} ${n}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / r * 100) : 0}%"></button>`).join("")}`).join(""), o = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && En(e.count)).sort((e, t) => e.date.localeCompare(t.date));
+ for (let t of e.hours || []) Number.isInteger(t.weekday) && t.weekday >= 0 && t.weekday < 7 && Number.isInteger(t.hour) && t.hour >= 0 && t.hour < 24 && wn(t.count) && (n[t.weekday][t.hour] = (n[t.weekday][t.hour] || 0) + t.count);
+ let r = Math.max(1, ...n.flat()), i = n.flat().reduce((e, t) => e + t, 0), a = n.map((e, t) => `<span class="board-heat-axis">${Dn[t]}</span>${e.map((e, n) => `<button type="button" data-heat-value="${e}" data-heat-label="${Dn[t]} ${n}:00" aria-label="${Dn[t]} ${n}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / r * 100) : 0}%"></button>`).join("")}`).join(""), o = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && wn(e.count)).sort((e, t) => e.date.localeCompare(t.date));
if (!o.length) return "";
let s = /* @__PURE__ */ new Date(`${o.at(-1).date}T00:00:00Z`), c = new Date(s);
c.setUTCDate(c.getUTCDate() - 90);
@@ -1799,7 +1799,7 @@ function An(e) {
}).join("");
return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${i.toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-heat-scroll"><div class="board-hour-grid"><span></span>${Array.from({ length: 24 }, (e, t) => `<span class="board-heat-axis">${t % 2 ? "" : t}</span>`).join("")}${a}</div></div><footer>星期 × 小时<span>${t(e.timezone || "UTC+08:00")}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${o.filter((e) => e.date >= c.toISOString().slice(0, 10)).reduce((e, t) => e + t.count, 0).toLocaleString()}</b><span data-heat-title data-heat-default="口味网站访问">口味网站访问</span></header><div class="board-day-grid">${d}</div><footer>${c.toISOString().slice(0, 10)}<span>${o.at(-1).date}</span></footer></section></div>`;
}
-function jn(e) {
+function kn(e) {
e.querySelectorAll("[data-heat-card]").forEach((e) => {
let t = e.querySelector("[data-heat-number]"), n = e.querySelector("[data-heat-title]"), r = t.textContent;
e.querySelectorAll("[data-heat-value]").forEach((e) => {
@@ -1814,19 +1814,19 @@ function jn(e) {
}
//#endregion
//#region src/sidebar-groups.ts
-var Mn = (e) => e.replace(/[&<>"']/g, (e) => ({
+var An = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Nn(e, t, n = "", r = "") {
+function jn(e, t, n = "", r = "") {
if (!t) return "";
let i = `sidebar-group-${encodeURIComponent(e)}`;
- return `<details class="sec${r ? " cat-" + Mn(r) : ""}" data-sidebar-group="${Mn(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${Mn(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
+ return `<details class="sec${r ? " cat-" + An(r) : ""}" data-sidebar-group="${An(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${An(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
}
-function Pn(e) {
+function Mn(e) {
e.querySelectorAll("[data-sidebar-group]").forEach((e) => {
if (e.dataset.sidebarWired) return;
e.dataset.sidebarWired = "true";
@@ -1836,7 +1836,7 @@ function Pn(e) {
} catch {}
let i = !!t.querySelector("[aria-pressed=true]");
e.open = r === null ? i : r === "open";
- }), S(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
+ }), x(e, "details[data-sidebar-group]", "sidebar-collapse"), e.querySelectorAll(".board-section-toggle").forEach((e) => {
e.dataset.persistWired || (e.dataset.persistWired = "true", e.addEventListener("click", () => {
let t = `peach.sidebar.group.${e.closest("[data-sidebar-group]").dataset.sidebarGroup}`;
try {
@@ -1845,15 +1845,15 @@ function Pn(e) {
}));
});
}
-var Fn = !1;
-async function In(e, t) {
- if (Fn) return;
+var Nn = !1;
+async function Pn(e, t) {
+ if (Nn) return;
if (!document.startViewTransition || matchMedia("(prefers-reduced-motion: reduce)").matches) {
t();
return;
}
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = Math.hypot(Math.max(r, innerWidth - r), Math.max(i, innerHeight - i)) * 2.5, o = document.createElement("style");
- o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Fn = !0, document.head.append(o);
+ o.textContent = `::view-transition-old(root){animation:none}::view-transition-new(root){mix-blend-mode:normal;mask-image:radial-gradient(circle closest-side,#000 78%,#0006 88%,transparent);mask-repeat:no-repeat;will-change:mask-position,mask-size;animation:peach-theme-reveal 560ms cubic-bezier(.16,1,.3,1) both}@keyframes peach-theme-reveal{from{mask-position:${r}px ${i}px;mask-size:0px 0px}to{mask-position:${r - a / 2}px ${i - a / 2}px;mask-size:${a}px ${a}px}}`, Nn = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -1864,19 +1864,19 @@ async function In(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), Fn = !1;
+ delete s.dataset.themeSnapshot, o.remove(), Nn = !1;
}
}
//#endregion
//#region src/configuration-endpoints.ts
-var Ln = "/api/configuration";
+var Fn = "/api/configuration";
//#endregion
//#region src/react-slot.tsx
-function Rn({ mount: e, props: t }) {
- let n = V(null), r = V(null), i = V(t);
+function In({ mount: e, props: t }) {
+ let n = H(null), r = H(null), i = H(t);
i.current = t;
- let [a, o] = z("");
- return B(() => {
+ let [a, o] = B("");
+ return V(() => {
let t = !1;
return import("/dist/peach-react.js").then((a) => {
if (t || !n.current) return;
@@ -1887,22 +1887,22 @@ function Rn({ mount: e, props: t }) {
}), () => {
t = !0, r.current?.unmount(), r.current = null;
};
- }, [e]), B(() => {
+ }, [e]), V(() => {
r.current?.update(t);
- }), a ? /* @__PURE__ */ W("p", {
+ }), a ? /* @__PURE__ */ G("p", {
class: "configbad",
role: "alert",
children: ["界面组件没有加载:", a]
- }) : /* @__PURE__ */ W("div", {
+ }) : /* @__PURE__ */ G("div", {
ref: n,
class: "peach-react"
});
}
//#endregion
//#region src/islands/configuration.tsx
-var zn = (e, t) => U(Ln, t);
-function Bn({ receipt: e, data: t, error: n }) {
- if (n || !t) return /* @__PURE__ */ W("div", {
+var Ln = (e, t) => W(Fn, t);
+function Rn({ receipt: e, data: t, error: n }) {
+ if (n || !t) return /* @__PURE__ */ G("div", {
class: "configpage",
dangerouslySetInnerHTML: { __html: h(n || "没有读到配置", {
variant: "error",
@@ -1913,38 +1913,38 @@ function Bn({ receipt: e, data: t, error: n }) {
data: t,
receipt: e
};
- return /* @__PURE__ */ W("div", {
+ return /* @__PURE__ */ G("div", {
class: "configpage",
children: [
- t.startup ? /* @__PURE__ */ W("h2", {
+ t.startup ? /* @__PURE__ */ G("h2", {
class: "configgroup",
children: "通用"
}) : null,
- t.startup ? /* @__PURE__ */ W(Rn, {
+ t.startup ? /* @__PURE__ */ G(In, {
mount: "mountGeneralSettings",
props: r
}) : null,
- /* @__PURE__ */ W("h2", {
+ /* @__PURE__ */ G("h2", {
class: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ W(Rn, {
+ /* @__PURE__ */ G(In, {
mount: "mountMediaSettings",
props: r
}),
- t.peach_proxy || t.access ? /* @__PURE__ */ W("h2", {
+ t.peach_proxy || t.access ? /* @__PURE__ */ G("h2", {
class: "configgroup",
children: "网络与访问"
}) : null,
- t.peach_proxy || t.access ? /* @__PURE__ */ W(Rn, {
+ t.peach_proxy || t.access ? /* @__PURE__ */ G(In, {
mount: "mountNetworkSettings",
props: r
}) : null,
- /* @__PURE__ */ W("h2", {
+ /* @__PURE__ */ G("h2", {
class: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ W(Rn, {
+ /* @__PURE__ */ G(In, {
mount: "mountMaintenanceSettings",
props: r
})
@@ -1953,23 +1953,23 @@ function Bn({ receipt: e, data: t, error: n }) {
}
//#endregion
//#region node_modules/@preact/signals-core/dist/signals-core.module.js
-var Vn = Symbol.for("preact-signals");
-function Hn() {
- if (J > 1) J--;
+var zn = Symbol.for("preact-signals");
+function Bn() {
+ if (Y > 1) Y--;
else {
var e, t = !1;
for ((function() {
- var e = Xn;
- for (Xn = void 0; e !== void 0;) {
+ var e = Jn;
+ for (Jn = void 0; e !== void 0;) {
var t = e.S;
if (t.v === e.v) for (var n = t.t; n !== void 0; n = n.x) n.i === e.i && (n.i = t.i);
e = e.o;
}
- })(); Kn !== void 0;) {
- var n = Kn;
- for (Kn = void 0, qn++; n !== void 0;) {
+ })(); Wn !== void 0;) {
+ var n = Wn;
+ for (Wn = void 0, Gn++; n !== void 0;) {
var r = n.u;
- if (n.u = void 0, n.f &= -3, !(8 & n.f) && er(n)) try {
+ if (n.u = void 0, n.f &= -3, !(8 & n.f) && Qn(n)) try {
n.c();
} catch (n) {
t ||= (e = n, !0);
@@ -1977,116 +1977,116 @@ function Hn() {
n = r;
}
}
- if (qn = 0, J--, t) throw e;
+ if (Gn = 0, Y--, t) throw e;
}
}
-function Un(e) {
- if (J > 0) return e();
- Yn = ++Jn, J++;
+function Vn(e) {
+ if (Y > 0) return e();
+ qn = ++Kn, Y++;
try {
return e();
} finally {
- Hn();
+ Bn();
}
}
-var Wn, q = void 0;
-function Gn(e) {
- var t = q, n = Wn;
- q = void 0, Wn = void 0;
+var Hn, J = void 0;
+function Un(e) {
+ var t = J, n = Hn;
+ J = void 0, Hn = void 0;
try {
return e();
} finally {
- q = t, Wn = n;
+ J = t, Hn = n;
}
}
-var Kn = void 0, J = 0, qn = 0, Jn = 0, Yn = 0, Xn = void 0, Zn = 0;
-function Qn(e) {
- if (q !== void 0) {
+var Wn = void 0, Y = 0, Gn = 0, Kn = 0, qn = 0, Jn = void 0, Yn = 0;
+function Xn(e) {
+ if (J !== void 0) {
var t = e.n;
- if (t === void 0 || t.t !== q) return t = {
+ if (t === void 0 || t.t !== J) return t = {
i: 0,
S: e,
- p: q.s,
+ p: J.s,
n: void 0,
- t: q,
+ t: J,
e: void 0,
x: void 0,
r: t
- }, q.s !== void 0 && (q.s.n = t), q.s = t, e.n = t, 32 & q.f && e.S(t), t;
- if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = q.s, t.n = void 0, q.s.n = t, q.s = t), t;
+ }, J.s !== void 0 && (J.s.n = t), J.s = t, e.n = t, 32 & J.f && e.S(t), t;
+ if (t.i === -1) return t.i = 0, t.n !== void 0 && (t.n.p = t.p, t.p !== void 0 && (t.p.n = t.n), t.p = J.s, t.n = void 0, J.s.n = t, J.s = t), t;
}
}
-function Y(e, t) {
+function X(e, t) {
this.v = e, this.i = 0, this.n = void 0, this.t = void 0, this.l = 0, this.W = t?.watched, this.Z = t?.unwatched, this.name = t?.name;
}
-Y.prototype.brand = Vn, Y.prototype.h = function() {
+X.prototype.brand = zn, X.prototype.h = function() {
return !0;
-}, Y.prototype.S = function(e) {
+}, X.prototype.S = function(e) {
var t = this, n = this.t;
- n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? Gn(function() {
+ n !== e && e.e === void 0 && (e.x = n, this.t = e, n === void 0 ? Un(function() {
var e;
(e = t.W) == null || e.call(t);
}) : n.e = e);
-}, Y.prototype.U = function(e) {
+}, X.prototype.U = function(e) {
var t = this;
if (this.t !== void 0) {
var n = e.e, r = e.x;
- n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && Gn(function() {
+ n !== void 0 && (n.x = r, e.e = void 0), r !== void 0 && (r.e = n, e.x = void 0), e === this.t && (this.t = r, r === void 0 && Un(function() {
var e;
(e = t.Z) == null || e.call(t);
}));
}
-}, Y.prototype.subscribe = function(e) {
+}, X.prototype.subscribe = function(e) {
var t = this;
- return cr(function() {
+ return sr(function() {
var n = t.value;
- Gn(function() {
+ Un(function() {
return e(n);
});
}, { name: "sub" });
-}, Y.prototype.valueOf = function() {
+}, X.prototype.valueOf = function() {
return this.value;
-}, Y.prototype.toString = function() {
+}, X.prototype.toString = function() {
return this.value + "";
-}, Y.prototype.toJSON = function() {
+}, X.prototype.toJSON = function() {
return this.value;
-}, Y.prototype.peek = function() {
+}, X.prototype.peek = function() {
var e = this;
- return Gn(function() {
+ return Un(function() {
return e.value;
});
-}, Object.defineProperty(Y.prototype, "value", {
+}, Object.defineProperty(X.prototype, "value", {
get: function() {
- var e = Qn(this);
+ var e = Xn(this);
return e !== void 0 && (e.i = this.i), this.v;
},
set: function(e) {
if (e !== this.v) {
- if (qn > 100) throw Error("Cycle detected");
+ if (Gn > 100) throw Error("Cycle detected");
(function(e) {
- J !== 0 && qn === 0 && e.l !== Yn && (e.l = Yn, Xn = {
+ Y !== 0 && Gn === 0 && e.l !== qn && (e.l = qn, Jn = {
S: e,
v: e.v,
i: e.i,
- o: Xn
+ o: Jn
});
- })(this), this.v = e, this.i++, Zn++, J++;
+ })(this), this.v = e, this.i++, Yn++, Y++;
try {
for (var t = this.t; t !== void 0; t = t.x) t.t.N();
} finally {
- Hn();
+ Bn();
}
}
}
});
-function $n(e, t) {
- return new Y(e, t);
+function Zn(e, t) {
+ return new X(e, t);
}
-function er(e) {
+function Qn(e) {
for (var t = e.s; t !== void 0; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0;
return !1;
}
-function tr(e) {
+function $n(e) {
for (var t = e.s; t !== void 0; t = t.n) {
var n = t.S.n;
if (n !== void 0 && (t.r = n), t.S.n = t, t.i = -1, t.n === void 0) {
@@ -2095,81 +2095,81 @@ function tr(e) {
}
}
}
-function nr(e) {
+function er(e) {
for (var t = e.s, n = void 0; t !== void 0;) {
var r = t.p;
t.i === -1 ? (t.S.U(t), r !== void 0 && (r.n = t.n), t.n !== void 0 && (t.n.p = r)) : n = t, t.S.n = t.r, t.r !== void 0 && (t.r = void 0), t = r;
}
e.s = n;
}
-function X(e, t) {
- Y.call(this, void 0, t), this.x = e, this.s = void 0, this.g = Zn - 1, this.f = 4;
+function tr(e, t) {
+ X.call(this, void 0, t), this.x = e, this.s = void 0, this.g = Yn - 1, this.f = 4;
}
-X.prototype = new Y(), X.prototype.h = function() {
+tr.prototype = new X(), tr.prototype.h = function() {
if (this.f &= -3, 1 & this.f) return !1;
- if ((36 & this.f) == 32 || (this.f &= -5, this.g === Zn)) return !0;
- if (this.g = Zn, this.f |= 1, this.i > 0 && !er(this)) return this.f &= -2, !0;
- var e = q;
+ if ((36 & this.f) == 32 || (this.f &= -5, this.g === Yn)) return !0;
+ if (this.g = Yn, this.f |= 1, this.i > 0 && !Qn(this)) return this.f &= -2, !0;
+ var e = J;
try {
- tr(this), q = this;
+ $n(this), J = this;
var t = this.x();
(16 & this.f || this.v !== t || this.i === 0) && (this.v = t, this.f &= -17, this.i++);
} catch (e) {
this.v = e, this.f |= 16, this.i++;
}
- return q = e, nr(this), this.f &= -2, !0;
-}, X.prototype.S = function(e) {
+ return J = e, er(this), this.f &= -2, !0;
+}, tr.prototype.S = function(e) {
if (this.t === void 0) {
this.f |= 36;
for (var t = this.s; t !== void 0; t = t.n) t.S.S(t);
}
- Y.prototype.S.call(this, e);
-}, X.prototype.U = function(e) {
- if (this.t !== void 0 && (Y.prototype.U.call(this, e), this.t === void 0)) {
+ X.prototype.S.call(this, e);
+}, tr.prototype.U = function(e) {
+ if (this.t !== void 0 && (X.prototype.U.call(this, e), this.t === void 0)) {
this.f &= -33;
for (var t = this.s; t !== void 0; t = t.n) t.S.U(t);
}
-}, X.prototype.N = function() {
+}, tr.prototype.N = function() {
if (!(2 & this.f)) {
this.f |= 6;
for (var e = this.t; e !== void 0; e = e.x) e.t.N();
}
-}, Object.defineProperty(X.prototype, "value", { get: function() {
+}, Object.defineProperty(tr.prototype, "value", { get: function() {
if (1 & this.f) throw Error("Cycle detected");
- var e = Qn(this);
+ var e = Xn(this);
if (this.h(), e !== void 0 && (e.i = this.i), 16 & this.f) throw this.v;
return this.v;
} });
-function rr(e, t) {
- return new X(e, t);
+function nr(e, t) {
+ return new tr(e, t);
}
-function ir(e) {
+function rr(e) {
var t = e.m;
if (e.m = void 0, typeof t == "function") {
- J++;
- var n = q;
- q = void 0;
+ Y++;
+ var n = J;
+ J = void 0;
try {
t();
} catch (t) {
- throw e.f &= -2, e.f |= 8, ar(e), t;
+ throw e.f &= -2, e.f |= 8, ir(e), t;
} finally {
- q = n, Hn();
+ J = n, Bn();
}
}
}
-function ar(e) {
+function ir(e) {
for (var t = e.s; t !== void 0; t = t.n) t.S.U(t);
- e.x = void 0, e.s = void 0, ir(e);
+ e.x = void 0, e.s = void 0, rr(e);
}
-function or(e) {
- if (q !== this) throw Error("Out-of-order effect");
- nr(this), q = e, this.f &= -2, 8 & this.f && ar(this), Hn();
+function ar(e) {
+ if (J !== this) throw Error("Out-of-order effect");
+ er(this), J = e, this.f &= -2, 8 & this.f && ir(this), Bn();
}
-function sr(e, t) {
- this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, Wn && Wn.push(this);
+function or(e, t) {
+ this.x = e, this.m = void 0, this.s = void 0, this.u = void 0, this.f = 32, this.name = t?.name, Hn && Hn.push(this);
}
-sr.prototype.c = function() {
+or.prototype.c = function() {
var e = this.S();
try {
if (8 & this.f || this.x === void 0) return;
@@ -2178,20 +2178,20 @@ sr.prototype.c = function() {
} finally {
e();
}
-}, sr.prototype.S = function() {
+}, or.prototype.S = function() {
if (1 & this.f) throw Error("Cycle detected");
- this.f |= 1, this.f &= -9, ir(this), tr(this), J++;
- var e = q;
- return q = this, or.bind(this, e);
-}, sr.prototype.N = function() {
- 2 & this.f || (this.f |= 2, this.u = Kn, Kn = this);
-}, sr.prototype.d = function() {
- this.f |= 8, 1 & this.f || ar(this);
-}, sr.prototype.dispose = function() {
+ this.f |= 1, this.f &= -9, rr(this), $n(this), Y++;
+ var e = J;
+ return J = this, ar.bind(this, e);
+}, or.prototype.N = function() {
+ 2 & this.f || (this.f |= 2, this.u = Wn, Wn = this);
+}, or.prototype.d = function() {
+ this.f |= 8, 1 & this.f || ir(this);
+}, or.prototype.dispose = function() {
this.d();
};
-function cr(e, t) {
- var n = new sr(e, t);
+function sr(e, t) {
+ var n = new or(e, t);
try {
n.c();
} catch (e) {
@@ -2202,35 +2202,35 @@ function cr(e, t) {
}
//#endregion
//#region node_modules/@preact/signals/dist/signals.module.js
-var lr, ur, dr = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, fr = [];
-cr(function() {
- lr = this.N;
+var cr, lr, ur = typeof window < "u" && !!window.__PREACT_SIGNALS_DEVTOOLS__, dr = [];
+sr(function() {
+ cr = this.N;
})();
-function pr(e, t) {
- T[e] = t.bind(null, T[e] || function() {});
+function fr(e, t) {
+ w[e] = t.bind(null, w[e] || function() {});
}
-function mr(e) {
- if (ur) {
- var t = ur;
- ur = void 0, t();
+function pr(e) {
+ if (lr) {
+ var t = lr;
+ lr = void 0, t();
}
- ur = e && e.S();
+ lr = e && e.S();
}
-function hr(e) {
- var t = this, n = e.data, r = _r(n);
+function mr(e) {
+ var t = this, n = e.data, r = gr(n);
r.name = "ReactiveDom", r.value = n;
- var i = it(function() {
+ var i = nt(function() {
for (var e = t, n = t.__v; n = n.__;) if (n.__c) {
n.__c.__$f |= 4;
break;
}
- var i = rr(function() {
+ var i = nr(function() {
var e = r.value.value;
return e === 0 ? 0 : !0 === e ? "" : e || "";
- }), a = rr(function() {
- return !Array.isArray(i.value) && !D(i.value);
- }), o = cr(function() {
- if (this.N = br, a.value) {
+ }), a = nr(function() {
+ return !Array.isArray(i.value) && !E(i.value);
+ }), o = sr(function() {
+ if (this.N = yr, a.value) {
var t = i.value;
e.__v && e.__v.__e && e.__v.__e.nodeType === 3 && (e.__v.__e.data = t);
}
@@ -2241,14 +2241,14 @@ function hr(e) {
}, []), a = i[0], o = i[1];
return a.value ? o.peek() : o.value;
}
-hr.displayName = "ReactiveTextNode", Object.defineProperties(Y.prototype, {
+mr.displayName = "ReactiveTextNode", Object.defineProperties(X.prototype, {
constructor: {
configurable: !0,
value: void 0
},
type: {
configurable: !0,
- value: hr
+ value: mr
},
props: {
configurable: !0,
@@ -2263,35 +2263,35 @@ hr.displayName = "ReactiveTextNode", Object.defineProperties(Y.prototype, {
configurable: !0,
value: 1
}
-}), pr("__b", function(e, t) {
- if (mr(), typeof t.type == "string") {
+}), fr("__b", function(e, t) {
+ if (typeof t.type == "string") {
var n, r = t.props;
for (var i in r) if (i !== "children") {
var a = r[i];
- a instanceof Y && (n || (t.__np = n = {}), n[i] = a, r[i] = a.peek());
+ a instanceof X && (n || (t.__np = n = {}), n[i] = a, r[i] = a.peek());
}
}
e(t);
-}), pr("__r", function(e, t) {
+}), fr("__r", function(e, t) {
if (e(t), t.type !== F) {
- mr();
+ pr();
var n, r = t.__c;
r && (r.__$f &= -2, (n = r.__$u) === void 0 && (r.__$u = n = function(e, t) {
var n;
- return cr(function() {
+ return sr(function() {
n = this;
}, { name: t }), n.c = e, n;
}(function(e) {
return function() {
var t;
- dr && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});
+ ur && ((t = this.y) == null || t.call(this)), e.__$f |= 1, e.setState({});
};
- }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), mr(n);
+ }(r), typeof t.type == "function" ? t.type.displayName || t.type.name : ""))), pr(n);
}
-}), pr("__e", function(e, t, n, r) {
- mr(), e(t, n, r);
-}), pr("diffed", function(e, t) {
- mr();
+}), fr("__e", function(e, t, n, r) {
+ pr(), e(t, n, r);
+}), fr("diffed", function(e, t) {
+ pr();
var n;
if (typeof t.type == "string" && (n = t.__e)) {
var r = t.__np, i = t.props, a = n.U;
@@ -2301,25 +2301,25 @@ hr.displayName = "ReactiveTextNode", Object.defineProperties(Y.prototype, {
}
if (r) for (var c in a || (a = {}, n.U = a), r) {
var l = a[c], u = r[c];
- l === void 0 ? (l = gr(n, c, u, i), a[c] = l) : l.o(u, i);
+ l === void 0 ? (l = hr(n, c, u, i), a[c] = l) : l.o(u, i);
}
}
e(t);
});
-function gr(e, t, n, r) {
- var i = t in e && e.ownerSVGElement === void 0, a = $n(n);
+function hr(e, t, n, r) {
+ var i = t in e && e.ownerSVGElement === void 0, a = Zn(n);
return {
o: function(e, t) {
a.value = e, r = t;
},
- d: cr(function() {
- this.N = br;
+ d: sr(function() {
+ this.N = yr;
var n = a.value.value;
r[t] !== n && (r[t] = n, i ? e[t] = n : n != null && (!1 !== n || t[4] === "-") ? e.setAttribute(t, n) : e.removeAttribute(t));
})
};
}
-pr("unmount", function(e, t) {
+fr("unmount", function(e, t) {
if (typeof t.type == "string") {
var n = t.__e;
if (n) {
@@ -2343,9 +2343,9 @@ pr("unmount", function(e, t) {
}
}
e(t);
-}), pr("__h", function(e, t, n, r) {
+}), fr("__h", function(e, t, n, r) {
r < 3 && (t.__$f |= 2), e(t, n, r);
-}), fe.prototype.shouldComponentUpdate = function(e, t) {
+}), de.prototype.shouldComponentUpdate = function(e, t) {
if (this.__R) return !0;
var n = this.__$u, r = n && n.s !== void 0;
for (var i in t) return !0;
@@ -2357,55 +2357,55 @@ pr("unmount", function(e, t) {
for (var s in this.props) if (!(s in e)) return !0;
return !1;
};
-function _r(e, t) {
- return it(function() {
- return $n(e, t);
+function gr(e, t) {
+ return nt(function() {
+ return Zn(e, t);
}, []);
}
-var vr = function(e) {
+var _r = function(e) {
queueMicrotask(function() {
queueMicrotask(e);
});
};
-function yr() {
- Un(function() {
- for (var e; e = fr.shift();) lr.call(e);
+function vr() {
+ Vn(function() {
+ for (var e; e = dr.shift();) cr.call(e);
});
}
-function br() {
- fr.push(this) === 1 && (T.requestAnimationFrame || vr)(yr);
+function yr() {
+ dr.push(this) === 1 && (w.requestAnimationFrame || _r)(vr);
}
//#endregion
//#region src/state/quality-goals.ts
-var xr = "/api/quality-goals?limit=200", Sr = {
+var br = "/api/quality-goals?limit=200", xr = {
data: null,
error: ""
-}, Cr = $n(Sr), wr = 0, Tr = rr(() => Cr.value);
-rr(() => Cr.value.data?.total ?? null);
-function Er() {
- wr += 1, Cr.value = Sr;
+}, Sr = Zn(xr), Cr = 0, wr = nr(() => Sr.value);
+nr(() => Sr.value.data?.total ?? null);
+function Tr() {
+ Cr += 1, Sr.value = xr;
}
-async function Dr(e) {
- let t = wr += 1;
+async function Er(e) {
+ let t = Cr += 1;
try {
- let n = await U(xr, e);
- return t === wr && (Cr.value = {
+ let n = await W(br, e);
+ return t === Cr && (Sr.value = {
data: n,
error: ""
}), n;
} catch (n) {
- throw !e?.aborted && t === wr && (Cr.value = {
+ throw !e?.aborted && t === Cr && (Sr.value = {
data: null,
- error: H(n)
+ error: U(n)
}), n;
}
}
//#endregion
//#region src/islands/quality-goals.tsx
-var Or = (e, t) => Dr(t), kr = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
-function Ar({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {
- let { data: s, error: c } = Tr.value;
- if (c) return /* @__PURE__ */ W("div", {
+var Dr = (e, t) => Er(t), Or = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+function kr({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {
+ let { data: s, error: c } = wr.value;
+ if (c) return /* @__PURE__ */ G("div", {
class: "qualitylist",
dangerouslySetInnerHTML: { __html: h(c, {
variant: "error",
@@ -2413,58 +2413,58 @@ function Ar({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {
}) }
});
let l = s?.items ?? [];
- return l.length ? /* @__PURE__ */ W("div", {
+ return l.length ? /* @__PURE__ */ G("div", {
class: "quality-workspace",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: u("待升级", `${s?.total ?? l.length} 部作品`) } }), /* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: u("待升级", `${s?.total ?? l.length} 部作品`) } }), /* @__PURE__ */ G("div", {
class: "qualitylist",
- children: l.map((s) => /* @__PURE__ */ W("article", {
+ children: l.map((s) => /* @__PURE__ */ G("article", {
class: "qualityitem",
children: [
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
class: "qualitycover",
type: "button",
"aria-label": `打开 ${a(s)}`,
onClick: () => t(s.id),
- children: [/* @__PURE__ */ W("span", {
+ children: [/* @__PURE__ */ G("span", {
class: "qualityfallback",
children: "暂无预览"
- }), /* @__PURE__ */ W("img", {
- src: kr(s),
+ }), /* @__PURE__ */ G("img", {
+ src: Or(s),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove()
})]
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "qualitybody",
children: [
- /* @__PURE__ */ W("h3", { children: /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("h3", { children: /* @__PURE__ */ G("button", {
type: "button",
"data-middle-truncate": !0,
onClick: () => t(s.id),
dangerouslySetInnerHTML: { __html: i(s) }
}) }),
- /* @__PURE__ */ W("p", {
+ /* @__PURE__ */ G("p", {
class: "mono",
children: [
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ G("span", {
style: "display:contents",
dangerouslySetInnerHTML: { __html: o(s.location, s.cost) }
}),
- /* @__PURE__ */ W("span", { children: e[s.location] ?? s.location }),
- /* @__PURE__ */ W("span", { children: n(s.duration) }),
- /* @__PURE__ */ W("span", { children: r(s.size ?? 0) })
+ /* @__PURE__ */ G("span", { children: e[s.location] ?? s.location }),
+ /* @__PURE__ */ G("span", { children: n(s.duration) }),
+ /* @__PURE__ */ G("span", { children: r(s.size ?? 0) })
]
}),
- s.reason ? /* @__PURE__ */ W("p", {
+ s.reason ? /* @__PURE__ */ G("p", {
class: "qualityreason",
children: s.reason
}) : null
]
}),
- /* @__PURE__ */ W("footer", {
+ /* @__PURE__ */ G("footer", {
class: "qualityactions",
- children: /* @__PURE__ */ W("button", {
+ children: /* @__PURE__ */ G("button", {
type: "button",
class: "geist-button",
onClick: () => t(s.id),
@@ -2474,44 +2474,44 @@ function Ar({ openItem: t, javTitleHtml: i, javDisplayName: a, srcBadge: o }) {
]
}, s.id))
})]
- }) : /* @__PURE__ */ W("div", {
+ }) : /* @__PURE__ */ G("div", {
class: "qualitylist",
dangerouslySetInnerHTML: { __html: d("sparkles", "没有标记中的高清版目标", "现有版本都已满足条件,或还没有加入追踪。") }
});
}
//#endregion
//#region src/islands/scraping.tsx
-var jr = (e, t) => U("/api/scraping", t);
-function Mr({ value: e, onChange: t }) {
- let n = V(null), r = V(t);
- return r.current = t, rt(() => {
+var Ar = (e, t) => W("/api/scraping", t);
+function jr({ value: e, onChange: t }) {
+ let n = H(null), r = H(t);
+ return r.current = t, tt(() => {
let t = n.current;
- t.innerHTML = v([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });
- let i = C(t.firstElementChild), a = () => r.current(i.value);
+ t.innerHTML = _([["peach", "Peach 代理"], ["direct", "直接连接"]], e, { label: "连接方式" });
+ let i = S(t.firstElementChild), a = () => r.current(i.value);
return i.addEventListener("change", a), () => {
i.disabled = !0, i.removeEventListener("change", a), t.replaceChildren();
};
- }, []), /* @__PURE__ */ W("div", {
+ }, []), /* @__PURE__ */ G("div", {
ref: n,
class: "scraping-network"
});
}
-function Nr({ source: e, toast: t }) {
- let [n, r] = z(e), [i, a] = z(e.network), [s, c] = z(""), [l, u] = z(""), [d, p] = z("paste"), [m, g] = z(""), [_, v] = z(!1), [y, x] = z(""), [S, C] = z([]), w = V(null), T = V(null);
- rt(() => {
- T.current?.querySelectorAll("footer button").forEach((e) => b(e, _));
+function Mr({ source: e, toast: t }) {
+ let [n, r] = B(e), [i, a] = B(e.network), [s, c] = B(""), [l, u] = B(""), [d, p] = B("paste"), [m, g] = B(""), [_, v] = B(!1), [b, x] = B(""), [S, C] = B([]), w = H(null), T = H(null);
+ tt(() => {
+ T.current?.querySelectorAll("footer button").forEach((e) => y(e, _));
}, [_]);
- let E = V(new AbortController());
- B(() => () => E.current.abort(), []);
+ let E = H(new AbortController());
+ V(() => () => E.current.abort(), []);
async function D(n) {
if (!_) {
v(!0), x(""), C([]);
try {
if (n === "check") {
- let t = await mt("/api/scraping/check", { source: e.source }, "POST", E.current.signal);
+ let t = await ft("/api/scraping/check", { source: e.source }, "POST", E.current.signal);
E.current.signal.aborted || C(t.results);
} else {
- let a = await mt("/api/scraping/settings", {
+ let a = await ft("/api/scraping/settings", {
source: e.source,
network: i,
cookie: s,
@@ -2521,33 +2521,33 @@ function Nr({ source: e, toast: t }) {
E.current.signal.aborted || (r(a.saved), c(""), u(""), g(""), w.current && (w.current.value = ""), t(n === "revoke" ? "Cookie 已撤销" : "来源设置已保存"));
}
} catch (e) {
- E.current.signal.aborted || x(H(e));
+ E.current.signal.aborted || x(U(e));
} finally {
E.current.signal.aborted || v(!1);
}
}
}
- return /* @__PURE__ */ W("section", {
+ return /* @__PURE__ */ G("section", {
class: "scraping-source",
- children: /* @__PURE__ */ W("form", {
+ children: /* @__PURE__ */ G("form", {
ref: T,
class: "cleanupfieldset",
"data-geist-fieldset": !0,
onSubmit: (e) => {
e.preventDefault(), D("save");
},
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ G("div", {
class: "geist-fieldset-content scraping-fields",
children: [
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "geist-fieldset-heading",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ W("a", {
+ children: [/* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: f(`scraping-${e.source}`, e.label) } }), /* @__PURE__ */ G("a", {
class: "scraping-url externallink",
href: e.login,
target: "_blank",
rel: "noopener noreferrer",
children: [
- /* @__PURE__ */ W("img", {
+ /* @__PURE__ */ G("img", {
src: o({ source: e.source }),
alt: "",
width: "16",
@@ -2555,34 +2555,34 @@ function Nr({ source: e, toast: t }) {
loading: "lazy",
onError: (e) => e.currentTarget.remove()
}),
- /* @__PURE__ */ W("span", { children: e.login }),
- /* @__PURE__ */ W("svg", {
+ /* @__PURE__ */ G("span", { children: e.login }),
+ /* @__PURE__ */ G("svg", {
class: "externalmark",
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-external-link" })
+ children: /* @__PURE__ */ G("use", { href: "#i-external-link" })
})
]
})]
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "scraping-label",
- children: ["连接方式", /* @__PURE__ */ W(Mr, {
+ children: ["连接方式", /* @__PURE__ */ G(jr, {
value: i,
onChange: a
})]
}),
- i === "peach" && /* @__PURE__ */ W(yt, {
+ i === "peach" && /* @__PURE__ */ G(_t, {
href: "/configuration#peachProxy",
children: "配置 Peach 代理"
}),
- e.accepts_cookie && /* @__PURE__ */ W(F, { children: [
- /* @__PURE__ */ W("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),
- /* @__PURE__ */ W("div", {
+ e.accepts_cookie && /* @__PURE__ */ G(F, { children: [
+ /* @__PURE__ */ G("p", { children: n.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。" }),
+ /* @__PURE__ */ G("div", {
class: "insightswitch scraping-cookie-method",
role: "radiogroup",
"aria-label": "提供 Cookie 的方式(二选一)",
- children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ W("label", { children: [/* @__PURE__ */ W("input", {
+ children: [["paste", "粘贴 Cookie"], ["file", "导入文件"]].map(([t, n]) => /* @__PURE__ */ G("label", { children: [/* @__PURE__ */ G("input", {
type: "radio",
name: `cookie-method-${e.source}`,
value: t,
@@ -2590,29 +2590,29 @@ function Nr({ source: e, toast: t }) {
onChange: () => {
p(t), c(""), u(""), g("");
}
- }), /* @__PURE__ */ W("span", { children: n })] }, t))
+ }), /* @__PURE__ */ G("span", { children: n })] }, t))
}),
- d === "paste" ? /* @__PURE__ */ W("label", { children: ["Cookie", /* @__PURE__ */ W("input", {
+ d === "paste" ? /* @__PURE__ */ G("label", { children: ["Cookie", /* @__PURE__ */ G("input", {
class: "geist-input",
type: "password",
autoComplete: "off",
value: s,
disabled: _,
onInput: (e) => c(e.currentTarget.value)
- })] }) : /* @__PURE__ */ W("label", {
+ })] }) : /* @__PURE__ */ G("label", {
class: "scraping-file",
- children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ W("span", {
+ children: ["Netscape Cookie 文件(.txt)", /* @__PURE__ */ G("span", {
class: "scraping-file-control",
children: [
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ G("span", {
class: "geist-button",
children: "选择文件"
}),
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ G("span", {
class: "scraping-file-name",
children: m || "未选择文件"
}),
- /* @__PURE__ */ W("input", {
+ /* @__PURE__ */ G("input", {
ref: w,
type: "file",
accept: ".txt",
@@ -2642,32 +2642,32 @@ function Nr({ source: e, toast: t }) {
})]
})
] }),
- y && /* @__PURE__ */ W("div", {
+ b && /* @__PURE__ */ G("div", {
role: "alert",
- dangerouslySetInnerHTML: { __html: h(y, { variant: "error" }) }
+ dangerouslySetInnerHTML: { __html: h(b, { variant: "error" }) }
}),
- S.map((t) => /* @__PURE__ */ W("div", {
+ S.map((t) => /* @__PURE__ */ G("div", {
role: "status",
dangerouslySetInnerHTML: { __html: h(`${e.label}${t.label === "来源页面" ? "" : " 高清图片"}:${t.ok ? "可连接" : "不能连接"}` + (t.width ? ` · ${t.width} × ${t.height}` : "") + (t.message ? `。${t.message}` : ""), { variant: t.ok ? "success" : "error" }) }
}, t.label))
]
- }), /* @__PURE__ */ W("footer", {
+ }), /* @__PURE__ */ G("footer", {
class: "geist-fieldset-footer",
"data-geist-fieldset-footer": !0,
children: [
- e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ W("button", {
+ e.accepts_cookie && n.cookie_saved && /* @__PURE__ */ G("button", {
class: "geist-button",
type: "button",
onClick: () => void D("revoke"),
children: "撤销 Cookie"
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
class: "geist-button",
type: "button",
onClick: () => void D("check"),
children: "检查连接"
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
class: "geist-button primary",
type: "submit",
children: "保存"
@@ -2677,14 +2677,14 @@ function Nr({ source: e, toast: t }) {
})
});
}
-function Pr({ data: e, error: t, toast: n }) {
- let [r, i] = z(""), [a, o] = z(!1), [s, c] = z(""), [l, u] = z(""), d = V(null);
- rt(() => b(d.current, a), [a]);
- let m = V(new AbortController()), g = V(0);
+function Nr({ data: e, error: t, toast: n }) {
+ let [r, i] = B(""), [a, o] = B(!1), [s, c] = B(""), [l, u] = B(""), d = H(null);
+ tt(() => y(d.current, a), [a]);
+ let m = H(new AbortController()), g = H(0);
async function _(e = !1) {
let t = ++g.current;
- await gt({
- read: (e) => U("/api/scraping/cover", e),
+ await mt({
+ read: (e) => W("/api/scraping/cover", e),
active: () => !m.current.signal.aborted && t === g.current,
render: (t) => {
o(t.status === "running"), t.status === "running" && (e = !1), t.status === "failed" && !e && c(t.error || "采集未取得"), t.status === "complete" && !e && (u(t.result || "封面采集完成"), n(t.result || "封面采集完成"));
@@ -2692,37 +2692,37 @@ function Pr({ data: e, error: t, toast: n }) {
disconnected: () => c("连接中断,正在重新读取后台进度")
});
}
- B(() => (_(!0), () => m.current.abort()), []);
+ V(() => (_(!0), () => m.current.abort()), []);
async function v() {
if (!a) {
g.current++, o(!0), c(""), u("");
try {
- await mt("/api/scraping/cover", { code: r }, "POST", m.current.signal), await _();
+ await ft("/api/scraping/cover", { code: r }, "POST", m.current.signal), await _();
} catch (e) {
- m.current.signal.aborted || (o(!1), c(H(e)));
+ m.current.signal.aborted || (o(!1), c(U(e)));
}
}
}
- return t ? /* @__PURE__ */ W("div", {
+ return t ? /* @__PURE__ */ G("div", {
role: "alert",
dangerouslySetInnerHTML: { __html: h(t, { variant: "error" }) }
- }) : /* @__PURE__ */ W("div", {
+ }) : /* @__PURE__ */ G("div", {
class: "scraping-page",
children: [
- /* @__PURE__ */ W("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),
- /* @__PURE__ */ W("section", {
+ /* @__PURE__ */ G("p", { children: "高清图片可能需要代理才能下载,请先检查连接。" }),
+ /* @__PURE__ */ G("section", {
class: "cleanupfieldset scraping-source",
"data-geist-fieldset": !0,
- children: /* @__PURE__ */ W("div", {
+ children: /* @__PURE__ */ G("div", {
class: "geist-fieldset-content scraping-fields",
children: [
- /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("scraping-cover", "高清封面") } }),
- /* @__PURE__ */ W("form", {
+ /* @__PURE__ */ G("div", { dangerouslySetInnerHTML: { __html: f("scraping-cover", "高清封面") } }),
+ /* @__PURE__ */ G("form", {
class: "scraping-cover-form",
onSubmit: (e) => {
e.preventDefault(), v();
},
- children: [/* @__PURE__ */ W("input", {
+ children: [/* @__PURE__ */ G("input", {
class: "geist-input",
"aria-label": "馆藏番号",
required: !0,
@@ -2730,29 +2730,29 @@ function Pr({ data: e, error: t, toast: n }) {
disabled: a,
placeholder: "输入馆藏番号,如 ABW-232",
onInput: (e) => i(e.currentTarget.value)
- }), /* @__PURE__ */ W("button", {
+ }), /* @__PURE__ */ G("button", {
ref: d,
class: "geist-button primary",
type: "submit",
children: "抓取封面"
})]
}),
- a && /* @__PURE__ */ W("div", {
+ a && /* @__PURE__ */ G("div", {
"aria-live": "polite",
dangerouslySetInnerHTML: { __html: p("正在抓取封面") }
}),
- s && /* @__PURE__ */ W("div", {
+ s && /* @__PURE__ */ G("div", {
role: "alert",
dangerouslySetInnerHTML: { __html: h(s, { variant: "error" }) }
}),
- l && /* @__PURE__ */ W("div", {
+ l && /* @__PURE__ */ G("div", {
role: "status",
dangerouslySetInnerHTML: { __html: h(l) }
})
]
})
}),
- e?.sources.map((e) => /* @__PURE__ */ W(Nr, {
+ e?.sources.map((e) => /* @__PURE__ */ G(Mr, {
source: e,
toast: n
}, e.source))
@@ -2760,211 +2760,13 @@ function Pr({ data: e, error: t, toast: n }) {
});
}
//#endregion
-//#region src/islands/activity.tsx
-var Fr = (e, t) => U("/api/tasks", t), Ir = {
- manual: "手动",
- scheduled: "定时",
- startup: "启动",
- cli: "命令行"
-}, Lr = {
- pending: "排队中",
- running: "进行中",
- succeeded: "已完成",
- failed: "失败",
- cancelled: "已取消",
- interrupted: "被打断"
-}, Rr = (e) => Lr[e] || e, zr = {
- succeeded: "ok",
- failed: "error",
- cancelled: "paused",
- interrupted: "paused"
-}, Br = {
- checked: "已检查",
- total: "总数",
- scanned: "已扫描",
- identified: "已识别",
- candidates: "资料候选",
- covers: "封面",
- changed: "已改动",
- operation: "操作",
- ok: "取得",
- miss: "未取得",
- kept: "保留",
- planned: "计划",
- done: "已处理",
- added: "新增",
- written: "已写入",
- removed: "已移除",
- exit_code: "退出码",
- issue_count: "问题"
-};
-function Vr(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 Hr(e) {
- if (!e) return "";
- let t = new Date(e);
- return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
- month: "2-digit",
- day: "2-digit",
- hour: "2-digit",
- minute: "2-digit"
- });
-}
-function Ur(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Br[e] || e} ${t}`).join(" · ");
-}
-function Wr({ status: e }) {
- let t = zr[e];
- return /* @__PURE__ */ W("span", {
- class: t ? `sbadge ${t}` : "sbadge",
- children: [/* @__PURE__ */ W("i", { "aria-hidden": "true" }), Rr(e)]
- });
-}
-function Gr({ run: e, meta: t, children: n, footer: r }) {
- return /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W("section", {
- class: "cleanupfieldset activity-run",
- "data-geist-fieldset": !0,
- "data-status": e.status,
- "data-task-key": e.task_key,
- children: [/* @__PURE__ */ W("div", {
- class: "geist-fieldset-content",
- children: [
- /* @__PURE__ */ W("div", {
- class: "activity-run-head",
- children: [/* @__PURE__ */ W("strong", { children: e.task_label }), /* @__PURE__ */ W(Wr, { status: e.status })]
- }),
- /* @__PURE__ */ W("p", {
- class: "cleanupmeta",
- children: t
- }),
- n
- ]
- }), r ? /* @__PURE__ */ W("div", {
- class: "geist-fieldset-footer",
- children: /* @__PURE__ */ W("p", { children: r })
- }) : null]
- }) });
-}
-function Kr({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Vr(e.elapsed_seconds);
- return /* @__PURE__ */ W(Gr, {
- run: e,
- meta: [Ir[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · "),
- children: t > 0 ? /* @__PURE__ */ W("div", {
- class: "activity-progress",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: g(r, n, t) } }), /* @__PURE__ */ W("p", {
- class: "cleanupmeta",
- children: [
- r,
- " · ",
- n,
- " / ",
- t,
- " 项"
- ]
- })]
- }) : /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: p(r) } })
- });
-}
-function qr({ run: e }) {
- let t = Ur(e.result_summary), n = Vr(e.elapsed_seconds);
- return /* @__PURE__ */ W(Gr, {
- run: e,
- meta: [
- Ir[e.trigger] || e.trigger,
- Hr(e.finished_at),
- n && `用时 ${n}`
- ].filter(Boolean).join(" · "),
- footer: e.error,
- children: t ? /* @__PURE__ */ W("p", {
- class: "cleanupmeta",
- children: t
- }) : null
- });
-}
-function Jr({ data: e, error: t, preview: n }) {
- let [r, i] = z(e), [a, o] = z(t), s = V(new AbortController()), c = r?.running || [];
- if (B(() => {
- if (n) return;
- let e = s.current.signal, t = 0, r = async () => {
- try {
- let n = await U("/api/tasks", e);
- if (e.aborted) return;
- i(n), o(""), t = setTimeout(r, n.running.length ? 2e3 : 1e4);
- } catch (n) {
- if (e.aborted) return;
- o(H(n)), t = setTimeout(r, 1e4);
- }
- };
- return t = setTimeout(r, c.length ? 2e3 : 1e4), () => {
- s.current.abort(), clearTimeout(t);
- };
- }, []), !r) return /* @__PURE__ */ W("div", {
- class: "activitypage",
- role: "alert",
- dangerouslySetInnerHTML: { __html: h(a || "读取任务中心失败", {
- variant: "error",
- filled: !0
- }) }
- });
- let l = r.skipped || [], u = (r.finished || []).filter((e) => !l.some((t) => t.id === e.id)), p = !c.length && !l.length && !u.length;
- return /* @__PURE__ */ W("div", {
- class: "activitypage",
- children: [
- a && /* @__PURE__ */ W("div", {
- role: "alert",
- dangerouslySetInnerHTML: { __html: h(a, {
- variant: "error",
- filled: !0
- }) }
- }),
- r.available === !1 && /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h(r.message || "账本上还没有任务中心的表", { variant: "warning" }) } }),
- p ? /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: d("history", "还没有任务记录", "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。") } }) : /* @__PURE__ */ W(F, { children: [
- /* @__PURE__ */ W("section", {
- class: "activitysection",
- "aria-labelledby": "activityRunning",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("activityRunning", "正在进行") } }), c.length ? /* @__PURE__ */ W("ul", {
- class: "activity-runs",
- "aria-live": "polite",
- children: c.map((e) => /* @__PURE__ */ W(Kr, { run: e }, e.id))
- }) : /* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: h("没有任务在跑。", {
- variant: "secondary",
- size: "small"
- }) } })]
- }),
- !!l.length && /* @__PURE__ */ W("section", {
- class: "activitysection",
- "aria-labelledby": "activitySkipped",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("activitySkipped", "被挡下的") } }), /* @__PURE__ */ W("ul", {
- class: "activity-runs",
- children: l.map((e) => /* @__PURE__ */ W(qr, { run: e }, e.id))
- })]
- }),
- !!u.length && /* @__PURE__ */ W("section", {
- class: "activitysection",
- "aria-labelledby": "activityFinished",
- children: [/* @__PURE__ */ W("div", { dangerouslySetInnerHTML: { __html: f("activityFinished", "最近完成") } }), /* @__PURE__ */ W("ul", {
- class: "activity-runs",
- children: u.map((e) => /* @__PURE__ */ W(qr, { run: e }, e.id))
- })]
- })
- ] })
- ]
- });
-}
-//#endregion
//#region src/state/index.ts
-var Yr = { "quality-goals": {
- refresh: Dr,
- reset: Er
-} }, Xr = () => Object.keys(Yr);
-async function Zr(e) {
- let t = Yr[e];
+var Pr = { "quality-goals": {
+ refresh: Er,
+ reset: Tr
+} }, Fr = () => Object.keys(Pr);
+async function Ir(e) {
+ let t = Pr[e];
if (!t) throw Error(`未登记的共享 store:${String(e)}`);
try {
return await t.refresh(), !0;
@@ -2974,24 +2776,24 @@ async function Zr(e) {
}
//#endregion
//#region src/review-evidence.ts
-var Qr = (e = "") => /^https?:\/\//i.test(e) ? e : "";
-function $r(e = "") {
- let n = Qr(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+var Lr = (e = "") => /^https?:\/\//i.test(e) ? e : "";
+function Rr(e = "") {
+ let n = Lr(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${n ? " hidden" : ""}>未取得来源图片</span>${n ? `<img src="${t(n)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
}
-function ei(e) {
- let n = Qr(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));
+function zr(e) {
+ let n = Lr(e.profile_url), r = (e.preview_assets || []).slice(0, 6), i = Math.max(0, Number(e.video_count || e.videos || 0));
return `<section class="reviewidentityevidence"><h5>候选身份:${t(e.babepedia_name || "未标注")}</h5>
<div class="reviewevidenceactions">${n ? `<a class="geist-button externallink" href="${t(n)}" target="_blank" rel="noopener noreferrer">来源资料<svg class="externalmark" viewBox="0 0 24 24" aria-hidden="true"><use href="#i-external-link" /></svg></a>` : ""}
<button type="button" class="geist-button" data-entity-kind="creator" data-entity-name="${t(e.creator || "")}">查看全部 ${i.toLocaleString()} 部作品</button></div>
- ${$r(e.preview_url)}
+ ${Rr(e.preview_url)}
<p>通过后记录身份判断。</p>
${r.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${r.map((e) => `<div class="reviewevidencesample">
<button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${t(e.name)}">${t(e.name)}</span></button>
<button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${t(e.name)} 的文件位置">文件位置</button>
</div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;
}
-function ti(e) {
+function Br(e) {
for (let t of e.querySelectorAll("[data-review-picture] img")) {
let e = () => {
t.hidden = !0;
@@ -3003,11 +2805,11 @@ function ti(e) {
}
//#endregion
//#region src/selection.ts
-function ni(e, t, n, r, i, a = i || !e.has(r)) {
+function Vr(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;
}
-function ri(e, t) {
+function Hr(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -3015,16 +2817,16 @@ function ri(e, t) {
mixed: n > 0 && n < t.length
};
}
-function ii(e, t, n) {
+function Ur(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function ai({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function Wr({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
e && (e.textContent = t), n && (n.checked = r.all, n.indeterminate = r.mixed);
for (let e of i) e.disabled = !r.count || a;
}
//#endregion
//#region src/review-bulk.ts
-var oi = () => ({
+var Gr = () => ({
busy: !1,
category: "",
filter: "",
@@ -3035,7 +2837,7 @@ var oi = () => ({
assets: /* @__PURE__ */ new Map(),
errors: /* @__PURE__ */ new Map()
});
-function si(e) {
+function Kr(e) {
let t = e?.querySelector(".reviewbulktoolbar");
if (!e || e.classList.contains("review-skeleton") || !t || t.offsetParent === null) return;
e.style.setProperty("--review-controls-height", `${t.getBoundingClientRect().height}px`);
@@ -3051,7 +2853,7 @@ function si(e) {
let o = i.getBoundingClientRect(), s = a.getBoundingClientRect();
e.style.setProperty("--review-pane-top", `${o.top}px`), e.style.setProperty("--review-pane-left", `${o.left}px`), e.style.setProperty("--review-pane-width", `${o.width}px`), e.style.setProperty("--review-pane-height", `${s.bottom - o.top}px`);
}
-function ci(e, t) {
+function qr(e, t) {
let n = [[
"candidates",
t ? "按候选数量" : "全部待复核",
@@ -3067,7 +2869,7 @@ function ci(e, t) {
"list-filter"
]), n;
}
-function li(e, t) {
+function Jr(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -3084,10 +2886,10 @@ function li(e, t) {
}
return [...n.values()];
}
-function ui(e, t, n, r, i) {
- e.anchor = ni(e.selected, t, e.anchor, n, r, i);
+function Yr(e, t, n, r, i) {
+ e.anchor = Vr(e.selected, t, e.anchor, n, r, i);
}
-async function di(e, t, n, r) {
+async function Xr(e, t, n, r) {
let i = [], a = 0;
for (let o of e) {
if (!r()) break;
@@ -3098,7 +2900,7 @@ async function di(e, t, n, r) {
} catch (e) {
i.push({
key: o.key,
- message: H(e)
+ message: U(e)
});
}
}
@@ -3107,17 +2909,17 @@ async function di(e, t, n, r) {
failures: i
};
}
-function fi(e) {
+function Zr(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 pi(e, t) {
+function Qr(e, t) {
let n = e.querySelector(".reviewlist");
if (!n || !t.rows.length || t.locked) return;
let r = t.state, a = [...n.querySelectorAll("[data-review-key]")];
t.category !== void 0 && r.category !== t.category && (r.category = t.category, r.filter = "", r.groupBy = "candidates", r.anchor = null);
- let o = t.catalog || t.rows, s = ci(o, t.metadata);
+ let o = t.catalog || t.rows, s = qr(o, t.metadata);
s.some((e) => e[0] === r.groupBy) || (r.groupBy = "candidates", r.filter = "");
- let c = li(o, r.groupBy);
+ let c = Jr(o, r.groupBy);
c.some((e) => e.key === r.filter) || (r.filter = "");
let u = () => [...n.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), d = () => u().filter((e) => r.selected.has(e.dataset.reviewKey)), f = () => t.rows.filter((e) => d().some((t) => t.dataset.reviewKey === e.item_key)), p = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, m = (e, t = "") => {
let n = document.createElement("button");
@@ -3125,16 +2927,16 @@ function pi(e, t) {
}, h = document.createElement("div");
h.className = "reviewbulkbar reviewbulktoolbar", h.setAttribute("role", "group"), h.setAttribute("aria-label", "复核批量操作");
let g = document.createElement("div");
- g.className = "reviewgroupby", g.innerHTML = v(s, r.groupBy, { label: "筛选分组方式" });
- let _ = C(g.firstElementChild);
- g.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), _.addEventListener("change", () => {
- if (r.busy || !s.some((e) => e[0] === _.value)) return;
- r.groupBy = _.value, r.filter = "", r.anchor = null;
+ g.className = "reviewgroupby", g.innerHTML = _(s, r.groupBy, { label: "筛选分组方式" });
+ let v = S(g.firstElementChild);
+ g.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), v.addEventListener("change", () => {
+ if (r.busy || !s.some((e) => e[0] === v.value)) return;
+ r.groupBy = v.value, r.filter = "", r.anchor = null;
let n = e.parentElement;
t.refresh(), n?.querySelector(".reviewgroupby button")?.focus({ preventScroll: !0 });
});
- let y = document.createElement("div");
- y.className = "reviewcategoryfilter", y.hidden = c.length < 2, y.innerHTML = v([[
+ let b = document.createElement("div");
+ b.className = "reviewcategoryfilter", b.hidden = c.length < 2, b.innerHTML = _([[
"",
"全部分类",
"list-filter"
@@ -3143,17 +2945,17 @@ function pi(e, t) {
`${e.title} · ${e.rows.length}`,
"list-filter"
])], r.filter, { label: r.groupBy === "field" ? "筛选字段分类" : "筛选当前分类" });
- let x = y.querySelector("[data-select-menu]");
+ let x = b.querySelector("[data-select-menu]");
if (x) {
let e = document.createElement("div");
e.setAttribute("role", "group"), e.setAttribute("aria-label", r.groupBy === "field" ? "字段分类" : "当前分类");
let t = document.createElement("div");
t.className = "reviewfilterheading", t.textContent = e.getAttribute("aria-label"), t.setAttribute("aria-hidden", "true"), e.append(t, ...Array.from(x.children).slice(1)), x.append(e);
}
- let S = C(y.firstElementChild);
- y.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), S.addEventListener("change", () => {
- if (r.busy || S.value && !c.some((e) => e.key === S.value)) return;
- r.filter = S.value, r.anchor = null;
+ let C = S(b.firstElementChild);
+ b.querySelectorAll("[data-select-option] .gselectmark").forEach((e) => e.remove()), C.addEventListener("change", () => {
+ if (r.busy || C.value && !c.some((e) => e.key === C.value)) return;
+ r.filter = C.value, r.anchor = null;
let n = e.parentElement;
t.refresh(), n?.querySelector(".reviewcategoryfilter button")?.focus({ preventScroll: !0 });
});
@@ -3168,14 +2970,14 @@ function pi(e, t) {
let j = document.createElement("div");
j.className = "selectiondock reviewdock", j.setAttribute("role", "group"), j.setAttribute("aria-label", "复核所选项目");
let ee = m("取消选择");
- j.append(D, O, A, ee, k), h.append(g, y, w);
- let te = e.querySelector(".reviewcontrols");
- te ? te.after(h) : n.before(h), e.append(j), n.classList.add("reviewgroups");
- let M = () => {
+ j.append(D, O, A, ee, k), h.append(g, b, w);
+ let M = e.querySelector(".reviewcontrols");
+ M ? M.after(h) : n.before(h), e.append(j), n.classList.add("reviewgroups");
+ let te = () => {
r.selected.clear(), r.anchor = null, N();
};
ee.onclick = () => {
- r.busy || (M(), w.focus({ preventScroll: !0 }));
+ r.busy || (te(), w.focus({ preventScroll: !0 }));
}, w.onclick = () => {
if (r.busy) return;
let e = u(), t = d().length === e.length;
@@ -3195,7 +2997,7 @@ function pi(e, t) {
f.className = "reviewlist", s.append(c, d), o.append(s, f), n.append(o), d.onclick = () => {
if (r.busy) return;
let e = t.map((e) => e.dataset.reviewKey);
- ii(r.selected, e, !e.every((e) => r.selected.has(e))), N();
+ Ur(r.selected, e, !e.every((e) => r.selected.has(e))), N();
}, ne.push(() => {
let e = t.every((e) => r.selected.has(e.dataset.reviewKey));
d.innerHTML = i(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), d.setAttribute("aria-pressed", String(e));
@@ -3212,7 +3014,7 @@ function pi(e, t) {
e.className = "reviewpickname", e.append(...n.childNodes), n.classList.add("reviewpickheading"), n.append(i, e);
} else e.prepend(i);
let o = (e, n) => {
- ui(r, u().map((e) => e.dataset.reviewKey), t, e, n), N();
+ Yr(r, u().map((e) => e.dataset.reviewKey), t, e, n), N();
};
if (i.addEventListener("mousedown", (e) => {
e.shiftKey && e.preventDefault();
@@ -3226,7 +3028,7 @@ function pi(e, t) {
else if (n.key === "ArrowDown" || n.key === "ArrowUp") {
n.preventDefault();
let i = u(), a = i[i.indexOf(e) + (n.key === "ArrowDown" ? 1 : -1)];
- a && (r.anchor === null && (r.anchor = t), ui(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), N(), a.querySelector(".reviewpickitem input")?.focus());
+ a && (r.anchor === null && (r.anchor = t), Yr(r, i.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), N(), a.querySelector(".reviewpickitem input")?.focus());
}
}
}), ne.push(() => {
@@ -3249,25 +3051,25 @@ function pi(e, t) {
}
}
e.addEventListener("keydown", (t) => {
- r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), M()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => r.selected.add(e.dataset.reviewKey)), N()));
+ r.busy || !e.contains(n) || (t.key === "Escape" && r.selected.size && (t.preventDefault(), t.stopPropagation(), te()), (t.ctrlKey || t.metaKey) && t.key.toLowerCase() === "a" && !t.target.matches("textarea,input:not([type=\"checkbox\"]):not([type=\"radio\"])") && (t.preventDefault(), t.stopPropagation(), u().forEach((e) => r.selected.add(e.dataset.reviewKey)), N()));
});
let re = "";
function N() {
let e = d(), n = e.length > 0 && e.length === u().length;
- w.innerHTML = i(n ? "check-check-outline" : "check-check") + (n ? "清空当前选择" : r.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(n)), j.hidden = !e.length, ai({
+ w.innerHTML = i(n ? "check-check-outline" : "check-check") + (n ? "清空当前选择" : r.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(n)), j.hidden = !e.length, Wr({
count: D,
label: `已选 ${e.length} 项`,
- summary: ri(r.selected, u().map((e) => e.dataset.reviewKey)),
+ summary: Hr(r.selected, u().map((e) => e.dataset.reviewKey)),
actions: [T, E]
}), T.disabled ||= e.some((e) => !p(e));
- let a = fi(f());
+ let a = Zr(f());
O.hidden = !t.metadata || !f().some((e) => (e.candidates?.length || 0) > 1);
let o = e.length && !a.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([o, a]);
if (s !== re) {
- re = s, O.innerHTML = v([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
- let e = C(O.firstElementChild);
+ re = s, O.innerHTML = _([["", o], ...a.map((e) => [e, e])], "", { label: "统一选择来源" });
+ let e = S(O.firstElementChild);
e.disabled = !a.length, e.addEventListener("change", () => {
- if (!(r.busy || !fi(f()).includes(e.value))) {
+ if (!(r.busy || !Zr(f()).includes(e.value))) {
for (let n of d()) {
let i = t.rows.find((e) => e.item_key === n.dataset.reviewKey).candidates.find((t) => t.source === e.value);
n.querySelectorAll("input[type=\"radio\"]").forEach((e) => {
@@ -3293,14 +3095,14 @@ function pi(e, t) {
k.textContent = "请先为所选的多来源候选选择来源。", d().find((e) => !e.querySelector("input[type=\"radio\"]:checked"))?.querySelector("input[type=\"radio\"]")?.focus();
return;
}
- r.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, b(i, !0);
+ r.busy = !0, k.textContent = `正在处理 0 / ${a.length}`, y(i, !0);
let o = [...e.querySelectorAll("button,input")], s = o.map((e) => e.getAttribute("aria-disabled"));
o.forEach((e) => e.setAttribute("aria-disabled", "true"));
let c = (e) => {
e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());
};
e.addEventListener("click", c, !0), e.addEventListener("keydown", c, !0);
- let l = 0, u = await di(a, async (e) => {
+ let l = 0, u = await Xr(a, async (e) => {
try {
return await t.submit(e);
} finally {
@@ -3312,14 +3114,14 @@ function pi(e, t) {
if (r.busy = !1, e.removeEventListener("click", c, !0), e.removeEventListener("keydown", c, !0), o.forEach((e, t) => {
let n = s[t];
n === null ? e.removeAttribute("aria-disabled") : e.setAttribute("aria-disabled", n);
- }), b(i, !1), !t.active()) return;
+ }), y(i, !1), !t.active()) return;
t.notify(`已${n === "approved" ? "通过" : "拒绝"} ${u.completed} 项${u.failures.length ? `,${u.failures.length} 项未完成` : ""}`), u.failures.forEach((e) => r.errors.set(e.key, e.message));
let f = e.parentElement;
t.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
}
- N(), si(e);
+ N(), Kr(e);
}
-function mi(e, t, n = 1) {
+function $r(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;
@@ -3339,15 +3141,15 @@ function mi(e, t, n = 1) {
t
];
}
-function hi(e, t) {
+function ei(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function gi(e, t) {
+function ti(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function _i(e, t, n) {
+function ni(e, t, n) {
if (t <= 1) return "";
- let r = mi(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
+ let r = $r(e, t).map((t) => t === "…" ? "<li class=\"board-page-dots\" aria-hidden=\"true\">…</li>" : `<li><button type="button" class="board-page" data-page="${t}" aria-label="第 ${t} 页"${t === e ? " aria-current=\"page\"" : ""}>${t}</button></li>`).join("");
return `<nav class="board-pagination" aria-label="${n}">
<button type="button" class="geist-button" data-page="${e - 1}"${e <= 1 ? " disabled" : ""}><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-left"></use></svg>上一页</button>
<ul>${r}</ul>
@@ -3356,10 +3158,10 @@ function _i(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function vi(e, t, n, r) {
+function ri(e, t, n, r) {
return e > 0 && t > 0 && e === n && t === r;
}
-function yi(e, t, n, r, i = 1) {
+function ii(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -3376,24 +3178,24 @@ function yi(e, t, n, r, i = 1) {
}
//#endregion
//#region src/avatar-picker.tsx
-var bi = {
+var ai = {
gfriends: "图库",
history: "用过的"
};
-function xi({ kind: e, id: t, name: n, onPicked: r }) {
- let i = V(null), a = V(null), o = V(null), [s, l] = z(null), [u, d] = z(""), [f, p] = z(""), [m, h] = z(""), [g, _] = z(!1);
- B(() => {
+function oi({ kind: e, id: t, name: n, onPicked: r }) {
+ let i = H(null), a = H(null), o = H(null), [s, l] = B(null), [u, d] = B(""), [f, p] = B(""), [m, h] = B(""), [g, _] = B(!1);
+ V(() => {
if (!g || s) return;
let n = new AbortController();
- return U(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
- n.signal.aborted || d(H(e));
+ return W(`/api/avatar-choices?kind=${e}&id=${t}`, n.signal).then(l).catch((e) => {
+ n.signal.aborted || d(U(e));
}), () => n.abort();
}, [
g,
s,
e,
t
- ]), B(() => {
+ ]), V(() => {
c(a.current);
}, [g, s]);
let v = () => {
@@ -3405,15 +3207,15 @@ function xi({ kind: e, id: t, name: n, onPicked: r }) {
try {
await e(), y(), l(null), r();
} catch (e) {
- d(H(e));
+ d(U(e));
} finally {
p("");
}
- }, x = (n) => b(() => mt("/api/avatar-pick", {
+ }, x = (n) => b(() => ft("/api/avatar-pick", {
kind: e,
id: t,
ref: n.ref
- }), n.ref), S = () => b(() => mt("/api/avatar-pick", {
+ }), n.ref), S = () => b(() => ft("/api/avatar-pick", {
kind: e,
id: t,
url: m.trim()
@@ -3428,21 +3230,21 @@ function xi({ kind: e, id: t, name: n, onPicked: r }) {
throw Error(e?.error || `请求失败(${r.status})`);
}
}, "file"), w = s?.choices || [], T = (s?.matched_names || []).filter((e) => e !== n), E = s ? T.length ? `${n}:图库里按「${T.join("」「")}」找到的。` : w.length ? `${n}:换上的那张留在本机,随时能换回来。` : `${n}:图库里没有这个名字,用下面两种方式换。` : "正在找可用的图…", D = !!s && s.index_stale && !w.some((e) => e.source === "gfriends");
- return /* @__PURE__ */ W("div", {
+ return /* @__PURE__ */ G("div", {
class: "avatarpick",
- children: [/* @__PURE__ */ W("button", {
+ children: [/* @__PURE__ */ G("button", {
type: "button",
class: "avatarpick-open",
onClick: v,
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
title: "更换头像",
- children: /* @__PURE__ */ W("svg", {
+ children: /* @__PURE__ */ G("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-plus" })
+ children: /* @__PURE__ */ G("use", { href: "#i-plus" })
})
- }), /* @__PURE__ */ W("dialog", {
+ }), /* @__PURE__ */ G("dialog", {
ref: i,
class: "geist-modal avatarpick-popover",
"aria-label": "更换头像",
@@ -3450,90 +3252,90 @@ function xi({ kind: e, id: t, name: n, onPicked: r }) {
onClick: (e) => {
e.target === i.current && y();
},
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ G("div", {
class: "avatarpick-head",
children: [
- /* @__PURE__ */ W("span", {
+ /* @__PURE__ */ G("span", {
class: "avatarpick-mark",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("svg", {
+ children: /* @__PURE__ */ G("svg", {
viewBox: "0 0 24 24",
- children: /* @__PURE__ */ W("use", { href: "#i-user-round" })
+ children: /* @__PURE__ */ G("use", { href: "#i-user-round" })
})
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "avatarpick-headtext",
children: [
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "avatarpick-title",
- children: [/* @__PURE__ */ W("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ W("span", {
+ children: [/* @__PURE__ */ G("h3", { children: "更换头像" }), !!w.length && /* @__PURE__ */ G("span", {
class: "geist-badge",
children: [w.length, " 张可选"]
})]
}),
- /* @__PURE__ */ W("p", { children: E }),
- D && /* @__PURE__ */ W("p", {
+ /* @__PURE__ */ G("p", { children: E }),
+ D && /* @__PURE__ */ G("p", {
class: "avatarpick-note",
children: "图库索引还没取过,只能从用过的图里选。"
}),
- u && /* @__PURE__ */ W("p", {
+ u && /* @__PURE__ */ G("p", {
class: "avatarpick-error",
role: "alert",
children: u
})
]
}),
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
type: "button",
class: "avatarpick-close",
onClick: y,
"aria-label": "关闭",
- children: /* @__PURE__ */ W("svg", {
+ children: /* @__PURE__ */ G("svg", {
viewBox: "0 0 24 24",
"aria-hidden": "true",
- children: /* @__PURE__ */ W("use", { href: "#i-x" })
+ children: /* @__PURE__ */ G("use", { href: "#i-x" })
})
})
]
- }), /* @__PURE__ */ W("div", {
+ }), /* @__PURE__ */ G("div", {
class: "avatarpick-panel",
- children: [/* @__PURE__ */ W("div", {
+ children: [/* @__PURE__ */ G("div", {
class: "avatarpick-gridwrap",
- children: /* @__PURE__ */ W("div", {
+ children: /* @__PURE__ */ G("div", {
class: "avatarpick-grid",
role: "listbox",
"aria-label": "候选头像",
ref: a,
- children: w.map((n) => /* @__PURE__ */ W("button", {
+ children: w.map((n) => /* @__PURE__ */ G("button", {
type: "button",
role: "option",
"aria-selected": n.current,
disabled: !!f,
class: `avatarpick-cell${n.current ? " current" : ""}`,
- title: `${bi[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
+ title: `${ai[n.source] || n.source} · ${n.label}` + (n.width ? ` · ${n.width}×${n.height}` : "") + (n.found_by ? ` · 按「${n.found_by}」找到` : ""),
onClick: () => x(n),
children: [
- /* @__PURE__ */ W("img", {
+ /* @__PURE__ */ G("img", {
loading: "lazy",
alt: "",
src: `/avatar-choice?kind=${e}&id=${t}&ref=${encodeURIComponent(n.ref)}`
}),
- /* @__PURE__ */ W("span", { children: n.label }),
- n.current && /* @__PURE__ */ W("b", { children: "在用" })
+ /* @__PURE__ */ G("span", { children: n.label }),
+ n.current && /* @__PURE__ */ G("b", { children: "在用" })
]
}, n.ref))
})
- }), /* @__PURE__ */ W("div", {
+ }), /* @__PURE__ */ G("div", {
class: "avatarpick-actions",
children: [
- /* @__PURE__ */ W("button", {
+ /* @__PURE__ */ G("button", {
type: "button",
class: "geist-button",
disabled: !!f,
onClick: () => o.current?.click(),
children: "从本机选图片"
}),
- /* @__PURE__ */ W("input", {
+ /* @__PURE__ */ G("input", {
ref: o,
type: "file",
accept: "image/png,image/jpeg",
@@ -3543,16 +3345,16 @@ function xi({ kind: e, id: t, name: n, onPicked: r }) {
e.currentTarget.value = "", t && C(t);
}
}),
- /* @__PURE__ */ W("div", {
+ /* @__PURE__ */ G("div", {
class: "avatarpick-url",
- children: [/* @__PURE__ */ W("input", {
+ children: [/* @__PURE__ */ G("input", {
type: "url",
class: "geist-input",
value: m,
placeholder: "https://…",
"aria-label": "图片地址",
onInput: (e) => h(e.currentTarget.value)
- }), /* @__PURE__ */ W("button", {
+ }), /* @__PURE__ */ G("button", {
type: "button",
class: "geist-button",
disabled: !m.trim() || !!f,
@@ -3566,15 +3368,15 @@ function xi({ kind: e, id: t, name: n, onPicked: r }) {
})]
});
}
-function Si(e, t) {
- Ne(/* @__PURE__ */ W(xi, { ...t }), e);
+function si(e, t) {
+ je(/* @__PURE__ */ G(oi, { ...t }), e);
}
-function Ci(e) {
- Ne(null, e);
+function ci(e) {
+ je(null, e);
}
//#endregion
//#region src/entity-skeleton.ts
-function wi(e, t, n) {
+function li(e, t, n) {
return `<section data-skeleton="entity/${e}" role="status" aria-label="正在读取资料">
<span class="sr-only">正在读取资料</span><div aria-hidden="true">
<section class="entityhero"><div class="entityprofile"><div class="entityportrait ${e === "studio" || e === "agency" ? "square " : ""}skeleton"></div>
@@ -3588,27 +3390,27 @@ function wi(e, t, n) {
}
//#endregion
//#region src/board-skeleton.ts
-var Z = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, Ti = () => `${Z("80%")}${Z("48%")}`, Q = (e, t) => e.repeat(t), Ei = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Z("45%")}</b><small class="board-stat-footer">${Z("60%")}</small></div>`).join("")}</div>`, Di = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, Oi = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, ki = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Z()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${Ti()}</div></section>`, Ai = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Q(Ti(), 3)}</div></section>`, ji = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, Mi = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Z("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${i("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${i("layout-grid")}</label><label>${i("table")}</label></div><span class="fmanagesort" data-collapse-field>${i("sort")}${v([["checked", "检查时间"]], "checked", {
+var Z = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, ui = () => `${Z("80%")}${Z("48%")}`, Q = (e, t) => e.repeat(t), di = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${Z("45%")}</b><small class="board-stat-footer">${Z("60%")}</small></div>`).join("")}</div>`, fi = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, pi = (e, t) => `<div class="${t} skeleton-segments" data-board-segments="true">${e.map((e, t) => `<span${t === 0 ? " class=\"skeleton-segment-selected\"" : ""}>${e}</span>`).join("")}</div>`, mi = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${Z()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${ui()}</div></section>`, hi = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Q(ui(), 3)}</div></section>`, gi = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, _i = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${Z("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${i("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${i("layout-grid")}</label><label>${i("table")}</label></div><span class="fmanagesort" data-collapse-field>${i("sort")}${_([["checked", "检查时间"]], "checked", {
label: "关注列表排序",
attr: "disabled"
-})}</span><button class="fbtn fmanagedir" disabled>${i("arrow-down")}</button>${e ? "" : ji(i("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, Ni = () => `<div class="fsource frow"><span class="fchannelcheck">${Z("18px")}</span><b>${Z("85%")}</b><span class="fprovider">${Z("54px")}</span><span class="fmeta fchecked">${Z("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, Pi = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Z("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Z("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${i("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Q(Ni(), 3)}</div></details>`;
-function Fi() {
- return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${Z("85%")}${Z("65%")}${Q(Ti(), 4)}</div></aside></div></div>`;
+})}</span><button class="fbtn fmanagedir" disabled>${i("arrow-down")}</button>${e ? "" : gi(i("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, vi = () => `<div class="fsource frow"><span class="fchannelcheck">${Z("18px")}</span><b>${Z("85%")}</b><span class="fprovider">${Z("54px")}</span><span class="fmeta fchecked">${Z("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, yi = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${Z("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${Z("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${i("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Q(vi(), 3)}</div></details>`;
+function bi() {
+ return `<div data-skeleton="detail" role="status" aria-label="正在读取作品详情"><div class="sgrid" aria-hidden="true"><div class="vwrap skeleton-detail-media skeleton"></div><aside class="side"><div class="sidecontent skeleton-lines">${Z("85%")}${Z("65%")}${Q(ui(), 4)}</div></aside></div></div>`;
}
-function Ii(e, t = {}) {
+function xi(e, t = {}) {
let n = "";
- if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Z("38%")}</header>${Ei([
+ if (e === "/stats") n = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${Z("38%")}</header>${di([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${ki("网盘与本地")}${ki("媒体库")}</div></div></section>${Ai("内容标签")}</div>`;
- else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${Oi(["浏览器记录", "Peach 内部"], "insightswitch")}${Z("24%")}</header><div class="tastestate"></div>${Ei([
+ ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${mi("网盘与本地")}${mi("媒体库")}</div></div></section>${hi("内容标签")}</div>`;
+ else if (e === "/taste") n = `<div class="tastepage"><header class="tastehead">${pi(["浏览器记录", "Peach 内部"], "insightswitch")}${Z("24%")}</header><div class="tastestate"></div>${di([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Q(Ti(), 4)}</div></section>${Ai("口味分析")}<div class="board-activity-charts">${Ai("浏览活动")}${Ai("时间分布")}</div>${Ai("标签")}</div>`;
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Q(ui(), 4)}</div></section>${hi("口味分析")}<div class="board-activity-charts">${hi("浏览活动")}${hi("时间分布")}</div>${hi("标签")}</div>`;
else if (e === "/follow-manage") {
let e = t.followLayout === "table", r = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
"选择",
@@ -3626,18 +3428,18 @@ function Ii(e, t = {}) {
"40px",
"100px",
"60px"
- ].map((e) => `<td>${Z(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Q(Pi(), 4)}</div>`;
+ ].map((e) => `<td>${Z(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Q(yi(), 4)}</div>`;
n = `<div class="follow followmanage"><div class="fmanageoverview">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新"
- ].map((e) => `<div><span>${e}</span><b>${Z()}</b></div>`).join("")}</div>${Oi([
+ ].map((e) => `<div><span>${e}</span><b>${Z()}</b></div>`).join("")}</div>${pi([
"关注列表",
"添加关注",
"来源和凭证"
- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${Mi(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${l("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Z("120px")}${Z("100px")}</div></div></div></section></div></div>`;
- } else if (e === "/configuration") n = `<div class="configpage">${Di([
+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${_i(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${l("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${r}<div class="followpagefooter"><div class="followpageinfo">${Z("120px")}${Z("100px")}</div></div></div></section></div></div>`;
+ } else if (e === "/configuration") n = `<div class="configpage">${fi([
"通用",
"媒体",
"网络与访问",
@@ -3647,16 +3449,16 @@ function Ii(e, t = {}) {
"正在进行",
"被挡下的",
"最近完成"
- ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${Z("35%")}${Ti()}</div></article></div></section>`).join("")}</div>`;
+ ].map((e) => `<section class="activitysection"><h3 class="geist-fieldset-title">${e}</h3><div class="activity-runs"><article class="cleanupfieldset activity-run"><div class="geist-fieldset-content skeleton-lines">${Z("35%")}${ui()}</div></article></div></section>`).join("")}</div>`;
else if (e === "/duplicates") n = `<div class="review"><div class="collection-summary">${Z("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${Z("40%")}</div>${Q(`<section class="dupgroup"><div class="duphead">${Z("45%")}</div><div class="duplist">${Q(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${Z()}</span><span class="dupname">${Z("90%")}</span>${Z()}${Z()}${Z()}<span class="duppath">${Z("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Z("20%")}</div><div class="qualitylist">${Q(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${Ti()}</div><footer class="qualityactions">${Z("80%")}</footer></article>`, 6)}</div></div>`;
- else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${Z("200px")}</div></header><div class="playlistcards">${Q(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${Ti()}</div></div></article>`, 6)}</div></section>`;
+ else if (e === "/quality-goals") n = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${Z("20%")}</div><div class="qualitylist">${Q(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${ui()}</div><footer class="qualityactions">${Z("80%")}</footer></article>`, 6)}</div></div>`;
+ else if (e === "/playlists") n = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${Z("200px")}</div></header><div class="playlistcards">${Q(`<article class="card playlistcard"><div class="mixstack"><div class="pic skeleton"></div></div><div class="mixmeta"><span class="mav skeleton"></span><div class="mixcopy skeleton-lines">${ui()}</div></div></article>`, 6)}</div></section>`;
else return "";
return `<div class="board-page-skeleton" data-skeleton="board${e}" role="status" aria-label="正在读取页面"><div aria-hidden="true" inert>${n}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var Li = [
+var Si = [
"loc",
"creator",
"performer",
@@ -3674,16 +3476,16 @@ var Li = [
"jav",
"thumb"
];
-function Ri() {
+function Ci() {
let e = (e) => Array(64).fill(e).join("");
return {
tiers: "<div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"av\"><span class=\"ring\"></span><span class=\"nm\">&nbsp;</span></span>") + "</div><div class=\"tier catalog-placeholder\" aria-hidden=\"true\">" + e("<span class=\"brandpill\"><span class=\"mk\"></span><span class=\"placeholder-name\">&nbsp;</span></span>") + "</div>",
tags: "<span class=\"catalog-placeholder placeholder-tags\" aria-hidden=\"true\">" + e("<span class=\"pill\">&nbsp;</span>") + "</span>"
};
}
-async function zi(e, t) {
+async function wi(e, t) {
let n = new URLSearchParams();
- for (let t of Li) e[t] && n.set(t, e[t]);
+ for (let t of Si) e[t] && n.set(t, e[t]);
let [r, i] = await Promise.all([t("/api/facets?" + n), t("/api/items?" + n + "&limit=5")]), a = [...new Set([
...r.creators || [],
...r.tagperformers || [],
@@ -3694,7 +3496,7 @@ async function zi(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function Bi({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
+function Ti({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable: r = !1, online: i = !1 } = {}) {
let a = r ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", o = "<a class=\"geist-button" + (!r || i ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || n) return d("search", n ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", n ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -3715,7 +3517,7 @@ function Bi({ kind: e = "catalog", filtered: t = !1, jav: n = !1, configurable:
}
//#endregion
//#region src/sidebar.ts
-function Vi(e) {
+function Ei(e) {
return [
"/",
"/unseen",
@@ -3725,57 +3527,57 @@ function Vi(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function Hi(e, t) {
+function Di(e, t) {
return e.dataset.surface?.split("?")[0] === t.split("?")[0] && e.querySelector(".dnav") ? (e.dataset.surface = t, !1) : (e.dataset.surface = t, e.replaceChildren(), !0);
}
-function Ui(e) {
+function Oi(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/resource-sync.ts
-var $ = (e = 0) => Number(e).toLocaleString(), Wi = {
+var $ = (e = 0) => Number(e).toLocaleString(), ki = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, Gi = (e) => y(s[e] ?? "database"), Ki = (e, t, n) => `<article class="board-plain-stat resourcestat">
+}, Ai = (e) => v(s[e] ?? "database"), ji = (e, t, n) => `<article class="board-plain-stat resourcestat">
<span class="board-plain-stat-head">${e}</span>
<strong>${t}</strong>
<span class="cleanupmeta">${n}</span></article>`;
-function qi(e, t) {
+function Mi(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Ki(`<span class="board-stat-tile resourcestat-tile">${Gi(e.location)}</span>${Wi[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${$(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`, e.unreadable ? `${$(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
- ${Ki("待移入回收站", `${$(e.missing)} 项`, "")}
- ${Ki("可清理的缓存", `${$(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => ji(`<span class="board-stat-tile resourcestat-tile">${Ai(e.location)}</span>${ki[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${$(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${$(e.checked)} 项` : `馆藏中有 ${$(e.total)} 项`, e.unreadable ? `${$(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${ji("待移入回收站", `${$(e.missing)} 项`, "")}
+ ${ji("可清理的缓存", `${$(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
${r ? h(`将把找不到文件的 ${$(e.missing)} 项馆藏记录移入回收站,并清理 ${$(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
<div class="resourceapplyrow geist-fieldset-footer" data-geist-fieldset-footer>${r ? "<button class=\"geist-button primary\" type=\"button\" id=\"resourceApply\">清理失效记录与缓存</button>" : "<p class=\"resourcesyncok\">已检查可访问的来源,没有待清理的记录或缓存。</p>"}</div>`;
}
//#endregion
//#region src/jav-artwork.ts
-function Ji(e) {
+function Ni(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Yi(e) {
+function Pi(e) {
return {
- javLayout: Ji(e.javLayout),
- javImage: Xi(e.javLayout === "preview" ? "thumbnail" : e.javImage)
+ javLayout: Ni(e.javLayout),
+ javImage: Fi(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
-function Xi(e) {
+function Fi(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Zi(e, t) {
- return e.is_jav && e.code && e.has_cover && (Xi(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
+function Ii(e, t) {
+ return e.is_jav && e.code && e.has_cover && (Fi(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function Qi(e, t) {
+function Li(e, t) {
let n = Number(e?.px?.[0]), r = Number(e?.px?.[1]), i = Number(e?.x0);
if (!(n > 0 && r > 0 && t > 0) || !Number.isFinite(i)) return null;
let a = Math.min(1, Math.max(0, i / n)), o = n / r / t, s = (1 - a) * o;
@@ -3786,45 +3588,42 @@ function Qi(e, t) {
left: l(c)
};
}
-function $i(e, t) {
+function Ri(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
- let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Xi(t) === "cover" || !r)), a = i ? n : r;
+ let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Fi(t) === "cover" || !r)), a = i ? n : r;
e.classList.toggle("cover", i), e.classList.toggle("whole", i && e.dataset.javImageLayout !== "big"), e.classList.toggle("front", i && e.dataset.javImageLayout === "big"), e.classList.remove("panel"), e.removeAttribute("style"), e.closest(".pic")?.style.removeProperty("--cover-blur"), a && e.getAttribute("src") !== a && (e.src = a);
});
}
//#endregion
//#region src/islands.ts
-var ea = {
+var zi = {
"library-processing": {
- load: xt,
- component: Dt
+ load: yt,
+ component: Tt
},
scraping: {
- load: jr,
- component: Pr
+ load: Ar,
+ component: Nr
},
"quality-goals": {
- load: Or,
- component: Ar
+ load: Dr,
+ component: kr
},
configuration: {
- load: zn,
- component: Bn
+ load: Ln,
+ component: Rn
},
- activity: {
- load: Fr,
- component: Jr
- }
-}, ta = () => Object.keys(ea), na = /* @__PURE__ */ new Map();
-async function ra(e, t, n, r = {}) {
- let i = ea[e];
+ activity: { react: "activity" }
+}, Bi = () => Object.keys(zi), Vi = /* @__PURE__ */ new Map();
+async function Hi(e, t, n, r = {}) {
+ let i = zi[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- aa(t);
+ Ki(t);
let a = {
controller: new AbortController(),
painted: !1
};
- na.set(t, a);
+ if (Vi.set(t, a), "react" in i) return Wi(i, t, n, a, r);
let o;
try {
o = {
@@ -3835,25 +3634,38 @@ async function ra(e, t, n, r = {}) {
if (a.controller.signal.aborted) return;
o = {
data: null,
- error: H(e)
+ error: U(e)
};
}
- if (na.get(t) !== a) return;
- if (r.isCurrent && !r.isCurrent()) {
- na.delete(t);
- return;
- }
- t.textContent = "", a.painted = !0;
+ if (!Ui(t, a, r)) return;
let s = {
...n,
...o
};
- Ne(ue(i.component, s), t);
+ je(le(i.component, s), t);
+}
+function Ui(e, t, n) {
+ return Vi.get(e) === t ? n.isCurrent && !n.isCurrent() ? (Vi.delete(e), !1) : (e.textContent = "", t.painted = !0, !0) : !1;
+}
+async function Wi(e, t, n, r, i) {
+ let a = (await import("/dist/peach-react.js")).pages[e.react];
+ try {
+ await a.prefetch(n, r.controller.signal);
+ } catch {
+ if (r.controller.signal.aborted) return;
+ }
+ if (!Ui(t, r, i)) return;
+ let o = t.ownerDocument.createElement("div");
+ o.className = "peach-react", t.append(o);
+ let s = a.mount(o, n);
+ r.dispose = () => {
+ s.unmount(), o.remove();
+ };
}
-var ia = (e) => !!e && na.has(e);
-function aa(e) {
- let t = na.get(e);
- t && (t.controller.abort(), na.delete(e), t.painted && Ne(null, e));
+var Gi = (e) => !!e && Vi.has(e);
+function Ki(e) {
+ let t = Vi.get(e);
+ t && (t.controller.abort(), Vi.delete(e), t.dispose ? t.dispose() : t.painted && je(null, e));
}
//#endregion
-export { Mt as TASTE_GUIDE_KEY, An as activityChartsHtml, Ii as boardPageSkeleton, Ie as boundedPreference, Bi as catalogEmptyHtml, zi as catalogSuggestions, gi as clampPage, At as cleanupSkeletonHtml, Ot as cloudLocations, kt as cloudPreferenceLocations, oi as createReviewSelection, wn as creatorSankeyHtml, Fi as detailSkeletonHtml, Ve as distributionChart, Ri as emptyCatalogLayout, wi as entitySkeletonHtml, _t as followJobProgress, li as groupReviewRows, ei as identityEvidenceHtml, Rt as initBoardControls, ia as islandMounted, ta as islandNames, Zi as javImageKind, ht as jobActivityHtml, Be as jobProgressHtml, vi as matchesFaceSource, Si as mountAvatarPicker, It as mountBoardStatePreview, ra as mountIsland, Re as mountNumberSetting, yi as nativeImageFit, Xi as normalizeJavImage, Ji as normalizeJavLayout, Yi as normalizeJavPreferences, hi as pageCount, _i as paginationHtml, Qi as panelFrame, Pe as preferredDirection, Ue as radarChart, Dn as radialCardHtml, He as rankedChart, Zr as refreshStore, qi as resourceScanHtml, $r as reviewImageHtml, ii as selectGroup, ni as selectRange, ri as selectionSummary, Vi as sidebarHasCatalogContent, Nn as sidebarSectionHtml, Ui as sidebarTagCounts, ze as statCardBody, Xr as storeNames, Lt as syncBoardRange, $i as syncJavImages, Le as syncNumberSetting, ai as syncSelectionToolbar, Hi as syncSidebarSurface, jt as tasteHistoryGuideHtml, In as transitionTheme, Ci as unmountAvatarPicker, aa as unmountIsland, si as updateReviewSticky, gt as watchJob, jn as wireActivityCharts, Tn as wireCreatorSankey, Wt as wireExpandableRanks, Ut as wireGrowingCharts, On as wireRadialCards, ti as wireReviewPictures, pi as wireReviewSelection, Pn as wireSidebarGroups, Nt as wireTasteHistoryGuide };
+export { At as TASTE_GUIDE_KEY, On as activityChartsHtml, xi as boardPageSkeleton, Pe as boundedPreference, Ti as catalogEmptyHtml, wi as catalogSuggestions, ti as clampPage, Ot as cleanupSkeletonHtml, Et as cloudLocations, Dt as cloudPreferenceLocations, Gr as createReviewSelection, Sn as creatorSankeyHtml, bi as detailSkeletonHtml, ze as distributionChart, Ci as emptyCatalogLayout, li as entitySkeletonHtml, ht as followJobProgress, Jr as groupReviewRows, zr as identityEvidenceHtml, It as initBoardControls, Gi as islandMounted, Bi as islandNames, Ii as javImageKind, pt as jobActivityHtml, Re as jobProgressHtml, ri as matchesFaceSource, si as mountAvatarPicker, Pt as mountBoardStatePreview, Hi as mountIsland, Ie as mountNumberSetting, ii as nativeImageFit, Fi as normalizeJavImage, Ni as normalizeJavLayout, Pi as normalizeJavPreferences, ei as pageCount, ni as paginationHtml, Li as panelFrame, Me as preferredDirection, Ve as radarChart, Tn as radialCardHtml, Be as rankedChart, Ir as refreshStore, Mi as resourceScanHtml, Rr as reviewImageHtml, Ur as selectGroup, Vr as selectRange, Hr as selectionSummary, Ei as sidebarHasCatalogContent, jn as sidebarSectionHtml, Oi as sidebarTagCounts, Le as statCardBody, Fr as storeNames, Ft as syncBoardRange, Ri as syncJavImages, Fe as syncNumberSetting, Wr as syncSelectionToolbar, Di as syncSidebarSurface, kt as tasteHistoryGuideHtml, Pn as transitionTheme, ci as unmountAvatarPicker, Ki as unmountIsland, Kr as updateReviewSticky, mt as watchJob, kn as wireActivityCharts, Cn as wireCreatorSankey, Ht as wireExpandableRanks, Vt as wireGrowingCharts, En as wireRadialCards, Br as wireReviewPictures, Qr as wireReviewSelection, Mn as wireSidebarGroups, jt as wireTasteHistoryGuide };