Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(web): 统计页整页归 React,读数卡兼页签、环形库存图与排行都在 React 层

longmeidao2e0c22b202cc
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.md
index 8eec9652b..07d8f7152 100644
--- a/docs/FRONTEND.md
+++ b/docs/FRONTEND.md
@@ -209,6 +209,13 @@ const job = useQuery({
`refetchInterval`(活动页 2 秒/10 秒),不另起 `setInterval`:轮询跟着组件走,
换页时壳在 `claimSurface` 卸根,它自己就停了。
+统计页(`src/react/stats/`)是这条判据的另一端:整页只有 `STATS_KEY` 这一个键,读的是账本
+此刻的样子,没有后台任务也不轮询。一屏里的四个读数和下面三个面板分开取的话,就会出现这一格
+是新的、那一格是旧的。四张读数卡同时是页签(React Aria 的 `Tabs`),因为这一页没有别的主
+动作,读数本身就是入口;环形库存图用 SVG 画,`pathLength={100}` 把一圈钉成 100,颜色只取
+BoardUI 的 `chart-*` 档。点一个内容标签是「回目录并按它筛选」,整页换成目录仍归遗留壳,页面
+只把标签键交回去(`onTag`)。
+
## 迁移下一个页面
整页归 React(ADR-0031)。先挑一个**容器不与别人共用**的页面;写操作和后台任务的
@@ -287,9 +294,9 @@ vendor 到 `web/vendor/` 的四个包(video.js、swiper、lucide-static、heal
| `tailwindcss`、`@tailwindcss/vite` | 按 `src/react/` 里实际用到的类名生成 `peach-react.css` |
| `@types/react`、`@types/react-dom` | React 子树的类型检查 |
-React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 774.5 kB(gzip 200.7 kB),
-只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 87.5 kB(gzip 13.7 kB),
-由 `index.html` 在旧样式表之前引入。`peach-ui.js` 85.6 kB(gzip 26.6 kB),只剩挂载契约与
+React 子树单独构建(`vite.react.config.ts`)。`peach-react.js` 810.7 kB(gzip 208.5 kB),
+只在页面挂 React 子树时由 island 动态加载;`peach-react.css` 91.6 kB(gzip 14.3 kB),
+由 `index.html` 在旧样式表之前引入。`peach-ui.js` 81.5 kB(gzip 25.7 kB),只剩挂载契约与
遗留层的助手。`build.cssTarget` 对齐 Tailwind v4 的浏览器基线
(Chrome 111、Firefox 128、Safari 16.4),oklch 颜色原样输出:目标再旧,lightningcss 会补
`lab()` 回退,末位小数随平台浮点不同,CI 在 Linux 上重建的产物就与提交的对不上。
diff --git a/docs/PRODUCT_BACKLOG.md b/docs/PRODUCT_BACKLOG.md
index 889da1744..f575bcceb 100644
--- a/docs/PRODUCT_BACKLOG.md
+++ b/docs/PRODUCT_BACKLOG.md
@@ -4,11 +4,11 @@
## BoardUI 正式前端迁移
-Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视觉层与控件映射已在生产。迁移按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页改写成 React + Tailwind v4 + BoardUI 原版源码,每次一到两个页面、独立分支集成,旧渲染函数、旧 CSS 与旧断言随页面删除。已整页迁到 React 的是配置页、活动页、高清版页、来源和凭证页、换头像那一屏,以及扫描与采集的卡片和目录页横幅(两个容器读同一个 `queryKey`);前端只有 React 一档,其余页面仍在 `web/app.js`。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。
+Board 视觉层是唯一一套界面,没有切换开关;Board 风格的视觉层与控件映射已在生产。迁移按 [ADR-0031](adr/0031-frontend-react-boardui-tailwind.md) 逐页改写成 React + Tailwind v4 + BoardUI 原版源码,每次一到两个页面、独立分支集成,旧渲染函数、旧 CSS 与旧断言随页面删除。已整页迁到 React 的是配置页、活动页、高清版页、来源和凭证页、统计页、换头像那一屏,以及扫描与采集的卡片和目录页横幅(两个容器读同一个 `queryKey`);前端只有 React 一档,其余页面仍在 `web/app.js`。布尔开关对应 Board Switch,互斥选择对应 Segmented Control;数值配置支持合法范围内自定义,可关闭功能用 Switch,开启才展示数字输入。
前端基础库随页面引入,取舍与时机见 ADR-0031「前端基础库」一节:TanStack Query 已随活动页进入,所有 React root 共用一个 `QueryClient`,数据管理卡片的总数在那一页迁移时读高清版页同一个 `queryKey`;TanStack Table 随关注管理表格与 BoardUI Data Table 进;React Router 在外壳与路由迁移那一步接管;TanStack Virtual 在馆藏网格迁到 React 时按实测决定。Remix Icon 候选审查在预览 `/icon-review.html`,现有已选图标保留至用户筛选。迁移不包含版本号或其他分支发布工作。
-统计与口味已接入 Stat Cards、可展开排名、雷达、媒体库与网盘环形卡;浏览历史支持时间范围、真实访问热图和网站到创作者线索的流向。侧栏使用同一导航的 60/260px 宽窄态,手机从左侧滑入。设置滚动渐隐、手机输入字号、焦点环留白及登录保持时长已接入。Pro 组件使用公开行为的独立适配,范围见 [Board 适配](BOARD_UI.md)。
+统计页的四张读数卡兼页签、环形库存图与可展开排名在 React 层(`frontend/src/react/stats/`),口味页接入 Stat Cards、可展开排名、雷达;浏览历史支持时间范围、真实访问热图和网站到创作者线索的流向。侧栏使用同一导航的 60/260px 宽窄态,手机从左侧滑入。设置滚动渐隐、手机输入字号、焦点环留白及登录保持时长已接入。Pro 组件使用公开行为的独立适配,范围见 [Board 适配](BOARD_UI.md)。
侧栏底部固定设置和明暗开关,顶部独立按钮控制展开;媒体库图标负责打开选择面板,首页入口使用 Peach logo。路径可命名分组并选择图标,网盘默认图标由本机提供;库选择限定作品列表与筛选项。统计、口味和维护任务保持全局。关注提供默认视图与表格视图,共享作者分组、排序、多选和批量删除;默认视图可收起作者,表格视图表头可排序,最近观看标题可跳转视频。详情优先响应 Esc,手机排序栏可横向滚动。预览不保存真实配置。
diff --git a/frontend/e2e/smoke.test.ts b/frontend/e2e/smoke.test.ts
index 0dd5f7835..5db1a4bf3 100644
--- a/frontend/e2e/smoke.test.ts
+++ b/frontend/e2e/smoke.test.ts
@@ -35,6 +35,10 @@ const DESKTOP = VIEWPORTS.find((viewport) => !viewport.mobile)!;
const indexEntries = (page: Page): Locator =>
page.locator('#index [data-k]:visible, #index [data-geist-empty-state]:visible').first();
+/** 统计页画完的标志:四张读数卡兼页签,第一张是馆藏。名字里还带读数和体积,按前缀匹配。 */
+const statsInventoryTab = (page: Page): Locator =>
+ page.locator('#stats').getByRole('tab', { name: /^馆藏视频/ });
+
const ROUTES: readonly Route[] = [
{ path: '/', body: (page) => [page.locator('#grid article.card').first()] },
{ path: '/performers', body: (page) => [heading(page, '#index', '艺人'), indexEntries(page)] },
@@ -49,8 +53,9 @@ const ROUTES: readonly Route[] = [
body: (page) => [heading(page, '#stats', '关注'), heading(page, '#stats', '还没有关注任何来源')],
},
{
+ // 骨架里那条指标带也写着「馆藏视频」,认不出画完没有;只有真页面把四张读数卡做成页签。
path: '/stats',
- body: (page) => [heading(page, '#main', '统计'), page.locator('#stats').getByText('馆藏视频', { exact: true })],
+ body: (page) => [heading(page, '#main', '统计'), statsInventoryTab(page)],
},
{ path: '/review', body: (page) => [heading(page, '#main', '人工复核'), heading(page, '#stats', '复核分类')] },
{
@@ -152,11 +157,14 @@ describe('路由冒烟', () => {
history.pushState({}, '', '/stats');
window.dispatchEvent(new PopStateEvent('popstate'));
});
- await expectBody(opened.page, '/stats',
- [opened.page.locator('#stats').getByText('馆藏视频', { exact: true })]);
+ await expectBody(opened.page, '/stats', [statsInventoryTab(opened.page)]);
await settle(opened.page);
const stopped = polls.length;
- assert.equal(await opened.page.locator('#stats .peach-react').count(), 0,
+ // 统计页自己也是 React 档:管理区正文里应当只剩它那一棵根,活动页那一棵连同轮询一起撤掉。
+ assert.equal(await opened.page.locator('#stats .peach-react').count(), 1,
+ '管理区正文里不是只剩统计页那一棵 React 根');
+ assert.equal(
+ await opened.page.locator('#stats').getByRole('heading', { name: '还没有任务记录' }).count(), 0,
'换页之后活动页的 React 根还留在管理区正文里');
await opened.page.waitForTimeout(3_000);
assert.equal(polls.length, stopped, '离开活动页之后 /api/tasks 还在轮询');
diff --git a/frontend/src/board-analytics.ts b/frontend/src/board-analytics.ts
index 8d6bd072d..fa79731c7 100644
--- a/frontend/src/board-analytics.ts
+++ b/frontend/src/board-analytics.ts
@@ -1,49 +1,7 @@
import { esc } from '@peach/legacy/core';
-export interface RadialMetric { name:string; value:number; detail?:string }
const valid=(value:number)=>Number.isFinite(value)&&value>=0;
-/** 环与读数使用同一份聚合值;max 对应完整一圈。 */
-export function radialCardHtml(rows:RadialMetric[],title:string,unit='个视频') {
- const data=rows.filter(row=>valid(row.value));
- if(!data.length)return '';
- const total=data.reduce((sum,row)=>sum+row.value,0),max=Math.max(1,...data.map(row=>row.value))*1.1;
- const step=Math.min(22,110/Math.max(1,data.length)),width=Math.min(15,step*.68);
- const rings=data.map((row,index)=>{
- const radius=32+index*step,length=row.value/max*100;
- return `<g style="--ring-color:var(--board-chart-${index%6});--ring-delay:${index*60}ms"><circle class="board-ring-track" cx="160" cy="160" r="${radius}" stroke-width="${width}"/><circle class="board-ring-value" data-radial-ring="${index}" tabindex="0" role="button" aria-label="${esc(row.name)}:${row.value.toLocaleString()} ${esc(unit)}" aria-pressed="false" cx="160" cy="160" r="${radius}" stroke-width="${width}" pathLength="100" stroke-dasharray="${length} ${100-length}" style="--ring-length:${length}" transform="rotate(-90 160 160)"/></g>`;
- }).join('');
- return `<section class="board-radial-card" data-radial-card data-radial-total="${total}" data-radial-title="${esc(title)}"><header><span data-radial-label>${esc(title)}</span><b data-radial-number>${total.toLocaleString()}</b><small>${esc(unit)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${esc(title)}">${rings}</svg><div class="board-radial-tiles">${data.map((row,index)=>`<button type="button" data-radial-tile="${index}" data-radial-value="${row.value}" data-radial-name="${esc(row.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${index%6})"><span><i aria-hidden="true"></i>${esc(row.name)}</span><b>${row.value.toLocaleString()}</b>${row.detail?`<small>${esc(row.detail)}</small>`:''}</button>`).join('')}</div></section>`;
-}
-
-export function wireRadialCards(root:ParentNode) {
- root.querySelectorAll<HTMLElement>('[data-radial-card]').forEach(card=>{
- const tiles=[...card.querySelectorAll<HTMLButtonElement>('[data-radial-tile]')],rings=[...card.querySelectorAll<SVGCircleElement>('[data-radial-ring]')];
- const headline=card.querySelector<HTMLElement>('[data-radial-number]')!,label=card.querySelector<HTMLElement>('[data-radial-label]')!;
- let selected=-1,current=0,animation=0;
- const paint=(index:number,duration=300)=>{
- card.dataset.radialFocus=String(index);
- tiles.forEach((tile,i)=>{tile.dataset.active=String(i===index);tile.setAttribute('aria-pressed',String(i===selected));rings[i]?.setAttribute('aria-pressed',String(i===selected));if(rings[i])rings[i]!.dataset.active=String(i===index)});
- const value=index<0?Number(card.dataset.radialTotal):Number(tiles[index]?.dataset.radialValue);
- label.textContent=index<0?card.dataset.radialTitle!:tiles[index]!.dataset.radialName!;
- cancelAnimationFrame(animation);const start=current,time=performance.now();
- const frame=(now:number)=>{if(!card.isConnected)return;const progress=matchMedia('(prefers-reduced-motion: reduce)').matches?1:Math.min(1,(now-time)/duration);current=start+(value-start)*(1-(1-progress)**3);headline.textContent=Math.round(current).toLocaleString();if(progress<1)animation=requestAnimationFrame(frame)};
- animation=requestAnimationFrame(frame);
- };
- const toggle=(index:number)=>{selected=selected===index?-1:index;paint(selected)};
- [...tiles,...rings].forEach(control=>{
- const index=Number(control.getAttribute('data-radial-tile')??control.getAttribute('data-radial-ring'));
- control.addEventListener('pointerenter',()=>paint(index));control.addEventListener('pointerleave',()=>paint(selected));
- control.addEventListener('focus',()=>paint(index));control.addEventListener('blur',()=>paint(selected));control.addEventListener('click',()=>toggle(index));
- if(control instanceof SVGElement)control.addEventListener('keydown',event=>{if(event.key==='Enter'||event.key===' '){event.preventDefault();toggle(index)}});
- });
- card.dataset.radialFocus='-1';headline.textContent='0';
- const reveal=()=>{requestAnimationFrame(()=>{if(!card.isConnected)return;card.classList.add('board-chart-visible');paint(-1,1200)})};
- if(typeof IntersectionObserver==='undefined'||matchMedia('(prefers-reduced-motion: reduce)').matches)reveal();
- else {const observer=new IntersectionObserver(entries=>{if(entries.some(entry=>entry.isIntersecting)){observer.disconnect();reveal()}},{threshold:.15});observer.observe(card)}
- });
-}
-
export interface HistoryActivity { timezone?:string; days:{date:string;count:number}[]; hours:{weekday:number;hour:number;count:number}[] }
const weekdays=['周一','周二','周三','周四','周五','周六','周日'];
export function activityChartsHtml(activity:HistoryActivity|undefined) {
diff --git a/frontend/src/board-controls.ts b/frontend/src/board-controls.ts
index ede2b5742..55848596e 100644
--- a/frontend/src/board-controls.ts
+++ b/frontend/src/board-controls.ts
@@ -126,7 +126,7 @@ export function wireGrowingCharts(root:ParentNode) {
}
export function wireExpandableRanks(root:ParentNode) {
- root.querySelectorAll<HTMLElement>('.tasteranks,.insightranking').forEach((list,index)=>{
+ root.querySelectorAll<HTMLElement>('.tasteranks').forEach((list,index)=>{
if(list.children.length<=5||list.parentElement?.hasAttribute('data-expandable-ranks'))return;
const outer=document.createElement('div');outer.className='board-expand-ranks';outer.dataset.expandableRanks='';list.before(outer);outer.append(list);
list.id=list.id||`board-rank-list-${index}`;list.classList.add('board-rank-list');
diff --git a/frontend/src/board-skeleton.ts b/frontend/src/board-skeleton.ts
index ab39b5d19..b36335f24 100644
--- a/frontend/src/board-skeleton.ts
+++ b/frontend/src/board-skeleton.ts
@@ -8,7 +8,6 @@ const repeat = (html: string, count: number) => html.repeat(count);
const metrics = (labels: string[], className = 'metricstrip') => `<div class="${className}">${labels.map(label => `<div class="tastesummary"><span class="board-stat-label">${label}</span><b class="board-stat-value">${line('45%')}</b><small class="board-stat-footer">${line('60%')}</small></div>`).join('')}</div>`;
const tabs = (labels: string[], className = 'skeleton-tabs') => `<div class="${className}">${labels.map(label => `<span>${label}</span>`).join('')}</div>`;
const segments = (labels: string[], className: string) => `<div class="${className} skeleton-segments" data-board-segments="true">${labels.map((label,index) => `<span${index===0?' class="skeleton-segment-selected"':''}>${label}</span>`).join('')}</div>`;
-const radial = (title: string) => `<section class="board-radial-card"><header><span>${title}</span><b>${line()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${lines()}</div></section>`;
const panel = (title: string) => `<section class="insightpanel"><header>${title}</header><div class="insightpanelbody skeleton-lines">${repeat(lines(), 3)}</div></section>`;
const followControl = (label: string) => `<button class="fbtn" type="button" disabled>${label}</button>`;
const followToolbar = (table: boolean) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${line('100px')}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${icon('refresh-cw')}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${icon('layout-grid')}</label><label>${icon('table')}</label></div><span class="fmanagesort" data-collapse-field>${icon('sort')}${selectFieldHtml([['checked','检查时间']],'checked',{label:'关注列表排序',attr:'disabled'})}</span><button class="fbtn fmanagedir" disabled>${icon('arrow-down')}</button>${table?'':followControl(icon('chevron-up')+'<span data-collapse-label>全部收起</span>')}</div></div>`;
@@ -22,7 +21,7 @@ export function detailSkeletonHtml(): string {
export function boardPageSkeleton(path: string, options: {followLayout?: string} = {}): string {
let body = '';
if (path === '/stats') {
- body = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${line('38%')}</header>${metrics(['馆藏视频', '看过', '内容标签', '使用空间'])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${radial('网盘与本地')}${radial('媒体库')}</div></div></section>${panel('内容标签')}</div>`;
+ body = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${line('38%')}</header>${metrics(['馆藏视频', '看过', '内容标签', '使用空间'])}${panel('馆藏视频')}${panel('内容标签')}</div>`;
} else if (path === '/taste') {
body = `<div class="tastepage"><header class="tastehead">${segments(['浏览器记录', 'Peach 内部'], 'insightswitch')}${line('24%')}</header><div class="tastestate"></div>${metrics(['浏览记录', '口味维度', '浏览候选', '私有导出'], 'tastesummaries')}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${repeat(lines(), 4)}</div></section>${panel('口味分析')}<div class="board-activity-charts">${panel('浏览活动')}${panel('时间分布')}</div>${panel('标签')}</div>`;
} else if (path === '/follow-manage') {
diff --git a/frontend/src/islands.ts b/frontend/src/islands.ts
index c23161558..8c18c0727 100644
--- a/frontend/src/islands.ts
+++ b/frontend/src/islands.ts
@@ -17,7 +17,7 @@ export { boundedPreference, mountNumberSetting, syncNumberSetting } from './numb
export { statCardBody, rankedChart, radarChart, distributionChart, jobProgressHtml } from './board-metrics';
export { initBoardControls, syncBoardRange, wireExpandableRanks, wireGrowingCharts } from './board-controls';
export { creatorSankeyHtml, wireCreatorSankey } from './board-sankey';
-export { radialCardHtml, wireRadialCards, activityChartsHtml, wireActivityCharts } from './board-analytics';
+export { activityChartsHtml, wireActivityCharts } from './board-analytics';
export { sidebarSectionHtml, wireSidebarGroups, transitionTheme } from './sidebar-groups';
import type * as ReactBundle from '@peach/react';
@@ -44,6 +44,7 @@ export interface IslandContracts {
'quality-goals': ReactBundle.QualityGoalsProps;
configuration: ReactBundle.ConfigurationProps;
activity: ReactBundle.ActivityProps;
+ stats: ReactBundle.StatsProps;
}
export type IslandName = keyof IslandContracts;
@@ -62,6 +63,7 @@ const REGISTRY: { [N in IslandName]: Island } = {
'quality-goals': { react: 'quality-goals' },
configuration: { react: 'configuration' },
activity: { react: 'activity' },
+ stats: { react: 'stats' },
};
/** 已注册的 island 名字。遗留层与测试用它核对路由表,不必知道注册表结构。 */
diff --git a/frontend/src/react/boardui/ORIGIN.md b/frontend/src/react/boardui/ORIGIN.md
index 213ced414..2bbbc19f1 100644
--- a/frontend/src/react/boardui/ORIGIN.md
+++ b/frontend/src/react/boardui/ORIGIN.md
@@ -56,3 +56,7 @@
| 进度环 | 同上的 `Gauge`:SVG 两圈,`pathLength={100}` 把一圈长度钉成 100,画出来的那一段就是百分比 | 注册表里没有环形进度;`../components/progress.tsx` 那一份是横条,横幅那一行放不下 |
| 模态弹层 | `../avatar-picker/avatar-picker-page.tsx` 用 React Aria 的 `ModalOverlay` + `Modal` + `Dialog` 组合,遮罩取 `../styles.css` 的 `--color-scrim`(同旧样式表 `.geist-modal::backdrop` 的黑 60%) | 注册表里没有模态弹层,也就没有它的遮罩底色 |
| 候选网格 | 同上:一排四张 3:4 的候选,弹层宽度与格子比例取 `../styles.css` 的 `--container-avatar-picker` 与 `--aspect-avatar-choice` | 注册表里没有图片选择网格;这两档在工具类里没有对应档位,写成 `@theme` 而不是任意值 |
+| 空态里的去处 | `../components/empty-state.tsx` 的 `EmptyState` 收一个 `actions`,按钮与链接画在说明下面 | 上游没有空态组件;标题、说明和那个去处必须在同一个组件里,散到调用处就会各排各的 |
+| 读数兼页签 | `../stats/stats-page.tsx` 的四张读数卡是 React Aria 的 `Tabs`/`TabList`/`Tab`,选中态是一圈 `border-focus-ring` | `tabs` 条目是页面级导航的下划线页签,这里切的是同一页里的四层细节,而且页签本身要显示读数 |
+| 径向图 | `../stats/radial-card.tsx`:每段一圈 SVG,`pathLength={100}` 把一圈钉成 100,颜色只取 `chart-1`…`chart-6`,高亮是 React 状态 | 注册表里没有图表条目;`library-processing-notice.tsx` 的 `Gauge` 是单圈进度,排不下多段对比 |
+| 排行 | 同上页面的 `TagRanking`:两列的 `ol`,收起时露前十,展开键是一颗 `secondary` 按钮 | 注册表里没有排行榜;`table` 条目带表头与排序,这里一行只有名次、名字和一个数 |
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index 3b4be99b0..1d41e6686 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -116,6 +116,18 @@ export interface QualityGoalsProps {
srcBadge(location: string, cost: string): string;
}
+/** 统计页仍由遗留层提供的能力。都是纯函数或导航,页面不持有它们的状态。 */
+export interface StatsProps {
+ /** 标签键到界面上的名称(`web/js/tags.js` 的 `tagLabel`)。 */
+ tagLabel(key: string): string;
+ /** 点一个内容标签:回目录并按它筛选。整页换成目录由遗留壳做。 */
+ onTag(key: string): void;
+ /** 打开媒体文件夹设置。没有视频或没有存储来源时空态里的那个去处。 */
+ openMediaSettings(): void;
+ /** 这台机器能不能改配置。不能改时空态不给「添加媒体文件夹」。 */
+ configurable: boolean;
+}
+
/** 来源和凭证页只要遗留层的 Toast:保存与撤销是写操作,回执归全站那一份。 */
export interface ScrapingProps {
/** 写操作在服务端落地之后的过去时回执。 */
@@ -153,6 +165,7 @@ export interface ReactPages {
'library-processing': ReactPage<LibraryProcessingProps>;
'quality-goals': ReactPage<QualityGoalsProps>;
scraping: ReactPage<ScrapingProps>;
+ stats: ReactPage<StatsProps>;
}
export declare const pages: ReactPages;
diff --git a/frontend/src/react/components/empty-state.tsx b/frontend/src/react/components/empty-state.tsx
index 6ed5302f2..38e9506e2 100644
--- a/frontend/src/react/components/empty-state.tsx
+++ b/frontend/src/react/components/empty-state.tsx
@@ -6,12 +6,18 @@ 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 }) {
+export function EmptyState(
+ { icon: Icon, title, actions, children }:
+ { icon: Glyph; title: string; actions?: ReactNode; 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>
+ {/* 去处属于这一块,不摆到框外面:「还没有内容」和一个不知道属于谁的按钮分开放时,
+ 读者要先把两样东西连起来才知道按下去做什么。 */}
+ {actions ? <div className="mt-2 flex flex-wrap justify-center gap-2">{actions}</div> : null}
</div>
);
}
diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsx
index 0367406f8..16d139c01 100644
--- a/frontend/src/react/entry.tsx
+++ b/frontend/src/react/entry.tsx
@@ -21,6 +21,8 @@ import { ScrapingPage } from './scraping/scraping-page';
import { prefetchScraping } from './scraping/scraping';
import { prefetchConfiguration } from './settings/configuration';
import { ConfigurationPage } from './settings/configuration-page';
+import { prefetchStats } from './stats/stats';
+import { StatsPage } from './stats/stats-page';
/* Popover 这类弹出层由 React Aria 渲染到挂载容器外面。落在 `body` 上就出了 `.peach-react`
* 的作用域:token 读到的是 `board.css` 的值,Preflight 也管不到。所有 React 根的弹出层都进
@@ -78,4 +80,5 @@ export const pages: Bundle.ReactPages = {
prefetch: (_props, signal) => prefetchQualityGoals(signal), mount: mounter(QualityGoalsPage),
},
scraping: { prefetch: (_props, signal) => prefetchScraping(signal), mount: mounter(ScrapingPage) },
+ stats: { prefetch: (_props, signal) => prefetchStats(signal), mount: mounter(StatsPage) },
};
diff --git a/frontend/src/react/stats/radial-card.tsx b/frontend/src/react/stats/radial-card.tsx
new file mode 100644
index 000000000..b84bf9d0c
--- /dev/null
+++ b/frontend/src/react/stats/radial-card.tsx
@@ -0,0 +1,84 @@
+/* 库存的径向图:一段一圈,读数跟着指到的那一段走。
+ *
+ * 注册表里没有图表条目,环用 SVG 画:`pathLength={100}` 把一圈长度钉成 100,
+ * `stroke-dasharray` 写的那个数就是百分比本身,几何全走属性、不用内联样式。颜色只取
+ * BoardUI 的 `chart-*` 档,差异登记在 `../boardui/ORIGIN.md`。
+ *
+ * 高亮是 React 状态:指针进出与点选各管一件事——扫过去是看一眼,点下去是钉住。
+ * 过渡用 CSS,`web/css/01-base.css` 的全局规则在 reduced motion 下把它整个关掉。 */
+import { useState } from 'react';
+
+import { rings, type RadialSlice } from './stats';
+
+/** 六档图表色循环。类名写成整串,Tailwind 扫得到。 */
+const RING_STROKE = [
+ 'stroke-chart-1', 'stroke-chart-2', 'stroke-chart-3',
+ 'stroke-chart-4', 'stroke-chart-5', 'stroke-chart-6',
+];
+const TILE_SWATCH = [
+ 'bg-chart-1', 'bg-chart-2', 'bg-chart-3',
+ 'bg-chart-4', 'bg-chart-5', 'bg-chart-6',
+];
+
+export function RadialCard(
+ { title, rows, unit = '个视频' }: { title: string; rows: RadialSlice[]; unit?: string },
+) {
+ /* 钉住的那一段和指针扫过的那一段分开记:扫过去要能回到钉住的那一段,合成一个状态的话
+ 鼠标一离开就把用户点下的选择也擦了。 */
+ const [pinned, setPinned] = useState(-1);
+ const [hovered, setHovered] = useState(-1);
+ const slices = rows.filter((row) => Number.isFinite(row.value) && row.value >= 0);
+ if (!slices.length) return null;
+
+ const focus = hovered >= 0 ? hovered : pinned;
+ const total = slices.reduce((sum, row) => sum + row.value, 0);
+ const geometry = rings(slices.map((row) => row.value));
+ const shown = slices[focus];
+ const toggle = (index: number) => setPinned((at) => (at === index ? -1 : index));
+
+ return (
+ <section className="flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5">
+ <header className="flex flex-col gap-1">
+ <span className="text-caption-1-regular text-text-secondary">{shown ? shown.name : title}</span>
+ <p className="flex items-baseline gap-2">
+ <b className="text-title-1-medium tabular-nums text-text-primary">
+ {(shown ? shown.value : total).toLocaleString()}
+ </b>
+ <small className="text-caption-1-regular text-text-secondary">{unit}</small>
+ </p>
+ </header>
+ <svg viewBox="0 0 320 320" fill="none" role="img" aria-label={title}
+ className="block h-64 w-full" onPointerLeave={() => setHovered(-1)}>
+ {slices.map((row, index) => (
+ <g key={row.name} onPointerEnter={() => setHovered(index)} onClick={() => toggle(index)}>
+ <title>{`${row.name}:${row.value.toLocaleString()} ${unit}`}</title>
+ <circle cx="160" cy="160" r={geometry[index]!.radius} strokeWidth={geometry[index]!.width}
+ strokeLinecap="round" className="stroke-chart-track" />
+ <circle cx="160" cy="160" r={geometry[index]!.radius} strokeWidth={geometry[index]!.width}
+ strokeLinecap="round" pathLength={100} transform="rotate(-90 160 160)"
+ strokeDasharray={`${geometry[index]!.length} ${100 - geometry[index]!.length}`}
+ className={focus >= 0 && focus !== index
+ ? `cursor-pointer opacity-30 transition-opacity ${RING_STROKE[index % 6]}`
+ : `cursor-pointer transition-opacity ${RING_STROKE[index % 6]}`} />
+ </g>
+ ))}
+ </svg>
+ <div className="flex flex-wrap gap-2">
+ {slices.map((row, index) => (
+ <button key={row.name} type="button" aria-pressed={pinned === index}
+ onClick={() => toggle(index)}
+ onPointerEnter={() => setHovered(index)} onPointerLeave={() => setHovered(-1)}
+ onFocus={() => setHovered(index)} onBlur={() => setHovered(-1)}
+ className="flex min-w-0 grow basis-40 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-pressed:bg-background-primary-hover">
+ <span className="flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary">
+ <i aria-hidden className={`size-3 shrink-0 rounded-sm ${TILE_SWATCH[index % 6]}`} />
+ {row.name}
+ </span>
+ <b className="text-headline-medium tabular-nums text-text-primary">{row.value.toLocaleString()}</b>
+ {row.detail ? <small className="text-caption-1-regular text-text-secondary">{row.detail}</small> : null}
+ </button>
+ ))}
+ </div>
+ </section>
+ );
+}
diff --git a/frontend/src/react/stats/stats-page.tsx b/frontend/src/react/stats/stats-page.tsx
new file mode 100644
index 000000000..a320c5657
--- /dev/null
+++ b/frontend/src/react/stats/stats-page.tsx
@@ -0,0 +1,356 @@
+/* 统计页:账本此刻的样子。
+ *
+ * 一屏回答两层问题。上面四张卡既是读数也是页签——馆藏、看过、内容标签、使用空间,点哪张
+ * 就在下面展开哪一层的细节;再下面那块按维度排:内容标签排行、最近看过、标签来源。
+ * 四张卡同时当页签是因为这一页没有别的主动作,读数本身就是入口。
+ *
+ * 页签走 React Aria 的 `Tabs`:`role=tablist`/`tab`/`tabpanel`、左右方向键与游标式
+ * `tabindex` 都由它给,注册表里的 `tabs` 条目是页面级导航,不是这种同页切块。
+ * 体积与来源名共用 `/js/core.js` 的口径;标签的界面名称由遗留层的 `tagLabel` 递进来。 */
+import {
+ RiDatabase2Line, RiEyeLine, RiHardDrive2Line, RiHistoryLine, RiPriceTag3Line, RiVideoLine,
+} from '@remixicon/react';
+import { useQuery } from '@tanstack/react-query';
+import { useState, type ReactNode } from 'react';
+import { Tab, TabList, TabPanel, Tabs } from 'react-aria-components';
+
+import { fmtSize, LOC } from '@peach/legacy/core';
+
+import { Button } from '@/components/base/buttons/button';
+import { LinkButton } from '@/components/base/buttons/link-button';
+
+import { errorMessage } from '../../api';
+import type { StatsProps } from '../bundle';
+import { EmptyState } from '../components/empty-state';
+import { Note } from '../components/note';
+import { Page } from '../components/page';
+import { Progress } from '../components/progress';
+import { RadialCard } from './radial-card';
+import {
+ fetchStats, percentOf, playedFor, playedItemUrl, reachedShare, STATS_KEY, watchedShare, watchNote,
+ type Attribution, type RecentPlay, type StatsData, type StorageVolume, type TagSource, type TopTag,
+} from './stats';
+
+/** 收起时露这么多条排行。三十条一次铺开会把下面两个面板整个顶到屏外。 */
+const RANKING_PREVIEW = 10;
+
+const CARD = 'flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5';
+const PANEL_TAB = 'relative cursor-pointer py-3 text-body-2-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-text-primary';
+
+const NO_VIDEO_HINT = '添加媒体文件夹或关注来源,开始建立你的馆藏。';
+const NO_TAG_HINT = '补全资料或添加标签后,这里会显示馆藏中的内容标签。';
+const NO_WATCH_HINT = '开始播放后,这里会显示最近的真实观看证据。';
+const NO_TAG_SOURCE_HINT = '刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。';
+const NO_VOLUME_HINT = '添加媒体文件夹后,这里会显示存储空间。';
+
+/** 一格事实:一个名字配一个数。 */
+function Fact({ term, value }: { term: string; value: number }) {
+ return (
+ <div className="flex min-w-0 flex-col gap-1.5 rounded-xl bg-background-tertiary-default p-3">
+ <span className="text-caption-1-regular text-text-secondary">{term}</span>
+ <b className="text-title-2-medium tabular-nums text-text-primary">{value.toLocaleString()}</b>
+ </div>
+ );
+}
+
+/** 一条带进度的覆盖率:读数、占比与那条条共用同一对分子分母。 */
+function Coverage({ term, value, total }: { term: string; value: number; total: number }) {
+ return (
+ <div className="flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0">
+ <p className="flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary">
+ <span>{term}</span>
+ <b className="tabular-nums">
+ {value.toLocaleString()}
+ <span className="ml-1.5 text-caption-1-regular text-text-secondary">{percentOf(value, total)}%</span>
+ </b>
+ </p>
+ <Progress label={`${term}:${value.toLocaleString()} / ${total.toLocaleString()}`} value={value} max={Math.max(total, 1)} />
+ </div>
+ );
+}
+
+/** 详情那一格的左栏:一句分类、一个大数、一句它的单位。 */
+function Headline({ term, figure, unit }: { term: string; figure: string; unit: string }) {
+ return (
+ <div className="flex shrink-0 flex-col gap-0.5 border-b border-separator-border pb-5 md:w-64 md:border-b-0 md:border-r md:pr-6 md:pb-0">
+ <span className="text-caption-1-regular text-text-secondary">{term}</span>
+ <b className="text-display-4-medium tabular-nums text-text-primary">{figure}</b>
+ <span className="text-body-2-regular text-text-secondary">{unit}</span>
+ </div>
+ );
+}
+
+/** 详情那一格:左边一个读数,右边它的展开。 */
+function Detail({ headline, children }: { headline: ReactNode; children: ReactNode }) {
+ return (
+ <div className={`${CARD} md:flex-row md:gap-6`}>
+ {headline}
+ <div className="min-w-0 grow">{children}</div>
+ </div>
+ );
+}
+
+function InventoryDetail({ data, configurable, openMediaSettings }: { data: StatsData } & StatsProps) {
+ const videos = data.by_loc.reduce((sum, row) => sum + row.videos, 0);
+ if (!videos) {
+ return (
+ <EmptyState icon={RiVideoLine} title="还没有视频" actions={
+ <>
+ {configurable
+ ? <Button size="small" onClick={openMediaSettings}>添加媒体文件夹</Button>
+ : null}
+ <LinkButton href="/follow-manage?tab=add" size="small">添加关注</LinkButton>
+ </>
+ }>{NO_VIDEO_HINT}</EmptyState>
+ );
+ }
+ return (
+ <div className="inline-grid w-full gap-5 md:grid-cols-2">
+ <RadialCard title="网盘与本地" rows={data.by_loc.map((row) => (
+ { name: LOC[row.k] ?? row.k, value: row.videos, detail: fmtSize(row.bytes) }))} />
+ <RadialCard title="媒体库" rows={data.by_library.map((row) => (
+ { name: row.name, value: row.videos, detail: fmtSize(row.bytes) }))} />
+ </div>
+ );
+}
+
+function CoverageDetail({ attribution }: { attribution: Attribution }) {
+ const videos = attribution.videos;
+ return (
+ <div className="flex flex-col">
+ <Coverage term="有创作者" value={attribution.creator} total={videos} />
+ <Coverage term="有番号" value={attribution.code} total={videos} />
+ <Coverage term="有厂牌" value={attribution.studio} total={videos} />
+ <Coverage term="已抽帧" value={attribution.thumb} total={videos} />
+ <Coverage term="已探测时长" value={attribution.duration} total={videos} />
+ </div>
+ );
+}
+
+function VolumeRow({ volume }: { volume: StorageVolume }) {
+ const total = volume.total;
+ const used = volume.used ?? 0;
+ return (
+ <article className="flex min-w-0 flex-col gap-1.5">
+ <header className="flex items-baseline justify-between gap-3">
+ <h3 className="min-w-0 text-body-2-medium break-words text-text-primary">{volume.label}</h3>
+ <b className="text-body-2-medium whitespace-nowrap text-text-primary">
+ {total != null ? `${percentOf(used, total)}%` : (volume.online ? '容量未取得' : '离线')}
+ </b>
+ </header>
+ <small className="text-caption-1-regular break-words text-text-secondary">{volume.root ?? '未映射'}</small>
+ {total != null ? (
+ <>
+ <Progress label={`${volume.label}空间使用率`} value={used} max={Math.max(total, 1)} />
+ <p className="flex justify-between gap-3 text-caption-1-regular text-text-secondary">
+ <span>已用 <b className="font-normal text-text-primary">{fmtSize(used)}</b></span>
+ <span>可用 <b className="font-normal text-text-primary">{fmtSize(volume.free ?? 0)}</b></span>
+ </p>
+ </>
+ ) : null}
+ </article>
+ );
+}
+
+function StorageDetail({ volumes, configurable, openMediaSettings }: { volumes: StorageVolume[] } & StatsProps) {
+ if (!volumes.length) {
+ return (
+ <EmptyState icon={RiHardDrive2Line} title="还没有存储来源" actions={
+ configurable ? <Button size="small" onClick={openMediaSettings}>添加媒体文件夹</Button> : undefined
+ }>{NO_VOLUME_HINT}</EmptyState>
+ );
+ }
+ return (
+ <div className="flex flex-col gap-5">
+ {volumes.map((volume) => <VolumeRow key={`${volume.kind}:${volume.label}`} volume={volume} />)}
+ </div>
+ );
+}
+
+function TagRanking({ tags, tagLabel, onTag }: { tags: TopTag[] } & StatsProps) {
+ const [expanded, setExpanded] = useState(false);
+ if (!tags.length) {
+ return (
+ <EmptyState icon={RiPriceTag3Line} title="还没有内容标签"
+ actions={<LinkButton href="/data-cleanup" size="small">补全资料</LinkButton>}>{NO_TAG_HINT}</EmptyState>
+ );
+ }
+ const shown = expanded ? tags : tags.slice(0, RANKING_PREVIEW);
+ return (
+ <div className="flex flex-col gap-3">
+ <ol className="inline-grid w-full gap-1 sm:grid-cols-2">
+ {shown.map((tag, index) => (
+ <li key={tag.k} className="min-w-0">
+ <button type="button" onClick={() => onTag(tag.k)}
+ className="flex w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring">
+ <span className="w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary">{index + 1}</span>
+ <span className="min-w-0 grow text-body-2-regular break-words text-text-primary">{tagLabel(tag.k)}</span>
+ <b className="text-body-2-medium tabular-nums text-text-secondary">{tag.n.toLocaleString()}</b>
+ </button>
+ </li>
+ ))}
+ </ol>
+ {tags.length > RANKING_PREVIEW ? (
+ <div className="flex justify-center">
+ <Button variant="secondary" size="small" onClick={() => setExpanded(!expanded)}>
+ {expanded ? '收起排名' : '展开更多排名'}
+ </Button>
+ </div>
+ ) : null}
+ </div>
+ );
+}
+
+function RecentWatches({ rows }: { rows: RecentPlay[] }) {
+ if (!rows.length) {
+ return (
+ <EmptyState icon={RiHistoryLine} title="还没有观看记录"
+ actions={<LinkButton href="/" size="small">浏览馆藏</LinkButton>}>{NO_WATCH_HINT}</EmptyState>
+ );
+ }
+ return (
+ <div className="flex flex-col gap-5">
+ {rows.map((row) => {
+ const real = watchedShare(row);
+ return (
+ <article key={`${row.kind}:${row.id}`} className="flex flex-wrap items-center gap-x-6 gap-y-2">
+ <div className="min-w-0 grow basis-64">
+ <h3 className="min-w-0 text-body-2-medium text-text-primary">
+ <a href={playedItemUrl(row)} data-middle-truncate
+ className="block max-w-full overflow-hidden whitespace-nowrap hover:underline">{row.name}</a>
+ </h3>
+ <p className="flex flex-wrap gap-3 text-caption-1-regular text-text-secondary">
+ <span>{row.creator ?? ''}</span><span>{watchNote(row)}</span>
+ </p>
+ </div>
+ <div className="min-w-0 basis-40">
+ <Progress label={`真实观看 ${real.toFixed(0)}%`} value={real} />
+ <small className="mt-1.5 block text-caption-1-regular text-text-secondary">
+ {`真实 ${real.toFixed(0)}% · 到达 ${reachedShare(row).toFixed(0)}%`}
+ </small>
+ </div>
+ </article>
+ );
+ })}
+ </div>
+ );
+}
+
+function TagSources({ sources, videos }: { sources: TagSource[]; videos: number }) {
+ if (!sources.length) {
+ return (
+ <EmptyState icon={RiPriceTag3Line} title="还没有标签来源"
+ actions={<LinkButton href="/data-cleanup" size="small">补全资料</LinkButton>}>{NO_TAG_SOURCE_HINT}</EmptyState>
+ );
+ }
+ return (
+ <div className="inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2">
+ {sources.map((source) => (
+ <article key={source.k} className="flex min-w-0 flex-col gap-1.5">
+ <header className="flex items-baseline justify-between gap-3">
+ <h3 className="min-w-0 text-body-2-medium break-words text-text-primary">{source.k}</h3>
+ <b className="text-body-2-medium whitespace-nowrap text-text-primary">
+ {source.assets.toLocaleString()}
+ <small className="ml-1 text-caption-1-regular font-normal text-text-secondary">个视频</small>
+ </b>
+ </header>
+ <Progress label={`${source.k} 覆盖视频`} value={source.assets} max={Math.max(videos, 1)} />
+ <small className="text-caption-1-regular text-text-secondary">{source.n.toLocaleString()} 条标签</small>
+ </article>
+ ))}
+ </div>
+ );
+}
+
+/** 一张既是读数也是页签的卡。选中态是一圈实线,不靠加粗或换字色。 */
+function MetricTab(
+ { id, label, figure, detail, icon: Icon }:
+ { id: string; label: string; figure: string; detail: string; icon: typeof RiEyeLine },
+) {
+ return (
+ <Tab id={id}
+ className="flex min-w-0 cursor-pointer flex-col gap-3 rounded-2xl border border-separator-border p-4 outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-focus-ring">
+ <span className="flex min-w-0 items-center gap-2 text-body-2-regular text-text-secondary">
+ <Icon aria-hidden className="size-4 shrink-0" />{label}
+ </span>
+ <b className="text-title-1-medium tabular-nums text-text-primary">{figure}</b>
+ <small className="min-w-0 overflow-hidden text-caption-1-regular text-ellipsis whitespace-nowrap text-text-secondary">{detail}</small>
+ </Tab>
+ );
+}
+
+export function StatsPage(props: StatsProps) {
+ const stats = useQuery({ queryKey: STATS_KEY, queryFn: ({ signal }) => fetchStats(signal) });
+ const data = stats.data;
+ if (!data) {
+ return (
+ <Page>
+ <Note tone="error" title="读取失败">{stats.error ? errorMessage(stats.error) : '读取统计失败'}</Note>
+ </Page>
+ );
+ }
+ const consumption = data.consumption;
+ const storage = data.storage_summary;
+ const videos = data.by_loc.reduce((sum, row) => sum + row.videos, 0);
+ const bytes = data.by_loc.reduce((sum, row) => sum + row.bytes, 0);
+ const coverage = percentOf(data.tag_cov, data.attribution.videos);
+ return (
+ <Page>
+ <p className="text-caption-1-regular text-text-secondary">
+ {`账本当前快照 · ${videos.toLocaleString()} 个视频 · ${fmtSize(bytes)}`}
+ </p>
+ <Tabs className="flex flex-col gap-4">
+ <TabList aria-label="统计视图" className="inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4">
+ <MetricTab id="inventory" label="馆藏视频" icon={RiDatabase2Line}
+ figure={videos.toLocaleString()} detail={fmtSize(bytes)} />
+ <MetricTab id="viewing" label="看过" icon={RiEyeLine}
+ figure={consumption.played.toLocaleString()} detail={playedFor(consumption.play_seconds)} />
+ <MetricTab id="coverage" label="内容标签" icon={RiPriceTag3Line}
+ figure={`${coverage}%`}
+ detail={`${data.tag_cov.toLocaleString()} / ${data.attribution.videos.toLocaleString()}`} />
+ <MetricTab id="storage" label="使用空间" icon={RiHardDrive2Line}
+ figure={`${storage.online} 个卷`}
+ detail={storage.measured ? `已用 ${fmtSize(storage.used)}` : '容量未取得'} />
+ </TabList>
+ <TabPanel id="inventory"><InventoryDetail data={data} {...props} /></TabPanel>
+ <TabPanel id="viewing">
+ <Detail headline={<Headline term="观看" figure={consumption.played.toLocaleString()} unit="个作品有播放记录" />}>
+ <div className="inline-grid w-full gap-3 sm:grid-cols-2">
+ <Fact term="馆藏观看" value={consumption.library_played} />
+ <Fact term="在线直接观看" value={consumption.online_played} />
+ <Fact term="高潮计数" value={consumption.o_total} />
+ <Fact term="快进扫过" value={consumption.skimmed} />
+ <Fact term="明确不喜欢" value={consumption.dislike} />
+ <Fact term="看过了" value={consumption.seen} />
+ <Fact term="回收站" value={consumption.trash} />
+ </div>
+ </Detail>
+ </TabPanel>
+ <TabPanel id="coverage">
+ <Detail headline={<Headline term="内容标签覆盖" figure={`${coverage}%`}
+ unit={`${data.tag_cov.toLocaleString()} / ${data.attribution.videos.toLocaleString()}`} />}>
+ <CoverageDetail attribution={data.attribution} />
+ </Detail>
+ </TabPanel>
+ <TabPanel id="storage">
+ <Detail headline={<Headline term="使用空间" figure={String(storage.measured)} unit="个卷已取得容量" />}>
+ <StorageDetail volumes={data.storage_volumes} {...props} />
+ </Detail>
+ </TabPanel>
+ </Tabs>
+ <Tabs className="flex flex-col rounded-2xl border border-separator-border">
+ <TabList aria-label="统计维度"
+ className="flex gap-6 overflow-x-auto border-b border-separator-border px-4">
+ <Tab id="tags" className={PANEL_TAB}>内容标签</Tab>
+ <Tab id="recent" className={PANEL_TAB}>最近看过</Tab>
+ <Tab id="sources" className={PANEL_TAB}>标签来源</Tab>
+ </TabList>
+ <TabPanel id="tags" className="p-4"><TagRanking tags={data.top_tags} {...props} /></TabPanel>
+ <TabPanel id="recent" className="p-4"><RecentWatches rows={data.recent} /></TabPanel>
+ <TabPanel id="sources" className="p-4">
+ <TagSources sources={data.tag_source} videos={data.attribution.videos} />
+ </TabPanel>
+ </Tabs>
+ </Page>
+ );
+}
diff --git a/frontend/src/react/stats/stats.ts b/frontend/src/react/stats/stats.ts
new file mode 100644
index 000000000..8d410a1e0
--- /dev/null
+++ b/frontend/src/react/stats/stats.ts
@@ -0,0 +1,123 @@
+/* 统计页的数据契约与折算:`/api/stats` 一次请求供整页使用。
+ *
+ * 端点在 `frontend/src` 里只在这里声明一次(`tests/test_frontend_build.py` 盯着)。
+ * 这一页是账本当前的快照,没有后台任务也不轮询:整页只有一个 `queryKey`,一屏里的四个
+ * 指标、下面那三个面板读的都是同一份数,分开取就会出现这一格是新的、那一格是旧的。
+ *
+ * 体积走 `/js/core.js` 的 `fmtSize`,与馆藏、重复项、高清版同一套口径;只有播放时长和
+ * 那几条百分比是这一页自己的折算,写成纯函数放在这里,由 vitest 直接验。 */
+import { apiGet } from '../../api';
+import { queryClient } from '../query';
+
+export const STATS_URL = '/api/stats';
+/** 整页共用这一个键。 */
+export const STATS_KEY = ['stats'] as const;
+
+/** 按来源分的库存。`k` 是 `local`/`115`/`pikpak`/`online` 这些来源代号。 */
+export interface LocationCount { k: string; n: number; bytes: number; videos: number }
+
+/** 按媒体库分的库存。`name` 是用户给这个库起的名字。 */
+export interface LibraryCount { k: string; name: string; icon: string; videos: number; bytes: number }
+
+/** 视频的资料归属:分母是 `videos`,其余几项是已经有那一项的条数。 */
+export interface Attribution {
+ videos: number; creator: number; code: number; studio: number; thumb: number; duration: number;
+}
+
+/** 一个标签来源覆盖了多少条标签、多少个视频。 */
+export interface TagSource { k: string; n: number; assets: number }
+
+export interface TopTag { k: string; n: number; cat: string }
+
+export interface Consumption {
+ played: number; library_played: number; online_played: number; play_seconds: number;
+ o_total: number; dislike: number; seen: number; trash: number; skimmed: number;
+}
+
+/** 最近一条播放记录。馆藏与在线追更两条来源合并后按时间排,`kind` 决定点进去去哪。 */
+export interface RecentPlay {
+ id: number; name: string; creator: string | null; play_seconds: number;
+ duration: number | null; max_reached: number | null; o_count: number; kind: string;
+}
+
+/** 一个存储卷。离线或取不到容量时 `total` 是 null,此时不画使用率。 */
+export interface StorageVolume {
+ kind: string; label: string; root: string | null; online: boolean;
+ free: number | null; used: number | null; total: number | null;
+}
+
+export interface StorageSummary {
+ volumes: number; online: number; measured: number; free: number; used: number; total: number;
+}
+
+/** `/api/stats` 的响应。字段与 `web_stats.q_stats` 对齐。 */
+export interface StatsData {
+ by_loc: LocationCount[];
+ by_library: LibraryCount[];
+ attribution: Attribution;
+ tag_source: TagSource[];
+ tag_cov: number;
+ top_tags: TopTag[];
+ consumption: Consumption;
+ recent: RecentPlay[];
+ storage_volumes: StorageVolume[];
+ storage_summary: StorageSummary;
+}
+
+export const fetchStats = (signal?: AbortSignal) => apiGet<StatsData>(STATS_URL, signal);
+
+/** 首屏:取完数才画。
+ *
+ * 不给 `staleTime`。这一页读的是账本此刻的样子,每进一次都该重新问一遍;缓存住的话,
+ * 扫完一批回来看到的还是进页面之前那个数。 */
+export async function prefetchStats(signal: AbortSignal): Promise<void> {
+ await queryClient.fetchQuery({ queryKey: STATS_KEY, queryFn: () => fetchStats(signal) });
+}
+
+/** 整数百分比。分母是 0 时读 0,不是 NaN。 */
+export const percentOf = (value: number, total: number): number =>
+ total ? Math.round(value / total * 100) : 0;
+
+/** 累计播放时长:够一小时读小时,不够读分钟。 */
+export const playedFor = (seconds: number): string =>
+ seconds >= 3600 ? `${(seconds / 3600).toFixed(1)} 小时` : `${Math.round(seconds / 60)} 分钟`;
+
+/** 真实看过的比例:播放秒数占时长,封顶 100%。时长未取得时读 0。 */
+export const watchedShare = (row: RecentPlay): number =>
+ row.duration ? Math.min(row.play_seconds / row.duration, 1) * 100 : 0;
+
+/** 到达过的最远位置,百分比。 */
+export const reachedShare = (row: RecentPlay): number => (row.max_reached || 0) * 100;
+
+/** 这一条读出来是哪一种观看。
+ *
+ * 真实看过的比例比到达位置低一大截,说明中间大段是拖过去的——那和从头看到尾是两回事,
+ * 一行里只显示一个百分比的话读者分不出来。 */
+export const watchNote = (row: RecentPlay): string => {
+ if (row.kind === 'online') return '在线直接观看';
+ if (watchedShare(row) < reachedShare(row) - 25) return '快进扫过';
+ return row.o_count ? `高潮 ${row.o_count}` : '正常观看';
+};
+
+/** 点进去的去处。在线追更的条目不在馆藏里,走它自己那条详情路由。 */
+export const playedItemUrl = (row: RecentPlay): string =>
+ `${row.kind === 'online' ? '/follow/item/' : '/item/'}${row.id}`;
+
+/** 径向图里的一段。 */
+export interface RadialSlice { name: string; value: number; detail: string }
+
+/** 一段环的几何。半径由外往里排,`length` 已经是百分比(`pathLength=100`)。 */
+export interface Ring { radius: number; width: number; length: number }
+
+/** 环的几何:最长那段留一成余量,环之间等距,线宽跟着间距走。
+ *
+ * 满圈留余量是为了让最大的那一段看得出是「最多」而不是「全部」;段数多时间距压到
+ * 110/段数,最内圈才不会缩进圆心。 */
+export function rings(values: number[]): Ring[] {
+ const ceiling = Math.max(1, ...values) * 1.1;
+ const step = Math.min(22, 110 / Math.max(1, values.length));
+ const width = Math.min(15, step * 0.68);
+ return values.map((value, index) => ({
+ radius: 32 + index * step, width, length: value / ceiling * 100,
+ }));
+}
diff --git a/frontend/test/board-analytics.test.ts b/frontend/test/board-analytics.test.ts
index 9eb8ba2cb..9ba7fad94 100644
--- a/frontend/test/board-analytics.test.ts
+++ b/frontend/test/board-analytics.test.ts
@@ -1,22 +1,7 @@
-import { describe,it,expect,vi } from 'vitest';
-import { radialCardHtml,wireRadialCards,activityChartsHtml,wireActivityCharts } from '../src/board-analytics';
+import { describe,it,expect } from 'vitest';
+import { activityChartsHtml,wireActivityCharts } from '../src/board-analytics';
-describe('统计与口味交互图表',()=>{
- it('环形图保留零读数、排除无效值并转义库名',()=>{
- document.body.innerHTML=radialCardHtml([{name:'<库>',value:4},{name:'空库',value:0},{name:'错误',value:NaN}],'媒体库');
- expect(document.querySelectorAll('[data-radial-tile]')).toHaveLength(2);
- expect(document.querySelector('[data-radial-tile]')?.textContent).toContain('<库>');
- expect(document.querySelector('[data-radial-total]')?.getAttribute('data-radial-total')).toBe('4');
- });
- it('底部读数与对应圆环双向选择,重复点击可取消',()=>{
- vi.stubGlobal('matchMedia',()=>({matches:true}));
- document.body.innerHTML=radialCardHtml([{name:'本地',value:4},{name:'网盘',value:8}],'来源');
- wireRadialCards(document);
- const tile=document.querySelector<HTMLButtonElement>('[data-radial-tile="1"]')!,ring=document.querySelector('[data-radial-ring="1"]')!;
- tile.click();expect(tile.getAttribute('aria-pressed')).toBe('true');expect(ring.getAttribute('aria-pressed')).toBe('true');
- ring.dispatchEvent(new KeyboardEvent('keydown',{key:'Enter'}));expect(tile.getAttribute('aria-pressed')).toBe('false');
- vi.unstubAllGlobals();
- });
+describe('口味页交互图表',()=>{
it('热图使用真实读数,填充零值并排除非法坐标',()=>{
document.body.innerHTML=activityChartsHtml({days:[{date:'2026-09-08',count:3}],hours:[{weekday:1,hour:12,count:3},{weekday:10,hour:99,count:200}]});
expect(document.querySelectorAll('.board-hour-grid button')).toHaveLength(168);
diff --git a/frontend/test/board-skeleton.test.ts b/frontend/test/board-skeleton.test.ts
index 9544b0ae4..e342ead98 100644
--- a/frontend/test/board-skeleton.test.ts
+++ b/frontend/test/board-skeleton.test.ts
@@ -25,7 +25,7 @@ describe('Board 页面骨架', () => {
expect(boardPageSkeleton('/item/5')).toBe('');
});
it.each([
- ['/stats', '.board-inventory-charts > .board-radial-card', 2],
+ ['/stats', '.insightpanel > .insightpanelbody', 2],
['/activity', '.activitysection', 3],
['/duplicates', '.dupgroup .duprow', 4],
['/quality-goals', '.qualityitem > .qualitycover', 6],
diff --git a/frontend/test/islands.test.ts b/frontend/test/islands.test.ts
index 88fdbc79d..5f2d7c59c 100644
--- a/frontend/test/islands.test.ts
+++ b/frontend/test/islands.test.ts
@@ -40,7 +40,8 @@ async function until(ok: () => boolean, what: string): Promise<void> {
describe('island 注册表', () => {
it('登记的名字就是遗留路由能挂载的名字', () => {
expect(islandNames()).toEqual([
- 'avatar-picker', 'library-processing', 'scraping', 'quality-goals', 'configuration', 'activity']);
+ 'avatar-picker', 'library-processing', 'scraping', 'quality-goals', 'configuration', 'activity',
+ 'stats']);
});
it('未注册的名字立刻失败,不是静默什么都不画', async () => {
diff --git a/frontend/test/react/stats.test.tsx b/frontend/test/react/stats.test.tsx
new file mode 100644
index 000000000..1ecb04bcb
--- /dev/null
+++ b/frontend/test/react/stats.test.tsx
@@ -0,0 +1,227 @@
+/* 统计页的行为:一屏读的是不是同一份数、四张卡当页签切到哪一层、几个空态去哪、
+ * 点内容标签交回给壳的是哪个键。
+ *
+ * 外观(环的粗细、卡片间距)是设计决定,由 `frontend/e2e/design.test.ts` 读
+ * `getComputedStyle` 断言;这里只看结构、文字与请求。 */
+import { notifyManager, QueryClientProvider } from '@tanstack/react-query';
+import { afterEach, expect, it, vi } from 'vitest';
+
+import { queryClient } from '../../src/react/query';
+import { prefetchStats, rings, STATS_URL, watchNote, type StatsData } from '../../src/react/stats/stats';
+import { StatsPage } from '../../src/react/stats/stats-page';
+
+import { buttonNamed, click, mount, mountRoot } from './render';
+
+// 客户端是模块级的单例(所有 React 根共用一个),用例之间不清就互相喂数据。
+afterEach(() => queryClient.clear());
+
+/* Query 派发更新用的是它自己抓住的那个真 `setTimeout(0)`,假时钟推不动它:推完时钟
+ 断言到的还是上一帧的 DOM。用例里改成当场派发。 */
+notifyManager.setScheduler((notify) => notify());
+
+const payload = (overrides: Partial<StatsData> = {}): StatsData => ({
+ by_loc: [{ k: 'local', n: 3, bytes: 3221225472, videos: 3 },
+ { k: '115', n: 1, bytes: 1073741824, videos: 1 }],
+ by_library: [{ k: 'main', name: '主库', icon: 'film', videos: 4, bytes: 4294967296 }],
+ attribution: { videos: 4, creator: 3, code: 2, studio: 1, thumb: 4, duration: 4 },
+ tag_source: [{ k: 'javdb', n: 12, assets: 3 }],
+ tag_cov: 2,
+ top_tags: [{ k: 'tag:a', n: 9, cat: 'genre' }, { k: 'tag:b', n: 4, cat: 'genre' }],
+ consumption: {
+ played: 2, library_played: 1, online_played: 1, play_seconds: 7200,
+ o_total: 5, dislike: 1, seen: 2, trash: 0, skimmed: 1,
+ },
+ recent: [{
+ id: 42, name: 'one.mp4', creator: '甲', play_seconds: 600,
+ duration: 1200, max_reached: 0.9, o_count: 0, kind: 'library',
+ }],
+ storage_volumes: [{
+ kind: 'media', label: 'R:', root: 'R:\\media', online: true,
+ free: 1073741824, used: 3221225472, total: 4294967296,
+ }],
+ storage_summary: { volumes: 1, online: 1, measured: 1, free: 1073741824, used: 3221225472, total: 4294967296 },
+ ...overrides,
+});
+
+/** 遗留层交出来的那几个助手,换成可辨认的最小实现。 */
+const legacyProps = () => ({
+ tagLabel: (key: string) => `标签 ${key}`,
+ onTag: vi.fn<(key: string) => void>(),
+ openMediaSettings: vi.fn<() => void>(),
+ configurable: true,
+});
+
+/** 依次回这几份数据,最后一份之后一直回它。`null` 那一份回 500。 */
+function serve(...responses: (StatsData | 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;
+}
+
+/** 走完真实的首屏路径:先 prefetch 落进缓存,再挂载。 */
+async function open(data: StatsData | null = payload(), props = legacyProps()) {
+ const fetcher = serve(data);
+ await prefetchStats(new AbortController().signal).catch(() => {});
+ const mounted = await mountRoot(
+ <QueryClientProvider client={queryClient}><StatsPage {...props} /></QueryClientProvider>);
+ return { fetcher, props, ...mounted };
+}
+
+const tabNamed = (root: ParentNode, name: string) =>
+ [...root.querySelectorAll<HTMLElement>('[role=tab]')].find((tab) => tab.textContent?.includes(name)) ?? null;
+
+it('整页一个请求:四张卡和下面三个面板读的是同一份快照', async () => {
+ const { fetcher, host } = await open();
+ expect(fetcher).toHaveBeenCalledTimes(1);
+ expect(fetcher.mock.calls[0]?.[0]).toBe(STATS_URL);
+ expect(host.querySelectorAll('[role=tablist]')).toHaveLength(2);
+ expect([...host.querySelectorAll('[role=tablist]')[0]!.querySelectorAll('[role=tab]')]
+ .map((tab) => tab.querySelector('b')?.textContent))
+ .toEqual(['4', '2', '50%', '1 个卷']);
+});
+
+it('抬头那一句用遗留层同一套体积口径', async () => {
+ const { host } = await open();
+ expect(host.querySelector('p')?.textContent).toBe('账本当前快照 · 4 个视频 · 4.0 GB');
+});
+
+it('四张卡就是页签:点「看过」换到看过那一层,其余的收起来', async () => {
+ const { host } = await open();
+ await click(tabNamed(host, '看过'));
+ expect(tabNamed(host, '看过')?.getAttribute('aria-selected')).toBe('true');
+ expect(tabNamed(host, '馆藏视频')?.getAttribute('aria-selected')).toBe('false');
+ const panel = host.querySelector('[role=tabpanel]')!;
+ expect(panel.textContent).toContain('个作品有播放记录');
+ expect(panel.textContent).toContain('高潮计数');
+ expect(panel.textContent).not.toContain('已抽帧');
+});
+
+it('库存那一层每个来源一段环,读数用来源的界面名称', async () => {
+ const { host } = await open();
+ const charts = host.querySelectorAll('svg[role=img]');
+ expect([...charts].map((chart) => chart.getAttribute('aria-label'))).toEqual(['网盘与本地', '媒体库']);
+ expect([...charts[0]!.querySelectorAll('title')].map((node) => node.textContent))
+ .toEqual(['本地:3 个视频', '115:1 个视频']);
+});
+
+it('环写的是百分比本身:一圈钉成 100,最长那段留一成余量', async () => {
+ const geometry = rings([10, 5]);
+ expect(geometry[0]!.length).toBeCloseTo(100 / 1.1);
+ expect(geometry[1]!.length).toBeCloseTo(50 / 1.1);
+ const { host } = await open();
+ const value = host.querySelectorAll('svg[role=img]')[0]!.querySelectorAll('circle')[1]!;
+ expect(value.getAttribute('pathLength')).toBe('100');
+});
+
+it('点图例把那一段钉住,读数跟着换;再点一次放开', async () => {
+ const { host } = await open();
+ const tile = buttonNamed('115', host) ?? [...host.querySelectorAll('button')]
+ .find((button) => button.textContent?.startsWith('115'))!;
+ await click(tile);
+ expect(tile.getAttribute('aria-pressed')).toBe('true');
+ expect(host.querySelector('svg[role=img]')!.closest('section')!.textContent).toContain('115');
+ await click(tile);
+ expect(tile.getAttribute('aria-pressed')).toBe('false');
+});
+
+it('覆盖率那一层的每条进度用同一对分子分母,不另算一遍', async () => {
+ const { host } = await open();
+ await click(tabNamed(host, '内容标签'));
+ const bars = [...host.querySelectorAll('[role=progressbar]')];
+ expect(bars.map((bar) => bar.getAttribute('aria-label'))).toEqual([
+ '有创作者:3 / 4', '有番号:2 / 4', '有厂牌:1 / 4', '已抽帧:4 / 4', '已探测时长:4 / 4',
+ ]);
+});
+
+it('取不到容量的卷不画使用率,只说取不到', async () => {
+ const { host } = await open(payload({
+ storage_volumes: [{ kind: 'media', label: 'B:', root: null, online: true, free: null, used: null, total: null }],
+ storage_summary: { volumes: 1, online: 1, measured: 0, free: 0, used: 0, total: 0 },
+ }));
+ await click(tabNamed(host, '使用空间'));
+ const panel = host.querySelectorAll('[role=tabpanel]')[0]!;
+ expect(panel.textContent).toContain('容量未取得');
+ expect(panel.textContent).toContain('未映射');
+ expect(panel.querySelector('[role=progressbar]')).toBeNull();
+});
+
+it('排行收起时只露前十,展开之后全给', async () => {
+ const tags = Array.from({ length: 12 }, (_, index) => ({ k: `tag:${index}`, n: 12 - index, cat: 'genre' }));
+ const { host } = await open(payload({ top_tags: tags }));
+ expect(host.querySelectorAll('ol li')).toHaveLength(10);
+ await click(buttonNamed('展开更多排名', host));
+ expect(host.querySelectorAll('ol li')).toHaveLength(12);
+ await click(buttonNamed('收起排名', host));
+ expect(host.querySelectorAll('ol li')).toHaveLength(10);
+});
+
+it('点一个内容标签把键交回给壳,页面自己不跳转', async () => {
+ const { host, props } = await open();
+ await click(host.querySelector('ol li button'));
+ expect(props.onTag.mock.calls).toEqual([['tag:a']]);
+});
+
+it('快进扫过和正常看完是两回事,一行里分得出来', async () => {
+ expect(watchNote({
+ id: 1, name: '', creator: null, play_seconds: 100, duration: 1000, max_reached: 0.9, o_count: 0, kind: 'library',
+ })).toBe('快进扫过');
+ const { host } = await open();
+ await click(tabNamed(host, '最近看过'));
+ const entry = host.querySelector('[role=tabpanel] article')!;
+ expect(entry.querySelector('a')?.getAttribute('href')).toBe('/item/42');
+ expect(entry.textContent).toContain('真实 50% · 到达 90%');
+});
+
+it('一个视频都没有时给空态,能改配置就给去添加媒体文件夹', async () => {
+ const { host, props } = await open(payload({ by_loc: [], by_library: [] }));
+ expect(host.querySelector('h3')?.textContent).toBe('还没有视频');
+ expect(host.querySelector('svg[role=img]')).toBeNull();
+ await click(buttonNamed('添加媒体文件夹', host));
+ expect(props.openMediaSettings).toHaveBeenCalledTimes(1);
+});
+
+it('这台机器不能改配置时空态不给那个按钮,只留能走的那条路', async () => {
+ const props = { ...legacyProps(), configurable: false };
+ const { host } = await open(payload({ by_loc: [], by_library: [] }), props);
+ expect(buttonNamed('添加媒体文件夹', host)).toBeNull();
+ expect(host.querySelector('a')?.textContent).toBe('添加关注');
+});
+
+it('首屏取数就失败时只剩一条错误,不画空看板', async () => {
+ const { host } = await open(null);
+ const alert = host.querySelector('[role=alert]');
+ // 文案走遗留层的 `requestErrorMessage`:服务端给了中文原因就用它,页面不另说一遍。
+ expect(alert?.textContent).toContain('读取失败');
+ expect(alert?.textContent).toContain('账本当前只能浏览');
+ expect(host.querySelector('[role=tablist]')).toBeNull();
+});
+
+it('重新进这一页会重取:这一页的刷新就是重新进来一次,不吃缓存', async () => {
+ const first = await open();
+ expect(first.fetcher).toHaveBeenCalledTimes(1);
+ await first.unmount();
+
+ // 遗留层再次进入这一页:`mountIsland` 先 prefetch 再挂载。
+ await prefetchStats(new AbortController().signal);
+ expect(first.fetcher).toHaveBeenCalledTimes(2);
+ const host = await mount(
+ <QueryClientProvider client={queryClient}><StatsPage {...legacyProps()} /></QueryClientProvider>);
+ expect(first.fetcher).toHaveBeenCalledTimes(2);
+ expect(host.textContent).toContain('账本当前快照');
+});
+
+it('卸载之后不再敲库:这一页没有轮询,也不该留下别的定时器', async () => {
+ vi.useFakeTimers();
+ const { fetcher, unmount } = await open();
+ expect(fetcher).toHaveBeenCalledTimes(1);
+ await unmount();
+ await vi.advanceTimersByTimeAsync(60_000);
+ expect(fetcher, '卸载之后还在取数').toHaveBeenCalledTimes(1);
+});
diff --git a/tests/test_frontend_build.py b/tests/test_frontend_build.py
index 0850cdeec..086ea89a2 100644
--- a/tests/test_frontend_build.py
+++ b/tests/test_frontend_build.py
@@ -387,6 +387,63 @@ class LibraryProcessingEndpointTests(unittest.TestCase):
self.assertEqual(len(routed), 1, f"/api/library-processing 的路由声明在 {routed}")
+class StatsEndpointTests(unittest.TestCase):
+ """统计页从 `web/app.js` 搬过来时不能把语义契约丢在原地。
+
+ `tests/test_web_ui.py` 曾对页面源断言这些标记:四张读数卡兼页签、三个空态、体积与
+ 来源名走遗留口径、观看那一行中间省略。行为由 `frontend/test/react/stats.test.tsx`
+ 守,这里守的是「搬家之后这些标记还在同一处」。
+ """
+
+ STATS = FRONTEND / "src" / "react" / "stats"
+
+ def setUp(self):
+ self.source = "\n".join(
+ (self.STATS / name).read_text(encoding="utf-8")
+ for name in ("stats.ts", "stats-page.tsx", "radial-card.tsx"))
+
+ def test_titles_still_use_middle_truncation(self):
+ """最近看过那一行是文件名,差别常在尾部,末尾省略会把要看的东西切掉。"""
+ self.assertIn("data-middle-truncate", self.source)
+
+ def test_empty_and_error_states_reuse_the_shared_components(self):
+ """三个空态与失败态走 `src/react/components/` 的组合件,不是一行灰字。"""
+ self.assertIn("<Note", self.source)
+ for title in ("还没有视频", "还没有内容标签", "还没有观看记录",
+ "还没有标签来源", "还没有存储来源"):
+ self.assertIn(title, self.source)
+ self.assertEqual(self.source.count("<EmptyState"), 5)
+
+ def test_readings_reuse_the_legacy_formatters(self):
+ """体积与来源名共用遗留口径,不在页面里再写一套。"""
+ self.assertIn("from '@peach/legacy/core'", self.source)
+ for helper in ("fmtSize(", "LOC["):
+ self.assertIn(helper, self.source)
+
+ def test_the_four_readings_are_the_tabs(self):
+ """四张读数卡本身就是页签:这一页没有别的主动作,读数就是入口。"""
+ self.assertIn("react-aria-components", self.source)
+ self.assertEqual(self.source.count("<MetricTab"), 4)
+
+ def test_ring_geometry_is_a_percentage_of_one_turn(self):
+ """一圈钉成 100,`stroke-dasharray` 写的那个数就是百分比本身。"""
+ self.assertIn("pathLength={100}", self.source)
+
+ def test_the_endpoint_is_declared_once(self):
+ """端点在前端只能有一个声明处,就是这一页的数据模块。"""
+ sources = sorted(path for path in (FRONTEND / "src").rglob("*.ts*"))
+ declared = [path for path in sources
+ if "'/api/stats'" in path.read_text(encoding="utf-8")]
+ self.assertEqual(declared, [self.STATS / "stats.ts"],
+ f"端点声明在 {[path.name for path in declared]}")
+ keyed = [path.name for path in sources
+ if "STATS_KEY = [" in path.read_text(encoding="utf-8")]
+ self.assertEqual(keyed, ["stats.ts"], f"queryKey 声明在 {keyed}")
+ routed = [path.name for path in sorted((ROOT / "src" / "peach").glob("web_*.py"))
+ if '"/api/stats"' in path.read_text(encoding="utf-8")]
+ self.assertEqual(len(routed), 1, f"/api/stats 的路由声明在 {routed}")
+
+
class ConfigurationEndpointTests(unittest.TestCase):
"""整页和各分区读同一条 `/api/configuration`,两份产物各打包一份这个模块。"""
diff --git a/tests/test_metadata_library.py b/tests/test_metadata_library.py
index 46ebf0a65..e6ba8100f 100644
--- a/tests/test_metadata_library.py
+++ b/tests/test_metadata_library.py
@@ -624,9 +624,6 @@ class LibraryNfoTests(unittest.TestCase):
self.assertIn('data-srcfilter-config=', source)
self.assertNotIn("if(!providers.length){mount.innerHTML='';return}", source)
self.assertIn("needsAttention?' open':''", source)
- self.assertIn('还没有内容标签', source)
- self.assertIn('还没有存储来源', source)
- self.assertIn("catalogEmptyHtml({configurable:runtimeConfigurable})}</div>", source)
self.assertIn("unmountIsland($('#libraryProcessingNotice'))", source)
self.assertIn("mode:'notice'", source)
configuration = (root / 'frontend/src/react/settings/configuration-page.tsx').read_text(encoding='utf-8')
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index ed8600c95..9f15415b1 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -2997,17 +2997,6 @@ class WebUiSourceTests(unittest.TestCase):
):
self.assertPageContains(rule, f"{group} 的未选中基态必须是 --muted")
- def test_insight_lists_show_real_values_links_and_empty_states(self):
- """观看、存储和来源以对应结构显示真实数值,缺数据时显示空态。"""
- self.assertPageContains('class="board-volume-values"')
- self.assertPageContains('class="board-source-list"')
- # 空态渲染在表格外面:留一张只有列头的空表等于让人对着两个列名找不存在的行。
- self.assertPageContains('class="board-watch-history"')
- self.assertPageContains("emptyStateHtml('history','还没有观看记录'")
- self.assertPageContains("emptyStateHtml('tags','还没有标签来源'")
- # 数字列 tabular numerals,各行数位对齐才好跨行比较。
- self.assertPageContains('data-middle-truncate>${esc(row.name)}</a>')
-
def test_loading_state_only_covers_the_count_and_leaves_the_filter_bar_in_place(self):
"""骨架只盖会变的计数,筛选条照常画成最终样子并接上事件。
@@ -3249,7 +3238,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("@media(max-width:640px){.insighttoolbar,.tastehead{align-items:stretch}")
# 下限是照这两行的字号算的,字号变了下限也得跟着重算。
self.assertPageContains(
- ".metricstrip b,.tastesummary>b{font-size:var(--fs-2xl);line-height:1.15;")
+ ".tastesummary>b{font-size:var(--fs-2xl);line-height:1.15;")
self.assertPageContains("padding:14px 16px;")
def test_skeleton_slots_are_counted_from_the_container_instead_of_a_fixed_number(self):
@@ -5149,7 +5138,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(".tasteranks-tags{grid-template-columns:repeat(4")
self.assertPageContains(".tasterank{width:100%;min-width:0;min-height:58px")
self.assertPageContains("@media(max-width:640px){.insighttoolbar,.tastehead")
- self.assertPageContains(".insightdetailbody,.tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}")
+ self.assertPageContains(".tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}")
self.assertPageContains("data-taste-dimension-panel=\"${source}:${key}\"")
self.assertPageContains("class=\"tasterank${kind==='tag'?' tasterank-tag':''}")
self.assertPageContains("grid-template-columns:32px minmax(0,1fr) 18px")
@@ -5164,7 +5153,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(".tastesources>header{min-height:0;padding-block:14px}")
self.assertPageContains(".tastesources .insightpanelbody{padding:16px}")
self.assertPageContains(".tastesource{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)}")
- self.assertPageContains('class="board-watch-history"')
self.assertPageContains("tasteAnalysisSection(d.analysis)")
self.assertPageContains('<section class="insightpanel tasteleads">')
self.assertPageContains("<h3>口味总结</h3>")
@@ -5178,26 +5166,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(".tastelead:hover{background:color-mix(in srgb,var(--inset) 94%,var(--ink))}")
self.assertPageLacks(".tasteanalysisbody")
- def test_stats_use_analytics_panels_and_real_determinate_progress(self):
- self.assertPageContains('class="metricstrip" role="tablist" aria-label="统计视图"')
- self.assertPageContains('role="tab" data-stats-metric="${key}"')
- self.assertPageContains('role="tabpanel" data-stats-detail="inventory"')
- self.assertPageContains('class="insighttabs" role="tablist" aria-label="统计维度"')
- self.assertPageContains('data-stats-tab="tags" aria-selected="true"')
- self.assertPageContains('data-stats-panel="recent" hidden')
- self.assertPageContains("panel.hidden=panel.dataset.statsDetail!==button.dataset.statsMetric")
- self.assertPageContains('role="progressbar" aria-label="${esc(label)}"')
- self.assertPageContains('aria-valuemin="0" aria-valuemax="${ceiling}" aria-valuenow="${current}"')
- self.assertPageContains(".statmetric{padding:3px 0 12px;border-bottom:1px solid var(--line-soft)}")
- self.assertPageContains(".geist-progress{height:8px;margin-top:7px;overflow:hidden;border-radius:var(--pill-radius);background:var(--line-soft)}")
- self.assertPageContains("${progressHtml(`${k}:${v.toLocaleString()} / ${max.toLocaleString()}`,v,max)}")
- self.assertPageContains(".metricstrip button[aria-selected=\"true\"]:after")
- self.assertPageContains(".insightdetailbody[hidden]")
- self.assertPageContains("[data-stats-panel][hidden]")
- self.assertPageLacks("const card=(t,body,size='third')")
- self.assertPageLacks('<div class="statshead"></div>')
- self.assertPageLacks('class="prog"')
-
def test_note_semantics_replace_empty_states_for_persistent_errors(self):
for name in ("emptyStateHtml", "loadingDotsHtml", "mediaViewButtonsHtml", "noteHtml", "progressHtml",
"scrollerHtml", "setActionBusy", "skeletonHtml", "spinnerHtml",
@@ -5945,13 +5913,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(".review{--review-fieldset-height:440px;padding:0 0 42px}")
self.assertPageLacks("max-width:1440px")
self.assertPageContains(".insightpage,.tastepage{width:min(1100px,100%);margin:0 auto")
- self.assertPageContains("metricTab('storage','使用空间'")
- self.assertPageContains('class="board-volume-list"')
- self.assertPageContains('class="board-volume-values"')
- self.assertPageContains('class="insightranking"')
self.assertPageContains("grid-template-columns:repeat(2,minmax(0,1fr))")
- self.assertPageContains("border-top:1px solid var(--line-soft);border-left:1px solid var(--line-soft);list-style:none")
- self.assertPageContains('class="board-source-list"')
self.assertPageContains(".managebar{margin-left:auto;margin-right:auto}")
self.assertPageContains(".insight-layout .managetitle,.insight-layout .pagelede{width:min(1100px,100%)")
self.assertPageLacks(".tasteprivacy{margin:16px 16px 0")
@@ -6538,7 +6500,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertIn(".board-rank-expand svg{width:14px;height:14px;", board)
self.assertIn(".board-rank-list .tasterank{position:relative;isolation:isolate;border:0;border-radius:8px;", board)
self.assertNotIn(".board-rank-list .tasterank:hover{background:var(--color-background-primary-hover)}", board)
- self.assertIn(".metricstrip>button:hover{background:color-mix(in srgb,var(--color-text-primary) 6%,var(--ground))}", board)
self.assertIn("body .tastesource>button{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--color-text-secondary);transform:none;", board)
self.assertIn(".geist-fieldset-footer>a,.geist-fieldset-footer>button).primary{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-height:36px;padding:8px 12px;border-radius:10px;font:var(--board-body-medium);", board)
self.assertIn("body .followmanage .faddform .geist-search input{background:var(--color-background-primary-default)}", board)
@@ -8281,6 +8242,31 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageLacks(".activity-run-head{")
self.assertPageLacks(".activity-progress{")
+ def test_the_stats_page_is_an_island_inside_the_management_shell(self):
+ """统计是主站里的一屏,遗留层只铺骨架、交容器和它独有的那几个助手。
+
+ 它是 React 档(ADR-0031):整页在 `frontend/src/react/stats/` 里。读数怎么分层、
+ 环形图的几何、排行的收展和三个空态由 `frontend/test/react/stats.test.tsx` 守,
+ 搬家之后语义标记还在不在由 `tests/test_frontend_build.py` 的 `StatsEndpointTests`
+ 守,数据契约由 `/api/stats` 的路由测试守。
+
+ 「点一个内容标签回目录并按它筛选」是整页换成目录,仍归遗留壳:页面只把标签键
+ 交回来,不自己调 `route` 或 `load`。
+ """
+ self.assertRoute('/stats', "section:'stats'", "title:'统计'", "openStats(push)")
+ self.assertPageContains("async function openStats(push=true)")
+ self.assertPageContains(
+ "await ui.mountIsland('stats',$('#stats'),{\n"
+ " tagLabel,onTag:k=>{closeStats();toggleTag(k)},\n"
+ " openMediaSettings:()=>openSettings(true,'媒体'),configurable:!!runtimeConfigurable,\n"
+ " },{isCurrent:()=>surfaceCurrent(surface)});")
+ # 正文归 React 子树:读数卡、环形图与排行用 BoardUI 的源码加 Tailwind,
+ # 遗留样式表里只剩骨架要的那几条。
+ self.assertPageLacks(".board-radial-card{")
+ self.assertPageLacks(".insightranking{")
+ self.assertPageLacks(".insightfacts{")
+ self.assertPageLacks(".statmetric{")
+
def test_the_configuration_page_is_an_island_inside_the_management_shell(self):
"""这台电脑的媒体文件夹与端口是主站里的一屏,不是另一套独立页面。
@@ -8488,8 +8474,8 @@ class WebUiSourceTests(unittest.TestCase):
# 外链标才留得住:中缩靠改写 textContent 实现,同一节点里的图标会被抹掉。
'<span data-middle-truncate>${esc(item.url)}</span>'):
self.assertPageContains(consumer)
- # 高清版目标页归 React 子树,由 frontend 的用例覆盖;最近观看的文件名也保留首尾。
- self.assertEqual(self.app_js.count("data-middle-truncate"), 12)
+ # 高清版目标页与统计页归 React 子树,由 frontend 的用例覆盖。
+ self.assertEqual(self.app_js.count("data-middle-truncate"), 11)
self.assertEqual(self.app_js.count('class="mixitemtext"'), 3)
self.assertEqual(self.app_js.count("data-truncate-end"), 4)
self.assertPageContains("new Intl.Segmenter(undefined,{granularity:'grapheme'})")
@@ -8517,7 +8503,7 @@ class WebUiSourceTests(unittest.TestCase):
".frow>b",
# 表格视图的来源名一格:和默认视图那枚 `.frow>b` 是同一段语义文本,只是换了容器。
".ftable .ftname>b",
- ".fvkind", ".idname", ".kv>span:first-child",
+ ".fvkind", ".idname",
".meta .t", ".meta .who", ".mixcopy b,.mixcopy span",
# 小窗信息栏与播放器右键菜单:标题、来源和菜单标签都是语义文本,尾部省略。
".miniplayertitle", ".miniplayersub", ".playermenuitem>span",
@@ -8530,7 +8516,7 @@ class WebUiSourceTests(unittest.TestCase):
".reviewfieldhead>span",
".reviewitem h4", ".reviewpickname", ".reviewpickname>span", ".searchoption span",
".sgrid.mixgrid>.mixqueue .mixqueuehead span", ".sidebarorderlabel>b",
- ".insightrankrow>span:nth-child(2)", ".metricstrip small,.tastesummary>small",
+ ".tastesummary>small",
".gselectfield>span",
".tagpickitem .pickname", ".tasterank b,.tasterank small",
".tastesource b,.tastesource small", ".tg",
@@ -9017,7 +9003,6 @@ class WebUiSourceTests(unittest.TestCase):
".geist-gauge svg": {"3"},
".board-job-progress circle": {"2.5"},
".board-radar-grid": {"1"},
- ".board-ring-value[data-active=true]": {"18"},
}
board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
css = re.sub(r"/\*.*?\*/", "", self.css + board, flags=re.S)
@@ -9849,43 +9834,6 @@ class WebUiSourceTests(unittest.TestCase):
" if(shift)tip.style.setProperty('--range-tip-shift',`${Math.round(shift)}px`);",
controls)
- def test_a_chart_legend_tile_is_the_inlaid_surface_itself(self):
- """图例小卡自己就是那层凹片,不是摆在一块托盘上的另一张卡。
-
- 卡片底、托盘底、小卡底三层各一个颜色时,数字读起来像是嵌在框里的框;而这一组
- 里只有小卡是可以点的,托盘不承担任何动作,也就不该占一层底色。
- """
- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertIn(".board-radial-tiles{display:flex;flex-wrap:wrap;gap:8px;"
- "padding:0;border-radius:0;background:none}", board)
- self.assertIn(".board-radial-tiles>button{display:flex;flex:1 1 calc(33.333% - 8px);min-width:0;"
- "flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:0;"
- "border-radius:12px;background:var(--color-background-tertiary-default);", board)
- # 选中仍然只有填充加一圈同色描边,不再靠「白片压在灰托盘上」拉开层次。
- self.assertIn(".board-radial-tiles>button:is([data-active=true],[aria-pressed=true])"
- "{background:color-mix(in srgb,var(--ring-color) 10%,"
- "var(--color-background-tertiary-default));box-shadow:inset 0 0 0 1px var(--ring-color)}",
- board)
-
- def test_a_chart_card_takes_the_card_face_and_stands_on_the_page(self):
- """图表卡的底是 secondary,而且它上面不再套一层面板。
-
- primary 是浮层与输入框的面:拿它当卡片,浅色下卡和纯白页面一样白、只有靠底下那层
- 面板才看得出边,深色下又比周围都亮一档、卡缝里透出比卡更深的一条。面板与卡同时
- 铺面,同一块地方就叠了三层底色。boardui 的看板卡实测是 secondary、无边框无投影,
- 直接坐在页面上。
- """
- board = (Path(__file__).resolve().parents[1] / "web/board.css").read_text(encoding="utf-8")
- self.assertIn(".board-radial-card{min-width:0;padding:20px;border-radius:20px;"
- "background:var(--ground);overflow:hidden}", board)
- # 面移到当前那一格上;装着卡的那一格不铺,两张卡各自独立。
- self.assertIn(".insightdetail{background:none;overflow:visible}", board)
- self.assertIn(".insightdetailbody{border-radius:16px;background:var(--ground)}", board)
- self.assertIn(".insightdetailbody:has(.board-inventory-charts){background:none}", board)
- # 卡上凹一档用 tertiary:卡面既然是 secondary,三档在深浅两边都还是单调的。
- self.assertIn(".board-ring-track{stroke:var(--color-background-tertiary-default)}", board)
- self.assertNotIn("--board-inlay", board)
-
def test_a_selected_tab_is_marked_in_the_accent_blue(self):
"""选中的 tab 是蓝字加蓝线,全站两处下划线 Tabs 共用同一枚指示条。
diff --git a/web/app.js b/web/app.js
index a2ec3289b..c2b204978 100644
--- a/web/app.js
+++ b/web/app.js
@@ -6,7 +6,7 @@ import { filterScrollState } from './js/filter-scroll.js';
import { selectRange, selectionSummary, selectGroup, syncSelectionToolbar } from './dist/peach-ui.js';
import { MEDIA_SOURCE_ICONS } from './js/media-source-icons.js';
import { boardPageSkeleton, detailSkeletonHtml, initBoardControls, syncBoardRange, wireExpandableRanks, creatorSankeyHtml, wireCreatorSankey } from './dist/peach-ui.js';
-import { radialCardHtml, wireRadialCards, activityChartsHtml, wireActivityCharts } from './dist/peach-ui.js';
+import { activityChartsHtml, wireActivityCharts } from './dist/peach-ui.js';
import { imageFallbackAttrs, wireImageFallbacks } from './js/image-fallback.js';
import { javDisplayName, javTitleHtml } from './js/jav-title.js';
import { matchRoute, routeLabel } from './js/routes.js';
@@ -4136,94 +4136,12 @@ async function openStats(push=true){
enterManagementSurface();
disposeStage(false);
showManagementBody({placeholder:managementPlaceholder('/stats')});
- const d=await surfaceApi(surface,'/api/stats');
- if(!surfaceCurrent(surface))return;
- showManagementBody();
- const a=d.attribution, cs=d.consumption;
- const pct=(x,y)=>y?Math.round(x/y*100):0;
- const gb=b=>b>=1099511627776?(b/1099511627776).toFixed(2)+' TB':(b/1073741824).toFixed(1)+' GB';
- const hrs=s=>s>=3600?(s/3600).toFixed(1)+' 小时':Math.round(s/60)+' 分钟';
- const totalVideos=d.by_loc.reduce((sum,row)=>sum+row.videos,0);
- const totalBytes=d.by_loc.reduce((sum,row)=>sum+row.bytes,0);
- const coverage=pct(d.tag_cov,a.videos);
- const storage=d.storage_summary||{volumes:0,online:0,measured:0,free:0,used:0,total:0};
- const kv=(k,v,u)=>`<div class="kv"><span>${k}</span><b>${v}${u?`<span class="u">${u}</span>`:''}</b></div>`;
- const metric=(k,v,max)=>`<div class="statmetric">${kv(k,v.toLocaleString(),pct(v,max)+'%')}${progressHtml(`${k}:${v.toLocaleString()} / ${max.toLocaleString()}`,v,max)}</div>`;
- const metricTab=(key,label,value,detail,selected=false)=>`<button type="button" role="tab" data-stats-metric="${key}"
- aria-selected="${selected}" aria-controls="stats-detail-${key}" tabindex="${selected?'0':'-1'}">
- ${statCardBody(label,value,detail,{inventory:'database',viewing:'eye',coverage:'tags',storage:'hard-drive'}[key])}</button>`;
- const tagsTable=d.top_tags.length?`<ol class="insightranking">${d.top_tags.map((t,index)=>`<li><button type="button" class="insightrankrow" data-k="${esc(t.k)}">
- <span class="insightrankpos">${index+1}</span><span>${esc(tagLabel(t.k))}</span><b>${t.n.toLocaleString()}</b></button></li>`).join('')}</ol>`
- :emptyStateHtml('tags','还没有内容标签','补全资料或添加标签后,这里会显示馆藏中的内容标签。',{actions:'<a class="geist-button" href="/data-cleanup">补全资料</a>'});
- const recentTable=d.recent.length?`<div class="board-watch-history">${d.recent.map(row=>{
- const real=row.duration?Math.min(row.play_seconds/row.duration,1)*100:0;
- const reached=(row.max_reached||0)*100;
- const note=row.kind==='online'?'在线直接观看':(real<reached-25?'快进扫过':(row.o_count?`高潮 ${row.o_count}`:'正常观看'));
- return `<article class="board-watch-entry"><div><h3><a href="${row.kind==='online'?'/follow/item/':'/item/'}${Number(row.id)}" data-middle-truncate>${esc(row.name)}</a></h3><p>${esc(row.creator||'')}<span>${note}</span></p></div>
- <div class="board-watch-measures">${progressHtml(`真实观看 ${real.toFixed(0)}%`,real,100)}<small>真实 ${real.toFixed(0)}% · 到达 ${reached.toFixed(0)}%</small></div></article>`}).join('')}</div>`:
- `<div class="insightempty">${emptyStateHtml('history','还没有观看记录','开始播放后,这里会显示最近的真实观看证据。',{actions:'<a class="geist-button" href="/">浏览馆藏</a>'})}</div>`;
- const sourceTable=d.tag_source.length?`<div class="board-source-list">${d.tag_source.map(row=>`<article><header><h3>${esc(row.k)}</h3><b>${row.assets.toLocaleString()} <small>个视频</small></b></header>
- ${progressHtml(`${row.k} 覆盖视频`,row.assets,a.videos)}<small>${row.n.toLocaleString()} 条标签</small></article>`).join('')}</div>`:
- `<div class="insightempty">${emptyStateHtml('tags','还没有标签来源','刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。',{actions:'<a class="geist-button" href="/data-cleanup">补全资料</a>'})}</div>`;
- const storageTable=(d.storage_volumes||[]).length?`<div class="board-volume-list">${(d.storage_volumes||[]).map(row=>{
- const measured=row.total!=null, usedPct=measured?pct(row.used,row.total):0;
- return `<article><header><h3>${esc(row.label)}</h3><b>${measured?usedPct+'%':(row.online===false?'离线':'容量未取得')}</b></header><small>${row.root?esc(row.root):'未映射'}</small>
- ${measured?progressHtml(`${row.label}空间使用率`,row.used,row.total)+`<div class="board-volume-values"><span>已用 <b>${gb(row.used)}</b></span><span>可用 <b>${gb(row.free)}</b></span></div>`:''}</article>`}).join('')}</div>`
- :emptyStateHtml('hard-drive','还没有存储来源','添加媒体文件夹后,这里会显示存储空间。',{actions:'<button class="geist-button" data-empty-settings>添加媒体文件夹</button>'});
- $('#stats').innerHTML=`
- <div class="insightpage statsdashboard" data-stats-dashboard>
- <header class="insighttoolbar"><p>账本当前快照 · ${totalVideos.toLocaleString()} 个视频 · ${gb(totalBytes)}</p></header>
- <div class="metricstrip" role="tablist" aria-label="统计视图">
- ${metricTab('inventory','馆藏视频',totalVideos.toLocaleString(),gb(totalBytes),true)}
- ${metricTab('viewing','看过',cs.played.toLocaleString(),hrs(cs.play_seconds))}
- ${metricTab('coverage','内容标签',coverage+'%',`${d.tag_cov.toLocaleString()} / ${a.videos.toLocaleString()}`)}
- ${metricTab('storage','使用空间',`${storage.online} 个卷`,storage.measured?`已用 ${gb(storage.used)}`:'容量未取得')}
- </div>
- <section class="insightdetail">
- <div id="stats-detail-inventory" role="tabpanel" data-stats-detail="inventory" class="insightdetailbody">
- ${totalVideos?`<div class="board-inventory-charts">${radialCardHtml(d.by_loc.map(row=>({name:LOC[row.k]||row.k,value:row.videos,detail:gb(row.bytes)})),'网盘与本地')}${radialCardHtml((d.by_library||[]).map(row=>({name:row.name,value:row.videos,detail:gb(row.bytes)})),'媒体库')}</div>`:catalogEmptyHtml({configurable:runtimeConfigurable})}</div>
- <div id="stats-detail-viewing" role="tabpanel" data-stats-detail="viewing" class="insightdetailbody" hidden>
- <div class="insightcopy"><span>观看</span><h2>${cs.played.toLocaleString()}</h2><b>个作品有播放记录</b>
- <p>累计 ${hrs(cs.play_seconds)}</p></div>
- <div class="insightfacts">${kv('馆藏观看',cs.library_played.toLocaleString())}${kv('在线直接观看',cs.online_played.toLocaleString())}
- ${kv('高潮计数',cs.o_total.toLocaleString())}${kv('快进扫过',cs.skimmed.toLocaleString())}
- ${kv('明确不喜欢',cs.dislike.toLocaleString())}${kv('看过了',cs.seen.toLocaleString())}${kv('回收站',cs.trash.toLocaleString())}</div></div>
- <div id="stats-detail-coverage" role="tabpanel" data-stats-detail="coverage" class="insightdetailbody" hidden>
- <div class="insightcopy"><span>内容标签覆盖</span><h2>${coverage}%</h2><b>${d.tag_cov.toLocaleString()} / ${a.videos.toLocaleString()}</b>
- </div>
- <div class="insightvisual">${metric('有创作者',a.creator,a.videos)}${metric('有番号',a.code,a.videos)}
- ${metric('有厂牌',a.studio,a.videos)}${metric('已抽帧',a.thumb,a.videos)}${metric('已探测时长',a.duration,a.videos)}</div></div>
- <div id="stats-detail-storage" role="tabpanel" data-stats-detail="storage" class="insightdetailbody" hidden>
- <div class="insightcopy"><span>使用空间</span><h2>${storage.measured}</h2><b>个卷已取得容量</b>
- </div>
- <div class="insightvisual insightstorage">${storageTable}</div></div>
- </section>
- <section class="insightpanel">
- <header><div class="insighttabs" role="tablist" aria-label="统计维度">
- <button type="button" role="tab" data-stats-tab="tags" aria-selected="true" aria-controls="stats-panel-tags">内容标签</button>
- <button type="button" role="tab" data-stats-tab="recent" aria-selected="false" aria-controls="stats-panel-recent" tabindex="-1">最近看过</button>
- <button type="button" role="tab" data-stats-tab="sources" aria-selected="false" aria-controls="stats-panel-sources" tabindex="-1">标签来源</button>
- </div></header>
- <div class="insightpanelbody"><div id="stats-panel-tags" role="tabpanel" data-stats-panel="tags">${tagsTable}</div>
- <div id="stats-panel-recent" role="tabpanel" data-stats-panel="recent" hidden>${recentTable}</div>
- <div id="stats-panel-sources" role="tabpanel" data-stats-panel="sources" hidden>${sourceTable}</div></div>
- </section>
- </div>`;
- const statsRoot=$('#stats');
- wireRadialCards(statsRoot);
- wireExpandableRanks(statsRoot);
- statsRoot.querySelectorAll('[data-stats-metric]').forEach(button=>button.onclick=()=>{
- statsRoot.querySelectorAll('[data-stats-metric]').forEach(tab=>{
- const selected=tab===button;tab.setAttribute('aria-selected',String(selected));tab.tabIndex=selected?0:-1});
- statsRoot.querySelectorAll('[data-stats-detail]').forEach(panel=>panel.hidden=panel.dataset.statsDetail!==button.dataset.statsMetric)
- });
- statsRoot.querySelectorAll('[data-stats-tab]').forEach(button=>button.onclick=()=>{
- statsRoot.querySelectorAll('[data-stats-tab]').forEach(tab=>{
- const selected=tab===button;tab.setAttribute('aria-selected',String(selected));tab.tabIndex=selected?0:-1});
- statsRoot.querySelectorAll('[data-stats-panel]').forEach(panel=>panel.hidden=panel.dataset.statsPanel!==button.dataset.statsTab)
- });
- $('#stats').querySelectorAll('[data-k]').forEach(b=>b.onclick=()=>{
- closeStats(); toggleTag(b.dataset.k)});
+ const ui=await import('/dist/peach-ui.js');
+ /* 点一个内容标签是「回目录并按它筛选」:整页换成目录仍归遗留壳,页面只说点了哪个键。 */
+ await ui.mountIsland('stats',$('#stats'),{
+ tagLabel,onTag:k=>{closeStats();toggleTag(k)},
+ openMediaSettings:()=>openSettings(true,'媒体'),configurable:!!runtimeConfigurable,
+ },{isCurrent:()=>surfaceCurrent(surface)});
window.scrollTo({top:0,behavior:'smooth'});
}
function showHomeSurfaces(){
diff --git a/web/board.css b/web/board.css
index 30891994a..c70769532 100644
--- a/web/board.css
+++ b/web/board.css
@@ -973,26 +973,16 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.board-job-progress small{display:block;color:var(--muted);font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.board-job-fill{transition:none}}
.metricstrip,.tastesummaries{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;gap:16px;overflow:visible;border:0;background:none}
-.metricstrip>button,.tastesummary{display:flex;flex-direction:column;min-width:0;padding:16px 0 0;border:0;border-radius:16px;background:var(--ground);overflow:hidden;text-align:left;box-shadow:0 1px 2px #00000008}
-.metricstrip>button[aria-selected=true]{background:var(--ground);box-shadow:inset 0 0 0 2px var(--tungsten)}
-.metricstrip>button:hover{background:color-mix(in srgb,var(--color-text-primary) 6%,var(--ground))}
-.metricstrip>button[aria-selected=true]::after{content:"";display:block;position:absolute;inset:0;height:auto;border:2px solid var(--tungsten);border-radius:inherit;background:none;pointer-events:none;z-index:1}
-.metricstrip>button:focus-visible{outline:2px solid var(--tungsten);outline-offset:3px}
-.metricstrip .board-stat-label,.tastesummary>.board-stat-label{display:flex;align-items:center;gap:8px;padding:0 16px;color:var(--ink-2);font-size:14px;line-height:20px}
+.tastesummary{display:flex;flex-direction:column;min-width:0;padding:16px 0 0;border:0;border-radius:16px;background:var(--ground);overflow:hidden;text-align:left;box-shadow:0 1px 2px #00000008}
+.tastesummary>.board-stat-label{display:flex;align-items:center;gap:8px;padding:0 16px;color:var(--ink-2);font-size:14px;line-height:20px}
.board-stat-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#3986ff25,#1760ef08);color:var(--tungsten);flex:none}
.board-stat-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
-.metricstrip>button:nth-child(2) .board-stat-icon,.tastesummary:nth-child(2) .board-stat-icon{color:#a78bfa;background:#a78bfa18}
-.metricstrip>button:nth-child(3) .board-stat-icon,.tastesummary:nth-child(3) .board-stat-icon{color:#34d399;background:#34d39918}
-.metricstrip>button:nth-child(4) .board-stat-icon,.tastesummary:nth-child(4) .board-stat-icon{color:#f59e0b;background:#f59e0b18}
-.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{padding:12px 16px 16px;font-size:28px;line-height:34px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
-.metricstrip>button .board-stat-footer,.tastesummary>.board-stat-footer{display:block;padding:10px 16px;background:var(--board-card-foot);margin:auto 0 0;font-size:12px;line-height:18px;color:var(--muted);min-height:38px}
-.insightdetail,.insightpanel,.tastehero,.tasteanalysis,.tasteleads{border:0;border-radius:16px;background:var(--ground);overflow:clip}
-/* 卡片面只有一层。`.insightdetail` 自己铺面、里面又放一排卡,两层面就都露出来:dark 下
- 卡缝里透出比卡更深的一条,light 下面板和卡差一档、页面又是纯白,同一块地方叠了三种白。
- 面移到当前那一格上,装着卡的那一格不铺。 */
-.insightdetail{background:none;overflow:visible}
-.insightdetailbody{border-radius:16px;background:var(--ground)}
-.insightdetailbody:has(.board-inventory-charts){background:none}
+.tastesummary:nth-child(2) .board-stat-icon{color:#a78bfa;background:#a78bfa18}
+.tastesummary:nth-child(3) .board-stat-icon{color:#34d399;background:#34d39918}
+.tastesummary:nth-child(4) .board-stat-icon{color:#f59e0b;background:#f59e0b18}
+.tastesummary>.board-stat-value{padding:12px 16px 16px;font-size:28px;line-height:34px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
+.tastesummary>.board-stat-footer{display:block;padding:10px 16px;background:var(--board-card-foot);margin:auto 0 0;font-size:12px;line-height:18px;color:var(--muted);min-height:38px}
+.insightpanel,.tastehero,.tasteanalysis,.tasteleads{border:0;border-radius:16px;background:var(--ground);overflow:clip}
.insightcopy{border:0}.insightpanel>header{border:0;padding-top:8px}
.board-ranked-chart{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.board-ranked-chart li{position:relative;isolation:isolate;display:flex;justify-content:space-between;gap:12px;padding:10px 12px;min-height:40px;border-radius:8px;overflow:hidden;font-size:14px;line-height:20px}
@@ -1003,24 +993,10 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.board-radar-value{fill:color-mix(in srgb,var(--tungsten) 18%,transparent);stroke:var(--tungsten);stroke-width:2;stroke-linejoin:round}
.board-radar text{font-family:inherit;font-size:12px;fill:var(--muted);dominant-baseline:middle}
@media(max-width:1000px){.metricstrip,.tastesummaries{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
-@media(max-width:480px){.board-stat-label{padding-inline:12px;font-size:13px;gap:6px}.metricstrip>button .board-stat-value,.tastesummary>.board-stat-value{padding:12px;font-size:24px;line-height:34px}.metricstrip>button .board-stat-footer,.tastesummary>.board-stat-footer{padding:8px 12px}.board-stat-icon{width:24px;height:24px}}
+@media(max-width:480px){.board-stat-label{padding-inline:12px;font-size:13px;gap:6px}.tastesummary>.board-stat-value{padding:12px;font-size:24px;line-height:34px}.tastesummary>.board-stat-footer{padding:8px 12px}.board-stat-icon{width:24px;height:24px}}
/* 数据按阅读目的分组,标题与内容共享边缘。 */
.insightpage,.tastepage{width:100%;max-width:var(--board-content)}
-.board-watch-history,.board-source-list,.board-volume-list{display:grid;gap:20px;min-width:0}
-.board-watch-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,30%);align-items:center;gap:24px;padding:12px 0}
-.board-watch-entry h3,.board-source-list h3,.board-volume-list h3{margin:0;font-size:14px;line-height:20px;font-weight:500;overflow-wrap:anywhere}
-.board-watch-entry>div{min-width:0}.board-watch-entry h3 a{display:block;max-width:100%;overflow:hidden;white-space:nowrap;color:var(--ink);text-decoration:none}.board-watch-entry h3 a:hover{text-decoration:underline}
-.board-watch-entry p{display:flex;gap:12px;flex-wrap:wrap;margin:4px 0 0;font-size:12px;color:var(--muted)}
-.board-watch-measures small,.board-source-list small,.board-volume-list small{display:block;font-size:12px;line-height:18px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
-.board-source-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 32px}
-.board-source-list header,.board-volume-list header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
-.board-source-list header b,.board-volume-list header b{font-size:14px;font-weight:500;white-space:nowrap}
-.board-source-list header small{display:inline;font-weight:400}
-.board-volume-values{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:12px}
-.board-volume-values b{color:var(--ink-2);font-weight:400}
-.insightstorage{overflow:visible}.insightfacts{gap:12px}.insightfacts .kv,.insightfacts .kv:nth-child(odd),.insightfacts .kv:nth-child(-n+2){border:0;padding:12px;min-height:64px;display:flex;flex-direction:column;gap:6px;background:var(--surface);border-radius:10px}.insightfacts .kv b{font-size:20px;text-align:left;max-width:100%}.insightfacts::after{display:none}
-.insightranking{border:0;gap:4px 24px}.insightrankrow{border:0;border-radius:8px}.insightrankrow>span:nth-child(2){white-space:normal;overflow-wrap:anywhere}
.tasteranks,.tasteranks-tags,.tasteranks-visual{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px}
.tasterank,.tasterank-tag{border:0;background:none;border-radius:10px;padding:12px 8px;min-height:72px;grid-template-columns:24px minmax(0,1fr) 16px;gap:12px}
.tasterank-visual{grid-template-columns:24px 36px minmax(0,1fr) 16px}.tasterank .tasteavatar{width:36px;height:36px}.tasterank b{font-size:14px;line-height:20px;font-weight:500;white-space:normal;overflow-wrap:anywhere}.tasterank small{white-space:normal;line-height:18px}.tasterank .taste-rank-copy{min-width:0}
@@ -1034,7 +1010,7 @@ html.board-high-contrast .settingscard.settingscard>.board-local-nav{background:
.followmanage .fauthor{container-type:inline-size}
.board-follow-list{display:grid;border-radius:16px;background:var(--ground);padding:8px 16px}.board-follow-list .fsource.frow{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto auto auto;gap:12px;padding:8px;min-height:48px;border:0;border-radius:8px}.board-follow-list .fsource.frow>b{font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.board-follow-list .fsource.selected{background:var(--picked);opacity:1}.board-follow-selection{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 12px;font-size:13px}.board-follow-selection>label{display:flex;gap:8px;align-items:center}.board-follow-selection>span{margin-right:auto;color:var(--muted)}
@media(max-width:760px){.board-follow-list{padding:8px}}
-@media(max-width:760px){body #manageTitle{width:100%}.board-watch-entry,.board-source-list,.tasteleads .insightpanelbody,.tasteranks,.tasteranks-tags,.tasteranks-visual,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.board-watch-entry{gap:8px}.tasteleads>header{padding:20px 16px 12px}.tasteleads .insightpanelbody{padding:8px 16px 20px}.followmanage .fmain>.fsec:has(.fcred)>.frows{grid-template-columns:minmax(0,1fr)}.followmanage .fauthor{padding:16px}.followmanage .fsechead{gap:8px}.followmanage .fmanagesort{margin-left:0}}
+@media(max-width:760px){body #manageTitle{width:100%}.tasteleads .insightpanelbody,.tasteranks,.tasteranks-tags,.tasteranks-visual,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.tasteleads>header{padding:20px 16px 12px}.tasteleads .insightpanelbody{padding:8px 16px 20px}.followmanage .fmain>.fsec:has(.fcred)>.frows{grid-template-columns:minmax(0,1fr)}.followmanage .fauthor{padding:16px}.followmanage .fsechead{gap:8px}.followmanage .fmanagesort{margin-left:0}}
/* Board 的语义色与复合字阶;图表和业务状态独立于交互强调色。 */
:root,:root[data-theme="light"]{--color-text-primary:#0a0a0a;--color-text-secondary:#737373;--color-text-tertiary:#a3a3a3;--color-background-full:#fff;--color-background-primary-default:#fff;--color-background-primary-hover:#f5f5f5;--color-background-secondary-default:#f5f5f5;--color-background-tertiary-default:#e5e5e5;--color-border-button-default:#e5e5e5;--color-border-button-hover:#d4d4d4;--color-border-button-active:#a3a3a3;--color-separator-border:#e5e5e5;--color-border-focus-ring:#3b82f6;--color-text-white:#fff;--color-text-disabled:#d4d4d4;--board-blue:linear-gradient(180deg,#2b7fff,#155dfc);--board-blue-hover:linear-gradient(180deg,#3392ff,#2b7fff);--board-blue-active:linear-gradient(180deg,#155dfc,#1447e6);--board-red:linear-gradient(180deg,#fb2c36,#e7000b);--board-red-hover:linear-gradient(180deg,#ff6467,#fb2c36);--board-red-active:linear-gradient(180deg,#e7000b,#c10007);--board-red-line:#fb2c36;--board-red-wash:#ffe2e2;--board-red-text:#c10007}
@@ -1071,9 +1047,6 @@ body,.disp{font-family:var(--board-font);letter-spacing:0}body{font:var(--board-
.skeleton-tabs{display:flex;gap:20px;align-items:center;min-height:48px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid var(--line-soft)}
.skeleton-setting{display:flex;justify-content:space-between;align-items:center;min-height:64px}
.skeleton-toggle{width:40px;height:24px;border-radius:var(--pill-radius)}
-.board-rings.skeleton-rings{display:grid;place-items:center;padding:24px 0;box-sizing:border-box}
-.skeleton.skeleton-ring{width:min(70%,252px);height:auto;aspect-ratio:1;border-radius:50%;mask:radial-gradient(circle,transparent 50%,#000 51%)}
-@media(max-width:600px){.skeleton.skeleton-ring{width:min(70%,212px)}}
.skeleton-radar{width:100%;height:260px;clip-path:polygon(50% 0,95% 25%,95% 75%,50% 100%,5% 75%,5% 25%)}
.board-page-skeleton .tastesummary{height:152px}
.board-page-skeleton .tastesummary>b .skeleton{height:34px}
@@ -1270,17 +1243,6 @@ body .sbadge.paused{background:color-mix(in srgb,#ffc600 18%,var(--color-backgro
.metricstrip>button[aria-selected=true]{background:var(--color-background-primary-default);box-shadow:none}.metricstrip>button[aria-selected=true]::after{box-sizing:border-box}.metricstrip>button[aria-selected=true] .board-stat-footer{background:var(--board-card-foot)}
body .gselectmenu [role=option][aria-selected=true],body .popmenu [aria-checked=true]{background:color-mix(in srgb,var(--color-text-primary) 10%,var(--color-background-primary-default));color:var(--color-text-primary)}
.insightswitch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--color-background-primary-default);box-shadow:0 1px 2px #0000000d}.insightswitch label>span{display:flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:7px;color:var(--color-text-secondary);font:var(--board-body-medium)}.insightswitch label:has(input:checked)>span{background:var(--color-background-primary-hover);color:var(--color-text-primary);box-shadow:0 1px 2px #0000001a}
-/* 卡面是 secondary,跟 `.board-sankey-card` 同一档。primary 是浮层与输入框的面:
- 拿它当卡片,light 下卡和纯白页面一样白、只靠底下那层面板才看得出边,dark 下又比周围
- 都亮一档。boardui 的看板卡实测就是 bg-background-secondary-default,无边框无投影。 */
-.board-inventory-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;width:100%;grid-column:1/-1}.board-radial-card{min-width:0;padding:20px;border-radius:20px;background:var(--ground);overflow:hidden}.board-radial-card>header{display:grid;grid-template-columns:1fr auto;gap:4px;color:var(--color-text-secondary)}.board-radial-card>header>b{grid-row:2;font:var(--board-title);color:var(--color-text-primary);font-variant-numeric:tabular-nums}.board-radial-card>header>small{align-self:end;grid-column:2;grid-row:2;font:var(--board-caption)}
-.board-rings{display:block;width:100%;height:300px;overflow:visible}.board-rings circle{fill:none;stroke-linecap:round}.board-ring-track{stroke:var(--color-background-tertiary-default)}.board-ring-value{stroke:var(--ring-color);cursor:pointer;transition:filter .18s,opacity .18s,stroke-width .18s;animation:board-ring-enter .9s cubic-bezier(.16,1,.3,1) var(--ring-delay) backwards;outline:none}.board-ring-value[data-active=true]{filter:brightness(.88);stroke-width:18}.board-ring-value:focus-visible{filter:drop-shadow(0 0 2px var(--color-border-focus-ring))}.board-radial-card:not([data-radial-focus="-1"]) .board-ring-value:not([data-active=true]){opacity:.4}
-@keyframes board-ring-enter{from{stroke-dasharray:0px 100px;opacity:0}to{stroke-dasharray:calc(var(--ring-length) * 1px) calc((100 - var(--ring-length)) * 1px);opacity:1}}
-.board-radial-card:not(.board-chart-visible) .board-ring-value{animation:none;stroke-dasharray:0 100;opacity:0}
-.board-radial-card.board-chart-visible .board-ring-value{animation-duration:1.2s;animation-timing-function:cubic-bezier(.22,.61,.36,1)}
-/* 图例小卡自己就是那层凹片,不再摆在一块托盘上:卡片底、托盘底、小卡底三层各一个
- 颜色,数字读起来像是嵌在框里的框,而这里只有小卡是可以点的。 */
-.board-radial-tiles{display:flex;flex-wrap:wrap;gap:8px;padding:0;border-radius:0;background:none}.board-radial-tiles>button{display:flex;flex:1 1 calc(33.333% - 8px);min-width:0;flex-direction:column;align-items:flex-start;gap:4px;padding:10px;border:0;border-radius:12px;background:var(--color-background-tertiary-default);text-align:left;color:var(--color-text-primary);font:var(--board-body);transition:background .18s,box-shadow .18s}.board-radial-tiles>button>span{display:flex;align-items:center;gap:6px;min-width:0;color:var(--color-text-secondary);overflow-wrap:anywhere}.board-radial-tiles i{width:12px;height:12px;flex:none;border-radius:4px;background:var(--ring-color)}.board-radial-tiles b{font:var(--board-heading);font-variant-numeric:tabular-nums}.board-radial-tiles small{font:var(--board-caption);color:var(--color-text-secondary)}.board-radial-tiles>button:is([data-active=true],[aria-pressed=true]){background:color-mix(in srgb,var(--ring-color) 10%,var(--color-background-tertiary-default));box-shadow:inset 0 0 0 1px var(--ring-color)}
.board-activity-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin:20px 0}.board-heat-card,.board-activity-empty{min-width:0;padding:20px;border-radius:20px;background:var(--color-background-secondary-default)}
/* 空着的时候那句话自己就是这一块,没有 `.board-activity-charts` 那层外壳,上下 20px
的外边距得由它自己出——否则有图时隔开的那两段,在没图时贴在一起。
@@ -1288,9 +1250,9 @@ body .gselectmenu [role=option][aria-selected=true],body .popmenu [aria-checked=
再叠上去,一句话在一个 20px 的盒子里偏得看不出是居中还是靠上。 */
.board-activity-empty{margin:20px 0}.board-activity-empty>h3{margin:0;font:var(--board-heading)}.board-activity-empty>p{margin:8px 0 0;color:var(--muted);font:var(--board-body)}.board-heat-card header{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:24px}.board-heat-card h3{margin:0;font:var(--board-heading)}.board-heat-card header b{grid-row:2;font:var(--board-title);font-variant-numeric:tabular-nums}.board-heat-card header span{grid-column:2;grid-row:2;align-self:end;color:var(--muted);font:var(--board-caption)}.board-heat-scroll{overflow-x:auto;padding:3px}.board-hour-grid{display:grid;grid-template-columns:32px repeat(24,minmax(10px,1fr));gap:4px;min-width:360px}.board-heat-axis{font:var(--board-caption);color:var(--muted);align-self:center}.board-day-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,1fr);grid-template-columns:repeat(13,1fr);gap:5px;padding:3px}
.board-heat-card [data-heat-value]{display:block;aspect-ratio:1;min-width:0;padding:0;border:0;border-radius:3px;background:color-mix(in srgb,#3493ff var(--heat),var(--color-background-tertiary-default));animation:board-heat-enter .4s ease-out both}.board-heat-card [data-heat-value]:is(:hover,:focus-visible){outline:2px solid var(--color-border-focus-ring);outline-offset:1px;filter:brightness(.9)}.board-heat-card footer{display:flex;justify-content:space-between;gap:8px;margin-top:16px;font:var(--board-caption);color:var(--muted)}@keyframes board-heat-enter{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
-@media(max-width:1000px){.board-inventory-charts,.board-activity-charts{grid-template-columns:1fr}.board-rings{height:260px}}
-@media(max-width:600px){.board-radial-card,.board-heat-card{padding:16px}.board-radial-tiles>button{flex-basis:calc(50% - 8px)}}
-@media(prefers-reduced-motion:reduce){.board-ring-value,.board-heat-card [data-heat-value]{animation:none;transition:none}.board-radial-tiles>button{transition:none}}
+@media(max-width:1000px){.board-activity-charts{grid-template-columns:1fr}}
+@media(max-width:600px){.board-heat-card{padding:16px}}
+@media(prefers-reduced-motion:reduce){.board-heat-card [data-heat-value]{animation:none;transition:none}}
/* 切换器展开时自己带一圈 2px 描边,导航列表首项又会抬起 hover 底:两者之间留 4px
的话这两块底色是挨着的,读起来像切换器压在第一项上。 */
.drawer .board-sidebar-head{margin-bottom:0!important}.drawer .dnav{margin-top:12px;gap:4px}.drawer #brandHome{height:36px;min-height:36px;box-sizing:border-box}.drawer .dnav button{height:36px;min-height:36px}
diff --git a/web/css/04-manage.css b/web/css/04-manage.css
index d6c0e77b6..760703a31 100644
--- a/web/css/04-manage.css
+++ b/web/css/04-manage.css
@@ -165,7 +165,6 @@
.fsrcoption{display:flex;align-items:center;gap:8px;justify-content:space-between}
.fsrcoption label{flex:1;min-width:0}
.fsrcoption .geist-button{font-size:var(--fs-sm);white-space:nowrap}
-.statsdashboard .emptystate{border:0;background:var(--ground)}
.taste-history-guide-content a{color:var(--tungsten);text-decoration:none}
.taste-history-guide-content a:hover{text-decoration:underline;text-underline-offset:3px}
.stats h2{margin:0 0 4px;font-size:var(--fs-2xl)}
diff --git a/web/css/05-insights.css b/web/css/05-insights.css
index f3fe7c7ad..a6b3f1008 100644
--- a/web/css/05-insights.css
+++ b/web/css/05-insights.css
@@ -13,24 +13,17 @@
规则接手改成露边滚动。写 190px 时窗口一收窄就先滚起来,横向滚动条压在一条
本来能压扁的带子下面。 */
.metricstrip,.tastesummaries{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,1fr);overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}
-.metricstrip button,.tastesummary{position:relative;box-sizing:border-box;min-height:96px;min-width:0;display:grid;align-content:center;gap:4px;padding:14px 16px;border:0;border-right:1px solid var(--line-soft);border-radius:0;background:transparent;color:var(--ink);text-align:left}.metricstrip button{cursor:pointer}.metricstrip button:last-child,.tastesummary:last-child{border-right:0}.metricstrip button:hover{background:var(--overlay-5)}.metricstrip button[aria-selected="true"]{background:var(--picked)}.metricstrip button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}
-.metricstrip span,.tastesummary>span{color:var(--muted);font-size:var(--fs-xs)}.metricstrip b,.tastesummary>b{font-size:var(--fs-2xl);line-height:1.15;font-variant-numeric:tabular-nums}.metricstrip small,.tastesummary>small{color:var(--ink-2);font-size:var(--fs-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
+.tastesummary{position:relative;box-sizing:border-box;min-height:96px;min-width:0;display:grid;align-content:center;gap:4px;padding:14px 16px;border:0;border-right:1px solid var(--line-soft);border-radius:0;background:transparent;color:var(--ink);text-align:left}.tastesummary:last-child{border-right:0}
+.tastesummary>span{color:var(--muted);font-size:var(--fs-xs)}.tastesummary>b{font-size:var(--fs-2xl);line-height:1.15;font-variant-numeric:tabular-nums}.tastesummary>small{color:var(--ink-2);font-size:var(--fs-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tastestate{min-height:20px;color:var(--meter);font-size:var(--fs-xs);margin:8px 0}.tastesummaries{margin-bottom:16px}
-.insightdetail,.tastehero{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}.insightdetailbody,.tastehero{min-height:330px;display:grid;grid-template-columns:minmax(260px,36%) minmax(0,1fr)}
-.insightdetailbody[hidden],[data-stats-panel][hidden],[data-taste-evidence-panel][hidden],[data-taste-summary][hidden],[data-taste-dimension-panel][hidden]{display:none}
+.tastehero{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground);min-height:330px;display:grid;grid-template-columns:minmax(260px,36%) minmax(0,1fr)}
+[data-taste-evidence-panel][hidden],[data-taste-summary][hidden],[data-taste-dimension-panel][hidden]{display:none}
.insightcopy{padding:28px 24px;border-right:1px solid var(--line-soft);display:flex;flex-direction:column;align-items:flex-start}.insightcopy>span{color:var(--muted);font-size:var(--fs-xs)}.insightcopy h2{margin:10px 0 2px;font-size:var(--fs-4xl);line-height:1;font-variant-numeric:tabular-nums}.insightcopy>b{font-size:var(--fs-sm)}.insightcopy p{max-width:38ch;margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line-soft);color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.insightcopy small{margin-top:auto;padding-top:18px;color:var(--muted);font-size:var(--fs-xs)}
-.insightvisual,.insightfacts,.tastebars{min-width:0;padding:24px;align-self:center}.insightfacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
-.insightfacts .kv{min-height:56px;padding:10px 12px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}.insightfacts .kv:nth-child(odd){border-left:1px solid var(--line-soft)}.insightfacts .kv:nth-child(-n+2){border-top:1px solid var(--line-soft)}.insightfacts:has(.kv:last-child:nth-child(odd))::after{content:"";border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
+.insightvisual,.tastebars{min-width:0;padding:24px;align-self:center}
.tastebar{padding:8px 0 12px;border-bottom:1px solid var(--line-soft)}.tastebar:last-child{border-bottom:0}.tastebar>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:var(--fs-sm)}
.insightpanel{overflow:hidden;border:1px solid var(--line-soft);border-radius:var(--floating-radius);background:var(--ground)}.insightpanel>header{min-height:52px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid var(--line-soft)}.insightpanel>header h3{margin:0;font-size:var(--fs-md)}.insightpanel>header p{margin:2px 0 0;color:var(--muted);font-size:var(--fs-xs)}.insightpanelbody{min-width:0;padding:14px 16px 16px}
-.insighttabs{min-width:0;display:flex;align-self:stretch;align-items:stretch;gap:24px;overflow-x:auto;overscroll-behavior-x:contain}.insighttabs button{position:relative;flex:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:var(--fs-sm);cursor:pointer}.insighttabs button:hover,.insighttabs button[aria-selected="true"]{color:var(--ink)}.insighttabs button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}.insightempty{padding:16px}
-.insightranking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:0;border-top:1px solid var(--line-soft);border-left:1px solid var(--line-soft);list-style:none}.insightranking>li{min-width:0}.insightrankrow{width:100%;min-width:0;min-height:44px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 12px;border:0;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);background:transparent;color:var(--ink);text-align:left;cursor:pointer}.insightrankrow:hover{background:var(--overlay-5)}.insightrankrow>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.insightrankrow b{color:var(--ink-2);font-weight:500;font-variant-numeric:tabular-nums}.insightrankpos{color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}
-.insightstorage{align-self:stretch;overflow-x:auto;overscroll-behavior-x:contain}
-.kv{display:flex;justify-content:space-between;align-items:baseline;padding:6px 0;font-size:var(--fs-sm)}
-.kv>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:10px}
-.kv b{font-variant-numeric:tabular-nums;font-weight:600;min-width:0;max-width:62%;text-align:right;overflow-wrap:anywhere}
-.kv .u{color:var(--muted);font-size:var(--fs-xs);margin-left:5px}
-.statmetric{padding:3px 0 12px;border-bottom:1px solid var(--line-soft)}.statmetric:last-child{padding-bottom:0;border-bottom:0}.geist-progress{height:8px;margin-top:7px;overflow:hidden;border-radius:var(--pill-radius);background:var(--line-soft)}.geist-progress i{display:block;width:var(--progress-value);height:100%;border-radius:inherit;background:var(--tungsten)}
+.insighttabs{min-width:0;display:flex;align-self:stretch;align-items:stretch;gap:24px;overflow-x:auto;overscroll-behavior-x:contain}.insighttabs button{position:relative;flex:none;border:0;background:transparent;color:var(--muted);font:inherit;font-size:var(--fs-sm);cursor:pointer}.insighttabs button:hover,.insighttabs button[aria-selected="true"]{color:var(--ink)}.insighttabs button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--ink)}
+.geist-progress{height:8px;margin-top:7px;overflow:hidden;border-radius:var(--pill-radius);background:var(--line-soft)}.geist-progress i{display:block;width:var(--progress-value);height:100%;border-radius:inherit;background:var(--tungsten)}
.tastecovermetric{display:grid;gap:7px;padding:14px 0}.tastecovermetric+.tastecovermetric{border-top:1px solid var(--line-soft)}.tastecovermetric>span,.tastecovermetric>small{color:var(--muted);font-size:var(--fs-xs)}.tastecovermetric>b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}
.tastehero{margin-bottom:16px}.tasteanalysis{margin-bottom:16px}.tasteranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tasteranks-tags{grid-template-columns:repeat(4,minmax(0,1fr))}.tasterank{width:100%;min-width:0;min-height:58px;box-sizing:border-box;display:grid;grid-template-columns:32px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);text-align:left}.tasterank-tag{min-height:54px;padding:8px 10px}.tasterank-visual{grid-template-columns:32px 30px minmax(0,1fr) 18px}.tasterank:is(button){cursor:pointer}.tasterank:is(button):hover{border-color:var(--border-15);background:var(--hover)}.tasterank:is(button):focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tasterank>span:nth-last-child(2){min-width:0}.tasterank b,.tasterank small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tasterank small{margin-top:2px;color:var(--muted);font-size:var(--fs-xs);font-weight:400}.tasterank>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}.tastepos{width:100%;text-align:center;color:var(--muted);font-size:var(--fs-xs);font-variant-numeric:tabular-nums}.tasteavatar{position:relative;width:30px;height:30px;overflow:hidden;border-radius:50%;background:var(--overlay-5);display:grid;place-items:center;color:var(--muted);font-size:var(--fs-xs);font-weight:600}.tasteavatar .ini{position:absolute;inset:0;display:grid;place-items:center}.tasteavatar img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover}.tasteavatar.tastesite{border-radius:var(--surface-radius)}.tasteavatar.tastesite img{inset:5px;width:20px;height:20px;object-fit:contain}
.tastesources{margin-top:16px}.tastesources>header{min-height:0;padding-block:14px}.tastesources .insightpanelbody{padding:16px}.tastesources .insightpanelbody>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tastesource{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--control-radius);background:var(--overlay-5)}.tastebrowser{width:32px;height:32px;border-radius:var(--control-radius);background:var(--overlay-5);display:grid;place-items:center;color:var(--ink-2)}.tastebrowser svg,.tastesource>button svg{width:17px;height:17px;stroke:currentColor;fill:none}.tastesource b,.tastesource small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tastesource small{color:var(--muted);font-size:var(--fs-xs);margin-top:2px}.tastesource>button{width:32px;height:32px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}.tastesource>button:hover{background:var(--hover);color:var(--drop)}
@@ -47,6 +40,5 @@
.tasteconfidence>i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--muted)}
.tasteconfidence.medium>i{background:var(--meter)}
.tasteconfidence.high>i{background:var(--keep)}.tasteinsights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.tasteinsight{min-width:0;display:grid;gap:3px;padding:10px 12px;border:0;border-radius:var(--control-radius);background:var(--inset)}.tasteinsight>span{color:var(--muted);font-size:var(--fs-xs)}.tasteinsight>b{font-size:var(--fs-sm);font-weight:500;overflow-wrap:anywhere}.tasteleadlist{display:grid;gap:8px}.tastelead{width:100%;min-width:0;box-sizing:border-box;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;padding:9px 12px;border:0;border-radius:var(--control-radius);background:var(--inset);color:var(--ink);text-align:left;cursor:pointer}.tastelead:hover{background:color-mix(in srgb,var(--inset) 94%,var(--ink))}.tastelead:focus-visible{position:relative;z-index:1;outline:2px solid var(--tungsten);outline-offset:-2px}.tastelead>span{min-width:0}.tastelead b,.tastelead small{display:block}.tastelead b{font-weight:500}.tastelead small{margin-top:3px;color:var(--muted);font-size:var(--fs-xs);line-height:1.4}.tastelead>svg{justify-self:end;width:16px;height:16px;stroke:currentColor;fill:none}
-@media(max-width:900px){.insightdetailbody,.tastehero{grid-template-columns:minmax(220px,40%) minmax(0,1fr)}.tasteranks{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteinsights{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteranks-tags{grid-template-columns:repeat(3,minmax(0,1fr))}.tastesources .insightpanelbody>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
-@media(max-width:640px){.insighttoolbar,.tastehead{align-items:stretch}.tasteactions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;margin-left:0}.tasteactions .splitbutton{width:100%}.tasteactions .splitmain{flex:1}.insightswitch{align-self:flex-start}.metricstrip,.tastesummaries{grid-auto-columns:minmax(168px,82%)}.insightdetailbody,.tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}.insightcopy{border-right:0;border-bottom:1px solid var(--line-soft);padding:22px 18px}.insightcopy h2{font-size:var(--fs-3xl)}.insightcopy p{max-width:none;margin-top:18px}.insightvisual,.insightfacts,.tastebars{padding:18px}.insightpanel>header{padding:0 14px}.insightpanelbody{padding:12px}.tasteranks,.tasteranks-tags,.tasteinsights,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.tastesummary>b{font-size:var(--fs-xl)}.tastesource{grid-template-columns:32px minmax(0,1fr) 32px}}
-@media(max-width:640px){.insightranking{grid-template-columns:minmax(0,1fr)}.insightstorage{padding:0}}
+@media(max-width:900px){.tastehero{grid-template-columns:minmax(220px,40%) minmax(0,1fr)}.tasteranks{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteinsights{grid-template-columns:repeat(2,minmax(0,1fr))}.tasteranks-tags{grid-template-columns:repeat(3,minmax(0,1fr))}.tastesources .insightpanelbody>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
+@media(max-width:640px){.insighttoolbar,.tastehead{align-items:stretch}.tasteactions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;margin-left:0}.tasteactions .splitbutton{width:100%}.tasteactions .splitmain{flex:1}.insightswitch{align-self:flex-start}.metricstrip,.tastesummaries{grid-auto-columns:minmax(168px,82%)}.tastehero{min-height:0;grid-template-columns:minmax(0,1fr)}.insightcopy{border-right:0;border-bottom:1px solid var(--line-soft);padding:22px 18px}.insightcopy h2{font-size:var(--fs-3xl)}.insightcopy p{max-width:none;margin-top:18px}.insightvisual,.tastebars{padding:18px}.insightpanel>header{padding:0 14px}.insightpanelbody{padding:12px}.tasteranks,.tasteranks-tags,.tasteinsights,.tastesources .insightpanelbody>div{grid-template-columns:minmax(0,1fr)}.tastesummary>b{font-size:var(--fs-xl)}.tastesource{grid-template-columns:32px minmax(0,1fr) 32px}}
diff --git a/web/dist/peach-react.css b/web/dist/peach-react.css
index 36961e9b9..f208621c3 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-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-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}}.\@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}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.right-1{right:var(--spacing)}.bottom-1{bottom:var(--spacing)}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.z-50{z-index:50}.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}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.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-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.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-96{max-height:calc(var(--spacing) * 96)}.max-h-\[240px\]{max-height:240px}.max-h-full{max-height:100%}.min-h-0{min-height:0}.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-52{width:calc(var(--spacing) * 52)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-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-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-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.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-5{gap:calc(var(--spacing) * 5)}.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-black{background-color:var(--color-black)}.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-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-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}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.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)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.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-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-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-1{padding-top:var(--spacing)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-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))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.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}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.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}.empty\:hidden:empty{display:none}@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\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-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%}@media (width>=40rem){.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@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}
+@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-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-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;--font-weight-normal:400;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--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-display-4-medium:2rem;--text-display-4-medium--line-height:2.75rem;--text-display-4-medium--letter-spacing:0;--text-display-4-medium--font-weight:500;--text-title-1-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-medium:1.25rem;--text-title-2-medium--line-height:1.625rem;--text-title-2-medium--letter-spacing:0;--text-title-2-medium--font-weight:500;--text-title-2-semibold:1.25rem;--text-title-2-semibold--line-height:1.625rem;--text-title-2-semibold--letter-spacing:0;--text-title-2-semibold--font-weight:600;--text-title-3-semibold:1.125rem;--text-title-3-semibold--line-height:1.625rem;--text-title-3-semibold--letter-spacing:0;--text-title-3-semibold--font-weight:600;--text-headline-medium:1rem;--text-headline-medium--line-height:1.375rem;--text-headline-medium--letter-spacing:0;--text-headline-medium--font-weight:500;--text-body-regular:.875rem;--text-body-regular--line-height:1.25rem;--text-body-regular--letter-spacing:0;--text-body-regular--font-weight:400;--text-body-medium:.875rem;--text-body-medium--line-height:1.25rem;--text-body-medium--letter-spacing:0;--text-body-medium--font-weight:500;--text-body-2-regular:.8125rem;--text-body-2-regular--line-height:1.125rem;--text-body-2-regular--letter-spacing:0;--text-body-2-regular--font-weight:400;--text-body-2-medium:.8125rem;--text-body-2-medium--line-height:1.125rem;--text-body-2-medium--letter-spacing:0;--text-body-2-medium--font-weight:500;--text-caption-1-regular:.75rem;--text-caption-1-regular--line-height:1rem;--text-caption-1-regular--letter-spacing:.15px;--text-caption-1-regular--font-weight:400;--text-caption-1-medium:.75rem;--text-caption-1-medium--line-height:1rem;--text-caption-1-medium--letter-spacing:.15px;--text-caption-1-medium--font-weight:500;--text-caption-1-semibold:.75rem;--text-caption-1-semibold--line-height:1rem;--text-caption-1-semibold--letter-spacing:.15px;--text-caption-1-semibold--font-weight:600;--container-board:var(--board-content,1120px);--container-card-cover:150px;--aspect-card-cover:16 / 10;--container-avatar-picker:720px;--aspect-avatar-choice:3 / 4;--color-scrim:#0009}@supports (color:color-mix(in lab, red, red)){:root,:host{--color-scrim:color-mix(in srgb, var(--color-black) 60%, transparent)}}}.\@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}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-\[3px\]{top:3px}.right-1{right:var(--spacing)}.bottom-1{bottom:var(--spacing)}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1{left:var(--spacing)}.left-\[3px\]{left:3px}.z-50{z-index:50}.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}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mr-auto{margin-right:auto}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));display:grid}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.inline-grid{display:inline-grid}.table{display:table}.aspect-avatar-choice{aspect-ratio:var(--aspect-avatar-choice)}.aspect-card-cover{aspect-ratio:var(--aspect-card-cover)}.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-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-\[5px\]{width:5px;height:5px}.size-\[7\.5px\]{width:7.5px;height:7.5px}.size-\[10px\]{width:10px;height:10px}.size-\[18px\]{width:18px;height:18px}.size-full{width:100%;height:100%}.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-64{height:calc(var(--spacing) * 64)}.h-full{height:100%}.h-max{height:max-content}.max-h-96{max-height:calc(var(--spacing) * 96)}.max-h-\[240px\]{max-height:240px}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\[52px\]{min-height:52px}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-14{width:calc(var(--spacing) * 14)}.w-52{width:calc(var(--spacing) * 52)}.w-72{width:calc(var(--spacing) * 72)}.w-\[42px\]{width:42px}.w-\[202px\]{width:202px}.w-\[266px\]{width:266px}.w-card-cover{width:var(--container-card-cover)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-avatar-picker{max-width:var(--container-avatar-picker)}.max-w-board{max-width:var(--container-board)}.max-w-full{max-width:100%}.max-w-prose{max-width:65ch}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-40{flex-basis:calc(var(--spacing) * 40)}.basis-64{flex-basis:calc(var(--spacing) * 64)}.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-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-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.content-start{align-content:flex-start}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.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-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-\[5px\]{gap:5px}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-x-8{column-gap:calc(var(--spacing) * 8)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-6{row-gap:calc(var(--spacing) * 6)}.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-x-auto{overflow-x:auto}.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-xl{border-radius:var(--radius-xl)}.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-black{background-color:var(--color-black)}.bg-button-ghost-background{background-color:var(--color-button-ghost-background)}.bg-chart-1{background-color:var(--color-chart-1)}.bg-chart-2{background-color:var(--color-chart-2)}.bg-chart-3{background-color:var(--color-chart-3)}.bg-chart-4{background-color:var(--color-chart-4)}.bg-chart-5{background-color:var(--color-chart-5)}.bg-chart-6{background-color:var(--color-chart-6)}.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-scrim{background-color:var(--color-scrim)}.bg-status-blue-background{background-color:var(--color-status-blue-background)}.bg-status-cyan-background{background-color:var(--color-status-cyan-background)}.bg-status-lime-background{background-color:var(--color-status-lime-background)}.bg-status-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-chart-1{stroke:var(--color-chart-1)}.stroke-chart-2{stroke:var(--color-chart-2)}.stroke-chart-3{stroke:var(--color-chart-3)}.stroke-chart-4{stroke:var(--color-chart-4)}.stroke-chart-5{stroke:var(--color-chart-5)}.stroke-chart-6{stroke:var(--color-chart-6)}.stroke-chart-track{stroke:var(--color-chart-track)}.stroke-current{stroke:currentColor}.stroke-2{stroke-width:2px}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.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)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.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-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-\[7px\]{padding-inline:7px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-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-1{padding-top:var(--spacing)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-px{padding-top:1px}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-1{padding-bottom:var(--spacing)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pl-1{padding-left:var(--spacing)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.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-display-4-medium{font-size:var(--text-display-4-medium);line-height:var(--tw-leading,var(--text-display-4-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-display-4-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-display-4-medium--font-weight))}.text-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-medium{font-size:var(--text-title-2-medium);line-height:var(--tw-leading,var(--text-title-2-medium--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-medium--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-medium--font-weight))}.text-title-2-semibold{font-size:var(--text-title-2-semibold);line-height:var(--tw-leading,var(--text-title-2-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-2-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-2-semibold--font-weight))}.text-title-3-semibold{font-size:var(--text-title-3-semibold);line-height:var(--tw-leading,var(--text-title-3-semibold--line-height));letter-spacing:var(--tw-tracking,var(--text-title-3-semibold--letter-spacing));font-weight:var(--tw-font-weight,var(--text-title-3-semibold--font-weight))}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.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)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-3{text-underline-offset:3px}.underline-offset-4{text-underline-offset:4px}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.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-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[var\(--input-transition-ms\)\]{--tw-duration:var(--input-transition-ms);transition-duration:var(--input-transition-ms)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.ring-inset{--tw-ring-inset:inset}.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}.empty\:hidden:empty{display:none}@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\:cursor-progress[aria-disabled=true]{cursor:progress}.aria-disabled\:border-border-button-default[aria-disabled=true]{border-color:var(--color-border-button-default)}.aria-disabled\:bg-background-primary-disabled[aria-disabled=true]{background-color:var(--color-background-primary-disabled)}.aria-disabled\:bg-button-ghost-disabled[aria-disabled=true]{background-color:var(--color-button-ghost-disabled)}.aria-disabled\:text-button-ghost-disabled-foreground[aria-disabled=true]{color:var(--color-button-ghost-disabled-foreground)}.aria-disabled\:text-button-primary-disabled-foreground[aria-disabled=true]{color:var(--color-button-primary-disabled-foreground)}.aria-disabled\:text-foreground-disabled-danger[aria-disabled=true]{color:var(--color-foreground-disabled-danger)}.aria-disabled\:text-text-tertiary[aria-disabled=true]{color:var(--color-text-tertiary)}.aria-disabled\:no-underline[aria-disabled=true]{text-decoration-line:none}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}.aria-disabled\:shadow-none[aria-disabled=true]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.aria-invalid\:placeholder\:text-text-error-placeholder[aria-invalid=true]::placeholder{color:var(--color-text-error-placeholder)}.aria-pressed\:bg-background-primary-hover[aria-pressed=true]{background-color:var(--color-background-primary-hover)}.aria-selected\:border-border-focus-ring[aria-selected=true]{border-color:var(--color-border-focus-ring)}.aria-selected\:text-text-primary[aria-selected=true]{color:var(--color-text-primary)}.data-selected\:border-border-focus-ring[data-selected]{border-color:var(--color-border-focus-ring)}.data-selected\:bg-background-tertiary-default[data-selected]{background-color:var(--color-background-tertiary-default)}.data-selected\:bg-dropdown-item-hover-background[data-selected]{background-color:var(--color-dropdown-item-hover-background)}.data-selected\:text-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%}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width>=48rem){.md\:w-64{width:calc(var(--spacing) * 64)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:calc(var(--spacing) * 6)}.md\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.md\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}.md\:pb-0{padding-bottom:0}}@media (width>=64rem){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container (width>=28rem){.\@md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container (width>=32rem){.\@lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@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-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-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 8fea81a0c..7a53409fd 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -6568,8 +6568,33 @@ function wc(e, t) {
return t.current ? !e.composedPath().includes(t.current) : !1;
}
//#endregion
+//#region node_modules/react-aria/dist/private/focus/useHasTabbableChild.mjs
+function Tc(e, t) {
+ let n = t?.isDisabled, [r, i] = (0, x.useState)(!1);
+ return V(() => {
+ if (e?.current && !n) {
+ let t = () => {
+ if (e.current) {
+ let t = Ka(e.current, { tabbable: !0 });
+ i(!!t.nextNode());
+ }
+ };
+ t();
+ let n = new MutationObserver(t);
+ return n.observe(e.current, {
+ subtree: !0,
+ childList: !0,
+ attributes: !0,
+ attributeFilter: ["tabIndex", "disabled"]
+ }), () => {
+ n.disconnect();
+ };
+ }
+ }), !n && r;
+}
+//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableList.mjs
-function Tc(e) {
+function Ec(e) {
let { selectionManager: t, collection: n, disabledKeys: r, ref: i, keyboardDelegate: a, layoutDelegate: o, orientation: s } = e, c = oc({
usage: "search",
sensitivity: "base"
@@ -6600,7 +6625,7 @@ function Tc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/selection/useSelectableItem.mjs
-function Ec(e) {
+function Dc(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 = mn();
t = dr(t);
let p = (e) => {
@@ -6647,20 +6672,20 @@ function Ec(e) {
l && (l(), i.current?.dispatchEvent(new CustomEvent("react-aria-item-action", { bubbles: !0 }))), _ && 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 || Oc(e.key)) && p(e);
+ w.current = e.pointerType, E.current = T, e.pointerType === "keyboard" && (!C || kc(e.key)) && p(e);
}, u ? (A.onPressUp = b ? void 0 : (e) => {
e.pointerType === "mouse" && v && p(e);
}, A.onPress = b ? k : (e) => {
e.pointerType !== "keyboard" && e.pointerType !== "mouse" && v && p(e);
}) : A.onPress = (e) => {
if (b || S && e.pointerType !== "mouse") {
- if (e.pointerType === "keyboard" && !Dc(e.key)) return;
+ if (e.pointerType === "keyboard" && !Oc(e.key)) return;
k(e);
} else e.pointerType !== "keyboard" && v && p(e);
}) : (A.onPressStart = (e) => {
- w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || Oc(e.key))) && p(e);
+ w.current = e.pointerType, E.current = T, D.current = b, v && (e.pointerType === "mouse" && !b || e.pointerType === "keyboard" && (!y || kc(e.key))) && p(e);
}, A.onPress = (e) => {
- (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Dc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
+ (e.pointerType === "touch" || e.pointerType === "pen" || e.pointerType === "virtual" || e.pointerType === "keyboard" && C && Oc(e.key) || e.pointerType === "mouse" && D.current) && (C ? k(e) : v && p(e));
});
let ee = ts(n.collection);
if (m["data-collection"] = ee, m["data-key"] = r, A.preventFocusOnPress = o, o && (A = H(A, {
@@ -6729,18 +6754,18 @@ function Ec(e) {
hasAction: C
};
}
-function Dc(e) {
+function Oc(e) {
return e === "Enter";
}
-function Oc(e) {
+function kc(e) {
return e === " ";
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBox.mjs
-function kc(e, t, n) {
+function Ac(e, t, n) {
let r = U(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 } = Tc({
+ let { listProps: s } = Ec({
...e,
ref: n,
selectionManager: t.selectionManager,
@@ -6778,7 +6803,7 @@ function kc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useListBoxSection.mjs
-function Ac(e) {
+function jc(e) {
let { heading: t, "aria-label": n } = e, r = dr();
return {
itemProps: { role: "presentation" },
@@ -6798,7 +6823,7 @@ function Ac(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/listbox/useOption.mjs
-function jc(e, t, n) {
+function Mc(e, t, n) {
let { key: r } = e, i = Jo.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 = pr(), f = pr(), p = {
role: "option",
"aria-disabled": a || void 0,
@@ -6811,7 +6836,7 @@ function jc(e, t, n) {
let e = Number(m?.index);
p["aria-posinset"] = Number.isNaN(e) ? void 0 : e + 1, p["aria-setsize"] = ic(t.collection);
}
- let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Xo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Ec({
+ let h = i?.onAction ? () => i?.onAction?.(r) : void 0, g = Xo(t, r), { itemProps: _, isPressed: v, isFocused: y, hasAction: b, allowsSelection: x } = Dc({
selectionManager: t.selectionManager,
key: r,
ref: n,
@@ -6851,15 +6876,15 @@ function jc(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useResizeObserver.mjs
-function Mc() {
+function Nc() {
return window.ResizeObserver !== void 0;
}
-function Nc(e) {
+function Pc(e) {
let { ref: t, box: n, onResize: r } = e, i = yi(r);
(0, x.useEffect)(() => {
let e = t?.current;
if (e) {
- if (Mc()) {
+ if (Nc()) {
let t = new window.ResizeObserver((e) => {
e.length && i();
});
@@ -6875,186 +6900,186 @@ function Nc(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ar-AE.mjs
-var Pc = {};
-Pc = { dismiss: "تجاهل" };
+var Fc = {};
+Fc = { dismiss: "تجاهل" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/bg-BG.mjs
-var Fc = {};
-Fc = { dismiss: "Отхвърляне" };
+var Ic = {};
+Ic = { dismiss: "Отхвърляне" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/cs-CZ.mjs
-var Ic = {};
-Ic = { dismiss: "Odstranit" };
+var Lc = {};
+Lc = { dismiss: "Odstranit" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/da-DK.mjs
-var Lc = {};
-Lc = { dismiss: "Luk" };
+var Rc = {};
+Rc = { dismiss: "Luk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/de-DE.mjs
-var Rc = {};
-Rc = { dismiss: "Schließen" };
+var zc = {};
+zc = { dismiss: "Schließen" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/el-GR.mjs
-var zc = {};
-zc = { dismiss: "Απόρριψη" };
+var Bc = {};
+Bc = { dismiss: "Απόρριψη" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/en-US.mjs
-var Bc = {};
-Bc = { dismiss: "Dismiss" };
+var Vc = {};
+Vc = { dismiss: "Dismiss" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/es-ES.mjs
-var Vc = {};
-Vc = { dismiss: "Descartar" };
+var Hc = {};
+Hc = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/et-EE.mjs
-var Hc = {};
-Hc = { dismiss: "Lõpeta" };
+var Uc = {};
+Uc = { dismiss: "Lõpeta" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fi-FI.mjs
-var Uc = {};
-Uc = { dismiss: "Hylkää" };
+var Wc = {};
+Wc = { dismiss: "Hylkää" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/fr-FR.mjs
-var Wc = {};
-Wc = { dismiss: "Rejeter" };
+var Gc = {};
+Gc = { dismiss: "Rejeter" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/he-IL.mjs
-var Gc = {};
-Gc = { dismiss: "התעלם" };
+var Kc = {};
+Kc = { dismiss: "התעלם" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hr-HR.mjs
-var Kc = {};
-Kc = { dismiss: "Odbaci" };
+var qc = {};
+qc = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/hu-HU.mjs
-var qc = {};
-qc = { dismiss: "Elutasítás" };
+var Jc = {};
+Jc = { dismiss: "Elutasítás" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/it-IT.mjs
-var Jc = {};
-Jc = { dismiss: "Ignora" };
+var Yc = {};
+Yc = { dismiss: "Ignora" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ja-JP.mjs
-var Yc = {};
-Yc = { dismiss: "閉じる" };
+var Xc = {};
+Xc = { dismiss: "閉じる" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ko-KR.mjs
-var Xc = {};
-Xc = { dismiss: "무시" };
+var Zc = {};
+Zc = { dismiss: "무시" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lt-LT.mjs
-var Zc = {};
-Zc = { dismiss: "Atmesti" };
+var Qc = {};
+Qc = { dismiss: "Atmesti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/lv-LV.mjs
-var Qc = {};
-Qc = { dismiss: "Nerādīt" };
+var $c = {};
+$c = { dismiss: "Nerādīt" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nb-NO.mjs
-var $c = {};
-$c = { dismiss: "Lukk" };
+var el = {};
+el = { dismiss: "Lukk" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/nl-NL.mjs
-var el = {};
-el = { dismiss: "Negeren" };
+var tl = {};
+tl = { dismiss: "Negeren" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pl-PL.mjs
-var tl = {};
-tl = { dismiss: "Zignoruj" };
+var nl = {};
+nl = { dismiss: "Zignoruj" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-BR.mjs
-var nl = {};
-nl = { dismiss: "Descartar" };
+var rl = {};
+rl = { dismiss: "Descartar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/pt-PT.mjs
-var rl = {};
-rl = { dismiss: "Dispensar" };
+var il = {};
+il = { dismiss: "Dispensar" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ro-RO.mjs
-var il = {};
-il = { dismiss: "Revocare" };
+var al = {};
+al = { dismiss: "Revocare" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/ru-RU.mjs
-var al = {};
-al = { dismiss: "Пропустить" };
+var ol = {};
+ol = { dismiss: "Пропустить" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sk-SK.mjs
-var ol = {};
-ol = { dismiss: "Zrušiť" };
+var sl = {};
+sl = { dismiss: "Zrušiť" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sl-SI.mjs
-var sl = {};
-sl = { dismiss: "Opusti" };
+var cl = {};
+cl = { dismiss: "Opusti" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sr-SP.mjs
-var cl = {};
-cl = { dismiss: "Odbaci" };
+var ll = {};
+ll = { dismiss: "Odbaci" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/sv-SE.mjs
-var ll = {};
-ll = { dismiss: "Avvisa" };
+var ul = {};
+ul = { dismiss: "Avvisa" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/tr-TR.mjs
-var ul = {};
-ul = { dismiss: "Kapat" };
+var dl = {};
+dl = { dismiss: "Kapat" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/uk-UA.mjs
-var dl = {};
-dl = { dismiss: "Скасувати" };
+var fl = {};
+fl = { dismiss: "Скасувати" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-CN.mjs
-var fl = {};
-fl = { dismiss: "取消" };
+var pl = {};
+pl = { dismiss: "取消" };
//#endregion
//#region node_modules/react-aria/dist/private/intl/overlays/zh-TW.mjs
-var pl = {};
-pl = { dismiss: "關閉" };
+var ml = {};
+ml = { dismiss: "關閉" };
//#endregion
//#region node_modules/react-aria/dist/private/overlays/intlStrings.mjs
-var ml = {};
-ml = {
- "ar-AE": Pc,
- "bg-BG": Fc,
- "cs-CZ": Ic,
- "da-DK": Lc,
- "de-DE": Rc,
- "el-GR": zc,
- "en-US": Bc,
- "es-ES": Vc,
- "et-EE": Hc,
- "fi-FI": Uc,
- "fr-FR": Wc,
- "he-IL": Gc,
- "hr-HR": Kc,
- "hu-HU": qc,
- "it-IT": Jc,
- "ja-JP": Yc,
- "ko-KR": Xc,
- "lt-LT": Zc,
- "lv-LV": Qc,
- "nb-NO": $c,
- "nl-NL": el,
- "pl-PL": tl,
- "pt-BR": nl,
- "pt-PT": rl,
- "ro-RO": il,
- "ru-RU": al,
- "sk-SK": ol,
- "sl-SI": sl,
- "sr-SP": cl,
- "sv-SE": ll,
- "tr-TR": ul,
- "uk-UA": dl,
- "zh-CN": fl,
- "zh-TW": pl
+var hl = {};
+hl = {
+ "ar-AE": Fc,
+ "bg-BG": Ic,
+ "cs-CZ": Lc,
+ "da-DK": Rc,
+ "de-DE": zc,
+ "el-GR": Bc,
+ "en-US": Vc,
+ "es-ES": Hc,
+ "et-EE": Uc,
+ "fi-FI": Wc,
+ "fr-FR": Gc,
+ "he-IL": Kc,
+ "hr-HR": qc,
+ "hu-HU": Jc,
+ "it-IT": Yc,
+ "ja-JP": Xc,
+ "ko-KR": Zc,
+ "lt-LT": Qc,
+ "lv-LV": $c,
+ "nb-NO": el,
+ "nl-NL": tl,
+ "pl-PL": nl,
+ "pt-BR": rl,
+ "pt-PT": il,
+ "ro-RO": al,
+ "ru-RU": ol,
+ "sk-SK": sl,
+ "sl-SI": cl,
+ "sr-SP": ll,
+ "sv-SE": ul,
+ "tr-TR": dl,
+ "uk-UA": fl,
+ "zh-CN": pl,
+ "zh-TW": ml
};
//#endregion
//#region node_modules/react-aria/dist/private/overlays/DismissButton.mjs
-function hl(e) {
+function gl(e) {
return e && e.__esModule ? e.default : e;
}
-function gl(e) {
- let { onDismiss: t, ...n } = e, r = xi(n, Ki(hl(ml), "@react-aria/overlays").format("dismiss")), i = () => {
+function _l(e) {
+ let { onDismiss: t, ...n } = e, r = xi(n, Ki(gl(hl), "@react-aria/overlays").format("dismiss")), i = () => {
t && t();
};
return /*#__PURE__*/ x.createElement(Bo, null, /*#__PURE__*/ x.createElement("button", {
@@ -7069,22 +7094,22 @@ function gl(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useOverlay.mjs
-var _l = [];
-function vl(e, t) {
+var vl = [];
+function yl(e, t) {
let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: a = !1, isKeyboardDismissDisabled: o = !1, shouldCloseOnInteractOutside: s } = e, c = (0, x.useRef)(void 0);
(0, x.useEffect)(() => {
- if (i && !_l.includes(t)) return _l.push(t), () => {
- let e = _l.indexOf(t);
- e >= 0 && _l.splice(e, 1);
+ if (i && !vl.includes(t)) return vl.push(t), () => {
+ let e = vl.indexOf(t);
+ e >= 0 && vl.splice(e, 1);
};
}, [i, t]);
let l = () => {
- _l[_l.length - 1] === t && n && n();
+ vl[vl.length - 1] === t && n && n();
}, u = (e) => {
- let n = _l[_l.length - 1];
+ let n = vl[vl.length - 1];
c.current = n, (!s || s(z(e))) && n === t && e.stopPropagation();
}, d = (e) => {
- (!s || s(z(e))) && (_l[_l.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
+ (!s || s(z(e))) && (vl[vl.length - 1] === t && e.stopPropagation(), c.current === t && l()), c.current = void 0;
}, { keyboardProps: f } = Mr({ shortcuts: { Escape: () => {
if (!o) {
l();
@@ -7113,20 +7138,20 @@ function vl(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
-var yl = typeof document < "u" && window.visualViewport, bl = 0, xl;
-function Sl(e = {}) {
+var bl = typeof document < "u" && window.visualViewport, xl = 0, Sl;
+function Cl(e = {}) {
let { isDisabled: t } = e;
V(() => {
- if (!t) return bl++, bl === 1 && (xl = an() && sn() ? wl() : Cl()), () => {
- bl--, bl === 0 && xl();
+ if (!t) return xl++, xl === 1 && (Sl = an() && sn() ? Tl() : wl()), () => {
+ xl--, xl === 0 && Sl();
};
}, [t]);
}
-function Cl() {
+function wl() {
let e = window.innerWidth - document.documentElement.clientWidth;
return ar(e > 0 && ("scrollbarGutter" in document.documentElement.style ? Mt(document.documentElement, "scrollbar-gutter", "stable") : Mt(document.documentElement, "padding-right", `${e}px`)), Mt(document.documentElement, "overflow", "hidden"));
}
-function wl() {
+function Tl() {
let e = Mt(document.documentElement, "overflow", "hidden"), t, n = !1, r = (e) => {
let r = z(e);
t = eo(r) ? r : to(r, !0), n = !1;
@@ -7144,7 +7169,7 @@ function wl() {
}
}, s = (e) => {
let t = z(e), n = e.relatedTarget;
- n && _i(n) ? (n.focus({ preventScroll: !0 }), Tl(n, _i(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
+ n && _i(n) ? (n.focus({ preventScroll: !0 }), El(n, _i(t))) : n || (t.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: !0 });
}, c = HTMLElement.prototype.focus;
Reflect.defineProperty(HTMLElement.prototype, "focus", {
configurable: !0,
@@ -7154,7 +7179,7 @@ function wl() {
c.call(this, {
...e,
preventScroll: !0
- }), (!e || !e.preventScroll) && Tl(this, n);
+ }), (!e || !e.preventScroll) && El(this, n);
}
});
let l = ar(jt(document, "touchstart", r, {
@@ -7172,10 +7197,10 @@ function wl() {
});
};
}
-function Tl(e, t) {
- t || !yl ? El(e) : yl.addEventListener("resize", () => El(e), { once: !0 });
+function El(e, t) {
+ t || !bl ? Dl(e) : bl.addEventListener("resize", () => Dl(e), { once: !0 });
}
-function El(e) {
+function Dl(e) {
let t = document.scrollingElement || document.documentElement, n = e;
for (; n && n !== t;) {
let e = to(n);
@@ -7183,7 +7208,7 @@ function El(e) {
let t = e.getBoundingClientRect(), r = n.getBoundingClientRect();
if (r.top < t.top || r.bottom > t.top + n.clientHeight) {
let n = t.bottom;
- yl && (n = Math.min(n, yl.offsetTop + yl.height));
+ bl && (n = Math.min(n, bl.offsetTop + bl.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)),
@@ -7196,13 +7221,13 @@ function El(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/useModalOverlay.mjs
-function Dl(e, t, n) {
- let { overlayProps: r, underlayProps: i } = vl({
+function Ol(e, t, n) {
+ let { overlayProps: r, underlayProps: i } = yl({
...e,
isOpen: t.isOpen,
onClose: t.close
}, n);
- return Sl({ isDisabled: !t.isOpen }), pc(), (0, x.useEffect)(() => {
+ return Cl({ isDisabled: !t.isOpen }), pc(), (0, x.useEffect)(() => {
if (t.isOpen && n.current) return Ko([n.current], { shouldUseInert: !0 });
}, [t.isOpen, n]), {
modalProps: H(r),
@@ -7211,32 +7236,32 @@ function Dl(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/overlays/calculatePosition.mjs
-var Ol = {
+var kl = {
top: "top",
bottom: "top",
left: "left",
right: "left"
-}, kl = {
+}, Al = {
top: "bottom",
bottom: "top",
left: "right",
right: "left"
-}, Al = {
+}, jl = {
top: "left",
left: "top"
-}, jl = {
+}, Ml = {
top: "height",
left: "width"
-}, Ml = {
+}, Nl = {
width: "totalWidth",
height: "totalHeight"
-}, Nl = {}, Pl = () => typeof document < "u" ? window.visualViewport : null;
-function Fl(e, t) {
+}, Pl = {}, Fl = () => typeof document < "u" ? window.visualViewport : null;
+function Il(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} = Kl(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
+ } else ({width: n, height: r, top: o, left: s} = ql(e, !1)), c.top = e.scrollTop, c.left = e.scrollLeft, i = n, a = r;
return sn() && (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,
@@ -7247,7 +7272,7 @@ function Fl(e, t) {
left: s
};
}
-function Il(e) {
+function Ll(e) {
return {
top: e.scrollTop,
left: e.scrollLeft,
@@ -7255,11 +7280,11 @@ function Il(e) {
height: e.scrollHeight
};
}
-function Ll(e, t, n, r, i, a, o) {
- let s = i.scroll[e] ?? 0, c = r[jl[e]], l = o[e] + r.scroll[Ol[e]] + a, u = o[e] + r.scroll[Ol[e]] + c - a, d = t - s + r.scroll[Ol[e]] + o[e] - r[Ol[e]], f = t - s + n + r.scroll[Ol[e]] + o[e] - r[Ol[e]];
+function Rl(e, t, n, r, i, a, o) {
+ let s = i.scroll[e] ?? 0, c = r[Ml[e]], l = o[e] + r.scroll[kl[e]] + a, u = o[e] + r.scroll[kl[e]] + c - a, d = t - s + r.scroll[kl[e]] + o[e] - r[kl[e]], f = t - s + n + r.scroll[kl[e]] + o[e] - r[kl[e]];
return d < l ? l - d : f > u ? Math.max(u - f, l - d) : 0;
}
-function Rl(e) {
+function zl(e) {
let t = window.getComputedStyle(e);
return {
top: parseInt(t.marginTop, 10) || 0,
@@ -7268,55 +7293,55 @@ function Rl(e) {
right: parseInt(t.marginRight, 10) || 0
};
}
-function zl(e) {
- if (Nl[e]) return Nl[e];
- let [t, n] = e.split(" "), r = Ol[t] || "right", i = Al[r];
- Ol[n] || (n = "center");
- let a = jl[r], o = jl[i];
- return Nl[e] = {
+function Bl(e) {
+ if (Pl[e]) return Pl[e];
+ let [t, n] = e.split(" "), r = kl[t] || "right", i = jl[r];
+ kl[n] || (n = "center");
+ let a = Ml[r], o = Ml[i];
+ return Pl[e] = {
placement: t,
crossPlacement: n,
axis: r,
crossAxis: i,
size: a,
crossSize: o
- }, Nl[e];
+ }, Pl[e];
}
-function Bl(e, t, n, r, i, a, o, s, c, l, u) {
+function Vl(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] = Lo(_[m], v, y), d === p) {
- let t = s ? u[h] : u[Ml[h]];
- _[kl[p]] = Math.floor(t - e[p] + i);
+ let t = s ? u[h] : u[Nl[h]];
+ _[Al[p]] = Math.floor(t - e[p] + i);
} else _[p] = Math.floor(e[p] + e[h] + i);
return _;
}
-function Vl(e, t, n, r, i, a, o, s, c, l, u) {
- let d = (e.top == null ? c[Ml.height] - (e.bottom ?? 0) - o : e.top) - (c.scroll.top ?? 0), f = l ? n.top : 0, p = {
+function Hl(e, t, n, r, i, a, o, s, c, l, u) {
+ let d = (e.top == null ? c[Nl.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 Hl(e, t, n, r, i, a, o, s) {
+function Ul(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[kl[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[kl[l]] - i);
+ return c === l ? Math.max(0, n[l] - (o.scroll[l] ?? 0) - (e[l] + (s ? t[l] : 0)) - (r[l] ?? 0) - r[Al[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[Al[l]] - i);
}
-function Ul(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
- let v = zl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Bl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Hl(s, l, t, i, a + u, v, c, g);
+function Wl(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
+ let v = Bl(e), { size: y, crossAxis: b, crossSize: x, placement: S, crossPlacement: C } = v, w = Vl(t, s, n, v, u, d, l, f, m, h, c), T = u, E = Ul(s, l, t, i, a + u, v, c, g);
if (o && n[y] > E) {
- let e = zl(`${kl[S]} ${C}`), r = Bl(t, s, n, e, u, d, l, f, m, h, c);
- Hl(s, l, t, i, a + u, e, c, g) > E && (v = e, w = r, T = u);
+ let e = Bl(`${Al[S]} ${C}`), r = Vl(t, s, n, e, u, d, l, f, m, h, c);
+ Ul(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 = Ll(b, w[b], n[x], s, c, a, l);
+ let O = Rl(b, w[b], n[x], s, c, a, l);
w[b] += O;
- let k = Vl(w, s, l, f, i, a, n.height, D, c, g, _);
- p && p < k && (k = p), n.height = Math.min(n.height, k), w = Bl(t, s, n, v, T, d, l, f, m, h, c), O = Ll(b, w[b], n[x], s, c, a, l), w[b] += O;
- let A = {}, ee = t[b] - w[b] - i[Ol[b]], j = ee + .5 * t[x], te = m / 2 + h, M = Ol[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
- A[b] = Lo(Lo(j, t[b] + m / 2 - (w[b] + i[Ol[b]]), t[b] + t[x] - m / 2 - (w[b] + i[Ol[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
+ let k = Hl(w, s, l, f, i, a, n.height, D, c, g, _);
+ p && p < k && (k = p), n.height = Math.min(n.height, k), w = Vl(t, s, n, v, T, d, l, f, m, h, c), O = Rl(b, w[b], n[x], s, c, a, l), w[b] += O;
+ let A = {}, ee = t[b] - w[b] - i[kl[b]], j = ee + .5 * t[x], te = m / 2 + h, M = kl[b] === "left" ? (i.left ?? 0) + (i.right ?? 0) : (i.top ?? 0) + (i.bottom ?? 0), ne = n[x] - M - m / 2 - h;
+ A[b] = Lo(Lo(j, t[b] + m / 2 - (w[b] + i[kl[b]]), t[b] + t[x] - m / 2 - (w[b] + i[kl[b]])), te, ne), {placement: S, crossPlacement: C} = v, m ? ee = A[b] : C === "right" ? ee += t[x] : C === "center" && (ee += t[x] / 2);
let N = S === "left" || S === "top" ? n[y] : 0, re = {
x: S === "top" || S === "bottom" ? ee : N,
y: S === "left" || S === "right" ? ee : N
@@ -7330,17 +7355,17 @@ function Ul(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
triggerAnchorPoint: re
};
}
-function Wl(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 = Pl(), h = r instanceof HTMLElement ? Jl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? Kl(n, !1, p) : ql(n, h, !1, p);
+function Gl(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 = Fl(), h = r instanceof HTMLElement ? Yl(r) : document.documentElement, g = h === document.documentElement, _ = window.getComputedStyle(h).position, v = !!_ && _ !== "static", y = g ? ql(n, !1, p) : Jl(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 = Kl(r, !0), x = Rl(r);
+ let b = ql(r, !0), x = zl(r);
b.width += (x.left ?? 0) + (x.right ?? 0), b.height += (x.top ?? 0) + (x.bottom ?? 0);
- let S = Il(i), C = Fl(s, m), w = Fl(h, m), T;
+ let S = Ll(i), C = Il(s, m), w = Il(h, m), T;
if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
- let e = Gl(h, !1);
+ let e = Kl(h, !1);
T = {
top: -(e.top - C.top),
left: -(e.left - C.left),
@@ -7352,11 +7377,11 @@ function Wl(e) {
left: 0,
width: 0,
height: 0
- } : ql(s, h, !1);
+ } : Jl(s, h, !1);
let E = R(s, h);
- return Ul(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
+ return Wl(t, y, b, S, x, a, o, C, w, T, c, l, v, u, d, f, E, m);
}
-function Gl(e, t) {
+function Kl(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,
@@ -7365,8 +7390,8 @@ function Gl(e, t) {
height: a
};
}
-function Kl(e, t, n) {
- let { top: r, left: i, width: a, height: o } = n || Gl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
+function ql(e, t, n) {
+ let { top: r, left: i, width: a, height: o } = n || Kl(e, t), { scrollTop: s, scrollLeft: c, clientTop: l, clientLeft: u } = document.documentElement;
return {
top: r + s - l,
left: i + c - u,
@@ -7374,29 +7399,29 @@ function Kl(e, t, n) {
height: o
};
}
-function ql(e, t, n, r) {
+function Jl(e, t, n, r) {
let i = window.getComputedStyle(e), a;
- if (i.position === "fixed") a = r || Gl(e, n);
+ if (i.position === "fixed") a = r || Kl(e, n);
else {
- a = Kl(e, n, r);
- let i = Kl(t, n), o = window.getComputedStyle(t);
+ a = ql(e, n, r);
+ let i = ql(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 Jl(e) {
+function Yl(e) {
let t = e.offsetParent;
- if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Yl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Yl(t);) t = t.parentElement;
+ if (t && t === document.body && window.getComputedStyle(t).position === "static" && !Xl(t) && (t = document.documentElement), t == null) for (t = e.parentElement; t && !Xl(t);) t = t.parentElement;
return t || document.documentElement;
}
-function Yl(e) {
+function Xl(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 Xl = typeof document < "u" ? window.visualViewport : null;
-function Zl(e) {
+var Zl = typeof document < "u" ? window.visualViewport : null;
+function Ql(e) {
let { direction: t } = Mi(), { 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, x.useState)(null), S = [
p,
s,
@@ -7414,12 +7439,12 @@ function Zl(e) {
g,
_,
n
- ], C = (0, x.useRef)(Xl?.scale);
+ ], C = (0, x.useRef)(Zl?.scale);
(0, x.useEffect)(() => {
- m && (C.current = Xl?.scale);
+ m && (C.current = Zl?.scale);
}, [m]);
let w = (0, x.useCallback)(() => {
- if (p === !1 || !m || !i.current || !r.current || !u || Xl?.scale !== C.current) return;
+ if (p === !1 || !m || !i.current || !r.current || !u || Zl?.scale !== C.current) return;
let e = null;
if (o.current && Lt(o.current)) {
let t = Ft()?.getBoundingClientRect(), n = o.current.getBoundingClientRect();
@@ -7430,8 +7455,8 @@ function Zl(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 = Wl({
- placement: $l(s, t),
+ let y = Gl({
+ placement: eu(s, t),
overlayNode: i.current,
targetNode: r.current,
scrollNode: o.current || i.current,
@@ -7441,7 +7466,7 @@ function Zl(e) {
offset: d,
crossOffset: f,
maxHeight: g,
- arrowSize: n ?? (a?.current ? Gl(a.current, !0).width : 0),
+ arrowSize: n ?? (a?.current ? Kl(a.current, !0).width : 0),
arrowBoundaryOffset: _,
targetRect: v?.(r.current)
});
@@ -7454,10 +7479,10 @@ function Zl(e) {
}
b(y);
}, S);
- V(w, S), Ql(w), Nc({
+ V(w, S), $l(w), Pc({
ref: i,
onResize: w
- }), Nc({
+ }), Pc({
ref: r,
onResize: w
});
@@ -7470,10 +7495,10 @@ function Zl(e) {
}, n = () => {
T.current && t();
};
- Xl?.addEventListener("resize", t), Xl?.addEventListener("scroll", n);
+ Zl?.addEventListener("resize", t), Zl?.addEventListener("scroll", n);
let r = jt(It(window), "scroll", n);
return () => {
- Xl?.removeEventListener("resize", t), Xl?.removeEventListener("scroll", n), r();
+ Zl?.removeEventListener("resize", t), Zl?.removeEventListener("scroll", n), r();
};
}, [w]);
let E = (0, x.useCallback)(() => {
@@ -7505,25 +7530,25 @@ function Zl(e) {
updatePosition: w
};
}
-function Ql(e) {
+function $l(e) {
V(() => (window.addEventListener("resize", e, !1), () => {
window.removeEventListener("resize", e, !1);
}), [e]);
}
-function $l(e, t) {
+function eu(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 eu(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 } = vl({
+function tu(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 } = yl({
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 } = Zl({
+ }, i ?? r), { overlayProps: f, arrowProps: p, placement: m, triggerAnchorPoint: h } = Ql({
...c,
targetRef: n,
overlayRef: r,
@@ -7531,7 +7556,7 @@ function eu(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)
});
- Sl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
+ Cl({ isDisabled: a || !t.isOpen }), (0, x.useEffect)(() => {
if (t.isOpen && r.current) return a ? qo(i?.current ?? r.current) : Ko([i?.current ?? r.current], { shouldUseInert: !0 });
}, [
a,
@@ -7550,10 +7575,10 @@ function eu(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/utils.mjs
-var tu = /* @__PURE__ */ new WeakMap();
+var nu = /* @__PURE__ */ new WeakMap();
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadio.mjs
-function nu(e, t, n) {
+function ru(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: _ } = pa({
@@ -7576,7 +7601,7 @@ function nu(e, t, n) {
}
}), { focusableProps: b } = Lr(H(e, { onFocus: () => t.setLastFocusedValue(r) }), n), S = H(g, b), C = U(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 } = tu.get(t);
+ let { name: T, form: E, descriptionId: D, errorMessageId: O, validationBehavior: k } = nu.get(t);
lo(n, t.defaultSelectedValue, t.setSelectedValue), uo({ validationBehavior: k }, t, n);
let A = go();
return {
@@ -7610,7 +7635,7 @@ function nu(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/radio/useRadioGroup.mjs
-function ru(e, t) {
+function iu(e, t) {
let { name: n, form: r, isReadOnly: i, isRequired: a, isDisabled: o, orientation: s = "vertical", validationBehavior: c = "aria" } = e, { direction: l } = Mi(), { isInvalid: u, validationErrors: d, validationDetails: f } = t.displayValidation, { labelProps: p, fieldProps: m, descriptionProps: h, errorMessageProps: g } = Mo({
...e,
labelElementType: "span",
@@ -7639,7 +7664,7 @@ function ru(e, t) {
},
allowRepeats: !0
}), x = dr(n);
- return tu.set(t, {
+ return nu.set(t, {
name: x,
form: r,
descriptionId: h.id,
@@ -7668,8 +7693,8 @@ function ru(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/useSelect.mjs
-var iu = /* @__PURE__ */ new WeakMap();
-function au(e, t, n) {
+var au = /* @__PURE__ */ new WeakMap();
+function ou(e, t, n) {
let { keyboardDelegate: r, isDisabled: i, isRequired: a, name: o, form: s, validationBehavior: c = "aria" } = e, l = oc({
usage: "search",
sensitivity: "base"
@@ -7712,7 +7737,7 @@ function au(e, t, n) {
});
t.selectionManager.selectionMode === "multiple" && (m = {});
let C = U(e, { labelable: !0 }), w = H(m, d, y), T = dr();
- return iu.set(t, {
+ return au.set(t, {
isDisabled: i,
isRequired: a,
name: o,
@@ -7773,8 +7798,8 @@ function au(e, t, n) {
}
//#endregion
//#region node_modules/react-aria/dist/private/select/HiddenSelect.mjs
-function ou(e, t, n) {
- let r = iu.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = zo({ style: {
+function su(e, t, n) {
+ let r = au.get(t) || {}, { autoComplete: i, name: a = r.name, form: o = r.form, isDisabled: s = r.isDisabled } = e, { validationBehavior: c, isRequired: l } = r, { visuallyHiddenProps: u } = zo({ style: {
position: "fixed",
top: 0,
left: 0
@@ -7809,8 +7834,8 @@ function ou(e, t, n) {
}
};
}
-function su(e) {
- let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = ou({
+function cu(e) {
+ let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, x.useRef)(null), c = (0, x.useRef)(null), { containerProps: l, selectProps: u } = su({
...e,
selectRef: t.collection.size <= 300 ? s : c
}, t, n), d = Array.isArray(t.value) ? t.value : [t.value];
@@ -7834,7 +7859,7 @@ function su(e) {
value: e ?? ""
})))));
if (i) {
- let { validationBehavior: e } = iu.get(t) || {};
+ let { validationBehavior: e } = au.get(t) || {};
d.length === 0 && (d = [null]);
let n = d.map((t, n) => {
let r = {
@@ -7865,7 +7890,7 @@ function su(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs
-function cu(e, t, n) {
+function lu(e, t, n) {
let { labelProps: r, inputProps: i, isSelected: a, ...o } = Oo(e, t, n);
return {
labelProps: r,
@@ -7879,8 +7904,130 @@ function cu(e, t, n) {
};
}
//#endregion
+//#region node_modules/react-aria/dist/private/tabs/utils.mjs
+var uu = /* @__PURE__ */ new WeakMap();
+function du(e, t, n) {
+ return e ? (typeof t == "string" && (t = t.replace(/\s+/g, "")), `${uu.get(e)}-${n}-${t}`) : "";
+}
+//#endregion
+//#region node_modules/react-aria/dist/private/tabs/useTab.mjs
+function fu(e, t, n) {
+ let { key: r, isDisabled: i, shouldSelectOnPressUp: a } = e, { selectionManager: o, selectedKey: s } = t, c = r === s, l = i || t.isDisabled || t.selectionManager.isDisabled(r), u = t.collection.getItem(r), { itemProps: d, isPressed: f } = Dc({
+ selectionManager: o,
+ key: r,
+ ref: n,
+ isDisabled: l,
+ shouldSelectOnPressUp: a ?? u?.props.href != null,
+ linkBehavior: "selection"
+ }), p = du(t, r, "tab"), m = du(t, r, "tabpanel"), { tabIndex: h } = d, g = U(u?.props, { labelable: !0 });
+ delete g.id;
+ let _ = vn(u?.props), { focusableProps: v } = Lr({
+ ...u?.props,
+ isDisabled: l
+ }, n);
+ return {
+ tabProps: H(g, v, _, d, {
+ id: p,
+ "aria-selected": c,
+ "aria-disabled": l || void 0,
+ "aria-controls": c ? m : void 0,
+ tabIndex: l ? void 0 : h,
+ role: "tab"
+ }),
+ isSelected: c,
+ isDisabled: l,
+ isPressed: f
+ };
+}
+//#endregion
+//#region node_modules/react-aria/dist/private/tabs/TabsKeyboardDelegate.mjs
+var pu = class {
+ constructor(e, t, n, r = /* @__PURE__ */ new Set()) {
+ this.collection = e, this.flipDirection = t === "rtl", this.disabledKeys = r, this.tabDirection = n === "horizontal";
+ }
+ getKeyLeftOf(e) {
+ return this.flipDirection ? this.getNextKey(e) : this.getPreviousKey(e);
+ }
+ getKeyRightOf(e) {
+ return this.flipDirection ? this.getPreviousKey(e) : this.getNextKey(e);
+ }
+ isDisabled(e) {
+ return this.disabledKeys.has(e) || !!this.collection.getItem(e)?.props?.isDisabled;
+ }
+ getFirstKey() {
+ let e = this.collection.getFirstKey();
+ return e != null && this.isDisabled(e) && (e = this.getNextKey(e)), e;
+ }
+ getLastKey() {
+ let e = this.collection.getLastKey();
+ return e != null && this.isDisabled(e) && (e = this.getPreviousKey(e)), e;
+ }
+ getKeyAbove(e) {
+ return this.tabDirection ? null : this.getPreviousKey(e);
+ }
+ getKeyBelow(e) {
+ return this.tabDirection ? null : this.getNextKey(e);
+ }
+ getNextKey(e) {
+ let t = e;
+ do
+ t = this.collection.getKeyAfter(t), t ??= this.collection.getFirstKey();
+ while (t != null && this.isDisabled(t) && t !== e);
+ return t;
+ }
+ getPreviousKey(e) {
+ let t = e;
+ do
+ t = this.collection.getKeyBefore(t), t ??= this.collection.getLastKey();
+ while (t != null && this.isDisabled(t) && t !== e);
+ return t;
+ }
+};
+//#endregion
+//#region node_modules/react-aria/dist/private/tabs/useTabList.mjs
+function mu(e, t, n) {
+ let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = e, { collection: a, selectionManager: o, disabledKeys: s } = t, { direction: c } = Mi(), { collectionProps: l } = Zs({
+ ref: n,
+ selectionManager: o,
+ keyboardDelegate: (0, x.useMemo)(() => new pu(a, c, r, s), [
+ a,
+ s,
+ r,
+ c
+ ]),
+ selectOnFocus: i === "automatic",
+ disallowEmptySelection: !0,
+ scrollRef: n,
+ linkBehavior: "selection"
+ }), u = dr();
+ return uu.set(t, u), { tabListProps: {
+ ...H(l, xi({
+ ...e,
+ id: u
+ })),
+ role: "tablist",
+ "aria-orientation": r,
+ tabIndex: void 0
+ } };
+}
+//#endregion
+//#region node_modules/react-aria/dist/private/tabs/useTabPanel.mjs
+function hu(e, t, n) {
+ let r = Tc(n) ? void 0 : 0, i = du(t, e.id ?? t?.selectedKey, "tabpanel");
+ return { tabPanelProps: H(xi({
+ ...e,
+ id: i,
+ "aria-labelledby": du(t, t?.selectedKey, "tab")
+ }), {
+ tabIndex: r,
+ role: "tabpanel",
+ "aria-describedby": e["aria-describedby"],
+ "aria-details": e["aria-details"]
+ }) };
+}
+//#endregion
//#region node_modules/scheduler/cjs/scheduler.production.js
-var lu = /* @__PURE__ */ m(((e) => {
+var gu = /* @__PURE__ */ m(((e) => {
function t(e, t) {
var n = e.length;
e.push(t);
@@ -8079,10 +8226,10 @@ var lu = /* @__PURE__ */ m(((e) => {
}
};
};
-})), uu = /* @__PURE__ */ m(((e, t) => {
- t.exports = lu();
-})), du = /* @__PURE__ */ m(((e) => {
- var t = uu(), n = v(), r = Ur();
+})), _u = /* @__PURE__ */ m(((e, t) => {
+ t.exports = gu();
+})), vu = /* @__PURE__ */ m(((e) => {
+ var t = _u(), n = v(), r = Ur();
function i(e) {
var t = "https://react.dev/errors/" + e;
if (1 < arguments.length) {
@@ -9030,7 +9177,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
return e(t);
} finally {
- if (bn = !1, (_n !== null || vn !== null) && (Rd(), _n && (t = _n, e = vn, vn = _n = null, yn(t), e))) for (t = 0; t < e.length; t++) yn(e[t]);
+ if (bn = !1, (_n !== null || vn !== null) && (zd(), _n && (t = _n, e = vn, vn = _n = null, yn(t), e))) for (t = 0; t < e.length; t++) yn(e[t]);
}
}
function Sn(e, t) {
@@ -9339,14 +9486,14 @@ var lu = /* @__PURE__ */ m(((e) => {
return t === "input" ? !!H[e.type] : t === "textarea";
}
function yr(e, t, n, r) {
- _n ? vn ? vn.push(r) : vn = [r] : _n = r, t = qf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({
+ _n ? vn ? vn.push(r) : vn = [r] : _n = r, t = Jf(t, "onChange"), 0 < t.length && (n = new Fn("onChange", "change", null, n, r), e.push({
event: n,
listeners: t
}));
}
var br = null, xr = null;
function Sr(e) {
- Bf(e, 0);
+ Vf(e, 0);
}
function Cr(e) {
if (Xt(Nt(e))) return e;
@@ -9471,7 +9618,7 @@ var lu = /* @__PURE__ */ m(((e) => {
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
- }), Jr && Lr(Jr, r) || (Jr = r, r = qf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
+ }), Jr && Lr(Jr, r) || (Jr = r, r = Jf(qr, "onSelect"), 0 < r.length && (t = new Fn("onSelect", "select", null, t, n), e.push({
event: t,
listeners: r
}), t.target = Kr)));
@@ -9506,13 +9653,13 @@ var lu = /* @__PURE__ */ m(((e) => {
function pi(e, t) {
if (e.name != null && e.name !== "auto") return e.name;
if (t.autoName !== null) return t.autoName;
- e = xd.identifierPrefix;
+ e = Sd.identifierPrefix;
var n = fi++;
return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;
}
function mi(e) {
if (e == null || typeof e == "string") return e;
- var t = null, n = Od;
+ var t = null, n = kd;
if (n !== null) for (var r = 0; r < n.length; r++) {
var i = e[n[r]];
if (i != null) {
@@ -9573,7 +9720,7 @@ var lu = /* @__PURE__ */ m(((e) => {
return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Qe(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;
}
function Ti(e) {
- if (50 < kd) throw kd = 0, Ad = null, Error(i(185));
+ if (50 < Ad) throw Ad = 0, jd = null, Error(i(185));
for (var t = e.return; t !== null;) e = t, t = e.return;
return e.tag === 3 ? e.stateNode : null;
}
@@ -9711,37 +9858,37 @@ var lu = /* @__PURE__ */ m(((e) => {
var t = e.stateNode, n = e.type, r = e.memoizedProps;
switch (t[St] = e, t[Ct] = r, n) {
case "dialog":
- $("cancel", t), $("close", t);
+ Q("cancel", t), Q("close", t);
break;
case "iframe":
case "object":
case "embed":
- $("load", t);
+ Q("load", t);
break;
case "video":
case "audio":
- for (n = 0; n < Rf.length; n++) $(Rf[n], t);
+ for (n = 0; n < zf.length; n++) Q(zf[n], t);
break;
case "source":
- $("error", t);
+ Q("error", t);
break;
case "img":
case "image":
case "link":
- $("error", t), $("load", t);
+ Q("error", t), Q("load", t);
break;
case "details":
- $("toggle", t);
+ Q("toggle", t);
break;
case "input":
- $("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
+ Q("invalid", t), en(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);
break;
case "select":
- $("invalid", t);
+ Q("invalid", t);
break;
- case "textarea": $("invalid", t), an(t, r.value, r.defaultValue, r.children);
+ case "textarea": Q("invalid", t), an(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 = mn), t = !0) : t = !1, t || ra(e, !0);
+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || ep(t.textContent, n) ? (r.popover != null && (Q("beforetoggle", t), Q("toggle", t)), r.onScroll != null && Q("scroll", t), r.onScrollEnd != null && Q("scrollend", t), r.onClick != null && (t.onclick = mn), t = !0) : t = !1, t || ra(e, !0);
}
function aa(e) {
for (U = e.return; U;) switch (U.tag) {
@@ -9932,7 +10079,7 @@ var lu = /* @__PURE__ */ m(((e) => {
function Fa(e, t) {
if (ja === null) {
var n = ja = [];
- Ma = 0, Na = Nf(), Pa = {
+ Ma = 0, Na = Pf(), Pa = {
status: "pending",
value: void 0,
then: function(e) {
@@ -9968,9 +10115,9 @@ var lu = /* @__PURE__ */ m(((e) => {
}
var Ra = F.S;
F.S = function(e, t) {
- if (gd = Be(), typeof t == "object" && t && typeof t.then == "function" && Fa(e, t), ka !== null) for (var n = yf; n !== null;) Oa(n, ka), n = n.next;
+ if (_d = Be(), typeof t == "object" && t && typeof t.then == "function" && Fa(e, t), ka !== null) for (var n = bf; n !== null;) Oa(n, ka), n = n.next;
if (n = e.types, n !== null) {
- for (var r = yf; r !== null;) Oa(r, n), r = r.next;
+ for (var r = bf; r !== null;) Oa(r, n), r = r.next;
if (Na !== 0) {
r = ka, r === null && (r = ka = []);
for (var i = 0; i < n.length; i++) {
@@ -10686,7 +10833,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
function gs(e) {
var t = Ci(e, 2);
- t !== null && Nd(t, e, 2);
+ t !== null && Fd(t, e, 2);
}
function _s(e) {
var t = ts();
@@ -10950,10 +11097,10 @@ var lu = /* @__PURE__ */ m(((e) => {
return n.memoizedState = [r, t], r;
}
function Ks(e, t, n) {
- return n === void 0 || Io & 1073741824 && !(J & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Md(), K.lanes |= e, cd |= e, n);
+ return n === void 0 || Io & 1073741824 && !(J & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Nd(), K.lanes |= e, cd |= e, n);
}
function qs(e, t, n, r) {
- return Ir(n, t) ? n : bo.current === null ? !(Io & 106) || Io & 1073741824 && !(J & 261930) ? (kc = !0, e.memoizedState = n) : (e = Md(), K.lanes |= e, cd |= e, t) : (e = Ks(e, n, r), Ir(e, t) || (kc = !0), e);
+ return Ir(n, t) ? n : bo.current === null ? !(Io & 106) || Io & 1073741824 && !(J & 261930) ? (kc = !0, e.memoizedState = n) : (e = Nd(), K.lanes |= e, cd |= e, t) : (e = Ks(e, n, r), Ir(e, t) || (kc = !0), e);
}
function Js(e, t, n, r, i) {
var a = I.p;
@@ -10962,13 +11109,13 @@ var lu = /* @__PURE__ */ m(((e) => {
s.types = o === null ? null : o.types, F.T = s, oc(e, !1, t, n);
try {
var c = i(), l = F.S;
- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ac(e, t, La(c, r), jd(e)) : ac(e, t, r, jd(e));
+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? ac(e, t, La(c, r), Md(e)) : ac(e, t, r, Md(e));
} catch (n) {
ac(e, t, {
then: function() {},
status: "rejected",
reason: n
- }, jd());
+ }, Md());
} finally {
I.p = a, o !== null && s.types !== null && (o.types = s.types), F.T = o;
}
@@ -11014,7 +11161,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
function Qs(e) {
var t = Zs(e);
- t.next === null && (t = e.alternate.memoizedState), ac(e, t.next.queue, {}, jd());
+ t.next === null && (t = e.alternate.memoizedState), ac(e, t.next.queue, {}, Md());
}
function $s() {
return ba(sh);
@@ -11030,17 +11177,17 @@ var lu = /* @__PURE__ */ m(((e) => {
switch (t.tag) {
case 24:
case 3:
- var n = jd();
+ var n = Md();
e = uo(n);
var r = fo(t, e, n);
- r !== null && (Nd(r, t, n), po(r, t, n)), t = { cache: Ea() }, e.payload = t;
+ r !== null && (Fd(r, t, n), po(r, t, n)), t = { cache: Ea() }, e.payload = t;
return;
}
t = t.return;
}
}
function rc(e, t, n) {
- var r = jd();
+ var r = Md();
n = {
lane: r,
revertLane: 0,
@@ -11049,10 +11196,10 @@ var lu = /* @__PURE__ */ m(((e) => {
hasEagerState: !1,
eagerState: null,
next: null
- }, sc(e) ? cc(t, n) : (n = Si(e, t, n, r), n !== null && (Nd(n, e, r), lc(n, t, r)));
+ }, sc(e) ? cc(t, n) : (n = Si(e, t, n, r), n !== null && (Fd(n, e, r), lc(n, t, r)));
}
function ic(e, t, n) {
- ac(e, t, n, jd());
+ ac(e, t, n, Md());
}
function ac(e, t, n, r) {
var i = {
@@ -11071,14 +11218,14 @@ var lu = /* @__PURE__ */ m(((e) => {
var o = t.lastRenderedState, s = a(o, n);
if (i.hasEagerState = !0, i.eagerState = s, Ir(s, o)) return xi(e, t, i, 0), ed === null && bi(), !1;
} catch {}
- if (n = Si(e, t, i, r), n !== null) return Nd(n, e, r), lc(n, t, r), !0;
+ if (n = Si(e, t, i, r), n !== null) return Fd(n, e, r), lc(n, t, r), !0;
}
return !1;
}
function oc(e, t, n, r) {
if (r = {
lane: 2,
- revertLane: Nf(),
+ revertLane: Pf(),
gesture: null,
action: r,
hasEagerState: !1,
@@ -11086,7 +11233,7 @@ var lu = /* @__PURE__ */ m(((e) => {
next: null
}, sc(e)) {
if (t) throw Error(i(479));
- } else t = Si(e, n, r, 2), t !== null && Nd(t, e, 2);
+ } else t = Si(e, n, r, 2), t !== null && Fd(t, e, 2);
}
function sc(e) {
var t = e.alternate;
@@ -11324,18 +11471,18 @@ var lu = /* @__PURE__ */ m(((e) => {
var hc = {
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
- var r = jd(), i = uo(r);
- i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Nd(t, e, r), po(t, e, r));
+ var r = Md(), i = uo(r);
+ i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Fd(t, e, r), po(t, e, r));
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
- var r = jd(), i = uo(r);
- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Nd(t, e, r), po(t, e, r));
+ var r = Md(), i = uo(r);
+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = fo(e, i, r), t !== null && (Fd(t, e, r), po(t, e, r));
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
- var n = jd(), r = uo(n);
- r.tag = 2, t != null && (r.callback = t), t = fo(e, r, n), t !== null && (Nd(t, e, n), po(t, e, n));
+ var n = Md(), r = uo(n);
+ r.tag = 2, t != null && (r.callback = t), t = fo(e, r, n), t !== null && (Fd(t, e, n), po(t, e, n));
}
};
function gc(e, t, n, r, i, a, o) {
@@ -11402,7 +11549,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
var o = n.stateNode;
o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {
- Cc(t, n, r), typeof i != "function" && (yd === null ? yd = /* @__PURE__ */ new Set([this]) : yd.add(this));
+ Cc(t, n, r), typeof i != "function" && (bd === null ? bd = /* @__PURE__ */ new Set([this]) : bd.add(this));
var e = r.stack;
this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });
});
@@ -11413,16 +11560,16 @@ var lu = /* @__PURE__ */ m(((e) => {
switch (n.tag) {
case 31:
case 13:
- case 19: return Eo === null ? Gd() : n.alternate === null && sd === 0 && (sd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), pf(e, r, a)), !1;
+ case 19: return Eo === null ? Gd() : n.alternate === null && sd === 0 && (sd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), mf(e, r, a)), !1;
case 22: return n.flags |= 65536, r === Ka ? n.flags |= 16384 : (t = n.updateQueue, t === null ? (t = {
transitions: null,
markerInstances: null,
retryQueue: /* @__PURE__ */ new Set([r])
- }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), pf(e, r, a)), !1;
+ }, n.updateQueue = t) : (n = t.retryQueue, n === null ? t.retryQueue = /* @__PURE__ */ new Set([r]) : n.add(r)), mf(e, r, a)), !1;
}
throw Error(i(435, n.tag));
}
- return pf(e, r, a), Gd(), !1;
+ return mf(e, r, a), Gd(), !1;
}
if (W) return t = To.current, t === null ? (r !== na && (t = Error(i(423), { cause: r }), la(Ri(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Ri(r, n), a = wc(e.stateNode, r, a), mo(e, a), sd !== 4 && (sd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== na && (e = Error(i(422), { cause: r }), la(Ri(e, n)))), !1;
var o = Error(i(520), { cause: r });
@@ -11432,7 +11579,7 @@ var lu = /* @__PURE__ */ m(((e) => {
switch (n.tag) {
case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = wc(n.stateNode, r, e), mo(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" && (yd === null || !yd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Tc(a), Ec(a, e, n, r), mo(n, a), !1;
+ if (t = n.type, o = n.stateNode, !(n.flags & 128) && (typeof t.getDerivedStateFromError == "function" || o !== null && typeof o.componentDidCatch == "function" && (bd === null || !bd.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = Tc(a), Ec(a, e, n, r), mo(n, a), !1;
break;
case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;
}
@@ -11554,7 +11701,7 @@ var lu = /* @__PURE__ */ m(((e) => {
else throw Error(i(558));
} else if (kc || _a(e, t, n, !1), a = (n & e.childLanes) !== 0, kc || a) {
if (bo.current === null) {
- if (r = ed, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Nd(r, e, s), Oc;
+ if (r = ed, r !== null && (s = gt(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ci(e, s), Fd(r, e, s), Oc;
Gd();
}
t = Rc(e, t, n);
@@ -11685,7 +11832,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
if (kc || _a(e, t, c, !1), r = (c & e.childLanes) !== 0, kc || r) {
if (bo.current !== null) return Zc(e, t, c);
- if (r = ed, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Nd(r, e, a), Oc;
+ if (r = ed, r !== null && (a = gt(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ci(e, a), Fd(r, e, a), Oc;
return om(o) || Gd(), Zc(e, t, c);
}
return om(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, $i = lm(o.nextSibling), U = t, W = !0, ea = null, ta = !1, e !== null && Qi(t, e), t = Yc(t, a.children), t.flags |= 134221824, t);
@@ -11940,7 +12087,7 @@ var lu = /* @__PURE__ */ m(((e) => {
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 (Hd()) e.flags |= 8192;
+ else if (Z()) e.flags |= 8192;
else throw Xa = Ka, Wa;
}
} else e.flags &= -16777217;
@@ -11948,7 +12095,7 @@ var lu = /* @__PURE__ */ m(((e) => {
function dl(e, t) {
if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;
else if (e.flags |= 16777216, !Ym(t)) {
- if (Hd()) e.flags |= 8192;
+ if (Z()) e.flags |= 8192;
else throw Xa = Ka, Wa;
}
}
@@ -12073,7 +12220,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case 27:
case 5: r = a.memoizedProps;
}
- e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || $f(e.nodeValue, n)), e || ra(t, !0);
+ e[St] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || ep(e.nodeValue, n)), e || ra(t, !0);
} else e = lp(e).createTextNode(r), e[St] = t, t.stateNode = e;
}
return ml(t), null;
@@ -12104,7 +12251,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (!a) return t.flags & 256 ? (jo(t), t) : (jo(t), null);
}
return jo(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), fl(t, t.updateQueue), ml(t), null);
- case 4: return Te(), e === null && Uf(t.stateNode.containerInfo), t.flags |= 67108864, ml(t), null;
+ case 4: return Te(), e === null && Wf(t.stateNode.containerInfo), t.flags |= 67108864, ml(t), null;
case 10: return ma(t.type), ml(t), null;
case 19:
if (Po(t), r = t.memoizedState, r === null) return ml(t), null;
@@ -12118,13 +12265,13 @@ var lu = /* @__PURE__ */ m(((e) => {
}
e = e.sibling;
}
- r.tail !== null && Be() > _d && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ r.tail !== null && Be() > vd && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
}
} else {
if (!a) {
if (e = Fo(o), e !== null) {
if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, fl(t, e), pl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !W) return ml(t), null;
- } else 2 * Be() - r.renderingStartTime > _d && n !== 536870912 && (t.flags |= 128, a = !0, pl(r, !1), t.lanes = 4194304);
+ } else 2 * Be() - r.renderingStartTime > vd && n !== 536870912 && (t.flags |= 128, a = !0, pl(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);
}
@@ -12228,7 +12375,7 @@ var lu = /* @__PURE__ */ m(((e) => {
} while (n !== i);
}
} catch (e) {
- Q(t, t.return, e);
+ pf(t, t.return, e);
}
}
function yl(e, t, n) {
@@ -12246,7 +12393,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
l();
} catch (e) {
- Q(i, c, e);
+ pf(i, c, e);
}
}
}
@@ -12254,7 +12401,7 @@ var lu = /* @__PURE__ */ m(((e) => {
} while (r !== a);
}
} catch (e) {
- Q(t, t.return, e);
+ pf(t, t.return, e);
}
}
function bl(e) {
@@ -12264,7 +12411,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
yo(t, n);
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
}
}
@@ -12273,7 +12420,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
n.componentWillUnmount();
} catch (n) {
- Q(e, t, n);
+ pf(e, t, n);
}
}
function Sl(e, t) {
@@ -12302,7 +12449,7 @@ var lu = /* @__PURE__ */ m(((e) => {
typeof n == "function" ? e.refCleanup = n(r) : n.current = r;
}
} catch (n) {
- Q(e, t, n);
+ pf(e, t, n);
}
}
function Cl(e, t) {
@@ -12311,14 +12458,14 @@ var lu = /* @__PURE__ */ m(((e) => {
if (typeof r == "function") try {
r();
} catch (n) {
- Q(e, t, n);
+ pf(e, t, n);
} finally {
e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);
}
else if (typeof n == "function") try {
n(null);
} catch (n) {
- Q(e, t, n);
+ pf(e, t, n);
}
else n.current = null;
}
@@ -12351,7 +12498,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);
}
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
}
function Al(e, t, n) {
@@ -12359,7 +12506,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var r = e.stateNode;
ip(r, e.type, n, t), r[Ct] = t;
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
}
function jl(e) {
@@ -12394,7 +12541,7 @@ var lu = /* @__PURE__ */ m(((e) => {
for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);
np(t, r, n), t[St] = e, t[Ct] = n;
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
}
var Il = !1, Ll = null;
@@ -12441,7 +12588,7 @@ var lu = /* @__PURE__ */ m(((e) => {
function Kl(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) : Hl(e, i, a, null, !1) ? (Gl(e), n.paired || t || Z(e, r.onEnter)) : Wl(e.child, !1);
+ a === "none" ? Gl(e) : Hl(e, i, a, null, !1) ? (Gl(e), n.paired || t || Pd(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);
}
@@ -12456,7 +12603,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var i = t.get(r);
if (i !== void 0) {
var a = hi(n.default, n.share);
- if (a !== "none" && (Hl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Z(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
+ if (a !== "none" && (Hl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Pd(e, n.onShare)) : Wl(e.child, !1)), t.delete(r), t.size === 0) break;
}
}
}
@@ -12469,7 +12616,7 @@ var lu = /* @__PURE__ */ m(((e) => {
function Jl(e) {
if (e.tag === 30) {
var t = e.memoizedProps, n = pi(t, e.stateNode), r = Ll === null ? void 0 : Ll.get(n), i = hi(t.default, r === void 0 ? t.exit : t.share);
- i !== "none" && (Hl(e, n, i, null, !1) ? r === void 0 ? Z(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), Z(e, t.onShare)) : Wl(e.child, !1)), Ll !== null && ql(e);
+ i !== "none" && (Hl(e, n, i, null, !1) ? r === void 0 ? Pd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ll.delete(n), Pd(e, t.onShare)) : Wl(e.child, !1)), Ll !== null && ql(e);
} else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Jl(e), e = e.sibling;
else Ll !== null && ql(e);
}
@@ -12536,13 +12683,13 @@ var lu = /* @__PURE__ */ m(((e) => {
} else o = e.memoizedState, e.memoizedState = null;
r = e;
var s = e.child;
- Vl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Z(e, n.onUpdate));
+ Vl = 0, i = $l(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Pd(e, n.onUpdate));
} else e.subtreeFlags & 33554432 && eu(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, du = !1;
- function fu(e, t, n) {
+ 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) {
if (e = e.containerInfo, sp = gh, e = Hr(e), Wr(e)) {
if ("selectionStart" in e) var r = {
start: e.selectionStart,
@@ -12587,24 +12734,24 @@ var lu = /* @__PURE__ */ m(((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 && Rl(e), pu(n);
+ if (e.alternate === null && e.flags & 2) n && Rl(e), fu(n);
else {
if (e.tag === 22) {
if (r = e.alternate, e.memoizedState !== null) {
- r !== null && r.memoizedState === null && n && Jl(r), pu(n);
+ r !== null && r.memoizedState === null && n && Jl(r), fu(n);
continue;
}
if (r !== null && r.memoizedState !== null) {
- n && Rl(e), pu(n);
+ n && Rl(e), fu(n);
continue;
}
}
- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), pu(n));
+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, ou = r) : (n && Yl(e), fu(n));
}
}
Ll = null;
}
- function pu(e) {
+ function fu(e) {
for (; ou !== null;) {
var t = ou, n = e, r = t.alternate, a = t.flags;
switch (t.tag) {
@@ -12619,7 +12766,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var s = vc(t.type, a);
n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;
} catch (e) {
- Q(t, t.return, e);
+ pf(t, t.return, e);
}
}
break;
@@ -12654,7 +12801,7 @@ var lu = /* @__PURE__ */ m(((e) => {
ou = t.return;
}
}
- function mu(e, t, n) {
+ function pu(e, t, n) {
var r = n.flags;
switch (n.tag) {
case 0:
@@ -12667,7 +12814,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (e = n.stateNode, t === null) try {
e.componentDidMount();
} catch (e) {
- Q(n, n.return, e);
+ pf(n, n.return, e);
}
else {
var i = vc(n.type, t.memoizedProps);
@@ -12675,7 +12822,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);
} catch (e) {
- Q(n, n.return, e);
+ pf(n, n.return, e);
}
}
}
@@ -12693,7 +12840,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
yo(e, t);
} catch (e) {
- Q(n, n.return, e);
+ pf(n, n.return, e);
}
}
break;
@@ -12709,7 +12856,7 @@ var lu = /* @__PURE__ */ m(((e) => {
Pu(e, n), r & 4 && Cu(e, n);
break;
case 13:
- Pu(e, n), r & 4 && wu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = gf.bind(null, n), cm(e, n))));
+ Pu(e, n), r & 4 && wu(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = _f.bind(null, n), cm(e, n))));
break;
case 22:
if (r = n.memoizedState !== null || tu, !r) {
@@ -12724,10 +12871,10 @@ var lu = /* @__PURE__ */ m(((e) => {
default: Pu(e, n);
}
}
- function hu(e, t) {
- for (e = e.child; e !== null;) gu(e, t), e = e.sibling;
+ function mu(e, t) {
+ for (e = e.child; e !== null;) hu(e, t), e = e.sibling;
}
- function gu(e, t) {
+ function hu(e, t) {
switch (e.tag) {
case 5:
case 26:
@@ -12741,15 +12888,15 @@ var lu = /* @__PURE__ */ m(((e) => {
i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();
}
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
- _u(e, t);
+ gu(e, t);
break;
case 6:
try {
e.stateNode.nodeValue = t ? "" : e.memoizedProps, B = !0;
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
break;
case 18:
@@ -12757,28 +12904,28 @@ var lu = /* @__PURE__ */ m(((e) => {
var s = e.stateNode;
t ? wp(s, !0) : wp(e.stateNode, !1);
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
break;
case 22:
case 23:
- e.memoizedState === null && hu(e, t);
+ e.memoizedState === null && mu(e, t);
break;
- default: hu(e, t);
+ default: mu(e, t);
}
}
- function _u(e, t) {
+ function gu(e, t) {
if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {
a: {
var n = e, r = t;
switch (n.tag) {
case 4:
- gu(n, r);
+ hu(n, r);
break a;
case 22:
- n.memoizedState === null && _u(n, r);
+ n.memoizedState === null && gu(n, r);
break a;
- default: _u(n, r);
+ default: gu(n, r);
}
}
e = e.sibling;
@@ -12811,12 +12958,12 @@ var lu = /* @__PURE__ */ m(((e) => {
if (bu) try {
(yu.nodeType === 9 ? yu.body : yu.nodeName === "HTML" ? yu.ownerDocument.body : yu).removeChild(n.stateNode), B = !0;
} catch (e) {
- Q(n, t, e);
+ pf(n, t, e);
}
else try {
yu.removeChild(n.stateNode), B = !0;
} catch (e) {
- Q(n, t, e);
+ pf(n, t, e);
}
}
break;
@@ -12856,7 +13003,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
Hh(e);
} catch (e) {
- Q(t, t.return, e);
+ pf(t, t.return, e);
}
}
}
@@ -12864,7 +13011,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {
Hh(e);
} catch (e) {
- Q(t, t.return, e);
+ pf(t, t.return, e);
}
}
function Tu(e) {
@@ -12883,7 +13030,7 @@ var lu = /* @__PURE__ */ m(((e) => {
t.forEach(function(t) {
if (!n.has(t)) {
n.add(t);
- var r = _f.bind(null, e, t);
+ var r = vf.bind(null, e, t);
t.then(r, r);
}
});
@@ -12983,7 +13130,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
on(t, ""), B = !0;
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
}
a & 4 && e.stateNode != null && (t = e.memoizedProps, Al(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (iu = !0);
@@ -12995,7 +13142,7 @@ var lu = /* @__PURE__ */ m(((e) => {
try {
n.nodeValue = t, B = !0;
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
}
break;
@@ -13003,7 +13150,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (B = !1, Wm = null, o = Ou, Ou = bm(t.containerInfo), Du(t, e, n), Ou = o, Au(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {
Hh(t.containerInfo);
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
iu && (iu = !1, ju(e)), B = !1;
break;
@@ -13017,12 +13164,12 @@ var lu = /* @__PURE__ */ m(((e) => {
Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
break;
case 13:
- Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (hd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
+ Du(t, e, n), Au(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (gd = Be()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(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, Du(t, e, n), nu = l, ru = u, tu = c, Au(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, Fu(e, 2), tu = n, nu = r), !o && ru || hu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, Eu(e, n))));
+ tu = c || o, ru = u || o, nu = l || s, Du(t, e, n), nu = l, ru = u, tu = c, Au(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, Fu(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, Eu(e, n))));
break;
case 19:
Du(t, e, n), Au(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, Eu(e, t)));
@@ -13074,7 +13221,7 @@ var lu = /* @__PURE__ */ m(((e) => {
default: throw Error(i(161));
}
} catch (t) {
- Q(e, e.return, t);
+ pf(e, e.return, t);
}
e.flags &= -3;
}
@@ -13095,7 +13242,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (n === null) Kl(e, !1);
else switch (e.tag) {
case 3:
- if (du = su = !1, Bl(), Mu(t, e), !su && !lu) {
+ if (uu = su = !1, Bl(), Mu(t, e), !su && !lu) {
if (e = zl, e !== null) for (var r = 0; r < e.length; r += 3) {
n = e[r];
var i = e[r + 1];
@@ -13122,7 +13269,7 @@ var lu = /* @__PURE__ */ m(((e) => {
duration: 0,
fill: "forwards",
pseudoElement: "::view-transition"
- })), du = !0;
+ })), uu = !0;
}
zl = null;
break;
@@ -13140,13 +13287,13 @@ var lu = /* @__PURE__ */ m(((e) => {
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, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Z(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), su = e.flags & 32 ? !0 : r;
+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, Vl = 0, t = $l(e, n, t, o, s, a, !0), Vl !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Pd(e, e.memoizedProps.onUpdate), zl = i) : i !== null && (i.push.apply(i, zl), zl = i), su = e.flags & 32 ? !0 : r;
break;
default: Mu(t, e);
}
}
function Pu(e, t) {
- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) mu(e, t.alternate, t), t = t.sibling;
+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) pu(e, t.alternate, t), t = t.sibling;
}
function Fu(e, t) {
for (e = e.child; e !== null;) {
@@ -13198,7 +13345,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (Iu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {
i.componentDidMount();
} catch (e) {
- Q(r, r.return, e);
+ pf(r, r.return, e);
}
if (r = a, i = r.updateQueue, i !== null) {
var c = r.stateNode;
@@ -13206,7 +13353,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var l = i.shared.hiddenCallbacks;
if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) vo(l[i], c);
} catch (e) {
- Q(r, r.return, e);
+ pf(r, r.return, e);
}
}
s && o & 64 && bl(a), Sl(a, a.return);
@@ -13268,7 +13415,7 @@ var lu = /* @__PURE__ */ m(((e) => {
zu(e, t, n, r);
break;
case 3:
- zu(e, t, n, r), i && du && (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 && Da(a)));
+ zu(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 && Da(a)));
break;
case 12:
if (a & 2048) {
@@ -13277,7 +13424,7 @@ var lu = /* @__PURE__ */ m(((e) => {
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) {
- Q(t, t.return, e);
+ pf(t, t.return, e);
}
} else zu(e, t, n, r);
break;
@@ -13473,11 +13620,11 @@ var lu = /* @__PURE__ */ m(((e) => {
cacheSignal: function() {
return ba(G).controller.signal;
}
- }, Qu = typeof WeakMap == "function" ? WeakMap : Map, $u = 0, ed = null, q = null, J = 0, td = 0, nd = null, rd = !1, id = !1, ad = !1, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, pd = null, md = null, Y = !1, hd = 0, gd = 0, _d = Infinity, vd = null, yd = null, bd = 0, xd = null, Sd = null, Cd = 0, wd = 0, Td = null, X = null, Ed = null, Dd = null, Od = null, kd = 0, Ad = null;
- function jd() {
- return $u & 2 && J !== 0 ? J & -J : F.T === null ? yt() : Nf();
- }
+ }, Qu = typeof WeakMap == "function" ? WeakMap : Map, $u = 0, ed = null, q = null, J = 0, td = 0, nd = null, rd = !1, id = !1, ad = !1, od = 0, sd = 0, cd = 0, ld = 0, ud = 0, dd = 0, fd = 0, pd = null, md = null, hd = !1, gd = 0, _d = 0, vd = Infinity, yd = null, bd = null, xd = 0, Sd = null, Cd = null, wd = 0, Y = 0, Td = null, Ed = null, Dd = null, Od = null, kd = null, Ad = 0, jd = null;
function Md() {
+ return $u & 2 && J !== 0 ? J & -J : F.T === null ? yt() : Pf();
+ }
+ function Nd() {
if (dd === 0) {
if (!(J & 536870912) || W) {
var e = rt;
@@ -13486,24 +13633,24 @@ var lu = /* @__PURE__ */ m(((e) => {
}
return e = To.current, e !== null && (e.flags |= 32), dd;
}
- function Z(e, t) {
+ function Pd(e, t) {
if (t != null) {
var n = e.stateNode, r = n.ref;
- r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Dd === null && (Dd = []), Dd.push(t.bind(null, r));
+ r === null && (r = n.ref = Pp(pi(e.memoizedProps, n))), Od === null && (Od = []), Od.push(t.bind(null, r));
}
}
- function Nd(e, t, n) {
- (e === ed && (td === 2 || td === 9) || e.cancelPendingCommit !== null) && (Bd(e, 0), Ld(e, J, dd, !1)), ft(e, n), (!($u & 2) || e !== ed) && (e === ed && (!($u & 2) && (ld |= n), sd === 4 && Ld(e, J, dd, !1)), Tf(e));
+ function Fd(e, t, n) {
+ (e === ed && (td === 2 || td === 9) || e.cancelPendingCommit !== null) && (Vd(e, 0), Rd(e, J, dd, !1)), ft(e, n), (!($u & 2) || e !== ed) && (e === ed && (!($u & 2) && (ld |= n), sd === 4 && Rd(e, J, dd, !1)), Ef(e));
}
- function Pd(e, t, n) {
+ function X(e, t, n) {
if ($u & 6) throw Error(i(327));
var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || st(e, t), a = r ? Jd(e, t) : Kd(e, t, !0), o = r;
do {
if (a === 0) {
- id && !r && Ld(e, t, 0, !1);
+ id && !r && Rd(e, t, 0, !1);
break;
}
- if (n = e.current.alternate, o && !Id(n)) {
+ if (n = e.current.alternate, o && !Ld(n)) {
a = Kd(e, t, !1), o = !1;
continue;
}
@@ -13516,7 +13663,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var c = e;
a = pd;
var l = c.current.memoizedState.isDehydrated;
- if (l && (Bd(c, s).flags |= 256), s = Kd(c, s, !1), s !== 2 && s !== 6) {
+ if (l && (Vd(c, s).flags |= 256), s = Kd(c, s, !1), s !== 2 && s !== 6) {
if (ad && !l) {
c.errorRecoveryDisabledLanes |= o, ld |= o, a = 4;
break a;
@@ -13529,7 +13676,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
}
if (a === 1) {
- Bd(e, 0), Ld(e, t, 0, !0);
+ Vd(e, 0), Rd(e, t, 0, !0);
break;
}
a: {
@@ -13538,7 +13685,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case 1: throw Error(i(345));
case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;
case 6:
- Ld(r, t, dd, !rd);
+ Rd(r, t, dd, !rd);
break a;
case 2:
md = null;
@@ -13547,18 +13694,18 @@ var lu = /* @__PURE__ */ m(((e) => {
case 5: break;
default: throw Error(i(329));
}
- if ((t & 62914560) === t && (a = hd + 300 - Be(), 10 < a)) {
- if (Ld(r, t, dd, !rd), ot(r, 0, !0) !== 0) break a;
- Cd = t, r.timeoutHandle = gp(Fd.bind(null, r, n, md, vd, Y, t, dd, ld, fd, rd, o, "Throttled", -0, 0), a);
+ if ((t & 62914560) === t && (a = gd + 300 - Be(), 10 < a)) {
+ if (Rd(r, t, dd, !rd), ot(r, 0, !0) !== 0) break a;
+ wd = t, r.timeoutHandle = gp(Id.bind(null, r, n, md, yd, hd, t, dd, ld, fd, rd, o, "Throttled", -0, 0), a);
break a;
}
- Fd(r, n, md, vd, Y, t, dd, ld, fd, rd, o, null, -0, 0);
+ Id(r, n, md, yd, hd, t, dd, ld, fd, rd, o, null, -0, 0);
}
break;
} while (1);
- Tf(e);
+ Ef(e);
}
- function Fd(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
+ function Id(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
e.timeoutHandle = -1;
var m = t.subtreeFlags, h = (a & 335544064) === a;
if (d = null, (h || m & 8192 || (m & 16785408) == 16785408) && (d = {
@@ -13570,13 +13717,13 @@ var lu = /* @__PURE__ */ m(((e) => {
waitingForImages: !0,
waitingForViewTransition: !1,
unsuspend: mn
- }, Ll = null, Gu(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 ? hd - Be() : (a & 4194048) === a ? gd - Be() : 0, m = eh(d, m), m !== null)) {
- Cd = a, e.cancelPendingCommit = m(tf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Ld(e, a, o, !l);
+ }, Ll = null, Gu(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 ? gd - Be() : (a & 4194048) === a ? _d - Be() : 0, m = eh(d, m), m !== null)) {
+ wd = a, e.cancelPendingCommit = m(tf.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Rd(e, a, o, !l);
return;
}
tf(e, t, a, n, r, i, o, s, c, l, u, d);
}
- function Id(e) {
+ function Ld(e) {
for (var t = e;;) {
var n = t.tag;
if ((n === 0 || n === 11 || n === 15) && t.flags & 16384 && (n = t.updateQueue, n !== null && (n = n.stores, n !== null))) for (var r = 0; r < n.length; r++) {
@@ -13600,7 +13747,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
return !0;
}
- function Ld(e, t, n, r) {
+ function Rd(e, t, n, r) {
t = ct(e, t), t &= ~ud, t &= ~ld, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;
for (var i = t; 0 < i;) {
var a = 31 - Qe(i), o = 1 << a;
@@ -13608,10 +13755,10 @@ var lu = /* @__PURE__ */ m(((e) => {
}
n !== 0 && mt(e, n, t);
}
- function Rd() {
- return $u & 6 ? !0 : (Ef(0, !1), !1);
- }
function zd() {
+ return $u & 6 ? !0 : (Df(0, !1), !1);
+ }
+ function Bd() {
if (q !== null) {
if (td === 0) var e = q.return;
else e = q, fa = da = null, es(e), $a = null, eo = 0, e = q;
@@ -13619,14 +13766,14 @@ var lu = /* @__PURE__ */ m(((e) => {
q = null;
}
}
- function Bd(e, t) {
+ function Vd(e, t) {
var n = e.timeoutHandle;
- return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Cd = 0, zd(), ed = e, q = n = Ai(e.current, null), J = t, td = 0, nd = null, rd = !1, id = st(e, t), ad = !1, fd = dd = ud = ld = cd = sd = 0, md = pd = null, Y = !1, od = ct(e, t), bi(), n;
+ return n !== -1 && (e.timeoutHandle = -1, _p(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), wd = 0, Bd(), ed = e, q = n = Ai(e.current, null), J = t, td = 0, nd = null, rd = !1, id = st(e, t), ad = !1, fd = dd = ud = ld = cd = sd = 0, md = pd = null, hd = !1, od = ct(e, t), bi(), n;
}
- function Vd(e, t) {
+ function Hd(e, t) {
K = null, F.H = uc, t === Ua || t === Ga ? (t = Za(), td = 3) : t === Wa ? (t = Za(), td = 4) : td = t === Oc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, nd = t, q === null && (sd = 1, Sc(e, Ri(t, e.current)));
}
- function Hd() {
+ function Z() {
var e = To.current;
return e === null ? !0 : (J & 4194048) === J ? Eo === null : (J & 62914560) === J || J & 536870912 ? e === Eo : !1;
}
@@ -13639,13 +13786,13 @@ var lu = /* @__PURE__ */ m(((e) => {
return F.A = Zu, e;
}
function Gd() {
- sd = 4, rd || (J & 4194048) !== J && To.current !== null || (id = !0), !(cd & 134217727) && !(ld & 134217727) || ed === null || Ld(ed, J, dd, !1);
+ sd = 4, rd || (J & 4194048) !== J && To.current !== null || (id = !0), !(cd & 134217727) && !(ld & 134217727) || ed === null || Rd(ed, J, dd, !1);
}
function Kd(e, t, n) {
var r = $u;
$u |= 2;
var i = Ud(), a = Wd();
- (ed !== e || J !== t) && (vd = null, Bd(e, t)), t = !1;
+ (ed !== e || J !== t) && (yd = null, Vd(e, t)), t = !1;
var o = sd;
a: do
try {
@@ -13653,7 +13800,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var s = q, c = nd;
switch (td) {
case 8:
- zd(), o = 6;
+ Bd(), o = 6;
break a;
case 3:
case 2:
@@ -13672,7 +13819,7 @@ var lu = /* @__PURE__ */ m(((e) => {
qd(), o = sd;
break;
} catch (t) {
- Vd(e, t);
+ Hd(e, t);
}
while (1);
return t && e.shellSuspendCounter++, fa = da = null, $u = r, F.H = i, F.A = a, q === null && (ed = null, J = 0, bi()), o;
@@ -13684,7 +13831,7 @@ var lu = /* @__PURE__ */ m(((e) => {
var n = $u;
$u |= 2;
var r = Ud(), a = Wd();
- ed !== e || J !== t ? (vd = null, _d = Be() + 500, Bd(e, t)) : id = st(e, t);
+ ed !== e || J !== t ? (yd = null, vd = Be() + 500, Vd(e, t)) : id = st(e, t);
a: do
try {
if (td !== 0 && q !== null) {
@@ -13701,7 +13848,7 @@ var lu = /* @__PURE__ */ m(((e) => {
break;
}
t = function() {
- td !== 2 && td !== 9 || ed !== e || (td = 7), Tf(e);
+ td !== 2 && td !== 9 || ed !== e || (td = 7), Ef(e);
}, o.then(t, t);
break a;
case 3:
@@ -13737,7 +13884,7 @@ var lu = /* @__PURE__ */ m(((e) => {
td = 0, nd = null, Qd(e, t, o, 6);
break;
case 8:
- zd(), sd = 6;
+ Bd(), sd = 6;
break a;
default: throw Error(i(462));
}
@@ -13745,7 +13892,7 @@ var lu = /* @__PURE__ */ m(((e) => {
Yd();
break;
} catch (t) {
- Vd(e, t);
+ Hd(e, t);
}
while (1);
return fa = da = null, F.H = r, F.A = a, $u = n, q === null ? (ed = null, J = 0, bi(), sd) : 0;
@@ -13830,40 +13977,40 @@ var lu = /* @__PURE__ */ m(((e) => {
e.cancelPendingCommit = null;
do
uf();
- while (bd !== 0);
+ while (xd !== 0);
if ($u & 6) throw Error(i(327));
if (t !== null) {
if (t === e.current) throw Error(i(177));
- e === ed && (q = ed = null, J = 0), Sd = t, xd = e, Cd = n, Td = a, X = r, nf(e, t, n, s, c, l, f);
+ e === ed && (q = ed = null, J = 0), Cd = t, Sd = e, wd = n, Td = a, Ed = r, nf(e, t, n, s, c, l, f);
}
}
function nf(e, t, n, r, i, a, o) {
var s = t.lanes | t.childLanes;
- if (wd = s, s |= yi, pt(e, n, s, r, i, a), Dd = null, (n & 335544064) === n ? (Od = Aa(e), r = 10262) : (Od = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, vf(We, function() {
+ if (Y = s, s |= yi, pt(e, n, s, r, i, a), Od = null, (n & 335544064) === n ? (kd = Aa(e), r = 10262) : (kd = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, yf(We, function() {
return df(), null;
})) : (e.callbackNode = null, e.callbackPriority = 0), Il = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {
r = F.T, F.T = null, i = I.p, I.p = 2, a = $u, $u |= 4;
try {
- fu(e, t, n);
+ du(e, t, n);
} finally {
$u = a, I.p = i, F.T = r;
}
}
- bd = 1, Il ? Ed = Mp(o, e.containerInfo, Od, of, sf, af, cf, df, rf, null, null) : (of(), sf(), cf());
+ xd = 1, Il ? Dd = Mp(o, e.containerInfo, kd, of, sf, af, cf, df, rf, null, null) : (of(), sf(), cf());
}
function rf(e) {
- if (bd !== 0) {
- var t = xd.onRecoverableError;
+ if (xd !== 0) {
+ var t = Sd.onRecoverableError;
t(e, { componentStack: null });
}
}
function af() {
- bd === 3 && (bd = 0, Nu(Sd, xd), bd = 4);
+ xd === 3 && (xd = 0, Nu(Cd, Sd), xd = 4);
}
function of() {
- if (bd === 1) {
- bd = 0;
- var e = xd, t = Sd, n = Cd, r = !!(t.flags & 13878);
+ if (xd === 1) {
+ xd = 0;
+ var e = Sd, t = Cd, n = wd, r = !!(t.flags & 13878);
if (t.subtreeFlags & 13878 || r) {
r = F.T, F.T = null;
var i = I.p;
@@ -13905,13 +14052,13 @@ var lu = /* @__PURE__ */ m(((e) => {
$u = a, I.p = i, F.T = r;
}
}
- e.current = t, bd = 2;
+ e.current = t, xd = 2;
}
}
function sf() {
- if (bd === 2) {
- bd = 0;
- var e = xd, t = Sd, n = !!(t.flags & 8772);
+ if (xd === 2) {
+ xd = 0;
+ var e = Sd, t = Cd, n = !!(t.flags & 8772);
if (t.subtreeFlags & 8772 || n) {
n = F.T, F.T = null;
var r = I.p;
@@ -13919,21 +14066,21 @@ var lu = /* @__PURE__ */ m(((e) => {
var i = $u;
$u |= 4;
try {
- mu(e, t.alternate, t);
+ pu(e, t.alternate, t);
} finally {
$u = i, I.p = r, F.T = n;
}
}
- bd = 3;
+ xd = 3;
}
}
function cf() {
- if (bd === 4 || bd === 3) {
- bd = 0;
- var e = Ed;
- Ed = null, ze();
- var t = xd, n = Sd, r = Cd, i = X, a = (r & 335544064) === r ? 10262 : 10256;
- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? bd = 5 : (bd = 0, Sd = xd = null, lf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (yd = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
+ if (xd === 4 || xd === 3) {
+ xd = 0;
+ var e = Dd;
+ Dd = null, ze();
+ var t = Sd, n = Cd, r = wd, i = Ed, a = (r & 335544064) === r ? 10262 : 10256;
+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? xd = 5 : (xd = 0, Cd = Sd = null, lf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (bd = null), vt(r), n = n.stateNode, Xe && typeof Xe.onCommitFiberRoot == "function") try {
Xe.onCommitFiberRoot(Ye, n, void 0, (n.current.flags & 128) == 128);
} catch {}
if (i !== null) {
@@ -13947,27 +14094,27 @@ var lu = /* @__PURE__ */ m(((e) => {
F.T = n, I.p = a;
}
}
- if (i = Dd, o = Od, Od = null, i !== null && (Dd = 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);
- Cd & 3 && uf(), Tf(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Ad ? kd++ : (kd = 0, Ad = t) : (kd = 0, Ad = null), Ef(0, !1);
+ if (i = Od, o = kd, kd = null, i !== null && (Od = 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);
+ wd & 3 && uf(), Ef(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === jd ? Ad++ : (Ad = 0, jd = t) : (Ad = 0, jd = null), Df(0, !1);
}
}
function lf(e, t) {
(e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Da(t)));
}
function uf() {
- return Ed !== null && (Ed.skipTransition(), Ed = null), of(), sf(), cf(), df();
+ return Dd !== null && (Dd.skipTransition(), Dd = null), of(), sf(), cf(), df();
}
function df() {
- if (bd !== 5) return !1;
- var e = xd, t = wd;
- wd = 0;
- var n = vt(Cd), r = F.T, a = I.p;
+ if (xd !== 5) return !1;
+ var e = Sd, t = Y;
+ Y = 0;
+ var n = vt(wd), r = F.T, a = I.p;
try {
I.p = 32 > n ? 32 : n, F.T = null, n = Td, Td = null;
- var o = xd, s = Cd;
- if (bd = 0, Sd = xd = null, Cd = 0, $u & 6) throw Error(i(331));
+ var o = Sd, s = wd;
+ if (xd = 0, Cd = Sd = null, wd = 0, $u & 6) throw Error(i(331));
var c = $u;
- if ($u |= 4, Ju(o.current), Bu(o, o.current, s, n), $u = c, Ef(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
+ if ($u |= 4, Ju(o.current), Bu(o, o.current, s, n), $u = c, Df(0, !1), Xe && typeof Xe.onPostCommitFiberRoot == "function") try {
Xe.onPostCommitFiberRoot(Ye, o);
} catch {}
return !0;
@@ -13976,9 +14123,9 @@ var lu = /* @__PURE__ */ m(((e) => {
}
}
function ff(e, t, n) {
- t = Ri(n, t), t = wc(e.stateNode, t, 2), e = fo(e, t, 2), e !== null && (ft(e, 2), Tf(e));
+ t = Ri(n, t), t = wc(e.stateNode, t, 2), e = fo(e, t, 2), e !== null && (ft(e, 2), Ef(e));
}
- function Q(e, t, n) {
+ function pf(e, t, n) {
if (e.tag === 3) ff(e, e, n);
else for (; t !== null;) {
if (t.tag === 3) {
@@ -13987,35 +14134,35 @@ var lu = /* @__PURE__ */ m(((e) => {
}
if (t.tag === 1) {
var r = t.stateNode;
- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (yd === null || !yd.has(r))) {
- e = Ri(n, e), n = Tc(2), r = fo(t, n, 2), r !== null && (Ec(n, r, t, e), ft(r, 2), Tf(r));
+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (bd === null || !bd.has(r))) {
+ e = Ri(n, e), n = Tc(2), r = fo(t, n, 2), r !== null && (Ec(n, r, t, e), ft(r, 2), Ef(r));
break;
}
}
t = t.return;
}
}
- function pf(e, t, n) {
+ function mf(e, t, n) {
var r = e.pingCache;
if (r === null) {
r = e.pingCache = new Qu();
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) || (ad = !0, i.add(n), e = mf.bind(null, e, t, n), t.then(e, e));
+ i.has(n) || (ad = !0, i.add(n), e = hf.bind(null, e, t, n), t.then(e, e));
}
- function mf(e, t, n) {
+ function hf(e, t, n) {
var r = e.pingCache;
- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, ed === e && (J & n) === n && (sd === 4 || sd === 3 && (J & 62914560) === J && 300 > Be() - hd ? $u & 2 ? ud |= n : Bd(e, 0) : ud |= n, fd === J && (fd = 0)), Tf(e);
+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, ed === e && (J & n) === n && (sd === 4 || sd === 3 && (J & 62914560) === J && 300 > Be() - gd ? $u & 2 ? ud |= n : Vd(e, 0) : ud |= n, fd === J && (fd = 0)), Ef(e);
}
- function hf(e, t) {
- t === 0 && (t = ut()), e = Ci(e, t), e !== null && (ft(e, t), Tf(e));
+ function gf(e, t) {
+ t === 0 && (t = ut()), e = Ci(e, t), e !== null && (ft(e, t), Ef(e));
}
- function gf(e) {
+ function _f(e) {
var t = e.memoizedState, n = 0;
- t !== null && (n = t.retryLane), hf(e, n);
+ t !== null && (n = t.retryLane), gf(e, n);
}
- function _f(e, t) {
+ function vf(e, t) {
var n = 0;
switch (e.tag) {
case 31:
@@ -14031,20 +14178,20 @@ var lu = /* @__PURE__ */ m(((e) => {
break;
default: throw Error(i(314));
}
- r !== null && r.delete(t), hf(e, n);
+ r !== null && r.delete(t), gf(e, n);
}
- function vf(e, t) {
+ function yf(e, t) {
return Ie(e, t);
}
- var yf = null, bf = null, xf = !1, Sf = !1, Cf = !1, wf = 0;
- function Tf(e) {
- e !== bf && e.next === null && (bf === null ? yf = bf = e : bf = bf.next = e), Sf = !0, xf || (xf = !0, Mf());
+ var bf = null, xf = null, Sf = !1, Cf = !1, wf = !1, Tf = 0;
+ function Ef(e) {
+ e !== xf && e.next === null && (xf === null ? bf = xf = e : xf = xf.next = e), Cf = !0, Sf || (Sf = !0, Nf());
}
- function Ef(e, t) {
- if (!Cf && Sf) {
- Cf = !0;
+ function Df(e, t) {
+ if (!wf && Cf) {
+ wf = !0;
do
- for (var n = !1, r = yf; r !== null;) {
+ for (var n = !1, r = bf; r !== null;) {
if (!t) {
if (e !== 0) {
var i = r.pendingLanes;
@@ -14053,29 +14200,29 @@ var lu = /* @__PURE__ */ m(((e) => {
var o = r.suspendedLanes, s = r.pingedLanes;
a = (1 << 31 - Qe(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 = J, a = ot(r, r === ed ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, jf(r, a));
+ a !== 0 && (n = !0, Mf(r, a));
+ } else a = J, a = ot(r, r === ed ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || st(r, a) || (n = !0, Mf(r, a));
}
r = r.next;
}
while (n);
- Cf = !1;
+ wf = !1;
}
}
- function Df() {
- Of();
- }
function Of() {
- Sf = xf = !1;
+ kf();
+ }
+ function kf() {
+ Cf = Sf = !1;
var e = 0;
- wf !== 0 && hp() && (e = wf);
- for (var t = Be(), 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;
+ Tf !== 0 && hp() && (e = Tf);
+ for (var t = Be(), n = null, r = bf; r !== null;) {
+ var i = r.next, a = Af(r, t);
+ a === 0 ? (r.next = null, n === null ? bf = i : n.next = i, i === null && (xf = n)) : (n = r, (e !== 0 || a & 3) && (Cf = !0)), r = i;
}
- bd !== 0 && bd !== 5 || Ef(e, !1), wf !== 0 && (wf = 0);
+ xd !== 0 && xd !== 5 || Df(e, !1), Tf !== 0 && (Tf = 0);
}
- function kf(e, t) {
+ function Af(e, t) {
for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {
var o = 31 - Qe(a), s = 1 << o, c = i[o];
c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = lt(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;
@@ -14096,40 +14243,40 @@ var lu = /* @__PURE__ */ m(((e) => {
break;
default: n = We;
}
- return r = Af.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
+ return r = jf.bind(null, e), n = Ie(n, r), e.callbackPriority = t, e.callbackNode = n, t;
}
return r !== null && r !== null && Le(r), e.callbackPriority = 2, e.callbackNode = null, 2;
}
- function Af(e, t) {
- if (bd !== 0 && bd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
+ function jf(e, t) {
+ if (xd !== 0 && xd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;
var n = e.callbackNode;
if (uf() && e.callbackNode !== n) return null;
var r = J;
- return r = ot(e, e === ed ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Pd(e, r, t), kf(e, Be()), e.callbackNode != null && e.callbackNode === n ? Af.bind(null, e) : null);
+ return r = ot(e, e === ed ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (X(e, r, t), Af(e, Be()), e.callbackNode != null && e.callbackNode === n ? jf.bind(null, e) : null);
}
- function jf(e, t) {
+ function Mf(e, t) {
if (uf()) return null;
- Pd(e, t, !0);
+ X(e, t, !0);
}
- function Mf() {
+ function Nf() {
bp(function() {
- $u & 6 ? Ie(He, Df) : Of();
+ $u & 6 ? Ie(He, Of) : kf();
});
}
- function Nf() {
- if (wf === 0) {
+ function Pf() {
+ if (Tf === 0) {
var e = Na;
- e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), wf = e;
+ e === 0 && (e = nt, nt <<= 1, !(nt & 261888) && (nt = 256)), Tf = e;
}
- return wf;
+ return Tf;
}
- function Pf(e) {
+ function Ff(e) {
return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : pn(e);
}
- function Ff(e, t, n, r, i) {
+ function If(e, t, n, r, i) {
if (t === "submit" && n && n.stateNode === i) {
- 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 a = Ff((i[Ct] || null).action), o = r.submitter;
+ o && (t = (t = o[Ct] || null) ? Ff(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));
var s = new Fn("action", "action", null, r, i);
e.push({
event: s,
@@ -14137,7 +14284,7 @@ var lu = /* @__PURE__ */ m(((e) => {
instance: null,
listener: function() {
if (r.defaultPrevented) {
- if (wf !== 0) {
+ if (Tf !== 0) {
var e = new FormData(i, o);
Xs(n, {
pending: !0,
@@ -14158,9 +14305,9 @@ var lu = /* @__PURE__ */ m(((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 Lf = 0; Lf < ui.length; Lf++) {
+ var Rf = ui[Lf];
+ di(Rf.toLowerCase(), "on" + (Rf[0].toUpperCase() + Rf.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", [
"compositionend",
@@ -14168,8 +14315,8 @@ var lu = /* @__PURE__ */ m(((e) => {
"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(" "));
- 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) {
+ var zf = "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(" "), Bf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zf));
+ function Vf(e, t) {
t = !!(t & 4);
for (var n = 0; n < e.length; n++) {
var r = e[n], i = r.event;
@@ -14200,27 +14347,27 @@ var lu = /* @__PURE__ */ m(((e) => {
}
}
}
- function $(e, t) {
+ function Q(e, t) {
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));
+ n.has(r) || (Gf(t, e, 2, !1), n.add(r));
}
- function Vf(e, t, n) {
+ function Hf(e, t, n) {
var r = 0;
- t && (r |= 4), Wf(n, e, r, t);
+ t && (r |= 4), Gf(n, e, r, t);
}
- var Hf = "_reactListening" + Math.random().toString(36).slice(2);
- function Uf(e) {
- if (!e[Hf]) {
- e[Hf] = !0, z.forEach(function(t) {
- t !== "selectionchange" && (zf.has(t) || Vf(t, !1, e), Vf(t, !0, e));
+ var Uf = "_reactListening" + Math.random().toString(36).slice(2);
+ function Wf(e) {
+ if (!e[Uf]) {
+ e[Uf] = !0, z.forEach(function(t) {
+ t !== "selectionchange" && (Bf.has(t) || Hf(t, !1, e), Hf(t, !0, e));
});
var t = e.nodeType === 9 ? e : e.ownerDocument;
- t === null || t[Hf] || (t[Hf] = !0, Vf("selectionchange", !1, t));
+ t === null || t[Uf] || (t[Uf] = !0, Hf("selectionchange", !1, t));
}
}
- function Wf(e, t, n, r) {
+ function Gf(e, t, n, r) {
switch (Ch(t)) {
case 2:
var i = _h;
@@ -14235,7 +14382,7 @@ var lu = /* @__PURE__ */ m(((e) => {
passive: i
}) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });
}
- function Gf(e, t, n, r, i) {
+ function Kf(e, t, n, r, i) {
var a = r;
if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {
if (r === null) return;
@@ -14348,7 +14495,7 @@ var lu = /* @__PURE__ */ m(((e) => {
d = [];
for (var m = r, h; m !== null;) {
var g = m;
- if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Sn(m, p), g != null && d.push(Kf(m, g, h))), f) break;
+ if (h = g.stateNode, g = g.tag, g !== 5 && g !== 26 && g !== 27 || h === null || p === null || (g = Sn(m, p), g != null && d.push(qf(m, g, h))), f) break;
m = m.return;
}
0 < d.length && (c = new l(c, u, null, n, i), s.push({
@@ -14360,7 +14507,7 @@ var lu = /* @__PURE__ */ m(((e) => {
if (!(t & 7)) {
a: {
if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== hn && (u = n.relatedTarget || n.fromElement) && (jt(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 ? jt(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 = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(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)));
+ (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 ? jt(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 = Hn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = er, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Nt(c), h = l == null ? u : Nt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, jt(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, Yf) : null, c !== null && Xf(s, u, c, d, !1), l !== null && f !== null && Xf(s, f, l, d, !0)));
}
a: {
if (c = r ? Nt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = wr;
@@ -14412,58 +14559,58 @@ var lu = /* @__PURE__ */ m(((e) => {
b = void 0;
}
else hr ? pr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");
- b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, hr = !0)), v = qf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
+ b && (ur && n.locale !== "ko" && (hr || b !== "onCompositionStart" ? b === "onCompositionEnd" && hr && (y = kn()) : (En = i, Dn = "value" in En ? En.value : En.textContent, hr = !0)), v = Jf(r, b), 0 < v.length && (b = new qn(b, e, null, n, i), s.push({
event: b,
listeners: v
- }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = qf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
+ }), y ? b.data = y : (y = mr(n), y !== null && (b.data = y)))), (y = lr ? gr(e, n) : _r(e, n)) && (b = Jf(r, "onBeforeInput"), 0 < b.length && (v = new qn("onBeforeInput", "beforeinput", null, n, i), s.push({
event: v,
listeners: b
- }), v.data = y)), Ff(s, e, r, n, i);
+ }), v.data = y)), If(s, e, r, n, i);
}
- Bf(s, t);
+ Vf(s, t);
});
}
- function Kf(e, t, n) {
+ function qf(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
};
}
- function qf(e, t) {
+ function Jf(e, t) {
for (var n = t + "Capture", r = []; e !== null;) {
var i = e, a = i.stateNode;
- if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Sn(e, n), i != null && r.unshift(Kf(e, i, a)), i = Sn(e, t), i != null && r.push(Kf(e, i, a))), e.tag === 3) return r;
+ if (i = i.tag, i !== 5 && i !== 26 && i !== 27 || a === null || (i = Sn(e, n), i != null && r.unshift(qf(e, i, a)), i = Sn(e, t), i != null && r.push(qf(e, i, a))), e.tag === 3) return r;
e = e.return;
}
return [];
}
- function Jf(e) {
+ function Yf(e) {
if (e === null) return null;
do
e = e.return;
while (e && e.tag !== 5 && e.tag !== 27);
return e || null;
}
- function Yf(e, t, n, r, i) {
+ function Xf(e, t, n, r, i) {
for (var a = t._reactName, o = []; n !== null && n !== r;) {
var s = n, c = s.alternate, l = s.stateNode;
if (s = s.tag, c !== null && c === r) break;
- s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Sn(n, a), l != null && o.unshift(Kf(n, l, c))) : i || (l = Sn(n, a), l != null && o.push(Kf(n, l, c)))), n = n.return;
+ s !== 5 && s !== 26 && s !== 27 || l === null || (c = l, i ? (l = Sn(n, a), l != null && o.unshift(qf(n, l, c))) : i || (l = Sn(n, a), l != null && o.push(qf(n, l, c)))), n = n.return;
}
o.length !== 0 && e.push({
event: t,
listeners: o
});
}
- var Xf = /\r\n?/g, Zf = /\u0000|\uFFFD/g;
- function Qf(e) {
- return (typeof e == "string" ? e : "" + e).replace(Xf, "\n").replace(Zf, "");
+ var Zf = /\r\n?/g, Qf = /\u0000|\uFFFD/g;
+ function $f(e) {
+ return (typeof e == "string" ? e : "" + e).replace(Zf, "\n").replace(Qf, "");
}
- function $f(e, t) {
- return t = Qf(t), Qf(e) === t;
+ function ep(e, t) {
+ return t = $f(t), $f(e) === t;
}
- function ep(e, t, n, r, a, o) {
+ function $(e, t, n, r, a, o) {
switch (n) {
case "children":
if (typeof r == "string") t === "body" || t === "textarea" && r === "" || on(e, r);
@@ -14508,7 +14655,7 @@ var lu = /* @__PURE__ */ m(((e) => {
e.setAttribute(n, "javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");
break;
}
- if (typeof o == "function" && (n === "formAction" ? (t !== "input" && ep(e, t, "name", a.name, a, null), ep(e, t, "formEncType", a.formEncType, a, null), ep(e, t, "formMethod", a.formMethod, a, null), ep(e, t, "formTarget", a.formTarget, a, null)) : (ep(e, t, "encType", a.encType, a, null), ep(e, t, "method", a.method, a, null), ep(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
+ if (typeof o == "function" && (n === "formAction" ? (t !== "input" && $(e, t, "name", a.name, a, null), $(e, t, "formEncType", a.formEncType, a, null), $(e, t, "formMethod", a.formMethod, a, null), $(e, t, "formTarget", a.formTarget, a, null)) : ($(e, t, "encType", a.encType, a, null), $(e, t, "method", a.method, a, null), $(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {
e.removeAttribute(n);
break;
}
@@ -14518,10 +14665,10 @@ var lu = /* @__PURE__ */ m(((e) => {
r != null && (e.onclick = mn);
return;
case "onScroll":
- r != null && $("scroll", e);
+ r != null && Q("scroll", e);
return;
case "onScrollEnd":
- r != null && $("scrollend", e);
+ r != null && Q("scrollend", e);
return;
case "dangerouslySetInnerHTML":
if (r != null) {
@@ -14603,7 +14750,7 @@ var lu = /* @__PURE__ */ m(((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), Wt(e, "popover", r);
+ Q("beforetoggle", e), Q("toggle", e), Wt(e, "popover", r);
break;
case "xlinkActuate":
Kt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);
@@ -14662,10 +14809,10 @@ var lu = /* @__PURE__ */ m(((e) => {
else return;
break;
case "onScroll":
- r != null && $("scroll", e);
+ r != null && Q("scroll", e);
return;
case "onScrollEnd":
- r != null && $("scrollend", e);
+ r != null && Q("scrollend", e);
return;
case "onClick":
r != null && (e.onclick = mn);
@@ -14699,7 +14846,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case "p":
case "li": break;
case "img":
- $("error", e), $("load", e);
+ Q("error", e), Q("load", e);
var r = !1, a = !1, o;
for (o in n) if (n.hasOwnProperty(o)) {
var s = n[o];
@@ -14712,13 +14859,13 @@ var lu = /* @__PURE__ */ m(((e) => {
break;
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ep(e, t, o, s, n, null);
+ default: $(e, t, o, s, n, null);
}
}
- a && ep(e, t, "srcSet", n.srcSet, n, null), r && ep(e, t, "src", n.src, n, null);
+ a && $(e, t, "srcSet", n.srcSet, n, null), r && $(e, t, "src", n.src, n, null);
return;
case "input":
- $("invalid", e);
+ Q("invalid", e);
var c = o = s = a = null, l = null, u = null;
for (r in n) if (n.hasOwnProperty(r)) {
var d = n[r];
@@ -14745,13 +14892,13 @@ var lu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (d != null) throw Error(i(137, t));
break;
- default: ep(e, t, r, d, n, null);
+ default: $(e, t, r, d, n, null);
}
}
en(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) {
+ for (a in Q("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {
case "value":
o = c;
break;
@@ -14759,12 +14906,12 @@ var lu = /* @__PURE__ */ m(((e) => {
s = c;
break;
case "multiple": r = c;
- default: ep(e, t, a, c, n, null);
+ default: $(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);
return;
case "textarea":
- for (s in $("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
+ for (s in Q("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {
case "value":
r = c;
break;
@@ -14777,7 +14924,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (c != null) throw Error(i(91));
break;
- default: ep(e, t, s, c, n, null);
+ default: $(e, t, s, c, n, null);
}
an(e, r, a, o);
return;
@@ -14786,29 +14933,29 @@ var lu = /* @__PURE__ */ m(((e) => {
case "selected":
e.selected = r && typeof r != "function" && typeof r != "symbol";
break;
- default: ep(e, t, l, r, n, null);
+ default: $(e, t, l, r, n, null);
}
return;
case "dialog":
- $("beforetoggle", e), $("toggle", e), $("cancel", e), $("close", e);
+ Q("beforetoggle", e), Q("toggle", e), Q("cancel", e), Q("close", e);
break;
case "iframe":
case "object":
- $("load", e);
+ Q("load", e);
break;
case "video":
case "audio":
- for (r = 0; r < Rf.length; r++) $(Rf[r], e);
+ for (r = 0; r < zf.length; r++) Q(zf[r], e);
break;
case "image":
- $("error", e), $("load", e);
+ Q("error", e), Q("load", e);
break;
case "details":
- $("toggle", e);
+ Q("toggle", e);
break;
case "embed":
case "source":
- case "link": $("error", e), $("load", e);
+ case "link": Q("error", e), Q("load", e);
case "area":
case "base":
case "br":
@@ -14823,7 +14970,7 @@ var lu = /* @__PURE__ */ m(((e) => {
for (u in n) if (n.hasOwnProperty(u) && (r = n[u], r != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML": throw Error(i(137, t));
- default: ep(e, t, u, r, n, null);
+ default: $(e, t, u, r, n, null);
}
return;
default: if (un(t)) {
@@ -14831,7 +14978,7 @@ var lu = /* @__PURE__ */ m(((e) => {
return;
}
}
- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && ep(e, t, c, r, n, null));
+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && $(e, t, c, r, n, null));
}
var rp = {};
function ip(e, t, n, r) {
@@ -14852,7 +14999,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case "checked": break;
case "value": break;
case "defaultValue": l = f;
- default: r.hasOwnProperty(m) || ep(e, t, m, null, r, f);
+ default: r.hasOwnProperty(m) || $(e, t, m, null, r, f);
}
}
for (var p in r) {
@@ -14880,7 +15027,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (m != null) throw Error(i(137, t));
break;
- default: m !== f && ep(e, t, p, m, r, f);
+ default: m !== f && $(e, t, p, m, r, f);
}
}
$t(e, s, c, l, u, d, o, a);
@@ -14889,7 +15036,7 @@ var lu = /* @__PURE__ */ m(((e) => {
for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {
case "value": break;
case "multiple": m = l;
- default: r.hasOwnProperty(o) || ep(e, t, o, null, r, l);
+ default: r.hasOwnProperty(o) || $(e, t, o, null, r, l);
}
for (a in r) if (o = r[a], l = n[a], r.hasOwnProperty(a) && (o != null || l != null)) switch (a) {
case "value":
@@ -14899,7 +15046,7 @@ var lu = /* @__PURE__ */ m(((e) => {
o !== l && (B = !0), c = o;
break;
case "multiple": o !== l && (B = !0), s = o;
- default: o !== l && ep(e, t, a, o, r, l);
+ default: o !== l && $(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);
return;
@@ -14907,7 +15054,7 @@ var lu = /* @__PURE__ */ m(((e) => {
for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {
case "value": break;
case "children": break;
- default: ep(e, t, c, null, r, a);
+ default: $(e, t, c, null, r, a);
}
for (s in r) if (a = r[s], o = n[s], r.hasOwnProperty(s) && (a != null || o != null)) switch (s) {
case "value":
@@ -14920,7 +15067,7 @@ var lu = /* @__PURE__ */ m(((e) => {
case "dangerouslySetInnerHTML":
if (a != null) throw Error(i(91));
break;
- default: a !== o && ep(e, t, s, a, r, o);
+ default: a !== o && $(e, t, s, a, r, o);
}
rn(e, p, m);
return;
@@ -14929,13 +15076,13 @@ var lu = /* @__PURE__ */ m(((e) => {
case "selected":
e.selected = !1;
break;
- default: ep(e, t, h, null, r, p);
+ default: $(e, t, h, null, r, p);
}
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 && (B = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";
break;
- default: ep(e, t, l, p, r, m);
+ default: $(e, t, l, p, r, m);
}
return;
case "img":
@@ -14953,13 +15100,13 @@ var lu = /* @__PURE__ */ m(((e) => {
case "track":
case "wbr":
case "menuitem":
- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && ep(e, t, g, null, r, p);
+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && $(e, t, g, null, r, p);
for (u in r) if (p = r[u], m = n[u], r.hasOwnProperty(u) && p !== m && (p != null || m != null)) switch (u) {
case "children":
case "dangerouslySetInnerHTML":
if (p != null) throw Error(i(137, t));
break;
- default: ep(e, t, u, p, r, m);
+ default: $(e, t, u, p, r, m);
}
return;
default: if (un(t)) {
@@ -14968,8 +15115,8 @@ var lu = /* @__PURE__ */ m(((e) => {
return;
}
}
- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && ep(e, t, v, null, r, p);
- for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || ep(e, t, f, p, r, m);
+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && $(e, t, v, null, r, p);
+ for (f in r) p = r[f], m = n[f], !r.hasOwnProperty(f) || p === m || p == null && m == null || $(e, t, f, p, r, m);
}
function ap(e) {
switch (e) {
@@ -15628,7 +15775,7 @@ var lu = /* @__PURE__ */ m(((e) => {
function gm(e, t, n) {
for (var r in n) {
var i = n[r];
- n.hasOwnProperty(r) && i != null && ep(e, t, r, null, rp, i);
+ n.hasOwnProperty(r) && i != null && $(e, t, r, null, rp, i);
}
n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === mn && (e.onclick = null), At(e);
}
@@ -15657,7 +15804,7 @@ var lu = /* @__PURE__ */ m(((e) => {
M: Mm
};
function Sm() {
- var e = xm.f(), t = Rd();
+ var e = xm.f(), t = zd();
return e || t;
}
function Cm(e) {
@@ -16081,7 +16228,7 @@ var lu = /* @__PURE__ */ m(((e) => {
return e ? (e = Ei, e) : Ei;
}
function dh(e, t, n, r, i, a) {
- i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = uo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = fo(e, r, t), n !== null && (Nd(n, e, t), po(n, e, t));
+ i = uh(i), r.context === null ? r.context = i : r.pendingContext = i, r = uo(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = fo(e, r, t), n !== null && (Fd(n, e, t), po(n, e, t));
}
function fh(e, t) {
if (e = e.memoizedState, e !== null && e.dehydrated !== null) {
@@ -16095,15 +16242,15 @@ var lu = /* @__PURE__ */ m(((e) => {
function mh(e) {
if (e.tag === 13 || e.tag === 31) {
var t = Ci(e, 67108864);
- t !== null && Nd(t, e, 67108864), ph(e, 67108864);
+ t !== null && Fd(t, e, 67108864), ph(e, 67108864);
}
}
function hh(e) {
if (e.tag === 13 || e.tag === 31) {
- var t = jd();
+ var t = Md();
t = _t(t);
var n = Ci(e, t);
- n !== null && Nd(n, e, t), ph(e, t);
+ n !== null && Fd(n, e, t), ph(e, t);
}
}
var gh = !0;
@@ -16130,7 +16277,7 @@ var lu = /* @__PURE__ */ m(((e) => {
function yh(e, t, n, r) {
if (gh) {
var i = bh(r);
- if (i === null) Gf(e, t, r, xh, n), Mh(e, r);
+ if (i === null) Kf(e, t, r, xh, n), Mh(e, r);
else if (Ph(i, e, t, n, r)) r.stopPropagation();
else if (Mh(e, r), t & 4 && -1 < jh.indexOf(e)) {
for (; i !== null;) {
@@ -16145,18 +16292,18 @@ var lu = /* @__PURE__ */ m(((e) => {
var c = 1 << 31 - Qe(o);
s.entanglements[1] |= c, o &= ~c;
}
- Tf(a), !($u & 6) && (_d = Be() + 500, Ef(0, !1));
+ Ef(a), !($u & 6) && (vd = Be() + 500, Df(0, !1));
}
}
break;
case 31:
- case 13: s = Ci(a, 2), s !== null && Nd(s, a, 2), Rd(), ph(a, 2);
+ case 13: s = Ci(a, 2), s !== null && Fd(s, a, 2), zd(), ph(a, 2);
}
- if (a = bh(r), a === null && Gf(e, t, r, xh, n), a === i) break;
+ if (a = bh(r), a === null && Kf(e, t, r, xh, n), a === i) break;
i = a;
}
i !== null && r.stopPropagation();
- } else Gf(e, t, r, null, n);
+ } else Kf(e, t, r, null, n);
}
}
function bh(e) {
@@ -16443,13 +16590,13 @@ var lu = /* @__PURE__ */ m(((e) => {
var t = this._internalRoot;
if (t === null) throw Error(i(409));
var n = t.current;
- dh(n, jd(), e, t, null, null);
+ dh(n, Md(), e, t, null, null);
}, Gh.prototype.unmount = Wh.prototype.unmount = function() {
var e = this._internalRoot;
if (e !== null) {
this._internalRoot = null;
var t = e.containerInfo;
- dh(e.current, 2, null, e, null, null), Rd(), t[wt] = null;
+ dh(e.current, 2, null, e, null, null), zd(), t[wt] = null;
}
};
function Gh(e) {
@@ -16490,9 +16637,9 @@ var lu = /* @__PURE__ */ m(((e) => {
e.createRoot = function(e, t) {
if (!a(e)) throw Error(i(299));
var n = !1, r = "", o = yc, s = bc, c = xc;
- 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);
+ 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, Wf(e), new Wh(t);
};
-})), fu = (/* @__PURE__ */ m(((e, t) => {
+})), yu = (/* @__PURE__ */ m(((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);
@@ -16500,8 +16647,32 @@ var lu = /* @__PURE__ */ m(((e) => {
console.error(e);
}
}
- n(), t.exports = du();
-})))(), pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ n(), t.exports = vu();
+})))(), bu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), xu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), Su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+ viewBox: "0 0 24 24",
+ xmlns: "http://www.w3.org/2000/svg",
+ width: t,
+ height: t,
+ fill: e,
+ ...r,
+ className: "remixicon " + (n || "")
+}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), Cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16509,7 +16680,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.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" })), wu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16517,7 +16688,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" })), hu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.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" })), Tu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16525,7 +16696,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z" })), gu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), Eu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16533,7 +16704,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.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" })), _u = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), Du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16541,7 +16712,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.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" })), vu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.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" })), Ou = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16549,7 +16720,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M5 12.5C5 12.8134 5.46101 13.3584 6.53047 13.8931C7.91405 14.5849 9.87677 15 12 15C14.1232 15 16.0859 14.5849 17.4695 13.8931C18.539 13.3584 19 12.8134 19 12.5V10.3287C17.35 11.3482 14.8273 12 12 12C9.17273 12 6.64996 11.3482 5 10.3287V12.5ZM19 15.3287C17.35 16.3482 14.8273 17 12 17C9.17273 17 6.64996 16.3482 5 15.3287V17.5C5 17.8134 5.46101 18.3584 6.53047 18.8931C7.91405 19.5849 9.87677 20 12 20C14.1232 20 16.0859 19.5849 17.4695 18.8931C18.539 18.3584 19 17.8134 19 17.5V15.3287ZM3 17.5V7.5C3 5.01472 7.02944 3 12 3C16.9706 3 21 5.01472 21 7.5V17.5C21 19.9853 16.9706 22 12 22C7.02944 22 3 19.9853 3 17.5ZM12 10C14.1232 10 16.0859 9.58492 17.4695 8.89313C18.539 8.3584 19 7.81342 19 7.5C19 7.18658 18.539 6.6416 17.4695 6.10687C16.0859 5.41508 14.1232 5 12 5C9.87677 5 7.91405 5.41508 6.53047 6.10687C5.46101 6.6416 5 7.18658 5 7.5C5 7.81342 5.46101 8.3584 6.53047 8.89313C7.91405 9.58492 9.87677 10 12 10Z" })), yu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z" })), ku = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16557,7 +16728,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" })), bu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Au = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16565,7 +16736,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.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" })), xu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), ju = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16573,7 +16744,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM9.71002 19.6674C8.74743 17.6259 8.15732 15.3742 8.02731 13H4.06189C4.458 16.1765 6.71639 18.7747 9.71002 19.6674ZM10.0307 13C10.1811 15.4388 10.8778 17.7297 12 19.752C13.1222 17.7297 13.8189 15.4388 13.9693 13H10.0307ZM19.9381 13H15.9727C15.8427 15.3742 15.2526 17.6259 14.29 19.6674C17.2836 18.7747 19.542 16.1765 19.9381 13ZM4.06189 11H8.02731C8.15732 8.62577 8.74743 6.37407 9.71002 4.33256C6.71639 5.22533 4.458 7.8235 4.06189 11ZM10.0307 11H13.9693C13.8189 8.56122 13.1222 6.27025 12 4.24799C10.8778 6.27025 10.1811 8.56122 10.0307 11ZM14.29 4.33256C15.2526 6.37407 15.8427 8.62577 15.9727 11H19.9381C19.542 7.8235 17.2836 5.22533 14.29 4.33256Z" })), Su = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.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" })), Mu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16581,7 +16752,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M5 14H19V4H5V14ZM5 16V20H19V16H5ZM4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2ZM15 17H17V19H15V17Z" })), Cu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.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" })), Nu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16589,7 +16760,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.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" })), wu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Pu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16597,7 +16768,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.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" })), Tu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M10.9042 2.10025L20.8037 3.51446L22.2179 13.414L13.0255 22.6063C12.635 22.9969 12.0019 22.9969 11.6113 22.6063L1.71184 12.7069C1.32131 12.3163 1.32131 11.6832 1.71184 11.2926L10.9042 2.10025ZM11.6113 4.22157L3.83316 11.9997L12.3184 20.485L20.0966 12.7069L19.036 5.28223L11.6113 4.22157ZM13.7327 10.5855C12.9516 9.80448 12.9516 8.53815 13.7327 7.7571C14.5137 6.97606 15.78 6.97606 16.5611 7.7571C17.3421 8.53815 17.3421 9.80448 16.5611 10.5855C15.78 11.3666 14.5137 11.3666 13.7327 10.5855Z" })), Fu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16605,7 +16776,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" })), Eu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Iu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16613,7 +16784,7 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z" })), Du = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
+}, x.createElement("path", { d: "M3 3.9934C3 3.44476 3.44495 3 3.9934 3H20.0066C20.5552 3 21 3.44495 21 3.9934V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934ZM5 5V19H19V5H5ZM10.6219 8.41459L15.5008 11.6672C15.6846 11.7897 15.7343 12.0381 15.6117 12.2219C15.5824 12.2658 15.5447 12.3035 15.5008 12.3328L10.6219 15.5854C10.4381 15.708 10.1897 15.6583 10.0672 15.4745C10.0234 15.4088 10 15.3316 10 15.2526V8.74741C10 8.52649 10.1791 8.34741 10.4 8.34741C10.479 8.34741 10.5562 8.37078 10.6219 8.41459Z" })), Lu = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => x.createElement("svg", {
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
width: t,
@@ -16621,100 +16792,100 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: e,
...r,
className: "remixicon " + (n || "")
-}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Ou = (e, t) => {
+}, x.createElement("path", { d: "M14 4.4375C15.3462 4.4375 16.4375 3.34619 16.4375 2H17.5625C17.5625 3.34619 18.6538 4.4375 20 4.4375V5.5625C18.6538 5.5625 17.5625 6.65381 17.5625 8H16.4375C16.4375 6.65381 15.3462 5.5625 14 5.5625V4.4375ZM1 11C4.31371 11 7 8.31371 7 5H9C9 8.31371 11.6863 11 15 11V13C11.6863 13 9 15.6863 9 19H7C7 15.6863 4.31371 13 1 13V11ZM4.87601 12C6.18717 12.7276 7.27243 13.8128 8 15.124 8.72757 13.8128 9.81283 12.7276 11.124 12 9.81283 11.2724 8.72757 10.1872 8 8.87601 7.27243 10.1872 6.18717 11.2724 4.87601 12ZM17.25 14C17.25 15.7949 15.7949 17.25 14 17.25V18.75C15.7949 18.75 17.25 20.2051 17.25 22H18.75C18.75 20.2051 20.2051 18.75 22 18.75V17.25C20.2051 17.25 18.75 15.7949 18.75 14H17.25Z" })), Ru = (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;
-}, ku = (e, t) => ({
+}, zu = (e, t) => ({
classGroupId: e,
validator: t
-}), Au = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
+}), Bu = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
nextPart: e,
validators: t,
classGroupId: n
-}), ju = "-", Mu = [], Nu = "arbitrary..", Pu = (e) => {
- let t = Lu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
+}), Vu = "-", Hu = [], Uu = "arbitrary..", Wu = (e) => {
+ let t = qu(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
return {
getClassGroupId: (e) => {
- if (e.startsWith("[") && e.endsWith("]")) return Iu(e);
- let n = e.split(ju);
- return Fu(n, +(n[0] === "" && n.length > 1), t);
+ if (e.startsWith("[") && e.endsWith("]")) return Ku(e);
+ let n = e.split(Vu);
+ return Gu(n, +(n[0] === "" && n.length > 1), t);
},
getConflictingClassGroupIds: (e, t) => {
if (t) {
let t = r[e], i = n[e];
- return t ? i ? Ou(i, t) : t : i || Mu;
+ return t ? i ? Ru(i, t) : t : i || Hu;
}
- return n[e] || Mu;
+ return n[e] || Hu;
}
};
-}, Fu = (e, t, n) => {
+}, Gu = (e, t, n) => {
if (e.length - t === 0) return n.classGroupId;
let r = e[t], i = n.nextPart.get(r);
if (i) {
- let n = Fu(e, t + 1, i);
+ let n = Gu(e, t + 1, i);
if (n) return n;
}
let a = n.validators;
if (a === null) return;
- let o = t === 0 ? e.join(ju) : e.slice(t).join(ju), s = a.length;
+ let o = t === 0 ? e.join(Vu) : e.slice(t).join(Vu), s = a.length;
for (let e = 0; e < s; e++) {
let t = a[e];
if (t.validator(o)) return t.classGroupId;
}
-}, Iu = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
+}, Ku = (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 ? Nu + r : void 0;
-})(), Lu = (e) => {
+ return r ? Uu + r : void 0;
+})(), qu = (e) => {
let { theme: t, classGroups: n } = e;
- return Ru(n, t);
-}, Ru = (e, t) => {
- let n = Au();
+ return Ju(n, t);
+}, Ju = (e, t) => {
+ let n = Bu();
for (let r in e) {
let i = e[r];
- zu(i, n, r, t);
+ Yu(i, n, r, t);
}
return n;
-}, zu = (e, t, n, r) => {
+}, Yu = (e, t, n, r) => {
let i = e.length;
for (let a = 0; a < i; a++) {
let i = e[a];
- Bu(i, t, n, r);
+ Xu(i, t, n, r);
}
-}, Bu = (e, t, n, r) => {
+}, Xu = (e, t, n, r) => {
if (typeof e == "string") {
- Vu(e, t, n);
+ Zu(e, t, n);
return;
}
if (typeof e == "function") {
- Hu(e, t, n, r);
+ Qu(e, t, n, r);
return;
}
- Uu(e, t, n, r);
-}, Vu = (e, t, n) => {
- let r = e === "" ? t : Wu(t, e);
+ $u(e, t, n, r);
+}, Zu = (e, t, n) => {
+ let r = e === "" ? t : ed(t, e);
r.classGroupId = n;
-}, Hu = (e, t, n, r) => {
- if (Gu(e)) {
- zu(e(r), t, n, r);
+}, Qu = (e, t, n, r) => {
+ if (q(e)) {
+ Yu(e(r), t, n, r);
return;
}
- t.validators === null && (t.validators = []), t.validators.push(ku(n, e));
-}, Uu = (e, t, n, r) => {
+ t.validators === null && (t.validators = []), t.validators.push(zu(n, e));
+}, $u = (e, t, n, r) => {
let i = Object.entries(e), a = i.length;
for (let e = 0; e < a; e++) {
let [a, o] = i[e];
- zu(o, Wu(t, a), n, r);
+ Yu(o, ed(t, a), n, r);
}
-}, Wu = (e, t) => {
- let n = e, r = t.split(ju), i = r.length;
+}, ed = (e, t) => {
+ let n = e, r = t.split(Vu), i = r.length;
for (let e = 0; e < i; e++) {
let t = r[e], i = n.nextPart.get(t);
- i || (i = Au(), n.nextPart.set(t, i)), n = i;
+ i || (i = Bu(), n.nextPart.set(t, i)), n = i;
}
return n;
-}, Gu = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Ku = (e) => {
+}, q = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, J = (e) => {
if (e < 1) return {
get: () => void 0,
set: () => {}
@@ -16732,19 +16903,19 @@ var lu = /* @__PURE__ */ m(((e) => {
e in n ? n[e] = t : i(e, t);
}
};
-}, qu = "!", Ju = ":", Yu = [], Xu = (e, t, n, r, i) => ({
+}, td = "!", nd = ":", rd = [], id = (e, t, n, r, i) => ({
modifiers: e,
hasImportantModifier: t,
baseClassName: n,
maybePostfixModifierPosition: r,
isExternal: i
-}), Zu = (e) => {
+}), ad = (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 === Ju) {
+ if (o === nd) {
t.push(e.slice(i, s)), i = s + 1;
continue;
}
@@ -16756,13 +16927,13 @@ var lu = /* @__PURE__ */ m(((e) => {
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
}
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
- s.endsWith(qu) ? (c = s.slice(0, -1), l = !0) : s.startsWith(qu) && (c = s.slice(1), l = !0);
+ s.endsWith(td) ? (c = s.slice(0, -1), l = !0) : s.startsWith(td) && (c = s.slice(1), l = !0);
let u = a && a > i ? a - i : void 0;
- return Xu(t, l, c, u);
+ return id(t, l, c, u);
};
if (t) {
- let e = t + Ju, n = r;
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Xu(Yu, !1, t, void 0, !0);
+ let e = t + nd, n = r;
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : id(rd, !1, t, void 0, !0);
}
if (n) {
let e = r;
@@ -16772,7 +16943,7 @@ var lu = /* @__PURE__ */ m(((e) => {
});
}
return r;
-}, Qu = (e) => {
+}, od = (e) => {
let t = /* @__PURE__ */ new Map();
return e.orderSensitiveModifiers.forEach((e, n) => {
t.set(e, 1e6 + n);
@@ -16784,18 +16955,18 @@ var lu = /* @__PURE__ */ m(((e) => {
}
return r.length > 0 && (r.sort(), n.push(...r)), n;
};
-}, $u = (e) => ({
- cache: Ku(e.cacheSize),
- parseClassName: Zu(e),
- sortModifiers: Qu(e),
- postfixLookupClassGroupIds: ed(e),
- ...Pu(e)
-}), ed = (e) => {
+}, sd = (e) => ({
+ cache: J(e.cacheSize),
+ parseClassName: ad(e),
+ sortModifiers: od(e),
+ postfixLookupClassGroupIds: cd(e),
+ ...Wu(e)
+}), cd = (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;
-}, q = /\s+/, J = (e, t) => {
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(q), l = "";
+}, ld = /\s+/, ud = (e, t) => {
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ld), 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) {
@@ -16819,7 +16990,7 @@ var lu = /* @__PURE__ */ m(((e) => {
}
h = !1;
}
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + qu : _, y = v + g;
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + td : _, y = v + g;
if (s.indexOf(y) > -1) continue;
s.push(y);
let b = i(g, h);
@@ -16830,34 +17001,34 @@ var lu = /* @__PURE__ */ m(((e) => {
l = t + (l.length > 0 ? " " + l : l);
}
return l;
-}, td = (...e) => {
+}, dd = (...e) => {
let t = 0, n, r, i = "";
- for (; t < e.length;) (n = e[t++]) && (r = nd(n)) && (i && (i += " "), i += r);
+ for (; t < e.length;) (n = e[t++]) && (r = fd(n)) && (i && (i += " "), i += r);
return i;
-}, nd = (e) => {
+}, fd = (e) => {
if (typeof e == "string") return e;
let t, n = "";
- for (let r = 0; r < e.length; r++) e[r] && (t = nd(e[r])) && (n && (n += " "), n += t);
+ for (let r = 0; r < e.length; r++) e[r] && (t = fd(e[r])) && (n && (n += " "), n += t);
return n;
-}, rd = (e, ...t) => {
- let n, r, i, a, o = (o) => (n = $u(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
+}, pd = (e, ...t) => {
+ let n, r, i, a, o = (o) => (n = sd(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 = J(e, n);
+ let a = ud(e, n);
return i(e, a), a;
};
- return a = o, (...e) => a(td(...e));
-}, id = [], ad = (e) => {
- let t = (t) => t[e] || id;
+ return a = o, (...e) => a(dd(...e));
+}, md = [], hd = (e) => {
+ let t = (t) => t[e] || md;
return t.isThemeGetter = !0, t.themeKey = e, t;
-}, od = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, sd = /^\((?:(\w[\w-]*):)?(.+)\)$/i, cd = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ld = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ud = /\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$/, dd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, fd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, md = (e) => cd.test(e), Y = (e) => !!e && !Number.isNaN(Number(e)), hd = (e) => !!e && Number.isInteger(Number(e)), gd = (e) => e.endsWith("%") && Y(e.slice(0, -1)), _d = (e) => ld.test(e), vd = () => !0, yd = (e) => ud.test(e) && !dd.test(e), bd = () => !1, xd = (e) => fd.test(e), Sd = (e) => pd.test(e), Cd = (e) => !X(e) && !Z(e), wd = (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)), Td = (e) => Bd(e, Wd, bd), X = (e) => od.test(e), Ed = (e) => Bd(e, Gd, yd), Dd = (e) => Bd(e, Kd, Y), Od = (e) => Bd(e, Jd, vd), kd = (e) => Bd(e, qd, bd), Ad = (e) => Bd(e, Hd, bd), jd = (e) => Bd(e, Ud, Sd), Md = (e) => Bd(e, Yd, xd), Z = (e) => sd.test(e), Nd = (e) => Vd(e, Gd), Pd = (e) => Vd(e, qd), Fd = (e) => Vd(e, Hd), Id = (e) => Vd(e, Wd), Ld = (e) => Vd(e, Ud), Rd = (e) => Vd(e, Yd, !0), zd = (e) => Vd(e, Jd, !0), Bd = (e, t, n) => {
- let r = od.exec(e);
+}, gd = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _d = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vd = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, yd = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bd = /\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$/, xd = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Sd = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Cd = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, wd = (e) => vd.test(e), Y = (e) => !!e && !Number.isNaN(Number(e)), Td = (e) => !!e && Number.isInteger(Number(e)), Ed = (e) => e.endsWith("%") && Y(e.slice(0, -1)), Dd = (e) => yd.test(e), Od = () => !0, kd = (e) => bd.test(e) && !xd.test(e), Ad = () => !1, jd = (e) => Sd.test(e), Md = (e) => Cd.test(e), Nd = (e) => !X(e) && !Z(e), Pd = (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)), Fd = (e) => Xd(e, ef, Ad), X = (e) => gd.test(e), Id = (e) => Xd(e, tf, kd), Ld = (e) => Xd(e, nf, Y), Rd = (e) => Xd(e, af, Od), zd = (e) => Xd(e, rf, Ad), Bd = (e) => Xd(e, Qd, Ad), Vd = (e) => Xd(e, $d, Md), Hd = (e) => Xd(e, of, jd), Z = (e) => _d.test(e), Ud = (e) => Zd(e, tf), Wd = (e) => Zd(e, rf), Gd = (e) => Zd(e, Qd), Kd = (e) => Zd(e, ef), qd = (e) => Zd(e, $d), Jd = (e) => Zd(e, of, !0), Yd = (e) => Zd(e, af, !0), Xd = (e, t, n) => {
+ let r = gd.exec(e);
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
-}, Vd = (e, t, n = !1) => {
- let r = sd.exec(e);
+}, Zd = (e, t, n = !1) => {
+ let r = _d.exec(e);
return r ? r[1] ? t(r[1]) : n : !1;
-}, Hd = (e) => e === "position" || e === "percentage", Ud = (e) => e === "image" || e === "url", Wd = (e) => e === "length" || e === "size" || e === "bg-size", Gd = (e) => e === "length", Kd = (e) => e === "number", qd = (e) => e === "family-name", Jd = (e) => e === "number" || e === "weight", Yd = (e) => e === "shadow", Xd = () => {
- let e = ad("color"), t = ad("font"), n = ad("text"), r = ad("font-weight"), i = ad("tracking"), a = ad("leading"), o = ad("breakpoint"), s = ad("container"), c = ad("spacing"), l = ad("radius"), u = ad("shadow"), d = ad("inset-shadow"), f = ad("text-shadow"), p = ad("drop-shadow"), m = ad("blur"), h = ad("perspective"), g = ad("aspect"), _ = ad("ease"), v = ad("animate"), y = () => [
+}, Qd = (e) => e === "position" || e === "percentage", $d = (e) => e === "image" || e === "url", ef = (e) => e === "length" || e === "size" || e === "bg-size", tf = (e) => e === "length", nf = (e) => e === "number", rf = (e) => e === "family-name", af = (e) => e === "number" || e === "weight", of = (e) => e === "shadow", sf = () => {
+ let e = hd("color"), t = hd("font"), n = hd("text"), r = hd("font-weight"), i = hd("tracking"), a = hd("leading"), o = hd("breakpoint"), s = hd("container"), c = hd("spacing"), l = hd("radius"), u = hd("shadow"), d = hd("inset-shadow"), f = hd("text-shadow"), p = hd("drop-shadow"), m = hd("blur"), h = hd("perspective"), g = hd("aspect"), _ = hd("ease"), v = hd("animate"), y = () => [
"auto",
"avoid",
"all",
@@ -16899,12 +17070,12 @@ var lu = /* @__PURE__ */ m(((e) => {
X,
c
], T = () => [
- md,
+ wd,
"full",
"auto",
...w()
], E = () => [
- hd,
+ Td,
"none",
"subgrid",
Z,
@@ -16913,15 +17084,15 @@ var lu = /* @__PURE__ */ m(((e) => {
"auto",
{ span: [
"full",
- hd,
+ Td,
Z,
X
] },
- hd,
+ Td,
Z,
X
], O = () => [
- hd,
+ Td,
"auto",
Z,
X
@@ -16951,7 +17122,7 @@ var lu = /* @__PURE__ */ m(((e) => {
"center-safe",
"end-safe"
], j = () => ["auto", ...w()], te = () => [
- md,
+ wd,
"auto",
"full",
"dvw",
@@ -16966,7 +17137,7 @@ var lu = /* @__PURE__ */ m(((e) => {
...w()
], M = () => [
s,
- md,
+ wd,
"screen",
"full",
"dvw",
@@ -16977,7 +17148,7 @@ var lu = /* @__PURE__ */ m(((e) => {
"fit",
...w()
], ne = () => [
- md,
+ wd,
"screen",
"full",
"lh",
@@ -16994,8 +17165,8 @@ var lu = /* @__PURE__ */ m(((e) => {
X
], re = () => [
...b(),
- Fd,
- Ad,
+ Gd,
+ Bd,
{ position: [Z, X] }
], P = () => ["no-repeat", { repeat: [
"",
@@ -17007,13 +17178,13 @@ var lu = /* @__PURE__ */ m(((e) => {
"auto",
"cover",
"contain",
- Id,
- Td,
+ Kd,
+ Fd,
{ size: [Z, X] }
], ae = () => [
- gd,
- Nd,
- Ed
+ Ed,
+ Ud,
+ Id
], oe = () => [
"",
"none",
@@ -17024,8 +17195,8 @@ var lu = /* @__PURE__ */ m(((e) => {
], se = () => [
"",
Y,
- Nd,
- Ed
+ Ud,
+ Id
], ce = () => [
"solid",
"dashed",
@@ -17050,9 +17221,9 @@ var lu = /* @__PURE__ */ m(((e) => {
"luminosity"
], ue = () => [
Y,
- gd,
- Fd,
- Ad
+ Ed,
+ Gd,
+ Bd
], de = () => [
"",
"none",
@@ -17074,7 +17245,7 @@ var lu = /* @__PURE__ */ m(((e) => {
Z,
X
], I = () => [
- md,
+ wd,
"full",
...w()
];
@@ -17088,17 +17259,17 @@ var lu = /* @__PURE__ */ m(((e) => {
"bounce"
],
aspect: ["video"],
- blur: [_d],
- breakpoint: [_d],
- color: [vd],
- container: [_d],
- "drop-shadow": [_d],
+ blur: [Dd],
+ breakpoint: [Dd],
+ color: [Od],
+ container: [Dd],
+ "drop-shadow": [Dd],
ease: [
"in",
"out",
"in-out"
],
- font: [Cd],
+ font: [Nd],
"font-weight": [
"thin",
"extralight",
@@ -17110,7 +17281,7 @@ var lu = /* @__PURE__ */ m(((e) => {
"extrabold",
"black"
],
- "inset-shadow": [_d],
+ "inset-shadow": [Dd],
leading: [
"none",
"tight",
@@ -17127,11 +17298,11 @@ var lu = /* @__PURE__ */ m(((e) => {
"distant",
"none"
],
- radius: [_d],
- shadow: [_d],
+ radius: [Dd],
+ shadow: [Dd],
spacing: ["px", Y],
- text: [_d],
- "text-shadow": [_d],
+ text: [Dd],
+ "text-shadow": [Dd],
tracking: [
"tighter",
"tight",
@@ -17145,7 +17316,7 @@ var lu = /* @__PURE__ */ m(((e) => {
aspect: [{ aspect: [
"auto",
"square",
- md,
+ wd,
X,
Z,
g
@@ -17158,7 +17329,7 @@ var lu = /* @__PURE__ */ m(((e) => {
Z,
X
] }],
- "container-named": [wd],
+ "container-named": [Pd],
columns: [{ columns: [
Y,
"auto",
@@ -17260,13 +17431,13 @@ var lu = /* @__PURE__ */ m(((e) => {
"collapse"
],
z: [{ z: [
- hd,
+ Td,
"auto",
Z,
X
] }],
basis: [{ basis: [
- md,
+ wd,
"full",
"auto",
s,
@@ -17285,7 +17456,7 @@ var lu = /* @__PURE__ */ m(((e) => {
] }],
flex: [{ flex: [
Y,
- md,
+ wd,
"auto",
"initial",
"none",
@@ -17304,7 +17475,7 @@ var lu = /* @__PURE__ */ m(((e) => {
X
] }],
order: [{ order: [
- hd,
+ Td,
"first",
"last",
"none",
@@ -17416,15 +17587,15 @@ var lu = /* @__PURE__ */ m(((e) => {
"font-size": [{ text: [
"base",
n,
- Nd,
- Ed
+ Ud,
+ Id
] }],
"font-smoothing": ["antialiased", "subpixel-antialiased"],
"font-style": ["italic", "not-italic"],
"font-weight": [{ font: [
r,
- zd,
- Od
+ Yd,
+ Rd
] }],
"font-stretch": [{ "font-stretch": [
"ultra-condensed",
@@ -17436,12 +17607,12 @@ var lu = /* @__PURE__ */ m(((e) => {
"expanded",
"extra-expanded",
"ultra-expanded",
- gd,
+ Ed,
X
] }],
"font-family": [{ font: [
- Pd,
- kd,
+ Wd,
+ zd,
t
] }],
"font-features": [{ "font-features": [X] }],
@@ -17460,7 +17631,7 @@ var lu = /* @__PURE__ */ m(((e) => {
Y,
"none",
Z,
- Dd
+ Ld
] }],
leading: [{ leading: [
"none",
@@ -17502,7 +17673,7 @@ var lu = /* @__PURE__ */ m(((e) => {
"from-font",
"auto",
Z,
- Ed
+ Id
] }],
"text-decoration-color": [{ decoration: N() }],
"underline-offset": [{ "underline-offset": [
@@ -17530,7 +17701,7 @@ var lu = /* @__PURE__ */ m(((e) => {
] }],
indent: [{ indent: w() }],
"tab-size": [{ tab: [
- hd,
+ Td,
Z,
X
] }],
@@ -17608,7 +17779,7 @@ var lu = /* @__PURE__ */ m(((e) => {
"l",
"tl"
] },
- hd,
+ Td,
Z,
X
],
@@ -17619,13 +17790,13 @@ var lu = /* @__PURE__ */ m(((e) => {
],
conic: [
"",
- hd,
+ Td,
Z,
X
]
},
- Ld,
- jd
+ qd,
+ Vd
] }],
"bg-color": [{ bg: N() }],
"gradient-from-pos": [{ from: ae() }],
@@ -17699,8 +17870,8 @@ var lu = /* @__PURE__ */ m(((e) => {
"outline-w": [{ outline: [
"",
Y,
- Nd,
- Ed
+ Ud,
+ Id
] }],
"outline-color": [{ outline: N() }],
shadow: [{ shadow: [
@@ -17708,29 +17879,29 @@ var lu = /* @__PURE__ */ m(((e) => {
"inner",
"none",
u,
- Rd,
- Md
+ Jd,
+ Hd
] }],
"shadow-color": [{ shadow: N() }],
"inset-shadow": [{ "inset-shadow": [
"none",
d,
- Rd,
- Md
+ Jd,
+ Hd
] }],
"inset-shadow-color": [{ "inset-shadow": N() }],
"ring-w": [{ ring: se() }],
"ring-w-inset": ["ring-inset"],
"ring-color": [{ ring: N() }],
- "ring-offset-w": [{ "ring-offset": [Y, Ed] }],
+ "ring-offset-w": [{ "ring-offset": [Y, Id] }],
"ring-offset-color": [{ "ring-offset": N() }],
"inset-ring-w": [{ "inset-ring": se() }],
"inset-ring-color": [{ "inset-ring": N() }],
"text-shadow": [{ "text-shadow": [
"none",
f,
- Rd,
- Md
+ Jd,
+ Hd
] }],
"text-shadow-color": [{ "text-shadow": N() }],
opacity: [{ opacity: [
@@ -17846,8 +18017,8 @@ var lu = /* @__PURE__ */ m(((e) => {
"",
"none",
p,
- Rd,
- Md
+ Jd,
+ Hd
] }],
"drop-shadow-color": [{ "drop-shadow": N() }],
grayscale: [{ grayscale: [
@@ -18005,7 +18176,7 @@ var lu = /* @__PURE__ */ m(((e) => {
"translate-z": [{ "translate-z": I() }],
"translate-none": ["translate-none"],
zoom: [{ zoom: [
- hd,
+ Td,
Z,
X
] }],
@@ -18150,9 +18321,9 @@ var lu = /* @__PURE__ */ m(((e) => {
fill: [{ fill: ["none", ...N()] }],
"stroke-w": [{ stroke: [
Y,
- Nd,
- Ed,
- Dd
+ Ud,
+ Id,
+ Ld
] }],
stroke: [{ stroke: ["none", ...N()] }],
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -18410,16 +18581,16 @@ var lu = /* @__PURE__ */ m(((e) => {
"selection"
]
};
-}, Zd = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (Qd(e, "cacheSize", t), Qd(e, "prefix", n), Qd(e, "experimentalParseClassName", r), $d(e.theme, a.theme), $d(e.classGroups, a.classGroups), $d(e.conflictingClassGroups, a.conflictingClassGroups), $d(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), Qd(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), Qd(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), ef(e.theme, i.theme), ef(e.classGroups, i.classGroups), ef(e.conflictingClassGroups, i.conflictingClassGroups), ef(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), tf(e, i, "postfixLookupClassGroups"), tf(e, i, "orderSensitiveModifiers"), e), Qd = (e, t, n) => {
+}, cf = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (lf(e, "cacheSize", t), lf(e, "prefix", n), lf(e, "experimentalParseClassName", r), uf(e.theme, a.theme), uf(e.classGroups, a.classGroups), uf(e.conflictingClassGroups, a.conflictingClassGroups), uf(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), lf(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), lf(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), df(e.theme, i.theme), df(e.classGroups, i.classGroups), df(e.conflictingClassGroups, i.conflictingClassGroups), df(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), ff(e, i, "postfixLookupClassGroups"), ff(e, i, "orderSensitiveModifiers"), e), lf = (e, t, n) => {
n !== void 0 && (e[t] = n);
-}, $d = (e, t) => {
- if (t) for (let n in t) Qd(e, n, t[n]);
-}, ef = (e, t) => {
- if (t) for (let n in t) tf(e, t, n);
-}, tf = (e, t, n) => {
+}, uf = (e, t) => {
+ if (t) for (let n in t) lf(e, n, t[n]);
+}, df = (e, t) => {
+ if (t) for (let n in t) ff(e, t, n);
+}, ff = (e, t, n) => {
let r = t[n];
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
-}, nf = (e, ...t) => typeof e == "function" ? rd(Xd, e, ...t) : rd(() => Zd(Xd(), e), ...t), rf = [
+}, pf = (e, ...t) => typeof e == "function" ? pd(sf, e, ...t) : pd(() => cf(sf(), e), ...t), mf = [
"large-title",
"display-1",
"display-2",
@@ -18433,18 +18604,18 @@ var lu = /* @__PURE__ */ m(((e) => {
"body-2",
"caption-1",
"caption-2"
-], af = [
+], hf = [
"regular",
"medium",
"semibold",
"bold"
-], of = nf({ extend: { classGroups: { "font-size": [{ text: rf.flatMap((e) => af.map((t) => `${e}-${t}`)) }] } } });
-function sf(e) {
+], gf = pf({ extend: { classGroups: { "font-size": [{ text: mf.flatMap((e) => hf.map((t) => `${e}-${t}`)) }] } } });
+function _f(e) {
return e;
}
//#endregion
//#region src/react/boardui/components/base/badges/chip.tsx
-var cf = sf({
+var vf = _f({
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",
@@ -18463,22 +18634,22 @@ var cf = sf({
soft: "bg-background-secondary-default text-text-secondary"
}
});
-function lf({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
+function yf({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {
return /* @__PURE__ */ (0, S.jsx)("span", {
ref: r,
- className: of(cf.base, cf.variant[e], cf.color[t], n),
+ className: gf(vf.base, vf.variant[e], vf.color[t], n),
...i
});
}
//#endregion
//#region src/api.ts
-var uf = class extends Error {
+var bf = class extends Error {
status;
body;
constructor(e, t, n = null) {
super(r(e, t)), this.name = "ApiError", this.status = t, this.body = n;
}
-}, df = (e) => {
+}, xf = (e) => {
if (!e || typeof e != "object") return "";
let t = e;
for (let e of [
@@ -18490,8 +18661,8 @@ var uf = class extends Error {
if (typeof n == "string" && n) return n;
}
return "";
-}, ff = (e) => r(e);
-async function Q(e, t) {
+}, Sf = (e) => r(e);
+async function Cf(e, t) {
let n = await fetch(e, {
headers: { Accept: "application/json" },
credentials: "same-origin",
@@ -18500,10 +18671,10 @@ async function Q(e, t) {
try {
r = await n.json();
} catch {}
- if (!n.ok) throw new uf(df(r) || `请求失败(${n.status})`, n.status);
+ if (!n.ok) throw new bf(xf(r) || `请求失败(${n.status})`, n.status);
return r;
}
-async function pf(e, t, n = "POST", r) {
+async function wf(e, t, n = "POST", r) {
let i = await fetch(e, {
method: n,
...r ? { signal: r } : {},
@@ -18517,12 +18688,12 @@ async function pf(e, t, n = "POST", r) {
try {
a = await i.json();
} catch {}
- if (!i.ok) throw new uf(df(a) || `请求失败(${i.status})`, i.status, a);
+ if (!i.ok) throw new bf(xf(a) || `请求失败(${i.status})`, i.status, a);
return a;
}
//#endregion
//#region src/react/components/empty-state.tsx
-function mf({ icon: e, title: t, children: n }) {
+function Tf({ icon: e, title: t, actions: n, children: r }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col items-center gap-2 rounded-2xl border border-separator-border px-6 py-12 text-center",
children: [
@@ -18536,14 +18707,18 @@ function mf({ icon: e, title: t, children: n }) {
}),
/* @__PURE__ */ (0, S.jsx)("p", {
className: "max-w-prose text-body-2-regular text-text-secondary",
+ children: r
+ }),
+ n ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "mt-2 flex flex-wrap justify-center gap-2",
children: n
- })
+ }) : null
]
});
}
//#endregion
//#region src/react/components/loading-dots.tsx
-function hf({ label: e }) {
+function Ef({ label: e }) {
return /* @__PURE__ */ (0, S.jsxs)("p", {
role: "status",
className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",
@@ -18560,7 +18735,7 @@ function hf({ label: e }) {
}
//#endregion
//#region src/react/components/note.tsx
-function gf({ tone: e, title: t, extra: n, children: r }) {
+function Df({ tone: e, title: t, extra: n, children: r }) {
let i = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
t ? /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium",
@@ -18602,7 +18777,7 @@ function gf({ tone: e, title: t, extra: n, children: r }) {
}
//#endregion
//#region src/react/components/page.tsx
-function _f({ children: e }) {
+function Of({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
className: "mx-auto flex w-full max-w-board flex-col gap-8",
children: e
@@ -18610,7 +18785,7 @@ function _f({ children: e }) {
}
//#endregion
//#region src/react/components/progress.tsx
-function vf({ label: e, value: t, max: n = 100, stops: r = [] }) {
+function kf({ label: e, value: t, max: n = 100, stops: r = [] }) {
let i = Math.min(Math.max(t, 0), n);
return /* @__PURE__ */ (0, S.jsxs)("svg", {
role: "progressbar",
@@ -18643,32 +18818,32 @@ function vf({ label: e, value: t, max: n = 100, stops: r = [] }) {
}
//#endregion
//#region src/react/query.ts
-var yf = new Ye({ defaultOptions: { queries: {
+var Af = new Ye({ defaultOptions: { queries: {
networkMode: "always",
retry: 0,
refetchOnWindowFocus: !1,
refetchOnMount: !1,
retryOnMount: !1
-} } }), bf = "/api/tasks", xf = ["tasks"], Sf = 2e3, Cf = 1e4, wf = (e) => e?.running.length ? Sf : Cf, Tf = (e) => Q(bf, e);
-async function Ef(e) {
- await yf.fetchQuery({
- queryKey: xf,
- queryFn: () => Tf(e)
+} } }), jf = "/api/tasks", Mf = ["tasks"], Nf = 2e3, Pf = 1e4, Ff = (e) => e?.running.length ? Nf : Pf, If = (e) => Cf(jf, e);
+async function Lf(e) {
+ await Af.fetchQuery({
+ queryKey: Mf,
+ queryFn: () => If(e)
});
}
-var Df = {
+var Rf = {
manual: "手动",
scheduled: "定时",
startup: "启动",
cli: "命令行"
-}, Of = {
+}, zf = {
pending: "排队中",
running: "进行中",
succeeded: "已完成",
failed: "失败",
cancelled: "已取消",
interrupted: "被打断"
-}, kf = (e) => Of[e] || e, Af = {
+}, Bf = (e) => zf[e] || e, Vf = {
checked: "已检查",
total: "总数",
scanned: "已扫描",
@@ -18688,14 +18863,14 @@ var Df = {
exit_code: "退出码",
issue_count: "问题"
};
-function jf(e) {
+function Q(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) {
+function Hf(e) {
if (!e) return "";
let t = new Date(e);
return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {
@@ -18705,24 +18880,24 @@ function Mf(e) {
minute: "2-digit"
});
}
-function Nf(e) {
- return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Af[e] || e} ${t}`).join(" · ");
+function Uf(e) {
+ return Object.entries(e || {}).filter(([e, t]) => e !== "blocked_by" && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Vf[e] || e} ${t}`).join(" · ");
}
//#endregion
//#region src/react/activity/activity-page.tsx
-var Pf = {
+var Wf = {
succeeded: "lime",
failed: "rose",
cancelled: "yellow",
interrupted: "yellow"
};
-function Ff({ status: e }) {
- return /* @__PURE__ */ (0, S.jsx)(lf, {
- color: Pf[e] ?? "neutral",
- children: kf(e)
+function Gf({ status: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(yf, {
+ color: Wf[e] ?? "neutral",
+ children: Bf(e)
});
}
-function If({ run: e, meta: t, children: n, footer: r }) {
+function Kf({ run: e, meta: t, children: n, footer: r }) {
return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-status": e.status,
"data-task-key": e.task_key,
@@ -18735,7 +18910,7 @@ function If({ run: e, meta: t, children: n, footer: r }) {
children: [/* @__PURE__ */ (0, S.jsx)("strong", {
className: "min-w-0 break-words text-title-1-medium text-text-primary",
children: e.task_label
- }), /* @__PURE__ */ (0, S.jsx)(Ff, { status: e.status })]
+ }), /* @__PURE__ */ (0, S.jsx)(Gf, { status: e.status })]
}),
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-caption-1-regular text-text-secondary",
@@ -18752,14 +18927,14 @@ function If({ run: e, meta: t, children: n, footer: r }) {
}) : null]
});
}
-function Lf({ run: e }) {
- let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = jf(e.elapsed_seconds), a = [Df[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, S.jsx)(If, {
+function qf({ run: e }) {
+ let t = e.progress_total || 0, n = e.progress_current || 0, r = e.progress_label || "正在进行", i = Q(e.elapsed_seconds), a = [Rf[e.trigger] || e.trigger, i && `已跑 ${i}`].filter(Boolean).join(" · ");
+ return /* @__PURE__ */ (0, S.jsx)(Kf, {
run: e,
meta: a,
children: t > 0 ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(vf, {
+ children: [/* @__PURE__ */ (0, S.jsx)(kf, {
label: r,
value: n,
max: t
@@ -18774,16 +18949,16 @@ function Lf({ run: e }) {
" 项"
]
})]
- }) : /* @__PURE__ */ (0, S.jsx)(hf, { label: r })
+ }) : /* @__PURE__ */ (0, S.jsx)(Ef, { label: r })
});
}
-function Rf({ run: e }) {
- let t = Nf(e.result_summary), n = jf(e.elapsed_seconds), r = [
- Df[e.trigger] || e.trigger,
- Mf(e.finished_at),
+function Jf({ run: e }) {
+ let t = Uf(e.result_summary), n = Q(e.elapsed_seconds), r = [
+ Rf[e.trigger] || e.trigger,
+ Hf(e.finished_at),
n && `用时 ${n}`
].filter(Boolean).join(" · ");
- return /* @__PURE__ */ (0, S.jsx)(If, {
+ return /* @__PURE__ */ (0, S.jsx)(Kf, {
run: e,
meta: r,
footer: e.error,
@@ -18793,7 +18968,7 @@ function Rf({ run: e }) {
}) : null
});
}
-function zf({ title: e, children: t }) {
+function Yf({ title: e, children: t }) {
let n = (0, x.useId)();
return /* @__PURE__ */ (0, S.jsxs)("section", {
"aria-labelledby": n,
@@ -18805,67 +18980,67 @@ function zf({ title: e, children: t }) {
}), t]
});
}
-function Bf({ live: e = !1, children: t }) {
+function Xf({ live: e = !1, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("ul", {
"aria-live": e ? "polite" : void 0,
className: "flex min-w-0 flex-col gap-3",
children: t
});
}
-function $(e) {
+function Zf(e) {
let t = ct({
- queryKey: xf,
- queryFn: ({ signal: e }) => Tf(e),
- refetchInterval: (e) => wf(e.state.data)
- }), n = t.data, r = t.error ? ff(t.error) : "";
- if (!n) return /* @__PURE__ */ (0, S.jsx)(_f, { children: /* @__PURE__ */ (0, S.jsx)(gf, {
+ queryKey: Mf,
+ queryFn: ({ signal: e }) => If(e),
+ refetchInterval: (e) => Ff(e.state.data)
+ }), n = t.data, r = t.error ? Sf(t.error) : "";
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
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, S.jsxs)(_f, { children: [
- r ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ return /* @__PURE__ */ (0, S.jsxs)(Of, { children: [
+ r ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
children: r
}) : null,
- n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ n.available === !1 ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "warning",
children: n.message || "账本上还没有任务中心的表"
}) : null,
- s ? /* @__PURE__ */ (0, S.jsx)(mf, {
- icon: Cu,
+ s ? /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: ju,
title: "还没有任务记录",
children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"
}) : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
- /* @__PURE__ */ (0, S.jsx)(zf, {
+ /* @__PURE__ */ (0, S.jsx)(Yf, {
title: "正在进行",
- children: i.length ? /* @__PURE__ */ (0, S.jsx)(Bf, {
+ children: i.length ? /* @__PURE__ */ (0, S.jsx)(Xf, {
live: !0,
- children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(Lf, { run: e }, e.id))
+ children: i.map((e) => /* @__PURE__ */ (0, S.jsx)(qf, { run: e }, e.id))
}) : /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "没有任务在跑。"
})
}),
- a.length ? /* @__PURE__ */ (0, S.jsx)(zf, {
+ a.length ? /* @__PURE__ */ (0, S.jsx)(Yf, {
title: "被挡下的",
- children: /* @__PURE__ */ (0, S.jsx)(Bf, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(Rf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(Xf, { children: a.map((e) => /* @__PURE__ */ (0, S.jsx)(Jf, { run: e }, e.id)) })
}) : null,
- o.length ? /* @__PURE__ */ (0, S.jsx)(zf, {
+ o.length ? /* @__PURE__ */ (0, S.jsx)(Yf, {
title: "最近完成",
- children: /* @__PURE__ */ (0, S.jsx)(Bf, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(Rf, { run: e }, e.id)) })
+ children: /* @__PURE__ */ (0, S.jsx)(Xf, { children: o.map((e) => /* @__PURE__ */ (0, S.jsx)(Jf, { run: e }, e.id)) })
}) : null
] })
] });
}
//#endregion
//#region node_modules/react-aria-components/dist/private/utils.mjs
-var Vf = Symbol("default");
-function Hf({ values: e, children: t }) {
+var Qf = Symbol("default");
+function $f({ values: e, children: t }) {
for (let [n, r] of e) t = /*#__PURE__*/ x.createElement(n.Provider, { value: r }, t);
return t;
}
-function Uf(e) {
+function ep(e) {
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
return (0, x.useMemo)(() => {
let e, l, u;
@@ -18899,11 +19074,11 @@ function Uf(e) {
c
]);
}
-function Wf(e, t) {
+function $(e, t) {
let n = (0, x.useContext)(e);
if (t === null) return null;
if (n && typeof n == "object" && "slots" in n && n.slots) {
- let e = t || Vf;
+ let e = t || Qf;
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}.`);
@@ -18912,8 +19087,8 @@ function Wf(e, t) {
}
return n;
}
-function Gf(e, t, n) {
- let { ref: r, ...i } = Wf(n, e.slot) || {}, a = Nr((0, x.useMemo)(() => mr(t, r), [t, r])), o = H(i, e);
+function tp(e, t, n) {
+ let { ref: r, ...i } = $(n, e.slot) || {}, a = Nr((0, x.useMemo)(() => mr(t, r), [t, r])), o = H(i, e);
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
...t.defaultStyle,
@@ -18931,7 +19106,7 @@ function Gf(e, t, n) {
...e.style
}), [o, a];
}
-function Kf(e = !0) {
+function np(e = !0) {
let [t, n] = (0, x.useState)(e), r = (0, x.useRef)(!1), i = (0, x.useCallback)((e) => {
r.current = !0, n(!!e);
}, []);
@@ -18939,12 +19114,12 @@ function Kf(e = !0) {
r.current || n(!1);
}, []), [i, t];
}
-function qf(e) {
+function rp(e) {
let t = /^(data-.*)$/, n = {};
for (let r in e) t.test(r) || (n[r] = e[r]);
return n;
}
-function Jf(e, t, n) {
+function ip(e, t, n) {
let { render: r, ...i } = t, a = (0, x.useRef)(null), o = (0, x.useMemo)(() => mr(n, a), [n, a]);
V(() => {}, [e, r]);
let s = {
@@ -18953,19 +19128,19 @@ function Jf(e, t, n) {
};
return r ? r(s, void 0) : /*#__PURE__*/ x.createElement(e, s);
}
-var Yf = {}, Xf = new Proxy({}, { get(e, t) {
+var ap = {}, op = new Proxy({}, { get(e, t) {
if (typeof t != "string") return;
- let n = Yf[t];
- return n || (n = /*#__PURE__*/ (0, x.forwardRef)(Jf.bind(null, t)), Yf[t] = n), n;
-} }), Zf = /*#__PURE__*/ (0, x.createContext)(null), Qf = /*#__PURE__*/ (0, x.createContext)(null), $f = /*#__PURE__*/ (0, x.createContext)(null), ep = {
+ let n = ap[t];
+ return n || (n = /*#__PURE__*/ (0, x.forwardRef)(ip.bind(null, t)), ap[t] = n), n;
+} }), sp = /*#__PURE__*/ (0, x.createContext)(null), cp = /*#__PURE__*/ (0, x.createContext)(null), lp = /*#__PURE__*/ (0, x.createContext)(null), up = {
CollectionRoot({ collection: e, renderDropIndicator: t }) {
- return tp(e, null, t);
+ return dp(e, null, t);
},
CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {
- return tp(e, t, n);
+ return dp(e, t, n);
}
};
-function tp(e, t, n) {
+function dp(e, t, n) {
return yt({
items: t ? e.getChildren(t.key) : e,
dependencies: [n],
@@ -18976,11 +19151,11 @@ function tp(e, t, n) {
type: "item",
key: t.key,
dropPosition: "before"
- }), r, np(e, t, n));
+ }), r, fp(e, t, n));
}
});
}
-function np(e, t, n) {
+function fp(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);
@@ -18999,18 +19174,24 @@ function np(e, t, n) {
}
return s;
}
-var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.createContext)({}), ap = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, ip);
- let { elementType: n = "label", ...r } = e, i = Xf[n];
+var pp = /*#__PURE__*/ (0, x.createContext)(up);
+function mp(e) {
+ return (0, x.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);
+}
+//#endregion
+//#region node_modules/react-aria-components/dist/private/Label.mjs
+var hp = /*#__PURE__*/ (0, x.createContext)({}), gp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, hp);
+ let { elementType: n = "label", ...r } = e, i = op[n];
return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Label",
...r,
ref: t
});
-}), op = /*#__PURE__*/ (0, x.createContext)(null), sp = /*#__PURE__*/ (0, x.createContext)({}), cp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, sp);
+}), _p = /*#__PURE__*/ (0, x.createContext)(null), vp = /*#__PURE__*/ (0, x.createContext)({}), yp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, vp);
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = xa(e, t);
- i = up(i, r);
+ i = xp(i, r);
let { focusProps: o, isFocused: s, isFocusVisible: c } = hc(e), { hoverProps: l, isHovered: u } = Sc({
...e,
isDisabled: e.isDisabled || r
@@ -19021,7 +19202,7 @@ var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.create
isFocusVisible: c,
isDisabled: e.isDisabled || !1,
isPending: r ?? !1
- }, f = Uf({
+ }, f = ep({
...e,
values: d,
defaultClassName: "react-aria-Button"
@@ -19038,7 +19219,7 @@ var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.create
p
]);
let _ = U(e, { global: !0 });
- return delete _.onClick, /*#__PURE__*/ x.createElement(Xf.button, {
+ return delete _.onClick, /*#__PURE__*/ x.createElement(op.button, {
...H(_, f, i, o, l),
type: i.type === "submit" && r ? "button" : i.type,
id: p,
@@ -19052,62 +19233,62 @@ var rp = /*#__PURE__*/ (0, x.createContext)(ep), ip = /*#__PURE__*/ (0, x.create
"data-focused": s || void 0,
"data-pending": r || void 0,
"data-focus-visible": c || void 0
- }, /*#__PURE__*/ x.createElement(op.Provider, { value: { id: m } }, f.children));
-}), lp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
-function up(e, t) {
+ }, /*#__PURE__*/ x.createElement(_p.Provider, { value: { id: m } }, f.children));
+}), bp = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
+function xp(e, t) {
if (t) {
- for (let t in e) t.startsWith("on") && !lp.test(t) && (e[t] = void 0);
+ for (let t in e) t.startsWith("on") && !bp.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 dp = /*#__PURE__*/ (0, x.createContext)({}), fp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, dp);
- let { children: n, level: r = 3, className: i, ...a } = e, o = Xf[`h${r}`];
+var Sp = /*#__PURE__*/ (0, x.createContext)({}), Cp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = tp(e, t, Sp);
+ let { children: n, level: r = 3, className: i, ...a } = e, o = op[`h${r}`];
return /*#__PURE__*/ x.createElement(o, {
...a,
ref: t,
className: i ?? "react-aria-Heading"
}, n);
-}), pp = /*#__PURE__*/ (0, x.createContext)({}), mp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, pp);
- let { elementType: n = "span", ...r } = e, i = Xf[n];
+}), wp = /*#__PURE__*/ (0, x.createContext)({}), Tp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, wp);
+ let { elementType: n = "span", ...r } = e, i = op[n];
return /*#__PURE__*/ x.createElement(i, {
className: "react-aria-Text",
...r,
ref: t
});
-}), hp = /*#__PURE__*/ (0, x.createContext)(null), gp = /*#__PURE__*/ (0, x.createContext)(null), _p = /*#__PURE__*/ (0, x.createContext)(null), vp = /*#__PURE__*/ (0, x.createContext)(null), yp = /*#__PURE__*/ (0, x.createContext)(null);
-function bp(e, t) {
- let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(vp), a = Nr((0, x.useMemo)(() => mr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
- ...qf(e),
+}), Ep = /*#__PURE__*/ (0, x.createContext)(null), Dp = /*#__PURE__*/ (0, x.createContext)(null), Op = /*#__PURE__*/ (0, x.createContext)(null), kp = /*#__PURE__*/ (0, x.createContext)(null), Ap = /*#__PURE__*/ (0, x.createContext)(null);
+function jp(e, t) {
+ let { validationBehavior: n } = $(Dp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useContext)(kp), a = Nr((0, x.useMemo)(() => mr(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {
+ ...rp(e),
children: typeof e.children == "function" || e.children,
value: e.value,
validationBehavior: r
};
return [i ? K(o, i, a) : ko(o, Io(e), a), a];
}
-var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+var Mp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Gf(r, t, _p);
- let [i, a] = bp(e, n);
- return /*#__PURE__*/ x.createElement(yp.Provider, { value: {
+ [e, t] = tp(r, t, Op);
+ let [i, a] = jp(e, n);
+ return /*#__PURE__*/ x.createElement(Ap.Provider, { value: {
...i,
inputRef: a,
defaultClassName: "react-aria-Checkbox",
isIndeterminate: e.isIndeterminate,
isRequired: e.isRequired
- } }, /*#__PURE__*/ x.createElement(Sp, {
+ } }, /*#__PURE__*/ x.createElement(Np, {
...e,
ref: t
}));
-}), Sp = /*#__PURE__*/ (0, x.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, x.useContext)(yp), { isFocused: p, isFocusVisible: m, focusProps: h } = hc(), g = a || o, { hoverProps: _, isHovered: v } = Sc({
+}), Np = /*#__PURE__*/ (0, x.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, x.useContext)(Ap), { isFocused: p, isFocusVisible: m, focusProps: h } = hc(), g = a || o, { hoverProps: _, isHovered: v } = Sc({
...e,
isDisabled: g
- }), y = Uf({
+ }), y = ep({
...e,
defaultClassName: u,
values: {
@@ -19123,7 +19304,7 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
isRequired: f || !1
}
}), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(op.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -19141,8 +19322,8 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
...H(r, h),
ref: l
})), y.children);
-}), Cp = /*#__PURE__*/ (0, x.createContext)({}), wp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, Cp);
+}), Pp = /*#__PURE__*/ (0, x.createContext)({}), Fp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = tp(e, t, Pp);
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 } = Sc({
@@ -19150,7 +19331,7 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
onHoverChange: o,
onHoverEnd: s,
isDisabled: n
- }), { isFocused: d, isFocusVisible: f, focusProps: p } = hc({ within: !0 }), m = Uf({
+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = hc({ within: !0 }), m = ep({
...e,
values: {
isHovered: u,
@@ -19161,7 +19342,7 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Group"
});
- return /*#__PURE__*/ x.createElement(Xf.div, {
+ return /*#__PURE__*/ x.createElement(op.div, {
...H(c, p, l),
...m,
ref: t,
@@ -19174,18 +19355,18 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-invalid": r || void 0,
"data-readonly": i || void 0
}, m.children);
-}), Tp = /*#__PURE__*/ (0, x.createContext)({}), Ep = (e) => {
+}), Ip = /*#__PURE__*/ (0, x.createContext)({}), Lp = (e) => {
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
return i;
-}, Dp = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, Tp);
+}, Rp = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, Ip);
let { hoverProps: n, isHovered: r } = Sc({
...e,
isDisabled: e.disabled
}), { isFocused: i, isFocusVisible: a, focusProps: o } = hc({
isTextInput: !0,
autoFocus: e.autoFocus
- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = Uf({
+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ep({
...e,
values: {
isHovered: r,
@@ -19196,8 +19377,8 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
},
defaultClassName: "react-aria-Input"
});
- return /*#__PURE__*/ x.createElement(Xf.input, {
- ...H(Ep(e), o, n),
+ return /*#__PURE__*/ x.createElement(op.input, {
+ ...H(Lp(e), o, n),
...c,
ref: t,
"data-focused": i || void 0,
@@ -19206,8 +19387,8 @@ var xp = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
"data-focus-visible": a || void 0,
"data-invalid": s || void 0
});
-}), Op = {};
-Op = {
+}), zp = {};
+zp = {
colorSwatchPicker: "تغييرات الألوان",
dropzoneLabel: "DropZone",
selectPlaceholder: "حدد عنصرًا",
@@ -19215,8 +19396,8 @@ Op = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs
-var kp = {};
-kp = {
+var Bp = {};
+Bp = {
colorSwatchPicker: "Цветови мостри",
dropzoneLabel: "DropZone",
selectPlaceholder: "Изберете предмет",
@@ -19224,8 +19405,8 @@ kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs
-var Ap = {};
-Ap = {
+var Vp = {};
+Vp = {
colorSwatchPicker: "Vzorky barev",
dropzoneLabel: "Místo pro přetažení",
selectPlaceholder: "Vyberte položku",
@@ -19233,8 +19414,8 @@ Ap = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs
-var jp = {};
-jp = {
+var Hp = {};
+Hp = {
colorSwatchPicker: "Farveprøver",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vælg et element",
@@ -19242,8 +19423,8 @@ jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs
-var Mp = {};
-Mp = {
+var Up = {};
+Up = {
colorSwatchPicker: "Farbfelder",
dropzoneLabel: "Ablegebereich",
selectPlaceholder: "Element wählen",
@@ -19251,8 +19432,8 @@ Mp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs
-var Np = {};
-Np = {
+var Wp = {};
+Wp = {
colorSwatchPicker: "Χρωματικά δείγματα",
dropzoneLabel: "DropZone",
selectPlaceholder: "Επιλέξτε ένα αντικείμενο",
@@ -19260,8 +19441,8 @@ Np = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs
-var Pp = {};
-Pp = {
+var Gp = {};
+Gp = {
selectPlaceholder: "Select an item",
tableResizer: "Resizer",
dropzoneLabel: "DropZone",
@@ -19269,8 +19450,8 @@ Pp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs
-var Fp = {};
-Fp = {
+var Kp = {};
+Kp = {
colorSwatchPicker: "Muestras de colores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Seleccionar un artículo",
@@ -19278,8 +19459,8 @@ Fp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs
-var Ip = {};
-Ip = {
+var qp = {};
+qp = {
colorSwatchPicker: "Värvinäidised",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valige üksus",
@@ -19287,8 +19468,8 @@ Ip = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs
-var Lp = {};
-Lp = {
+var Jp = {};
+Jp = {
colorSwatchPicker: "Värimallit",
dropzoneLabel: "DropZone",
selectPlaceholder: "Valitse kohde",
@@ -19296,8 +19477,8 @@ Lp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs
-var Rp = {};
-Rp = {
+var Yp = {};
+Yp = {
colorSwatchPicker: "Échantillons de couleurs",
dropzoneLabel: "DropZone",
selectPlaceholder: "Sélectionner un élément",
@@ -19305,8 +19486,8 @@ Rp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs
-var zp = {};
-zp = {
+var Xp = {};
+Xp = {
colorSwatchPicker: "דוגמיות צבע",
dropzoneLabel: "DropZone",
selectPlaceholder: "בחר פריט",
@@ -19314,8 +19495,8 @@ zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs
-var Bp = {};
-Bp = {
+var Zp = {};
+Zp = {
colorSwatchPicker: "Uzorci boja",
dropzoneLabel: "Zona spuštanja",
selectPlaceholder: "Odaberite stavku",
@@ -19323,8 +19504,8 @@ Bp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs
-var Vp = {};
-Vp = {
+var Qp = {};
+Qp = {
colorSwatchPicker: "Színtárak",
dropzoneLabel: "DropZone",
selectPlaceholder: "Válasszon ki egy elemet",
@@ -19332,17 +19513,17 @@ Vp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs
-var Hp = {};
-Hp = {
- colorSwatchPicker: "Campioni di colore",
+var $p = {};
+$p = {
+ colorSwatchPicker: "Campioni di colore",
dropzoneLabel: "Zona di rilascio",
selectPlaceholder: "Seleziona un elemento",
tableResizer: "Ridimensionamento"
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ja-JP.mjs
-var Up = {};
-Up = {
+var em = {};
+em = {
colorSwatchPicker: "カラースウォッチ",
dropzoneLabel: "ドロップゾーン",
selectPlaceholder: "項目を選択",
@@ -19350,8 +19531,8 @@ Up = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs
-var Wp = {};
-Wp = {
+var tm = {};
+tm = {
colorSwatchPicker: "색상 견본",
dropzoneLabel: "드롭 영역",
selectPlaceholder: "항목 선택",
@@ -19359,8 +19540,8 @@ Wp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs
-var Gp = {};
-Gp = {
+var nm = {};
+nm = {
colorSwatchPicker: "Spalvų pavyzdžiai",
dropzoneLabel: "„DropZone“",
selectPlaceholder: "Pasirinkite elementą",
@@ -19368,8 +19549,8 @@ Gp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs
-var Kp = {};
-Kp = {
+var rm = {};
+rm = {
colorSwatchPicker: "Krāsu paraugi",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izvēlēties vienumu",
@@ -19377,8 +19558,8 @@ Kp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs
-var qp = {};
-qp = {
+var im = {};
+im = {
colorSwatchPicker: "Fargekart",
dropzoneLabel: "Droppsone",
selectPlaceholder: "Velg et element",
@@ -19386,8 +19567,8 @@ qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs
-var Jp = {};
-Jp = {
+var am = {};
+am = {
colorSwatchPicker: "kleurstalen",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecteer een item",
@@ -19395,8 +19576,8 @@ Jp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs
-var Yp = {};
-Yp = {
+var om = {};
+om = {
colorSwatchPicker: "Próbki kolorów",
dropzoneLabel: "Strefa upuszczania",
selectPlaceholder: "Wybierz element",
@@ -19404,8 +19585,8 @@ Yp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs
-var Xp = {};
-Xp = {
+var sm = {};
+sm = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19413,8 +19594,8 @@ Xp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs
-var Zp = {};
-Zp = {
+var cm = {};
+cm = {
colorSwatchPicker: "Amostras de cores",
dropzoneLabel: "DropZone",
selectPlaceholder: "Selecione um item",
@@ -19422,8 +19603,8 @@ Zp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs
-var Qp = {};
-Qp = {
+var lm = {};
+lm = {
colorSwatchPicker: "Specimene de culoare",
dropzoneLabel: "Zonă de plasare",
selectPlaceholder: "Selectați un element",
@@ -19431,8 +19612,8 @@ Qp = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs
-var $p = {};
-$p = {
+var um = {};
+um = {
colorSwatchPicker: "Цветовые образцы",
dropzoneLabel: "DropZone",
selectPlaceholder: "Выберите элемент",
@@ -19440,8 +19621,8 @@ $p = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs
-var em = {};
-em = {
+var dm = {};
+dm = {
colorSwatchPicker: "Vzorkovníky farieb",
dropzoneLabel: "DropZone",
selectPlaceholder: "Vyberte položku",
@@ -19449,8 +19630,8 @@ em = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs
-var tm = {};
-tm = {
+var fm = {};
+fm = {
colorSwatchPicker: "Barvne palete",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izberite element",
@@ -19458,8 +19639,8 @@ tm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs
-var nm = {};
-nm = {
+var pm = {};
+pm = {
colorSwatchPicker: "Uzorci boje",
dropzoneLabel: "DropZone",
selectPlaceholder: "Izaberite stavku",
@@ -19467,8 +19648,8 @@ nm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs
-var rm = {};
-rm = {
+var mm = {};
+mm = {
colorSwatchPicker: "Färgrutor",
dropzoneLabel: "DropZone",
selectPlaceholder: "Välj en artikel",
@@ -19476,8 +19657,8 @@ rm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs
-var im = {};
-im = {
+var hm = {};
+hm = {
colorSwatchPicker: "Renk örnekleri",
dropzoneLabel: "Bırakma Bölgesi",
selectPlaceholder: "Bir öğe seçin",
@@ -19485,8 +19666,8 @@ im = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs
-var am = {};
-am = {
+var gm = {};
+gm = {
colorSwatchPicker: "Зразки кольорів",
dropzoneLabel: "DropZone",
selectPlaceholder: "Виберіть елемент",
@@ -19494,8 +19675,8 @@ am = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs
-var om = {};
-om = {
+var _m = {};
+_m = {
colorSwatchPicker: "颜色色板",
dropzoneLabel: "放置区域",
selectPlaceholder: "选择一个项目",
@@ -19503,8 +19684,8 @@ om = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs
-var sm = {};
-sm = {
+var vm = {};
+vm = {
colorSwatchPicker: "色票",
dropzoneLabel: "放置區",
selectPlaceholder: "選取項目",
@@ -19512,52 +19693,52 @@ sm = {
};
//#endregion
//#region node_modules/react-aria-components/dist/private/intlStrings.mjs
-var cm = {};
-cm = {
- "ar-AE": Op,
- "bg-BG": kp,
- "cs-CZ": Ap,
- "da-DK": jp,
- "de-DE": Mp,
- "el-GR": Np,
- "en-US": Pp,
- "es-ES": Fp,
- "et-EE": Ip,
- "fi-FI": Lp,
- "fr-FR": Rp,
- "he-IL": zp,
- "hr-HR": Bp,
- "hu-HU": Vp,
- "it-IT": Hp,
- "ja-JP": Up,
- "ko-KR": Wp,
- "lt-LT": Gp,
- "lv-LV": Kp,
- "nb-NO": qp,
- "nl-NL": Jp,
- "pl-PL": Yp,
- "pt-BR": Xp,
- "pt-PT": Zp,
- "ro-RO": Qp,
- "ru-RU": $p,
- "sk-SK": em,
- "sl-SI": tm,
- "sr-SP": nm,
- "sv-SE": rm,
- "tr-TR": im,
- "uk-UA": am,
- "zh-CN": om,
- "zh-TW": sm
+var ym = {};
+ym = {
+ "ar-AE": zp,
+ "bg-BG": Bp,
+ "cs-CZ": Vp,
+ "da-DK": Hp,
+ "de-DE": Up,
+ "el-GR": Wp,
+ "en-US": Gp,
+ "es-ES": Kp,
+ "et-EE": qp,
+ "fi-FI": Jp,
+ "fr-FR": Yp,
+ "he-IL": Xp,
+ "hr-HR": Zp,
+ "hu-HU": Qp,
+ "it-IT": $p,
+ "ja-JP": em,
+ "ko-KR": tm,
+ "lt-LT": nm,
+ "lv-LV": rm,
+ "nb-NO": im,
+ "nl-NL": am,
+ "pl-PL": om,
+ "pt-BR": sm,
+ "pt-PT": cm,
+ "ro-RO": lm,
+ "ru-RU": um,
+ "sk-SK": dm,
+ "sl-SI": fm,
+ "sr-SP": pm,
+ "sv-SE": mm,
+ "tr-TR": hm,
+ "uk-UA": gm,
+ "zh-CN": _m,
+ "zh-TW": vm
};
//#endregion
//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs
-var lm = /*#__PURE__*/ (0, x.createContext)({}), um = /*#__PURE__*/ (0, x.createContext)(null), dm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { render: n } = (0, x.useContext)(um);
+var bm = /*#__PURE__*/ (0, x.createContext)({}), xm = /*#__PURE__*/ (0, x.createContext)(null), Sm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { render: n } = (0, x.useContext)(xm);
return /*#__PURE__*/ x.createElement(x.Fragment, null, n(e, t));
});
-function fm(e, t) {
+function Cm(e, t) {
let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, x.useCallback)((e) => {
- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(dm, { target: e });
+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ x.createElement(Sm, { target: e });
}, [
t?.target,
r,
@@ -19565,7 +19746,7 @@ function fm(e, t) {
]);
return e?.useDropIndicator ? i : void 0;
}
-function pm(e, t, n) {
+function wm(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;
@@ -19588,14 +19769,14 @@ function pm(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Header.mjs
-var mm = /*#__PURE__*/ (0, x.createContext)({}), hm = /*#__PURE__*/ (0, x.createContext)(null);
-function gm(e) {
+var Tm = /*#__PURE__*/ (0, x.createContext)({}), Em = /*#__PURE__*/ (0, x.createContext)(null);
+function Dm(e) {
let t = (0, x.useRef)({});
- return /*#__PURE__*/ x.createElement(hm.Provider, { value: t }, e.children);
+ return /*#__PURE__*/ x.createElement(Em.Provider, { value: t }, e.children);
}
//#endregion
//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
-var _m = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), vm = /*#__PURE__*/ (0, x.createContext)({});
+var Om = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), km = /*#__PURE__*/ (0, x.createContext)({});
(class extends ut {
static {
this.type = "separator";
@@ -19611,13 +19792,13 @@ var _m = /*#__PURE__*/ (0, x.createContext)({ isSelected: !1 }), vm = /*#__PURE_
});
//#endregion
//#region node_modules/react-aria/dist/private/utils/inertValue.mjs
-function ym(e) {
+function Am(e) {
let t = x.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 bm = class {
+var jm = class {
constructor(e) {
this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
let t = (e) => {
@@ -19661,20 +19842,20 @@ var bm = class {
getChildren(e) {
return this.keyMap.get(e)?.childNodes || [];
}
-}, xm = class e extends Set {
+}, Mm = 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 Sm(e, t) {
+function Nm(e, t) {
if (e.size !== t.size) return !1;
for (let n of e) if (!t.has(n)) return !1;
return !0;
}
-function Cm(e) {
- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Fo((0, x.useMemo)(() => wm(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => wm(e.defaultSelectedKeys, new xm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
+function Pm(e) {
+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, x.useRef)(!1), [, s] = (0, x.useState)(!1), c = (0, x.useRef)(null), l = (0, x.useRef)(null), [, u] = (0, x.useState)(null), [d, f] = Fo((0, x.useMemo)(() => Fm(e.selectedKeys), [e.selectedKeys]), (0, x.useMemo)(() => Fm(e.defaultSelectedKeys, new Mm()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, x.useState)(i);
i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");
let g = (0, x.useRef)(i);
return (0, x.useEffect)(() => {
@@ -19701,18 +19882,18 @@ function Cm(e) {
},
selectedKeys: d,
setSelectedKeys(e) {
- (r || !Sm(e, d)) && f(e);
+ (r || !Nm(e, d)) && f(e);
},
disabledKeys: p,
disabledBehavior: a
};
}
-function wm(e, t) {
- return e ? e === "all" ? "all" : new xm(e) : t;
+function Fm(e, t) {
+ return e ? e === "all" ? "all" : new Mm(e) : t;
}
//#endregion
//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs
-var Tm = class e {
+var Im = 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;
}
@@ -19795,10 +19976,10 @@ var Tm = class e {
let t = this.getKey(e);
if (t == null) return;
let n;
- if (this.state.selectedKeys === "all") n = new xm([t], t, t);
+ if (this.state.selectedKeys === "all") n = new Mm([t], t, t);
else {
let e = this.state.selectedKeys, r = e.anchorKey ?? t;
- n = new xm(e, r, t);
+ n = new Mm(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);
}
@@ -19832,19 +20013,19 @@ var Tm = class e {
}
let t = this.getKey(e);
if (t == null) return;
- let n = new xm(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
+ let n = new Mm(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 xm([t], t, t) : new xm();
+ let n = this.canSelectItem(t) ? new Mm([t], t, t) : new Mm();
this.state.setSelectedKeys(n);
}
setSelectedKeys(e) {
if (this.selectionMode === "none") return;
- let t = new xm();
+ let t = new Mm();
for (let n of e) {
let e = this.getKey(n);
if (e != null && (t.add(e), this.selectionMode === "single")) break;
@@ -19867,7 +20048,7 @@ var Tm = 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 xm());
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new Mm());
}
toggleSelectAll() {
this.isSelectAll ? this.clearSelection() : this.selectAll();
@@ -19908,9 +20089,9 @@ var Tm = class e {
fullCollection: this.fullCollection ?? this.collection
});
}
-}, Em = class {
+}, Lm = class {
build(e, t) {
- return this.context = t, Dm(() => this.iterateCollection(e));
+ return this.context = t, Rm(() => this.iterateCollection(e));
}
*iterateCollection(e) {
let { children: t, items: n } = e;
@@ -19992,10 +20173,10 @@ var Tm = class e {
...a,
key: l,
index: s,
- wrapper: Om(e.wrapper, a.wrapper)
+ wrapper: zm(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 <${km(t.type)}> in <${km(r?.type ?? "unknown parent type")}>. Only <${km(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 <${Bm(t.type)}> in <${Bm(r?.type ?? "unknown parent type")}>. Only <${Bm(e.type)}> is supported.`);
s++, yield t;
}
c = o.next(u);
@@ -20017,7 +20198,7 @@ var Tm = class e {
wrapper: e.wrapper,
shouldInvalidate: e.shouldInvalidate,
hasChildNodes: e.hasChildNodes || !1,
- childNodes: Dm(function* () {
+ childNodes: Rm(function* () {
if (!e.hasChildNodes || !e.childNodes) return;
let n = 0;
for (let r of e.childNodes()) {
@@ -20036,7 +20217,7 @@ var Tm = class e {
this.cache = /* @__PURE__ */ new WeakMap();
}
};
-function Dm(e) {
+function Rm(e) {
let t = [], n = null;
return { *[Symbol.iterator]() {
for (let e of t) yield e;
@@ -20044,18 +20225,18 @@ function Dm(e) {
for (let e of n) t.push(e), yield e;
} };
}
-function Om(e, t) {
+function zm(e, t) {
if (e && t) return (n) => e(t(n));
if (e) return e;
if (t) return t;
}
-function km(e) {
+function Bm(e) {
return e[0].toUpperCase() + e.slice(1);
}
//#endregion
//#region node_modules/react-stately/dist/private/collections/useCollection.mjs
-function Am(e, t, n) {
- let r = (0, x.useMemo)(() => new Em(), []), { children: i, items: a, collection: o } = e;
+function Vm(e, t, n) {
+ let r = (0, x.useMemo)(() => new Lm(), []), { children: i, items: a, collection: o } = e;
return (0, x.useMemo)(() => o || t(r.build({
children: i,
items: a
@@ -20070,27 +20251,27 @@ function Am(e, t, n) {
}
//#endregion
//#region node_modules/react-stately/dist/private/list/useListState.mjs
-function jm(e) {
- let { filter: t, layoutDelegate: n } = e, r = Cm(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Am(e, (0, x.useCallback)((e) => t ? new bm(t(e)) : new bm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Tm(a, r, { layoutDelegate: n }), [
+function Hm(e) {
+ let { filter: t, layoutDelegate: n } = e, r = Pm(e), i = (0, x.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = Vm(e, (0, x.useCallback)((e) => t ? new jm(t(e)) : new jm(e), [t]), (0, x.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, x.useMemo)(() => new Im(a, r, { layoutDelegate: n }), [
a,
r,
n
]);
- return Nm(a, o), {
+ return Wm(a, o), {
collection: a,
disabledKeys: i,
selectionManager: o
};
}
-function Mm(e, t) {
+function Um(e, t) {
let n = (0, x.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);
- return Nm(n, r), {
+ return Wm(n, r), {
collection: n,
selectionManager: r,
disabledKeys: e.disabledKeys
};
}
-function Nm(e, t) {
+function Wm(e, t) {
let n = (0, x.useRef)(null);
(0, x.useEffect)(() => {
if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {
@@ -20118,7 +20299,7 @@ function Nm(e, t) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs
-function Pm(e, t) {
+function Gm(e, t) {
let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, x.useRef)(null), s = yi((e) => {
for (let t of e) t.isIntersecting && r && r();
});
@@ -20142,42 +20323,42 @@ function Pm(e, t) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/ListBox.mjs
-var Fm = /*#__PURE__*/ (0, x.createContext)(null), Im = /*#__PURE__*/ (0, x.createContext)(null), Lm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, Fm);
- let n = (0, x.useContext)(Im);
- return n ? /*#__PURE__*/ x.createElement(zm, {
+var Km = /*#__PURE__*/ (0, x.createContext)(null), qm = /*#__PURE__*/ (0, x.createContext)(null), Jm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = tp(e, t, Km);
+ let n = (0, x.useContext)(qm);
+ return n ? /*#__PURE__*/ x.createElement(Xm, {
state: n,
props: e,
listBoxRef: t
- }) : /*#__PURE__*/ x.createElement(Xr, { content: /*#__PURE__*/ x.createElement(si, e) }, (n) => /*#__PURE__*/ x.createElement(Rm, {
+ }) : /*#__PURE__*/ x.createElement(Xr, { content: /*#__PURE__*/ x.createElement(si, e) }, (n) => /*#__PURE__*/ x.createElement(Ym, {
props: e,
listBoxRef: t,
collection: n
}));
});
-function Rm({ props: e, listBoxRef: t, collection: n }) {
+function Ym({ props: e, listBoxRef: t, collection: n }) {
e = {
...e,
collection: n,
children: null,
items: null
};
- let { layoutDelegate: r } = (0, x.useContext)(rp), i = jm({
+ let { layoutDelegate: r } = (0, x.useContext)(pp), i = Hm({
...e,
layoutDelegate: r
});
- return /*#__PURE__*/ x.createElement(zm, {
+ return /*#__PURE__*/ x.createElement(Xm, {
state: i,
props: e,
listBoxRef: t
});
}
-function zm({ state: e, props: t, listBoxRef: n }) {
- [t, n] = Gf(t, n, Zf);
- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Mm(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Mi(), { disabledBehavior: p, disabledKeys: m } = l, h = oc({
+function Xm({ state: e, props: t, listBoxRef: n }) {
+ [t, n] = tp(t, n, sp);
+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Um(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = Mi(), { disabledBehavior: p, disabledKeys: m } = l, h = oc({
usage: "search",
sensitivity: "base"
- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(rp), b = (0, x.useMemo)(() => t.keyboardDelegate || new rs({
+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, x.useContext)(pp), b = (0, x.useMemo)(() => t.keyboardDelegate || new rs({
collection: c,
collator: h,
ref: n,
@@ -20198,7 +20379,7 @@ function zm({ state: e, props: t, listBoxRef: n }) {
t.keyboardDelegate,
i,
_
- ]), { listBoxProps: S } = kc({
+ ]), { listBoxProps: S } = Ac({
...t,
shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,
keyboardDelegate: b,
@@ -20238,7 +20419,7 @@ function zm({ state: e, props: t, listBoxRef: n }) {
layout: t.layout || "stack",
orientation: a,
state: s
- }, M = Uf({
+ }, M = ep({
...t,
children: void 0,
defaultClassName: "react-aria-ListBox",
@@ -20249,7 +20430,7 @@ function zm({ state: e, props: t, listBoxRef: n }) {
style: { display: "contents" }
}, t.renderEmptyState(te)));
let N = U(t, { global: !0 });
- return /*#__PURE__*/ x.createElement(Ea, null, /*#__PURE__*/ x.createElement(Xf.div, {
+ return /*#__PURE__*/ x.createElement(Ea, null, /*#__PURE__*/ x.createElement(op.div, {
...H(N, M, S, k, T?.collectionProps),
ref: n,
slot: t.slot || void 0,
@@ -20260,52 +20441,52 @@ function zm({ state: e, props: t, listBoxRef: n }) {
"data-focus-visible": ee || void 0,
"data-layout": t.layout || "stack",
"data-orientation": a
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [Fm, t],
- [Im, s],
- [lm, {
+ }, /*#__PURE__*/ x.createElement($f, { values: [
+ [Km, t],
+ [qm, s],
+ [bm, {
dragAndDropHooks: r,
dragState: C,
dropState: w
}],
- [vm, { elementType: "div" }],
- [um, { render: Hm }],
- [$f, {
+ [km, { elementType: "div" }],
+ [xm, { render: $m }],
+ [lp, {
name: "ListBoxSection",
- render: Bm
+ render: Zm
}]
- ] }, /*#__PURE__*/ x.createElement(gm, null, /*#__PURE__*/ x.createElement(y, {
+ ] }, /*#__PURE__*/ x.createElement(Dm, null, /*#__PURE__*/ x.createElement(y, {
collection: c,
scrollRef: n,
- persistedKeys: pm(l, r, w),
- renderDropIndicator: fm(r, w)
+ persistedKeys: wm(l, r, w),
+ renderDropIndicator: Cm(r, w)
}))), ne, D));
}
-function Bm(e, t, n, r = "react-aria-ListBoxSection") {
- let i = (0, x.useContext)(Im), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(lm), { CollectionBranch: s } = (0, x.useContext)(rp), [c, l] = Kf(), { headingProps: u, groupProps: d } = Ac({
+function Zm(e, t, n, r = "react-aria-ListBoxSection") {
+ let i = (0, x.useContext)(qm), { dragAndDropHooks: a, dropState: o } = (0, x.useContext)(bm), { CollectionBranch: s } = (0, x.useContext)(pp), [c, l] = np(), { headingProps: u, groupProps: d } = jc({
heading: l,
"aria-label": e["aria-label"] ?? void 0
- }), f = Uf({
+ }), f = ep({
...e,
id: void 0,
children: void 0,
defaultClassName: r,
values: void 0
}), p = U(e, { global: !0 });
- return delete p.id, /*#__PURE__*/ x.createElement(Xf.section, {
+ return delete p.id, /*#__PURE__*/ x.createElement(op.section, {
...H(p, f, d),
ref: t
- }, /*#__PURE__*/ x.createElement(mm.Provider, { value: {
+ }, /*#__PURE__*/ x.createElement(Tm.Provider, { value: {
...u,
ref: c
} }, /*#__PURE__*/ x.createElement(s, {
collection: i.collection,
parent: n,
- renderDropIndicator: fm(a, o)
+ renderDropIndicator: Cm(a, o)
})));
}
-var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
- let r = Nr(t), i = (0, x.useContext)(Im), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(lm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = jc({
+var Qm = /*#__PURE__*/ ii(pt, function(e, t, n) {
+ let r = Nr(t), i = (0, x.useContext)(qm), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, x.useContext)(bm), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Mc({
key: n.key,
"aria-label": e?.["aria-label"]
}, i, r), { hoverProps: p, isHovered: m } = Sc({
@@ -20324,7 +20505,7 @@ var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
key: n.key,
dropPosition: "on"
} }, s, r));
- let y = o && o.isDragging(n.key), b = Uf({
+ let y = o && o.isDragging(n.key), b = ep({
...e,
id: void 0,
children: e.children,
@@ -20342,7 +20523,7 @@ var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
(0, x.useEffect)(() => {
n.textValue;
}, [n.textValue]);
- let S = e.href ? Xf.a : Xf.div, C = U(e, { global: !0 });
+ let S = e.href ? op.a : op.div, C = U(e, { global: !0 });
return delete C.id, delete C.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ x.createElement(S, {
...H(C, b, l, p, h, g, _?.dragProps, v?.dropProps),
ref: r,
@@ -20356,29 +20537,29 @@ var Vm = /*#__PURE__*/ ii(pt, function(e, t, n) {
"data-dragging": y || void 0,
"data-drop-target": v?.isDropTarget || void 0,
"data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode
- }, /*#__PURE__*/ x.createElement(Hf, { values: [[pp, { slots: {
- [Vf]: u,
+ }, /*#__PURE__*/ x.createElement($f, { values: [[wp, { slots: {
+ [Qf]: u,
label: u,
description: d
- } }], [_m, { isSelected: f.isSelected }]] }, b.children));
+ } }], [Om, { isSelected: f.isSelected }]] }, b.children));
});
-function Hm(e, t) {
+function $m(e, t) {
t = Nr(t);
- let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(lm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
- return a ? null : /*#__PURE__*/ x.createElement(Wm, {
+ let { dragAndDropHooks: n, dropState: r } = (0, x.useContext)(bm), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);
+ return a ? null : /*#__PURE__*/ x.createElement(th, {
...e,
dropIndicatorProps: i,
isDropTarget: o,
ref: t
});
}
-function Um(e, t) {
- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = Uf({
+function eh(e, t) {
+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ep({
...i,
defaultClassName: "react-aria-DropIndicator",
values: { isDropTarget: r }
});
- return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Xf.div, {
+ return /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(op.div, {
...n,
...a,
role: "option",
@@ -20386,10 +20567,10 @@ function Um(e, t) {
"data-drop-target": r || void 0
}));
}
-var Wm = /*#__PURE__*/ (0, x.forwardRef)(Um);
+var th = /*#__PURE__*/ (0, x.forwardRef)(eh);
ii(ft, function(e, t, n) {
- let r = (0, x.useContext)(Im), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
- Pm((0, x.useMemo)(() => ({
+ let r = (0, x.useContext)(qm), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, x.useRef)(null);
+ Gm((0, x.useMemo)(() => ({
onLoadMore: a,
collection: r?.collection,
sentinelRef: c,
@@ -20399,7 +20580,7 @@ ii(ft, function(e, t, n) {
o,
r?.collection
]), c);
- let l = Uf({
+ let l = ep({
...s,
id: void 0,
children: n.rendered,
@@ -20412,7 +20593,7 @@ ii(ft, function(e, t, n) {
width: 0,
height: 0
},
- inert: ym(!0)
+ inert: Am(!0)
}, /*#__PURE__*/ x.createElement("div", {
"data-testid": "loadMoreSentinel",
ref: c,
@@ -20421,7 +20602,7 @@ ii(ft, function(e, t, n) {
height: 1,
width: 1
}
- })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(Xf.div, {
+ })), i && l.children && /*#__PURE__*/ x.createElement(x.Fragment, null, /*#__PURE__*/ x.createElement(op.div, {
...H(U(e, { global: !0 }), { tabIndex: -1 }),
...l,
role: "option",
@@ -20430,10 +20611,10 @@ ii(ft, function(e, t, n) {
});
//#endregion
//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs
-var Gm = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
+var nh = /*#__PURE__*/ (0, x.createContext)({ placement: "bottom" });
//#endregion
//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs
-function Km(e) {
+function rh(e) {
let [t, n] = Fo(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, x.useState)(null);
return {
isOpen: t,
@@ -20453,13 +20634,13 @@ function Km(e) {
}
//#endregion
//#region node_modules/react-aria/dist/private/utils/animation.mjs
-function qm(e, t = !0) {
+function ih(e, t = !0) {
let [n, r] = (0, x.useState)(!0), i = n && t;
return V(() => {
if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();
- }, [e, i]), Ym(e, i, (0, x.useCallback)(() => r(!1), [])), i;
+ }, [e, i]), oh(e, i, (0, x.useCallback)(() => r(!1), [])), i;
}
-function Jm(e, t) {
+function ah(e, t) {
let [n, r] = (0, x.useState)(t ? "open" : "closed");
switch (n) {
case "open":
@@ -20469,11 +20650,11 @@ function Jm(e, t) {
case "exiting": t && r("open");
}
let i = n === "exiting";
- return Ym(e, i, (0, x.useCallback)(() => {
+ return oh(e, i, (0, x.useCallback)(() => {
r((e) => e === "exiting" ? "closed" : e);
}, [])), i;
}
-function Ym(e, t, n) {
+function oh(e, t, n) {
V(() => {
if (t && e.current) {
if (!("getAnimations" in e.current)) {
@@ -20502,9 +20683,9 @@ function Ym(e, t, n) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Popover.mjs
-var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.createContext)(null), Qm = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, Xm);
- let n = (0, x.useContext)(th), r = Km(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Jm(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vr(), { direction: c } = Mi();
+var sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.createContext)(null), lh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = tp(e, t, sh);
+ let n = (0, x.useContext)(fh), r = rh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = ah(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vr(), { direction: c } = Mi();
if (s) {
let t = e.children;
return typeof t == "function" && (t = t({
@@ -20515,7 +20696,7 @@ var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.crea
defaultChildren: null
})), /*#__PURE__*/ x.createElement(x.Fragment, null, t);
}
- return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement($m, {
+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ x.createElement(uh, {
...e,
triggerRef: e.triggerRef,
state: i,
@@ -20524,13 +20705,13 @@ var Xm = /*#__PURE__*/ (0, x.createContext)(null), Zm = /*#__PURE__*/ (0, x.crea
dir: c
});
});
-function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
- let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(Zm), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = eu({
+function uh({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {
+ let a = (0, x.useRef)(null), o = (0, x.useRef)(null), s = (0, x.useContext)(ch), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = tu({
...i,
offset: i.offset ?? 8,
arrowRef: a,
groupRef: c ? s : o
- }, e), m = i.popoverRef, h = qm(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = Uf({
+ }, e), m = i.popoverRef, h = ih(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = ep({
...i,
defaultClassName: "react-aria-Popover",
values: {
@@ -20556,7 +20737,7 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}, [_.children, r]), [C, w] = (0, x.useState)(null), T = (0, x.useCallback)(() => {
i.triggerRef.current && w(i.triggerRef.current.getBoundingClientRect().width + "px");
}, [i.triggerRef]);
- V(T, [T]), Nc({
+ V(T, [T]), Pc({
ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,
onResize: T
});
@@ -20565,7 +20746,7 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,
..._.style,
"--trigger-width": _.style?.["--trigger-width"] || C
- }, D = /*#__PURE__*/ x.createElement(Xf.div, {
+ }, D = /*#__PURE__*/ x.createElement(op.div, {
...H(U(i, { global: !0 }), l),
..._,
id: y ? i.id : void 0,
@@ -20581,11 +20762,11 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
"data-placement": f,
"data-entering": g || void 0,
"data-exiting": t || void 0
- }, !i.isNonModal && /*#__PURE__*/ x.createElement(gl, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(Gm.Provider, { value: {
+ }, !i.isNonModal && /*#__PURE__*/ x.createElement(_l, { onDismiss: e.close }), /*#__PURE__*/ x.createElement(nh.Provider, { value: {
...d,
placement: f,
ref: a
- } }, S), /*#__PURE__*/ x.createElement(gl, { onDismiss: e.close }));
+ } }, S), /*#__PURE__*/ x.createElement(_l, { onDismiss: e.close }));
return c ? /*#__PURE__*/ x.createElement(fc, {
...i,
shouldContainFocus: y && i.trigger !== "PreviewTrigger",
@@ -20606,60 +20787,60 @@ function $m({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts
}), /*#__PURE__*/ x.createElement("div", {
ref: o,
style: { display: "contents" }
- }, /*#__PURE__*/ x.createElement(Zm.Provider, { value: o }, D)));
+ }, /*#__PURE__*/ x.createElement(ch.Provider, { value: o }, D)));
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Dialog.mjs
-var eh = /*#__PURE__*/ (0, x.createContext)(null), th = /*#__PURE__*/ (0, x.createContext)(null), nh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+var dh = /*#__PURE__*/ (0, x.createContext)(null), fh = /*#__PURE__*/ (0, x.createContext)(null), ph = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let n = e["aria-labelledby"];
- [e, t] = Gf(e, t, eh);
+ [e, t] = tp(e, t, dh);
let { dialogProps: r, titleProps: i, contentProps: a } = mc({
...e,
"aria-labelledby": n
- }, t), o = (0, x.useContext)(th);
+ }, t), o = (0, x.useContext)(fh);
!r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);
- let s = Uf({
+ let s = ep({
defaultClassName: "react-aria-Dialog",
className: e.className,
style: e.style,
children: e.children,
values: { close: o?.close || (() => {}) }
}), c = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(Xf.section, {
+ return /*#__PURE__*/ x.createElement(op.section, {
...H(c, s, r),
render: e.render,
ref: t,
slot: e.slot || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [dp, { slots: {
- [Vf]: {},
+ }, /*#__PURE__*/ x.createElement($f, { values: [
+ [Sp, { slots: {
+ [Qf]: {},
title: {
...i,
level: 2
}
} }],
- [pp, { slots: {
- [Vf]: {},
+ [wp, { slots: {
+ [Qf]: {},
description: a
} }],
- [sp, { slots: {
- [Vf]: {},
+ [vp, { slots: {
+ [Qf]: {},
close: { onPress: () => o?.close() }
} }]
] }, s.children));
-}), rh = typeof document < "u" && window.visualViewport;
-function ih() {
+}), mh = typeof document < "u" && window.visualViewport;
+function hh() {
let e = An(), [t, n] = (0, x.useState)(() => e ? {
width: 0,
height: 0
- } : ah());
+ } : gh());
return (0, x.useEffect)(() => {
let e = (e) => {
n((t) => e.width === t.width && e.height === t.height ? t : e);
}, t = () => {
- rh && rh.scale > 1 || e(ah());
+ mh && mh.scale > 1 || e(gh());
}, r, i = (t) => {
- rh && rh.scale > 1 || _i(z(t)) && (r = requestAnimationFrame(() => {
+ mh && mh.scale > 1 || _i(z(t)) && (r = requestAnimationFrame(() => {
let t = Ft();
(!t || !_i(t)) && e({
width: document.documentElement.clientWidth,
@@ -20667,26 +20848,26 @@ function ih() {
});
}));
};
- return e(ah()), an() && sn() && window.addEventListener("blur", i, !0), rh ? rh.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
- cancelAnimationFrame(r), an() && sn() && window.removeEventListener("blur", i, !0), rh ? rh.removeEventListener("resize", t) : window.removeEventListener("resize", t);
+ return e(gh()), an() && sn() && window.addEventListener("blur", i, !0), mh ? mh.addEventListener("resize", t) : window.addEventListener("resize", t), () => {
+ cancelAnimationFrame(r), an() && sn() && window.removeEventListener("blur", i, !0), mh ? mh.removeEventListener("resize", t) : window.removeEventListener("resize", t);
};
}, []), t;
}
-function ah() {
+function gh() {
return {
- width: rh ? Math.min(rh.width * rh.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
- height: rh ? rh.height * rh.scale : document.documentElement.clientHeight
+ width: mh ? Math.min(mh.width * mh.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,
+ height: mh ? mh.height * mh.scale : document.documentElement.clientHeight
};
}
//#endregion
//#region node_modules/react-aria-components/dist/private/Modal.mjs
-var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.createContext)(null), ch = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- if ((0, x.useContext)(sh)) return /*#__PURE__*/ x.createElement(fh, {
+var _h = /*#__PURE__*/ (0, x.createContext)(null), vh = /*#__PURE__*/ (0, x.createContext)(null), yh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ if ((0, x.useContext)(vh)) return /*#__PURE__*/ x.createElement(Ch, {
...e,
modalRef: t
}, e.children);
let { isDismissable: n, isKeyboardDismissDisabled: r, isOpen: i, defaultOpen: a, onOpenChange: o, children: s, isEntering: c, isExiting: l, UNSTABLE_portalContainer: u, shouldCloseOnInteractOutside: d, ...f } = e;
- return /*#__PURE__*/ x.createElement(uh, {
+ return /*#__PURE__*/ x.createElement(xh, {
isDismissable: n,
isKeyboardDismissDisabled: r,
isOpen: i,
@@ -20696,15 +20877,15 @@ var oh = /*#__PURE__*/ (0, x.createContext)(null), sh = /*#__PURE__*/ (0, x.crea
isExiting: l,
UNSTABLE_portalContainer: u,
shouldCloseOnInteractOutside: d
- }, /*#__PURE__*/ x.createElement(fh, {
+ }, /*#__PURE__*/ x.createElement(Ch, {
...f,
modalRef: t
}, s));
});
-function lh(e, t) {
- [e, t] = Gf(e, t, oh);
- let n = (0, x.useContext)(th), r = Km(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nr(t), o = (0, x.useRef)(null), s = Jm(a, i.isOpen), c = Jm(o, i.isOpen), l = s || c || e.isExiting || !1, u = An();
- return !i.isOpen && !l || u ? null : /*#__PURE__*/ x.createElement(dh, {
+function bh(e, t) {
+ [e, t] = tp(e, t, _h);
+ let n = (0, x.useContext)(fh), r = rh(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nr(t), o = (0, x.useRef)(null), s = ah(a, i.isOpen), c = ah(o, i.isOpen), l = s || c || e.isExiting || !1, u = An();
+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ x.createElement(Sh, {
...e,
state: i,
isExiting: l,
@@ -20712,9 +20893,9 @@ function lh(e, t) {
modalRef: o
});
}
-var uh = /*#__PURE__*/ (0, x.forwardRef)(lh);
-function dh({ UNSTABLE_portalContainer: e, ...t }) {
- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Dl(t, r, n), o = qm(t.overlayRef) || t.isEntering || !1, s = Uf({
+var xh = /*#__PURE__*/ (0, x.forwardRef)(bh);
+function Sh({ UNSTABLE_portalContainer: e, ...t }) {
+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ol(t, r, n), o = ih(t.overlayRef) || t.isEntering || !1, s = ep({
...t,
defaultClassName: "react-aria-ModalOverlay",
values: {
@@ -20722,7 +20903,7 @@ function dh({ UNSTABLE_portalContainer: e, ...t }) {
isExiting: t.isExiting,
state: r
}
- }), c = ih(), l, u;
+ }), c = hh(), l, u;
if (typeof document < "u") {
let e = eo(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;
l = e.scrollWidth - t, u = e.scrollHeight - n;
@@ -20737,22 +20918,22 @@ function dh({ UNSTABLE_portalContainer: e, ...t }) {
return /*#__PURE__*/ x.createElement(fc, {
isExiting: t.isExiting,
portalContainer: e
- }, /*#__PURE__*/ x.createElement(Xf.div, {
+ }, /*#__PURE__*/ x.createElement(op.div, {
...H(U(t, { global: !0 }), a),
...s,
style: d,
ref: t.overlayRef,
"data-entering": o || void 0,
"data-exiting": t.isExiting || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [[sh, {
+ }, /*#__PURE__*/ x.createElement($f, { values: [[vh, {
modalProps: i,
modalRef: n,
isExiting: t.isExiting,
isDismissable: t.isDismissable
- }], [th, r]] }, s.children)));
+ }], [fh, r]] }, s.children)));
}
-function fh(e) {
- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, x.useContext)(sh), a = (0, x.useContext)(th), o = Nr((0, x.useMemo)(() => mr(e.modalRef, n), [e.modalRef, n])), s = qm(o), c = Uf({
+function Ch(e) {
+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, x.useContext)(vh), a = (0, x.useContext)(fh), o = Nr((0, x.useMemo)(() => mr(e.modalRef, n), [e.modalRef, n])), s = ih(o), c = ep({
...e,
defaultClassName: "react-aria-Modal",
values: {
@@ -20761,19 +20942,19 @@ function fh(e) {
state: a
}
});
- return /*#__PURE__*/ x.createElement(Xf.div, {
+ return /*#__PURE__*/ x.createElement(op.div, {
...H(U(e, { global: !0 }), t),
...c,
ref: o,
"data-entering": s || void 0,
"data-exiting": r || void 0
- }, i && /*#__PURE__*/ x.createElement(gl, { onDismiss: a.close }), c.children);
+ }, i && /*#__PURE__*/ x.createElement(_l, { onDismiss: a.close }), c.children);
}
//#endregion
//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs
-var ph = Math.round(Math.random() * 1e10), mh = 0;
-function hh(e) {
- let t = (0, x.useMemo)(() => e.name || `radio-group-${ph}-${++mh}`, [e.name]), [n, r] = Fo(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = So({
+var wh = Math.round(Math.random() * 1e10), Th = 0;
+function Eh(e) {
+ let t = (0, x.useMemo)(() => e.name || `radio-group-${wh}-${++Th}`, [e.name]), [n, r] = Fo(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, x.useState)(n), [a, o] = (0, x.useState)(null), s = So({
...e,
value: n
}), c = (t) => {
@@ -20796,16 +20977,16 @@ function hh(e) {
}
//#endregion
//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs
-var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.createContext)(null), vh = /*#__PURE__*/ (0, x.createContext)(null), yh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- [e, t] = Gf(e, t, gh);
- let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = hh({
+var Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ (0, x.createContext)(null), kh = /*#__PURE__*/ (0, x.createContext)(null), Ah = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = tp(e, t, Dh);
+ let { validationBehavior: n } = $(Dp) || {}, r = e.validationBehavior ?? n ?? "native", i = Eh({
...e,
validationBehavior: r
- }), [a, o] = Kf(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = ru({
+ }), [a, o] = np(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = iu({
...e,
label: o,
validationBehavior: r
- }, i), f = Uf({
+ }, i), f = ep({
...e,
values: {
orientation: e.orientation || "vertical",
@@ -20817,7 +20998,7 @@ var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.crea
},
defaultClassName: "react-aria-RadioGroup"
}), p = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(Xf.div, {
+ return /*#__PURE__*/ x.createElement(op.div, {
...H(p, f, s),
ref: t,
slot: e.slot || void 0,
@@ -20826,39 +21007,39 @@ var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.crea
"data-disabled": i.isDisabled || void 0,
"data-readonly": i.isReadOnly || void 0,
"data-required": i.isRequired || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [vh, i],
- [ip, {
+ }, /*#__PURE__*/ x.createElement($f, { values: [
+ [kh, i],
+ [hp, {
...c,
ref: a,
elementType: "span"
}],
- [pp, { slots: {
+ [wp, { slots: {
description: l,
errorMessage: u
} }],
- [hp, d]
- ] }, /*#__PURE__*/ x.createElement(gm, null, f.children)));
-}), bh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [Ep, d]
+ ] }, /*#__PURE__*/ x.createElement(Dm, null, f.children)));
+}), jh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Gf(r, t, _h);
- let i = x.useContext(vh), a = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = nu({
- ...qf(e),
+ [e, t] = tp(r, t, Oh);
+ let i = x.useContext(kh), a = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = ru({
+ ...rp(e),
children: typeof e.children == "function" || e.children
}, i, a);
- return /*#__PURE__*/ x.createElement(xh.Provider, { value: {
+ return /*#__PURE__*/ x.createElement(Mh.Provider, { value: {
...o,
inputRef: a,
defaultClassName: "react-aria-Radio"
- } }, /*#__PURE__*/ x.createElement(Sh, {
+ } }, /*#__PURE__*/ x.createElement(Nh, {
...e,
ref: t
}));
-}), xh = /*#__PURE__*/ (0, x.createContext)(null), Sh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(xh), l = x.useContext(vh), { isFocused: u, isFocusVisible: d, focusProps: f } = hc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Sc({
+}), Mh = /*#__PURE__*/ (0, x.createContext)(null), Nh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, x.useContext)(Mh), l = x.useContext(kh), { isFocused: u, isFocusVisible: d, focusProps: f } = hc(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = Sc({
...e,
isDisabled: p
- }), g = Uf({
+ }), g = ep({
...e,
defaultClassName: s,
values: {
@@ -20873,7 +21054,7 @@ var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.crea
isRequired: l.isRequired
}
}), _ = U(e, { global: !0 });
- return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
+ return delete _.id, delete _.onClick, /*#__PURE__*/ x.createElement(op.label, {
...H(_, n, m, g),
ref: t,
"data-selected": i || void 0,
@@ -20892,8 +21073,8 @@ var gh = /*#__PURE__*/ (0, x.createContext)(null), _h = /*#__PURE__*/ (0, x.crea
});
//#endregion
//#region node_modules/react-stately/dist/private/select/useSelectState.mjs
-function Ch(e) {
- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = Km(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
+function Ph(e) {
+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = rh(e), [i, a] = (0, x.useState)(null), o = (0, x.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [
e.defaultValue,
e.defaultSelectedKey,
t
@@ -20909,12 +21090,12 @@ function Ch(e) {
let e = [];
Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);
}
- }, d = jm({
+ }, d = Hm({
...e,
selectionMode: t,
disallowEmptySelection: t === "single",
allowDuplicateSelectionEvents: !0,
- selectedKeys: (0, x.useMemo)(() => wh(l), [l]),
+ selectedKeys: (0, x.useMemo)(() => Fh(l), [l]),
onSelectionChange: (e) => {
if (e !== "all") {
if (t === "single") {
@@ -20951,16 +21132,16 @@ function Ch(e) {
setFocused: g
};
}
-function wh(e) {
+function Fh(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 Th(e) {
+function Ih(e) {
return e && e.__esModule ? e.default : e;
}
-var Eh = /*#__PURE__*/ (0, x.createContext)(null), Dh = /*#__PURE__*/ (0, x.createContext)(null), Oh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, Eh);
+var Lh = /*#__PURE__*/ (0, x.createContext)(null), Rh = /*#__PURE__*/ (0, x.createContext)(null), zh = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, Lh);
let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, x.useMemo)(() => typeof n == "function" ? n({
isOpen: !1,
isDisabled: r,
@@ -20975,24 +21156,24 @@ var Eh = /*#__PURE__*/ (0, x.createContext)(null), Dh = /*#__PURE__*/ (0, x.crea
i,
a
]);
- return /*#__PURE__*/ x.createElement(Xr, { content: o }, (n) => /*#__PURE__*/ x.createElement(Ah, {
+ return /*#__PURE__*/ x.createElement(Xr, { content: o }, (n) => /*#__PURE__*/ x.createElement(Vh, {
props: e,
collection: n,
selectRef: t
}));
-}), kh = [
- ip,
- sp,
- pp
+}), Bh = [
+ hp,
+ vp,
+ wp
];
-function Ah({ props: e, selectRef: t, collection: n }) {
- let { validationBehavior: r } = Wf(gp) || {}, i = e.validationBehavior ?? r ?? "native", a = Ch({
+function Vh({ props: e, selectRef: t, collection: n }) {
+ let { validationBehavior: r } = $(Dp) || {}, i = e.validationBehavior ?? r ?? "native", a = Ph({
...e,
collection: n,
children: void 0,
validationBehavior: i
- }), { isFocusVisible: o, focusProps: s } = hc({ within: !0 }), c = (0, x.useRef)(null), [l, u] = Kf(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = au({
- ...qf(e),
+ }), { isFocusVisible: o, focusProps: s } = hc({ within: !0 }), c = (0, x.useRef)(null), [l, u] = np(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = ou({
+ ...rp(e),
label: u,
validationBehavior: i
}, a, c), y = (0, x.useMemo)(() => ({
@@ -21009,48 +21190,48 @@ function Ah({ props: e, selectRef: t, collection: n }) {
e.isDisabled,
v.isInvalid,
e.isRequired
- ]), b = Uf({
+ ]), b = ep({
...e,
values: y,
defaultClassName: "react-aria-Select"
}), S = U(e, { global: !0 });
delete S.id;
let C = (0, x.useRef)(null);
- return /*#__PURE__*/ x.createElement(Hf, { values: [
- [Eh, e],
- [Dh, a],
- [jh, p],
- [ip, {
+ return /*#__PURE__*/ x.createElement($f, { values: [
+ [Lh, e],
+ [Rh, a],
+ [Hh, p],
+ [hp, {
...d,
ref: l,
elementType: "span"
}],
- [sp, {
+ [vp, {
...f,
ref: c,
isPressed: a.isOpen,
autoFocus: e.autoFocus
}],
- [th, a],
- [Xm, {
+ [fh, a],
+ [sh, {
trigger: "Select",
triggerRef: c,
scrollRef: C,
placement: "bottom start",
"aria-labelledby": m["aria-labelledby"],
- clearContexts: kh
+ clearContexts: Bh
}],
- [Fm, {
+ [Km, {
...m,
ref: C
}],
- [Im, a],
- [pp, { slots: {
+ [qm, a],
+ [wp, { slots: {
description: h,
errorMessage: g
} }],
- [hp, v]
- ] }, /*#__PURE__*/ x.createElement(Xf.div, {
+ [Ep, v]
+ ] }, /*#__PURE__*/ x.createElement(op.div, {
...H(S, b, s),
ref: t,
slot: e.slot || void 0,
@@ -21060,14 +21241,14 @@ function Ah({ props: e, selectRef: t, collection: n }) {
"data-disabled": e.isDisabled || void 0,
"data-invalid": v.isInvalid || void 0,
"data-required": e.isRequired || void 0
- }, b.children, /*#__PURE__*/ x.createElement(su, {
+ }, b.children, /*#__PURE__*/ x.createElement(cu, {
..._,
autoComplete: e.autoComplete
})));
}
-var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, jh);
- let n = (0, x.useContext)(Dh), { placeholder: r } = Wf(Eh), i = n.selectedItems.map((e) => {
+var Hh = /*#__PURE__*/ (0, x.createContext)(null), Uh = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, Hh);
+ let n = (0, x.useContext)(Rh), { placeholder: r } = $(Lh), i = n.selectedItems.map((e) => {
let t = e.props?.children;
return typeof t == "function" && (t = t({
isHovered: !1,
@@ -21094,7 +21275,7 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
a,
o,
i
- ]), u = Ki(Th(cm), "react-aria-components"), d = Uf({
+ ]), u = Ki(Ih(ym), "react-aria-components"), d = ep({
...e,
defaultChildren: l ?? r ?? u.format("selectPlaceholder"),
defaultClassName: "react-aria-SelectValue",
@@ -21106,32 +21287,32 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
state: n
}
}), f = U(e, { global: !0 });
- return /*#__PURE__*/ x.createElement(Xf.span, {
+ return /*#__PURE__*/ x.createElement(op.span, {
ref: t,
...f,
...d,
"data-placeholder": n.selectedItems.length === 0 || void 0
- }, /*#__PURE__*/ x.createElement(pp.Provider, { value: void 0 }, d.children));
-}), Nh = /*#__PURE__*/ (0, x.createContext)(null), Ph = /*#__PURE__*/ (0, x.createContext)(null), Fh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ }, /*#__PURE__*/ x.createElement(wp.Provider, { value: void 0 }, d.children));
+}), Wh = /*#__PURE__*/ (0, x.createContext)(null), Gh = /*#__PURE__*/ (0, x.createContext)(null), Kh = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
let { inputRef: n = null, ...r } = e;
- [e, t] = Gf(r, t, Nh);
- let i = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Io(e), o = cu({
- ...qf(e),
+ [e, t] = tp(r, t, Wh);
+ let i = Nr((0, x.useMemo)(() => mr(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = Io(e), o = lu({
+ ...rp(e),
children: typeof e.children == "function" || e.children
}, a, i);
- return /*#__PURE__*/ x.createElement(Hf, { values: [[Ph, a], [Ih, {
+ return /*#__PURE__*/ x.createElement($f, { values: [[Gh, a], [qh, {
...o,
inputRef: i,
defaultClassName: "react-aria-Switch"
- }]] }, /*#__PURE__*/ x.createElement(Lh, {
+ }]] }, /*#__PURE__*/ x.createElement(Jh, {
...e,
ref: t
}));
-}), Ih = /*#__PURE__*/ (0, x.createContext)(null), Lh = /*#__PURE__*/ (0, x.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, x.useContext)(Ih), { isFocused: f, isFocusVisible: p, focusProps: m } = hc(), h = a || o, g = (0, x.useContext)(Ph), { hoverProps: _, isHovered: v } = Sc({
+}), qh = /*#__PURE__*/ (0, x.createContext)(null), Jh = /*#__PURE__*/ (0, x.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, x.useContext)(qh), { isFocused: f, isFocusVisible: p, focusProps: m } = hc(), h = a || o, g = (0, x.useContext)(Gh), { hoverProps: _, isHovered: v } = Sc({
...e,
isDisabled: h
- }), y = Uf({
+ }), y = ep({
...e,
defaultClassName: u,
values: {
@@ -21147,7 +21328,7 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
state: g
}
}), b = U(e, { global: !0 });
- return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(Xf.label, {
+ return delete b.id, delete b.onClick, /*#__PURE__*/ x.createElement(op.label, {
...H(b, n, _, y),
ref: t,
slot: e.slot || void 0,
@@ -21164,18 +21345,217 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
...H(r, m),
ref: l
})), y.children);
-}), Rh = /*#__PURE__*/ (0, x.createContext)({}), zh = /*#__PURE__*/ (0, x.createContext)(null), Bh = /*#__PURE__*/ Br(function(e, t) {
- [e, t] = Gf(e, t, zh);
- let { validationBehavior: n } = Wf(gp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
- [e, i] = Gf(e, i, Qf);
- let [a, o] = Kf(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Vo({
- ...qf(e),
+});
+//#endregion
+//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs
+function Yh(e) {
+ let [t, n] = Fo(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, x.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = Hm({
+ ...e,
+ selectionMode: "single",
+ disallowEmptySelection: !0,
+ allowDuplicateSelectionEvents: !0,
+ selectedKeys: r,
+ onSelectionChange: (r) => {
+ if (r === "all") return;
+ let i = r.values().next().value ?? null;
+ i === t && e.onSelectionChange && e.onSelectionChange(i), n(i);
+ }
+ });
+ return {
+ collection: i,
+ disabledKeys: a,
+ selectionManager: o,
+ selectedKey: t,
+ setSelectedKey: n,
+ selectedItem: t == null ? null : i.getItem(t)
+ };
+}
+//#endregion
+//#region node_modules/react-stately/dist/private/tabs/useTabListState.mjs
+function Xh(e) {
+ let t = Yh({
+ ...e,
+ onSelectionChange: e.onSelectionChange ? (t) => {
+ t != null && e.onSelectionChange?.(t);
+ } : void 0,
+ suppressTextValueWarning: !0,
+ defaultSelectedKey: e.defaultSelectedKey ?? Zh(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0
+ }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, x.useRef)(i);
+ return (0, x.useEffect)(() => {
+ let o = i;
+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = Zh(r, t.disabledKeys), o != null && n.setSelectedKeys([o])), (o != null && n.focusedKey == null || !n.isFocused && o !== a.current) && n.setFocusedKey(o), a.current = o;
+ }), {
+ ...t,
+ isDisabled: e.isDisabled || !1
+ };
+}
+function Zh(e, t) {
+ let n = null;
+ if (e) {
+ for (n = e.getFirstKey(); n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n !== e.getLastKey();) n = e.getKeyAfter(n);
+ n != null && (t.has(n) || e.getItem(n)?.props?.isDisabled) && n === e.getLastKey() && (n = e.getFirstKey());
+ }
+ return n;
+}
+//#endregion
+//#region node_modules/react-aria-components/dist/private/Tabs.mjs
+var Qh = /*#__PURE__*/ (0, x.createContext)(null), $h = /*#__PURE__*/ (0, x.createContext)(null), eg = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ [e, t] = tp(e, t, Qh);
+ let { children: n, orientation: r = "horizontal" } = e;
+ return n = (0, x.useMemo)(() => typeof n == "function" ? n({
+ orientation: r,
+ defaultChildren: null
+ }) : n, [n, r]), /*#__PURE__*/ x.createElement(Xr, { content: n }, (n) => /*#__PURE__*/ x.createElement(tg, {
+ props: e,
+ collection: n,
+ tabsRef: t
+ }));
+});
+function tg({ props: e, tabsRef: t, collection: n }) {
+ let { orientation: r = "horizontal" } = e, i = Xh({
+ ...e,
+ collection: n,
+ children: void 0
+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = hc({ within: !0 }), c = (0, x.useMemo)(() => ({
+ orientation: r,
+ isFocusWithin: o,
+ isFocusVisible: s
+ }), [
+ r,
+ o,
+ s
+ ]), l = ep({
+ ...e,
+ defaultClassName: "react-aria-Tabs",
+ values: c
+ }), u = U(e, { global: !0 });
+ return /*#__PURE__*/ x.createElement(op.div, {
+ ...H(u, l, a),
+ ref: t,
+ slot: e.slot || void 0,
+ "data-focused": o || void 0,
+ "data-orientation": r,
+ "data-focus-visible": s || void 0,
+ "data-disabled": i.isDisabled || void 0
+ }, /*#__PURE__*/ x.createElement($f, { values: [[Qh, e], [$h, i]] }, l.children));
+}
+var ng = /*#__PURE__*/ (0, x.forwardRef)(function(e, t) {
+ return (0, x.useContext)($h) ? /*#__PURE__*/ x.createElement(rg, {
+ props: e,
+ forwardedRef: t
+ }) : /*#__PURE__*/ x.createElement(si, e);
+});
+function rg({ props: e, forwardedRef: t }) {
+ let n = (0, x.useContext)($h), { CollectionRoot: r } = (0, x.useContext)(pp), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = $(Qh), o = Nr(t), { tabListProps: s } = mu({
+ ...e,
+ orientation: i,
+ keyboardActivation: a
+ }, n, o), c = ep({
+ ...e,
+ children: null,
+ defaultClassName: "react-aria-TabList",
+ values: {
+ orientation: i,
+ state: n
+ }
+ }), l = U(e, { global: !0 });
+ return delete l.id, /*#__PURE__*/ x.createElement(op.div, {
+ ...H(l, c, s),
+ ref: o,
+ "data-orientation": i || void 0
+ }, /*#__PURE__*/ x.createElement(Dm, null, /*#__PURE__*/ x.createElement(r, {
+ collection: n.collection,
+ persistedKeys: mp(n.selectionManager.focusedKey)
+ })));
+}
+var ig = /*#__PURE__*/ ii(class extends ut {
+ static {
+ this.type = "item";
+ }
+}, (e, t, n) => {
+ let r = (0, x.useContext)($h), i = Nr(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = fu({
+ key: n.key,
+ ...e
+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = hc(), { hoverProps: f, isHovered: p } = Sc({
+ isDisabled: s,
+ onHoverStart: e.onHoverStart,
+ onHoverEnd: e.onHoverEnd,
+ onHoverChange: e.onHoverChange
+ }), m = ep({
+ ...e,
+ id: void 0,
+ children: n.rendered,
+ defaultClassName: "react-aria-Tab",
+ values: {
+ isSelected: o,
+ isDisabled: s,
+ isFocused: u,
+ isFocusVisible: d,
+ isPressed: c,
+ isHovered: p
+ }
+ }), h = n.props.href ? op.a : op.div, g = U(e, { global: !0 });
+ return delete g.id, delete g.onClick, /*#__PURE__*/ x.createElement(h, {
+ ...H(g, m, a, l, f),
+ ref: i,
+ "data-selected": o || void 0,
+ "data-disabled": s || void 0,
+ "data-focused": u || void 0,
+ "data-focus-visible": d || void 0,
+ "data-pressed": c || void 0,
+ "data-hovered": p || void 0
+ }, /*#__PURE__*/ x.createElement(Om.Provider, { value: { isSelected: o } }, m.children));
+}), ag = /*#__PURE__*/ Br(function(e, t) {
+ let n = (0, x.useContext)($h), r = Nr(t), i = n.selectedKey === e.id, [a, o] = (0, x.useState)(n.selectedKey == null ? null : i);
+ a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);
+ let s = ah(r, i);
+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ x.createElement(og, {
+ ...e,
+ tabPanelRef: r,
+ isInitiallySelected: a || !1,
+ isExiting: s
+ });
+});
+function og(e) {
+ let t = (0, x.useContext)($h), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = hu(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = hc(), d = t.selectedKey === e.id, f = ih(r) && !i, p = ep({
+ ...e,
+ defaultClassName: "react-aria-TabPanel",
+ values: {
+ isFocused: l,
+ isFocusVisible: u,
+ isInert: Am(!d),
+ isEntering: f,
+ isExiting: a,
+ state: t
+ }
+ }), m = U(o, { global: !0 });
+ delete m.id;
+ let h = d ? H(m, s, c, p) : H(m, p);
+ return /*#__PURE__*/ x.createElement(op.div, {
+ ...h,
+ ref: r,
+ "data-focused": l || void 0,
+ "data-focus-visible": u || void 0,
+ inert: Am(!d || e.inert),
+ "data-inert": d ? void 0 : "true",
+ "data-entering": f || void 0,
+ "data-exiting": a || void 0
+ }, /*#__PURE__*/ x.createElement($f, { values: [[Qh, null], [$h, null]] }, /*#__PURE__*/ x.createElement(pp.Provider, { value: up }, p.children)));
+}
+//#endregion
+//#region node_modules/react-aria-components/dist/private/TextArea.mjs
+var sg = /*#__PURE__*/ (0, x.createContext)({}), cg = /*#__PURE__*/ (0, x.createContext)(null), lg = /*#__PURE__*/ Br(function(e, t) {
+ [e, t] = tp(e, t, cg);
+ let { validationBehavior: n } = $(Dp) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, x.useRef)(null);
+ [e, i] = tp(e, i, cp);
+ let [a, o] = np(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, x.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = Vo({
+ ...rp(e),
inputElementType: s,
label: o,
validationBehavior: r
}, i), m = (0, x.useCallback)((e) => {
i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");
- }, [i]), h = Uf({
+ }, [i]), h = ep({
...e,
values: {
isDisabled: e.isDisabled || !1,
@@ -21185,7 +21565,7 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
},
defaultClassName: "react-aria-TextField"
}), g = U(e, { global: !0 });
- return delete g.id, /*#__PURE__*/ x.createElement(Xf.div, {
+ return delete g.id, /*#__PURE__*/ x.createElement(op.div, {
...g,
...h,
ref: t,
@@ -21194,31 +21574,31 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
"data-invalid": p.isInvalid || void 0,
"data-readonly": e.isReadOnly || void 0,
"data-required": e.isRequired || void 0
- }, /*#__PURE__*/ x.createElement(Hf, { values: [
- [ip, {
+ }, /*#__PURE__*/ x.createElement($f, { values: [
+ [hp, {
...l,
ref: a
}],
- [Tp, {
+ [Ip, {
...u,
ref: m
}],
- [Rh, {
+ [sg, {
...u,
ref: m
}],
- [Cp, {
+ [Pp, {
role: "presentation",
isInvalid: p.isInvalid,
isDisabled: e.isDisabled || !1
}],
- [pp, { slots: {
+ [wp, { slots: {
description: d,
errorMessage: f
} }],
- [hp, p]
+ [Ep, p]
] }, h.children));
-}), Vh = sf({
+}), ug = _f({
base: [
"inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",
"font-sans select-none cursor-pointer",
@@ -21273,23 +21653,23 @@ var jh = /*#__PURE__*/ (0, x.createContext)(null), Mh = /*#__PURE__*/ Br(functio
].join(" ")
}
});
-function Hh({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {
+function dg({ 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, S.jsxs)("button", {
ref: c,
type: s,
- className: of(Vh.base, Vh.size[t], Vh.variant[e], n && Vh.iconOnlySize[t], o),
+ className: gf(ug.base, ug.size[t], ug.variant[e], n && ug.iconOnlySize[t], o),
...l,
children: [
r ? /* @__PURE__ */ (0, S.jsx)(r, {
- className: Vh.icon[t],
+ className: ug.icon[t],
"aria-hidden": !0
}) : null,
!n && a != null && /* @__PURE__ */ (0, S.jsx)("span", {
- className: Vh.label[t],
+ className: ug.label[t],
children: a
}),
!n && i ? /* @__PURE__ */ (0, S.jsx)(i, {
- className: Vh.icon[t],
+ className: ug.icon[t],
"aria-hidden": !0
}) : null
]
@@ -21297,7 +21677,7 @@ function Hh({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, lead
}
//#endregion
//#region src/react/boardui/components/base/buttons/icon-button.tsx
-var Uh = sf({
+var fg = _f({
base: [
"relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",
"bg-background-primary-default text-foreground-icon-primary",
@@ -21318,25 +21698,25 @@ var Uh = sf({
small: "size-4 shrink-0"
}
});
-function Wh({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
+function pg({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {
return /* @__PURE__ */ (0, S.jsx)("button", {
ref: i,
type: r,
- className: of(Uh.base, Uh.size[t], n),
+ className: gf(fg.base, fg.size[t], n),
...a,
children: /* @__PURE__ */ (0, S.jsx)(e, {
- className: Uh.icon[t],
+ className: fg.icon[t],
"aria-hidden": !0
})
});
}
//#endregion
//#region src/react/boardui/components/base/input/label.tsx
-function Gh({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsxs)(ap, {
+function mg({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsxs)(gp, {
"data-label": "true",
...a,
- className: of("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
+ className: gf("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),
children: [
i,
e && /* @__PURE__ */ (0, S.jsx)("span", {
@@ -21344,7 +21724,7 @@ function Gh({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
className: "text-body-medium text-text-error-primary",
children: "*"
}),
- n && /* @__PURE__ */ (0, S.jsx)(wu, {
+ n && /* @__PURE__ */ (0, S.jsx)(Mu, {
className: "size-4 shrink-0 text-foreground-icon-quaternary",
"aria-hidden": !0
})
@@ -21353,33 +21733,33 @@ function Gh({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, childr
}
//#endregion
//#region src/react/boardui/components/base/input/hint-text.tsx
-function Kh({ isInvalid: e = !1, className: t, ...n }) {
- return /* @__PURE__ */ (0, S.jsx)(mp, {
+function hg({ isInvalid: e = !1, className: t, ...n }) {
+ return /* @__PURE__ */ (0, S.jsx)(Tp, {
slot: e ? "errorMessage" : "description",
...n,
- className: of("pt-px text-caption-1-medium text-text-secondary", e && "text-text-error-primary", t)
+ className: gf("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 qh = (0, x.createContext)({});
-function Jh({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsx)(qh.Provider, {
+var gg = (0, x.createContext)({});
+function _g({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(gg.Provider, {
value: {
size: e,
fieldClassName: t,
inputClassName: n
},
- children: /* @__PURE__ */ (0, S.jsx)(Bh, {
+ children: /* @__PURE__ */ (0, S.jsx)(lg, {
...a,
"data-input-size": e,
- className: of("group flex h-max w-full flex-col items-start gap-1", r),
+ className: gf("group flex h-max w-full flex-col items-start gap-1", r),
children: i
})
});
}
-Jh.displayName = "TextField";
-var Yh = sf({
+_g.displayName = "TextField";
+var vg = _f({
field: [
"relative flex w-full items-center",
"rounded-2lg",
@@ -21408,44 +21788,44 @@ var Yh = sf({
].join(" "),
icon: "size-5 shrink-0"
});
-function Xh({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
- let l = (0, x.useContext)(qh), u = e ?? l.size ?? "medium", d = r != null;
- return /* @__PURE__ */ (0, S.jsx)(wp, {
+function yg({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {
+ let l = (0, x.useContext)(gg), u = e ?? l.size ?? "medium", d = r != null;
+ return /* @__PURE__ */ (0, S.jsx)(Fp, {
ref: s,
- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => of(Yh.field, d ? Yh.fieldWithAddonSize[u] : Yh.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),
+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => gf(vg.field, d ? vg.fieldWithAddonSize[u] : vg.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, S.jsxs)("div", {
- className: Yh.content,
+ className: vg.content,
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
- className: Yh.leftSection,
+ className: vg.leftSection,
children: [d ? r : t ? /* @__PURE__ */ (0, S.jsx)(t, {
- className: Yh.icon,
+ className: vg.icon,
"aria-hidden": !0
- }) : null, /* @__PURE__ */ (0, S.jsx)(Dp, {
+ }) : null, /* @__PURE__ */ (0, S.jsx)(Rp, {
ref: o,
...c,
- className: of(Yh.input, l.inputClassName, a)
+ className: gf(vg.input, l.inputClassName, a)
})]
}), n ? /* @__PURE__ */ (0, S.jsx)(n, {
- className: Yh.icon,
+ className: vg.icon,
"aria-hidden": !0
}) : null]
})
});
}
-Xh.displayName = "InputBase";
-function Zh({ 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, S.jsx)(Jh, {
+yg.displayName = "InputBase";
+function bg({ 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, S.jsx)(_g, {
...d,
className: u,
"aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),
children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
- e && /* @__PURE__ */ (0, S.jsx)(Gh, {
+ e && /* @__PURE__ */ (0, S.jsx)(mg, {
isRequired: u,
isInvalid: d,
tooltip: n,
children: e
}),
- /* @__PURE__ */ (0, S.jsx)(Xh, {
+ /* @__PURE__ */ (0, S.jsx)(yg, {
ref: c,
groupRef: l,
placeholder: r,
@@ -21454,17 +21834,17 @@ function Zh({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, tra
leadingAddon: o,
fieldClassName: s
}),
- t && /* @__PURE__ */ (0, S.jsx)(Kh, {
+ t && /* @__PURE__ */ (0, S.jsx)(hg, {
isInvalid: d,
children: t
})
] })
});
}
-Zh.displayName = "Input";
+bg.displayName = "Input";
//#endregion
//#region src/react/settings/use-action.ts
-function Qh(e = "") {
+function xg(e = "") {
let t = (0, x.useRef)(null), [n, r] = (0, x.useState)(""), [i, a] = (0, x.useState)(e);
(0, x.useEffect)(() => () => t.current?.abort(), []);
async function o(e, n, i, o) {
@@ -21476,7 +21856,7 @@ function Qh(e = "") {
s.signal.aborted || i(e);
} catch (e) {
if (s.signal.aborted) return;
- o ? o(e) : a(ff(e));
+ o ? o(e) : a(Sf(e));
} finally {
t.current === s && (t.current = null), s.signal.aborted || r("");
}
@@ -21488,7 +21868,7 @@ function Qh(e = "") {
setError: a
};
}
-function $h(e) {
+function Sg(e) {
return e ? {
"aria-busy": !0,
"aria-disabled": !0
@@ -21496,62 +21876,62 @@ function $h(e) {
}
//#endregion
//#region src/react/avatar-picker/avatar-picker.ts
-var eg = "/api/avatar-choices", tg = "/api/avatar-pick", ng = "/avatar-choice", rg = (e, t) => [
+var Cg = "/api/avatar-choices", wg = "/api/avatar-pick", Tg = "/avatar-choice", Eg = (e, t) => [
"avatar-choices",
e,
t
-], ig = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, ag = (e, t, n) => `${ng}${ig(e, t)}&ref=${encodeURIComponent(n)}`, og = (e, t, n) => Q(eg + ig(e, t), n);
-async function sg(e, t, n) {
+], Dg = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, Og = (e, t, n) => `${Tg}${Dg(e, t)}&ref=${encodeURIComponent(n)}`, kg = (e, t, n) => Cf(Cg + Dg(e, t), n);
+async function Ag(e, t, n) {
if (!("file" in n)) {
- await pf(tg, {
+ await wf(wg, {
kind: e,
id: t,
...n
});
return;
}
- let r = n.file, i = await fetch(`${tg}${ig(e, t)}&name=${encodeURIComponent(r.name)}`, {
+ let r = n.file, i = await fetch(`${wg}${Dg(e, t)}&name=${encodeURIComponent(r.name)}`, {
method: "POST",
credentials: "same-origin",
body: r
});
if (i.ok) return;
let a = await i.json().catch(() => null);
- throw new uf(a?.error || `请求失败(${i.status})`, i.status, a);
+ throw new bf(a?.error || `请求失败(${i.status})`, i.status, a);
}
-function cg(e, t) {
+function jg(e, t) {
if (!t) return "正在找可用的图…";
let n = t.matched_names.filter((t) => t !== e);
return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;
}
-var lg = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), ug = {
+var Mg = (e) => !!e && e.index_stale && !e.choices.some((e) => e.source === "gfriends"), Ng = {
gfriends: "图库",
history: "用过的"
-}, dg = (e) => `${ug[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "");
+}, Pg = (e) => `${Ng[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : "");
//#endregion
//#region src/react/avatar-picker/avatar-picker-page.tsx
-function fg({ kind: e, entityId: t, name: n, onPicked: r }) {
+function Fg({ kind: e, entityId: t, name: n, onPicked: r }) {
let [i, a] = (0, x.useState)(!1);
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)("span", {
className: "absolute right-1 bottom-1",
- children: /* @__PURE__ */ (0, S.jsx)(Wh, {
- icon: pu,
+ children: /* @__PURE__ */ (0, S.jsx)(pg, {
+ icon: bu,
size: "small",
"aria-haspopup": "dialog",
"aria-label": `更换${n}的头像`,
onClick: () => a(!0)
})
- }), /* @__PURE__ */ (0, S.jsx)(uh, {
+ }), /* @__PURE__ */ (0, S.jsx)(xh, {
isOpen: i,
onOpenChange: a,
isDismissable: !0,
className: "fixed inset-0 z-50 flex items-center justify-center bg-scrim p-4",
- children: /* @__PURE__ */ (0, S.jsx)(ch, {
+ children: /* @__PURE__ */ (0, S.jsx)(yh, {
className: "flex max-h-full w-full max-w-avatar-picker flex-col overflow-hidden rounded-2xl border border-separator-border bg-background-primary-default shadow-dropdown",
- children: /* @__PURE__ */ (0, S.jsx)(nh, {
+ children: /* @__PURE__ */ (0, S.jsx)(ph, {
"aria-label": "更换头像",
className: "flex min-h-0 flex-col outline-none",
- children: /* @__PURE__ */ (0, S.jsx)(pg, {
+ children: /* @__PURE__ */ (0, S.jsx)(Ig, {
kind: e,
entityId: t,
name: n,
@@ -21562,17 +21942,17 @@ function fg({ kind: e, entityId: t, name: n, onPicked: r }) {
})
})] });
}
-function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
- let a = (0, x.useRef)(null), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), u = rg(e, t), d = (0, x.useRef)(!1), f = ct({
+function Ig({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
+ let a = (0, x.useRef)(null), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), u = Eg(e, t), d = (0, x.useRef)(!1), f = ct({
queryKey: u,
- queryFn: ({ signal: n }) => og(e, t, n),
+ queryFn: ({ signal: n }) => kg(e, t, n),
retryOnMount: !0
});
(0, x.useEffect)(() => () => {
- d.current && yf.removeQueries({ queryKey: rg(e, t) });
+ d.current && Af.removeQueries({ queryKey: Eg(e, t) });
}, [e, t]);
let p = lt({
- mutationFn: (n) => sg(e, t, n),
+ mutationFn: (n) => Ag(e, t, n),
onSuccess: () => {
d.current = !0, i(), r();
}
@@ -21581,7 +21961,7 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
let t = e.currentTarget, n = t.files?.[0];
t.value = "", l(""), n && p.mutate({ file: n });
}
- let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? ff(p.error) : "") || (f.error ? ff(f.error) : "");
+ let h = f.data, g = h?.choices ?? [], _ = c || (p.error ? Sf(p.error) : "") || (f.error ? Sf(f.error) : "");
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex shrink-0 items-start gap-4 p-5",
@@ -21589,38 +21969,38 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl border border-separator-border bg-background-secondary-default text-foreground-icon-secondary",
- children: /* @__PURE__ */ (0, S.jsx)(Eu, { className: "size-6" })
+ children: /* @__PURE__ */ (0, S.jsx)(Fu, { className: "size-6" })
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 flex-1 flex-col gap-2",
children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center gap-2",
- children: [/* @__PURE__ */ (0, S.jsx)(fp, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Cp, {
slot: "title",
className: "text-title-3-semibold text-text-primary",
children: "更换头像"
- }), g.length ? /* @__PURE__ */ (0, S.jsxs)(lf, {
+ }), g.length ? /* @__PURE__ */ (0, S.jsxs)(yf, {
color: "soft",
children: [g.length, " 张可选"]
}) : null]
}),
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: cg(n, h)
+ children: jg(n, h)
}),
- lg(h) ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ Mg(h) ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "neutral",
children: "图库索引还没取过,只能从用过的图里选。"
}) : null,
- _ ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ _ ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
children: _
}) : null
]
}),
- /* @__PURE__ */ (0, S.jsx)(Wh, {
- icon: _u,
+ /* @__PURE__ */ (0, S.jsx)(pg, {
+ icon: wu,
size: "small",
"aria-label": "关闭",
onClick: i
@@ -21638,8 +22018,8 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
role: "option",
"data-avatar-choice": !0,
"aria-selected": n.current,
- title: dg(n),
- ...$h(p.isPending),
+ title: Pg(n),
+ ...Sg(p.isPending),
onClick: () => {
p.isPending || p.mutate({ ref: n.ref });
},
@@ -21648,7 +22028,7 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, S.jsx)("img", {
loading: "lazy",
alt: "",
- src: ag(e, t, n.ref),
+ src: Og(e, t, n.ref),
className: "block w-full aspect-avatar-choice object-cover"
}),
/* @__PURE__ */ (0, S.jsx)("span", {
@@ -21657,7 +22037,7 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}),
n.current ? /* @__PURE__ */ (0, S.jsx)("span", {
className: "absolute top-1 left-1",
- children: /* @__PURE__ */ (0, S.jsx)(lf, {
+ children: /* @__PURE__ */ (0, S.jsx)(yf, {
variant: "caption",
color: "blue",
children: "在用"
@@ -21670,10 +22050,10 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",
children: [
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
onClick: () => a.current?.click(),
- ...$h(p.isPending),
+ ...Sg(p.isPending),
children: "从本机选图片"
}),
/* @__PURE__ */ (0, S.jsx)("input", {
@@ -21689,16 +22069,16 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
className: "flex min-w-0 flex-1 items-center gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(Zh, {
+ children: /* @__PURE__ */ (0, S.jsx)(bg, {
type: "url",
"aria-label": "图片地址",
placeholder: "https://…",
value: o,
onChange: s
})
- }), /* @__PURE__ */ (0, S.jsx)(Hh, {
+ }), /* @__PURE__ */ (0, S.jsx)(dg, {
disabled: !o.trim(),
- ...$h(p.isPending),
+ ...Sg(p.isPending),
onClick: () => {
p.isPending || p.mutate({ url: o.trim() });
},
@@ -21711,35 +22091,35 @@ function pg({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {
}
//#endregion
//#region src/react/library-processing/library-processing.ts
-var mg = "/api/library-processing", hg = ["library-processing"], gg = (e) => Q(mg, e);
-async function _g(e) {
- await yf.fetchQuery({
- queryKey: hg,
- queryFn: () => gg(e)
+var Lg = "/api/library-processing", Rg = ["library-processing"], zg = (e) => Cf(Lg, e);
+async function Bg(e) {
+ await Af.fetchQuery({
+ queryKey: Rg,
+ queryFn: () => zg(e)
});
}
-var vg = 2e3, yg = 1e4, bg = "连接中断,正在重新读取处理进度";
-function xg(e, t) {
- return e?.status === "running" ? vg : t ? yg : !1;
+var Vg = 2e3, Hg = 1e4, Ug = "连接中断,正在重新读取处理进度";
+function Wg(e, t) {
+ return e?.status === "running" ? Vg : t ? Hg : !1;
}
-var Sg = {
+var Gg = {
reading_local: "读取本地资料",
querying_metadata: "查询外部资料",
fetching_cover: "采集缺失封面",
writing_candidates: "保存资料候选"
-}, Cg = {
+}, Kg = {
querying_metadata: "没有资料",
fetching_cover: "没有封面"
};
-function wg(e) {
- let t = Object.entries(e).filter(([e, t]) => Cg[e] && t > 0).map(([e, t]) => `${Cg[e]} ${t} 部`);
+function qg(e) {
+ let t = Object.entries(e).filter(([e, t]) => Kg[e] && t > 0).map(([e, t]) => `${Kg[e]} ${t} 部`);
return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";
}
-function Tg(e) {
- let t = Sg[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
+function Jg(e) {
+ let t = Gg[e.current_action || ""] || e.stage || "正在处理", n = e.waited_seconds ? ` · 已等待 ${e.waited_seconds} 秒` : "";
return e.current_asset_name ? `当前:${e.current_asset_name} · ${t}${n}` : t + n;
}
-function Eg(e) {
+function Yg(e) {
let t = e.issue_preview || [];
return t.length ? {
label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,
@@ -21753,21 +22133,21 @@ function Eg(e) {
footnote: e.issues_log ? `完整记录:${e.issues_log}` : ""
} : null;
}
-var Dg = "peach.library-processing.announced", Og = 120;
-function kg(e, t, n) {
+var Xg = "peach.library-processing.announced", Zg = 120;
+function Qg(e, t, n) {
if (e.status !== "complete") return;
- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Og;
+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Zg;
if (!(!n && !r)) {
try {
- if (e.job_id && localStorage.getItem(Dg) === e.job_id) return;
- e.job_id && localStorage.setItem(Dg, e.job_id);
+ if (e.job_id && localStorage.getItem(Xg) === e.job_id) return;
+ e.job_id && localStorage.setItem(Xg, e.job_id);
} catch {}
t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选`);
}
}
//#endregion
//#region src/react/boardui/components/base/buttons/link-button.tsx
-var Ag = sf({
+var $g = _f({
base: [
"inline-flex items-center justify-center gap-1 whitespace-nowrap",
"font-sans select-none cursor-pointer rounded-sm",
@@ -21791,15 +22171,15 @@ var Ag = sf({
secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")
}
});
-function jg({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
- let c = of(Ag.base, Ag.size[t], Ag.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
+function e_({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {
+ let c = gf($g.base, $g.size[t], $g.variant[e], a), l = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [
n ? /* @__PURE__ */ (0, S.jsx)(n, {
- className: Ag.icon[t],
+ className: $g.icon[t],
"aria-hidden": !0
}) : null,
i != null && /* @__PURE__ */ (0, S.jsx)("span", { children: i }),
r ? /* @__PURE__ */ (0, S.jsx)(r, {
- className: Ag.icon[t],
+ className: $g.icon[t],
"aria-hidden": !0
}) : null
] });
@@ -21826,7 +22206,7 @@ function jg({ variant: e = "primary", size: t = "medium", leadingIcon: n, traili
}
//#endregion
//#region src/react/boardui/components/base/dropdown/menu-styles.ts
-var Mg = [
+var t_ = [
"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",
@@ -21834,24 +22214,24 @@ var Mg = [
"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(" "), Ng = "w-[266px]", Pg = "flex w-full flex-col gap-1 outline-none", Fg = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Ig = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
+].join(" "), n_ = "w-[266px]", r_ = "flex w-full flex-col gap-1 outline-none", i_ = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), a_ = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";
//#endregion
//#region src/react/boardui/components/application/settings/settings-rows.tsx
-function Lg({ className: e, children: t }) {
+function o_({ className: e, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
- className: of("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
+ className: gf("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),
children: t
});
}
-function Rg({ className: e, children: t }) {
+function s_({ className: e, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
- className: of("w-full px-3 text-body-2-medium text-text-secondary", e),
+ className: gf("w-full px-3 text-body-2-medium text-text-secondary", e),
children: t
});
}
-function zg({ label: e, description: t, children: n }) {
+function c_({ label: e, description: t, children: n }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
- className: of("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),
+ className: gf("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, S.jsxs)("div", {
className: "flex min-w-0 flex-col",
children: [/* @__PURE__ */ (0, S.jsx)("p", {
@@ -21866,14 +22246,14 @@ function zg({ label: e, description: t, children: n }) {
}
//#endregion
//#region src/react/settings/section.tsx
-function Bg({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
+function l_({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
let a = /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [n ? /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex w-full flex-wrap items-center justify-between gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(Rg, { children: e })
+ children: /* @__PURE__ */ (0, S.jsx)(s_, { children: e })
}), n]
- }) : /* @__PURE__ */ (0, S.jsx)(Rg, { children: e }), /* @__PURE__ */ (0, S.jsx)(Lg, { children: i })] });
+ }) : /* @__PURE__ */ (0, S.jsx)(s_, { children: e }), /* @__PURE__ */ (0, S.jsx)(o_, { children: i })] });
return r ? /* @__PURE__ */ (0, S.jsx)("form", {
id: t,
"aria-label": e,
@@ -21888,13 +22268,13 @@ function Bg({ title: e, id: t, aside: n, onSubmit: r, children: i }) {
children: a
});
}
-function Vg({ children: e }) {
+function u_({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col",
children: e
});
}
-function Hg({ divided: e = !1, children: t }) {
+function d_({ divided: e = !1, children: t }) {
return e ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",
children: t
@@ -21903,7 +22283,7 @@ function Hg({ divided: e = !1, children: t }) {
children: t
});
}
-function Ug({ status: e, children: t }) {
+function f_({ status: e, children: t }) {
return /* @__PURE__ */ (0, S.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, S.jsx)("div", {
@@ -21912,43 +22292,43 @@ function Ug({ status: e, children: t }) {
}) : null, t]
});
}
-function Wg({ role: e, children: t }) {
+function p_({ role: e, children: t }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
role: e,
className: "text-body-2-regular text-text-secondary",
children: t
});
}
-function Gg({ children: e }) {
+function m_({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
role: "alert",
className: "text-body-2-regular text-text-error-primary",
children: e
});
}
-function Kg({ children: e }) {
+function h_({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e
});
}
-function qg({ href: e, children: t }) {
- return /* @__PURE__ */ (0, S.jsx)(jg, {
+function g_({ href: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsx)(e_, {
href: e,
target: "_blank",
rel: "noopener noreferrer",
size: "small",
- trailingIcon: bu,
+ trailingIcon: Du,
children: t
});
}
-function Jg({ children: e }) {
+function __({ children: e }) {
return /* @__PURE__ */ (0, S.jsx)("dl", {
className: "flex flex-col",
children: e
});
}
-function Yg({ term: e, children: t }) {
+function v_({ term: e, children: t }) {
return /* @__PURE__ */ (0, S.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, S.jsx)("dt", {
@@ -21960,7 +22340,7 @@ function Yg({ term: e, children: t }) {
})]
});
}
-function Xg({ summary: e, children: t }) {
+function y_({ summary: e, children: t }) {
let n = (0, x.useId)(), r = (0, x.useRef)(null), i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1);
return /* @__PURE__ */ (0, S.jsxs)("details", {
ref: r,
@@ -21971,7 +22351,7 @@ function Xg({ summary: e, children: t }) {
e.preventDefault(), !(!r.current || !i.current) && (s(r.current, i.current, !a), o(!a));
},
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, S.jsx)(gu, {
+ children: [/* @__PURE__ */ (0, S.jsx)(Cu, {
"aria-hidden": !0,
className: a ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"
}), e]
@@ -21986,7 +22366,7 @@ function Xg({ summary: e, children: t }) {
})]
});
}
-function Zg({ name: e }) {
+function b_({ name: e }) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -21995,29 +22375,29 @@ function Zg({ name: e }) {
children: /* @__PURE__ */ (0, S.jsx)("use", { href: `#i-${e}` })
});
}
-function Qg({ mark: e }) {
+function x_({ mark: e }) {
return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, S.jsx)("img", {
src: e,
alt: "",
width: 16,
height: 16,
className: "size-4 shrink-0"
- }) : /* @__PURE__ */ (0, S.jsx)(Zg, { name: e });
+ }) : /* @__PURE__ */ (0, S.jsx)(b_, { name: e });
}
//#endregion
//#region src/react/library-processing/use-library-processing.ts
-function $g({ toast: e, mode: t, monitor: n }) {
+function S_({ toast: e, mode: t, monitor: n }) {
let r = t === "notice" || !!n, i = ct({
- queryKey: hg,
- queryFn: ({ signal: e }) => gg(e),
- refetchInterval: (e) => xg(e.state.data, r)
+ queryKey: Rg,
+ queryFn: ({ signal: e }) => zg(e),
+ refetchInterval: (e) => Wg(e.state.data, r)
}), [a, o] = (0, x.useState)(null), s = (0, x.useRef)(void 0), c = i.data;
return (0, x.useEffect)(() => {
if (!c) return;
let n = s.current;
s.current = c.status;
let r = n === "running" && c.status !== "running";
- r && o(c), (r || t === "notice") && kg(c, e, r);
+ r && o(c), (r || t === "notice") && Qg(c, e, r);
}, [
c,
t,
@@ -22030,51 +22410,51 @@ function $g({ toast: e, mode: t, monitor: n }) {
}
//#endregion
//#region src/react/library-processing/library-processing-card.tsx
-var e_ = [{
+var C_ = [{
label: "只扫描",
- icon: Su,
+ icon: Au,
command: { stage: "scan" }
}, {
label: "只采集",
- icon: xu,
+ icon: ku,
command: { stage: "collect" }
-}], t_ = of(Fg, Ig, "text-body-2-medium"), n_ = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", r_ = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", i_ = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选。`;
-function a_({ busy: e, onRun: t }) {
+}], w_ = gf(i_, a_, "text-body-2-medium"), T_ = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", E_ = "这个项目处理时间较长,暂时没有新进展。可以继续等待,或在任务结束后重试未完成项。", D_ = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选。`;
+function O_({ busy: e, onRun: t }) {
let n = (0, x.useRef)(null), [r, i] = (0, x.useState)(!1), a = (n) => {
e || (i(!1), t(n));
};
return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)("span", {
className: "flex items-center gap-1",
- children: [/* @__PURE__ */ (0, S.jsx)(Hh, {
- leadingIcon: vu,
+ children: [/* @__PURE__ */ (0, S.jsx)(dg, {
+ leadingIcon: Tu,
onClick: () => a({}),
- ...$h(e),
+ ...Sg(e),
children: "扫描并补全资料"
- }), /* @__PURE__ */ (0, S.jsx)(Hh, {
+ }), /* @__PURE__ */ (0, S.jsx)(dg, {
ref: n,
iconOnly: !0,
- leadingIcon: mu,
+ leadingIcon: xu,
"aria-label": "更多扫描与采集方式",
"aria-haspopup": "dialog",
"aria-expanded": r,
- ...$h(e),
+ ...Sg(e),
onClick: () => {
e || i(!0);
}
})]
- }), /* @__PURE__ */ (0, S.jsx)(Qm, {
+ }), /* @__PURE__ */ (0, S.jsx)(lh, {
triggerRef: n,
isOpen: r,
onOpenChange: i,
placement: "bottom end",
offset: 4,
- className: Mg,
- children: /* @__PURE__ */ (0, S.jsx)(nh, {
+ className: t_,
+ children: /* @__PURE__ */ (0, S.jsx)(ph, {
"aria-label": "更多扫描与采集方式",
className: "flex w-52 flex-col gap-1 outline-none",
- children: e_.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, S.jsxs)("button", {
+ children: C_.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, S.jsxs)("button", {
type: "button",
- className: t_,
+ className: w_,
onClick: () => a(n),
children: [/* @__PURE__ */ (0, S.jsx)(t, {
"aria-hidden": !0,
@@ -22084,27 +22464,27 @@ function a_({ busy: e, onRun: t }) {
})
})] });
}
-function o_({ state: e, problem: t, settled: n, onRetry: r }) {
- let i = Eg(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = wg(e.notes || {});
+function k_({ state: e, problem: t, settled: n, onRetry: r }) {
+ let i = Yg(e), a = e.status === "failed" && !!e.retryable_asset_ids?.length, o = qg(e.notes || {});
return /* @__PURE__ */ (0, S.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-4 empty:hidden",
children: [
- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "warning",
title: "处理较慢",
- children: r_
+ children: E_
}) : null,
- t || e.status === "failed" ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ t || e.status === "failed" ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
extra: /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col items-start gap-3 pt-1",
- children: [a ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: [a ? /* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
size: "small",
onClick: r,
children: "重试未完成项"
- }) : null, i ? /* @__PURE__ */ (0, S.jsxs)(Xg, {
+ }) : null, i ? /* @__PURE__ */ (0, S.jsxs)(y_, {
summary: i.label,
children: [/* @__PURE__ */ (0, S.jsx)("ul", {
className: "flex max-h-96 flex-col gap-2 overflow-y-auto",
@@ -22137,41 +22517,41 @@ function o_({ state: e, problem: t, settled: n, onRetry: r }) {
}),
children: t || e.error || "处理未完成,请重试"
}) : null,
- n?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ n?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "success",
title: "处理完成",
- children: i_(n)
+ children: D_(n)
}) : null,
- e.status !== "running" && o ? /* @__PURE__ */ (0, S.jsxs)(gf, {
+ e.status !== "running" && o ? /* @__PURE__ */ (0, S.jsxs)(Df, {
tone: "neutral",
children: [o, e.issues_log ? ` 完整记录:${e.issues_log}` : ""]
}) : null
]
});
}
-function s_(e) {
- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = $g(e), o = lt({
- mutationFn: (e) => pf(mg, e),
+function A_(e) {
+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = S_(e), o = lt({
+ mutationFn: (e) => wf(Lg, e),
onSuccess: (e) => {
- a(), yf.setQueryData(hg, e), yf.invalidateQueries({ queryKey: hg });
+ a(), Af.setQueryData(Rg, e), Af.invalidateQueries({ queryKey: Rg });
}
});
(0, x.useEffect)(() => {
i && n?.();
}, [i, n]);
- let s = r.data ?? { status: "idle" }, c = o.error ? ff(o.error) : r.isError ? r.data ? bg : ff(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Tg(s), f = (e) => {
+ let s = r.data ?? { status: "idle" }, c = o.error ? Sf(o.error) : r.isError ? r.data ? Ug : Sf(r.error) : "", l = o.isPending || s.status === "running", u = s.status === "failed" && !!s.retryable_asset_ids?.length, d = Jg(s), f = (e) => {
l || (o.reset(), o.mutate(e));
};
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-4",
- children: [/* @__PURE__ */ (0, S.jsxs)(Bg, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(l_, {
title: "扫描与采集",
- children: [/* @__PURE__ */ (0, S.jsxs)(Hg, { children: [/* @__PURE__ */ (0, S.jsx)("p", {
+ children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
- children: n_
+ children: T_
}), s.status === "running" ? /* @__PURE__ */ (0, S.jsx)("div", {
className: "flex flex-col gap-1.5",
- children: s.total ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(vf, {
+ children: s.total ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(kf, {
label: d,
value: s.checked || 0,
max: s.total
@@ -22185,26 +22565,26 @@ function s_(e) {
s.total,
" 个视频"
]
- })] }) : /* @__PURE__ */ (0, S.jsx)(hf, { label: d })
- }) : null] }), /* @__PURE__ */ (0, S.jsxs)(Ug, { children: [
- /* @__PURE__ */ (0, S.jsx)(jg, {
+ })] }) : /* @__PURE__ */ (0, S.jsx)(Ef, { label: d })
+ }) : null] }), /* @__PURE__ */ (0, S.jsxs)(f_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(e_, {
href: "/scraping",
size: "small",
- trailingIcon: hu,
+ trailingIcon: Su,
children: "来源和凭证"
}),
- s.candidates ? /* @__PURE__ */ (0, S.jsx)(jg, {
+ s.candidates ? /* @__PURE__ */ (0, S.jsx)(e_, {
href: "/review",
size: "small",
- trailingIcon: hu,
+ trailingIcon: Su,
children: "复核资料"
}) : null,
- u ? null : /* @__PURE__ */ (0, S.jsx)(a_, {
+ u ? null : /* @__PURE__ */ (0, S.jsx)(O_, {
busy: l,
onRun: f
})
] })]
- }), /* @__PURE__ */ (0, S.jsx)(o_, {
+ }), /* @__PURE__ */ (0, S.jsx)(k_, {
state: s,
problem: c,
settled: i,
@@ -22219,12 +22599,12 @@ function s_(e) {
}
//#endregion
//#region src/react/library-processing/library-processing-notice.tsx
-var c_ = {
+var j_ = {
gray: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border px-4 py-3 text-text-secondary",
warning: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-status-yellow-background px-4 py-3 text-status-yellow-text",
error: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-separator-border bg-background-tertiary-error px-4 py-3 text-text-error-primary"
};
-function l_({ value: e, max: t }) {
+function M_({ value: e, max: t }) {
let n = Math.max(0, Math.min(100, e / t * 100));
return /* @__PURE__ */ (0, S.jsxs)("svg", {
role: "progressbar",
@@ -22252,16 +22632,16 @@ function l_({ value: e, max: t }) {
})]
});
}
-function u_(e) {
- let { job: t } = $g(e), n = t.data, r = t.isError ? n ? bg : ff(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
+function N_(e) {
+ let { job: t } = S_(e), n = t.data, r = t.isError ? n ? Ug : Sf(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";
if (!r && !o && !a) return null;
- let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Tg(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Tu : yu;
+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : Jg(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? Nu : Eu;
return /* @__PURE__ */ (0, S.jsxs)("aside", {
role: a ? "alert" : "status",
- className: c_[s],
+ className: j_[s],
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex min-w-0 items-center gap-3",
- children: [o && l ? /* @__PURE__ */ (0, S.jsx)(l_, {
+ children: [o && l ? /* @__PURE__ */ (0, S.jsx)(M_, {
value: c,
max: l
}) : /* @__PURE__ */ (0, S.jsx)(d, {
@@ -22271,27 +22651,27 @@ function u_(e) {
className: "min-w-0 text-body-2-regular",
children: u
})]
- }), /* @__PURE__ */ (0, S.jsx)(jg, {
+ }), /* @__PURE__ */ (0, S.jsx)(e_, {
href: "/data-cleanup#libraryProcessing",
size: "small",
- trailingIcon: hu,
+ trailingIcon: Su,
children: r || a ? "查看并处理" : "查看进度"
})]
});
}
//#endregion
//#region src/react/quality-goals/quality-goals.ts
-var d_ = "/api/quality-goals?limit=200", f_ = ["quality-goals"], p_ = (e) => Q(d_, e);
-async function m_(e) {
- await yf.fetchQuery({
- queryKey: f_,
- queryFn: () => p_(e)
+var P_ = "/api/quality-goals?limit=200", F_ = ["quality-goals"], I_ = (e) => Cf(P_, e);
+async function L_(e) {
+ await Af.fetchQuery({
+ queryKey: F_,
+ queryFn: () => I_(e)
});
}
-var h_ = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
+var R_ = (e) => e.has_cover ? `/cover?code=${encodeURIComponent(e.code ?? "")}` : `/poster?id=${e.id}&c=4`;
//#endregion
//#region src/react/quality-goals/quality-goals-page.tsx
-function g_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
+function z_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge: s }) {
let c = () => i(r.id);
return /* @__PURE__ */ (0, S.jsxs)("li", {
"data-goal-id": r.id,
@@ -22307,7 +22687,7 @@ function g_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
className: "text-caption-1-regular text-text-tertiary",
children: "暂无预览"
}), /* @__PURE__ */ (0, S.jsx)("img", {
- src: h_(r),
+ src: R_(r),
alt: "",
loading: "lazy",
onError: (e) => e.currentTarget.remove(),
@@ -22346,7 +22726,7 @@ function g_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
}), /* @__PURE__ */ (0, S.jsx)("footer", {
className: "flex justify-end",
- children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: /* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
size: "small",
onClick: c,
@@ -22355,18 +22735,18 @@ function g_({ item: r, openItem: i, javTitleHtml: a, javDisplayName: o, srcBadge
})]
});
}
-function __(e) {
+function B_(e) {
let t = ct({
- queryKey: f_,
- queryFn: ({ signal: e }) => p_(e)
+ queryKey: F_,
+ queryFn: ({ signal: e }) => I_(e)
}), n = t.data;
- if (!n) return /* @__PURE__ */ (0, S.jsx)(_f, { children: /* @__PURE__ */ (0, S.jsx)(gf, {
+ if (!n) return /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
title: "读取失败",
- children: t.error ? ff(t.error) : "读取高清版目标失败"
+ children: t.error ? Sf(t.error) : "读取高清版目标失败"
}) });
let r = n.items || [];
- return r.length ? /* @__PURE__ */ (0, S.jsxs)(_f, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
+ return r.length ? /* @__PURE__ */ (0, S.jsxs)(Of, { children: [/* @__PURE__ */ (0, S.jsxs)("p", {
className: "text-body-2-regular text-text-secondary",
children: [
/* @__PURE__ */ (0, S.jsx)("strong", {
@@ -22379,19 +22759,19 @@ function __(e) {
]
}), /* @__PURE__ */ (0, S.jsx)("ul", {
className: "card-grid gap-5",
- children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(g_, {
+ children: r.map((t) => /* @__PURE__ */ (0, S.jsx)(z_, {
item: t,
...e
}, t.id))
- })] }) : /* @__PURE__ */ (0, S.jsx)(_f, { children: /* @__PURE__ */ (0, S.jsx)(mf, {
- icon: Du,
+ })] }) : /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: Lu,
title: "没有标记中的高清版目标",
children: "现有版本都已满足条件,或还没有加入追踪。"
}) });
}
//#endregion
//#region src/react/boardui/components/foundations/icons/chevrons.tsx
-function v_(e) {
+function V_(e) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -22407,7 +22787,7 @@ function v_(e) {
}
//#endregion
//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts
-function y_(e, t, n) {
+function H_(e, t, n) {
(0, x.useEffect)(() => {
if (!e) return;
let r = (e) => {
@@ -22421,7 +22801,7 @@ function y_(e, t, n) {
n
]);
}
-function b_(e, t) {
+function U_(e, t) {
let n = (0, x.useRef)(!1);
return (0, x.useEffect)(() => {
if (!e) return;
@@ -22435,33 +22815,33 @@ function b_(e, t) {
}
//#endregion
//#region src/react/boardui/components/base/select/select.tsx
-var x_ = (0, x.createContext)("md");
-function S_({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
+var W_ = (0, x.createContext)("md");
+function G_({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {
let l = (0, x.useRef)(null), u = (0, x.useRef)(null), [d, f] = (0, x.useState)(!1);
- y_(d, () => f(!1), [l, u]);
- let p = b_(d, l);
- return /* @__PURE__ */ (0, S.jsx)(Oh, {
+ H_(d, () => f(!1), [l, u]);
+ let p = U_(d, l);
+ return /* @__PURE__ */ (0, S.jsx)(zh, {
ref: s,
...c,
isOpen: d,
onOpenChange: (e) => p(e) && f(e),
- className: of("group flex flex-col", e),
- children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(cp, {
+ className: gf("group flex flex-col", e),
+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsxs)(yp, {
ref: l,
- className: of("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, S.jsx)(Mh, {
- className: of("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
+ className: gf("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, S.jsx)(Uh, {
+ className: gf("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),
children: o
- }), /* @__PURE__ */ (0, S.jsx)(v_, { className: of("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
- }), /* @__PURE__ */ (0, S.jsx)(Qm, {
+ }), /* @__PURE__ */ (0, S.jsx)(V_, { className: gf("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]
+ }), /* @__PURE__ */ (0, S.jsx)(lh, {
ref: u,
isNonModal: !0,
offset: 4,
- className: of(Ng, Mg, "p-2", n),
- children: /* @__PURE__ */ (0, S.jsx)(Lm, {
+ className: gf(n_, t_, "p-2", n),
+ children: /* @__PURE__ */ (0, S.jsx)(Jm, {
items: a,
- className: of(Pg, "max-h-[240px] overflow-auto"),
- children: /* @__PURE__ */ (0, S.jsx)(x_.Provider, {
+ className: gf(r_, "max-h-[240px] overflow-auto"),
+ children: /* @__PURE__ */ (0, S.jsx)(W_.Provider, {
value: r,
children: i
})
@@ -22469,33 +22849,33 @@ function S_({ className: e, triggerClassName: t, popoverClassName: n, size: r =
})] })
});
}
-function C_({ className: e, children: t, ...n }) {
- let r = (0, x.useContext)(x_);
- return /* @__PURE__ */ (0, S.jsx)(Vm, {
+function K_({ className: e, children: t, ...n }) {
+ let r = (0, x.useContext)(W_);
+ return /* @__PURE__ */ (0, S.jsx)(Qm, {
...n,
- className: (t) => of(Fg, 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) => gf(i_, 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/scraping/scraping.ts
-var w_ = "/api/scraping", T_ = "/api/scraping/settings", E_ = "/api/scraping/check", D_ = "/api/scraping/cover", O_ = ["scraping"], k_ = ["scraping", "cover"], A_ = 2e3, j_ = (e) => Q(w_, e), M_ = (e) => Q(D_, e);
-async function N_(e) {
- await Promise.all([yf.fetchQuery({
- queryKey: O_,
- queryFn: () => j_(e)
- }), yf.fetchQuery({
- queryKey: k_,
- queryFn: () => M_(e)
+var q_ = "/api/scraping", J_ = "/api/scraping/settings", Y_ = "/api/scraping/check", X_ = "/api/scraping/cover", Z_ = ["scraping"], Q_ = ["scraping", "cover"], $_ = 2e3, ev = (e) => Cf(q_, e), tv = (e) => Cf(X_, e);
+async function nv(e) {
+ await Promise.all([Af.fetchQuery({
+ queryKey: Z_,
+ queryFn: () => ev(e)
+ }), Af.fetchQuery({
+ queryKey: Q_,
+ queryFn: () => tv(e)
})]);
}
-function P_(e, t) {
+function rv(e, t) {
return `${t}${e.label === "来源页面" ? "" : " 高清图片"}:${e.ok ? "可连接" : "不能连接"}` + (e.width ? ` · ${e.width} × ${e.height}` : "") + (e.message ? `。${e.message}` : "");
}
//#endregion
//#region src/react/scraping/scraping-page.tsx
-var F_ = [["peach", "Peach 代理"], ["direct", "直接连接"]], I_ = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
-function L_({ source: e }) {
+var iv = [["peach", "Peach 代理"], ["direct", "直接连接"]], av = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];
+function ov({ source: e }) {
return /* @__PURE__ */ (0, S.jsx)("img", {
src: i({ source: e }),
alt: "",
@@ -22506,13 +22886,13 @@ function L_({ source: e }) {
className: "size-4 shrink-0 rounded-sm object-contain"
});
}
-function R_({ source: e, toast: t }) {
- let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(I_[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
+function sv({ source: e, toast: t }) {
+ let [n, r] = (0, x.useState)(e.network), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(av[0][0]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), m = (0, x.useRef)(null);
function h() {
a(""), s(""), d(""), p(""), m.current && (m.current.value = "");
}
let g = lt({
- mutationFn: (t) => pf(T_, {
+ mutationFn: (t) => wf(J_, {
source: e.source,
network: n,
cookie: i,
@@ -22520,12 +22900,12 @@ function R_({ source: e, toast: t }) {
revoke: t
}),
onSuccess: (e, n) => {
- yf.setQueryData(O_, (t) => t && {
+ Af.setQueryData(Z_, (t) => t && {
...t,
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");
}
- }), _ = lt({ mutationFn: () => pf(E_, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
+ }), _ = lt({ mutationFn: () => wf(Y_, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {
e.preventDefault(), !v && (_.reset(), g.mutate(!1));
}, b = () => {
v || (_.reset(), g.mutate(!0));
@@ -22549,41 +22929,41 @@ function R_({ source: e, toast: t }) {
p("Cookie 文件未读取,请重新选择");
}
}
- let T = f || (g.error ? ff(g.error) : "") || (_.error ? ff(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ let T = f || (g.error ? Sf(g.error) : "") || (_.error ? Sf(_.error) : ""), E = _.data?.results ?? [], D = n === "peach" || e.accepts_cookie || !!T || E.length > 0;
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: e.label,
onSubmit: y,
aside: /* @__PURE__ */ (0, S.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
- children: [/* @__PURE__ */ (0, S.jsx)(L_, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(qg, {
+ children: [/* @__PURE__ */ (0, S.jsx)(ov, { source: e.source }), /* @__PURE__ */ (0, S.jsx)(g_, {
href: e.login,
children: e.login
})]
}),
children: [
- /* @__PURE__ */ (0, S.jsx)(Vg, { children: /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsx)(u_, { children: /* @__PURE__ */ (0, S.jsx)(c_, {
label: "连接方式",
- children: /* @__PURE__ */ (0, S.jsx)(S_, {
+ children: /* @__PURE__ */ (0, S.jsx)(G_, {
"aria-label": "连接方式",
selectedKey: n,
onSelectionChange: (e) => {
e !== null && r(String(e));
},
- children: F_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(C_, {
+ children: iv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(K_, {
id: e,
children: t
}, e))
})
}) }),
- D ? /* @__PURE__ */ (0, S.jsxs)(Hg, {
+ D ? /* @__PURE__ */ (0, S.jsxs)(d_, {
divided: !0,
children: [
n === "peach" ? /* @__PURE__ */ (0, S.jsx)("span", {
className: "self-start",
- children: /* @__PURE__ */ (0, S.jsx)(jg, {
+ children: /* @__PURE__ */ (0, S.jsx)(e_, {
href: "/configuration#peachProxy",
size: "small",
- trailingIcon: hu,
+ trailingIcon: Su,
children: "配置 Peach 代理"
})
}) : null,
@@ -22592,20 +22972,20 @@ function R_({ source: e, toast: t }) {
className: "text-body-2-regular text-text-secondary",
children: e.cookie_saved ? "Cookie 已保存,登录是否有效请在抓取时确认。" : "需要登录时,任选一种方式提供 Cookie。"
}),
- /* @__PURE__ */ (0, S.jsx)(yh, {
+ /* @__PURE__ */ (0, S.jsx)(Ah, {
"aria-label": "提供 Cookie 的方式(二选一)",
value: c,
onChange: (e) => {
l(e), h();
},
className: "flex flex-wrap gap-1",
- children: I_.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(bh, {
+ children: av.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(jh, {
value: e,
className: "flex h-8 cursor-pointer items-center rounded-lg px-3 text-body-2-medium text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:bg-background-tertiary-default data-selected:text-text-primary",
children: t
}, e))
}),
- c === "paste" ? /* @__PURE__ */ (0, S.jsx)(Zh, {
+ c === "paste" ? /* @__PURE__ */ (0, S.jsx)(bg, {
type: "password",
label: "Cookie",
autoComplete: "off",
@@ -22614,10 +22994,10 @@ function R_({ source: e, toast: t }) {
}) : /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(Kg, { children: "Netscape Cookie 文件(.txt)" }),
+ /* @__PURE__ */ (0, S.jsx)(h_, { children: "Netscape Cookie 文件(.txt)" }),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-center gap-3",
- children: [/* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: [/* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
onClick: () => m.current?.click(),
children: "选择文件"
@@ -22640,44 +23020,44 @@ function R_({ source: e, toast: t }) {
]
})
] }) : null,
- T ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: T }) : null,
- E.map((t) => /* @__PURE__ */ (0, S.jsx)(gf, {
+ T ? /* @__PURE__ */ (0, S.jsx)(m_, { children: T }) : null,
+ E.map((t) => /* @__PURE__ */ (0, S.jsx)(Df, {
tone: t.ok ? "success" : "error",
- children: P_(t, e.label)
+ children: rv(t, e.label)
}, t.label))
]
}) : null,
- /* @__PURE__ */ (0, S.jsxs)(Ug, { children: [
- e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsxs)(f_, { children: [
+ e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
onClick: b,
- ...$h(v),
+ ...Sg(v),
children: "撤销 Cookie"
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
onClick: C,
- ...$h(v),
+ ...Sg(v),
children: "检查连接"
}),
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
- ...$h(v),
+ ...Sg(v),
children: "保存"
})
] })
]
});
}
-function z_({ toast: e }) {
+function cv({ toast: e }) {
let [t, n] = (0, x.useState)(""), [r, i] = (0, x.useState)(!1), [a, o] = (0, x.useState)(null), s = ct({
- queryKey: k_,
- queryFn: ({ signal: e }) => M_(e),
- refetchInterval: (e) => e.state.data?.status === "running" && A_
+ queryKey: Q_,
+ queryFn: ({ signal: e }) => tv(e),
+ refetchInterval: (e) => e.state.data?.status === "running" && $_
}), c = lt({
- mutationFn: () => pf(D_, { code: t }),
+ mutationFn: () => wf(X_, { code: t }),
onSuccess: () => {
- i(!0), o(null), yf.invalidateQueries({ queryKey: k_ });
+ i(!0), o(null), Af.invalidateQueries({ queryKey: Q_ });
}
}), l = (s.data?.status ?? "idle") === "running";
(0, x.useEffect)(() => {
@@ -22696,16 +23076,16 @@ function z_({ toast: e }) {
]);
let u = (e) => {
e.preventDefault(), !(l || c.isPending || !t.trim()) && c.mutate();
- }, d = c.error ? ff(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
- return /* @__PURE__ */ (0, S.jsx)(Bg, {
+ }, d = c.error ? Sf(c.error) : a?.status === "failed" ? a.error || "采集未取得" : "";
+ return /* @__PURE__ */ (0, S.jsx)(l_, {
title: "高清封面",
onSubmit: u,
- children: /* @__PURE__ */ (0, S.jsxs)(Hg, { children: [
+ children: /* @__PURE__ */ (0, S.jsxs)(d_, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-wrap items-end gap-2",
children: [/* @__PURE__ */ (0, S.jsx)("div", {
className: "min-w-0 flex-1",
- children: /* @__PURE__ */ (0, S.jsx)(Zh, {
+ children: /* @__PURE__ */ (0, S.jsx)(bg, {
"aria-label": "馆藏番号",
isRequired: !0,
isDisabled: l,
@@ -22713,58 +23093,58 @@ function z_({ toast: e }) {
onChange: n,
placeholder: "输入馆藏番号,如 ABW-232"
})
- }), /* @__PURE__ */ (0, S.jsx)(Hh, {
+ }), /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
disabled: !t.trim(),
- ...$h(l || c.isPending),
+ ...Sg(l || c.isPending),
children: "抓取封面"
})]
}),
- l ? /* @__PURE__ */ (0, S.jsx)(hf, { label: "正在抓取封面" }) : null,
- d ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ l ? /* @__PURE__ */ (0, S.jsx)(Ef, { label: "正在抓取封面" }) : null,
+ d ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
children: d
}) : null,
- a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ a?.status === "complete" ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "success",
children: a.result || "封面采集完成"
}) : null
] })
});
}
-function B_({ toast: e }) {
+function lv({ toast: e }) {
let t = ct({
- queryKey: O_,
- queryFn: ({ signal: e }) => j_(e)
+ queryKey: Z_,
+ queryFn: ({ signal: e }) => ev(e)
}), n = t.data;
- return n ? /* @__PURE__ */ (0, S.jsxs)(_f, { children: [
+ return n ? /* @__PURE__ */ (0, S.jsxs)(Of, { children: [
/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular text-text-secondary",
children: "高清图片可能需要代理才能下载,请先检查连接。"
}),
- /* @__PURE__ */ (0, S.jsx)(z_, { toast: e }),
- (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(R_, {
+ /* @__PURE__ */ (0, S.jsx)(cv, { toast: e }),
+ (n.sources || []).map((t) => /* @__PURE__ */ (0, S.jsx)(sv, {
source: t,
toast: e
}, t.source))
- ] }) : /* @__PURE__ */ (0, S.jsx)(_f, { children: /* @__PURE__ */ (0, S.jsx)(gf, {
+ ] }) : /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
title: "读取失败",
- children: t.error ? ff(t.error) : "读取采集来源失败"
+ children: t.error ? Sf(t.error) : "读取采集来源失败"
}) });
}
//#endregion
//#region src/configuration-endpoints.ts
-var V_ = "/api/configuration", H_ = "/api/pick-folder", U_ = ["configuration"], W_ = (e) => Q(V_, e);
-async function G_(e) {
- await yf.fetchQuery({
- queryKey: U_,
- queryFn: () => W_(e)
+var uv = "/api/configuration", dv = "/api/pick-folder", fv = ["configuration"], pv = (e) => Cf(uv, e);
+async function mv(e) {
+ await Af.fetchQuery({
+ queryKey: fv,
+ queryFn: () => pv(e)
});
}
//#endregion
//#region src/react/boardui/components/base/switch/switch.tsx
-var K_ = sf({
+var hv = _f({
sm: {
track: "h-4 w-7",
trackRadius: {
@@ -22826,23 +23206,23 @@ var K_ = sf({
}
}
});
-function q_({ state: e, size: t = "md", shape: n = "pill" }) {
- let r = K_[t];
+function gv({ state: e, size: t = "md", shape: n = "pill" }) {
+ let r = hv[t];
return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: of("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? of("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: gf("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? gf("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, S.jsx)("span", {
- className: of("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, S.jsx)("span", { className: of("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: gf("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, S.jsx)("span", { className: gf("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 J_({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
- return /* @__PURE__ */ (0, S.jsx)(Fh, {
+function _v({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {
+ return /* @__PURE__ */ (0, S.jsx)(Kh, {
ref: i,
...a,
- className: (t) => of("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(q_, {
+ className: (t) => gf("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(gv, {
state: e,
size: n,
shape: r
@@ -22854,48 +23234,48 @@ function J_({ className: e, children: t, size: n = "md", shape: r = "pill", ref:
}
//#endregion
//#region src/react/settings/general-settings.tsx
-function Y_({ data: e, receipt: t }) {
- return e.startup ? /* @__PURE__ */ (0, S.jsx)(X_, {
+function vv({ data: e, receipt: t }) {
+ return e.startup ? /* @__PURE__ */ (0, S.jsx)(yv, {
startup: e.startup,
receipt: t
}) : null;
}
-function X_({ startup: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = Qh(), l = e.available && !e.desktop_message;
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+function yv({ startup: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.enabled), [i, a] = (0, x.useState)(e.silent), [o, s] = (0, x.useState)(e.desktop), c = xg(), l = e.available && !e.desktop_message;
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "开机自启",
onSubmit: (r) => {
- r.preventDefault(), e.available && c.run("save", (e) => pf("/api/configuration/startup", {
+ r.preventDefault(), e.available && c.run("save", (e) => wf("/api/configuration/startup", {
enabled: n,
silent: i,
desktop: o
}, "POST", e), () => t("已保存配置"));
},
children: [
- /* @__PURE__ */ (0, S.jsxs)(Vg, { children: [
- /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsxs)(u_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(c_, {
label: "开机后启动 Peach",
- children: /* @__PURE__ */ (0, S.jsx)(J_, {
+ children: /* @__PURE__ */ (0, S.jsx)(_v, {
"aria-label": "开机后启动 Peach",
isSelected: n,
isDisabled: !e.available,
onChange: r
})
}),
- /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsx)(c_, {
label: "静默启动",
description: "静默启动仅显示托盘,开机后启动 Peach 打开时生效。",
- children: /* @__PURE__ */ (0, S.jsx)(J_, {
+ children: /* @__PURE__ */ (0, S.jsx)(_v, {
"aria-label": "静默启动",
isSelected: i,
isDisabled: !e.available || !n,
onChange: a
})
}),
- /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsx)(c_, {
label: "在桌面创建快捷方式",
description: e.desktop_message || "双击图标打开 Peach 网页;卸载时一并移除。",
- children: /* @__PURE__ */ (0, S.jsx)(J_, {
+ children: /* @__PURE__ */ (0, S.jsx)(_v, {
"aria-label": "在桌面创建快捷方式",
isSelected: o,
isDisabled: !l,
@@ -22903,14 +23283,14 @@ function X_({ startup: e, receipt: t }) {
})
})
] }),
- e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(Hg, {
+ e.message || c.error ? /* @__PURE__ */ (0, S.jsxs)(d_, {
divided: !0,
- children: [e.message ? /* @__PURE__ */ (0, S.jsx)(Wg, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: c.error }) : null]
+ children: [e.message ? /* @__PURE__ */ (0, S.jsx)(p_, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: c.error }) : null]
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Ug, { children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
disabled: !e.available,
- ...$h(c.busy === "save"),
+ ...Sg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -22918,7 +23298,7 @@ function X_({ startup: e, receipt: t }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx
-var Z_ = {
+var bv = {
md: {
box: "size-4",
glyph: "size-4",
@@ -22932,11 +23312,11 @@ var Z_ = {
gap: "gap-1.5"
}
};
-function Q_({ state: e, size: t = "md" }) {
- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = Z_[t], c = n || r, l = o && !a;
+function xv({ state: e, size: t = "md" }) {
+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = bv[t], c = n || r, l = o && !a;
return /* @__PURE__ */ (0, S.jsx)("span", {
"aria-hidden": !0,
- className: of("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? of("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : of("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),
+ className: gf("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? gf("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : gf("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, S.jsx)("svg", {
viewBox: "0 0 16 16",
fill: "none",
@@ -22960,24 +23340,24 @@ function Q_({ state: e, size: t = "md" }) {
}
//#endregion
//#region src/react/boardui/components/base/checkbox/checkbox.tsx
-function $_({ className: e, children: t, size: n = "md", ref: r, ...i }) {
- let a = Z_[n];
- return /* @__PURE__ */ (0, S.jsx)(xp, {
+function Sv({ className: e, children: t, size: n = "md", ref: r, ...i }) {
+ let a = bv[n];
+ return /* @__PURE__ */ (0, S.jsx)(Mp, {
ref: r,
...i,
- className: (t) => of("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Q_, {
+ className: (t) => gf("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, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(xv, {
state: e,
size: n
}), t != null && /* @__PURE__ */ (0, S.jsx)("span", {
- className: of(a.label, "text-text-primary"),
+ className: gf(a.label, "text-text-primary"),
children: t
})] })
});
}
//#endregion
//#region src/react/settings/media-repair.tsx
-var ev = {
+var Cv = {
status: "idle",
stage: "",
checked: 0,
@@ -22987,20 +23367,20 @@ var ev = {
failed: 0,
skipped: 0,
message: ""
-}, tv = (e) => Number(e).toLocaleString();
-function nv(e) {
+}, wv = (e) => Number(e).toLocaleString();
+function Tv(e) {
if (e.status === "running") {
- let t = e.total ? `${tv(e.checked)} / ${tv(e.total)}` : "准备中";
+ let t = e.total ? `${wv(e.checked)} / ${wv(e.total)}` : "准备中";
return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;
}
- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${tv(e.repaired)} 部,${tv(e.failed)} 部修不了` : `修好 ${tv(e.repaired)} 部` : "";
+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${wv(e.repaired)} 部,${wv(e.failed)} 部修不了` : `修好 ${wv(e.repaired)} 部` : "";
}
-function rv({ initial: e }) {
- let [t, n] = (0, x.useState)(e || ev), [r, i] = (0, x.useState)(!1), a = Qh(), o = t.status === "running";
+function Ev({ initial: e }) {
+ let [t, n] = (0, x.useState)(e || Cv), [r, i] = (0, x.useState)(!1), a = xg(), o = t.status === "running";
(0, x.useEffect)(() => {
let e = new AbortController(), t, r = async () => {
try {
- let i = await Q("/api/media-repair", e.signal);
+ let i = await Cf("/api/media-repair", e.signal);
if (e.signal.aborted) return;
n(i), i.status === "running" && (t = setTimeout(r, 2e3));
} catch {}
@@ -23009,42 +23389,42 @@ function rv({ initial: e }) {
e.abort(), clearTimeout(t);
};
}, [o]);
- let s = () => void a.run("start", (e) => pf("/api/media-repair", {
+ let s = () => void a.run("start", (e) => wf("/api/media-repair", {
allow_metered: r,
restart: !0
- }, "POST", e), n), c = () => void a.run("stop", (e) => pf("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ }, "POST", e), n), c = () => void a.run("stop", (e) => wf("/api/media-repair", { stop: !0 }, "POST", e), n), l = t.total ? Math.round(t.checked / t.total * 100) : 0;
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "播放兼容修复",
- children: [/* @__PURE__ */ (0, S.jsxs)(Hg, { children: [
- /* @__PURE__ */ (0, S.jsx)(Wg, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
- /* @__PURE__ */ (0, S.jsx)($_, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(p_, { children: "有些 MP4 少了一张时间戳表,浏览器按容器给的时刻排帧,会把其中一部分丢掉,看着就是卡顿。 修好之后这类片子起播直接用原片,不再实时转码。原始文件不改动,修好的头另存在缓存里。" }),
+ /* @__PURE__ */ (0, S.jsx)(Sv, {
isSelected: r,
isDisabled: o,
onChange: i,
children: "连 PikPak 上的一起修(要把片子完整拉一遍,走流量)"
}),
- o ? /* @__PURE__ */ (0, S.jsx)(vf, {
+ o ? /* @__PURE__ */ (0, S.jsx)(kf, {
label: "修复进度",
value: l
}) : null,
- t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ t.status === "complete" && !t.repaired && !t.failed ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "info",
title: "没有要修的",
children: "库里的片子都能直接播,没找到缺时间戳表的。"
}) : null,
- a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: a.error || t.error }) : null
- ] }), /* @__PURE__ */ (0, S.jsx)(Ug, {
- status: nv(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
+ a.error || t.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: a.error || t.error }) : null
+ ] }), /* @__PURE__ */ (0, S.jsx)(f_, {
+ status: Tv(t) ? /* @__PURE__ */ (0, S.jsx)("p", {
role: "status",
- children: nv(t)
+ children: Tv(t)
}) : null,
- children: o ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: o ? /* @__PURE__ */ (0, S.jsx)(dg, {
onClick: c,
- ...$h(a.busy === "stop"),
+ ...Sg(a.busy === "stop"),
children: "停止"
- }) : /* @__PURE__ */ (0, S.jsx)(Hh, {
+ }) : /* @__PURE__ */ (0, S.jsx)(dg, {
onClick: s,
- ...$h(a.busy === "start"),
+ ...Sg(a.busy === "start"),
children: "开始修复"
})
})]
@@ -23052,28 +23432,28 @@ function rv({ initial: e }) {
}
//#endregion
//#region src/react/settings/release-updates.tsx
-var iv = /* @__PURE__ */ new Set([
+var Dv = /* @__PURE__ */ new Set([
"downloading",
"verifying",
"extracting",
"preparing",
"restarting",
"installing"
-]), av = [
+]), Ov = [
65,
67,
90
-], ov = 120;
-function sv({ initial: e, initialJob: t }) {
+], kv = 120;
+function Av({ initial: e, initialJob: t }) {
let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(t || {
state: "idle",
progress: 0
- }), [s, c] = (0, x.useState)(""), l = Qh(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = iv.has(i.state);
+ }), [s, c] = (0, x.useState)(""), l = xg(), u = (0, x.useRef)(!1), d = (0, x.useRef)(!0), f = Dv.has(i.state);
(0, x.useEffect)(() => (d.current = !0, () => {
d.current = !1;
}), []);
let p = async () => {
- let e = await pf("/api/configuration/update-restart", {});
+ let e = await wf("/api/configuration/update-restart", {});
d.current && a(e);
}, m = () => void o({
title: "更新已准备好",
@@ -23085,9 +23465,9 @@ function sv({ initial: e, initialJob: t }) {
(0, x.useEffect)(() => {
i.state !== "ready" || u.current || (u.current = !0, m());
}, [i.state]), (0, x.useEffect)(() => {
- let e = new AbortController(), t = iv.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
+ let e = new AbortController(), t = Dv.has(i.state) ? 1e3 : 3e4, n, o = 0, s = async () => {
try {
- let t = await Q("/api/configuration/update-status", e.signal);
+ let t = await Cf("/api/configuration/update-status", e.signal);
if (e.signal.aborted) return;
a(t), o = 0, t.state === "complete" && r((e) => ({
...e,
@@ -23095,93 +23475,93 @@ function sv({ initial: e, initialJob: t }) {
state: "current",
message: "已是最新测试版。"
}));
- let n = await Q("/api/configuration/automatic-updates", e.signal);
+ let n = await Cf("/api/configuration/automatic-updates", e.signal);
!e.signal.aborted && n.result && r(n.result);
} catch {
- o += 1, o >= ov && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
+ o += 1, o >= kv && !e.signal.aborted && c("尚未连接到 Peach,请检查托盘后刷新页面。");
}
- !e.signal.aborted && o < ov && (n = setTimeout(s, t));
+ !e.signal.aborted && o < kv && (n = setTimeout(s, t));
};
return n = setTimeout(s, t), () => {
e.abort(), clearTimeout(n);
};
}, [i.state]);
let h = () => {
- f || (u.current = !1, c(""), l.run("download", (e) => pf("/api/configuration/update", {}, "POST", e), a));
- }, g = () => void l.run("check", (e) => Q("/api/configuration/updates", e), r, (t) => {
+ f || (u.current = !1, c(""), l.run("download", (e) => wf("/api/configuration/update", {}, "POST", e), a));
+ }, g = () => void l.run("check", (e) => Cf("/api/configuration/updates", e), r, (t) => {
r({
...e,
state: "error"
- }), l.setError(ff(t));
+ }), l.setError(Sf(t));
}), _ = l.error || s, v = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "检查更新",
children: [
- /* @__PURE__ */ (0, S.jsxs)(Jg, { children: [
- /* @__PURE__ */ (0, S.jsx)(Yg, {
+ /* @__PURE__ */ (0, S.jsxs)(__, { children: [
+ /* @__PURE__ */ (0, S.jsx)(v_, {
term: "当前版本",
children: n.current_version
}),
- /* @__PURE__ */ (0, S.jsx)(Yg, {
+ /* @__PURE__ */ (0, S.jsx)(v_, {
term: "安装方式",
children: n.installation
}),
- /* @__PURE__ */ (0, S.jsx)(Yg, {
+ /* @__PURE__ */ (0, S.jsx)(v_, {
term: "更新通道",
children: n.channel
}),
- /* @__PURE__ */ (0, S.jsx)(Yg, {
+ /* @__PURE__ */ (0, S.jsx)(v_, {
term: "最新版本",
children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")
})
] }),
- /* @__PURE__ */ (0, S.jsxs)(Hg, {
+ /* @__PURE__ */ (0, S.jsxs)(d_, {
divided: !0,
children: [
- n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(Wg, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
- n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ n.checked_at ? /* @__PURE__ */ (0, S.jsxs)(p_, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,
+ n.state === "available" && !_ ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "info",
title: "有可用更新",
children: n.message
- }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(Wg, {
+ }) : _ || n.state === "error" ? /* @__PURE__ */ (0, S.jsx)(m_, { children: _ || n.message }) : /* @__PURE__ */ (0, S.jsx)(p_, {
role: "status",
children: n.message
}),
- i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: i.message }) : null,
+ i.state === "error" ? /* @__PURE__ */ (0, S.jsx)(m_, { children: i.message }) : null,
i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, S.jsxs)("div", {
"aria-live": "polite",
className: "flex flex-col gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(vf, {
+ /* @__PURE__ */ (0, S.jsx)(kf, {
label: "更新准备进度:下载、校验、解压、准备安装",
value: i.progress,
- stops: av
+ stops: Ov
}),
- /* @__PURE__ */ (0, S.jsxs)(Wg, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
- /* @__PURE__ */ (0, S.jsx)(Wg, { children: v })
+ /* @__PURE__ */ (0, S.jsxs)(p_, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),
+ /* @__PURE__ */ (0, S.jsx)(p_, { children: v })
]
}) : null
]
}),
- /* @__PURE__ */ (0, S.jsxs)(Ug, {
- status: /* @__PURE__ */ (0, S.jsx)(qg, {
+ /* @__PURE__ */ (0, S.jsxs)(f_, {
+ status: /* @__PURE__ */ (0, S.jsx)(g_, {
href: n.release_url,
children: "查看发布页"
}),
children: [
- i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ i.state === "ready" ? /* @__PURE__ */ (0, S.jsx)(dg, {
onClick: m,
children: "重启安装"
}) : null,
- n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)(Hh, {
+ n.state === "available" && n.installation === "独立测试包" && i.state !== "ready" ? /* @__PURE__ */ (0, S.jsx)(dg, {
onClick: h,
- ...$h(f || l.busy === "download"),
+ ...Sg(f || l.busy === "download"),
children: "下载并安装"
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
disabled: f,
onClick: g,
- ...$h(l.busy === "check"),
+ ...Sg(l.busy === "check"),
children: "检查更新"
})
]
@@ -23191,139 +23571,139 @@ function sv({ initial: e, initialJob: t }) {
}
//#endregion
//#region src/react/settings/maintenance-settings.tsx
-var cv = [
+var jv = [
["6", "每 6 小时"],
["24", "每天"],
["168", "每周"]
];
-function lv({ data: e, receipt: t }) {
+function Mv({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
children: [
- e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(uv, {
+ e.automatic_updates ? /* @__PURE__ */ (0, S.jsx)(Nv, {
initial: e.automatic_updates,
receipt: t
}) : null,
- e.updates ? /* @__PURE__ */ (0, S.jsx)(sv, {
+ e.updates ? /* @__PURE__ */ (0, S.jsx)(Av, {
initial: e.updates,
initialJob: e.update_job
}) : null,
- /* @__PURE__ */ (0, S.jsx)(rv, {}),
- /* @__PURE__ */ (0, S.jsx)(dv, { facts: e.facts }),
- e.uninstall ? /* @__PURE__ */ (0, S.jsx)(fv, { uninstall: e.uninstall }) : null
+ /* @__PURE__ */ (0, S.jsx)(Ev, {}),
+ /* @__PURE__ */ (0, S.jsx)(Pv, { facts: e.facts }),
+ e.uninstall ? /* @__PURE__ */ (0, S.jsx)(Fv, { uninstall: e.uninstall }) : null
]
});
}
-function uv({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = Qh(e.error), s = (r) => {
- r.preventDefault(), e.available && o.run("save", (e) => pf("/api/configuration/automatic-updates", {
+function Nv({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e.mode), [i, a] = (0, x.useState)(e.interval_hours), o = xg(e.error), s = (r) => {
+ r.preventDefault(), e.available && o.run("save", (e) => wf("/api/configuration/automatic-updates", {
mode: n,
interval_hours: i
}, "POST", e), () => t("已保存配置"));
}, c = e.available ? e.download_available ? "开启后一分钟内开始检查。下载完成后,在此确认重启安装。" : "开启后一分钟内开始检查。源码运行请前往发布页获取新版本。" : "自动更新需要由托盘管理的服务。";
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "自动更新",
onSubmit: s,
children: [
- /* @__PURE__ */ (0, S.jsxs)(Vg, { children: [
- /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsxs)(u_, { children: [
+ /* @__PURE__ */ (0, S.jsx)(c_, {
label: "自动检查新版本",
- children: /* @__PURE__ */ (0, S.jsx)(J_, {
+ children: /* @__PURE__ */ (0, S.jsx)(_v, {
"aria-label": "自动检查新版本",
isSelected: n !== "off",
isDisabled: !e.available,
onChange: (e) => r(e ? "check" : "off")
})
}),
- /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsx)(c_, {
label: "自动下载更新",
- children: /* @__PURE__ */ (0, S.jsx)(J_, {
+ children: /* @__PURE__ */ (0, S.jsx)(_v, {
"aria-label": "自动下载更新",
isSelected: n === "download",
isDisabled: !e.available || !e.download_available || n === "off",
onChange: (e) => r(e ? "download" : "check")
})
}),
- /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsx)(c_, {
label: "检查频率",
description: c,
- children: /* @__PURE__ */ (0, S.jsx)(S_, {
+ children: /* @__PURE__ */ (0, S.jsx)(G_, {
"aria-label": "检查频率",
selectedKey: String(i),
isDisabled: !e.available,
onSelectionChange: (e) => {
e !== null && a(Number(e));
},
- children: cv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(C_, {
+ children: jv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(K_, {
id: e,
children: t
}, e))
})
})
] }),
- o.error ? /* @__PURE__ */ (0, S.jsx)(Hg, {
+ o.error ? /* @__PURE__ */ (0, S.jsx)(d_, {
divided: !0,
- children: /* @__PURE__ */ (0, S.jsx)(Gg, { children: o.error })
+ children: /* @__PURE__ */ (0, S.jsx)(m_, { children: o.error })
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Ug, { children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
disabled: !e.available,
- ...$h(o.busy === "save"),
+ ...Sg(o.busy === "save"),
children: "保存配置"
}) })
]
});
}
-function dv({ facts: e }) {
- return /* @__PURE__ */ (0, S.jsx)(Bg, {
+function Pv({ facts: e }) {
+ return /* @__PURE__ */ (0, S.jsx)(l_, {
title: "运行信息",
- children: /* @__PURE__ */ (0, S.jsx)(Jg, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(Yg, {
+ children: /* @__PURE__ */ (0, S.jsx)(__, { children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)(v_, {
term: e.term,
- children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(qg, {
+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, S.jsx)(g_, {
href: e.download_url,
children: e.download_label
}) : null]
}, e.term)) })
});
}
-function fv({ uninstall: e }) {
+function Fv({ uninstall: e }) {
let [t, n] = (0, x.useState)(!1), [r, i] = (0, x.useState)(""), a = () => void o({
title: "卸载 Peach",
danger: !0,
body: t ? "将退出 Peach,移除程序、开机自启、桌面图标、设置、本地数据库、观看记录、凭据和缓存。原始媒体文件保留。" : "将退出 Peach 并移除程序、开机自启和桌面图标。设置、本地数据库、观看记录与缓存保留。",
confirmLabel: "卸载 Peach",
onConfirm: async () => {
- let e = await pf("/api/configuration/uninstall", {
+ let e = await wf("/api/configuration/uninstall", {
delete_data: t,
confirmation: "卸载 Peach"
});
i(e.message);
}
}), s = r || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
id: "uninstallPeach",
title: "卸载 Peach",
- children: [/* @__PURE__ */ (0, S.jsxs)(Hg, { children: [
- e.available ? /* @__PURE__ */ (0, S.jsx)(Wg, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
- /* @__PURE__ */ (0, S.jsx)($_, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [
+ e.available ? /* @__PURE__ */ (0, S.jsx)(p_, { children: "卸载会退出 Peach、移除程序、开机自启和桌面图标。原始媒体文件保留。" }) : null,
+ /* @__PURE__ */ (0, S.jsx)(Sv, {
isSelected: t,
isDisabled: !e.full_available || !!r,
onChange: n,
children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"
}),
- /* @__PURE__ */ (0, S.jsx)(Xg, {
+ /* @__PURE__ */ (0, S.jsx)(y_, {
summary: "数据目录",
children: c.map((e) => /* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-2-regular break-all text-text-secondary",
children: e
}, e))
})
- ] }), /* @__PURE__ */ (0, S.jsx)(Ug, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(f_, {
status: s ? /* @__PURE__ */ (0, S.jsx)("p", {
role: r ? "status" : void 0,
children: s
}) : null,
- children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: /* @__PURE__ */ (0, S.jsx)(dg, {
variant: "danger",
disabled: !e.available || !!r,
onClick: a,
@@ -23334,7 +23714,7 @@ function fv({ uninstall: e }) {
}
//#endregion
//#region src/react/settings/clouddrive-guide.tsx
-var pv = [
+var Iv = [
{
name: "机械硬盘,或内存 8 GB 以内",
cache: "10–20 GiB",
@@ -23353,32 +23733,32 @@ var pv = [
read: "256 / 128 KB",
task: "2 个起步"
}
-], mv = [
+], Lv = [
["cache", "缓存上限"],
["read", "读取长度(默认 / 最小)"],
["task", "同时处理视频"]
];
-function hv() {
+function Rv() {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "@container flex flex-col gap-3",
- children: [/* @__PURE__ */ (0, S.jsxs)(Wg, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(qg, {
+ children: [/* @__PURE__ */ (0, S.jsxs)(p_, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, S.jsx)(g_, {
href: "https://www.clouddrive2.com/help.html",
children: "挂载帮助"
- })] }), /* @__PURE__ */ (0, S.jsxs)(Xg, {
+ })] }), /* @__PURE__ */ (0, S.jsxs)(y_, {
summary: "CloudDrive 缓存建议",
children: [
- /* @__PURE__ */ (0, S.jsx)(Wg, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
+ /* @__PURE__ */ (0, S.jsx)(p_, { children: "看缓存放在哪块硬盘上,照那一档填。这是起步值,填得越大不一定越快。" }),
/* @__PURE__ */ (0, S.jsx)("ul", {
"aria-label": "按缓存所在硬盘分档",
className: "flex flex-col gap-2",
- children: pv.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
+ children: Iv.map((e) => /* @__PURE__ */ (0, S.jsxs)("li", {
className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",
children: [/* @__PURE__ */ (0, S.jsx)("p", {
className: "text-body-medium text-text-primary",
children: e.name
}), /* @__PURE__ */ (0, S.jsx)("dl", {
className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",
- children: mv.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
+ children: Lv.map(([t, n]) => /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col",
children: [/* @__PURE__ */ (0, S.jsx)("dt", {
className: "text-caption-1-regular text-text-secondary",
@@ -23399,9 +23779,9 @@ function hv() {
/* @__PURE__ */ (0, S.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })
]
}),
- /* @__PURE__ */ (0, S.jsxs)(Wg, { children: [
+ /* @__PURE__ */ (0, S.jsxs)(p_, { children: [
"三处缓存分别管什么、这几个值怎么往上调、码率和速度怎么换算、线程上限与直链代理怎么取舍,以及这些起步值的来源,都在",
- /* @__PURE__ */ (0, S.jsx)(qg, {
+ /* @__PURE__ */ (0, S.jsx)(g_, {
href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",
children: "CloudDrive 配置与调优"
}),
@@ -23413,7 +23793,7 @@ function hv() {
}
//#endregion
//#region src/react/settings/library-icon-picker.tsx
-var gv = [
+var zv = [
["", "自动识别"],
["hard-drive", "磁盘"],
["database", "资料库"],
@@ -23457,14 +23837,14 @@ var gv = [
["star", "收藏"],
["tags", "主题"]
];
-function _v(e) {
+function Bv(e) {
let t = e === "local" ? "" : a[e];
return t ? [t, "自动识别"] : ["hard-drive", "默认"];
}
-var vv = "auto";
-function yv({ value: e, label: t, kind: n = "local", onChange: r }) {
- let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = _v(n);
- return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Hh, {
+var Vv = "auto";
+function Hv({ value: e, label: t, kind: n = "local", onChange: r }) {
+ let i = (0, x.useRef)(null), [a, o] = (0, x.useState)(!1), [s, c] = (0, x.useState)(e), [l, u] = Bv(n);
+ return /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(dg, {
ref: i,
variant: "secondary",
className: "self-start",
@@ -23477,43 +23857,43 @@ function yv({ value: e, label: t, kind: n = "local", onChange: r }) {
children: /* @__PURE__ */ (0, S.jsxs)("span", {
"data-icon-choice": !0,
className: "flex items-center gap-2",
- children: [/* @__PURE__ */ (0, S.jsx)(Qg, { mark: e || l }), ((e) => e && gv.find(([t]) => t === e)?.[1] || u)(e)]
+ children: [/* @__PURE__ */ (0, S.jsx)(x_, { mark: e || l }), ((e) => e && zv.find(([t]) => t === e)?.[1] || u)(e)]
})
- }), /* @__PURE__ */ (0, S.jsx)(Qm, {
+ }), /* @__PURE__ */ (0, S.jsx)(lh, {
triggerRef: i,
isOpen: a,
onOpenChange: o,
placement: "bottom start",
offset: 4,
- className: Mg,
- children: /* @__PURE__ */ (0, S.jsxs)(nh, {
+ className: t_,
+ children: /* @__PURE__ */ (0, S.jsxs)(ph, {
"aria-label": `${t}候选`,
className: "flex w-72 flex-col gap-3 outline-none",
children: [
- /* @__PURE__ */ (0, S.jsx)(fp, {
+ /* @__PURE__ */ (0, S.jsx)(Cp, {
slot: "title",
className: "px-1 text-body-medium text-text-primary",
children: "选择媒体库图标"
}),
- /* @__PURE__ */ (0, S.jsx)(yh, {
+ /* @__PURE__ */ (0, S.jsx)(Ah, {
"aria-label": "候选图标",
- value: s || vv,
- onChange: (e) => c(e === vv ? "" : e),
+ value: s || Vv,
+ onChange: (e) => c(e === Vv ? "" : e),
className: "inline-grid grid-cols-7 gap-1",
- children: gv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(bh, {
- value: e || vv,
+ children: zv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(jh, {
+ value: e || Vv,
"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, S.jsx)(Qg, { mark: e || l })
- }, e || vv))
+ children: /* @__PURE__ */ (0, S.jsx)(x_, { mark: e || l })
+ }, e || Vv))
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",
- children: [/* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: [/* @__PURE__ */ (0, S.jsx)(dg, {
variant: "secondary",
onClick: () => o(!1),
children: "取消"
- }), /* @__PURE__ */ (0, S.jsx)(Hh, {
+ }), /* @__PURE__ */ (0, S.jsx)(dg, {
disabled: s === e,
onClick: () => {
r(s), o(!1);
@@ -23527,8 +23907,8 @@ function yv({ value: e, label: t, kind: n = "local", onChange: r }) {
}
//#endregion
//#region src/react/settings/media-settings.tsx
-var bv = 8e3;
-function xv({ className: e }) {
+var Uv = 8e3;
+function Wv({ className: e }) {
return /* @__PURE__ */ (0, S.jsx)("svg", {
"aria-hidden": !0,
viewBox: "0 0 24 24",
@@ -23541,48 +23921,48 @@ function xv({ className: e }) {
children: /* @__PURE__ */ (0, S.jsx)("use", { href: "#i-folder-search" })
});
}
-var Sv = [
+var Gv = [
["local", "本地磁盘"],
["115", "CloudDrive · 115"],
["pikpak", "CloudDrive · PikPak"]
-], Cv = (e) => Sv.find(([t]) => t === e)?.[1] ?? e, wv = (e) => a[e] || "database", Tv = (e = "") => ({
+], Kv = (e) => Gv.find(([t]) => t === e)?.[1] ?? e, qv = (e) => a[e] || "database", Jv = (e = "") => ({
path: e,
location: "local",
root: "",
library: "",
library_icon: ""
});
-function Ev(e) {
- let t = e.media_sources?.filter((e) => Sv.some(([t]) => t === e.location));
+function Yv(e) {
+ let t = e.media_sources?.filter((e) => Gv.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) => Tv(e));
+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => Jv(e));
}
-var Dv = (e) => !(e instanceof uf) || e.status !== 400 ? null : e.body?.errors ?? null;
-function Ov({ data: e, receipt: t }) {
+var Xv = (e) => !(e instanceof bf) || e.status !== 400 ? null : e.body?.errors ?? null;
+function Zv({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.editable ? /* @__PURE__ */ (0, S.jsx)(kv, {
+ children: [e.editable ? /* @__PURE__ */ (0, S.jsx)(Qv, {
data: e,
receipt: t
- }) : /* @__PURE__ */ (0, S.jsx)(gf, {
+ }) : /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "neutral",
title: "只读",
children: e.notice
- }), /* @__PURE__ */ (0, S.jsx)(jv, { data: e })]
+ }), /* @__PURE__ */ (0, S.jsx)(ey, { data: e })]
});
}
-function kv({ data: e, receipt: t }) {
- let [n, r] = (0, x.useState)(() => Ev(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = Qh();
+function Qv({ data: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(() => Yv(e)), [i, a] = (0, x.useState)(String(e.port)), [o, s] = (0, x.useState)(!1), [c, l] = (0, x.useState)([]), [u, d] = (0, x.useState)(""), [f, p] = (0, x.useState)(""), [m, h] = (0, x.useState)(null), [g, _] = (0, x.useState)(null), [v, y] = (0, x.useState)(null), b = (0, x.useRef)(!1), C = (0, x.useRef)(e.revision), w = (0, x.useRef)([]), T = xg();
(0, x.useLayoutEffect)(() => {
g !== null && (w.current[g]?.focus(), _(null));
}, [g]), (0, x.useEffect)(() => {
if (!m) return;
- let e = setTimeout(() => location.assign(m.url), bv);
+ let e = setTimeout(() => location.assign(m.url), Uv);
return () => clearTimeout(e);
}, [m]);
let E = (e, t) => r((n) => n.map((n, r) => r === e ? {
@@ -23593,23 +23973,23 @@ function kv({ data: e, receipt: t }) {
for (; r.length <= e;) r.push("");
return r[e] = t, r;
}), O = () => {
- _(n.length), r((e) => [...e, Tv()]);
+ _(n.length), r((e) => [...e, Jv()]);
}, k = (e) => {
r((t) => t.filter((t, n) => n !== e)), l((t) => t.filter((t, n) => n !== e));
}, A = async (e) => {
if (!b.current) {
b.current = !0, y(e);
try {
- let { path: t } = await pf(H_, { initial: n[e]?.path ?? "" });
+ let { path: t } = await wf(dv, { initial: n[e]?.path ?? "" });
t && (E(e, { path: t }), D(e, ""));
} catch (t) {
- D(e, ff(t));
+ D(e, Sf(t));
} finally {
b.current = !1, y(null);
}
}
}, ee = (r) => {
- r.preventDefault(), p(""), T.run("save", (t) => pf(V_, {
+ r.preventDefault(), p(""), T.run("save", (t) => wf(uv, {
revision: C.current,
media_dirs: n.map((e) => e.path),
...e.media_sources ? { media_sources: n } : {},
@@ -23618,18 +23998,18 @@ function kv({ data: e, receipt: t }) {
}, "POST", t), (e) => {
C.current = e.revision, l([]), d(""), t("已保存配置"), h(e);
}, (e) => {
- let t = Dv(e);
- l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(ff(e));
+ let t = Xv(e);
+ l(t?.media_dirs ?? []), d(t?.port ?? ""), t || p(Sf(e));
});
};
- if (m) return /* @__PURE__ */ (0, S.jsx)(Bg, {
+ if (m) return /* @__PURE__ */ (0, S.jsx)(l_, {
title: "这台电脑",
- children: /* @__PURE__ */ (0, S.jsx)(Hg, { children: /* @__PURE__ */ (0, S.jsxs)(gf, {
+ children: /* @__PURE__ */ (0, S.jsx)(d_, { children: /* @__PURE__ */ (0, S.jsxs)(Df, {
tone: "success",
title: "配置已保存",
children: [
"Peach 正在重新启动。稍后自动跳转,或点击",
- /* @__PURE__ */ (0, S.jsx)(jg, {
+ /* @__PURE__ */ (0, S.jsx)(e_, {
href: m.url,
size: "small",
children: "进入馆藏"
@@ -23639,14 +24019,14 @@ function kv({ data: e, receipt: t }) {
}) })
});
let j = n.some((e) => e.location === "115" || e.location === "pikpak"), te = j ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "这台电脑",
onSubmit: ee,
- children: [/* @__PURE__ */ (0, S.jsxs)(Hg, { children: [
+ children: [/* @__PURE__ */ (0, S.jsxs)(d_, { children: [
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-3",
children: [
- /* @__PURE__ */ (0, S.jsx)(Kg, { children: "媒体文件夹" }),
+ /* @__PURE__ */ (0, S.jsx)(h_, { children: "媒体文件夹" }),
/* @__PURE__ */ (0, S.jsx)("div", {
role: "group",
"aria-label": "媒体文件夹",
@@ -23657,7 +24037,7 @@ function kv({ data: e, receipt: t }) {
children: [/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex items-start gap-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(Zh, {
+ /* @__PURE__ */ (0, S.jsx)(bg, {
className: "min-w-0 flex-1",
"aria-label": `媒体文件夹 ${r + 1}`,
placeholder: "本机文件夹路径",
@@ -23670,14 +24050,14 @@ function kv({ data: e, receipt: t }) {
isInvalid: !!c[r],
hint: c[r] || void 0
}),
- /* @__PURE__ */ (0, S.jsx)(Wh, {
- icon: xv,
+ /* @__PURE__ */ (0, S.jsx)(pg, {
+ icon: Wv,
"aria-label": "选择文件夹",
onClick: () => void A(r),
- ...$h(v === r)
+ ...Sg(v === r)
}),
- n.length > 1 ? /* @__PURE__ */ (0, S.jsx)(Wh, {
- icon: _u,
+ n.length > 1 ? /* @__PURE__ */ (0, S.jsx)(pg, {
+ icon: wu,
"aria-label": "移除这个文件夹",
onClick: () => k(r)
}) : null
@@ -23685,7 +24065,7 @@ function kv({ data: e, receipt: t }) {
}), /* @__PURE__ */ (0, S.jsxs)("div", {
className: "inline-grid grid-cols-1 gap-3 @lg:grid-cols-2",
children: [
- /* @__PURE__ */ (0, S.jsx)(Zh, {
+ /* @__PURE__ */ (0, S.jsx)(bg, {
label: "媒体库名称",
maxLength: 80,
placeholder: "同名文件夹归入同一个媒体库",
@@ -23694,7 +24074,7 @@ function kv({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(Kg, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(yv, {
+ children: [/* @__PURE__ */ (0, S.jsx)(h_, { children: "媒体库图标" }), /* @__PURE__ */ (0, S.jsx)(Hv, {
label: `媒体库图标 ${r + 1}`,
value: t.library_icon,
kind: t.location,
@@ -23703,20 +24083,20 @@ function kv({ data: e, receipt: t }) {
}),
/* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-1.5",
- children: [/* @__PURE__ */ (0, S.jsx)(Kg, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(S_, {
+ children: [/* @__PURE__ */ (0, S.jsx)(h_, { children: "媒体来源" }), /* @__PURE__ */ (0, S.jsx)(G_, {
"aria-label": `媒体来源 ${r + 1}`,
selectedKey: t.location,
onSelectionChange: (e) => {
e !== null && E(r, { location: String(e) });
},
- children: Sv.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)(C_, {
+ children: Gv.map(([e, t]) => /* @__PURE__ */ (0, S.jsxs)(K_, {
id: e,
textValue: t,
- children: [/* @__PURE__ */ (0, S.jsx)(Qg, { mark: wv(e) }), t]
+ children: [/* @__PURE__ */ (0, S.jsx)(x_, { mark: qv(e) }), t]
}, e))
})]
}),
- e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(Zh, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(bg, {
label: "Windows 中的对应路径",
placeholder: "例如 B:\\",
value: t.root,
@@ -23726,25 +24106,25 @@ function kv({ data: e, receipt: t }) {
})]
}, r))
}),
- /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(dg, {
className: "self-start",
onClick: O,
children: "添加文件夹"
})
]
}),
- j ? /* @__PURE__ */ (0, S.jsx)(hv, {}) : null,
- te.map((e) => /* @__PURE__ */ (0, S.jsxs)(Wg, { children: [
+ j ? /* @__PURE__ */ (0, S.jsx)(Rv, {}) : null,
+ te.map((e) => /* @__PURE__ */ (0, S.jsxs)(p_, { children: [
"未检测到 ",
e.name,
"。",
- /* @__PURE__ */ (0, S.jsxs)(qg, {
+ /* @__PURE__ */ (0, S.jsxs)(g_, {
href: e.download_url,
children: ["下载 ", e.name]
})
] }, e.name)),
- e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(Wg, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
- e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(Zh, {
+ e.windows === !1 ? /* @__PURE__ */ (0, S.jsx)(p_, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,
+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, S.jsx)(bg, {
id: "configPort",
label: "本机访问端口",
inputMode: "numeric",
@@ -23754,27 +24134,27 @@ function kv({ data: e, receipt: t }) {
isInvalid: !!u,
hint: u || "浏览器地址里冒号后面的数字,一般不用改。"
}),
- /* @__PURE__ */ (0, S.jsx)($_, {
+ /* @__PURE__ */ (0, S.jsx)(Sv, {
isSelected: o,
onChange: s,
children: "保存后扫描并补全资料"
}),
- f ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ f ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
title: "没有保存",
children: f
}) : null
- ] }), /* @__PURE__ */ (0, S.jsx)(Ug, {
+ ] }), /* @__PURE__ */ (0, S.jsx)(f_, {
status: e.port_editable === !1 ? "保存后 Peach 会重新载入配置。" : "保存后 Peach 会重新启动,端口改了就用新地址打开。",
- children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
- ...$h(T.busy === "save"),
+ ...Sg(T.busy === "save"),
children: "保存配置"
})
})]
});
}
-function Av({ online: e }) {
+function $v({ online: e }) {
return e === !0 ? /* @__PURE__ */ (0, S.jsxs)("span", {
"data-mount": "online",
className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",
@@ -23798,22 +24178,22 @@ function Av({ online: e }) {
}), "未检测"]
});
}
-function jv({ data: e }) {
- let t = e.media_sources, n = Qh();
- return t ? /* @__PURE__ */ (0, S.jsxs)(Bg, {
+function ey({ data: e }) {
+ let t = e.media_sources, n = xg();
+ return t ? /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "挂载状态",
children: [
- /* @__PURE__ */ (0, S.jsx)(Jg, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(Yg, {
- term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Qg, { mark: wv(e.location) }), Cv(e.location)] }),
- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)(Av, { online: e.online })]
+ /* @__PURE__ */ (0, S.jsx)(__, { children: t.map((e, t) => /* @__PURE__ */ (0, S.jsxs)(v_, {
+ term: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(x_, { mark: qv(e.location) }), Kv(e.location)] }),
+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, S.jsx)($v, { online: e.online })]
}, t)) }),
- n.error ? /* @__PURE__ */ (0, S.jsx)(Hg, {
+ n.error ? /* @__PURE__ */ (0, S.jsx)(d_, {
divided: !0,
- children: /* @__PURE__ */ (0, S.jsx)(Gg, { children: n.error })
+ children: /* @__PURE__ */ (0, S.jsx)(m_, { children: n.error })
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Ug, { children: /* @__PURE__ */ (0, S.jsx)(Hh, {
- onClick: () => void n.run("refresh", (e) => W_(e), (e) => yf.setQueryData(U_, e)),
- ...$h(n.busy === "refresh"),
+ /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ onClick: () => void n.run("refresh", (e) => pv(e), (e) => Af.setQueryData(fv, e)),
+ ...Sg(n.busy === "refresh"),
children: "刷新挂载状态"
}) })
]
@@ -23821,20 +24201,20 @@ function jv({ data: e }) {
}
//#endregion
//#region src/react/settings/access-settings.tsx
-var Mv = {
+var ty = {
legacy: "当前使用系统生成的访问口令。你可以设置自己的密码,或关闭登录要求。",
locked: "访问设置无法读取,请在本机检查配置文件。",
password: "已设置密码。新设备需要登录,保持登录时间在登录页选择。"
};
-function Nv({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = Qh(), g = (e) => {
+function ny({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(""), [o, s] = (0, x.useState)(""), [c, l] = (0, x.useState)(""), [u, d] = (0, x.useState)(!1), [f, p] = (0, x.useState)({}), m = (0, x.useRef)(null), h = xg(), 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) => pf("/api/configuration/access", {
+ h.run("save", (e) => wf("/api/configuration/access", {
revision: n.revision,
action: u ? "disable" : "set",
confirm_disable: u,
@@ -23844,28 +24224,28 @@ function Nv({ initial: e, receipt: t }) {
}, "POST", e), (e) => {
r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");
}, (e) => {
- let t = e instanceof uf ? e.body : null, n = t?.errors || t?.detail?.errors;
- n ? p(n) : h.setError(ff(e));
+ let t = e instanceof bf ? e.body : null, n = t?.errors || t?.detail?.errors;
+ n ? p(n) : h.setError(Sf(e));
});
- }, _ = Mv[n.mode], v = n.mode !== "locked";
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+ }, _ = ty[n.mode], v = n.mode !== "locked";
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
title: "访问密码",
onSubmit: g,
children: [/* @__PURE__ */ (0, S.jsx)("div", {
ref: m,
- children: /* @__PURE__ */ (0, S.jsxs)(Hg, { children: [
- _ ? /* @__PURE__ */ (0, S.jsx)(Wg, { children: _ }) : null,
- n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ children: /* @__PURE__ */ (0, S.jsxs)(d_, { children: [
+ _ ? /* @__PURE__ */ (0, S.jsx)(p_, { children: _ }) : null,
+ n.mode === "open" ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "warning",
title: "未设置访问密码",
children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"
}) : null,
- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)($_, {
+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, S.jsx)(Sv, {
isSelected: u,
onChange: d,
children: "关闭访问密码,允许能连接到 Peach 的设备直接访问"
}) : null,
- n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(Zh, {
+ n.mode === "password" ? /* @__PURE__ */ (0, S.jsx)(bg, {
id: "access-current",
type: "password",
label: "当前访问密码",
@@ -23878,7 +24258,7 @@ function Nv({ initial: e, receipt: t }) {
isInvalid: !!f.current_password,
hint: f.current_password
}) : null,
- v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(Zh, {
+ v ? /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(bg, {
id: "access-password",
type: "password",
label: n.mode === "password" ? "新访问密码" : "设置访问密码",
@@ -23891,7 +24271,7 @@ function Nv({ initial: e, receipt: t }) {
validationBehavior: "aria",
isInvalid: !u && !!f.password,
hint: u ? "关闭访问密码时无需填写。" : f.password || "至少 8 个字符。保存后其他设备需要重新登录。"
- }), /* @__PURE__ */ (0, S.jsx)(Zh, {
+ }), /* @__PURE__ */ (0, S.jsx)(bg, {
id: "access-confirm",
type: "password",
label: "确认访问密码",
@@ -23905,18 +24285,18 @@ function Nv({ initial: e, receipt: t }) {
isInvalid: !u && !!f.confirmation,
hint: u ? void 0 : f.confirmation
})] }) : null,
- u ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ u ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "warning",
title: "访问范围",
children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"
}) : null,
- h.error ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: h.error }) : null
+ h.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: h.error }) : null
] })
- }), v ? /* @__PURE__ */ (0, S.jsx)(Ug, {
+ }), v ? /* @__PURE__ */ (0, S.jsx)(f_, {
status: "保存后立即生效。",
- children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ children: /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
- ...$h(h.busy === "save"),
+ ...Sg(h.busy === "save"),
children: "保存配置"
})
}) : null]
@@ -23924,30 +24304,30 @@ function Nv({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/network-settings.tsx
-var Pv = [
+var ry = [
["environment", "系统代理"],
["direct", "直连"],
["proxy", "自定义"]
];
-function Fv({ data: e, receipt: t }) {
+function iy({ data: e, receipt: t }) {
return /* @__PURE__ */ (0, S.jsxs)("div", {
className: "flex flex-col gap-6",
- children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(Iv, {
+ children: [e.peach_proxy ? /* @__PURE__ */ (0, S.jsx)(ay, {
initial: e.peach_proxy,
receipt: t
- }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(Nv, {
+ }) : null, e.access ? /* @__PURE__ */ (0, S.jsx)(ny, {
initial: e.access,
receipt: t
}) : null]
});
}
-function Iv({ initial: e, receipt: t }) {
- let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = Qh();
- return /* @__PURE__ */ (0, S.jsxs)(Bg, {
+function ay({ initial: e, receipt: t }) {
+ let [n, r] = (0, x.useState)(e), [i, a] = (0, x.useState)(e.mode), [o, s] = (0, x.useState)(""), c = xg();
+ return /* @__PURE__ */ (0, S.jsxs)(l_, {
id: "peachProxy",
title: "Peach 代理",
onSubmit: (e) => {
- e.preventDefault(), c.run("save", (e) => pf("/api/configuration/peach-proxy", {
+ e.preventDefault(), c.run("save", (e) => wf("/api/configuration/peach-proxy", {
mode: i,
proxy: o
}, "POST", e), (e) => {
@@ -23955,25 +24335,25 @@ function Iv({ initial: e, receipt: t }) {
});
},
children: [
- /* @__PURE__ */ (0, S.jsx)(Vg, { children: /* @__PURE__ */ (0, S.jsx)(zg, {
+ /* @__PURE__ */ (0, S.jsx)(u_, { children: /* @__PURE__ */ (0, S.jsx)(c_, {
label: "连接方式",
description: "采集来源选择“Peach 代理”时共用此设置。",
- children: /* @__PURE__ */ (0, S.jsx)(S_, {
+ children: /* @__PURE__ */ (0, S.jsx)(G_, {
"aria-label": "连接方式",
selectedKey: i,
onSelectionChange: (e) => {
e !== null && a(String(e));
},
- children: Pv.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(C_, {
+ children: ry.map(([e, t]) => /* @__PURE__ */ (0, S.jsx)(K_, {
id: e,
children: t
}, e))
})
}) }),
- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(Hg, {
+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, S.jsxs)(d_, {
divided: !0,
children: [
- i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(Zh, {
+ i === "proxy" ? /* @__PURE__ */ (0, S.jsx)(bg, {
id: "peachProxyAddress",
type: "password",
label: "代理地址",
@@ -23982,17 +24362,17 @@ function Iv({ initial: e, receipt: t }) {
onChange: s,
placeholder: n.proxy_saved ? "已保存,留空保留" : "http://127.0.0.1:7890"
}) : null,
- n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(gf, {
+ n.needs_selection ? /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "warning",
title: "需要选择连接方式",
children: "已有来源的代理地址不同,请选择公共连接方式。"
}) : null,
- c.error ? /* @__PURE__ */ (0, S.jsx)(Gg, { children: c.error }) : null
+ c.error ? /* @__PURE__ */ (0, S.jsx)(m_, { children: c.error }) : null
]
}) : null,
- /* @__PURE__ */ (0, S.jsx)(Ug, { children: /* @__PURE__ */ (0, S.jsx)(Hh, {
+ /* @__PURE__ */ (0, S.jsx)(f_, { children: /* @__PURE__ */ (0, S.jsx)(dg, {
type: "submit",
- ...$h(c.busy === "save"),
+ ...Sg(c.busy === "save"),
children: "保存配置"
}) })
]
@@ -24000,17 +24380,17 @@ function Iv({ initial: e, receipt: t }) {
}
//#endregion
//#region src/react/settings/configuration-page.tsx
-function Lv({ receipt: e }) {
+function oy({ receipt: e }) {
let t = ct({
- queryKey: U_,
- queryFn: ({ signal: e }) => W_(e)
+ queryKey: fv,
+ queryFn: ({ signal: e }) => pv(e)
}), n = t.data;
if (!n) return /* @__PURE__ */ (0, S.jsx)("div", {
className: "configpage",
- children: /* @__PURE__ */ (0, S.jsx)(gf, {
+ children: /* @__PURE__ */ (0, S.jsx)(Df, {
tone: "error",
title: "打不开配置",
- children: t.error ? ff(t.error) : "没有读到配置"
+ children: t.error ? Sf(t.error) : "没有读到配置"
})
});
let r = {
@@ -24024,37 +24404,678 @@ function Lv({ receipt: e }) {
className: "configgroup",
children: "通用"
}) : null,
- n.startup ? /* @__PURE__ */ (0, S.jsx)(Y_, { ...r }) : null,
+ n.startup ? /* @__PURE__ */ (0, S.jsx)(vv, { ...r }) : null,
/* @__PURE__ */ (0, S.jsx)("h2", {
className: "configgroup",
children: "媒体"
}),
- /* @__PURE__ */ (0, S.jsx)(Ov, { ...r }),
+ /* @__PURE__ */ (0, S.jsx)(Zv, { ...r }),
i ? /* @__PURE__ */ (0, S.jsx)("h2", {
className: "configgroup",
children: "网络与访问"
}) : null,
- i ? /* @__PURE__ */ (0, S.jsx)(Fv, { ...r }) : null,
+ i ? /* @__PURE__ */ (0, S.jsx)(iy, { ...r }) : null,
/* @__PURE__ */ (0, S.jsx)("h2", {
className: "configgroup",
children: "更新与维护"
}),
- /* @__PURE__ */ (0, S.jsx)(lv, { ...r })
+ /* @__PURE__ */ (0, S.jsx)(Mv, { ...r })
+ ]
+ });
+}
+//#endregion
+//#region src/react/stats/stats.ts
+var sy = "/api/stats", cy = ["stats"], ly = (e) => Cf(sy, e);
+async function uy(e) {
+ await Af.fetchQuery({
+ queryKey: cy,
+ queryFn: () => ly(e)
+ });
+}
+var dy = (e, t) => t ? Math.round(e / t * 100) : 0, fy = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, py = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, my = (e) => (e.max_reached || 0) * 100, hy = (e) => e.kind === "online" ? "在线直接观看" : py(e) < my(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", gy = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`;
+function _y(e) {
+ let t = Math.max(1, ...e) * 1.1, n = Math.min(22, 110 / Math.max(1, e.length)), r = Math.min(15, n * .68);
+ return e.map((e, i) => ({
+ radius: 32 + i * n,
+ width: r,
+ length: e / t * 100
+ }));
+}
+//#endregion
+//#region src/react/stats/radial-card.tsx
+var vy = [
+ "stroke-chart-1",
+ "stroke-chart-2",
+ "stroke-chart-3",
+ "stroke-chart-4",
+ "stroke-chart-5",
+ "stroke-chart-6"
+], yy = [
+ "bg-chart-1",
+ "bg-chart-2",
+ "bg-chart-3",
+ "bg-chart-4",
+ "bg-chart-5",
+ "bg-chart-6"
+];
+function by({ title: e, rows: t, unit: n = "个视频" }) {
+ let [r, i] = (0, x.useState)(-1), [a, o] = (0, x.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);
+ if (!s.length) return null;
+ let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = _y(s.map((e) => e.value)), d = s[c], f = (e) => i((t) => t === e ? -1 : e);
+ return /* @__PURE__ */ (0, S.jsxs)("section", {
+ className: "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("header", {
+ className: "flex flex-col gap-1",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: d ? d.name : e
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex items-baseline gap-2",
+ children: [/* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-title-1-medium tabular-nums text-text-primary",
+ children: (d ? d.value : l).toLocaleString()
+ }), /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: n
+ })]
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("svg", {
+ viewBox: "0 0 320 320",
+ fill: "none",
+ role: "img",
+ "aria-label": e,
+ className: "block h-64 w-full",
+ onPointerLeave: () => o(-1),
+ children: s.map((e, t) => /* @__PURE__ */ (0, S.jsxs)("g", {
+ onPointerEnter: () => o(t),
+ onClick: () => f(t),
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("title", { children: `${e.name}:${e.value.toLocaleString()} ${n}` }),
+ /* @__PURE__ */ (0, S.jsx)("circle", {
+ cx: "160",
+ cy: "160",
+ r: u[t].radius,
+ strokeWidth: u[t].width,
+ strokeLinecap: "round",
+ className: "stroke-chart-track"
+ }),
+ /* @__PURE__ */ (0, S.jsx)("circle", {
+ cx: "160",
+ cy: "160",
+ r: u[t].radius,
+ strokeWidth: u[t].width,
+ strokeLinecap: "round",
+ pathLength: 100,
+ transform: "rotate(-90 160 160)",
+ strokeDasharray: `${u[t].length} ${100 - u[t].length}`,
+ className: c >= 0 && c !== t ? `cursor-pointer opacity-30 transition-opacity ${vy[t % 6]}` : `cursor-pointer transition-opacity ${vy[t % 6]}`
+ })
+ ]
+ }, e.name))
+ }),
+ /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-wrap gap-2",
+ children: s.map((e, t) => /* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ "aria-pressed": r === t,
+ onClick: () => f(t),
+ onPointerEnter: () => o(t),
+ onPointerLeave: () => o(-1),
+ onFocus: () => o(t),
+ onBlur: () => o(-1),
+ className: "flex min-w-0 grow basis-40 cursor-pointer flex-col items-start gap-1 rounded-xl bg-background-tertiary-default p-2.5 text-left outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-pressed:bg-background-primary-hover",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 items-center gap-1.5 text-caption-1-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsx)("i", {
+ "aria-hidden": !0,
+ className: `size-3 shrink-0 rounded-sm ${yy[t % 6]}`
+ }), e.name]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-headline-medium tabular-nums text-text-primary",
+ children: e.value.toLocaleString()
+ }),
+ e.detail ? /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e.detail
+ }) : null
+ ]
+ }, e.name))
+ })
]
});
}
//#endregion
+//#region src/react/stats/stats-page.tsx
+var xy = 10, Sy = "flex min-w-0 flex-col gap-4 rounded-2xl border border-separator-border p-5", Cy = "relative cursor-pointer py-3 text-body-2-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-text-primary", wy = "添加媒体文件夹或关注来源,开始建立你的馆藏。", Ty = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", Ey = "开始播放后,这里会显示最近的真实观看证据。", Dy = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", Oy = "添加媒体文件夹后,这里会显示存储空间。";
+function ky({ term: e, value: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex min-w-0 flex-col gap-1.5 rounded-xl bg-background-tertiary-default p-3",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e
+ }), /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-title-2-medium tabular-nums text-text-primary",
+ children: t.toLocaleString()
+ })]
+ });
+}
+function Ay({ term: e, value: t, total: n }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",
+ children: [/* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex items-baseline justify-between gap-3 text-body-2-regular text-text-primary",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", { children: e }), /* @__PURE__ */ (0, S.jsxs)("b", {
+ className: "tabular-nums",
+ children: [t.toLocaleString(), /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "ml-1.5 text-caption-1-regular text-text-secondary",
+ children: [dy(t, n), "%"]
+ })]
+ })]
+ }), /* @__PURE__ */ (0, S.jsx)(kf, {
+ label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,
+ value: t,
+ max: Math.max(n, 1)
+ })]
+ });
+}
+function jy({ term: e, figure: t, unit: n }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex shrink-0 flex-col gap-0.5 border-b border-separator-border pb-5 md:w-64 md:border-b-0 md:border-r md:pr-6 md:pb-0",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: e
+ }),
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-display-4-medium tabular-nums text-text-primary",
+ children: t
+ }),
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "text-body-2-regular text-text-secondary",
+ children: n
+ })
+ ]
+ });
+}
+function My({ headline: e, children: t }) {
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: `${Sy} md:flex-row md:gap-6`,
+ children: [e, /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "min-w-0 grow",
+ children: t
+ })]
+ });
+}
+function Ny({ data: t, configurable: r, openMediaSettings: i }) {
+ return t.by_loc.reduce((e, t) => e + t.videos, 0) ? /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "inline-grid w-full gap-5 md:grid-cols-2",
+ children: [/* @__PURE__ */ (0, S.jsx)(by, {
+ title: "网盘与本地",
+ rows: t.by_loc.map((t) => ({
+ name: e[t.k] ?? t.k,
+ value: t.videos,
+ detail: n(t.bytes)
+ }))
+ }), /* @__PURE__ */ (0, S.jsx)(by, {
+ title: "媒体库",
+ rows: t.by_library.map((e) => ({
+ name: e.name,
+ value: e.videos,
+ detail: n(e.bytes)
+ }))
+ })]
+ }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: Iu,
+ title: "还没有视频",
+ actions: /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [r ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ size: "small",
+ onClick: i,
+ children: "添加媒体文件夹"
+ }) : null, /* @__PURE__ */ (0, S.jsx)(e_, {
+ href: "/follow-manage?tab=add",
+ size: "small",
+ children: "添加关注"
+ })] }),
+ children: wy
+ });
+}
+function Py({ attribution: e }) {
+ let t = e.videos;
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(Ay, {
+ term: "有创作者",
+ value: e.creator,
+ total: t
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Ay, {
+ term: "有番号",
+ value: e.code,
+ total: t
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Ay, {
+ term: "有厂牌",
+ value: e.studio,
+ total: t
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Ay, {
+ term: "已抽帧",
+ value: e.thumb,
+ total: t
+ }),
+ /* @__PURE__ */ (0, S.jsx)(Ay, {
+ term: "已探测时长",
+ value: e.duration,
+ total: t
+ })
+ ]
+ });
+}
+function Fy({ volume: e }) {
+ let t = e.total, r = e.used ?? 0;
+ return /* @__PURE__ */ (0, S.jsxs)("article", {
+ className: "flex min-w-0 flex-col gap-1.5",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("header", {
+ className: "flex items-baseline justify-between gap-3",
+ children: [/* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "min-w-0 text-body-2-medium break-words text-text-primary",
+ children: e.label
+ }), /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-body-2-medium whitespace-nowrap text-text-primary",
+ children: t == null ? e.online ? "容量未取得" : "离线" : `${dy(r, t)}%`
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "text-caption-1-regular break-words text-text-secondary",
+ children: e.root ?? "未映射"
+ }),
+ t == null ? null : /* @__PURE__ */ (0, S.jsxs)(S.Fragment, { children: [/* @__PURE__ */ (0, S.jsx)(kf, {
+ label: `${e.label}空间使用率`,
+ value: r,
+ max: Math.max(t, 1)
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex justify-between gap-3 text-caption-1-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsxs)("span", { children: ["已用 ", /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "font-normal text-text-primary",
+ children: n(r)
+ })] }), /* @__PURE__ */ (0, S.jsxs)("span", { children: ["可用 ", /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "font-normal text-text-primary",
+ children: n(e.free ?? 0)
+ })] })]
+ })] })
+ ]
+ });
+}
+function Iy({ volumes: e, configurable: t, openMediaSettings: n }) {
+ return e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-5",
+ children: e.map((e) => /* @__PURE__ */ (0, S.jsx)(Fy, { volume: e }, `${e.kind}:${e.label}`))
+ }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: Au,
+ title: "还没有存储来源",
+ actions: t ? /* @__PURE__ */ (0, S.jsx)(dg, {
+ size: "small",
+ onClick: n,
+ children: "添加媒体文件夹"
+ }) : void 0,
+ children: Oy
+ });
+}
+function Ly({ tags: e, tagLabel: t, onTag: n }) {
+ let [r, i] = (0, x.useState)(!1);
+ if (!e.length) return /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: Pu,
+ title: "还没有内容标签",
+ actions: /* @__PURE__ */ (0, S.jsx)(e_, {
+ href: "/data-cleanup",
+ size: "small",
+ children: "补全资料"
+ }),
+ children: Ty
+ });
+ let a = r ? e : e.slice(0, xy);
+ return /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "flex flex-col gap-3",
+ children: [/* @__PURE__ */ (0, S.jsx)("ol", {
+ className: "inline-grid w-full gap-1 sm:grid-cols-2",
+ children: a.map((e, r) => /* @__PURE__ */ (0, S.jsx)("li", {
+ className: "min-w-0",
+ children: /* @__PURE__ */ (0, S.jsxs)("button", {
+ type: "button",
+ onClick: () => n(e.k),
+ className: "flex w-full min-w-0 cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",
+ children: r + 1
+ }),
+ /* @__PURE__ */ (0, S.jsx)("span", {
+ className: "min-w-0 grow text-body-2-regular break-words text-text-primary",
+ children: t(e.k)
+ }),
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-body-2-medium tabular-nums text-text-secondary",
+ children: e.n.toLocaleString()
+ })
+ ]
+ })
+ }, e.k))
+ }), e.length > xy ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex justify-center",
+ children: /* @__PURE__ */ (0, S.jsx)(dg, {
+ variant: "secondary",
+ size: "small",
+ onClick: () => i(!r),
+ children: r ? "收起排名" : "展开更多排名"
+ })
+ }) : null]
+ });
+}
+function Ry({ rows: e }) {
+ return e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "flex flex-col gap-5",
+ children: e.map((e) => {
+ let t = py(e);
+ return /* @__PURE__ */ (0, S.jsxs)("article", {
+ className: "flex flex-wrap items-center gap-x-6 gap-y-2",
+ children: [/* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "min-w-0 grow basis-64",
+ children: [/* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "min-w-0 text-body-2-medium text-text-primary",
+ children: /* @__PURE__ */ (0, S.jsx)("a", {
+ href: gy(e),
+ "data-middle-truncate": !0,
+ className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",
+ children: e.name
+ })
+ }), /* @__PURE__ */ (0, S.jsxs)("p", {
+ className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, S.jsx)("span", { children: hy(e) })]
+ })]
+ }), /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "min-w-0 basis-40",
+ children: [/* @__PURE__ */ (0, S.jsx)(kf, {
+ label: `真实观看 ${t.toFixed(0)}%`,
+ value: t
+ }), /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "mt-1.5 block text-caption-1-regular text-text-secondary",
+ children: `真实 ${t.toFixed(0)}% · 到达 ${my(e).toFixed(0)}%`
+ })]
+ })]
+ }, `${e.kind}:${e.id}`);
+ })
+ }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: ju,
+ title: "还没有观看记录",
+ actions: /* @__PURE__ */ (0, S.jsx)(e_, {
+ href: "/",
+ size: "small",
+ children: "浏览馆藏"
+ }),
+ children: Ey
+ });
+}
+function zy({ sources: e, videos: t }) {
+ return e.length ? /* @__PURE__ */ (0, S.jsx)("div", {
+ className: "inline-grid w-full gap-x-8 gap-y-6 sm:grid-cols-2",
+ children: e.map((e) => /* @__PURE__ */ (0, S.jsxs)("article", {
+ className: "flex min-w-0 flex-col gap-1.5",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("header", {
+ className: "flex items-baseline justify-between gap-3",
+ children: [/* @__PURE__ */ (0, S.jsx)("h3", {
+ className: "min-w-0 text-body-2-medium break-words text-text-primary",
+ children: e.k
+ }), /* @__PURE__ */ (0, S.jsxs)("b", {
+ className: "text-body-2-medium whitespace-nowrap text-text-primary",
+ children: [e.assets.toLocaleString(), /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "ml-1 text-caption-1-regular font-normal text-text-secondary",
+ children: "个视频"
+ })]
+ })]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(kf, {
+ label: `${e.k} 覆盖视频`,
+ value: e.assets,
+ max: Math.max(t, 1)
+ }),
+ /* @__PURE__ */ (0, S.jsxs)("small", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: [e.n.toLocaleString(), " 条标签"]
+ })
+ ]
+ }, e.k))
+ }) : /* @__PURE__ */ (0, S.jsx)(Tf, {
+ icon: Pu,
+ title: "还没有标签来源",
+ actions: /* @__PURE__ */ (0, S.jsx)(e_, {
+ href: "/data-cleanup",
+ size: "small",
+ children: "补全资料"
+ }),
+ children: Dy
+ });
+}
+function By({ id: e, label: t, figure: n, detail: r, icon: i }) {
+ return /* @__PURE__ */ (0, S.jsxs)(ig, {
+ id: e,
+ className: "flex min-w-0 cursor-pointer flex-col gap-3 rounded-2xl border border-separator-border p-4 outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-focus-ring",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)("span", {
+ className: "flex min-w-0 items-center gap-2 text-body-2-regular text-text-secondary",
+ children: [/* @__PURE__ */ (0, S.jsx)(i, {
+ "aria-hidden": !0,
+ className: "size-4 shrink-0"
+ }), t]
+ }),
+ /* @__PURE__ */ (0, S.jsx)("b", {
+ className: "text-title-1-medium tabular-nums text-text-primary",
+ children: n
+ }),
+ /* @__PURE__ */ (0, S.jsx)("small", {
+ className: "min-w-0 overflow-hidden text-caption-1-regular text-ellipsis whitespace-nowrap text-text-secondary",
+ children: r
+ })
+ ]
+ });
+}
+function Vy(e) {
+ let t = ct({
+ queryKey: cy,
+ queryFn: ({ signal: e }) => ly(e)
+ }), r = t.data;
+ if (!r) return /* @__PURE__ */ (0, S.jsx)(Of, { children: /* @__PURE__ */ (0, S.jsx)(Df, {
+ tone: "error",
+ title: "读取失败",
+ children: t.error ? Sf(t.error) : "读取统计失败"
+ }) });
+ let i = r.consumption, a = r.storage_summary, o = r.by_loc.reduce((e, t) => e + t.videos, 0), s = r.by_loc.reduce((e, t) => e + t.bytes, 0), c = dy(r.tag_cov, r.attribution.videos);
+ return /* @__PURE__ */ (0, S.jsxs)(Of, { children: [
+ /* @__PURE__ */ (0, S.jsx)("p", {
+ className: "text-caption-1-regular text-text-secondary",
+ children: `账本当前快照 · ${o.toLocaleString()} 个视频 · ${n(s)}`
+ }),
+ /* @__PURE__ */ (0, S.jsxs)(eg, {
+ className: "flex flex-col gap-4",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)(ng, {
+ "aria-label": "统计视图",
+ className: "inline-grid w-full gap-4 sm:grid-cols-2 lg:grid-cols-4",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(By, {
+ id: "inventory",
+ label: "馆藏视频",
+ icon: Tu,
+ figure: o.toLocaleString(),
+ detail: n(s)
+ }),
+ /* @__PURE__ */ (0, S.jsx)(By, {
+ id: "viewing",
+ label: "看过",
+ icon: Ou,
+ figure: i.played.toLocaleString(),
+ detail: fy(i.play_seconds)
+ }),
+ /* @__PURE__ */ (0, S.jsx)(By, {
+ id: "coverage",
+ label: "内容标签",
+ icon: Pu,
+ figure: `${c}%`,
+ detail: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
+ }),
+ /* @__PURE__ */ (0, S.jsx)(By, {
+ id: "storage",
+ label: "使用空间",
+ icon: Au,
+ figure: `${a.online} 个卷`,
+ detail: a.measured ? `已用 ${n(a.used)}` : "容量未取得"
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "inventory",
+ children: /* @__PURE__ */ (0, S.jsx)(Ny, {
+ data: r,
+ ...e
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "viewing",
+ children: /* @__PURE__ */ (0, S.jsx)(My, {
+ headline: /* @__PURE__ */ (0, S.jsx)(jy, {
+ term: "观看",
+ figure: i.played.toLocaleString(),
+ unit: "个作品有播放记录"
+ }),
+ children: /* @__PURE__ */ (0, S.jsxs)("div", {
+ className: "inline-grid w-full gap-3 sm:grid-cols-2",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "馆藏观看",
+ value: i.library_played
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "在线直接观看",
+ value: i.online_played
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "高潮计数",
+ value: i.o_total
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "快进扫过",
+ value: i.skimmed
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "明确不喜欢",
+ value: i.dislike
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "看过了",
+ value: i.seen
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ky, {
+ term: "回收站",
+ value: i.trash
+ })
+ ]
+ })
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "coverage",
+ children: /* @__PURE__ */ (0, S.jsx)(My, {
+ headline: /* @__PURE__ */ (0, S.jsx)(jy, {
+ term: "内容标签覆盖",
+ figure: `${c}%`,
+ unit: `${r.tag_cov.toLocaleString()} / ${r.attribution.videos.toLocaleString()}`
+ }),
+ children: /* @__PURE__ */ (0, S.jsx)(Py, { attribution: r.attribution })
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "storage",
+ children: /* @__PURE__ */ (0, S.jsx)(My, {
+ headline: /* @__PURE__ */ (0, S.jsx)(jy, {
+ term: "使用空间",
+ figure: String(a.measured),
+ unit: "个卷已取得容量"
+ }),
+ children: /* @__PURE__ */ (0, S.jsx)(Iy, {
+ volumes: r.storage_volumes,
+ ...e
+ })
+ })
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsxs)(eg, {
+ className: "flex flex-col rounded-2xl border border-separator-border",
+ children: [
+ /* @__PURE__ */ (0, S.jsxs)(ng, {
+ "aria-label": "统计维度",
+ className: "flex gap-6 overflow-x-auto border-b border-separator-border px-4",
+ children: [
+ /* @__PURE__ */ (0, S.jsx)(ig, {
+ id: "tags",
+ className: Cy,
+ children: "内容标签"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ig, {
+ id: "recent",
+ className: Cy,
+ children: "最近看过"
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ig, {
+ id: "sources",
+ className: Cy,
+ children: "标签来源"
+ })
+ ]
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "tags",
+ className: "p-4",
+ children: /* @__PURE__ */ (0, S.jsx)(Ly, {
+ tags: r.top_tags,
+ ...e
+ })
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "recent",
+ className: "p-4",
+ children: /* @__PURE__ */ (0, S.jsx)(Ry, { rows: r.recent })
+ }),
+ /* @__PURE__ */ (0, S.jsx)(ag, {
+ id: "sources",
+ className: "p-4",
+ children: /* @__PURE__ */ (0, S.jsx)(zy, {
+ sources: r.tag_source,
+ videos: r.attribution.videos
+ })
+ })
+ ]
+ })
+ ] });
+}
+//#endregion
//#region src/react/entry.tsx
-var Rv = null;
-function zv() {
- return Rv?.isConnected || (Rv = document.createElement("div"), Rv.className = "peach-react", Rv.dataset.reactOverlays = "", document.body.append(Rv)), Rv;
+var Hy = null;
+function Uy() {
+ return Hy?.isConnected || (Hy = document.createElement("div"), Hy.className = "peach-react", Hy.dataset.reactOverlays = "", document.body.append(Hy)), Hy;
}
-function Bv(e) {
+function Wy(e) {
return (t, n) => {
- let r = (0, fu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
- client: yf,
+ let r = (0, yu.createRoot)(t), i = (t) => r.render(/* @__PURE__ */ (0, S.jsx)(T, {
+ client: Af,
children: /* @__PURE__ */ (0, S.jsx)(lc, {
- getContainer: zv,
+ getContainer: Uy,
children: /* @__PURE__ */ (0, S.jsx)(e, { ...t })
})
}));
@@ -24064,31 +25085,35 @@ function Bv(e) {
};
};
}
-var Vv = {
+var Gy = {
activity: {
- prefetch: (e, t) => Ef(t),
- mount: Bv($)
+ prefetch: (e, t) => Lf(t),
+ mount: Wy(Zf)
},
"avatar-picker": {
prefetch: async () => {},
- mount: Bv(fg)
+ mount: Wy(Fg)
},
configuration: {
- prefetch: (e, t) => G_(t),
- mount: Bv(Lv)
+ prefetch: (e, t) => mv(t),
+ mount: Wy(oy)
},
"library-processing": {
- prefetch: (e, t) => _g(t),
- mount: Bv((e) => e.mode === "notice" ? /* @__PURE__ */ (0, S.jsx)(u_, { ...e }) : /* @__PURE__ */ (0, S.jsx)(s_, { ...e }))
+ prefetch: (e, t) => Bg(t),
+ mount: Wy((e) => e.mode === "notice" ? /* @__PURE__ */ (0, S.jsx)(N_, { ...e }) : /* @__PURE__ */ (0, S.jsx)(A_, { ...e }))
},
"quality-goals": {
- prefetch: (e, t) => m_(t),
- mount: Bv(__)
+ prefetch: (e, t) => L_(t),
+ mount: Wy(B_)
},
scraping: {
- prefetch: (e, t) => N_(t),
- mount: Bv(B_)
+ prefetch: (e, t) => nv(t),
+ mount: Wy(lv)
+ },
+ stats: {
+ prefetch: (e, t) => uy(t),
+ mount: Wy(Vy)
}
};
//#endregion
-export { Vv as pages };
+export { Gy as pages };
diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.js
index 8e537fc70..48434b0f6 100644
--- a/web/dist/peach-ui.js
+++ b/web/dist/peach-ui.js
@@ -280,7 +280,7 @@ function j(e) {
});
}
function M(e) {
- e.querySelectorAll(".tasteranks,.insightranking").forEach((e, t) => {
+ e.querySelectorAll(".tasteranks").forEach((e, t) => {
if (e.children.length <= 5 || e.parentElement?.hasAttribute("data-expandable-ranks")) return;
let n = document.createElement("div");
n.className = "board-expand-ranks", n.dataset.expandableRanks = "", e.before(n), n.append(e), e.id = e.id || `board-rank-list-${t}`, e.classList.add("board-rank-list");
@@ -576,15 +576,15 @@ function oe() {
}
//#endregion
//#region node_modules/d3-path/src/path.js
-var se = Math.PI, ce = 2 * se, V = 1e-6, le = ce - V;
-function ue() {
+var V = Math.PI, H = 2 * V, U = 1e-6, se = H - U;
+function W() {
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
}
-function de() {
- return new ue();
+function ce() {
+ return new W();
}
-ue.prototype = de.prototype = {
- constructor: ue,
+W.prototype = ce.prototype = {
+ constructor: W,
moveTo: function(e, t) {
this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
},
@@ -605,11 +605,11 @@ ue.prototype = de.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 > V) {
- if (!(Math.abs(u * s - c * l) > V) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
+ else if (d > U) {
+ if (!(Math.abs(u * s - c * l) > U) || !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((se - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
- Math.abs(y - 1) > V && (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((V - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
+ Math.abs(y - 1) > U && (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);
}
}
},
@@ -617,7 +617,7 @@ ue.prototype = de.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) > V || Math.abs(this._y1 - l) > V) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % ce + ce), d > le ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > V && (this._ += "A" + n + "," + n + ",0," + +(d >= se) + "," + 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) > U || Math.abs(this._y1 - l) > U) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % H + H), d > se ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > U && (this._ += "A" + n + "," + n + ",0," + +(d >= V) + "," + 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";
@@ -628,68 +628,68 @@ ue.prototype = de.prototype = {
};
//#endregion
//#region node_modules/d3-shape/src/constant.js
-function fe(e) {
+function le(e) {
return function() {
return e;
};
}
//#endregion
//#region node_modules/d3-shape/src/point.js
-function pe(e) {
+function ue(e) {
return e[0];
}
-function me(e) {
+function de(e) {
return e[1];
}
//#endregion
//#region node_modules/d3-shape/src/array.js
-var he = Array.prototype.slice;
+var fe = Array.prototype.slice;
//#endregion
//#region node_modules/d3-shape/src/link/index.js
-function ge(e) {
+function pe(e) {
return e.source;
}
-function _e(e) {
+function me(e) {
return e.target;
}
-function ve(e) {
- var t = ge, n = _e, r = pe, i = me, a = null;
+function he(e) {
+ var t = pe, n = me, r = ue, i = de, a = null;
function o() {
- var o, s = he.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
- if (a ||= o = de(), 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 = fe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);
+ if (a ||= o = ce(), 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 : fe(+e), o) : r;
+ return arguments.length ? (r = typeof e == "function" ? e : le(+e), o) : r;
}, o.y = function(e) {
- return arguments.length ? (i = typeof e == "function" ? e : fe(+e), o) : i;
+ return arguments.length ? (i = typeof e == "function" ? e : le(+e), o) : i;
}, o.context = function(e) {
return arguments.length ? (a = e ?? null, o) : a;
}, o;
}
-function ye(e, t, n, r, i) {
+function ge(e, t, n, r, i) {
e.moveTo(t, n), e.bezierCurveTo(t = (t + r) / 2, n, t, i, r, i);
}
-function be() {
- return ve(ye);
+function _e() {
+ return he(ge);
}
//#endregion
//#region node_modules/d3-sankey/src/sankeyLinkHorizontal.js
-function xe(e) {
+function ve(e) {
return [e.source.x1, e.y0];
}
-function Se(e) {
+function ye(e) {
return [e.target.x0, e.y1];
}
-function Ce() {
- return be().source(xe).target(Se);
+function be() {
+ return _e().source(ve).target(ye);
}
//#endregion
//#region src/board-sankey.ts
-function we(e = []) {
+function xe(e = []) {
let t = e.filter((e) => e.source && e.target && Number.isFinite(e.value) && e.value > 0);
if (!t.length) return "";
let n = [...new Set(t.map((e) => e.source))], r = [...new Set(t.map((e) => e.target))], i = oe().nodeId((e) => e.id).nodeWidth(10).nodePadding(22).extent([[155, 16], [535, 404]])({
@@ -707,13 +707,13 @@ function we(e = []) {
target: `target:${e.target}`,
value: e.value
}))
- }), a = t.reduce((e, t) => e + t.value, 0), o = Ce(), s = i.links.map((e) => {
+ }), a = t.reduce((e, t) => e + t.value, 0), o = be(), s = i.links.map((e) => {
let t = e.source, r = e.target;
return `<path d="${o(e)}" stroke-width="${Math.max(.5, e.width || 0)}" style="--flow-color:var(--board-chart-${n.indexOf(t.name) % 6})" data-flow-source="${t.index}" data-flow-target="${r.index}" data-flow-value="${e.value}" data-flow-label="${d(t.name)} → ${d(r.name)}" tabindex="0" role="img" aria-label="${d(t.name)} → ${d(r.name)}:${e.value} 条线索"/>`;
}).join(""), c = i.nodes.map((e) => `<g data-flow-node="${e.index}" data-flow-value="${e.value}" data-flow-label="${d(e.name)}" tabindex="0" role="img" aria-label="${d(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-${n.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">${d(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) / a * 100).toFixed(1) + "%"}</tspan></text></g>`).join("");
return `<section class="board-sankey-card" data-sankey-card><header><h3>创作者线索来源</h3><b data-sankey-number>${a.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">${s}</g><g class="board-sankey-nodes">${c}</g></svg></div><footer><span>来源网站</span><span>创作者 · 线索占比</span></footer></section>`;
}
-function Te(e) {
+function Se(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 = "条线索";
@@ -729,54 +729,7 @@ function Te(e) {
}
//#endregion
//#region src/board-analytics.ts
-var H = (e) => Number.isFinite(e) && e >= 0;
-function Ee(e, t, n = "个视频") {
- let r = e.filter((e) => H(e.value));
- if (!r.length) return "";
- let i = r.reduce((e, t) => e + t.value, 0), a = Math.max(1, ...r.map((e) => e.value)) * 1.1, o = Math.min(22, 110 / Math.max(1, r.length)), s = Math.min(15, o * .68), c = r.map((e, t) => {
- let r = 32 + t * o, i = e.value / a * 100;
- return `<g style="--ring-color:var(--board-chart-${t % 6});--ring-delay:${t * 60}ms"><circle class="board-ring-track" cx="160" cy="160" r="${r}" stroke-width="${s}"/><circle class="board-ring-value" data-radial-ring="${t}" tabindex="0" role="button" aria-label="${d(e.name)}:${e.value.toLocaleString()} ${d(n)}" aria-pressed="false" cx="160" cy="160" r="${r}" stroke-width="${s}" pathLength="100" stroke-dasharray="${i} ${100 - i}" style="--ring-length:${i}" transform="rotate(-90 160 160)"/></g>`;
- }).join("");
- return `<section class="board-radial-card" data-radial-card data-radial-total="${i}" data-radial-title="${d(t)}"><header><span data-radial-label>${d(t)}</span><b data-radial-number>${i.toLocaleString()}</b><small>${d(n)}</small></header><svg class="board-rings" viewBox="0 0 320 320" aria-label="${d(t)}">${c}</svg><div class="board-radial-tiles">${r.map((e, t) => `<button type="button" data-radial-tile="${t}" data-radial-value="${e.value}" data-radial-name="${d(e.name)}" aria-pressed="false" style="--ring-color:var(--board-chart-${t % 6})"><span><i aria-hidden="true"></i>${d(e.name)}</span><b>${e.value.toLocaleString()}</b>${e.detail ? `<small>${d(e.detail)}</small>` : ""}</button>`).join("")}</div></section>`;
-}
-function De(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) => {
- e.dataset.active = String(t === c), e.setAttribute("aria-pressed", String(t === a)), n[t]?.setAttribute("aria-pressed", String(t === a)), n[t] && (n[t].dataset.active = String(t === c));
- });
- let u = Number(c < 0 ? e.dataset.radialTotal : t[c]?.dataset.radialValue);
- i.textContent = c < 0 ? e.dataset.radialTitle : t[c].dataset.radialName, cancelAnimationFrame(s);
- let d = o, f = performance.now(), p = (t) => {
- if (!e.isConnected) return;
- let n = matchMedia("(prefers-reduced-motion: reduce)").matches ? 1 : Math.min(1, (t - f) / l);
- o = d + (u - d) * (1 - (1 - n) ** 3), r.textContent = Math.round(o).toLocaleString(), n < 1 && (s = requestAnimationFrame(p));
- };
- s = requestAnimationFrame(p);
- }, l = (e) => {
- a = a === e ? -1 : e, c(a);
- };
- [...t, ...n].forEach((e) => {
- let t = Number(e.getAttribute("data-radial-tile") ?? e.getAttribute("data-radial-ring"));
- e.addEventListener("pointerenter", () => c(t)), e.addEventListener("pointerleave", () => c(a)), e.addEventListener("focus", () => c(t)), e.addEventListener("blur", () => c(a)), e.addEventListener("click", () => l(t)), e instanceof SVGElement && e.addEventListener("keydown", (e) => {
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), l(t));
- });
- }), e.dataset.radialFocus = "-1", r.textContent = "0";
- let u = () => {
- requestAnimationFrame(() => {
- e.isConnected && (e.classList.add("board-chart-visible"), c(-1, 1200));
- });
- };
- if (typeof IntersectionObserver > "u" || matchMedia("(prefers-reduced-motion: reduce)").matches) u();
- else {
- let t = new IntersectionObserver((e) => {
- e.some((e) => e.isIntersecting) && (t.disconnect(), u());
- }, { threshold: .15 });
- t.observe(e);
- }
- });
-}
-var U = [
+var Ce = (e) => Number.isFinite(e) && e >= 0, G = [
"周一",
"周二",
"周三",
@@ -785,11 +738,11 @@ var U = [
"周六",
"周日"
];
-function Oe(e) {
+function we(e) {
if (!e?.days?.length) return "<section class=\"board-activity-empty\"><h3>浏览活跃时间</h3><p>还没有可用于分析的口味网站访问记录。</p></section>";
let t = Array.from({ length: 7 }, () => Array(24).fill(0));
- for (let n of e.hours || []) Number.isInteger(n.weekday) && n.weekday >= 0 && n.weekday < 7 && Number.isInteger(n.hour) && n.hour >= 0 && n.hour < 24 && H(n.count) && (t[n.weekday][n.hour] = (t[n.weekday][n.hour] || 0) + n.count);
- let n = Math.max(1, ...t.flat()), r = t.flat().reduce((e, t) => e + t, 0), i = t.map((e, t) => `<span class="board-heat-axis">${U[t]}</span>${e.map((e, r) => `<button type="button" data-heat-value="${e}" data-heat-label="${U[t]} ${r}:00" aria-label="${U[t]} ${r}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / n * 100) : 0}%"></button>`).join("")}`).join(""), a = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && H(e.count)).sort((e, t) => e.date.localeCompare(t.date));
+ for (let n of e.hours || []) Number.isInteger(n.weekday) && n.weekday >= 0 && n.weekday < 7 && Number.isInteger(n.hour) && n.hour >= 0 && n.hour < 24 && Ce(n.count) && (t[n.weekday][n.hour] = (t[n.weekday][n.hour] || 0) + n.count);
+ let n = Math.max(1, ...t.flat()), r = t.flat().reduce((e, t) => e + t, 0), i = t.map((e, t) => `<span class="board-heat-axis">${G[t]}</span>${e.map((e, r) => `<button type="button" data-heat-value="${e}" data-heat-label="${G[t]} ${r}:00" aria-label="${G[t]} ${r}:00,${e} 次访问" style="--heat:${e ? Math.max(12, e / n * 100) : 0}%"></button>`).join("")}`).join(""), a = e.days.filter((e) => /^\d{4}-\d{2}-\d{2}$/.test(e.date) && Ce(e.count)).sort((e, t) => e.date.localeCompare(t.date));
if (!a.length) return "";
let o = /* @__PURE__ */ new Date(`${a.at(-1).date}T00:00:00Z`), s = new Date(o);
s.setUTCDate(s.getUTCDate() - 90);
@@ -801,7 +754,7 @@ function Oe(e) {
}).join("");
return `<div class="board-activity-charts"><section class="board-heat-card" data-heat-card><header><h3>浏览活跃时间</h3><b data-heat-number>${r.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("")}${i}</div></div><footer>星期 × 小时<span>${d(e.timezone || "UTC+08:00")}</span></footer></section><section class="board-heat-card" data-heat-card><header><h3>每日活跃</h3><b data-heat-number>${a.filter((e) => e.date >= s.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">${u}</div><footer>${s.toISOString().slice(0, 10)}<span>${a.at(-1).date}</span></footer></section></div>`;
}
-function ke(e) {
+function Te(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) => {
@@ -816,19 +769,19 @@ function ke(e) {
}
//#endregion
//#region src/sidebar-groups.ts
-var W = (e) => e.replace(/[&<>"']/g, (e) => ({
+var K = (e) => e.replace(/[&<>"']/g, (e) => ({
"&": "&amp;",
"<": "&lt;",
">": "&gt;",
"\"": "&quot;",
"'": "&#39;"
})[e]);
-function Ae(e, t, n = "", r = "") {
+function Ee(e, t, n = "", r = "") {
if (!t) return "";
let i = `sidebar-group-${encodeURIComponent(e)}`;
- return `<details class="sec${r ? " cat-" + W(r) : ""}" data-sidebar-group="${W(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${W(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
+ return `<details class="sec${r ? " cat-" + K(r) : ""}" data-sidebar-group="${K(e)}"><summary role="button" class="board-section-toggle"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="#i-chevron-right"/></svg><span>${K(e)}</span></summary><div class="board-sidebar-body" id="${i}">${t}${n}</div></details>`;
}
-function je(e) {
+function De(e) {
e.querySelectorAll("[data-sidebar-group]").forEach((e) => {
if (e.dataset.sidebarWired) return;
e.dataset.sidebarWired = "true";
@@ -847,15 +800,15 @@ function je(e) {
}));
});
}
-var G = !1;
-async function Me(e, t) {
- if (G) return;
+var Oe = !1;
+async function ke(e, t) {
+ if (Oe) 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}}`, G = !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}}`, Oe = !0, document.head.append(o);
let s = document.documentElement;
s.dataset.themeSnapshot = "true";
let c = !1, l = () => {
@@ -866,15 +819,15 @@ async function Me(e, t) {
} catch {
l();
} finally {
- delete s.dataset.themeSnapshot, o.remove(), G = !1;
+ delete s.dataset.themeSnapshot, o.remove(), Oe = !1;
}
}
//#endregion
//#region src/jobs.ts
-function Ne(e, t = 0, n = 0) {
+function Ae(e, t = 0, n = 0) {
return n > 0 ? x(e, t, n) : r(e);
}
-async function Pe(e) {
+async function je(e) {
let t = e.pause || ((e) => new Promise((t) => setTimeout(t, e))), n = 0;
for (; e.active();) {
let r;
@@ -889,14 +842,14 @@ async function Pe(e) {
await t(2e3);
}
}
-function Fe(e) {
+function Me(e) {
let t = e.note || ((e) => a(e, {
label: "任务状态",
variant: "error"
- })), n = e.loading || r, i = e.progress || ((e, t, n) => Ne(n || `已处理 ${e} / ${t}`, e, t)), o = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), s = document.createElement("div");
+ })), n = e.loading || r, i = e.progress || ((e, t, n) => Ae(n || `已处理 ${e} / ${t}`, e, t)), o = e.container || ((e) => `<section class="followtask" data-geist-fieldset aria-label="任务进度"><div class="geist-fieldset-content">${e}</div></section>`), s = document.createElement("div");
e.host.hidden = !0, s.dataset.followJob = "", s.setAttribute("aria-live", "polite"), e.host.prepend(s);
let c = e.storageKey || "peach-follow-job", l = sessionStorage.getItem(c) || void 0, u = !1;
- Pe({
+ je({
read: e.read,
active: () => !u && e.active() && s.isConnected,
keepWatching: e.watchIdle !== !1,
@@ -922,24 +875,24 @@ function Fe(e) {
}
//#endregion
//#region src/review-evidence.ts
-var Ie = (e = "") => /^https?:\/\//i.test(e) ? e : "";
-function Le(e = "") {
- let t = Ie(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
+var Ne = (e = "") => /^https?:\/\//i.test(e) ? e : "";
+function Pe(e = "") {
+ let t = Ne(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");
return `<div class="reviewimage" data-review-picture><span class="reviewimageempty"${t ? " hidden" : ""}>未取得来源图片</span>${t ? `<img src="${d(t)}" alt="来源候选图片" loading="lazy">` : ""}</div>`;
}
-function Re(e) {
- let t = Ie(e.profile_url), n = (e.preview_assets || []).slice(0, 6), r = Math.max(0, Number(e.video_count || e.videos || 0));
+function Fe(e) {
+ let t = Ne(e.profile_url), n = (e.preview_assets || []).slice(0, 6), r = Math.max(0, Number(e.video_count || e.videos || 0));
return `<section class="reviewidentityevidence"><h5>候选身份:${d(e.babepedia_name || "未标注")}</h5>
<div class="reviewevidenceactions">${t ? `<a class="geist-button externallink" href="${d(t)}" 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="${d(e.creator || "")}">查看全部 ${r.toLocaleString()} 部作品</button></div>
- ${Le(e.preview_url)}
+ ${Pe(e.preview_url)}
<p>通过后记录身份判断。</p>
${n.length ? `<h5>本地作品样本</h5><div class="reviewevidencesamples">${n.map((e) => `<div class="reviewevidencesample">
<button class="geist-button" type="button" data-review-open-item="${e.id}"><span data-middle-truncate title="${d(e.name)}">${d(e.name)}</span></button>
<button class="geist-button" type="button" data-review-reveal="${e.id}" aria-label="打开 ${d(e.name)} 的文件位置">文件位置</button>
</div>`).join("")}</div>` : "<p>暂无本地作品样本,打开全部作品核对。</p>"}</section>`;
}
-function ze(e) {
+function Ie(e) {
for (let t of e.querySelectorAll("[data-review-picture] img")) {
let e = () => {
t.hidden = !0;
@@ -951,14 +904,14 @@ function ze(e) {
}
//#endregion
//#region src/api.ts
-var Be = (e) => p(e);
+var Le = (e) => p(e);
//#endregion
//#region src/selection.ts
-function Ve(e, t, n, r, i, a = i || !e.has(r)) {
+function Re(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 He(e, t) {
+function ze(e, t) {
let n = t.filter((t) => e.has(t)).length;
return {
count: n,
@@ -966,16 +919,16 @@ function He(e, t) {
mixed: n > 0 && n < t.length
};
}
-function Ue(e, t, n) {
+function Be(e, t, n) {
t.forEach((t) => n ? e.add(t) : e.delete(t));
}
-function We({ count: e, label: t, all: n, summary: r, actions: i, locked: a = !1 }) {
+function Ve({ 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 Ge = () => ({
+var He = () => ({
busy: !1,
category: "",
filter: "",
@@ -986,7 +939,7 @@ var Ge = () => ({
assets: /* @__PURE__ */ new Map(),
errors: /* @__PURE__ */ new Map()
});
-function Ke(e) {
+function Ue(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`);
@@ -1002,7 +955,7 @@ function Ke(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 qe(e, t) {
+function We(e, t) {
let n = [[
"candidates",
t ? "按候选数量" : "全部待复核",
@@ -1018,7 +971,7 @@ function qe(e, t) {
"list-filter"
]), n;
}
-function Je(e, t) {
+function Ge(e, t) {
let n = /* @__PURE__ */ new Map();
for (let r of e) {
let e, i;
@@ -1035,10 +988,10 @@ function Je(e, t) {
}
return [...n.values()];
}
-function Ye(e, t, n, r, i) {
- e.anchor = Ve(e.selected, t, e.anchor, n, r, i);
+function Ke(e, t, n, r, i) {
+ e.anchor = Re(e.selected, t, e.anchor, n, r, i);
}
-async function Xe(e, t, n, r) {
+async function qe(e, t, n, r) {
let i = [], a = 0;
for (let o of e) {
if (!r()) break;
@@ -1049,7 +1002,7 @@ async function Xe(e, t, n, r) {
} catch (e) {
i.push({
key: o.key,
- message: Be(e)
+ message: Le(e)
});
}
}
@@ -1058,17 +1011,17 @@ async function Xe(e, t, n, r) {
failures: i
};
}
-function Ze(e) {
+function Je(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 Qe(e, n) {
+function Ye(e, n) {
let r = e.querySelector(".reviewlist");
if (!r || !n.rows.length || n.locked) return;
let i = n.state, a = [...r.querySelectorAll("[data-review-key]")];
n.category !== void 0 && i.category !== n.category && (i.category = n.category, i.filter = "", i.groupBy = "candidates", i.anchor = null);
- let s = n.catalog || n.rows, l = qe(s, n.metadata);
+ let s = n.catalog || n.rows, l = We(s, n.metadata);
l.some((e) => e[0] === i.groupBy) || (i.groupBy = "candidates", i.filter = "");
- let d = Je(s, i.groupBy);
+ let d = Ge(s, i.groupBy);
d.some((e) => e.key === i.filter) || (i.filter = "");
let p = () => [...r.querySelectorAll("[data-review-key]")].filter((e) => !e.closest("[hidden]")), m = () => p().filter((e) => i.selected.has(e.dataset.reviewKey)), h = () => n.rows.filter((e) => m().some((t) => t.dataset.reviewKey === e.item_key)), g = (e) => !e.querySelector("[data-review-status=\"approved\"]")?.disabled, _ = (e, t = "") => {
let n = document.createElement("button");
@@ -1146,7 +1099,7 @@ function Qe(e, n) {
u.className = "reviewlist", s.append(c, l), o.append(s, u), r.append(o), l.onclick = () => {
if (i.busy) return;
let e = n.map((e) => e.dataset.reviewKey);
- Ue(i.selected, e, !e.every((e) => i.selected.has(e))), L();
+ Be(i.selected, e, !e.every((e) => i.selected.has(e))), L();
}, F.push(() => {
let e = n.every((e) => i.selected.has(e.dataset.reviewKey));
l.innerHTML = f(e ? "check-check-outline" : "check-check") + (e ? "清空本组" : "全选本组"), l.setAttribute("aria-pressed", String(e));
@@ -1163,7 +1116,7 @@ function Qe(e, n) {
e.className = "reviewpickname", e.append(...r.childNodes), r.classList.add("reviewpickheading"), r.append(a, e);
} else e.prepend(a);
let s = (e, t) => {
- Ye(i, p().map((e) => e.dataset.reviewKey), n, e, t), L();
+ Ke(i, p().map((e) => e.dataset.reviewKey), n, e, t), L();
};
if (a.addEventListener("mousedown", (e) => {
e.shiftKey && e.preventDefault();
@@ -1177,7 +1130,7 @@ function Qe(e, n) {
else if (t.key === "ArrowDown" || t.key === "ArrowUp") {
t.preventDefault();
let r = p(), a = r[r.indexOf(e) + (t.key === "ArrowDown" ? 1 : -1)];
- a && (i.anchor === null && (i.anchor = n), Ye(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), L(), a.querySelector(".reviewpickitem input")?.focus());
+ a && (i.anchor === null && (i.anchor = n), Ke(i, r.map((e) => e.dataset.reviewKey), a.dataset.reviewKey, !0, !0), L(), a.querySelector(".reviewpickitem input")?.focus());
}
}
}), F.push(() => {
@@ -1205,20 +1158,20 @@ function Qe(e, n) {
let I = "";
function L() {
let e = m(), t = e.length > 0 && e.length === p().length;
- w.innerHTML = f(t ? "check-check-outline" : "check-check") + (t ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(t)), j.hidden = !e.length, We({
+ w.innerHTML = f(t ? "check-check-outline" : "check-check") + (t ? "清空当前选择" : i.filter ? "全选当前分类" : "全选本页"), w.setAttribute("aria-pressed", String(t)), j.hidden = !e.length, Ve({
count: D,
label: `已选 ${e.length} 项`,
- summary: He(i.selected, p().map((e) => e.dataset.reviewKey)),
+ summary: ze(i.selected, p().map((e) => e.dataset.reviewKey)),
actions: [T, E]
}), T.disabled ||= e.some((e) => !g(e));
- let r = Ze(h());
+ let r = Je(h());
O.hidden = !n.metadata || !h().some((e) => (e.candidates?.length || 0) > 1);
let a = e.length && !r.length ? "所选项目无共同来源" : "统一选择来源", s = JSON.stringify([a, r]);
if (s !== I) {
I = s, O.innerHTML = o([["", a], ...r.map((e) => [e, e])], "", { label: "统一选择来源" });
let e = u(O.firstElementChild);
e.disabled = !r.length, e.addEventListener("change", () => {
- if (!(i.busy || !Ze(h()).includes(e.value))) {
+ if (!(i.busy || !Je(h()).includes(e.value))) {
for (let t of m()) {
let r = n.rows.find((e) => e.item_key === t.dataset.reviewKey).candidates.find((t) => t.source === e.value);
t.querySelectorAll("input[type=\"radio\"]").forEach((e) => {
@@ -1251,7 +1204,7 @@ function Qe(e, n) {
e instanceof KeyboardEvent && e.key === "Tab" || (e.preventDefault(), e.stopImmediatePropagation());
};
e.addEventListener("click", l, !0), e.addEventListener("keydown", l, !0);
- let u = 0, d = await Xe(a, async (e) => {
+ let u = 0, d = await qe(a, async (e) => {
try {
return await n.submit(e);
} finally {
@@ -1268,9 +1221,9 @@ function Qe(e, n) {
let f = e.parentElement;
n.refresh(), f?.querySelector(".reviewbulktoolbar button")?.focus({ preventScroll: !0 });
}
- L(), Ke(e);
+ L(), Ue(e);
}
-function $e(e, t, n = 1) {
+function Xe(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;
@@ -1290,15 +1243,15 @@ function $e(e, t, n = 1) {
t
];
}
-function et(e, t) {
+function Ze(e, t) {
return Math.max(1, Math.ceil(e / t));
}
-function tt(e, t) {
+function Qe(e, t) {
return Math.min(Math.max(1, Math.floor(e) || 1), t);
}
-function nt(e, t, n) {
+function $e(e, t, n) {
if (t <= 1) return "";
- let r = $e(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 = Xe(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>
@@ -1307,10 +1260,10 @@ function nt(e, t, n) {
}
//#endregion
//#region src/native-image.ts
-function rt(e, t, n, r) {
+function et(e, t, n, r) {
return e > 0 && t > 0 && e === n && t === r;
}
-function it(e, t, n, r, i = 1) {
+function tt(e, t, n, r, i = 1) {
let a = Number.isFinite(i) && i > 0 ? i : 1;
e /= a, t /= a;
let o = [
@@ -1327,7 +1280,7 @@ function it(e, t, n, r, i = 1) {
}
//#endregion
//#region src/entity-skeleton.ts
-function at(e, t, n) {
+function nt(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>
@@ -1341,27 +1294,27 @@ function at(e, t, n) {
}
//#endregion
//#region src/board-skeleton.ts
-var K = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, q = () => `${K("80%")}${K("48%")}`, J = (e, t) => e.repeat(t), ot = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${K("45%")}</b><small class="board-stat-footer">${K("60%")}</small></div>`).join("")}</div>`, st = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, ct = (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>`, lt = (e) => `<section class="board-radial-card"><header><span>${e}</span><b>${K()}</b></header><div class="board-rings skeleton-rings"><span class="skeleton skeleton-ring"></span></div><div class="skeleton-lines">${q()}</div></section>`, Y = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${J(q(), 3)}</div></section>`, ut = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, dt = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${K("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${f("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${f("layout-grid")}</label><label>${f("table")}</label></div><span class="fmanagesort" data-collapse-field>${f("sort")}${o([["checked", "检查时间"]], "checked", {
+var q = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, J = () => `${q("80%")}${q("48%")}`, Y = (e, t) => e.repeat(t), rt = (e, t = "metricstrip") => `<div class="${t}">${e.map((e) => `<div class="tastesummary"><span class="board-stat-label">${e}</span><b class="board-stat-value">${q("45%")}</b><small class="board-stat-footer">${q("60%")}</small></div>`).join("")}</div>`, it = (e, t = "skeleton-tabs") => `<div class="${t}">${e.map((e) => `<span>${e}</span>`).join("")}</div>`, at = (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>`, X = (e) => `<section class="insightpanel"><header>${e}</header><div class="insightpanelbody skeleton-lines">${Y(J(), 3)}</div></section>`, ot = (e) => `<button class="fbtn" type="button" disabled>${e}</button>`, st = (e) => `<div class="fsechead" data-collapse-toolbar><h3>关注列表</h3><span class="fmeta">${q("100px")}</span><div class="followtoolbaractions"><button class="fbtn primary followcheckall" disabled>${f("refresh-cw")}<span data-collapse-label>检查全部</span></button><div class="iconswitch" data-board-segments="true"><label>${f("layout-grid")}</label><label>${f("table")}</label></div><span class="fmanagesort" data-collapse-field>${f("sort")}${o([["checked", "检查时间"]], "checked", {
label: "关注列表排序",
attr: "disabled"
-})}</span><button class="fbtn fmanagedir" disabled>${f("arrow-down")}</button>${e ? "" : ut(f("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, ft = () => `<div class="fsource frow"><span class="fchannelcheck">${K("18px")}</span><b>${K("85%")}</b><span class="fprovider">${K("54px")}</span><span class="fmeta fchecked">${K("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, pt = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${K("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${K("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${f("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${J(ft(), 3)}</div></details>`;
-function mt() {
- 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">${K("85%")}${K("65%")}${J(q(), 4)}</div></aside></div></div>`;
+})}</span><button class="fbtn fmanagedir" disabled>${f("arrow-down")}</button>${e ? "" : ot(f("chevron-up") + "<span data-collapse-label>全部收起</span>")}</div></div>`, ct = () => `<div class="fsource frow"><span class="fchannelcheck">${q("18px")}</span><b>${q("85%")}</b><span class="fprovider">${q("54px")}</span><span class="fmeta fchecked">${q("40px")}</span><span class="fsourceactions"><span class="skeleton skeleton-icon"></span><span class="skeleton skeleton-icon"></span></span></div>`, lt = () => `<details class="fauthor" open><summary class="fauthorhead"><span class="favatar skeleton"></span><b>${q("90px")}</b><span class="skeleton skeleton-icon"></span><span class="fmeta">${q("40px")}</span><span class="board-author-actions"><button type="button" class="fbtn small" data-follow-author-select disabled>${f("check-check")}<span data-author-select-label>全选</span></button><span class="skeleton skeleton-icon"></span></span></summary><div class="fauthorsources">${Y(ct(), 3)}</div></details>`;
+function ut() {
+ 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">${q("85%")}${q("65%")}${Y(J(), 4)}</div></aside></div></div>`;
}
-function ht(e, n = {}) {
+function dt(e, n = {}) {
let r = "";
- if (e === "/stats") r = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${K("38%")}</header>${ot([
+ if (e === "/stats") r = `<div class="insightpage statsdashboard"><header class="insighttoolbar">${q("38%")}</header>${rt([
"馆藏视频",
"看过",
"内容标签",
"使用空间"
- ])}<section class="insightdetail"><div class="insightdetailbody"><div class="board-inventory-charts">${lt("网盘与本地")}${lt("媒体库")}</div></div></section>${Y("内容标签")}</div>`;
- else if (e === "/taste") r = `<div class="tastepage"><header class="tastehead">${ct(["浏览器记录", "Peach 内部"], "insightswitch")}${K("24%")}</header><div class="tastestate"></div>${ot([
+ ])}${X("馆藏视频")}${X("内容标签")}</div>`;
+ else if (e === "/taste") r = `<div class="tastepage"><header class="tastehead">${at(["浏览器记录", "Peach 内部"], "insightswitch")}${q("24%")}</header><div class="tastestate"></div>${rt([
"浏览记录",
"口味维度",
"浏览候选",
"私有导出"
- ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${J(q(), 4)}</div></section>${Y("口味分析")}<div class="board-activity-charts">${Y("浏览活动")}${Y("时间分布")}</div>${Y("标签")}</div>`;
+ ], "tastesummaries")}<section class="tastehero"><div class="insightcopy"><span>浏览器画像</span><div class="skeleton skeleton-radar"></div></div><div class="tastebars skeleton-lines">${Y(J(), 4)}</div></section>${X("口味分析")}<div class="board-activity-charts">${X("浏览活动")}${X("时间分布")}</div>${X("标签")}</div>`;
else if (e === "/follow-manage") {
let e = n.followLayout === "table", i = e ? `<div class="ftableframe"><div class="ftablewrap"><table class="ftable"><thead><tr>${[
"选择",
@@ -1371,7 +1324,7 @@ function ht(e, n = {}) {
"状态",
"上次检查",
"操作"
- ].map((e) => `<th>${e === "选择" ? "<label>" + t("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${J(`<tr>${[
+ ].map((e) => `<th>${e === "选择" ? "<label>" + t("disabled aria-label=\"全选本页来源\"") + "</label>" : e}</th>`).join("")}</tr></thead><tbody>${Y(`<tr>${[
"20px",
"90px",
"120px",
@@ -1379,37 +1332,37 @@ function ht(e, n = {}) {
"40px",
"100px",
"60px"
- ].map((e) => `<td>${K(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${J(pt(), 4)}</div>`;
+ ].map((e) => `<td>${q(e)}</td>`).join("")}</tr>`, 6)}</tbody></table></div></div>` : `<div class="board-follow-list">${Y(lt(), 4)}</div>`;
r = `<div class="follow followmanage"><div class="fmanageoverview">${[
"关注创作者",
"启用来源",
"检查失败",
"未看更新"
- ].map((e) => `<div><span>${e}</span><b>${K()}</b></div>`).join("")}</div>${ct([
+ ].map((e) => `<div><span>${e}</span><b>${q()}</b></div>`).join("")}</div>${at([
"关注列表",
"添加关注",
"来源和凭证"
- ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${dt(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${t("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${i}<div class="followpagefooter"><div class="followpageinfo">${K("120px")}${K("100px")}</div></div></div></section></div></div>`;
- } else if (e === "/configuration") r = `<div class="configpage">${st([
+ ], "follow-workspace-switch")}<div class="fmain"><section class="fsec" data-follow-workspace-panel="list">${st(e)}<div class="board-follow-selection"${e ? " hidden" : ""}><label>${t("disabled")}全选本页</label></div><div class="frows fsources" data-layout="${e ? "table" : "default"}">${i}<div class="followpagefooter"><div class="followpageinfo">${q("120px")}${q("100px")}</div></div></div></section></div></div>`;
+ } else if (e === "/configuration") r = `<div class="configpage">${it([
"通用",
"媒体",
"网络与访问",
"更新与维护"
- ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${J(`<div class="skeleton-setting">${K("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${K("100px")}</footer></section></div>`;
+ ])}<section class="configfieldset"><div class="geist-fieldset-content"><h3 class="geist-fieldset-title">开机自启</h3><div class="skeleton-lines">${Y(`<div class="skeleton-setting">${q("35%")}<span class="skeleton skeleton-toggle"></span></div>`, 3)}</div></div><footer class="geist-fieldset-footer">${q("100px")}</footer></section></div>`;
else if (e === "/activity") r = `<div class="activitypage">${[
"正在进行",
"被挡下的",
"最近完成"
- ].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">${K("35%")}${q()}</div></article></div></section>`).join("")}</div>`;
- else if (e === "/duplicates") r = `<div class="review"><div class="collection-summary">${K("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${K("40%")}</div>${J(`<section class="dupgroup"><div class="duphead">${K("45%")}</div><div class="duplist">${J(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${K()}</span><span class="dupname">${K("90%")}</span>${K()}${K()}${K()}<span class="duppath">${K("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
- else if (e === "/quality-goals") r = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${K("20%")}</div><div class="qualitylist">${J(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${q()}</div><footer class="qualityactions">${K("80%")}</footer></article>`, 6)}</div></div>`;
- else if (e === "/playlists") r = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${K("200px")}</div></header><div class="playlistcards">${J(`<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">${q()}</div></div></article>`, 6)}</div></section>`;
+ ].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">${q("35%")}${J()}</div></article></div></section>`).join("")}</div>`;
+ else if (e === "/duplicates") r = `<div class="review"><div class="collection-summary">${q("38%")}</div><div class="fsechead dupactions"><h3>批量保留</h3>${q("40%")}</div>${Y(`<section class="dupgroup"><div class="duphead">${q("45%")}</div><div class="duplist">${Y(`<div class="duprow"><span class="dupcover skeleton"></span><span class="dupmarks">${q()}</span><span class="dupname">${q("90%")}</span>${q()}${q()}${q()}<span class="duppath">${q("70%")}</span></div>`, 2)}</div></section>`, 2)}</div>`;
+ else if (e === "/quality-goals") r = `<div class="quality-workspace"><div class="collection-summary"><strong>待升级</strong>${q("20%")}</div><div class="qualitylist">${Y(`<article class="qualityitem"><span class="qualitycover skeleton"></span><div class="qualitybody skeleton-lines">${J()}</div><footer class="qualityactions">${q("80%")}</footer></article>`, 6)}</div></div>`;
+ else if (e === "/playlists") r = `<section class="playlistpage"><header><div><h2>播放列表</h2><p>保存 Mix,按自己的顺序继续播放。</p></div><div class="playlistcreate skeleton-lines"><span>新播放列表</span>${q("200px")}</div></header><div class="playlistcards">${Y(`<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">${J()}</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>${r}</div></div>`;
}
//#endregion
//#region src/catalog-onboarding.ts
-var gt = [
+var ft = [
"loc",
"creator",
"performer",
@@ -1427,16 +1380,16 @@ var gt = [
"jav",
"thumb"
];
-function _t() {
+function pt() {
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 vt(e, t) {
+async function mt(e, t) {
let n = new URLSearchParams();
- for (let t of gt) e[t] && n.set(t, e[t]);
+ for (let t of ft) 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 || [],
@@ -1447,7 +1400,7 @@ async function vt(e, t) {
return r.set("q", e), r.set("limit", "1"), (await t("/api/items?" + r)).total > 0 ? e : "";
}))).filter(Boolean);
}
-function yt({ kind: e = "catalog", filtered: t = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
+function ht({ kind: e = "catalog", filtered: t = !1, jav: r = !1, configurable: i = !1, online: a = !1 } = {}) {
let o = i ? "<button class=\"geist-button primary\" data-empty-settings>添加内容</button>" : "", s = "<a class=\"geist-button" + (!i || a ? " primary" : "") + "\" href=\"/follow-manage?tab=add\">添加关注</a>";
if (t || r) return n("search", r ? "还没有符合条件的 JAV 作品" : "没有符合条件的内容", r ? "已扫描但尚未补充发行资料的视频可在全部内容中查看。" : "清除筛选或搜索条件后查看全部内容。", { actions: "<a class=\"geist-button primary\" href=\"/?loc=&thumb=0\">查看全部内容</a>" });
if (e !== "catalog") {
@@ -1468,7 +1421,7 @@ function yt({ kind: e = "catalog", filtered: t = !1, jav: r = !1, configurable:
}
//#endregion
//#region src/sidebar.ts
-function bt(e) {
+function gt(e) {
return [
"/",
"/unseen",
@@ -1478,23 +1431,23 @@ function bt(e) {
"/junk-files"
].includes(e) || /^\/(item|mix|parts|editions)\//.test(e) || /^\/playlists\/\d+\/\d+$/.test(e) || /^\/(performers|studios|creators|series|agencies)\/.+/.test(e);
}
-function xt(e, t) {
+function _t(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 St(e) {
+function vt(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/management.ts
-function Ct(e) {
+function yt(e) {
return e.filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location);
}
-function wt(e, t) {
+function bt(e, t) {
return t.filter((t) => e.some((e) => e.location === t));
}
-function Tt() {
+function xt() {
let e = [
["人工复核", "square-check-big"],
["高清版", "sparkles"],
@@ -1539,7 +1492,7 @@ function Tt() {
<div class="resourcesyncfooter geist-fieldset-footer" data-geist-fieldset-footer><button class="resourceaction primary" type="button" disabled>检查文件</button></div>
</div></section></div>`;
}
-function Et(e, t = !1, n = !1) {
+function St(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" : ""}>
@@ -1553,57 +1506,57 @@ function Et(e, t = !1, n = !1) {
<button type="button" class="geist-button taste-guide-skip">跳过</button>
</div></details>`;
}
-var Dt = "peach-taste-guide-dismissed";
-function Ot(e, t) {
+var Ct = "peach-taste-guide-dismissed";
+function wt(e, t) {
l(e, ".taste-history-guide", "taste-guide-collapse");
let n = e.querySelector(".taste-history-guide");
n?.querySelector(".taste-guide-skip")?.addEventListener("click", () => {
- t.setItem(Dt, "1"), n.remove();
+ t.setItem(Ct, "1"), n.remove();
});
}
//#endregion
//#region src/resource-sync.ts
-var X = (e = 0) => Number(e).toLocaleString(), kt = {
+var Z = (e = 0) => Number(e).toLocaleString(), Tt = {
local: "本地磁盘",
115: "115",
pikpak: "PikPak"
-}, At = (t) => s(e[t] ?? "database"), Z = (e, t, n) => `<article class="board-plain-stat resourcestat">
+}, Et = (t) => s(e[t] ?? "database"), Dt = (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 jt(e, t) {
+function Ot(e, t) {
let n = e.cache || {
files: 0,
bytes: 0
}, r = !!(e.missing || n.files);
- return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Z(`<span class="board-stat-tile resourcestat-tile">${At(e.location)}</span>${kt[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${X(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${X(e.checked)} 项` : `馆藏中有 ${X(e.total)} 项`, e.unreadable ? `${X(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
- ${Z("待移入回收站", `${X(e.missing)} 项`, "")}
- ${Z("可清理的缓存", `${X(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
- ${r ? a(`将把找不到文件的 ${X(e.missing)} 项馆藏记录移入回收站,并清理 ${X(n.files)} 个闲置缓存。`, { label: "清理内容" }) : ""}
+ return `<div class="cleanupstats resourcestats">${(e.sources || []).map((e) => Dt(`<span class="board-stat-tile resourcestat-tile">${Et(e.location)}</span>${Tt[e.location] || "媒体来源"}<span class="resourcestat-state ${e.online ? "online" : "offline"}">${e.online ? "可访问" : "离线,已跳过"}</span>`, e.online ? `${Z(e.missing)} 项` : "—", [e.online ? `找不到文件 · 已检查 ${Z(e.checked)} 项` : `馆藏中有 ${Z(e.total)} 项`, e.unreadable ? `${Z(e.unreadable)} 项读取失败,已跳过` : ""].filter(Boolean).join(" · "))).join("")}
+ ${Dt("待移入回收站", `${Z(e.missing)} 项`, "")}
+ ${Dt("可清理的缓存", `${Z(n.files)} 个`, n.files ? t(n.bytes) : "")}</div>
+ ${r ? a(`将把找不到文件的 ${Z(e.missing)} 项馆藏记录移入回收站,并清理 ${Z(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 Mt(e) {
+function kt(e) {
return [
"small",
"sleeve",
"preview"
].includes(String(e)) ? "small" : "big";
}
-function Nt(e) {
+function At(e) {
return {
- javLayout: Mt(e.javLayout),
+ javLayout: kt(e.javLayout),
javImage: Q(e.javLayout === "preview" ? "thumbnail" : e.javImage)
};
}
function Q(e) {
return e === "thumbnail" ? "thumbnail" : "cover";
}
-function Pt(e, t) {
+function jt(e, t) {
return e.is_jav && e.code && e.has_cover && (Q(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";
}
-function Ft(e, t) {
+function Mt(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;
@@ -1614,7 +1567,7 @@ function Ft(e, t) {
left: l(c)
};
}
-function It(e, t) {
+function Nt(e, t) {
e.querySelectorAll("img[data-jav-image]").forEach((e) => {
let n = e.dataset.javCover || "", r = e.dataset.javThumb || "", i = !!(n && (Q(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);
@@ -1622,18 +1575,19 @@ function It(e, t) {
}
//#endregion
//#region src/islands.ts
-var Lt = {
+var Pt = {
"avatar-picker": { react: "avatar-picker" },
"library-processing": { react: "library-processing" },
scraping: { react: "scraping" },
"quality-goals": { react: "quality-goals" },
configuration: { react: "configuration" },
- activity: { react: "activity" }
-}, Rt = () => Object.keys(Lt), $ = /* @__PURE__ */ new Map();
-async function zt(e, t, n, r = {}) {
- let i = Lt[e];
+ activity: { react: "activity" },
+ stats: { react: "stats" }
+}, Ft = () => Object.keys(Pt), $ = /* @__PURE__ */ new Map();
+async function It(e, t, n, r = {}) {
+ let i = Pt[e];
if (!i) throw Error(`未注册的 island:${String(e)}`);
- Ht(t);
+ zt(t);
let a = { controller: new AbortController() };
$.set(t, a);
let o = (await import("/dist/peach-react.js")).pages[i.react];
@@ -1642,7 +1596,7 @@ async function zt(e, t, n, r = {}) {
} catch {
if (a.controller.signal.aborted) return;
}
- if (!Bt(t, a, r)) return;
+ if (!Lt(t, a, r)) return;
let s = t.ownerDocument.createElement("div");
s.className = "peach-react", t.append(s);
let c = o.mount(s, n);
@@ -1650,16 +1604,16 @@ async function zt(e, t, n, r = {}) {
c.unmount(), s.remove();
};
}
-function Bt(e, t, n) {
+function Lt(e, t, n) {
return $.get(e) === t ? n.isCurrent && !n.isCurrent() ? ($.delete(e), !1) : (e.textContent = "", !0) : !1;
}
-var Vt = (e) => !!e && $.has(e);
-function Ht(e) {
- for (let t of [...$.keys()]) (t === e || e.contains(t)) && Ut(t);
+var Rt = (e) => !!e && $.has(e);
+function zt(e) {
+ for (let t of [...$.keys()]) (t === e || e.contains(t)) && Bt(t);
}
-function Ut(e) {
+function Bt(e) {
let t = $.get(e);
t && (t.controller.abort(), $.delete(e), t.dispose?.());
}
//#endregion
-export { Dt as TASTE_GUIDE_KEY, Oe as activityChartsHtml, ht as boardPageSkeleton, g as boundedPreference, yt as catalogEmptyHtml, vt as catalogSuggestions, tt as clampPage, Tt as cleanupSkeletonHtml, Ct as cloudLocations, wt as cloudPreferenceLocations, Ge as createReviewSelection, we as creatorSankeyHtml, mt as detailSkeletonHtml, S as distributionChart, _t as emptyCatalogLayout, at as entitySkeletonHtml, Fe as followJobProgress, Je as groupReviewRows, Re as identityEvidenceHtml, E as initBoardControls, Vt as islandMounted, Rt as islandNames, Pt as javImageKind, Ne as jobActivityHtml, x as jobProgressHtml, rt as matchesFaceSource, zt as mountIsland, v as mountNumberSetting, it as nativeImageFit, Q as normalizeJavImage, Mt as normalizeJavLayout, Nt as normalizeJavPreferences, et as pageCount, nt as paginationHtml, Ft as panelFrame, m as preferredDirection, w as radarChart, Ee as radialCardHtml, C as rankedChart, jt as resourceScanHtml, Le as reviewImageHtml, Ue as selectGroup, Ve as selectRange, He as selectionSummary, bt as sidebarHasCatalogContent, Ae as sidebarSectionHtml, St as sidebarTagCounts, b as statCardBody, T as syncBoardRange, It as syncJavImages, _ as syncNumberSetting, We as syncSelectionToolbar, xt as syncSidebarSurface, Et as tasteHistoryGuideHtml, Me as transitionTheme, Ht as unmountIsland, Ke as updateReviewSticky, Pe as watchJob, ke as wireActivityCharts, Te as wireCreatorSankey, M as wireExpandableRanks, j as wireGrowingCharts, De as wireRadialCards, ze as wireReviewPictures, Qe as wireReviewSelection, je as wireSidebarGroups, Ot as wireTasteHistoryGuide };
+export { Ct as TASTE_GUIDE_KEY, we as activityChartsHtml, dt as boardPageSkeleton, g as boundedPreference, ht as catalogEmptyHtml, mt as catalogSuggestions, Qe as clampPage, xt as cleanupSkeletonHtml, yt as cloudLocations, bt as cloudPreferenceLocations, He as createReviewSelection, xe as creatorSankeyHtml, ut as detailSkeletonHtml, S as distributionChart, pt as emptyCatalogLayout, nt as entitySkeletonHtml, Me as followJobProgress, Ge as groupReviewRows, Fe as identityEvidenceHtml, E as initBoardControls, Rt as islandMounted, Ft as islandNames, jt as javImageKind, Ae as jobActivityHtml, x as jobProgressHtml, et as matchesFaceSource, It as mountIsland, v as mountNumberSetting, tt as nativeImageFit, Q as normalizeJavImage, kt as normalizeJavLayout, At as normalizeJavPreferences, Ze as pageCount, $e as paginationHtml, Mt as panelFrame, m as preferredDirection, w as radarChart, C as rankedChart, Ot as resourceScanHtml, Pe as reviewImageHtml, Be as selectGroup, Re as selectRange, ze as selectionSummary, gt as sidebarHasCatalogContent, Ee as sidebarSectionHtml, vt as sidebarTagCounts, b as statCardBody, T as syncBoardRange, Nt as syncJavImages, _ as syncNumberSetting, Ve as syncSelectionToolbar, _t as syncSidebarSurface, St as tasteHistoryGuideHtml, ke as transitionTheme, zt as unmountIsland, Ue as updateReviewSticky, je as watchJob, Te as wireActivityCharts, Se as wireCreatorSankey, M as wireExpandableRanks, j as wireGrowingCharts, Ie as wireReviewPictures, Ye as wireReviewSelection, De as wireSidebarGroups, wt as wireTasteHistoryGuide };
diff --git a/web/js/ui-components.js b/web/js/ui-components.js
index 6b42df4c1..6cd35c162 100644
--- a/web/js/ui-components.js
+++ b/web/js/ui-components.js
@@ -510,7 +510,7 @@ function deferReviewScroller(container){
const OVERLAY_SCROLLERS=[
'.settingsscroll','.sidecontent','.tagpickbody','.mixlist','.playlistpicklist','.playerstats',
'.vjs-peach-settings-menu','.geist-scroller-container','.metricstrip','.tastesummaries',
- '.insighttabs','.insightstorage','.skeletondashstrip','.followpagination','.linktablewrap',
+ '.insighttabs','.skeletondashstrip','.followpagination','.linktablewrap',
'.reviewtabs','.junkfilters','.ftablewrap','.board-local-nav','.managebar-menu',
'.follow-workspace-switch','.fmanagenav','.board-heat-scroll','.board-sankey-scroll',
].join(',');