Peach: Local-first video metadata scraper and media manager.
feat(react): 沉浸模式收进路由树的常驻表
longmeidaoe914d3b74388
diff --git a/docs/FRONTEND.md b/docs/FRONTEND.mdindex 60a0a2c1a..651de6cb8 100644--- a/docs/FRONTEND.md+++ b/docs/FRONTEND.md@@ -203,7 +203,7 @@ URL 都从它来,它被缓存住就没人看得到新产物。| `16-settings.css` | 设置面板打开时的页面锁滚(面板归 `settings-panel` 岛) || `17-overlay.css` | Toast 与审查遮挡 || `18-chips.css` | 产地选择与详情里次要操作的标签按钮(侧栏筛选标签归 `sidebar` 岛) |-| `19-immersive.css` | 加载更多、空状态、选择条与批量条、窄屏总表(沉浸模式归 `immerse` 岛) |+| `19-immersive.css` | 加载更多、空状态、选择条与批量条、窄屏总表(沉浸模式归常驻面 `immerse`) || `21-online.css` | 关注页骨架与关注详情(列表归路由树画的关注页) || `22-followmanage.css` | 关注管理页 |@@ -295,15 +295,19 @@ await openManagedRoute('search', props, {container: $('#searchMenu'), isCurrent:```- 登记键是「面」:页面用路径(`/stats`、`/performers/*`、`/`),附属面用名字(`catalog-filter`、`feed-new`、- `library-processing`、`search`),常驻面也用名字(`batch-dock`、`glow-picker`、`manage-header`),三者不重叠。路由树按键查- `managed-routes.tsx` 里的同一组表,每条是 `{prefetch, page}`;附属面与常驻面不进 `<Routes>`,也不进 `ROUTED_PATHS`。+ `library-processing`、`search`),常驻面也用名字(`batch-dock`、`glow-picker`、`manage-header`、`immerse`),三者+ 不重叠。路由树按键查 `managed-routes.tsx` 里的同一组表,每条是 `{prefetch, page}`;附属面与常驻面不进+ `<Routes>`,也不进 `ROUTED_PATHS`。- 常驻面是不跟某一页走的那几座,登记在常驻表 `RESIDENT_ROUTES` 里,由 `islands.ts` 的 `loadXxx(host)` 经- `openResidentSurface(name, host.root)` 在壳启动时打开一次:没有首屏取数,一直算当前页,宿主就是壳的那个节点- 本身(`[data-batch-dock]`、`#boardGlowMenu`、`[data-manage-header]`),组件直接画成它的子节点,DOM 和各自建根- 时一样。壳照旧经命令式句柄说话:组件订阅自己模块里的 store,句柄写 store 再 `flushSync` 通知,返回时已经画好;- `loadXxx` 等这一面画上才交出句柄。宿主里先有壳的启动骨架时(管理区页头),`openResidentSurface` 的 `place`- 在画首帧的同一个任务里清掉骨架;句柄交出之前骨架上的点击归壳。常驻面从不收,只有错误边界会卸它的组件,- 宿主始终留在文档里。+ `openResidentSurface(name, container, place?)` 打开一次(沉浸模式在第一次打开时,其余几座在壳启动时):没有首屏+ 取数,一直算当前页,宿主就是那个常驻节点本身(`[data-batch-dock]`、`#boardGlowMenu`、`[data-manage-header]`、+ `[data-immerse-host]`),组件直接画成它的子节点,DOM 和各自建根时一样,不包 `.peach-react`。壳照旧经命令式+ 句柄说话:组件订阅自己模块里的 store,句柄写 store 再 `flushSync` 通知,返回时已经画好;`loadXxx` 等这一面+ 画上才交出句柄。宿主里先有壳的启动骨架时(管理区页头),`openResidentSurface` 的 `place` 在画首帧的同一个+ 任务里清掉骨架,句柄交出之前骨架上的点击归壳;宿主不在壳的页面里时(沉浸模式),`loadImmerse` 新建+ `[data-immerse-host]`,`place` 在画首帧(藏着的外框)的同一个任务里把它挂到 body 末尾。沉浸的句柄+ `open(startId)` 里骨架、列表与播放器那几次绘制都在返回前画完;方向键、改窗口大小与离开页面的监听挂在模块上,+ 不随组件卸掉。常驻面从不收,只有错误边界会卸它的组件,宿主始终留在文档里。- `openManagedRoute(key, props, options)` 是 async 且**取完数才画**。壳已经铺了骨架,页面若先画一个空容器再自己转圈,同一次进入就会出现两段等待态。它先收起同一容器里的上一面,`prefetch(props, signal)` 把首屏写进共用的 Query 缓存,取齐后在同一个任务里换掉骨架、放进 `.peach-react` 宿主(或 `options.place` 排好的diff --git a/frontend/src/history/managed.ts b/frontend/src/history/managed.tsindex e7da67821..07048561c 100644--- a/frontend/src/history/managed.ts+++ b/frontend/src/history/managed.ts@@ -9,8 +9,8 @@* 要一直画着;附属面由壳按各自的路由判据收,搜索下拉壳从不收。页面跟着这里登记的那一条走,不跟着* 地址匹配走:详情舞台压在页面上时地址是 `/item/:id`,页面要留着。*- * 常驻面(批量条、配色卡、管理区页头)不跟某一页走,经 `openResidentSurface` 打开:没有首屏取数、一直算当前页,- * 宿主就是壳的那个节点。它们从不收;只有错误边界会卸掉它的组件,而且只卸组件、不撤宿主。+ * 常驻面(批量条、配色卡、管理区页头、沉浸模式)不跟某一页走,经 `openResidentSurface` 打开:没有首屏取数、+ * 一直算当前页,宿主就是那个常驻节点。它们从不收;只有错误边界会卸掉它的组件,而且只卸组件、不撤宿主。** 登记键是「面」:页面用路径(`/stats`、`/performers/*`、`/`),附属面与常驻面用名字(`search`、* `batch-dock`),两者不重叠,路由树按键查同一组表(`react/router/managed-routes.tsx`)。@@ -131,7 +131,8 @@ export async function openManagedRoute(path: string, props: object, options: Man* 它的子节点,所以 DOM 与这座面自己建根时一样。没有首屏取数,路由树接上就画;画上了回 true。** `place` 在画首帧的同一个任务里把宿主交给路由树,返回的仍须是这个节点本身;不给就原样交出。宿主里先有- * 壳的启动骨架时(管理区页头),由它清掉骨架:骨架一直留到首帧画上的那一刻,中间没有一帧空白。+ * 壳的启动骨架时(管理区页头),由它清掉骨架:骨架一直留到首帧画上的那一刻,中间没有一帧空白。宿主是新建、+ * 还不在文档里的节点时(沉浸模式),由它挂进文档,节点与首帧一起出现。** 每座只在壳启动(或第一次用到)时打开一次。之后壳经它的命令式句柄推内容,组件订阅自己的 store;* 抛错后错误边界只卸组件,这一面空到刷新为止,句柄照旧可调、不抛。 */diff --git a/frontend/src/islands.ts b/frontend/src/islands.tsindex 4ced1f82e..42d7157e8 100644--- a/frontend/src/islands.ts+++ b/frontend/src/islands.ts@@ -69,13 +69,21 @@ export function loadSettingsPanel(host: ReactBundle.SettingsPanelHost): Promise<}export const settingsPanelApi = (): ReactBundle.SettingsPanelApi | null => settingsPanelReady;-/* 沉浸岛(`react/immerse/`):全屏连播、每一格的播放器、手势与动作键都在 `@peach/react` 里,壳只拿- * 命令式入口。第一次打开沉浸模式时才装载 React 包、接上宿主;之后 `immerseApi()` 同步可取,包还没- * 装载时是 null——那时沉浸模式必然没开。 */+/* 沉浸模式(`react/immerse/`,常驻面 `immerse`):全屏连播、每一格的播放器、手势与动作键都在 `@peach/react`+ * 里,壳只拿命令式入口。第一次打开沉浸模式时才装载 React 包,建好宿主 `[data-immerse-host]`、在路由树里打开+ * 这一面:宿主在画首帧(藏着的外框)的同一个任务里挂到 body 末尾,画上之后句柄才交出去。从那一刻起+ * `immerseApi()` 同步可取;包还没装载时是 null——那时沉浸模式必然没开。 */let immerse: Promise<ReactBundle.ImmerseApi> | null = null;let immerseReady: ReactBundle.ImmerseApi | null = null;export function loadImmerse(host: ReactBundle.ImmerseHost): Promise<ReactBundle.ImmerseApi> {- immerse ??= import('@peach/react').then((bundle) => { immerseReady = bundle.configureImmerse(host); return immerseReady });+ immerse ??= import('@peach/react').then(async (bundle) => {+ const api = bundle.configureImmerse(host);+ const container = document.createElement('div');+ container.dataset.immerseHost = '';+ await openResidentSurface('immerse', container, (node) => { document.body.append(node); return node });+ immerseReady = api;+ return api;+ });return immerse;}export const immerseApi = (): ReactBundle.ImmerseApi | null => immerseReady;diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.tsindex a25ccda36..fe5ed56e2 100644--- a/frontend/src/react/bundle.d.ts+++ b/frontend/src/react/bundle.d.ts@@ -478,7 +478,8 @@ export declare function configureSettingsPanel(host: SettingsPanelHost): Settingexport type { ImmerseApi, ImmerseHost } from './immerse/immerse-api';-/** 接上壳给的宿主,拿回沉浸岛的命令式入口(`immerse/immerse-island.tsx`)。只调一次。 */+/** 接上壳给的宿主,拿回沉浸模式的命令式入口(`immerse/immerse-island.tsx`)。只调一次;这一面由+ * `islands.ts` 的 `loadImmerse` 接着经常驻表的 `openResidentSurface` 在路由树里打开。 */export declare function configureImmerse(host: ImmerseHost): ImmerseApi;export type {diff --git a/frontend/src/react/entry.tsx b/frontend/src/react/entry.tsxindex c9fc5c381..c2bb14c56 100644--- a/frontend/src/react/entry.tsx+++ b/frontend/src/react/entry.tsx@@ -1,6 +1,6 @@/* React 子树的构建入口(`web/dist/peach-react.js`),按 `bundle.d.ts` 的签名导出命令式入口。页面与页面里的- * 附属面都由路由树画(`router/`),常驻层各有自己的 `configureXxx`:已收进常驻表的批量条、配色卡与管理区页头- * 交出句柄或宿主、由路由树画,其余几座各建一棵根。共享缓存、减弱动效与弹出层容器见+ * 附属面都由路由树画(`router/`),常驻层各有自己的 `configureXxx`:已收进常驻表的批量条、配色卡、管理区页头+ * 与沉浸模式交出句柄或宿主、由路由树画,其余几座各建一棵根。共享缓存、减弱动效与弹出层容器见* `providers.tsx`。 */import './styles.css';diff --git a/frontend/src/react/immerse/immerse-api.ts b/frontend/src/react/immerse/immerse-api.tsindex 0770e7ef5..0ae8a5df8 100644--- a/frontend/src/react/immerse/immerse-api.ts+++ b/frontend/src/react/immerse/immerse-api.ts@@ -1,5 +1,5 @@-/* 沉浸岛对壳的契约:壳只拿命令式入口,片单、每一格的播放器、手势、动作键与作者标题都在- * `peach-react.js` 里。地址栏、首页筛选、头像拼法与「关掉之后去哪儿」归壳。 */+/* 沉浸模式(常驻面 `immerse`,`immerse-island.tsx`)对壳的契约:壳只拿命令式入口,片单、每一格的播放器、+ * 手势、动作键与作者标题都在 `peach-react.js` 里。地址栏、首页筛选、头像拼法与「关掉之后去哪儿」归壳。 */export interface ImmerseHost {/** 首页当前的筛选(壳的 `state`):片单按它随机抽样,画幅不算。 */diff --git a/frontend/src/react/immerse/immerse-island.tsx b/frontend/src/react/immerse/immerse-island.tsxindex 18b8a9d37..b0f7bbf31 100644--- a/frontend/src/react/immerse/immerse-island.tsx+++ b/frontend/src/react/immerse/immerse-island.tsx@@ -1,18 +1,23 @@-/* 沉浸岛(ADR-0031 第 11e 步):`/immerse` 的全屏连播。片单、每一格的播放器、加载提示、手势、- * 动作键、作者与标题都在这一棵根里。+/* 沉浸模式(ADR-0031 第 11e 步):`/immerse` 的全屏连播。片单、每一格的播放器、加载提示、手势、+ * 动作键、作者与标题都在这一面里。*- * 宿主是 body 末尾一个常驻容器,一棵根常驻;壳只拿 `configureImmerse` 给的命令式入口(同舞台岛),- * 不进路由树:沉浸模式盖在所有页面之上,壳的键盘、换批与播放快捷键要随时同步问它开没开、- * 当前是哪一个 video。+ * 常驻面 `immerse`(`router/managed-routes.tsx` 的常驻表):路由树把它画进 body 末尾的常驻宿主+ * `[data-immerse-host]`,宿主就是那个节点本身,第一次打开沉浸模式时由 `islands.ts` 的 `loadImmerse` 建好、+ * 在画首帧的同一个任务里挂进文档。首帧就是藏着的外框。壳只拿 `configureImmerse` 给的命令式入口:沉浸+ * 模式盖在所有页面之上,壳的键盘、换批与播放快捷键要随时同步问它开没开、当前是哪一个 video。句柄写本模块+ * 的 store 再 `flushSync` 通知,`open(startId)` 里骨架、列表与播放器那几次绘制都在返回之前画完,紧跟着读+ * DOM 的代码读到的就是刚画好的结构。** 外框、动作列、作者标题与进度条由 React 画;每一格(`[data-immerse-slide]` 与里面的 `<video>`)* 由控制器在空轨道里命令式建、拆:Video.js 要占着那块 DOM,上下滑动的位移按帧写在格子的* `style.transform` 上,进度条的宽度随 timeupdate 写,这三样都不能等一次重画。*- * 根不包 `.peach-react`:这块全屏层的排版一直在 Preflight 之外,按钮、链接与字号继承的是遗留层+ * 方向键、改窗口大小与离开页面这三条监听挂在模块上、不挂在组件上:错误边界卸掉这一面之后,壳照旧能+ * 开关它,离开页面时还开着的格照旧按会话取消读取。+ *+ * 宿主不包 `.peach-react`:这块全屏层的排版一直在 Preflight 之外,按钮、链接与字号继承的是遗留层* 的全局规则,样式全在 `immerse.css`,不用工具类。 */-import { useLayoutEffect, useRef, type MouseEvent, type PointerEvent } from 'react';-import { createRoot, type Root } from 'react-dom/client';+import { useLayoutEffect, useRef, useSyncExternalStore, type MouseEvent, type PointerEvent } from 'react';import { flushSync } from 'react-dom';import { useMutation, useQuery } from '@tanstack/react-query';@@ -28,7 +33,6 @@ import { replaceCatalogItem } from '../catalog-grid/catalog-grid';import {FEEDBACK_URL, feedbackReceipt, fetchItem, ItemGone, itemKey, type DetailItem,} from '../item-detail/item-detail';-import { Providers } from '../providers';import { queryClient } from '../query';import {AXIS_LOCK_PX, DISLIKE_ADVANCE_MS, DOUBLE_TAP_MS, READY_TIMEOUT_MS, SLIDE_MS, SWIPE_PX, SYNTHETIC_CLICK_MS,@@ -72,10 +76,9 @@ interface Dom { root: HTMLElement; track: HTMLElement; bar: HTMLElement; progresconst CLOSED: View = { open: false, idle: false, wide: false, loading: null, shown: null };let host: ImmerseHost | null = null;-let root: Root | null = null;-let container: HTMLElement | null = null;let dom: Dom | null = null;let view: View = CLOSED;+const listeners = new Set<() => void>();/* 每次打开、关闭各换一代:取数与等待回来时代次不对就作废。 */let generation = 0;let seed = 0;@@ -95,24 +98,22 @@ let scrubTarget: { video: HTMLVideoElement; duration: () => number } | null = nulet scrubbing = false;function immerseHost(): ImmerseHost {- if (!host) throw new Error('沉浸岛还没有接上宿主(configureImmerse)');+ if (!host) throw new Error('沉浸模式还没有接上宿主(configureImmerse)');return host;}-function immerseRoot(): Root {- if (!root || !container?.isConnected) {- root?.unmount();- container = document.createElement('div');- container.dataset.immerseHost = '';- document.body.append(container);- root = createRoot(container);- }- return root;+function subscribe(listener: () => void): () => void {+ listeners.add(listener);+ return () => { listeners.delete(listener) };+}++function notify(): void {+ for (const listener of [...listeners]) listener();}+/* 返回时已经画完。这一面抛错、被错误边界卸掉之后没人订阅,`view` 照旧写进 store,不画、不抛。 */function paint(): void {- const at = immerseRoot();- flushSync(() => at.render(<Providers><ImmerseView view={view} /></Providers>));+ flushSync(notify);}/* ── 加载提示 ── */@@ -701,11 +702,11 @@ function onKeyDown(event: KeyboardEvent): void {if (event.key === 'ArrowUp') void step(-1);}-/** 接上壳给的宿主,拿回沉浸模式的命令式入口。外框随根一起画出来、藏着,第一次打开之前就在。 */+/** 接上壳给的宿主,拿回沉浸模式的命令式入口。只调一次;壳的 `loadImmerse` 接着在路由树里打开这一面,+ * 藏着的外框画上之后才交出句柄,第一次打开之前它就在。 */export function configureImmerse(next: ImmerseHost): ImmerseApi {const first = !host;host = next;- paint();if (first) {document.addEventListener('keydown', onKeyDown);// 旋转手机或改窗口大小后,同一条视频的铺满/完整显示判定可能翻转。@@ -714,3 +715,9 @@ export function configureImmerse(next: ImmerseHost): ImmerseApi {}return api;}++/** 常驻表里的那一面:读本模块的 store,宿主还没接上时不画。 */+export function ImmerseSurface() {+ const at = useSyncExternalStore(subscribe, () => view);+ return host ? <ImmerseView view={at} /> : null;+}diff --git a/frontend/src/react/immerse/immerse.css b/frontend/src/react/immerse/immerse.cssindex 2f65f124e..3398459d0 100644--- a/frontend/src/react/immerse/immerse.css+++ b/frontend/src/react/immerse/immerse.css@@ -1,4 +1,4 @@-/* 沉浸岛(`frontend/src/react/immerse/`):全屏连播。+/* 沉浸模式(常驻面 `immerse`,`frontend/src/react/immerse/`):全屏连播。** 桌面采用 YouTube Shorts 的三段式布局:固定 9:16 舞台居中,动作列贴在舞台右侧,作者与标题留在* 左下角。手机才让舞台重新铺满视口。diff --git a/frontend/src/react/router/managed-routes.tsx b/frontend/src/react/router/managed-routes.tsxindex c2238c760..07080ca50 100644--- a/frontend/src/react/router/managed-routes.tsx+++ b/frontend/src/react/router/managed-routes.tsx@@ -37,6 +37,7 @@ import { FollowFeedPage } from '../follow-feed/follow-feed-page';import { prefetchFollowManage } from '../follow-manage/follow-manage';import { FollowManagePage } from '../follow-manage/follow-manage-page';import { GlowPickerSurface } from '../glow-picker/glow-picker-island';+import { ImmerseSurface } from '../immerse/immerse-island';import { prefetchIndex } from '../index/index-data';import { IndexPage } from '../index/index-page';import { JunkQueuePage } from '../junk-queue/junk-queue-page';@@ -278,7 +279,8 @@ const isSurfaceName = (key: string): key is SurfaceName => Object.hasOwn(SURFACE/* 常驻面,按名字登记:壳启动时经 `openResidentSurface` 各开一次,一直算当前页,没有首屏取数,宿主就是壳的那个节点。从不收,只有错误边界会卸它的组件,宿主照旧留在文档里。打开不带 props:壳经命令式句柄推内容,组件订阅自己模块里的 store,句柄里的绘制同步做完。管理区页头的宿主里先有壳的启动骨架,打开时由 `place`- 在画出首帧的同一个任务里清掉。 */+ 在画出首帧的同一个任务里清掉;沉浸的宿主不在壳的页面里,第一次打开时新建,由 `place` 在画出首帧的同一个+ 任务里挂到 body 末尾。 */export const RESIDENT_ROUTES: ResidentRouteTable = {'batch-dock': {prefetch: async () => {},@@ -292,6 +294,10 @@ export const RESIDENT_ROUTES: ResidentRouteTable = {prefetch: async () => {},page: () => <ManageHeaderSurface />,},+ immerse: {+ prefetch: async () => {},+ page: () => <ImmerseSurface />,+ },};const isResidentName = (key: string): key is ResidentName => Object.hasOwn(RESIDENT_ROUTES, key);/** 画着 `#grid` 那两页时地址可能落在的路径:首页、三个筛选态、回收站与垃圾文件。只进 `<Routes>` 的声明,diff --git a/frontend/src/react/router/router.tsx b/frontend/src/react/router/router.tsxindex 0915ac2b4..36690bda5 100644--- a/frontend/src/react/router/router.tsx+++ b/frontend/src/react/router/router.tsx@@ -1,7 +1,7 @@/* 客户端导航(ADR-0031「React Router 外壳阶段接管」):React Router 的 Declarative 模式接管 history。* 管理区那几页、播放列表页与关注页、索引页与资料页、目录网格与垃圾队列,以及页面里的附属面(首页筛选条、- * 首页新作行、目录页处理横幅、顶栏搜索下拉)与常驻面(底部批量条、侧栏配色卡、管理区页头)(`managed-routes.tsx`)- * 由这棵树画,+ * 首页新作行、目录页处理横幅、顶栏搜索下拉)与常驻面(底部批量条、侧栏配色卡、管理区页头、沉浸模式)+ * (`managed-routes.tsx`)由这棵树画,* 其余页面仍由壳的 `ROUTES` 表打开。** 用底层的 `<Router>`,history 是 `@peach/history` 那一份:壳在 React 包到之前就要写地址,`<BrowserRouter>`diff --git a/frontend/src/react/router/shell-actions.ts b/frontend/src/react/router/shell-actions.tsindex 70cd2b2b3..2d0473131 100644--- a/frontend/src/react/router/shell-actions.ts+++ b/frontend/src/react/router/shell-actions.ts@@ -151,13 +151,14 @@ export interface SurfaceOpenProps {export type SurfaceName = keyof SurfaceOpenProps;-/** 常驻面,按名字登记、宿主就是壳的那个节点:底部批量条(`[data-batch-dock]`)、侧栏配色卡(`#boardGlowMenu`)- * 与管理区页头(`[data-manage-header]`)。打开时不带 props(`openResidentSurface`),内容由壳经各自的命令式句柄- * 推进组件自己的 store。 */+/** 常驻面,按名字登记、宿主就是那个常驻节点:底部批量条(`[data-batch-dock]`)、侧栏配色卡(`#boardGlowMenu`)、+ * 管理区页头(`[data-manage-header]`)与沉浸模式(body 末尾的 `[data-immerse-host]`)。打开时不带 props+ * (`openResidentSurface`),内容由壳经各自的命令式句柄推进组件自己的 store。 */export interface ResidentOpenProps {'batch-dock': Record<string, never>;'glow-picker': Record<string, never>;'manage-header': Record<string, never>;+ immerse: Record<string, never>;}export type ResidentName = keyof ResidentOpenProps;diff --git a/frontend/test/react/immerse.test.tsx b/frontend/test/react/immerse.test.tsxindex f1c05cd4f..5a7294626 100644--- a/frontend/test/react/immerse.test.tsx+++ b/frontend/test/react/immerse.test.tsx@@ -1,22 +1,33 @@-/* 沉浸岛:片单怎么抽、起播与深链落在哪一条、每换一条取几次详情、动作键写回哪几份缓存、关掉之后- * 读取有没有按会话取消,以及单击、双击、横划、竖划与进度条这几种手势。+/* 沉浸模式:片单怎么抽、起播与深链落在哪一条、每换一条取几次详情、动作键写回哪几份缓存、关掉之后+ * 读取有没有按会话取消,以及单击、双击、横划、竖划与进度条这几种手势;还有它作为常驻面+ * (`RESIDENT_ROUTES.immerse`)在路由树里的行为:宿主是 body 末尾的 `[data-immerse-host]`、画上之后才交出+ * 句柄、`open` 里的几次绘制同步画完、抛错只卸组件而模块上的监听还在。*- * 播放器换成一个记账的替身:这里看的是岛交给它什么、什么时候拆它,真 Video.js 与真流会话由+ * 每条用例照壳的启动顺序走一遍:重新装载模块、画路由树、接上取数,再经 `islands.ts` 的 `loadImmerse` 拿句柄。+ * 播放器换成一个记账的替身:这里看的是这一面交给它什么、什么时候拆它,真 Video.js 与真流会话由* e2e 在浏览器里走一遍(`e2e/immerse.test.ts`)。 */import { act } from 'react';-import { afterEach, beforeEach, describe, expect, it, vi, type Mock } from 'vitest';+import { createRoot } from 'react-dom/client';+import { afterEach, beforeAll, beforeEach, describe, expect, it, vi, type Mock } from 'vitest';import { seekVideoBy, toggleVideoPlayback } from '../../src/player/playback';+import type { BatchDockApi, BatchDockHost } from '../../src/react/batch-dock/batch-dock-api';import { catalogKey, type GridPage } from '../../src/react/catalog-grid/catalog-grid';import {FIT_TOLERANCE, extendList, fitMode, immerseQuery, isWide, ownerOf, playable, type ImmerseItem,} from '../../src/react/immerse/immerse';import type { ImmerseApi, ImmerseHost } from '../../src/react/immerse/immerse-api';-import { configureImmerse } from '../../src/react/immerse/immerse-island';import { itemKey, type DetailItem } from '../../src/react/item-detail/item-detail';-import { queryClient } from '../../src/react/query';+import type { ShellActions } from '../../src/react/router/shell-actions';import { click, pending } from './render';+// 首次导入会编译路由表带进来的整棵页面子树,编译等待使用独立的有限窗口;之后每条用例重新装载只重跑模块。+const REACT_IMPORT_TIMEOUT_MS = 30_000;++type ActFlag = { IS_REACT_ACT_ENVIRONMENT?: boolean };++beforeAll(async () => { await import('../../src/react/router/router') }, REACT_IMPORT_TIMEOUT_MS);+interface Mounted { video: HTMLVideoElement; item: ImmerseItem; session: string; dispose: ReturnType<typeof vi.fn> }const player = vi.hoisted(() => ({@@ -132,8 +143,63 @@ function makeHost(): HostMock {};}+/* 壳那一侧的 `islands.ts` 按 `@peach/react` 引产物;React 子树的类型配置不映射这个名字,所以这里不让类型检查+ 跟进去,只按壳用的几个入口取。运行时 Vitest 把它指到 `entry.tsx`。 */+type ShellIslands = {+ loadImmerse(host: ImmerseHost): Promise<ImmerseApi>;+ immerseApi(): ImmerseApi | null;+ loadBatchDock(host: BatchDockHost): Promise<BatchDockApi>;+};+const ISLANDS_MODULE = '../../src/islands';++async function load() {+ vi.resetModules();+ window.history.replaceState(null, '', '/');+ const [history, router, routes, query, islands] = await Promise.all([+ import('../../src/history'), import('../../src/react/router/router'), import('../../src/react/router/managed-routes'),+ import('../../src/react/query'), import(/* @vite-ignore */ ISLANDS_MODULE) as Promise<ShellIslands>,+ ]);+ return { ...history, ...router, ...routes, queryClient: query.queryClient, islands };+}+type Loaded = Awaited<ReturnType<typeof load>>;++function shellActions(): ShellActions {+ return {+ openItem: vi.fn(), openEntity: vi.fn(), openTag: vi.fn(), openTasteSignal: vi.fn(), navigate: vi.fn(),+ openManage: vi.fn(), managePath: vi.fn(() => ''), openFollow: vi.fn(), receipt: vi.fn(), toast: vi.fn(),+ failure: vi.fn(), revealSource: vi.fn(async () => ''), reopenTutorial: vi.fn(async () => {}),+ requestConfigurationSection: vi.fn(), requestCloudDownload: vi.fn(), routeReview: vi.fn(),+ routeFollowManage: vi.fn(), saveFollowPreference: vi.fn(), srcBadge: () => '', routeIndex: vi.fn(),+ savePeopleLayout: vi.fn(), exitSelectMode: vi.fn(), personAvatar: vi.fn(() => ({ html: '', face: '' })),+ authorAvatar: vi.fn(() => ''), showIndexTags: vi.fn(), openFollowAuthor: vi.fn(), openFollowTag: vi.fn(),+ openPlaylist: vi.fn(), canFlip: vi.fn(() => true),+ };+}++const unmounts: Array<() => void> = [];++/** 壳启动时先画路由树(根的选项与 `configureRouter` 同一份);接上取数单独一步,用例可以把它往后放。 */+async function mountRouter(r: Loaded) {+ const tree = createRoot(document.createElement('div'), r.ROUTER_ROOT_OPTIONS);+ await act(async () => { tree.render(<r.RouterRoot actions={shellActions()} />) });+ unmounts.push(() => tree.unmount());+}+async function connect(r: Loaded) {+ await act(async () => { r.connectManagedRoutes(Promise.resolve(r.prefetchManagedRoute)) });+}++/** 收下每一次上报;`console.error` 只静音,不数条数。 */+function watchReports() {+ const reported = vi.fn();+ vi.stubGlobal('reportError', reported);+ vi.spyOn(console, 'error').mockImplementation(() => {});+ return reported;+}+let host: ReturnType<typeof makeHost>;let api: ImmerseApi;+let loaded: Loaded;+let queryClient: Loaded['queryClient'];const q = <T extends Element = HTMLElement>(selector: string) => document.querySelector<T>(selector);const root = () => q('[data-immerse]')!;@@ -179,18 +245,26 @@ const swipe = (...steps: [string, number, number][]) => act(async () => {for (const [type, x, y] of steps) track().dispatchEvent(touch(type, x, y));});-beforeEach(() => {+/* 照壳的 `openTok` 接上:路由树已经画着、接上了取数,第一次打开沉浸模式时装载并拿到句柄。 */+beforeEach(async () => {player.mounted = [];player.cancelled = [];player.dims.clear();- queryClient.clear();// 洗牌恒等:j 总取 i,片单顺序就是服务端给的顺序。vi.spyOn(Math, 'random').mockReturnValue(0.999);+ loaded = await load();+ queryClient = loaded.queryClient;+ await mountRouter(loaded);+ await connect(loaded);host = makeHost();- api = configureImmerse(host);+ await act(async () => { api = await loaded.islands.loadImmerse(host) });});-afterEach(() => { act(() => api.close()) });+afterEach(async () => {+ (globalThis as ActFlag).IS_REACT_ACT_ENVIRONMENT = true;+ act(() => api.close());+ for (const unmount of unmounts.splice(0)) await act(async () => { unmount() });+});describe('片单与起播', () => {it('抽样去掉画幅、随机取 60 条且偏移恒为 0;续取按 id 去重接在后面', () => {@@ -596,3 +670,96 @@ describe('播放键', () => {expect(playing.pause).toHaveBeenCalledTimes(1);});});++describe('常驻面', () => {+ const immerseHostOf = (r: Loaded) => r.managedEntries().find((entry) => entry.path === 'immerse')?.container as HTMLElement;++ it('画上之后句柄才交出;宿主是 body 末尾的 [data-immerse-host],里面直接是藏着的外框,不包 .peach-react', async () => {+ const r = await load();+ await mountRouter(r);+ let loading: Promise<ImmerseApi> | null = null;+ await act(async () => { loading = r.islands.loadImmerse(makeHost()) });+ expect(r.islands.immerseApi(), '路由树还没接上取数,句柄不交出').toBeNull();+ expect(immerseHostOf(r), '这一面还没画上').toBeUndefined();++ await connect(r);+ let handed: ImmerseApi | null = null;+ await act(async () => { handed = await loading });+ expect(r.islands.immerseApi()).toBe(handed);+ const container = immerseHostOf(r);+ expect(container.hasAttribute('data-immerse-host')).toBe(true);+ expect(container.parentElement).toBe(document.body);+ expect(document.body.lastElementChild).toBe(container);+ expect(container.children).toHaveLength(1);+ const frame = container.firstElementChild as HTMLElement;+ expect(frame.hasAttribute('data-immerse')).toBe(true);+ expect(frame.hidden, '第一次打开之前外框就在,藏着').toBe(true);+ expect(container.querySelector('.peach-react')).toBeNull();+ expect(container.closest('.peach-react')).toBeNull();+ expect(handed!.isOpen()).toBe(false);+ });++ it('open 里的每一次绘制都在句柄里画完:开头那一拍就露出加载提示,返回时第一条已经出画', async () => {+ serve({ draws: [[row(1), row(2)]] });+ /* 不包 act:act 会把 flushSync 推到它结束时,看不出句柄自己同步没有。 */+ (globalThis as ActFlag).IS_REACT_ACT_ENVIRONMENT = false;+ const opening = api.open(null);+ expect(root().hidden, '同步段里外框已经显出来').toBe(false);+ expect(root().hasAttribute('data-idle')).toBe(true);+ expect(q('[data-immerse-loader]')!.hidden).toBe(false);+ expect(q('[data-immerse-loader]')!.textContent).toContain('加载内容…');+ expect(document.body.hasAttribute('data-immerse-open')).toBe(true);+ await opening;+ expect(root().hasAttribute('data-idle'), '返回时已经画完,不等下一次渲染').toBe(false);+ expect(q('[data-immerse-loader]')!.hidden).toBe(true);+ expect(document.querySelectorAll('[data-immerse-track] > [data-immerse-slide]')).toHaveLength(1);+ expect(meta()).toBe('· 1:00 · 竖屏 · 1/2');+ expect(q('[data-immerse-title]')!.textContent).toBe('片名 clip-1.mp4');+ expect(api.activeVideo()).toBe(current().video);+ });++ it('抛错只卸组件、宿主还在,body 上的打开标记留着,批量条照画;之后开关不抛,方向键与离开页面的监听还在', async () => {+ const reported = watchReports();+ const dockRoot = document.createElement('div');+ dockRoot.setAttribute('data-batch-dock', '');+ document.body.append(dockRoot);+ let dock!: BatchDockApi;+ await act(async () => { dock = await loaded.islands.loadBatchDock({ root: dockRoot, run: vi.fn() }) });+ serve({ draws: [[1, 2, 3, 4, 5, 6].map((id) => row(id))] });+ const container = immerseHostOf(loaded);+ /* 第一条出画、作者标题那一行画标题时抛。 */+ host.displayName.mockImplementation(() => { throw new Error('标题画不出来') });++ await open();+ expect(reported).toHaveBeenCalledTimes(1);+ expect(reported).toHaveBeenCalledWith(expect.objectContaining({ message: '标题画不出来' }));+ expect(container.isConnected, '宿主不撤').toBe(true);+ expect(container.childNodes.length, '组件卸掉了').toBe(0);+ expect(loaded.managedTaken(container)).toBe(false);+ expect(loaded.managedEntries().map((entry) => entry.path), '别的面照画').toEqual(['batch-dock']);+ expect(document.body.hasAttribute('data-immerse-open'), '卸组件不清 body 上的打开标记').toBe(true);+ expect(api.isOpen()).toBe(true);++ /* 模块上的监听不随组件卸掉:方向键照旧换条(交给壳写地址),离开页面照旧按会话取消还开着的格。 */+ const first = current();+ await key('ArrowDown');+ await until(() => routed().at(-1) === 2);+ await act(async () => { window.dispatchEvent(new Event('resize')) });+ await act(async () => { window.dispatchEvent(new Event('pagehide')) });+ expect(player.cancelled).toContain(first.session);++ act(() => { expect(() => api.close()).not.toThrow() });+ expect(api.isOpen()).toBe(false);+ expect(document.body.hasAttribute('data-immerse-open')).toBe(false);+ expect(host.closed).toHaveBeenCalledTimes(1);+ host.displayName.mockImplementation((item) => `片名 ${String(item.name)}`);+ await open();+ expect(api.isOpen()).toBe(true);+ act(() => { expect(() => api.close()).not.toThrow() });+ expect(container.childNodes.length, '空到刷新为止,不自愈').toBe(0);+ expect(reported, '确定性抛错只报那一次').toHaveBeenCalledTimes(1);+ /* 批量条放在最后画:它的进场动画跑在 motion 的帧循环上,画完就收尾,卸树时不留进行中的动画。 */+ await act(async () => { dock.render({ count: 2, context: 'catalog', junkDismissed: false }) });+ expect(dockRoot.querySelector('[data-selection-dock] [role="status"]')?.textContent).toBe('已选 2 项');+ });+});diff --git a/web/app.js b/web/app.jsindex 3e340aa33..7c1ef42b4 100644--- a/web/app.js+++ b/web/app.js@@ -3712,8 +3712,8 @@ async function closeItemDetail(){}/* ── 沉浸模式(`frontend/src/react/immerse/`)──- 全屏连播、每一格的播放器、手势与动作键都归沉浸岛;壳只留路由入口、地址栏与首页筛选。- 岛所在的 React 包第一次打开沉浸模式时才装载,之前 `immerseApi()` 是 null:那时它必然没开。 */+ 全屏连播、每一格的播放器、手势与动作键都归常驻面 `immerse`,由路由树画;壳只留路由入口、地址栏与首页筛选。+ React 包第一次打开沉浸模式时才装载,之前 `immerseApi()` 是 null:那时它必然没开。 */const immerseHost={filters:()=>state,seekSeconds:()=>appSettings.seekSeconds,diff --git a/web/dist/peach-react.js b/web/dist/peach-react.jsindex 55e7d4001..2d58658b0 100644--- a/web/dist/peach-react.js+++ b/web/dist/peach-react.js@@ -12441,7 +12441,7 @@ function Qte(e, t, n) {}};}-function $te(e) {+function ax(e) {let { state: t, triggerRef: n, label: r, name: i, form: a, isDisabled: o } = e, s = (0, B.useRef)(null), c = (0, B.useRef)(null), { containerProps: l, selectProps: u } = Qte({...e,selectRef: t.collection.size <= 300 ? s : c@@ -12497,7 +12497,7 @@ function $te(e) {}//#endregion//#region node_modules/react-aria/dist/private/separator/useSeparator.mjs-function ene(e) {+function $te(e) {let t = Eg(e, { labelable: !0 }), n;return e.orientation === "vertical" && (n = "vertical"), e.elementType === "hr" ? { separatorProps: t } : { separatorProps: {...t,@@ -12507,7 +12507,7 @@ function ene(e) {}//#endregion//#region node_modules/react-aria/dist/private/switch/useSwitch.mjs-function ax(e, t, n) {+function ene(e, t, n) {let { labelProps: r, inputProps: i, isSelected: a, ...o } = M_(e, t, n);return {labelProps: r,@@ -14179,11785 +14179,3154 @@ function Pne({ host: t }) {] });}//#endregion-//#region node_modules/scheduler/cjs/scheduler.production.js-var Fne = /* @__PURE__ */ xt(((e) => {- function t(e, t) {- var n = e.length;- e.push(t);- a: for (; 0 < n;) {- var r = n - 1 >>> 1, a = e[r];- if (0 < i(a, t)) e[r] = t, e[n] = a, n = r;- else break a;- }- }- function n(e) {- return e.length === 0 ? null : e[0];- }- function r(e) {- if (e.length === 0) return null;- var t = e[0], n = e.pop();- if (n !== t) {- e[0] = n;- a: for (var r = 0, a = e.length, o = a >>> 1; r < o;) {- var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l];- if (0 > i(c, n)) l < a && 0 > i(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s);- else if (l < a && 0 > i(u, n)) e[r] = u, e[l] = n, r = l;- else break a;+//#region node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js+var cS = B.createContext(void 0), lS = (e) => {+ let t = B.useContext(cS);+ if (e) return e;+ if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");+ return t;+}, uS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {+ e.unmount();+}), [e]), /* @__PURE__ */ (0, V.jsx)(cS.Provider, {+ value: e,+ children: t+})), Fne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {+ let i = lS(r), a = B.useRef(t);+ B.useEffect(() => {+ a.current = t;+ });+ let o = B.useMemo(() => {+ if (n) {+ if (typeof n != "object") return;+ let e = i.getQueryCache(), t = n.queries || [], r = [], o = [];+ for (let n of t) {+ let t = e.get(n.queryHash);+ t ? (n.state.dataUpdatedAt > t.state.dataUpdatedAt || n.promise && t.state.status !== "pending" && t.state.fetchStatus !== "fetching" && n.dehydratedAt > t.state.dataUpdatedAt) && o.push(n) : r.push(n);}+ if (r.length > 0 && y(i, { queries: r }, a.current), o.length > 0) return o;}- return t;+ }, [i, n]);+ return B.useEffect(() => {+ o && y(i, { queries: o }, a.current);+ }, [i, o]), e;+}, dS = B.createContext(!1), fS = () => B.useContext(dS), Ine = dS.Provider;+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js+function pS() {+ let e = !1;+ return {+ clearReset: () => {+ e = !1;+ },+ reset: () => {+ e = !0;+ },+ isReset: () => e+ };+}+var mS = B.createContext(pS()), hS = () => B.useContext(mS), Lne = ({ children: e }) => {+ let [t] = B.useState(() => pS());+ return /* @__PURE__ */ (0, V.jsx)(mS.Provider, {+ value: t,+ children: typeof e == "function" ? e(t) : e+ });+}, gS = (e, t, n) => {+ let r = n?.state.error && typeof e.throwOnError == "function" ? C(e.throwOnError, [n.state.error, n]) : e.throwOnError;+ (e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));+}, _S = (e) => {+ B.useEffect(() => {+ e.clearReset();+ }, [e]);+}, vS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), yS = (e, t) => t.state.data === void 0, bS = (e) => {+ if (e.suspense) {+ let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;+ e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));}- function i(e, t) {- var n = e.sortIndex - t.sortIndex;- return n === 0 ? e.id - t.id : n;+}, xS = (e, t) => e?.suspense && t.isPending, SS = (e, t, n) => t.fetchOptimistic(e).catch(() => {+ n.clearReset();+});+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useQueries.js+function CS({ queries: e, ...t }, n) {+ let r = lS(n), i = fS(), a = hS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {+ let t = r.defaultQueryOptions(e);+ return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;+ }), [+ e,+ r,+ i,+ o+ ]);+ s.forEach((e) => {+ bS(e);+ let t = r.getQueryCache().get(e.queryHash);+ gS(e, a, t);+ }), _S(a);+ let [c] = B.useState(() => new _(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;+ B.useSyncExternalStore(B.useCallback((e) => f ? c.subscribe(x.batchCalls(e)) : b, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), B.useEffect(() => {+ c.setQueries(s, t);+ }, [+ s,+ t,+ c+ ]);+ let p = l.some((e, t) => xS(s[t], e)) ? l.flatMap((e, t) => {+ let n = s[t];+ return n && xS(n, e) ? SS(n, new v(r, n), a) : [];+ }) : [];+ if (p.length > 0) throw Promise.all(p);+ let m = l.find((e, t) => {+ let n = s[t];+ return n && vS({+ result: e,+ errorResetBoundary: a,+ throwOnError: n.throwOnError,+ query: r.getQueryCache().get(n.queryHash),+ suspense: n.suspense+ });+ });+ if (m) throw m.error;+ return u(d());+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js+function wS(e, t, n) {+ let r = fS(), i = hS(), a = lS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;+ o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, bS(o), gS(o, i, s), _S(i);+ let [l] = B.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;+ if (B.useSyncExternalStore(B.useCallback((e) => {+ let t = d ? l.subscribe(x.batchCalls(e)) : b;+ return l.updateResult(), t;+ }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), B.useEffect(() => {+ l.setOptions(o);+ }, [o, l]), xS(o, u)) throw SS(o, l, i);+ if (vS({+ result: u,+ errorResetBoundary: i,+ throwOnError: o.throwOnError,+ query: s,+ suspense: o.suspense+ })) throw u.error;+ return o.notifyOnChangeProps ? u : l.trackResult(u);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useQuery.js+function TS(e, t) {+ return wS(e, v, t);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js+function Rne(e, t) {+ return wS({+ ...e,+ enabled: !0,+ suspense: !0,+ throwOnError: yS,+ placeholderData: void 0+ }, v, t);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js+function zne(e, t) {+ return wS({+ ...e,+ enabled: !0,+ suspense: !0,+ throwOnError: yS,+ placeholderData: void 0+ }, h, t);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js+function Bne(e, t) {+ return CS({+ ...e,+ queries: e.queries.map((e) => ({+ ...e,+ suspense: !0,+ throwOnError: yS,+ enabled: !0,+ placeholderData: void 0+ }))+ }, t);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js+function Vne(e, t) {+ let n = lS(t);+ n.getQueryState(e.queryKey) || n.query(e).catch(b);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js+function Hne(e, t) {+ let n = lS(t);+ n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(b);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js+function Une(e) {+ return e;+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js+function Wne(e) {+ return e;+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js+function Gne(e, t) {+ let n = lS(t), r = n.getQueryCache();+ return B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js+function Kne(e, t) {+ let n = lS(t);+ return DS({ filters: {+ ...e,+ status: "pending"+ } }, n).length;+}+function ES(e, t) {+ return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);+}+function DS(e = {}, t) {+ let n = lS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);+ return i.current === null && (i.current = ES(n, e)), B.useEffect(() => {+ r.current = e;+ }), B.useSyncExternalStore(B.useCallback((e) => n.subscribe(() => {+ let t = S(i.current, ES(n, r.current));+ i.current !== t && (i.current = t, x.schedule(e));+ }), [n]), () => i.current, () => i.current);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useMutation.js+function OS(e, t) {+ let n = lS(t), [r] = B.useState(() => new g(n, e));+ B.useEffect(() => {+ r.setOptions(e);+ }, [r, e]);+ let i = B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = B.useCallback((...e) => {+ r.mutate(e[0], e[1]).catch(b);+ }, [r]);+ if (i.error && C(r.options.throwOnError, [i.error])) throw i.error;+ return {+ ...i,+ mutate: a,+ mutateAsync: i.mutate+ };+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js+function qne(e) {+ return e;+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js+function kS(e, t) {+ return wS(e, h, t);+}+//#endregion+//#region node_modules/@tanstack/react-query/build/modern/index.js+var AS = /* @__PURE__ */ St({+ HydrationBoundary: () => Fne,+ IsRestoringProvider: () => Ine,+ QueryClientContext: () => cS,+ QueryClientProvider: () => uS,+ QueryErrorResetBoundary: () => Lne,+ infiniteQueryOptions: () => Wne,+ mutationOptions: () => qne,+ queryOptions: () => Une,+ useInfiniteQuery: () => kS,+ useIsFetching: () => Gne,+ useIsMutating: () => Kne,+ useIsRestoring: () => fS,+ useMutation: () => OS,+ useMutationState: () => DS,+ usePrefetchInfiniteQuery: () => Hne,+ usePrefetchQuery: () => Vne,+ useQueries: () => CS,+ useQuery: () => TS,+ useQueryClient: () => lS,+ useQueryErrorResetBoundary: () => hS,+ useSuspenseInfiniteQuery: () => zne,+ useSuspenseQueries: () => Bne,+ useSuspenseQuery: () => Rne+});+import * as Jne from "/dist/peach-ui.js";+wt(AS, Jne);+/* istanbul ignore file */+//#endregion+//#region src/api.ts+var jS = class extends Error {+ status;+ body;+ constructor(e, t, n = null) {+ super(ye(e, t)), this.name = "ApiError", this.status = t, this.body = n;}- if (e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {- var a = performance;- e.unstable_now = function() {- return a.now();- };- } else {- var o = Date, s = o.now();- e.unstable_now = function() {- return o.now() - s;- };+}, MS = (e) => {+ if (!e || typeof e != "object") return "";+ let t = e;+ for (let e of [+ "message",+ "detail",+ "error"+ ]) {+ let n = t[e];+ if (typeof n == "string" && n) return n;}- var c = [], l = [], u = 1, d = null, f = 3, p = !1, m = !1, h = !1, g = !1, _ = typeof setTimeout == "function" ? setTimeout : null, v = typeof clearTimeout == "function" ? clearTimeout : null, y = typeof setImmediate < "u" ? setImmediate : null;- function b(e) {- for (var i = n(l); i !== null;) {- if (i.callback === null) r(l);- else if (i.startTime <= e) r(l), i.sortIndex = i.expirationTime, t(c, i);- else break;- i = n(l);- }+ return "";+}, W = (e) => ye(e);+async function G(e, t) {+ let n = await fetch(e, {+ headers: { Accept: "application/json" },+ credentials: "same-origin",+ ...t ? { signal: t } : {}+ }), r = null;+ try {+ r = await n.json();+ } catch {}+ if (!n.ok) throw new jS(MS(r) || `请求失败(${n.status})`, n.status);+ return r;+}+async function K(e, t, n = "POST", r) {+ let i = await fetch(e, {+ method: n,+ ...r ? { signal: r } : {},+ headers: {+ Accept: "application/json",+ "Content-Type": "application/json"+ },+ credentials: "same-origin",+ body: JSON.stringify(t)+ }), a = null;+ try {+ a = await i.json();+ } catch {}+ if (!i.ok) throw new jS(MS(a) || `请求失败(${i.status})`, i.status, a);+ return a;+}+//#endregion+//#region src/player/host.ts+var NS = null;+function Yne(e) {+ NS = e;+}+function PS() {+ if (!NS) throw Error("播放器还没有接上宿主(configurePlayer)");+ return NS;+}+//#endregion+//#region src/player/menu.ts+var FS = null;+function Xne(e) {+ FS = e;+}+function Zne() {+ let e = document.getElementById("playerMenu");+ return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;+}+var IS = null, LS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;+function RS() {+ let e = document.getElementById("playerMenu");+ e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && De(e, () => {+ e.innerHTML = "";+ }), IS &&= (IS(), null);+}+async function Qne(e) {+ try {+ return await navigator.clipboard.writeText(e), !0;+ } catch {+ let t = document.createElement("textarea");+ t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.opacity = "0", document.body.append(t), t.select();+ let n = !1;+ try {+ n = document.execCommand("copy");+ } catch {}+ return t.remove(), n;}- function x(e) {- if (h = !1, b(e), !m) {- if (n(c) !== null) m = !0, S || (S = !0, O());- else {- var t = n(l);- t !== null && j(x, t.startTime - e);- }+}+function $ne(e) {+ let t = !!FS?.inMiniplayer(e), n = e.peachItem, r = FS?.kind(e) ?? "item", i = (t) => {+ let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);+ return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;+ }, a = (e, t) => {+ Qne(i(e)).then((e) => PS().toast(e ? t : "复制失败,请手动复制地址栏", {+ timeout: 4e3,+ warn: !e+ }));+ }, o = [{+ icon: "repeat",+ label: "循环播放",+ checked: !!e.loop(),+ run: () => e.loop(!e.loop())+ }, t ? {+ icon: "maximize-2",+ label: "展开",+ run: () => FS?.expand()+ } : {+ icon: "picture-in-picture-2",+ label: "迷你播放器",+ run: () => FS?.toMiniplayer()+ }];+ document.pictureInPictureEnabled && o.push({+ icon: "player-pip",+ fill: !0,+ label: "画中画",+ run: () => e.el().querySelector(".vjs-picture-in-picture-control")?.click()+ }), o.push({+ icon: "link",+ label: "复制视频网址",+ run: () => a(!1, "已复制视频网址")+ }), o.push({+ icon: "link",+ label: "复制当前时间的视频网址",+ run: () => a(!0, "已复制当前时间的视频网址")+ });+ let s = document.getElementById("playerStatsBtn");+ return !t && s && !s.hidden && o.push({+ icon: "chart",+ label: "播放统计",+ run: () => s.click()+ }), o;+}+function ere(e, t, n) {+ let r = Zne();+ RS();+ let i = PS().stage();+ i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");+ let a = $ne(e);+ r.innerHTML = a.map((e, t) => {+ let n = e.checked !== void 0;+ return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${LS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? LS(R("check"), "data-player-menu-check") : ""}</button>`;+ }).join(""), ze(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;+ let o = [...r.querySelectorAll("[data-player-menu]")];+ o.forEach((e) => {+ e.onclick = (t) => {+ t.stopPropagation();+ let n = a[Number(e.dataset.playerMenu)];+ RS(), n?.run();+ };+ });+ let s = (e) => {+ r.contains(e.target) || RS();+ }, c = (e) => {+ if (e.key === "Escape") {+ e.preventDefault(), e.stopPropagation(), RS();+ return;}- }- var S = !1, C = -1, w = 5, T = -1;- function E() {- return g ? !0 : !(e.unstable_now() - T < w);- }- function D() {- if (g = !1, S) {- var t = e.unstable_now();- T = t;- var i = !0;- try {- a: {- m = !1, h && (h = !1, v(C), C = -1), p = !0;- var a = f;- try {- b: {- for (b(t), d = n(c); d !== null && !(d.expirationTime > t && E());) {- var o = d.callback;- if (typeof o == "function") {- d.callback = null, f = d.priorityLevel;- var s = o(d.expirationTime <= t);- if (t = e.unstable_now(), typeof s == "function") {- d.callback = s, b(t), i = !0;- break b;- }- d === n(c) && r(c), b(t);- } else r(c);- d = n(c);- }- if (d !== null) i = !0;- else {- var u = n(l);- u !== null && j(x, u.startTime - t), i = !1;- }- }- break a;- } finally {- d = null, f = a, p = !1;- }- i = void 0;- }- } finally {- i ? O() : S = !1;+ if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;+ e.preventDefault();+ let t = o.indexOf(document.activeElement);+ o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();+ }, l = (t) => {+ Ve(t, e.el()) && RS();+ };+ setTimeout(() => {+ document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {+ capture: !0,+ passive: !0+ });+ }, 0), IS = () => {+ document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);+ }, o[0]?.focus();+}+function tre(e) {+ e.el().addEventListener("contextmenu", (t) => {+ t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), ere(e, t.clientX, t.clientY));+ }), e.on("dispose", RS);+}+//#endregion+//#region src/player/registry.ts+var zS = null, BS = () => zS;+function VS(e) {+ zS = e;+}+function HS(e) {+ !e || e.isDisposed() || requestAnimationFrame(() => {+ e.isDisposed() || e.trigger("resize");+ });+}+//#endregion+//#region src/player/stats.ts+function US(e) {+ let t = e.currentTime || 0;+ for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);+ return 0;+}+function nre(e) {+ let t = e.currentTime || 0;+ for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);+ return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;+}+var WS = 3e3;+function GS(e, t) {+ let n = Number(e) || 0, r = ve(t) || 0;+ return n > 0 && r > 0 ? n * 8 / r : 0;+}+function rre(e) {+ let t = [], n = null, r = 0, i = 0;+ return {+ bitrate: Number(e) || 0,+ get bits() {+ return i;+ },+ get seconds() {+ return r;+ },+ bytes() {+ return this.bitrate > 0 ? r * this.bitrate / 8 : 0;+ },+ sample(e) {+ if (!e) return i;+ let a = performance.now(), o = nre(e), s = e.currentTime || 0;+ if (n) {+ let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;+ !i && c > 0 && (r += c), e * 1e3 > WS * 2 && (t.length = 0);}+ for (n = {+ at: a,+ frontier: o,+ ct: s+ }, t.push({+ at: a,+ advanced: r+ }); t.length > 2 && a - t[0].at > WS;) t.shift();+ let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;+ return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;}- }- var O;- if (typeof y == "function") O = function() {- y(D);- };- else if (typeof MessageChannel < "u") {- var k = new MessageChannel(), A = k.port2;- k.port1.onmessage = D, O = function() {- A.postMessage(null);- };- } else O = function() {- _(D, 0);};- function j(t, n) {- C = _(function() {- t(e.unstable_now());- }, n);- }- e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {- e.callback = null;- }, e.unstable_forceFrameRate = function(e) {- 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : w = 0 < e ? Math.floor(1e3 / e) : 5;- }, e.unstable_getCurrentPriorityLevel = function() {- return f;- }, e.unstable_next = function(e) {- switch (f) {- case 1:- case 2:- case 3:- var t = 3;- break;- default: t = f;- }- var n = f;- f = t;- try {- return e();- } finally {- f = n;- }- }, e.unstable_requestPaint = function() {- g = !0;- }, e.unstable_runWithPriority = function(e, t) {- switch (e) {- case 1:- case 2:- case 3:- case 4:- case 5: break;- default: e = 3;- }- var n = f;- f = e;- try {- return t();- } finally {- f = n;- }- }, e.unstable_scheduleCallback = function(r, i, a) {- var o = e.unstable_now();- switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, r) {- case 1:- var s = -1;- break;- case 2:- s = 250;- break;- case 5:- s = 1073741823;- break;- case 4:- s = 1e4;- break;- default: s = 5e3;- }- return s = a + s, r = {- id: u++,- callback: i,- priorityLevel: r,- startTime: a,- expirationTime: s,- sortIndex: -1- }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, j(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;- }, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) {- var t = f;- return function() {- var n = f;- f = t;- try {- return e.apply(this, arguments);- } finally {- f = n;- }- };+}+var KS = 24;+function qS(e, t) {+ e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > KS && e.splice(0, e.length - KS);+}+var JS = "peach-player-panel";+function YS(e, t, n, r) {+ let i = [...Array(Math.max(0, KS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {+ if (e === null) return "<i aria-hidden=\"true\"></i>";+ let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));+ return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;+ }).join("");+ return `<span data-player-stats-plot="${t}" role="img" aria-label="${L(r)}">${o}</span>`;+}+function ire() {+ return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>+ <div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>+ <div data-player-stats="" id="playerStats" role="status" hidden></div>`;+}+function XS(e, t = "") {+ let n = t ? encodeURIComponent(t) : "";+ return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));+}+function ZS(e, t = "") {+ let n = XS(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;+ return r > 0 && i > 0 ? r * 8 / i : 0;+}+function QS(e, t, n = "", r = null) {+ let i = 0;+ try {+ i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;+ } catch {}+ return i > 0 ? i : r ? Number(r.bits) || 0 : ZS(t, n);+}+function $S(e) {+ if (!Number.isFinite(e) || e <= 0) return "加载中…";+ let t = e / 8;+ return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;+}+function are(e, t) {+ return e > 0 ? $S(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : $S(0);+}+//#endregion+//#region src/player/controls.ts+function eC(e, t, n = "") {+ if (!e) return () => {};+ let r = e.querySelector(":scope>.vjs-peach-tooltip");+ r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));+ let i = r.querySelector(".vjs-peach-tooltip-text"), a = r.querySelector("kbd");+ n && e.setAttribute("aria-keyshortcuts", n);+ let o = (r = t, o = "") => {+ i.textContent = r, a.textContent = n, a.hidden = !n, e.setAttribute("aria-label", o || r), e.removeAttribute("title");};-})), Ine = /* @__PURE__ */ xt(((e, t) => {- t.exports = Fne();-})), Lne = /* @__PURE__ */ xt(((e) => {- var t = Ine(), n = Ot(), r = At();- function i(e) {- var t = "https://react.dev/errors/" + e;- if (1 < arguments.length) {- t += "?args[]=" + encodeURIComponent(arguments[1]);- for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);- }- return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";- }- function a(e) {- return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11);- }- function o(e) {- for (var t = e, n = t; n && !n.alternate;) t = n, t.flags & 4098 && (e = t.return), n = t.return;- for (; t.return;) t = t.return;- return t.tag === 3 ? e : null;- }- function s(e) {- if (e.tag === 13) {- var t = e.memoizedState;- if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;- }- return null;- }- function c(e) {- if (e.tag === 31) {- var t = e.memoizedState;- if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;- }- return null;- }- function l(e) {- if (o(e) !== e) throw Error(i(188));- }- function u(e) {- var t = e.alternate;- if (!t) {- if (t = o(e), t === null) throw Error(i(188));- return t === e ? e : null;- }- for (var n = e, r = t;;) {- var a = n.return;- if (a === null) break;- var s = a.alternate;- if (s === null) {- if (r = a.return, r !== null) {- n = r;- continue;- }- break;- }- if (a.child === s.child) {- for (s = a.child; s;) {- if (s === n) return l(a), e;- if (s === r) return l(a), t;- s = s.sibling;- }- throw Error(i(188));+ return o(), o;+}+function ore(e, t = !0) {+ let n = PS(), r = n.settings();+ r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));+}+var tC = /* @__PURE__ */ new WeakMap();+function nC(e) {+ if (!e) return;+ let t = PS().settings().theaterMode;+ e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), tC.get(e)?.(t ? "默认视图" : "影院模式");+}+function rC(e, t = !0) {+ let n = PS(), r = n.settings();+ r.theaterMode = !!e, t && n.saveSettings();+ let i = n.stage();+ i?.toggleAttribute("data-theater", r.theaterMode), nC(i?.querySelector("[data-player-theater]")), HS(BS());+}+function sre(e) {+ let t = PS().stage(), n = t?.querySelector("[data-ambient-canvas]");+ if (!t || !n) return () => {};+ let r = n.getContext("2d", { alpha: !1 });+ if (!r) return () => {};+ let i = !1, a = 0, o = 0, s = null, c = () => {+ s = null, r.clearRect(0, 0, n.width, n.height), t.style.removeProperty("--video-glow");+ }, l = () => {+ if (!(e.readyState < 2)) try {+ r.drawImage(e, 0, 0, n.width, n.height);+ let i = r.getImageData(0, 0, n.width, n.height).data, a = 0, o = 0, c = 0, l = 0;+ for (let e = 0; e < i.length; e += 16) a += i[e], o += i[e + 1], c += i[e + 2], l++;+ if (l) {+ let e = [+ Math.round(a / l),+ Math.round(o / l),+ Math.round(c / l)+ ];+ (!s || e.some((e, t) => Math.abs(e - s[t]) >= 6)) && (s = e, t.style.setProperty("--video-glow", `rgb(${e.join(" ")})`));}- if (n.return !== r.return) n = a, r = s;- else {- for (var c = !1, u = a.child; u;) {- if (u === n) {- c = !0, n = a, r = s;- break;- }- if (u === r) {- c = !0, r = a, n = s;- break;- }- u = u.sibling;- }- if (!c) {- for (u = s.child; u;) {- if (u === n) {- c = !0, n = s, r = a;- break;- }- if (u === r) {- c = !0, r = s, n = a;- break;- }- u = u.sibling;- }- if (!c) throw Error(i(189));- }+ } catch {}+ }, u = (t) => {+ e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));+ }, d = (t, n) => {+ if (!(i || t !== o)) {+ if (!PS().settings().ambientMode) {+ c();+ return;}- if (n.alternate !== r) throw Error(i(190));+ e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));}- if (n.tag !== 3) throw Error(i(188));- return n.stateNode.current === n ? e : t;- }- function d(e) {- var t = e.tag;- if (t === 5 || t === 26 || t === 27 || t === 6) return e;- for (e = e.child; e !== null;) {- if (t = d(e), t !== null) return t;- e = e.sibling;+ }, f = () => {+ i || !PS().settings().ambientMode || (l(), e.paused || u(++o));+ }, p = (e) => {+ let n = !!e.detail.enabled;+ t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());+ };+ return document.addEventListener("peachambientchange", p), e.addEventListener("play", f), e.addEventListener("loadeddata", f), f(), () => {+ i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();+ };+}+function cre(e, t, n = 0, r = null) {+ let i = e.getChild("controlBar")?.el();+ if (!i || i.querySelector("[data-player-quality]")) return;+ let a = document.createElement("div");+ a.className = "vjs-peach-settings vjs-control", a.dataset.playerQuality = "", a.innerHTML = `<button type="button" class="vjs-peach-settings-toggle" aria-label="播放器设置" aria-expanded="false">+ ${R("settings")}<span data-player-quality-badge hidden></span></button>+ <div class="vjs-peach-settings-menu" role="menu" aria-label="播放器设置" aria-hidden="true"></div>`;+ let o = i.querySelector(".vjs-fullscreen-control");+ i.insertBefore(a, o || null);+ let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");+ eC(s, "设置");+ let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {+ let n = [Number(e), Number(t)].filter((e) => e > 0);+ return n.length ? Math.min(...n) : 0;+ }, m = () => {+ let e = [];+ if (u?.length) {+ u.length > 1 && e.push({+ key: "auto",+ label: "自动",+ pixels: 0+ });+ for (let n = 0; n < u.length; n++) {+ let r = u[n], i = p(r.width, r.height) || (u.length === 1 ? p(t.videoWidth, t.videoHeight) : 0);+ e.push({+ key: String(n),+ label: i ? `${i}p` : u.length === 1 ? "当前画质" : `线路 ${n + 1}`,+ pixels: i+ });+ }+ return e;}- return null;- }- function f(e, t, n, r, i, a) {- for (; e !== null;) {- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && n(e, r, i, a) || (e.tag !== 22 || e.memoizedState === null) && (t || e.tag !== 5 && e.tag !== 27) && f(e.child, t, n, r, i, a)) return !0;- e = e.sibling;+ if (d?.length) return d.map((e) => ({+ key: `h${e.height}`,+ label: e.label || `${e.height}p`,+ pixels: e.height+ }));+ let r = p(t.videoWidth, t.videoHeight) || Number(n) || 0;+ return [{+ key: "original",+ label: r ? `${r}p` : "原画",+ pixels: r+ }];+ }, h = () => {+ let e = m(), n = e.find((e) => e.key === f) || e[0], r = u?.[u.selectedIndex ?? -1], i = n.key === "auto" ? p(r?.width, r?.height) || p(t.videoWidth, t.videoHeight) : n.pixels;+ return c.textContent = i >= 2160 ? "4K" : i >= 720 ? "HD" : "", c.hidden = !c.textContent, {+ options: e,+ active: n+ };+ }, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {+ l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(JS, { detail: "settings" }));+ }, v = () => _(!1), y = (e) => {+ e.detail !== "settings" && v();+ };+ document.addEventListener(JS, y);+ let b = null, x = (e, t) => {+ let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");+ if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;+ b &&= (clearTimeout(b), null);+ let i = l.getBoundingClientRect().height;+ n.classList.add("vjs-peach-panel-leaving"), r.classList.add(t > 0 ? "vjs-peach-panel-animate-forward" : "vjs-peach-panel-animate-back"), l.append(r), l.style.height = `${i}px`;+ let a = r.scrollHeight;+ return requestAnimationFrame(() => {+ l.classList.add("vjs-peach-popup-animating"), l.style.height = `${a}px`, r.classList.remove("vjs-peach-panel-animate-forward", "vjs-peach-panel-animate-back"), n.classList.add(t > 0 ? "vjs-peach-panel-animate-back" : "vjs-peach-panel-animate-forward"), b = setTimeout(() => {+ b = null, n.remove(), l.classList.remove("vjs-peach-popup-animating"), l.style.height = "";+ }, 250);+ }), r;+ }, S = (e, t) => e.querySelector(t), C = (t = 0) => {+ let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${PS().settings().ambientMode}">+ ${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${R("player-menu-next")}</button>+ <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${L(n.label)}</b>${R("player-menu-next")}</button></div>`, t);+ S(i, "[data-player-ambient]").onclick = () => {+ ore(!PS().settings().ambientMode), C();+ }, S(i, "[data-player-speed]").onclick = () => D(), S(i, "[data-player-quality-view]").onclick = () => O();+ }, w = .05, T = [+ 1,+ 1.25,+ 1.5,+ 2,+ 3+ ], E = (e) => Number.isInteger(e) ? e.toFixed(1) : String(e), D = (t = 1) => {+ let n = .25, r = (e) => Math.min(3, Math.max(n, Number(e.toFixed(2)))), i = x(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>播放速度</strong></div>+ <div class="vjs-peach-speed-panel"><div class="vjs-peach-speed-display"><output data-player-speed-display></output></div>+ <div class="vjs-peach-speed-slider"><button type="button" class="vjs-peach-speed-button" data-player-speed-step="-1" aria-label="播放速度减 0.05">${R("minus")}</button>+ <input type="range" class="vjs-peach-speed-range" data-player-speed-range min="${n}" max="3" step="${w}" aria-label="播放速度">+ <button type="button" class="vjs-peach-speed-button" data-player-speed-step="1" aria-label="播放速度加 0.05">${R("plus")}</button></div>+ <div class="vjs-peach-speed-chips">${T.map((e) => `<span class="vjs-peach-speed-preset"><button type="button" class="vjs-peach-speed-button" data-player-speed-option="${e}" aria-pressed="false">${E(e)}</button>${e === 1 ? "<span class=\"vjs-peach-speed-preset-label\">正常</span>" : ""}</span>`).join("")}</div></div>`, t), a = i.querySelector("[data-player-speed-display]"), o = i.querySelector("[data-player-speed-range]"), s = r(Number(e.playbackRate()) || 1), c = () => {+ a.textContent = `${s.toFixed(2)}x`, o.value = String(s), o.style.setProperty("--peach-speed-percent", `${(s - n) / 2.75 * 100}%`), i.querySelectorAll("[data-player-speed-option]").forEach((e) => e.setAttribute("aria-pressed", String(Number(e.dataset.playerSpeedOption) === s)));+ }, l = (t) => {+ s = r(t), e.playbackRate(s), c();+ };+ S(i, "[data-player-menu-back]").onclick = () => C(-1), o.oninput = () => l(Number(o.value)), i.querySelectorAll("[data-player-speed-step]").forEach((e) => {+ e.onclick = () => l(s + Number(e.dataset.playerSpeedStep) * w);+ }), i.querySelectorAll("[data-player-speed-option]").forEach((e) => {+ e.onclick = () => l(Number(e.dataset.playerSpeedOption));+ }), c();+ }, O = (n = 1) => {+ let { options: r, active: i } = h(), a = x(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>清晰度</strong></div><div class="vjs-peach-panel-menu">${r.map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-quality-option="${L(e.key)}" aria-checked="${e.key === i.key}"><span class="vjs-peach-option-check">${e.key === i.key ? R("player-option-check") : ""}</span><span class="vjs-peach-option-label">${L(e.label)}</span></button>`).join("")}</div>`, n);+ S(a, "[data-player-menu-back]").onclick = () => C(-1), a.querySelectorAll("[data-player-quality-option]").forEach((n) => {+ n.onclick = () => {+ if (f = n.dataset.playerQualityOption || "auto", u?.length) for (let e = 0; e < u.length; e++) u[e].enabled = f === "auto" || f === String(e);+ if (d?.length && f.startsWith("h")) {+ let n = f.slice(1), r = e.currentTime() || 0, i = !e.paused(), a = new URL(e.currentSrc() || t.src, location.origin);+ a.searchParams.set("quality", n), e.src({+ src: a.pathname + a.search,+ type: "video/mp4"+ }), e.one("loadedmetadata", () => {+ r > 0 && e.currentTime(r), i && e.play()?.catch(() => {});+ });+ }+ C(-1);+ };+ });+ };+ s.onclick = (e) => {+ e.stopPropagation();+ let t = !g();+ t && C(), _(t);+ };+ let k = (e) => {+ a.contains(e.target) || v();+ };+ return document.addEventListener("pointerdown", k), a.addEventListener("keydown", (e) => {+ e.key === "Escape" && (v(), s.focus());+ }), t.addEventListener("loadedmetadata", () => {+ g() ? C() : h();+ }), t.addEventListener("resize", () => {+ g() ? C() : h();+ }), u?.on?.([+ "addqualitylevel",+ "removequalitylevel",+ "change"+ ], () => {+ g() ? C() : h();+ }), e.on("dispose", () => {+ document.removeEventListener("pointerdown", k), document.removeEventListener(JS, y), b && clearTimeout(b);+ }), h(), lre(e, a), ure(e), (e) => {+ d = e?.length ? e : null, g() ? C() : h();+ };+}+function lre(e, t) {+ let n = e.getChild("controlBar")?.el();+ if (!n || n.querySelector("[data-player-theater]")) return;+ let r = PS().settings().theaterMode, i = document.createElement("div");+ i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);+ let a = i.querySelector("button");+ tC.set(a, eC(a, "影院模式", "T")), nC(a), a.onclick = (e) => {+ e.stopPropagation(), rC(!PS().settings().theaterMode);+ };+}+function ure(e) {+ let t = e.getChild("controlBar")?.el();+ if (!t || t.querySelector(".vjs-peach-right-controls")) return;+ let n = t.querySelector(":scope>.vjs-play-control");+ n && !n.querySelector(":scope>.vjs-peach-hover") && n.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>");+ let r = (e, t) => e ? (e.dataset.peachExplicitIcon = "", e.insertAdjacentHTML("beforeend", R(t, "vjs-peach-control-icon")), e.querySelector(":scope>.vjs-peach-control-icon use")) : null, i = (e, t) => {+ if (!e) return null;+ let n = document.getElementById(`i-${t}`);+ if (!n) return null;+ e.dataset.peachExplicitIcon = "";+ let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");+ return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;+ }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = eC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {+ let t = e.paused() || e.ended(), n = t ? s : c;+ o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");+ };+ e.on([+ "play",+ "pause",+ "ended"+ ], d), d();+ let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");+ m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));+ let h = eC(p, "静音", "M"), g = () => {+ let t = e.muted() || e.volume() === 0;+ m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");+ };+ e.on("volumechange", g), g();+ let _ = document.createElement("div");+ _.className = "vjs-peach-bezel", _.setAttribute("role", "status"), _.hidden = !0, _.innerHTML = `<span class="vjs-peach-bezel-icon">${R("player-play")}</span>`;+ let v = _.querySelector("use"), y = null, b = (e, t) => {+ v?.setAttribute("href", `#i-${e}`), _.setAttribute("aria-label", t), _.hidden = !1, _.classList.remove("vjs-peach-bezel-run"), _.offsetWidth, _.classList.add("vjs-peach-bezel-run"), y && clearTimeout(y), y = setTimeout(() => {+ _.hidden = !0, _.classList.remove("vjs-peach-bezel-run");+ }, 1e3);+ };+ e.el().insertBefore(_, t), e.el().addEventListener("click", (t) => {+ let n = t.target;+ if (n.closest(".vjs-mute-control")) {+ let t = e.muted() || e.volume() === 0;+ b(t ? "player-volume" : "player-volume-muted", t ? "取消静音" : "静音");+ } else if (n.closest(".vjs-play-control,.vjs-tech,.vjs-poster")) {+ let t = e.paused() || e.ended();+ b(t ? "player-play" : "player-pause", t ? "播放" : "暂停");}- return !1;- }- function p(e) {- for (e = e.return; e !== null;) {- if (e.tag === 3 || e.tag === 5 || e.tag === 27) return e;- e = e.return;+ }, !0), e.on("dispose", () => {+ y && clearTimeout(y);+ });+ let x = document.createElement("button"), S = !1;+ x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";+ let C = x.querySelector(".vjs-peach-time-text"), w = eC(x, "显示剩余时间"), T = () => {+ let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = de(Math.max(0, n - t));+ C.textContent = `${S ? `-${r}` : de(t)} / ${de(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${de(n)};点击显示已播放时间` : `已播放 ${de(t)},总时长 ${de(n)};点击显示剩余时间`);+ };+ x.onclick = (e) => {+ e.stopPropagation(), S = !S, T();+ }, e.on([+ "timeupdate",+ "durationchange",+ "loadedmetadata"+ ], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);+ let E = t.querySelector(":scope>.vjs-picture-in-picture-control");+ r(E, "player-pip");+ let D = eC(E, "画中画");+ e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));+ let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = eC(O, "全屏", "F"), j = () => {+ let t = !!e.isFullscreen();+ e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), HS(e);+ };+ e.on([+ "fullscreenchange",+ "enterFullWindow",+ "exitFullWindow"+ ], j), j();+ let M = [+ E,+ t.querySelector(":scope>.vjs-peach-settings"),+ t.querySelector(":scope>.vjs-peach-theater"),+ O+ ].filter((e) => !!e);+ if (!M.length) return;+ let N = document.createElement("div");+ N.className = "vjs-peach-right-controls", N.setAttribute("aria-label", "播放器视图控制"), t.insertBefore(N, M[0]), M.forEach((e) => {+ e.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>"), N.append(e);+ });+ let P = document.createElement("div");+ P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);+ let ee = P.querySelector("button"), F = eC(ee, "展开控件"), I = (t) => {+ e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");+ };+ ee.onclick = (t) => {+ t.stopPropagation(), I(!e.el().classList.contains("vjs-peach-right-expanded"));+ };+ let te = () => {+ let t = e.el(), n = t.clientWidth < 528;+ t.style.setProperty("--peach-player-h", `${t.clientHeight}px`), t.classList.toggle("vjs-peach-xsmall", n), n || I(!1);+ }, ne = new ResizeObserver(te);+ ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), I(!1), te();+}+function dre(e, t, n = {}) {+ let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");+ if (!r || r.querySelector("[data-player-seek-preview]")) return;+ let i = n.thumbnail !== !1, a = document.createElement("div");+ a.className = "vjs-peach-seek-preview", a.dataset.playerSeekPreview = "", a.hidden = !0, a.innerHTML = `${i ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, r.append(a);+ let o = a.querySelector(".vjs-peach-seek-frame"), s = a.querySelector("img"), c = a.querySelector("span"), l = null, u = "";+ o && t.id && ce(`/api/timeline?id=${encodeURIComponent(t.id)}`).then((e) => {+ e && e.frames > 0 && e.interval > 0 && (l = e);+ }).catch(() => {});+ let d = (e, n, r, i) => {+ let a = n.columns || 10, o = a * (n.rows || 10), s = Math.min(n.frames - 1, Math.max(0, Math.floor(e / n.interval))), c = Math.floor(s / o), l = s % o, d = Math.ceil(Math.min(o, n.frames - c * o) / a), f = `/timeline?id=${encodeURIComponent(t.id)}&s=${c}`;+ f !== u && (u = f, i.src = f), r.hidden = !1, t.width && t.height && (r.style.aspectRatio = `${t.width} / ${t.height}`), i.style.objectFit = "fill", i.style.width = `${a * 100}%`, i.style.height = `${d * 100}%`, i.style.left = `${-(l % a) * 100}%`, i.style.top = `${-Math.floor(l / a) * 100}%`;+ }, f = -1, p = (n) => {+ if (n.pointerType === "touch") return;+ let i = ve(e.duration()) || ve(t.duration);+ if (!i) return;+ let u = r.getBoundingClientRect(), p = Math.min(1, Math.max(0, (n.clientX - u.left) / u.width)), m = o ? Math.min(240, Math.max(160, u.width * .28)) : 76, h = Math.min(u.width - m / 2, Math.max(m / 2, n.clientX - u.left));+ if (a.style.left = `${h}px`, a.hidden = !1, c.textContent = de(i * p), !o || !s) return;+ if (l) {+ d(i * p, l, o, s);+ return;}- return null;- }- function m(e) {- var t = !1;- for (e = e.return; e !== null && (e.tag === 4 && (t = !0), e.tag !== 3 && e.tag !== 5 && e.tag !== 27);) e = e.return;- return t;- }- function h(e) {- var t = [null, null], n = p(e);- return n === null || g(t, e, n.child, { foundSelf: !1 }), t;- }- function g(e, t, n, r) {- for (; n !== null;) {- if (n === t) r.foundSelf = !0;- else if (n.tag === 5 || n.tag === 27 || n.tag === 6) {- if (r.foundSelf) return e[1] = n, !0;- e[0] = n;- } else if ((n.tag !== 22 || n.memoizedState === null) && g(e, t, n.child, r)) return !0;- n = n.sibling;- }- return !1;- }- function _(e) {- switch (e.tag) {- case 5:- case 27:- case 6: return e.stateNode;- case 3: return e.stateNode.containerInfo;- default: throw Error(i(559));- }- }- var v = null, y = null;- function b(e, t, n) {- return e === n || e === t && (v = e, !0);- }- function x(e, t, n) {- return e === n ? (y = e, !1) : e === t && (y !== null && (v = e), !0);+ let g = Math.min(8, Math.floor(p * 9));+ g !== f && (f = g, o.hidden = !1, s.removeAttribute("style"), s.src = `/poster?id=${encodeURIComponent(t.id)}&c=${g}`);+ }, m = () => {+ a.hidden = !0;+ };+ s && o && (s.onerror = () => {+ o.hidden = !0;+ }), r.addEventListener("pointermove", p), r.addEventListener("pointerleave", m), e.on("dispose", () => {+ r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);+ });+}+function fre(e, t) {+ let n = navigator.mediaSession;+ if (!n || typeof n.setActionHandler != "function") return;+ let r = () => ve(e.duration()) || ve(t.duration) || 0, i = (t) => {+ let n = r();+ e.currentTime(Math.max(0, n ? Math.min(n, t) : t));+ }, a = () => Math.max(1, Number(PS().settings().seekSeconds) || 10), o = [+ ["play", () => {+ e.play();+ }],+ ["pause", () => e.pause()],+ ["seekbackward", (t) => i(e.currentTime() - (t?.seekOffset || a()))],+ ["seekforward", (t) => i(e.currentTime() + (t?.seekOffset || a()))],+ ["seekto", (e) => {+ typeof e?.seekTime == "number" && i(e.seekTime);+ }]+ ], s = [];+ for (let [e, t] of o) try {+ n.setActionHandler(e, t), s.push(e);+ } catch {}+ let c = () => {+ let t = r(), i = Math.max(0, Number(e.currentTime()) || 0);+ if (typeof n.setPositionState == "function" && !(!t || i > t)) try {+ n.setPositionState({+ duration: t,+ position: i,+ playbackRate: Math.max(.001, Number(e.playbackRate()) || 1)+ });+ } catch {}+ };+ e.on([+ "timeupdate",+ "durationchange",+ "ratechange",+ "seeked",+ "loadedmetadata"+ ], c), c(), e.on("dispose", () => {+ s.forEach((e) => {+ try {+ n.setActionHandler(e, null);+ } catch {}+ });+ try {+ n.setPositionState?.();+ } catch {}+ });+}+function pre(e) {+ let t = e.el().querySelector(".vjs-loading-spinner");+ !t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");+}+function mre(e, t) {+ ce(`/api/assets/${t}/subtitles`).then((t) => {+ !e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {+ e.addRemoteTextTrack({+ kind: "subtitles",+ src: t.src,+ srclang: t.language || "",+ label: t.label,+ default: !1+ }, !0);+ });+ }).catch(() => {});+}+//#endregion+//#region src/player/dispose.ts+function iC(e) {+ if (!e || e.isDisposed()) return;+ let t = e.el()?.querySelector("video");+ try {+ e.pause();+ } catch {}+ if (t) {+ try {+ t.onpause?.(new Event("pause"));+ } catch {}+ t.onplay = null, t.ontimeupdate = null, t.onpause = null, t.onended = null;}- function S(e) {- if (e === null) return null;- do- e = e === null ? null : e.return;- while (e && e.tag !== 5 && e.tag !== 27 && e.tag !== 3);- return e || null;+ try {+ e.dispose();+ } catch {}+}+//#endregion+//#region src/player/stream.ts+function aC() {+ return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;+}+function oC(e, t) {+ return {+ src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,+ type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"+ };+}+function sC(e) {+ return e.location === "online" && e.follow_item_id ? {+ src: `/follow-stream?id=${e.follow_item_id}`,+ type: "video/mp4"+ } : null;+}+async function cC(e, t) {+ let n = sC(e);+ if (n) return n;+ try {+ let n = await ce(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);+ if (n?.protocol === "hls" && n.src) return {+ src: n.src,+ type: n.mime_type || "application/vnd.apple.mpegurl"+ };+ } catch {}+ return oC(e, t);+}+function lC(e) {+ e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {+ method: "POST",+ credentials: "same-origin",+ keepalive: !0+ }).then((e) => e.json()).then((e) => {+ document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);+ }).catch(() => {});+}+var uC = "";+function dC() {+ return uC;+}+function fC() {+ return uC ||= aC(), uC;+}+var hre = (e) => oC(e, fC()), gre = (e) => cC(e, fC());+function pC() {+ let e = uC;+ e && (uC = "", lC(e));+}+//#endregion+//#region src/player/telemetry.ts+function mC(e, t, n = {}) {+ if (!t) return;+ let r = 0, i = 0, a = 0, o = null;+ t.addEventListener("seeking", () => {+ a++;+ });+ let s = (e) => e ? document.querySelector(e) : null, c = () => {+ let r = ve(e.duration) || ve(t.duration);+ if (!r) return;+ let i = Math.min(t.currentTime / r, 1), a = s(n.watched), o = s(n.mark), c = s(n.ratio);+ a && (a.style.width = `${(i * 100).toFixed(1)}%`), o && (o.style.left = `${(i * 100).toFixed(1)}%`), c && (c.textContent = `${(i * 100).toFixed(0)}%`);+ }, l = (n) => {+ let r = ve(e.duration) || ve(t.duration);+ !i && !n && !a || (ce("/api/activity", {+ method: "POST",+ body: JSON.stringify({+ id: e.id,+ position: t.currentTime,+ duration: r,+ delta: i,+ ended: !!n,+ seeks: a+ })+ }).then((e) => {+ let t = document.getElementById("realTxt");+ if (t && e && e.real_ratio != null) {+ let n = Math.min(e.real_ratio, 1) * 100;+ t.textContent = `${n.toFixed(0)}%`;+ let r = document.getElementById("realBar");+ r && (r.style.width = `${n.toFixed(1)}%`);+ }+ }).catch(() => {}), i = 0, a = 0);+ }, u = () => {+ o &&= (clearInterval(o), null);+ };+ t.onplay = () => {+ r = t.currentTime, u(), o = setInterval(() => l(!1), 1e4);+ }, t.ontimeupdate = () => {+ let e = t.currentTime - r;+ e > 0 && e < 2 && (i += e), r = t.currentTime, c();+ }, t.onpause = () => {+ u(), l(!1);+ }, t.onended = () => {+ u(), l(!0), n.onEnded?.();+ }, t.addEventListener("emptied", () => {+ u(), l(!1);+ }, { once: !0 }), c();+}+function _re(e, t) {+ let n = 0, r = 0, i = !1, a = null, o = (n) => {+ let i = ve(e.duration) || ve(t.duration);+ !r && !n || (ce("/api/follow/activity", {+ method: "POST",+ body: JSON.stringify({+ item: e.id,+ position: t.currentTime,+ duration: i,+ delta: r,+ ended: !!n+ })+ }).catch(() => {}), r = 0);+ }, s = () => {+ a && clearInterval(a), a = null;+ };+ t.addEventListener("play", () => {+ i || (i = !0, ce("/api/follow/play", {+ method: "POST",+ body: JSON.stringify({ item: e.id })+ }).then((t) => {+ e.status = t?.status || e.status;+ }).catch(() => {})), n = t.currentTime, s(), a = setInterval(() => o(!1), 1e4);+ }), t.addEventListener("timeupdate", () => {+ let e = t.currentTime - n;+ e > 0 && e < 2 && (r += e), n = t.currentTime;+ }), t.addEventListener("pause", () => {+ s(), o(!1);+ }), t.addEventListener("ended", () => {+ s(), o(!0);+ }), t.addEventListener("emptied", () => {+ s(), o(!1);+ }, { once: !0 });+}+//#endregion+//#region src/player/videojs.ts+var hC = "/vendor/videojs/8.24.1/", gC = (e) => new Promise((t, n) => {+ let r = document.head.querySelector(`script[src="${e}"]`);+ if (r?.dataset.loaded) {+ t();+ return;}- function C(e, t, n) {- for (var r = 0, i = e; i; i = n(i)) r++;- i = 0;- for (var a = t; a; a = n(a)) i++;- for (; 0 < r - i;) e = n(e), r--;- for (; 0 < i - r;) t = n(t), i--;- for (; r--;) {- if (e === t || t !== null && e === t.alternate) return e;- e = n(e), t = n(t);+ let i = r ?? document.createElement("script");+ i.addEventListener("load", () => {+ i.dataset.loaded = "1", t();+ }, { once: !0 }), i.addEventListener("error", () => {+ i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));+ }, { once: !0 }), r || (i.src = e, document.head.appendChild(i));+}), _C = () => globalThis.videojs, vC = null;+function yC() {+ let e = _C();+ return e ? Promise.resolve(e) : (vC ??= gC(`${hC}video.min.js`).then(() => gC(`${hC}lang/zh-CN.js`)).then(() => {+ let e = _C();+ if (!e) throw Error("videojs unavailable");+ return e;+ }).catch((e) => {+ throw vC = null, e;+ }), vC);+}+//#endregion+//#region src/player/immerse-player.ts+var vre = {+ controls: !1,+ preload: "auto",+ posterImage: !1,+ titleBar: !1,+ textTrackDisplay: !1,+ loadingSpinner: !1,+ bigPlayButton: !1,+ controlBar: !1,+ errorDisplay: !1,+ textTrackSettings: !1+};+function yre(e, t) {+ let { item: n, session: r } = t, i = null, a = !1;+ return Promise.all([cC(n, r), yC().catch(() => null)]).then(([o, s]) => {+ if (a) return;+ let c = oC(n, r), l = String(o.type || "").includes("mpegurl");+ if (!s) e.src = (l ? c : o).src;+ else {+ let t = s(e, vre);+ i = t, l && t.one("error", () => {+ a || t.src(c);+ }), t.src(o);}- return null;- }- var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), ne = Symbol.for("react.legacy_hidden"), re = Symbol.for("react.memo_cache_sentinel"), ie = Symbol.for("react.view_transition"), ae = Symbol.for("react.recoverable"), oe = Symbol.iterator;- function se(e) {- return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);+ mC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();+ }), () => {+ a || (a = !0, lC(r), i ? iC(i) : (e.pause(), e.removeAttribute("src"), e.load()));+ };+}+//#endregion+//#region src/player/detail-player.ts+var bC = /* @__PURE__ */ new WeakMap(), xC = null, SC = null, CC = null;+function wC() {+ xC &&= (clearInterval(xC), null), SC &&= (clearInterval(SC), null), CC &&= (clearTimeout(CC), null);+}+async function bre(e, t, n, r = {}) {+ let i = BS();+ if (i && !i.isDisposed()) return i;+ let a = PS(), o = r.resume ?? null;+ o?.autoplay && (n = !0);+ let s = () => r.source ? Promise.resolve(r.source) : gre(e), c;+ try {+ c = await yC();+ } catch {+ return t.controls = !0, s().then((e) => {+ t.src = e.src, n && t.play().catch(() => {});+ }).catch(() => {}), null;}- var ce = Symbol.for("react.client.reference");- function le(e) {- if (e == null) return null;- if (typeof e == "function") return e.$$typeof === ce ? null : e.displayName || e.name || null;- if (typeof e == "string") return e;- switch (e) {- case O: return "Fragment";- case A: return "Profiler";- case k: return "StrictMode";- case P: return "Suspense";- case ee: return "SuspenseList";- case te: return "Activity";- case ie: return "ViewTransition";+ let l = c(t, {+ controls: !0,+ preload: "metadata",+ language: "zh-CN",+ responsive: !0,+ poster: r.poster || O(e, a.settings().javImage),+ controlBar: {+ pictureInPictureToggle: !0,+ currentTimeDisplay: !1,+ timeDivider: !1,+ durationDisplay: !1,+ remainingTimeDisplay: !1,+ progressControl: { seekBar: {+ mouseTimeDisplay: !1,+ playProgressBar: { timeTooltip: !1 }+ } }}- if (typeof e == "object") switch (e.$$typeof) {- case D: return "Portal";- case M: return e.displayName || "Context";- case j: return (e._context.displayName || "Context") + ".Consumer";- case N:- var t = e.render;- return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;- case F: return t = e.displayName || null, t === null ? le(e.type) || "Memo" : t;- case I:- t = e._payload, e = e._init;- try {- return le(e(t));- } catch {}+ });+ VS(l), l.peachItem = e, tre(l), l.on("loadedmetadata", () => {+ let e = l.el()?.querySelector("video");+ e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);+ });+ let u = ve(e.duration), d = {+ speed: [],+ activity: [],+ buffer: []+ }, f = Number(r.size ?? e.size) || 0, p = rre(GS(f, e.duration)), m = 0, h = !1, g = () => BS() === l && !l.isDisposed(), _ = () => {+ if (!u || h || !g()) return;+ let e = Number(l.duration());+ (!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {+ h = !1;+ }));+ }, v = () => String(l.currentSource()?.type || "").includes("mpegurl"), y = {+ chrome: null,+ ready: !1,+ updateStats: () => {}+ };+ bC.set(l, y), y.updateStats = () => {+ let n = y.chrome?.statsPanel;+ if (!n || n.hidden || !g()) return;+ let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = dC(), h = s ? XS(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;+ p.sample(t);+ let x = QS(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);+ m = S;+ let w = US(t);+ qS(d.speed, x), qS(d.activity, C), qS(d.buffer, w);+ let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [+ "网络活动",+ `${_ ? pe(_) : "—"} · ${h.length} 请求`,+ `最近一秒网络活动 ${C ? pe(C) : "0 B"}`+ ] : [+ "已下载",+ O ? `${pe(S)}${f > 0 ? ` / ${pe(f)}` : ""}` : `${S.toFixed(0)} 秒`,+ O ? `最近一秒下载 ${C ? pe(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`+ ];+ n.innerHTML = `<dl>${[+ ["视频 ID / 会话", c && !r.source ? `${e.id} / ${c.slice(0, 8)}` : `${e.id}`],+ ["视口 / 帧", `${Math.round(a.width)}×${Math.round(a.height)} / ${i ? `${i.totalVideoFrames - i.droppedVideoFrames} of ${i.totalVideoFrames}` : "—"}`],+ ["当前 / 最佳分辨率", `${o} / ${e.width || t.videoWidth || "?"}×${e.height || t.videoHeight || "?"}`],+ ["编码 / 传输", `${E} / ${s ? "HLS" : "HTTP Range"}`],+ [+ "连接速度",+ D,+ YS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)+ ],+ [+ k[0],+ k[1],+ YS(d.activity, "activity", Math.max(1, ...d.activity), k[2])+ ],+ [+ "缓冲健康",+ `${w.toFixed(1)} 秒`,+ YS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)+ ],+ ["播放时间", `${de(t.currentTime)} / ${de(u || l.duration())}`],+ ["日期", (/* @__PURE__ */ new Date()).toLocaleString()]+ ].map(([e, t, n]) => `<dt>${L(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${L(t)}</span></dd>`).join("")}</dl>`;+ }, l.on([+ "loadstart",+ "loadedmetadata",+ "durationchange",+ "error"+ ], _);+ let b = !1, x = !1, S = () => {+ let n = y.chrome?.netBadge;+ if (!n || l.isDisposed()) return;+ let r = v();+ r || p.sample(t);+ let i = QS(l, e.id, dC(), r ? null : p), a = r ? $S(i) : are(i, US(t));+ n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${L(a)}</span>`;+ }, C = () => {+ let e = y.chrome?.netBadge;+ !e || !e.isConnected || (e.hidden = !1, S(), SC && clearInterval(SC), SC = setInterval(S, 500));+ }, w = () => {+ let e = y.chrome?.netBadge;+ e && (CC && clearTimeout(CC), CC = setTimeout(() => {+ e.hidden = !0, SC &&= (clearInterval(SC), null);+ }, 1400));+ };+ return l.on([+ "loadstart",+ "progress",+ "waiting",+ "stalled"+ ], C), l.on(["canplay", "playing"], () => {+ S(), w();+ }), l.on("error", () => {+ if (b && !x && !l.isDisposed()) {+ x = !0, b = !1, l.src(hre(e)), n && l.play()?.catch(() => {});+ return;}- return null;- }- var ue = Array.isArray, L = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = {- pending: !1,- data: null,- method: null,- action: null- }, pe = [], me = -1;- function R(e) {- return { current: e };- }- function he(e) {- 0 > me || (e.current = pe[me], pe[me] = null, me--);- }- function ge(e, t) {- me++, pe[me] = e.current, e.current = t;- }- var _e = R(null), ve = R(null), ye = R(null), be = R(null);- function xe(e, t) {- switch (ge(ye, t), ge(ve, e), ge(_e, null), t.nodeType) {- case 9:- case 11:- e = (e = t.documentElement) && (e = e.namespaceURI) ? xp(e) : 0;- break;- default: if (e = t.tagName, t = t.namespaceURI) t = xp(t), e = Sp(t, e);- else switch (e) {- case "svg":- e = 1;- break;- case "math":- e = 2;- break;- default: e = 0;+ r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {+ t[String(e.location)] !== !1 || l.isDisposed() || l.error({+ code: 2,+ message: `脱盘模式 · ${a.offlineReason(String(e.location))}`+ });+ });+ }), l.ready(() => {+ _();+ let n = cre(l, t, e.height, r.qualities ?? null);+ r.mediaPromise?.then((t) => {+ if (!g()) return;+ n?.(t?.qualities?.length ? t.qualities : null);+ let r = Number(t?.size) || 0;+ r > 0 && !f && (f = r, p.bitrate = GS(r, e.duration));+ }).catch(() => {}), dre(l, e, { thumbnail: !r.source }), fre(l, e), pre(l), r.source || mre(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);+ }), s().then((e) => {+ g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {+ l.isDisposed() || l.currentTime(o.time);+ }), n && l.play()?.catch(() => {}));+ }).catch(() => {}), l;+}+var xre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";+function TC(e, t = null) {+ if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", xre), e.querySelector(":scope > #playerStatsBtn")) return;+ let n = document.createElement("template");+ n.innerHTML = ire(), e.insertBefore(n.content, t);+}+function EC(e, t) {+ let n = bC.get(e);+ if (!n || e.isDisposed()) return () => {};+ let r = (e) => t.querySelector(`:scope > #${e}`), i = {+ statsButton: r("playerStatsBtn"),+ statsPanel: r("playerStats"),+ netBadge: r("playerNet")+ };+ n.chrome = i;+ let { statsButton: a, statsPanel: o } = i, s = () => {};+ if (a && o) {+ a.hidden = !n.ready;+ let e = () => {+ o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), xC &&= (clearInterval(xC), null));+ };+ a.onclick = () => {+ if (!o.hidden) {+ e();+ return;}- }- he(_e), ge(_e, e);- }- function Se() {- he(_e), he(ve), he(ye);- }- function Ce(e) {- var t = e.memoizedState;- t !== null && (_h._currentValue = t.memoizedState, ge(be, e)), t = _e.current;- var n = Sp(t, e.type);- t !== n && (ge(ve, e), ge(_e, n));- }- function we(e) {- ve.current === e && (he(_e), he(ve)), be.current === e && (he(be), _h._currentValue = fe);+ document.dispatchEvent(new CustomEvent(JS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), xC && clearInterval(xC), xC = setInterval(n.updateStats, 1e3);+ };+ let t = (t) => {+ t.detail !== "stats" && e();+ };+ document.addEventListener(JS, t), s = () => document.removeEventListener(JS, t);}- var Te, Ee;- function De(e) {- if (Te === void 0) try {- throw Error();- } catch (e) {- var t = e.stack.trim().match(/\n( *(at )?)/);- Te = t && t[1] || "", Ee = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";- }- return "\n" + Te + e + Ee;- }- var Oe = !1;- function ke(e, t) {- if (!e || Oe) return "";- Oe = !0;- var n = Error.prepareStackTrace;- Error.prepareStackTrace = void 0;- try {- var r = { DetermineComponentFrameRoot: function() {- try {- if (t) {- var n = function() {- throw Error();- };- if (Object.defineProperty(n.prototype, "props", { set: function() {- throw Error();- } }), typeof Reflect == "object" && Reflect.construct) {- try {- Reflect.construct(n, []);- } catch (e) {- var r = e;- }- Reflect.construct(e, [], n);- } else {- try {- n.call();- } catch (e) {- r = e;- }- n = !1;- try {- var i = Object.getOwnPropertyDescriptor(e.prototype, "props");- Object.defineProperty(e.prototype, "props", {- configurable: !0,- set: function() {- throw Error();- }- }), n = !0, new e();- } finally {- n && (i === void 0 ? delete e.prototype.props : Object.defineProperty(e.prototype, "props", i));- }- }- } else {- try {- throw Error();- } catch (e) {- r = e;- }- (n = e()) && typeof n.catch == "function" && n.catch(function() {});- }- } catch (e) {- if (e && r && typeof e.stack == "string") return [e.stack, r.stack];- }- return [null, null];- } };- r.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";- var i = Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot, "name");- i && i.configurable && Object.defineProperty(r.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });- var a = r.DetermineComponentFrameRoot(), o = a[0], s = a[1];- if (o && s) {- var c = o.split("\n"), l = s.split("\n");- for (i = r = 0; r < c.length && !c[r].includes("DetermineComponentFrameRoot");) r++;- for (; i < l.length && !l[i].includes("DetermineComponentFrameRoot");) i++;- if (r === c.length || i === l.length) for (r = c.length - 1, i = l.length - 1; 1 <= r && 0 <= i && c[r] !== l[i];) i--;- for (; 1 <= r && 0 <= i; r--, i--) if (c[r] !== l[i]) {- if (r !== 1 || i !== 1) do- if (r--, i--, 0 > i || c[r] !== l[i]) {- var u = "\n" + c[r].replace(" at new ", " at ");- return e.displayName && u.includes("<anonymous>") && (u = u.replace("<anonymous>", e.displayName)), u;- }- while (1 <= r && 0 <= i);- break;- }- }- } finally {- Oe = !1, Error.prepareStackTrace = n;- }- return (n = e ? e.displayName || e.name : "") ? De(n) : "";+ let c = e.el().querySelector("video"), l = c ? sre(c) : () => {}, u = !0, d = () => {+ u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, wC()));+ };+ return e.one("dispose", d), d;+}+function DC(e, t) {+ if (t.kind === "immerse") return yre(e, t);+ let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = PS(), c = t.chrome === !1 ? null : e.parentElement;+ c && TC(c, e);+ let l = { resume: t.resume ?? null };+ if (n === "follow") l = {+ ...l,+ source: {+ src: `/follow-stream?id=${r.id}${i ? `&media=${i.index}` : ""}`,+ type: i?.media_type || r.media_type || "video/mp4"+ },+ checkSourceStatus: !1,+ size: i?.size,+ poster: r.thumb_url,+ mediaPromise: ce(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)+ };+ else {+ let t = O(r, s.settings().javImage);+ t && (e.poster = t), e.addEventListener("play", () => {+ ce("/api/play", {+ method: "POST",+ body: JSON.stringify({ id: r.id })+ }).catch(() => {});+ }, { once: !0 }), mC(r, e, {+ watched: "#watched",+ mark: "#mark",+ ratio: "#ratioTxt"+ });}- function Ae(e, t) {- switch (e.tag) {- case 26:- case 27:- case 5: return De(e.type);- case 16: return De("Lazy");- case 13: return e.child !== t && t !== null ? De("Suspense Fallback") : De("Suspense");- case 19: return De("SuspenseList");- case 0:- case 15: return ke(e.type, !1);- case 11: return ke(e.type.render, !1);- case 1: return ke(e.type, !0);- case 31: return De("Activity");- case 30: return De("ViewTransition");- default: return "";+ let u = null, d = !1, f = () => {}, p = () => {+ f(), !(!u || a?.(u)) && (BS() === u && (VS(null), wC()), iC(u));+ };+ return bre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {+ if (u = t, d) {+ p();+ return;}- }- function je(e) {- try {- var t = "", n = null;- do- t += Ae(e, n), n = e, e = e.return;- while (e);- return t;- } catch (e) {- return "\nError generating stack: " + e.message + "\n" + e.stack;+ if (!t) {+ o?.(null);+ return;}- }- var Me = Object.prototype.hasOwnProperty, Ne = t.unstable_scheduleCallback, Pe = t.unstable_cancelCallback, Fe = t.unstable_shouldYield, Ie = t.unstable_requestPaint, Le = t.unstable_now, Re = t.unstable_getCurrentPriorityLevel, ze = t.unstable_ImmediatePriority, Be = t.unstable_UserBlockingPriority, Ve = t.unstable_NormalPriority, He = t.unstable_LowPriority, Ue = t.unstable_IdlePriority, We = t.log, Ge = t.unstable_setDisableYieldValue, Ke = null, qe = null;- function Je(e) {- if (typeof We == "function" && Ge(e), qe && typeof qe.setStrictMode == "function") try {- qe.setStrictMode(Ke, e);- } catch {}- }- var Ye = Math.clz32 ? Math.clz32 : Qe, Xe = Math.log, Ze = Math.LN2;- function Qe(e) {- return e >>>= 0, e === 0 ? 32 : 31 - (Xe(e) / Ze | 0) | 0;- }- var $e = 256, et = 262144, tt = 4194304;- function nt(e) {- var t = e & 42;- if (t !== 0) return t;- switch (e & -e) {- case 1: return 1;- case 2: return 2;- case 4: return 4;- case 8: return 8;- case 16: return 16;- case 32: return 32;- case 64: return 64;- case 128: return 128;- case 256:- case 512:- case 1024:- case 2048:- case 4096:- case 8192:- case 16384:- case 32768:- case 65536:- case 131072: return e & -e;- case 262144:- case 524288:- case 1048576:- case 2097152: return e & 3932160;- case 4194304:- case 8388608:- case 16777216:- case 33554432: return e & 62914560;- case 67108864: return 67108864;- case 134217728: return 134217728;- case 268435456: return 268435456;- case 536870912: return 536870912;- case 1073741824: return 0;- default: return e;+ c && (f = EC(t, c)), n === "follow" && _re(r, e), o?.(t);+ }), () => {+ d = !0, p();+ };+}+//#endregion+//#region src/player/playback.ts+function OC(e) {+ e && (e.paused ? e.play()?.catch(() => {}) : e.pause());+}+function Sre(e, t) {+ let n = e.duration, r = (e.currentTime || 0) + t;+ e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);+}+//#endregion+//#region src/jav-artwork.ts+function kC(e) {+ return e === "thumbnail" ? "thumbnail" : "cover";+}+function Cre(e, t) {+ return e.is_jav && e.code && e.has_cover && (kC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";+}+var AC = .704;+function jC(e, t) {+ let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));+ return t && n.set("exclude_vertical", "1"), n.toString();+}+var wre = (e, t) => [+ "catalog-grid",+ "catalog",+ e,+ t+], Tre = (e, t) => [+ "catalog-grid",+ "entity",+ e,+ t+];+async function Ere(e, t, n, r, i) {+ let a = new URLSearchParams(e);+ a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");+ let o = await G(`/api/items?${a}`, i), s = {+ ...o,+ items: o.items || [],+ offset: t+ };+ return !t && !s.items.length && !r && (s.libraryEmpty = (await G("/api/items?limit=1&thumb=0", i)).total === 0), s;+}+var Dre = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, Ore = (e, t) => {+ let n = t.reduce((e, t) => e + t.items.length, 0);+ return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;+};+function MC(e) {+ let t = jC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";+ return {+ queryKey: wre(t, e.revision || 0),+ queryFn: ({ pageParam: e, signal: i }) => Ere(t, e, n, r, i),+ initialPageParam: 0,+ getNextPageParam: Dre(n)+ };+}+function kre(e) {+ return {+ queryKey: Tre(e.entityKey || "", e.revision || 0),+ queryFn: async ({ pageParam: t, signal: n }) => {+ if (!e.fetchPage) return {+ items: [],+ total: 0,+ offset: t+ };+ let r = await e.fetchPage(t, n);+ return {+ ...r,+ items: r.items || [],+ offset: t+ };+ },+ initialPageParam: 0,+ getNextPageParam: Ore+ };+}+async function Are(e, t) {+ if (e.mode !== "catalog") return;+ let n = MC(e);+ await z.fetchInfiniteQuery({+ ...n,+ queryFn: ({ pageParam: e }) => n.queryFn({+ pageParam: e,+ signal: t+ })+ });+}+function jre(e, t, n) {+ return n ? e.filter((e) => {+ let n = e.part_group?.key;+ if (n) {+ if (t.parts.has(n)) return !1;+ t.parts.add(n);}- }- function rt(e, t, n) {- var r = e.pendingLanes;- if (r === 0) return 0;- var i = 0, a = e.suspendedLanes, o = e.pingedLanes;- e = e.warmLanes;- var s = r & 134217727;- return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = nt(n))) : i = nt(o) : i = nt(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = nt(n))) : i = nt(o)) : i = nt(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;- }- function z(e, t) {- return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;- }- function it(e, t) {- t & 8 && (t |= t & 32);- var n = e.entangledLanes;- if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {- var r = 31 - Ye(n), i = 1 << r;- t |= e[r], n &= ~i;+ let r = e.edition_group?.key;+ if (r) {+ if (t.editions.has(r)) return !1;+ t.editions.add(r);}- return t;- }- function at(e, t) {- switch (e) {- case 1:- case 2:- case 4:- case 8:- case 64: return t + 250;- case 16:- case 32:- case 128:- case 256:- case 512:- case 1024:- case 2048:- case 4096:- case 8192:- case 16384:- case 32768:- case 65536:- case 131072:- case 262144:- case 524288:- case 1048576:- case 2097152: return t + 5e3;- case 4194304:- case 8388608:- case 16777216:- case 33554432: return -1;- case 67108864:- case 134217728:- case 268435456:- case 536870912:- case 1073741824: return -1;- default: return -1;+ return !0;+ }) : [...e];+}+var NC = (e, t) => !!e && !!Cre(e, t);+function Mre(e, t) {+ let n = (e) => NC(e, t) && !!(e.creator || (e.performers || []).length || e.studio);+ return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => NC(e, t)) || e[e.length - 1];+}+function Nre(e, { collapse: t, mix: n, javImage: r }) {+ let i = {+ parts: /* @__PURE__ */ new Set(),+ editions: /* @__PURE__ */ new Set()+ }, a = /* @__PURE__ */ new Set(), o = [], s = [];+ for (let c of e) {+ s.push(o.length);+ let e = jre(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({+ kind: "card",+ item: e+ }));+ if (n && e.length >= 8) {+ let t = Mre(e, r);+ t && l.splice(7, 0, {+ kind: "mix",+ seed: t+ });}+ o.push(...l);}- function ot() {- var e = tt;- return tt <<= 1, !(tt & 62914560) && (tt = 4194304), e;- }- function st(e) {- for (var t = [], n = 0; 31 > n; n++) t.push(e);- return t;- }- function ct(e, t) {- e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);+ return {+ tiles: o,+ pageStarts: s+ };+}+function Pre(e, t, n) {+ let r = Math.max(1, n), i = [];+ for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);+ return i;+}+function Fre(e, t) {+ let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));+ return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();+}+function Ire(e, t) {+ let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;+ for (let t of n) r.push({+ start: i,+ tiles: e.slice(i, t.at),+ strip: t+ }), i = t.at;+ return r.push({+ start: i,+ tiles: e.slice(i),+ strip: null+ }), r;+}+function PC(e, t) {+ FC((t) => t.id === e, t);+}+function FC(e, t) {+ z.setQueriesData({+ queryKey: ["catalog-grid"],+ predicate: (e) => Array.isArray(e.state.data?.pages)+ }, (n) => !n || !n.pages.some((t) => t.items.some(e)) ? n : {+ ...n,+ pages: n.pages.map((n) => n.items.some(e) ? {+ ...n,+ items: n.items.map((n) => e(n) ? {+ ...n,+ ...t+ } : n)+ } : n)+ });+}+//#endregion+//#region src/react/item-detail/item-detail.ts+var IC = (e) => ["item", e], LC = (e) => [+ "item-queue",+ e.kind,+ e.kind === "playlist" ? e.playlistId : e.seedId+], Lre = (e, t) => [+ "item-related",+ e,+ t+], Rre = (e) => `/api/item?id=${e}`, zre = (e, t) => `/api/related?id=${e}&limit=${t}`, RC = "/api/playlist", zC = "/api/feedback", BC = "/api/item-tag", VC = "/api/watch-later", HC = "/api/quality-goal", UC = "/api/preference", WC = class extends Error {};+async function GC(e, t) {+ let n = await G(Rre(e), t);+ if (n.error) throw new WC(n.error);+ return n;+}+async function KC(e, t, n) {+ if (e.kind === "mix") {+ let r = e.seedId, [i, a] = await Promise.all([GC(r, n), t.mixRelated(r)]);+ return z.setQueryData(IC(i.id), i), {+ kind: "mix",+ seedId: r,+ title: `Mix · ${P(i, t.tagLabel)}`,+ items: [i, ...a.filter((e) => e.id !== i.id)]+ };}- function lt(e, t, n, r, i, a) {- var o = e.pendingLanes;- e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;- var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;- for (n = o & ~n; 0 < n;) {- var u = 31 - Ye(n), d = 1 << u;- s[u] = 0, c[u] = -1;- var f = l[u];- if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {- var p = f[u];- p !== null && (p.lane &= -536870913);- }- n &= ~d;+ if (e.kind === "playlist") return qC(await G(`${RC}?id=${e.playlistId}`, n));+ let r = await G(`/api/${e.kind}?id=${e.seedId}`, n);+ if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");+ return {+ kind: e.kind,+ seedId: e.seedId,+ title: `${e.kind === "parts" ? "分卷" : "版本"} · ${r.title || ""}`,+ items: r.items+ };+}+var qC = (e) => ({+ kind: "playlist",+ playlistId: e.id,+ title: e.name,+ items: e.items || [],+ currentAssetId: e.current_asset_id+}), JC = (e) => e.disposal === "vanished";+function YC(e, t) {+ if (e.kind === "mix") return t;+ let n = e.kind === "playlist" ? e.items.filter((e) => !JC(e)) : e.items;+ return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;+}+function Bre(e, t) {+ if (t?.kind !== "parts") return e;+ let n = t.items.find((t) => t.id === e.id)?.part_label || "";+ return e.part_label === n ? e : {+ ...e,+ part_label: n+ };+}+async function Vre(e, t) {+ let { queue: n, actions: r } = e, i = null, a = !1;+ if (n) {+ let o = LC(n);+ try {+ let r = n.fresh ? void 0 : z.getQueryData(o);+ a = !r && n.kind === "mix", i = r || await z.fetchQuery({+ queryKey: o,+ queryFn: () => KC(n, e.helpers, t),+ staleTime: 0+ });+ } catch (n) {+ if (t.aborted) throw n;+ e.id == null ? r.redirect({ kind: "gone" }) : r.redirect({+ kind: "item",+ id: e.id+ });+ return;}- r !== 0 && ut(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));}- function ut(e, t, n) {- e.pendingLanes |= t, e.suspendedLanes &= ~t;- var r = 31 - Ye(t);- e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;+ let o = i ? YC(i, e.id) : e.id;+ if (o == null) {+ r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });+ return;}- function dt(e, t) {- var n = e.entangledLanes |= t;- for (e = e.entanglements; n;) {- var r = 31 - Ye(n), i = 1 << r;- i & t | e[r] & t && (e[r] |= t), n &= ~i;+ let s, c = a && o === i?.seedId ? z.getQueryData(IC(o)) : void 0;+ try {+ s = c || await z.fetchQuery({+ queryKey: IC(o),+ queryFn: () => GC(o, t),+ staleTime: 0+ });+ } catch (e) {+ if (e instanceof WC) {+ r.redirect({ kind: "gone" });+ return;}+ throw e;}- function ft(e, t) {- var n = t & -t;- return n = n & 42 ? 1 : pt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;- }- function pt(e) {- switch (e) {- case 2:- e = 1;- break;- case 8:- e = 4;- break;- case 32:- e = 16;- break;- case 256:- case 512:- case 1024:- case 2048:- case 4096:- case 8192:- case 16384:- case 32768:- case 65536:- case 131072:- case 262144:- case 524288:- case 1048576:- case 2097152:- case 4194304:- case 8388608:- case 16777216:- case 33554432:- e = 128;- break;- case 268435456:- e = 134217728;- break;- default: e = 0;- }- return e;- }- function mt(e) {- return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;- }- function ht() {- var e = de.p;- return e === 0 ? (e = window.event, e === void 0 ? 32 : Mh(e.type)) : e;- }- function gt(e, t) {- var n = de.p;- try {- return de.p = e, t();- } finally {- de.p = n;- }- }- var _t = Math.random().toString(36).slice(2), vt = "__reactFiber$" + _t, yt = "__reactProps$" + _t, bt = "__reactContainer$" + _t, xt = "__reactEvents$" + _t, St = "__reactListeners$" + _t, Ct = "__reactHandles$" + _t, wt = "__reactResources$" + _t, Tt = "__reactMarker$" + _t, Et = "__reactLoad$" + _t;- function Dt(e) {- delete e[vt], delete e[yt], delete e[St], delete e[Ct];- }- function kt(e) {- var t;- if (t = e[vt]) return t;- for (var n = e.parentNode; n;) {- if (t = n[bt] || n[vt]) {- if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = Sm(e); e !== null;) {- if (n = e[vt]) return n;- e = Sm(e);- }- return t;- }- e = n, n = e.parentNode;- }- return null;- }- function jt(e) {- if (e = e[vt] || e[bt]) {- var t = e.tag;- if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;- }- return null;- }- function Mt(e) {- var t = e.tag;- if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;- throw Error(i(33));- }- function B(e) {- var t = e[wt];- return t ||= e[wt] = {- hoistableStyles: /* @__PURE__ */ new Map(),- hoistableScripts: /* @__PURE__ */ new Map()- }, t;- }- function Nt(e) {- e[Tt] = !0;- }- function Pt(e) {- e[Et] = void 0;- }- var Ft = /* @__PURE__ */ new Set(), It = {};- function Lt(e, t) {- Rt(e, t), Rt(e + "Capture", t);- }- function Rt(e, t) {- for (It[e] = t, e = 0; e < t.length; e++) Ft.add(t[e]);- }- var zt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Bt = {}, Vt = {};- function Ht(e) {- return Me.call(Vt, e) ? !0 : Me.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);+ s.location === "online" && s.follow_item_id && r.redirect({+ kind: "follow",+ id: Number(s.follow_item_id)+ });+}+function Hre(e) {+ let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {+ let t = me(e.name);+ return !e.name || n.has(t) ? !1 : (n.add(t), !0);+ }, i = (t.performer?.length ? t.performer : (e.performers || []).map((e) => ({+ id: null,+ name: e+ }))).filter(r), a = t.studio?.[0] || !e.studio ? [] : [{+ id: null,+ name: e.studio,+ has_logo: !!e.has_studio_logo,+ ...e.studio_logo_version ? { logo_version: e.studio_logo_version } : {}+ }], o = [...t.studio || [], ...a].filter(r), s = o.flatMap((e) => e.makers || []).filter(r), c = (t.creator || []).filter(r);+ return {+ cast: i,+ studios: o,+ makers: s,+ creators: c,+ series: (t.series || []).filter(r),+ unowned: !i.length && !c.length && !String(e.creator || "").trim()+ };+}+var XC = (e) => Math.min(Math.max(e || 0, 0), 100), ZC = (e) => Math.round(XC(e) / 20), Ure = (e) => {+ let t = ZC(e);+ return t ? `${t} 星` : "未评分";+}, Wre = (e, t) => {+ let n = t * 20;+ return n === (e || 0) ? 0 : n;+};+function Gre(e, t) {+ let n = /* @__PURE__ */ new Map();+ return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {+ let r = me(t.tagLabel(e.k)), i = n.get(r);+ (!i || me(e.k) === r && me(i.k) !== r) && n.set(r, e);+ }), [...n.values()].slice(0, 40);+}+var QC = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), $C = (e, t) => ({+ ...e,+ tags: (e.tags || []).filter((e) => me(e.k) !== me(t))+}), ew = (e, t) => QC(e, t.k) ? e : {+ ...e,+ tags: [...e.tags || [], t]+}, tw = "peach.recentTags";+function nw() {+ try {+ let e = JSON.parse(localStorage.getItem(tw) || "[]");+ return Array.isArray(e) ? e.map(String) : [];+ } catch {+ return [];}- var Ut = !1;- function Wt() {- var e = Ut;- return Ut = !1, e;+}+function Kre(e) {+ try {+ let t = nw().filter((t) => me(t) !== me(e));+ localStorage.setItem(tw, JSON.stringify([e, ...t].slice(0, 12)));+ } catch {}+}+function qre(e, t, n) {+ let r = me(e), i = new Map(t.map((e) => [me(e.k), e])), a = t.filter((e) => !r || me(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(me(e)) || {+ k: e,+ n: 0+ }).filter((e, t, n) => n.findIndex((t) => me(t.k) === me(e.k)) === t).slice(0, 12), s = a.some((e) => me(e.k) === r);+ return {+ recent: o,+ results: a,+ create: r && !s ? e.trim() : ""+ };+}+var Jre = {+ 中字: "subtitle",+ 无码: "uncensored",+ 无码破解: "cracked",+ 有码: "censored"+}, Yre = {+ mix: "Mix",+ parts: "分卷",+ editions: "版本",+ playlist: "播放列表"+};+function Xre(e) {+ let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;+ return {+ title: Yre[e.kind],+ summary: e.kind === "editions" ? n : `${e.title} · ${n}`+ };+}+var rw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, Zre = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(rw(e.part_label))}</small>` : "";+function Qre(e, t, n, r) {+ let i = e.filter((e) => e !== t), a = i.indexOf(n);+ return i.splice(a + +!!r, 0, t), i;+}+var $re = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);+function eie(e, t) {+ return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";+}+function tie(e) {+ let t = Number(e.duration) > 0 ? Number(e.duration) : 0;+ return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;+}+function iw(e, t) {+ return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";+}+//#endregion+//#region src/react/immerse/immerse.ts+var nie = (e, t, n) => [+ "immerse-list",+ e,+ t,+ n+];+function rie(e) {+ let t = new URLSearchParams();+ for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));+ return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();+}+var iie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));+function aie(e, t = Math.random) {+ for (let n = e.length - 1; n > 0; n--) {+ let r = Math.floor(t() * (n + 1));+ [e[n], e[r]] = [e[r], e[n]];}- function Gt(e, t, n) {- if (Ht(t)) {- if (n === null) e.removeAttribute(t);- else {- switch (typeof n) {- case "undefined":- case "function":- case "symbol":- e.removeAttribute(t);- return;- case "boolean":- var r = t.toLowerCase().slice(0, 5);- if (r !== "data-" && r !== "aria-") {- e.removeAttribute(t);- return;- }- }- e.setAttribute(t, n);- }- }+ return e;+}+async function oie(e, t) {+ return aie(((await G(`/api/items?${e}`)).items || []).filter((e) => iie(e, t)));+}+var aw = (e) => z.ensureQueryData({+ queryKey: IC(e),+ queryFn: ({ signal: t }) => GC(e, t)+});+function sie(e, t) {+ let n = new Set(e.map((e) => e.id));+ return e.concat(t.filter((e) => !n.has(e.id)));+}+function cie(e) {+ let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";+ return {+ who: n,+ kind: r,+ name: t.length ? t[0] : e.creator || "未归属",+ ref: r && e.entity_refs?.[r]?.[0] || null+ };+}+function lie(e, t, n) {+ if (!e || !t || !n || !Number.isFinite(n)) return null;+ let r = e / t;+ return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";+}+function uie(e, t) {+ return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);+}+var die = 15e3, ow = {+ open: !1,+ idle: !1,+ wide: !1,+ loading: null,+ shown: null+}, sw = null, cw = null, lw = ow, uw = /* @__PURE__ */ new Set(), dw = 0, fw = 0, pw = 0, mw = "", hw = [], gw = 0, _w = !1, vw = !1, yw = null, bw = /* @__PURE__ */ new Set(), xw = "", Sw = null, Cw = 0, ww = null, Tw = !1;+function Ew() {+ if (!sw) throw Error("沉浸模式还没有接上宿主(configureImmerse)");+ return sw;+}+function fie(e) {+ return uw.add(e), () => {+ uw.delete(e);+ };+}+function pie() {+ for (let e of [...uw]) e();+}+function Dw() {+ (0, $f.flushSync)(pie);+}+function Ow() {+ let e = Sw ? ZS(Sw.id) : 0;+ return e ? `${xw} · ${$S(e)}` : xw;+}+function kw(e, t = null) {+ if (clearInterval(Cw), Cw = 0, e === null) {+ lw = {+ ...lw,+ loading: null+ }, Dw();+ return;}- function Kt(e, t, n) {- if (n === null) e.removeAttribute(t);- else {- switch (typeof n) {- case "undefined":- case "function":- case "symbol":- case "boolean":- e.removeAttribute(t);- return;+ xw = e, Sw = t, lw = {+ ...lw,+ loading: Ow()+ }, Dw(), Cw = window.setInterval(() => {+ Sw = hw[gw] ?? null, lw = {+ ...lw,+ loading: Ow()+ }, Dw();+ }, 500);+}+function mie(e) {+ let t = document.createElement("div");+ t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);+ let n = document.createElement("video");+ n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), cw.track.append(t);+ let r = aC(), i = () => {}, a = {+ el: t,+ video: n,+ session: r,+ release: () => lC(r),+ disposed: !1,+ gone: new Promise((e) => {+ i = e;+ }),+ leave: i+ };+ return bw.add(a), a;+}+function hie(e, t) {+ return new Promise((n) => {+ e.release = DC(e.video, {+ kind: "immerse",+ item: t,+ session: e.session,+ onLoaded: n,+ onEnded: () => {+ lw.open && Iw(1);}- e.setAttribute(t, n);- }- }- function qt(e, t, n, r) {- if (r === null) e.removeAttribute(n);- else {- switch (typeof r) {- case "undefined":- case "function":- case "symbol":- case "boolean":- e.removeAttribute(n);- return;+ }), e.gone.then(n);+ });+}+function Aw(e) {+ !e || e.disposed || (e.disposed = !0, bw.delete(e), e.leave(), e.release(), e.el.remove(), yw === e && (yw = null));+}+var jw = [+ "loadeddata",+ "canplay",+ "error"+];+function gie(e) {+ let { video: t } = e;+ return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {+ let r = !1, i = () => {+ r || (r = !0, clearTimeout(a), jw.forEach((e) => t.removeEventListener(e, i)), n());+ };+ jw.forEach((e) => t.addEventListener(e, i, { once: !0 }));+ let a = setTimeout(i, die);+ e.gone.then(i);+ });+}+function Mw(e) {+ let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = lie(e.videoWidth, e.videoHeight, n);+ r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;+}+var Nw = () => cw?.track.querySelectorAll("video").forEach(Mw);+function _ie(e) {+ delete e.dataset.fit, e.readyState >= 1 ? Mw(e) : e.addEventListener("loadedmetadata", () => Mw(e), { once: !0 });+}+function vie(e) {+ lw = {+ ...lw,+ wide: e+ }, Dw(), Nw();+}+var Pw = () => {+ let e = mw;+ return z.fetchQuery({+ queryKey: nie(e, fw, pw),+ queryFn: () => oie(e, Ew().sourceOffline),+ staleTime: Infinity+ });+};+function yie(e, t) {+ let n = () => ve(e.duration) || ve(t.duration);+ e.addEventListener("timeupdate", () => {+ let t = n();+ t && cw && (cw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);+ }), ww = {+ video: e,+ duration: n+ };+}+async function Fw(e = 0) {+ let t = hw[gw];+ if (!t || _w) return;+ let n = dw;+ Ew().route(t.id), _w = !0, kw(e ? "切换中…" : "加载中…", t);+ let r = null;+ try {+ if (await aw(t.id).catch((e) => {+ if (!(e instanceof WC)) throw e;+ }), n !== dw) return;+ let i = yw, a = !!(e && i);+ a || Aw(i);+ let o = mie(a ? e > 0 ? 100 : -100 : 0);+ if (r = o, _ie(o.video), await hie(o, t), await gie(o), o.disposed || (vie(uie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {+ i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";+ })), await new Promise((e) => setTimeout(e, 210)), Aw(i), o.el.style.transform = ""), o.disposed)) return;+ yw = o, r = null, o.video.play()?.catch(() => {}), lw = {+ ...lw,+ idle: !1,+ shown: {+ item: t,+ index: gw,+ length: hw.length}- e.setAttributeNS(t, n, r);- }- }- function Jt(e) {- switch (typeof e) {- case "bigint":- case "boolean":- case "number":- case "string":- case "undefined": return e;- case "object": return e;- default: return "";- }- }- function Yt(e) {- var t = e.type;- return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");- }- function Xt(e, t, n) {- var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);- if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {- var i = r.get, a = r.set;- return Object.defineProperty(e, t, {- configurable: !0,- get: function() {- return i.call(this);- },- set: function(e) {- n = "" + e, a.call(this, e);- }- }), Object.defineProperty(e, t, { enumerable: r.enumerable }), {- getValue: function() {- return n;- },- setValue: function(e) {- n = "" + e;- },- stopTracking: function() {- e._valueTracker = null, delete e[t];- }- };- }- }- function Zt(e) {- if (!e._valueTracker) {- var t = Yt(e) ? "checked" : "value";- e._valueTracker = Xt(e, t, "" + e[t]);- }- }- function Qt(e) {- if (!e) return !1;- var t = e._valueTracker;- if (!t) return !0;- var n = t.getValue(), r = "";- return e && (r = Yt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);- }- var $t = /[\n"\\]/g;- function en(e) {- return e.replace($t, function(e) {- return "\\" + e.charCodeAt(0).toString(16) + " ";- });- }- function tn(e, t, n, r, i, a, o, s) {- e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Jt(t)) : e.value !== "" + Jt(t) && (e.value = "" + Jt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : rn(e, Jt(n)) : o === "number" && e.value == t ? rn(e, Jt(e.value)) : rn(e, Jt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Jt(s) : e.removeAttribute("name");+ }, yie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), kw(null);+ } catch {+ Aw(r), n === dw && kw(null);+ } finally {+ n === dw && (_w = !1);}- function nn(e, t, n, r, i, a, o, s) {- if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {- if (!(a !== "submit" && a !== "reset" || t != null)) {- Zt(e);- return;- }- n = n == null ? "" : "" + Jt(n), t = t == null ? n : "" + Jt(t), s || t === e.value || (e.value = t), e.defaultValue = t;+}+async function Iw(e) {+ if (_w || !lw.open) return;+ let t = dw;+ if (gw += e, kw("切换中…", hw[gw] ?? null), gw >= hw.length - 3 && !vw) {+ vw = !0;+ try {+ pw += 1;+ let e = await Pw();+ t === dw && (hw = sie(hw, e));+ } catch {} finally {+ vw = !1;}- r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Zt(e);- }- function rn(e, t) {- e.defaultValue !== "" + t && (e.defaultValue = "" + t);}- function an(e, t, n, r) {- if (e = e.options, t) {- t = {};- for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;- for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);- } else {- for (n = "" + Jt(n), t = null, i = 0; i < e.length; i++) {- if (e[i].value === n) {- e[i].selected = !0, r && (e[i].defaultSelected = !0);- return;- }- t !== null || e[i].disabled || (t = e[i]);- }- t !== null && (t.selected = !0);+ t === dw && (gw >= hw.length && (gw = 0), gw < 0 && (gw = hw.length - 1), await Fw(e));+}+async function bie(e) {+ let t = ++dw;+ Lw(), fw += 1, pw = 0, mw = rie(Ew().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), lw = {+ ...lw,+ open: !0,+ idle: !0,+ shown: null+ }, document.body.setAttribute("data-immerse-open", ""), kw("加载内容…");+ try {+ let n = await Pw();+ if (e && !n.some((t) => t.id === e)) {+ let t = await aw(e).catch((e) => {+ if (e instanceof WC) return null;+ throw e;+ });+ t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);}- }- function on(e, t, n) {- if (t != null && (t = "" + Jt(t), t !== e.value && (e.value = t), n == null)) {- e.defaultValue !== t && (e.defaultValue = t);+ if (t !== dw) return;+ if (hw = n, !hw.length) {+ Rw(), Ew().warn("当前筛选下没有可直接播放的内容");return;}- e.defaultValue = n == null ? "" : "" + Jt(n);+ gw = Math.max(0, hw.findIndex((t) => t.id === e)), await Fw();+ } catch {+ if (t !== dw) return;+ kw(null), Rw();}- function sn(e, t, n, r) {- if (t == null) {- if (r != null) {- if (n != null) throw Error(i(92));- if (ue(r)) {- if (1 < r.length) throw Error(i(93));- r = r[0];- }- n = r;- }- n ??= "", t = n;- }- n = Jt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Zt(e);+}+function Lw() {+ clearInterval(Cw), Cw = 0, Ww(), Hw = null, ww = null, Tw = !1, [...bw].forEach(Aw), _w = !1;+}+function Rw() {+ lw.open && (dw++, Lw(), lw = ow, document.body.removeAttribute("data-immerse-open"), Dw(), Ew().closed());+}+var zw = 0, Bw = null, Vw = 0, Hw = null, Uw = 0;+function Ww() {+ clearTimeout(zw), zw = 0, Bw = null;+}+function xie(e) {+ let t = yw?.video;+ if (!t) return;+ let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();+ if (Bw && Bw.side === n && r - Bw.at <= 280) {+ Ww(), Sre(t, Ew().seekSeconds() * n);+ return;}- function cn(e, t) {- if (t) {- var n = e.firstChild;- if (n && n === e.lastChild && n.nodeType === 3) {- n.nodeValue = t;- return;- }- }- e.textContent = t;+ zw && (clearTimeout(zw), zw = 0, OC(t)), Bw = {+ side: n,+ at: r+ }, zw = window.setTimeout(() => {+ zw = 0, Bw = null, lw.open && OC(yw?.video);+ }, 280);+}+function Sie() {+ Date.now() < Vw || OC(yw?.video);+}+var Gw = (e) => cw?.bar.toggleAttribute("data-scrubbing", e);+function Kw(e) {+ cw && (cw.progress.style.width = `${(e * 100).toFixed(2)}%`);+}+function qw(e) {+ let t = e.target;+ if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {+ Hw = null;+ return;}- var ln = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));- function un(e, t, n) {- var r = t.indexOf("--") === 0;- n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || ln.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";+ let n = yw?.video;+ Hw = {+ x: e.touches[0].clientX,+ y: e.touches[0].clientY,+ axis: "",+ from: n && n.currentTime || 0+ };+}+function Jw(e) {+ if (!Hw || e.touches.length !== 1) return;+ let t = e.touches[0].clientX - Hw.x, n = e.touches[0].clientY - Hw.y;+ if (!Hw.axis) {+ if (Math.abs(t) < 12 && Math.abs(n) < 12) return;+ Hw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Hw.axis === "x" && Gw(!0);}- function dn(e, t, n) {- if (t != null && typeof t != "object") throw Error(i(62));- if (e = e.style, n != null) {- for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", Ut = !0);- for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (un(e, a, r), Ut = !0);- } else for (var o in t) t.hasOwnProperty(o) && un(e, o, t[o]);+ if (Hw.axis !== "x") return;+ let r = yw?.video, i = r && r.duration || 0;+ i && (e.preventDefault(), Hw.to = Math.min(i, Math.max(0, Hw.from + t / window.innerWidth * i)), Kw(Hw.to / i));+}+function Yw(e) {+ if (!Hw) return;+ let t = Hw;+ if (Hw = null, Vw = Date.now() + 700, Gw(!1), t.axis === "x") {+ let e = yw?.video;+ e && t.to != null && (e.currentTime = t.to);+ return;}- function fn(e) {- if (e.indexOf("-") === -1) return !1;- switch (e) {- case "annotation-xml":- case "color-profile":- case "font-face":- case "font-face-src":- case "font-face-uri":- case "font-face-format":- case "font-face-name":- case "missing-glyph": return !1;- default: return !0;- }+ let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;+ if (Math.abs(i) > 60) {+ Ww(), Iw(i > 0 ? 1 : -1);+ return;}- var pn = /* @__PURE__ */ new Map([- ["acceptCharset", "accept-charset"],- ["htmlFor", "for"],- ["httpEquiv", "http-equiv"],- ["crossOrigin", "crossorigin"],- ["accentHeight", "accent-height"],- ["alignmentBaseline", "alignment-baseline"],- ["arabicForm", "arabic-form"],- ["baselineShift", "baseline-shift"],- ["capHeight", "cap-height"],- ["clipPath", "clip-path"],- ["clipRule", "clip-rule"],- ["colorInterpolation", "color-interpolation"],- ["colorInterpolationFilters", "color-interpolation-filters"],- ["colorProfile", "color-profile"],- ["colorRendering", "color-rendering"],- ["dominantBaseline", "dominant-baseline"],- ["enableBackground", "enable-background"],- ["fillOpacity", "fill-opacity"],- ["fillRule", "fill-rule"],- ["floodColor", "flood-color"],- ["floodOpacity", "flood-opacity"],- ["fontFamily", "font-family"],- ["fontSize", "font-size"],- ["fontSizeAdjust", "font-size-adjust"],- ["fontStretch", "font-stretch"],- ["fontStyle", "font-style"],- ["fontVariant", "font-variant"],- ["fontWeight", "font-weight"],- ["glyphName", "glyph-name"],- ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],- ["glyphOrientationVertical", "glyph-orientation-vertical"],- ["horizAdvX", "horiz-adv-x"],- ["horizOriginX", "horiz-origin-x"],- ["imageRendering", "image-rendering"],- ["letterSpacing", "letter-spacing"],- ["lightingColor", "lighting-color"],- ["markerEnd", "marker-end"],- ["markerMid", "marker-mid"],- ["markerStart", "marker-start"],- ["maskType", "mask-type"],- ["overlinePosition", "overline-position"],- ["overlineThickness", "overline-thickness"],- ["paintOrder", "paint-order"],- ["panose-1", "panose-1"],- ["pointerEvents", "pointer-events"],- ["renderingIntent", "rendering-intent"],- ["shapeRendering", "shape-rendering"],- ["stopColor", "stop-color"],- ["stopOpacity", "stop-opacity"],- ["strikethroughPosition", "strikethrough-position"],- ["strikethroughThickness", "strikethrough-thickness"],- ["strokeDasharray", "stroke-dasharray"],- ["strokeDashoffset", "stroke-dashoffset"],- ["strokeLinecap", "stroke-linecap"],- ["strokeLinejoin", "stroke-linejoin"],- ["strokeMiterlimit", "stroke-miterlimit"],- ["strokeOpacity", "stroke-opacity"],- ["strokeWidth", "stroke-width"],- ["textAnchor", "text-anchor"],- ["textDecoration", "text-decoration"],- ["textRendering", "text-rendering"],- ["transformOrigin", "transform-origin"],- ["underlinePosition", "underline-position"],- ["underlineThickness", "underline-thickness"],- ["unicodeBidi", "unicode-bidi"],- ["unicodeRange", "unicode-range"],- ["unitsPerEm", "units-per-em"],- ["vAlphabetic", "v-alphabetic"],- ["vHanging", "v-hanging"],- ["vIdeographic", "v-ideographic"],- ["vMathematical", "v-mathematical"],- ["vectorEffect", "vector-effect"],- ["vertAdvY", "vert-adv-y"],- ["vertOriginX", "vert-origin-x"],- ["vertOriginY", "vert-origin-y"],- ["wordSpacing", "word-spacing"],- ["writingMode", "writing-mode"],- ["xmlnsXlink", "xmlns:xlink"],- ["xHeight", "x-height"]- ]), mn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;- function hn(e) {- return mn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;- }- function gn() {}- var _n = null;- function vn(e) {- return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;- }- var yn = null, bn = null;- function xn(e) {- var t = jt(e);- if (t && (e = t.stateNode)) {- var n = e[yt] || null;- a: switch (e = t.stateNode, t.type) {- case "input":- if (tn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {- for (n = e; n.parentNode;) n = n.parentNode;- for (n = n.querySelectorAll("input[name=\"" + en("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {- var r = n[t];- if (r !== e && r.form === e.form) {- var a = r[yt] || null;- if (!a) throw Error(i(90));- tn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);- }- }- for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Qt(r);- }- break a;- case "textarea":- on(e, n.value, n.defaultValue);- break a;- case "select": t = n.value, t != null && an(e, !!n.multiple, t, !1);- }- }- }- var Sn = !1;- function Cn(e, t, n) {- if (Sn) return e(t, n);- Sn = !0;- try {- return e(t);- } finally {- if (Sn = !1, (yn !== null || bn !== null) && (qd(), yn && (t = yn, e = bn, bn = yn = null, xn(t), e))) for (t = 0; t < e.length; t++) xn(e[t]);- }- }- function wn(e, t) {- var n = e.stateNode;- if (n === null) return null;- var r = n[yt] || null;- if (r === null) return null;- n = r[t];- a: switch (t) {- case "onClick":- case "onClickCapture":- case "onDoubleClick":- case "onDoubleClickCapture":- case "onMouseDown":- case "onMouseDownCapture":- case "onMouseMove":- case "onMouseMoveCapture":- case "onMouseUp":- case "onMouseUpCapture":- case "onMouseEnter":- (r = !r.disabled) || (e = e.type, r = e !== "button" && e !== "input" && e !== "select" && e !== "textarea"), e = !r;- break a;- default: e = !1;- }- if (e) return null;- if (n && typeof n != "function") throw Error(i(231, t, typeof n));- return n;- }- var Tn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), En = !1;- if (Tn) try {- var Dn = {};- Object.defineProperty(Dn, "passive", { get: function() {- En = !0;- } }), window.addEventListener("test", Dn, Dn), window.removeEventListener("test", Dn, Dn);- } catch {- En = !1;- }- var On = null, kn = null, An = null;- function jn() {- if (An) return An;- var e, t = kn, n = t.length, r, i = "value" in On ? On.value : On.textContent, a = i.length;- for (e = 0; e < n && t[e] === i[e]; e++);- var o = n - e;- for (r = 1; r <= o && t[n - r] === i[a - r]; r++);- return An = i.slice(e, 1 < r ? 1 - r : void 0);- }- function Mn(e) {- var t = e.keyCode;- return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;- }- function Nn() {- return !0;- }- function Pn() {- return !1;- }- function Fn(e) {- function t(t, n, r, i, a) {- for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);- return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Nn : Pn, this.isPropagationStopped = Pn, this;- }- return w(t.prototype, {- preventDefault: function() {- this.defaultPrevented = !0;- var e = this.nativeEvent;- e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Nn);- },- stopPropagation: function() {- var e = this.nativeEvent;- e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Nn);- },- persist: function() {},- isPersistent: Nn- }), t;- }- var In = {- eventPhase: 0,- bubbles: 0,- cancelable: 0,- timeStamp: function(e) {- return e.timeStamp || Date.now();- },- defaultPrevented: 0,- isTrusted: 0- }, Ln = Fn(In), Rn = w({}, In, {- view: 0,- detail: 0- }), zn = Fn(Rn), Bn, Vn, Hn, Un = w({}, Rn, {- screenX: 0,- screenY: 0,- clientX: 0,- clientY: 0,- pageX: 0,- pageY: 0,- ctrlKey: 0,- shiftKey: 0,- altKey: 0,- metaKey: 0,- getModifierState: er,- button: 0,- buttons: 0,- relatedTarget: function(e) {- return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;- },- movementX: function(e) {- return "movementX" in e ? e.movementX : (e !== Hn && (Hn && e.type === "mousemove" ? (Bn = e.screenX - Hn.screenX, Vn = e.screenY - Hn.screenY) : Vn = Bn = 0, Hn = e), Bn);- },- movementY: function(e) {- return "movementY" in e ? e.movementY : Vn;- }- }), Wn = Fn(Un), Gn = Fn(w({}, Un, { dataTransfer: 0 })), Kn = Fn(w({}, Rn, { relatedTarget: 0 })), qn = Fn(w({}, In, {- animationName: 0,- elapsedTime: 0,- pseudoElement: 0- })), Jn = Fn(w({}, In, { clipboardData: function(e) {- return "clipboardData" in e ? e.clipboardData : window.clipboardData;- } })), Yn = Fn(w({}, In, { data: 0 })), Xn = {- Esc: "Escape",- Spacebar: " ",- Left: "ArrowLeft",- Up: "ArrowUp",- Right: "ArrowRight",- Down: "ArrowDown",- Del: "Delete",- Win: "OS",- Menu: "ContextMenu",- Apps: "ContextMenu",- Scroll: "ScrollLock",- MozPrintableKey: "Unidentified"- }, Zn = {- 8: "Backspace",- 9: "Tab",- 12: "Clear",- 13: "Enter",- 16: "Shift",- 17: "Control",- 18: "Alt",- 19: "Pause",- 20: "CapsLock",- 27: "Escape",- 32: " ",- 33: "PageUp",- 34: "PageDown",- 35: "End",- 36: "Home",- 37: "ArrowLeft",- 38: "ArrowUp",- 39: "ArrowRight",- 40: "ArrowDown",- 45: "Insert",- 46: "Delete",- 112: "F1",- 113: "F2",- 114: "F3",- 115: "F4",- 116: "F5",- 117: "F6",- 118: "F7",- 119: "F8",- 120: "F9",- 121: "F10",- 122: "F11",- 123: "F12",- 144: "NumLock",- 145: "ScrollLock",- 224: "Meta"- }, Qn = {- Alt: "altKey",- Control: "ctrlKey",- Meta: "metaKey",- Shift: "shiftKey"+ Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), xie(n.clientX));+}+function Xw() {+ Hw = null, Gw(!1);+}+function Zw(e) {+ let t = Date.now();+ t - Uw < 260 || (Uw = t, Iw(e.deltaY > 0 ? 1 : -1));+}+function Qw(e) {+ let t = cw.bar.getBoundingClientRect();+ return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));+}+function Cie(e) {+ ww?.duration() && (Tw = !0, Gw(!0), e.currentTarget.setPointerCapture(e.pointerId), Kw(Qw(e)), e.preventDefault());+}+function wie(e) {+ Tw && Kw(Qw(e));+}+function Tie(e) {+ if (!Tw) return;+ Tw = !1, Gw(!1);+ let t = ww?.duration();+ ww && t && (ww.video.currentTime = t * Qw(e));+}+function Eie() {+ Tw = !1, Gw(!1);+}+async function $w(e, t) {+ let n = await K(zC, {+ id: e,+ kind: t+ }), r = z.getQueryData(IC(e));+ if (!r) return PC(e, {+ feedback: n.feedback ?? void 0,+ o_count: n.o_count+ }), n;+ let i = {+ ...r,+ feedback: n.feedback ?? void 0,+ o_count: n.o_count};- function $n(e) {- var t = this.nativeEvent;- return t.getModifierState ? t.getModifierState(e) : (e = Qn[e]) ? !!t[e] : !1;- }- function er() {- return $n;+ return z.setQueryData(IC(e), i), PC(e, {+ feedback: i.feedback,+ disposal: i.disposal,+ watch_later: i.watch_later,+ rating: i.rating,+ o_count: i.o_count+ }), n;+}+var Die = [+ {+ kind: "dislike",+ glyph: "thumbs-down",+ label: "标为不喜欢"+ },+ {+ kind: "seen",+ glyph: "eye",+ label: "标为看过"+ },+ {+ kind: "o",+ glyph: "heart",+ label: "记一次高潮"}- var tr = Fn(w({}, Rn, {- key: function(e) {- if (e.key) {- var t = Xn[e.key] || e.key;- if (t !== "Unidentified") return t;- }- return e.type === "keypress" ? (e = Mn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Zn[e.keyCode] || "Unidentified" : "";- },- code: 0,- location: 0,- ctrlKey: 0,- shiftKey: 0,- altKey: 0,- metaKey: 0,- repeat: 0,- locale: 0,- getModifierState: er,- charCode: function(e) {- return e.type === "keypress" ? Mn(e) : 0;- },- keyCode: function(e) {- return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;- },- which: function(e) {- return e.type === "keypress" ? Mn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;- }- })), nr = Fn(w({}, Un, {- pointerId: 0,- width: 0,- height: 0,- pressure: 0,- tangentialPressure: 0,- tiltX: 0,- tiltY: 0,- twist: 0,- pointerType: 0,- isPrimary: 0- })), rr = Fn(w({}, In, { submitter: 0 })), ir = Fn(w({}, Rn, {- touches: 0,- targetTouches: 0,- changedTouches: 0,- altKey: 0,- metaKey: 0,- ctrlKey: 0,- shiftKey: 0,- getModifierState: er- })), ar = Fn(w({}, In, {- propertyName: 0,- elapsedTime: 0,- pseudoElement: 0- })), or = Fn(w({}, Un, {- deltaX: function(e) {- return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;+];+function eT(e) {+ return TS({+ queryKey: IC(e ?? 0),+ queryFn: ({ signal: t }) => GC(e, t),+ enabled: e != null,+ staleTime: Infinity+ }).data;+}+function Oie({ kind: e, glyph: t, label: n, id: r }) {+ let i = eT(r), a = OS({+ mutationFn: async (t) => {+ let n = z.getQueryData(IC(t))?.feedback || null;+ return {+ result: await $w(t, e),+ before: n+ };},- deltaY: function(e) {- return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0;+ onSuccess: ({ result: t, before: n }, r) => {+ Ew().toast(iw(e, t), { undo: async () => {+ e === "o" ? await $w(r, "o-undo") : (t.feedback && await $w(r, t.feedback), n && await $w(r, n));+ } }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {+ Iw(1);+ }, 260);},- deltaZ: 0,- deltaMode: 0- })), sr = Fn(w({}, In, {- newState: 0,- oldState: 0,- source: 0- })), cr = [- 9,- 13,- 27,- 32- ], lr = Tn && "CompositionEvent" in window, ur = null;- Tn && "documentMode" in document && (ur = document.documentMode);- var dr = Tn && "TextEvent" in window && !ur, fr = Tn && (!lr || ur && 8 < ur && 11 >= ur), pr = " ", mr = !1;- function hr(e, t) {- switch (e) {- case "keyup": return cr.indexOf(t.keyCode) !== -1;- case "keydown": return t.keyCode !== 229;- case "keypress":- case "mousedown":- case "focusout": return !0;- default: return !1;- }- }- function gr(e) {- return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;- }- var _r = !1;- function vr(e, t) {- switch (e) {- case "compositionend": return gr(t);- case "keypress": return t.which === 32 ? (mr = !0, pr) : null;- case "textInput": return e = t.data, e === pr && mr ? null : e;- default: return null;- }- }- function yr(e, t) {- if (_r) return e === "compositionend" || !lr && hr(e, t) ? (e = jn(), An = kn = On = null, _r = !1, e) : null;- switch (e) {- case "paste": return null;- case "keypress":- if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {- if (t.char && 1 < t.char.length) return t.char;- if (t.which) return String.fromCharCode(t.which);- }- return null;- case "compositionend": return fr && t.locale !== "ko" ? null : t.data;- default: return null;- }- }- var br = {- color: !0,- date: !0,- datetime: !0,- "datetime-local": !0,- email: !0,- month: !0,- number: !0,- password: !0,- range: !0,- search: !0,- tel: !0,- text: !0,- time: !0,- url: !0,- week: !0- };- function xr(e) {- var t = e && e.nodeName && e.nodeName.toLowerCase();- return t === "input" ? !!br[e.type] : t === "textarea";- }- function Sr(e, t, n, r) {- yn ? bn ? bn.push(r) : bn = [r] : yn = r, t = ip(t, "onChange"), 0 < t.length && (n = new Ln("onChange", "change", null, n, r), e.push({- event: n,- listeners: t- }));- }- var Cr = null, wr = null;- function Tr(e) {- Xf(e, 0);- }- function Er(e) {- if (Qt(Mt(e))) return e;- }- function Dr(e, t) {- if (e === "change") return t;- }- var Or = !1;- if (Tn) {- var kr;- if (Tn) {- var Ar = "oninput" in document;- if (!Ar) {- var jr = document.createElement("div");- jr.setAttribute("oninput", "return;"), Ar = typeof jr.oninput == "function";- }- kr = Ar;- } else kr = !1;- Or = kr && (!document.documentMode || 9 < document.documentMode);- }- function Mr() {- Cr && (Cr.detachEvent("onpropertychange", Nr), wr = Cr = null);- }- function Nr(e) {- if (e.propertyName === "value" && Er(wr)) {- var t = [];- Sr(t, wr, e, vn(e)), Cn(Tr, t);- }- }- function Pr(e, t, n) {- e === "focusin" ? (Mr(), Cr = t, wr = n, Cr.attachEvent("onpropertychange", Nr)) : e === "focusout" && Mr();- }- function Fr(e) {- if (e === "selectionchange" || e === "keyup" || e === "keydown") return Er(wr);- }- function Ir(e, t) {- if (e === "click") return Er(t);- }- function Lr(e, t) {- if (e === "input" || e === "change") return Er(t);- }- function Rr(e, t) {- return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;- }- var zr = typeof Object.is == "function" ? Object.is : Rr;- function Br(e, t) {- if (zr(e, t)) return !0;- if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;- var n = Object.keys(e), r = Object.keys(t);- if (n.length !== r.length) return !1;- for (r = 0; r < n.length; r++) {- var i = n[r];- if (!Me.call(t, i) || !zr(e[i], t[i])) return !1;- }- return !0;- }- function Vr(e) {- if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;- try {- return e.activeElement || e.body;- } catch {- return e.body;- }- }- function Hr(e) {- for (; e && e.firstChild;) e = e.firstChild;- return e;- }- function Ur(e, t) {- var n = Hr(e);- e = 0;- for (var r; n;) {- if (n.nodeType === 3) {- if (r = e + n.textContent.length, e <= t && r >= t) return {- node: n,- offset: t - e- };- e = r;- }- a: {- for (; n;) {- if (n.nextSibling) {- n = n.nextSibling;- break a;- }- n = n.parentNode;- }- n = void 0;- }- n = Hr(n);- }- }- function Wr(e, t) {- return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Wr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;- }- function Gr(e) {- e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;- for (var t = Vr(e.document); t instanceof e.HTMLIFrameElement;) {- try {- var n = typeof t.contentWindow.location.href == "string";- } catch {- n = !1;- }- if (n) e = t.contentWindow;- else break;- t = Vr(e.document);- }- return t;- }- function Kr(e) {- var t = e && e.nodeName && e.nodeName.toLowerCase();- return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");- }- var qr = Tn && "documentMode" in document && 11 >= document.documentMode, Jr = null, Yr = null, Xr = null, Zr = !1;- function Qr(e, t, n) {- var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;- Zr || Jr == null || Jr !== Vr(r) || (r = Jr, "selectionStart" in r && Kr(r) ? r = {- start: r.selectionStart,- end: r.selectionEnd- } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {- anchorNode: r.anchorNode,- anchorOffset: r.anchorOffset,- focusNode: r.focusNode,- focusOffset: r.focusOffset- }), Xr && Br(Xr, r) || (Xr = r, r = ip(Yr, "onSelect"), 0 < r.length && (t = new Ln("onSelect", "select", null, t, n), e.push({- event: t,- listeners: r- }), t.target = Jr)));- }- function $r(e, t) {- var n = {};- return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;- }- var ei = {- animationend: $r("Animation", "AnimationEnd"),- animationiteration: $r("Animation", "AnimationIteration"),- animationstart: $r("Animation", "AnimationStart"),- transitionrun: $r("Transition", "TransitionRun"),- transitionstart: $r("Transition", "TransitionStart"),- transitioncancel: $r("Transition", "TransitionCancel"),- transitionend: $r("Transition", "TransitionEnd")- }, ti = {}, ni = {};- Tn && (ni = document.createElement("div").style, "AnimationEvent" in window || (delete ei.animationend.animation, delete ei.animationiteration.animation, delete ei.animationstart.animation), "TransitionEvent" in window || delete ei.transitionend.transition);- function ri(e) {- if (ti[e]) return ti[e];- if (!ei[e]) return e;- var t = ei[e], n;- for (n in t) if (t.hasOwnProperty(n) && n in ni) return ti[e] = t[n];- return e;- }- var ii = ri("animationend"), ai = ri("animationiteration"), oi = ri("animationstart"), si = ri("transitionrun"), ci = ri("transitionstart"), li = ri("transitioncancel"), ui = ri("transitionend"), di = /* @__PURE__ */ new Map(), fi = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");- fi.push("scrollEnd");- function pi(e, t) {- di.set(e, t), Lt(t, [e]);- }- var mi = 0;- function hi(e, t) {- if (e.name != null && e.name !== "auto") return e.name;- if (t.autoName !== null) return t.autoName;- e = Od.identifierPrefix;- var n = mi++;- return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;- }- function gi(e) {- if (e == null || typeof e == "string") return e;- var t = null, n = Id;- if (n !== null) for (var r = 0; r < n.length; r++) {- var i = e[n[r]];- if (i != null) {- if (i === "none") return "none";- t = t == null ? i : t + (" " + i);- }- }- return t ?? e.default;- }- function _i(e, t) {- return e = gi(e), t = gi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;- }- var vi = typeof reportError == "function" ? reportError : function(e) {- if (typeof window == "object" && typeof window.ErrorEvent == "function") {- var t = new window.ErrorEvent("error", {- bubbles: !0,- cancelable: !0,- message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),- error: e- });- if (!window.dispatchEvent(t)) return;- } else if (typeof process == "object" && typeof process.emit == "function") {- process.emit("uncaughtException", e);- return;- }- console.error(e);- }, yi = [], bi = 0, xi = 0;- function Si() {- for (var e = bi, t = xi = bi = 0; t < e;) {- var n = yi[t];- yi[t++] = null;- var r = yi[t];- yi[t++] = null;- var i = yi[t];- yi[t++] = null;- var a = yi[t];- if (yi[t++] = null, r !== null && i !== null) {- var o = r.pending;- o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;- }- a !== 0 && Ei(n, i, a);- }- }- function Ci(e, t, n, r) {- yi[bi++] = e, yi[bi++] = t, yi[bi++] = n, yi[bi++] = r, xi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);- }- function wi(e, t, n, r) {- return Ci(e, t, n, r), Di(e);- }- function Ti(e, t) {- return Ci(e, null, null, t), Di(e);- }- function Ei(e, t, n) {- e.lanes |= n;- var r = e.alternate;- r !== null && (r.lanes |= n);- for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;- return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Ye(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;- }- function Di(e) {- if (50 < Ld) throw Ld = 0, Rd = null, Error(i(185));- for (var t = e.return; t !== null;) e = t, t = e.return;- return e.tag === 3 ? e.stateNode : null;- }- var Oi = {};- function ki(e, t, n, r) {- this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;- }- function Ai(e, t, n, r) {- return new ki(e, t, n, r);- }- function ji(e) {- return e = e.prototype, !(!e || !e.isReactComponent);- }- function Mi(e, t) {- var n = e.alternate;- return n === null ? (n = Ai(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {- lanes: t.lanes,- firstContext: t.firstContext- }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;- }- function Ni(e, t) {- e.flags &= 1206910978;- var n = e.alternate;- return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {- lanes: t.lanes,- firstContext: t.firstContext- }), e;- }- function Pi(e, t, n, r, a, o) {- var s = 0;- if (r = e, typeof r == "function") ji(r) && (s = 1);- else if (typeof r == "string") s = rh(e, n, _e.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;- else a: switch (r) {- case te: return e = Ai(31, n, t, a), e.elementType = te, e.lanes = o, e;- case O: return Fi(n.children, a, o, t);- case k:- s = 8, a |= 24;- break;- case A: return e = Ai(12, n, t, a | 2), e.elementType = A, e.lanes = o, e;- case P: return e = Ai(13, n, t, a), e.elementType = P, e.lanes = o, e;- case ee: return e = Ai(19, n, t, a), e.elementType = ee, e.lanes = o, e;- case ne:- case ie: return e = a | 32, e = Ai(30, n, t, e), e.elementType = ie, e.lanes = o, e.stateNode = {- autoName: null,- paired: null,- clones: null,- ref: null- }, e;- default:- if (typeof r == "object" && r) switch (r.$$typeof) {- case M:- s = 10;- break a;- case j:- s = 9;- break a;- case N:- s = 11;- break a;- case F:- s = 14;- break a;- case I:- s = 16, r = null;- break a;- }- s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;- }- return t = Ai(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;- }- function Fi(e, t, n, r) {- return e = Ai(7, e, r, t), e.lanes = n, e;- }- function Ii(e, t, n) {- return e = Ai(6, e, null, t), e.lanes = n, e;- }- function Li(e) {- var t = Ai(18, null, null, 0);- return t.stateNode = e, t;- }- function Ri(e, t, n) {- return t = Ai(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {- containerInfo: e.containerInfo,- pendingChildren: null,- implementation: e.implementation- }, t;- }- var zi = /* @__PURE__ */ new WeakMap();- function Bi(e, t) {- if (typeof e == "object" && e) {- var n = zi.get(e);- return n === void 0 ? (t = {- value: e,- source: t,- stack: je(t)- }, zi.set(e, t), t) : n;- }- return {- value: e,- source: t,- stack: je(t)+ onError: (e) => Ew().failure("更新反馈", e)+ }), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-immerse-action": "",+ children: [/* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-immerse-circle": "",+ title: n,+ "aria-label": n,+ "aria-pressed": s,+ ...o ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {},+ onClick: () => {+ r != null && !a.isPending && a.mutate(r);+ },+ children: /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${t}` })+ })+ }), /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-immerse-label": "",+ children: [+ e === "dislike" ? "不喜欢" : null,+ e === "seen" ? i?.feedback === "seen" ? "已看" : "看过" : null,+ e === "o" ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: ["高潮 ", /* @__PURE__ */ (0, V.jsx)("b", { children: i?.o_count || 0 })] }) : null+ ]+ })]+ });+}+function kie({ shown: e }) {+ let t = e?.item ?? null, n = eT(t?.id ?? null), r = n ? cie(n) : null, i = Ew(), a = (e) => {+ e.preventDefault(), n && (Rw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());+ }, o = () => {+ t && (Rw(), i.openItem(t.id));+ }, s = r ? w(r.name, r.ref, ae(r.name), r.kind || "performer") : "";+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-immerse-ui": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-immerse-author": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-immerse-avatar": "",+ "aria-label": "打开资料",+ onClick: a,+ dangerouslySetInnerHTML: { __html: s }+ }),+ /* @__PURE__ */ (0, V.jsx)("a", {+ href: "#",+ onClick: a,+ children: r?.who ?? ""+ }),+ /* @__PURE__ */ (0, V.jsx)("span", { children: e && t ? `· ${fe(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })+ ]+ }), /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-immerse-title": "",+ onClick: o,+ children: t ? i.displayName(t) : ""+ })]+ });+}+var Aie = { __html: Ke("媒体加载中") };+function jie({ view: e }) {+ let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null);+ (0, B.useLayoutEffect)(() => {+ let e = t.current;+ return cw = {+ root: e,+ track: n.current,+ bar: r.current,+ progress: i.current+ }, e.addEventListener("touchstart", qw, { passive: !0 }), e.addEventListener("touchmove", Jw, { passive: !1 }), e.addEventListener("touchend", Yw, { passive: !1 }), e.addEventListener("touchcancel", Xw, { passive: !0 }), e.addEventListener("wheel", Zw, { passive: !0 }), () => {+ e.removeEventListener("touchstart", qw), e.removeEventListener("touchmove", Jw), e.removeEventListener("touchend", Yw), e.removeEventListener("touchcancel", Xw), e.removeEventListener("wheel", Zw), cw = null;};- }- var Vi = [], Hi = 0, Ui = null, Wi = 0, Gi = [], Ki = 0, qi = null, Ji = 1, Yi = "";- function Xi(e, t) {- Vi[Hi++] = Wi, Vi[Hi++] = Ui, Ui = e, Wi = t;- }- function Zi(e, t, n) {- Gi[Ki++] = Ji, Gi[Ki++] = Yi, Gi[Ki++] = qi, qi = e;- var r = Ji;- e = Yi;- var i = 32 - Ye(r) - 1;- r &= ~(1 << i), n += 1;- var a = 32 - Ye(t) + i;- if (30 < a) {- var o = i - i % 5;- a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ji = 1 << 32 - Ye(t) + i | n << i | r, Yi = a + e;- } else Ji = 1 << a | n << i | r, Yi = e;- }- function Qi(e) {- e.return !== null && (Xi(e, 1), Zi(e, 1, 0));- }- function $i(e) {- for (; e === Ui;) Ui = Vi[--Hi], Vi[Hi] = null, Wi = Vi[--Hi], Vi[Hi] = null;- for (; e === qi;) qi = Gi[--Ki], Gi[Ki] = null, Yi = Gi[--Ki], Gi[Ki] = null, Ji = Gi[--Ki], Gi[Ki] = null;- }- function ea(e, t) {- Gi[Ki++] = Ji, Gi[Ki++] = Yi, Gi[Ki++] = qi, Ji = t.id, Yi = t.overflow, qi = e;- }- var ta = null, na = null, ra = !1, ia = null, aa = !1, oa = Error(i(519));- function sa(e) {- throw pa(Bi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), oa;- }- function ca(e) {- var t = e.stateNode, n = e.type, r = e.memoizedProps;- switch (t[vt] = e, t[yt] = r, n) {- case "dialog":- Zf("cancel", t), Zf("close", t);- break;- case "iframe":- case "object":- case "embed":- Zf("load", t);- break;- case "video":- case "audio":- for (n = 0; n < Jf.length; n++) Zf(Jf[n], t);- break;- case "source":- Zf("error", t);- break;- case "img":- case "image":- case "link":- Zf("error", t), Zf("load", t);- break;- case "details":- Zf("toggle", t);- break;- case "input":- Zf("invalid", t), nn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);- break;- case "select":- Zf("invalid", t);- break;- case "textarea": Zf("invalid", t), sn(t, r.value, r.defaultValue, r.children);- }- n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || up(t.textContent, n) ? (r.popover != null && (Zf("beforetoggle", t), Zf("toggle", t)), r.onScroll != null && Zf("scroll", t), r.onScrollEnd != null && Zf("scrollend", t), r.onClick != null && (t.onclick = gn), t = !0) : t = !1, t || sa(e, !0);- }- function la(e) {- for (ta = e.return; ta;) switch (ta.tag) {- case 5:- case 31:- case 13:- aa = !1;- return;- case 27:- case 3:- aa = !0;- return;- default: ta = ta.return;- }- }- function ua(e) {- if (e !== ta) return !1;- if (!ra) return la(e), ra = !0, !1;- var t = e.tag, n;- if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || wp(e.type, e.memoizedProps)), n = !n), n && na && sa(e), la(e), t === 13) {- if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));- na = xm(e);- } else if (t === 31) {- if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));- na = xm(e);- } else t === 27 ? (t = na, Mp(e.type) ? (e = bm, bm = null, na = e) : na = t) : na = ta ? ym(e.stateNode.nextSibling) : null;- return !0;- }- function da() {- na = ta = null, ra = !1;- }- function fa() {- var e = ia;- return e !== null && (bd === null ? bd = e : bd.push.apply(bd, e), ia = null), e;- }- function pa(e) {- ia === null ? ia = [e] : ia.push(e);- }- var ma = R(null), ha = null, ga = null;- function _a(e, t, n) {- ge(ma, t._currentValue), t._currentValue = n;- }- function va(e) {- e._currentValue = ma.current, he(ma);- }- function ya(e, t, n) {- for (; e !== null;) {- var r = e.alternate;- if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;- e = e.return;- }- }- function ba(e, t, n, r) {- var a = e.child;- for (a !== null && (a.return = e); a !== null;) {- var o = a.dependencies;- if (o !== null) {- var s = a.child;- o = o.firstContext;- a: for (; o !== null;) {- var c = o;- o = a;- for (var l = 0; l < t.length; l++) if (c.context === t[l]) {- o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ya(o.return, n, e), r || (s = null);- break a;- }- o = c.next;- }- } else if (a.tag === 18) {- if (s = a.return, s === null) throw Error(i(341));- s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ya(s, n, e), s = null;- } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ya(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;- if (s !== null) s.return = a;- else for (s = a; s !== null;) {- if (s === e) {- s = null;- break;- }- if (a = s.sibling, a !== null) {- a.return = s.return, s = a;- break;- }- s = s.return;- }- a = s;- }- }- function xa(e, t, n, r) {- e = null;- for (var a = t, o = !1; a !== null;) {- if (!o) {- if (a.flags & 524288) o = !0;- else if (a.flags & 262144) break;- }- if (a.tag === 10) {- var s = a.alternate;- if (s === null) throw Error(i(387));- if (s = s.memoizedProps, s !== null) {- var c = a.type;- zr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));- }- } else if (a === be.current) {- if (s = a.alternate, s === null) throw Error(i(387));- s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [_h] : e.push(_h));- }- a = a.return;- }- return e !== null && ba(t, e, n, r), t.flags |= 262144, e !== null;- }- function Sa(e) {- for (e = e.firstContext; e !== null;) {- if (!zr(e.context._currentValue, e.memoizedValue)) return !0;- e = e.next;- }- return !1;- }- function Ca(e) {- ha = e, ga = null, e = e.dependencies, e !== null && (e.firstContext = null);- }- function wa(e) {- return Ea(ha, e);- }- function Ta(e, t) {- return ha === null && Ca(e), Ea(e, t);- }- function Ea(e, t) {- var n = t._currentValue;- if (t = {- context: t,- memoizedValue: n,- next: null- }, ga === null) {- if (e === null) throw Error(i(308));- ga = t, e.dependencies = {- lanes: 0,- firstContext: t- }, e.flags |= 524288;- } else ga = ga.next = t;- return n;- }- var Da = typeof AbortController < "u" ? AbortController : function() {- var e = [], t = this.signal = {- aborted: !1,- addEventListener: function(t, n) {- e.push(n);- }- };- this.abort = function() {- t.aborted = !0, e.forEach(function(e) {- return e();- });- };- }, Oa = t.unstable_scheduleCallback, ka = t.unstable_NormalPriority, Aa = {- $$typeof: M,- Consumer: null,- Provider: null,- _currentValue: null,- _currentValue2: null,- _threadCount: 0+ }, []);+ let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: t,+ "data-immerse": "",+ "data-idle": o(e.idle),+ "data-wide": o(e.wide),+ hidden: !e.open,+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-immerse-stage": "",+ "data-wide": o(e.wide),+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ ref: n,+ "data-immerse-track": "",+ onClick: Sie+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ "data-immerse-actions": "",+ children: Die.map((e) => /* @__PURE__ */ (0, V.jsx)(Oie, {+ ...e,+ id: a+ }, e.kind))+ })]+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-immerse-loader": "",+ role: "status",+ "aria-live": "polite",+ hidden: e.loading === null,+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-immerse-spinner": "",+ dangerouslySetInnerHTML: Aie+ }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.loading ?? "" })]+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-immerse-close": "",+ title: "关闭",+ "aria-label": "关闭",+ onClick: Rw,+ children: /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ ref: r,+ "data-immerse-bar": "",+ onPointerDown: Cie,+ onPointerMove: wie,+ onPointerUp: Tie,+ onPointerCancel: Eie,+ children: /* @__PURE__ */ (0, V.jsx)("i", { ref: i })+ }),+ /* @__PURE__ */ (0, V.jsx)(kie, { shown: e.shown })+ ]+ });+}+var Mie = {+ open: bie,+ close: Rw,+ isOpen: () => lw.open,+ activeVideo: () => lw.open ? yw?.video ?? null : null+};+function Nie(e) {+ if (!lw.open) return;+ let t = e.target;+ t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Iw(1), e.key === "ArrowUp" && Iw(-1));+}+function Pie(e) {+ let t = !sw;+ return sw = e, t && (document.addEventListener("keydown", Nie), addEventListener("resize", () => {+ lw.open && Nw();+ }), addEventListener("pagehide", () => {+ bw.forEach((e) => lC(e.session));+ })), Mie;+}+function Fie() {+ let e = (0, B.useSyncExternalStore)(fie, () => lw);+ return sw ? /* @__PURE__ */ (0, V.jsx)(jie, { view: e }) : null;+}+//#endregion+//#region src/manage-header.ts+var Iie = {+ "/junk-files": "垃圾文件",+ "/duplicates": "重复文件",+ "/review": "人工复核",+ "/trash": "回收站",+ "/quality-goals": "高清版",+ "/scraping": "来源和凭证"+}, Lie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Rie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;+function zie(e) {+ let t = e.sections.find(([t]) => t === e.section);+ if (!t) return null;+ let n = Iie[e.path] ?? "";+ return {+ title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],+ crumb: n,+ compact: Lie.has(e.path) || e.section === "configuration",+ lede: e.section === "trash" ? e.trash ? {+ kind: "count",+ text: Rie(e.trash),+ total: e.trash.total+ } : { kind: "skeleton" } : { kind: "none" }};- function ja() {- return {- controller: new Da(),- data: /* @__PURE__ */ new Map(),- refCount: 0- };- }- function Ma(e) {- e.refCount--, e.refCount === 0 && Oa(ka, function() {- e.controller.abort();- });- }- function Na(e, t) {- if (e.pendingLanes & 4194048) {- var n = e.transitionTypes;- for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {- var r = t[e];- n.indexOf(r) === -1 && n.push(r);- }- }- }- var Pa = null;- function Fa(e) {- var t = e.transitionTypes;- return e.transitionTypes = null, t;- }- var Ia = null, La = 0, Ra = 0, za = null;- function Ba(e, t) {- if (Ia === null) {- var n = Ia = [];- La = 0, Ra = Uf(), za = {- status: "pending",- value: void 0,- then: function(e) {- n.push(e);- }- };- }- return La++, t.then(Va, Va), t;- }- function Va() {- if (--La === 0 && (Pa = null, Ia !== null)) {- za !== null && (za.status = "fulfilled");- var e = Ia;- Ia = null, Ra = 0, za = null;- for (var t = 0; t < e.length; t++) (0, e[t])();- }- }- function Ha(e, t) {- var n = [], r = {- status: "pending",- value: null,- reason: null,- then: function(e) {- n.push(e);- }- };- return e.then(function() {- r.status = "fulfilled", r.value = t;- for (var e = 0; e < n.length; e++) (0, n[e])(t);- }, function(e) {- for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);- }), r;- }- var Ua = L.S;- L.S = function(e, t) {- if (Cd = Le(), typeof t == "object" && t && typeof t.then == "function" && Ba(e, t), Pa !== null) for (var n = kf; n !== null;) Na(n, Pa), n = n.next;- if (n = e.types, n !== null) {- for (var r = kf; r !== null;) Na(r, n), r = r.next;- if (Ra !== 0) {- r = Pa, r === null && (r = Pa = []);- for (var i = 0; i < n.length; i++) {- var a = n[i];- r.indexOf(a) === -1 && r.push(a);- }- }- }- Ua !== null && Ua(e, t);+}+var Bie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";+//#endregion+//#region src/react/settings-panel/icon.tsx+function tT({ name: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+ });+}+function Vie({ name: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#${e}` })+ });+}+//#endregion+//#region src/react/manage-header/manage-header-island.tsx+var nT = null, rT = null, iT = /* @__PURE__ */ new Set();+function Hie(e) {+ return iT.add(e), () => {+ iT.delete(e);};- var Wa = R(null);- function Ga() {- var e = Wa.current;- return e === null ? id.pooledCache : e;- }- function Ka(e, t) {- t === null ? ge(Wa, Wa.current) : ge(Wa, t.pool);- }- function qa() {- var e = Ga();- return e === null ? null : {- parent: Aa._currentValue,- pool: e+}+function Uie() {+ for (let e of [...iT]) e();+}+var Wie = { render(e) {+ rT = e, (0, $f.flushSync)(Uie);+} };+function Gie(e) {+ return nT = e, rT = null, Wie;+}+function Kie() {+ let e = (0, B.useSyncExternalStore)(Hie, () => rT);+ return nT && e ? /* @__PURE__ */ (0, V.jsx)(qie, {+ host: nT,+ props: e+ }) : null;+}+function qie({ host: e, props: t }) {+ let n = zie(t);+ return n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)(Jie, {+ host: e,+ section: t.section,+ menu: t.menu+ }),+ n.crumb ? /* @__PURE__ */ (0, V.jsx)(Yie, {+ host: e,+ label: n.crumb+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("h2", {+ "data-manage-title": "",+ "data-compact": n.compact ? "" : void 0,+ children: n.title+ }),+ n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Xie, {+ host: e,+ lede: n.lede+ })+ ] }) : null;+}+var aT = null;+function oT(e, t, n) {+ e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);+}+function Jie({ host: e, section: t, menu: n }) {+ let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = () => {+ let e = r.current, t = i.current;+ if (!e || !t) return;+ let n = e.querySelector("button[aria-pressed=\"true\"]");+ n && !n.offsetWidth || (oT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (aT = {+ x: n.offsetLeft,+ width: n.offsetWidth+ }));+ };+ return (0, B.useLayoutEffect)(() => {+ let e = r.current, t = i.current;+ aT ? oT(t, aT.x, aT.width) : a();+ let n = 0, o = requestAnimationFrame(() => {+ t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);+ }), s = new ResizeObserver(a);+ return s.observe(e), () => {+ cancelAnimationFrame(o), cancelAnimationFrame(n), s.disconnect();};- }- var Ja = Error(i(460)), Ya = Error(i(474)), Xa = Error(i(542)), Za = { then: function() {} };- function Qa(e) {- return e = e.status, e === "fulfilled" || e === "rejected";- }- function $a(e, t, n) {- switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(gn, gn), t = n), t.status) {- case "fulfilled": return t.value;- case "rejected": throw e = t.reason, ro(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;- default:- if (typeof t.status == "string") t.then(gn, gn);- else {- if (e = id, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));- e = t, e.status = "pending", e.then(function(e) {- if (t.status === "pending") {- var n = t;- n.status = "fulfilled", n.value = e;- }- }, function(e) {- if (t.status === "pending") {- var n = t;- n.status = "rejected", n.reason = e;- }- });- }- switch (t.status) {- case "fulfilled": return t.value;- case "rejected": throw e = t.reason, ro(e), e;- }- throw to = t, Ja;- }- }- function eo(e) {- try {- var t = e._init;- return t(e._payload);- } catch (e) {- throw typeof e == "object" && e && typeof e.then == "function" ? (to = e, Ja) : e;- }- }- var to = null;- function no() {- if (to === null) throw Error(i(459));- var e = to;- return to = null, e;- }- function ro(e) {- if (e === Ja || e === Xa) throw Error(i(483));- }- var io = null, ao = 0;- function oo(e) {- var t = ao;- return ao += 1, io === null && (io = []), $a(io, e, t);- }- function so(e, t) {- t = t.props.ref, e.ref = t === void 0 ? null : t;- }- function co(e, t) {- throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));- }- function lo(e) {- function t(t, n) {- if (e) {- var r = t.deletions;- r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n);- }- }- function n(n, r) {- if (!e) return null;- for (; r !== null;) t(n, r), r = r.sibling;- return null;- }- function r(e) {- for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling;- return t;- }- function a(e, t) {- return e = Mi(e, t), e.index = 0, e.sibling = null, e;- }- function o(t, n, r) {- return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);- }- function s(t) {- return e && t.alternate === null && (t.flags |= 134217730), t;- }- function c(e, t, n, r) {- return t === null || t.tag !== 6 ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);- }- function l(e, t, n, r) {- var i = n.type;- return i === O ? (e = d(e, t, n.props.children, r, n.key), so(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && eo(i) === t.type) ? (t = a(t, n.props), so(t, n), t.return = e, t) : (t = Pi(n.type, n.key, n.props, null, e.mode, r), so(t, n), t.return = e, t);- }- function u(e, t, n, r) {- return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ri(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);- }- function d(e, t, n, r, i) {- return t === null || t.tag !== 7 ? (t = Fi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);- }- function f(e, t, n) {- if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Ii("" + t, e.mode, n), t.return = e, t;- if (typeof t == "object" && t) {- switch (t.$$typeof) {- case E: return n = Pi(t.type, t.key, t.props, null, e.mode, n), so(n, t), n.return = e, n;- case D: return t = Ri(t, e.mode, n), t.return = e, t;- case I: return t = eo(t), f(e, t, n);- }- if (ue(t) || se(t)) return t = Fi(t, e.mode, n, null), t.return = e, t;- if (typeof t.then == "function") return f(e, oo(t), n);- if (t.$$typeof === M) return f(e, Ta(e, t), n);- co(e, t);- }- return null;- }- function p(e, t, n, r) {- var i = t === null ? null : t.key;- if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? c(e, t, "" + n, r) : null;- if (typeof n == "object" && n) {- switch (n.$$typeof) {- case E: return n.key === i ? l(e, t, n, r) : null;- case D: return n.key === i ? u(e, t, n, r) : null;- case I: return n = eo(n), p(e, t, n, r);- }- if (ue(n) || se(n)) return i === null ? d(e, t, n, r, null) : null;- if (typeof n.then == "function") return p(e, t, oo(n), r);- if (n.$$typeof === M) return p(e, t, Ta(e, n), r);- co(e, n);- }- return null;- }- function m(e, t, n, r, i) {- if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, c(t, e, "" + r, i);- if (typeof r == "object" && r) {- switch (r.$$typeof) {- case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);- case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);- case I: return r = eo(r), m(e, t, n, r, i);- }- if (ue(r) || se(r)) return e = e.get(n) || null, d(t, e, r, i, null);- if (typeof r.then == "function") return m(e, t, n, oo(r), i);- if (r.$$typeof === M) return m(e, t, n, Ta(t, r), i);- co(t, r);- }- return null;- }- function h(i, a, s, c) {- for (var l = null, u = null, d = a, h = a = 0, g = null; d !== null && h < s.length; h++) {- d.index > h ? (g = d, d = null) : g = d.sibling;- var _ = p(i, d, s[h], c);- if (_ === null) {- d === null && (d = g);- break;- }- e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;- }- if (h === s.length) return n(i, d), ra && Xi(i, h), l;- if (d === null) {- for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);- return ra && Xi(i, h), l;- }- for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);- return e && d.forEach(function(e) {- return t(i, e);- }), ra && Xi(i, h), l;- }- function g(a, s, c, l) {- if (c == null) throw Error(i(151));- for (var u = null, d = null, h = s, g = s = 0, _ = null, v = c.next(); h !== null && !v.done; g++, v = c.next()) {- h.index > g ? (_ = h, h = null) : _ = h.sibling;- var y = p(a, h, v.value, l);- if (y === null) {- h === null && (h = _);- break;- }- e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;- }- if (v.done) return n(a, h), ra && Xi(a, g), u;- if (h === null) {- for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);- return ra && Xi(a, g), u;- }- for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);- return e && h.forEach(function(e) {- return t(a, e);- }), ra && Xi(a, g), u;- }- function _(e, r, o, c) {- if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {- switch (o.$$typeof) {- case E:- a: {- for (var l = o.key; r !== null;) {- if (r.key === l) {- if (l = o.type, l === O) {- if (r.tag === 7) {- n(e, r.sibling), c = a(r, o.props.children), so(c, o), c.return = e, e = c;- break a;- }- } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && eo(l) === r.type) {- n(e, r.sibling), c = a(r, o.props), so(c, o), c.return = e, e = c;- break a;- }- n(e, r);- break;- }- t(e, r), r = r.sibling;- }- o.type === O ? (c = Fi(o.props.children, e.mode, c, o.key), so(c, o), c.return = e, e = c) : (c = Pi(o.type, o.key, o.props, null, e.mode, c), so(c, o), c.return = e, e = c);- }- return s(e);- case D:- a: {- for (l = o.key; r !== null;) {- if (r.key === l) {- if (r.tag === 4 && r.stateNode.containerInfo === o.containerInfo && r.stateNode.implementation === o.implementation) {- n(e, r.sibling), c = a(r, o.children || []), c.return = e, e = c;- break a;- }- n(e, r);- break;- }- t(e, r), r = r.sibling;- }- c = Ri(o, e.mode, c), c.return = e, e = c;- }- return s(e);- case I: return o = eo(o), _(e, r, o, c);- }- if (ue(o)) return h(e, r, o, c);- if (se(o)) {- if (l = se(o), typeof l != "function") throw Error(i(150));- return o = l.call(o), g(e, r, o, c);- }- if (typeof o.then == "function") return _(e, r, oo(o), c);- if (o.$$typeof === M) return _(e, r, Ta(e, o), c);- co(e, o);+ }, []), (0, B.useLayoutEffect)(() => {+ i.current?.hasAttribute("data-ready") && a();+ }, [t, n]), /* @__PURE__ */ (0, V.jsx)("nav", {+ "data-manage-bar": "",+ "aria-label": "管理",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: r,+ "data-manage-menu": "",+ children: [n.map(([n, r, i]) => {+ let a = n === t;+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-manage": n,+ "aria-pressed": a,+ "aria-current": a ? "page" : void 0,+ onClick: () => e.openManage(n),+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]+ }, n);+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ ref: i,+ "data-manage-indicator": "",+ "aria-hidden": "true"+ })]+ })+ });+}+function Yie({ host: e, label: t }) {+ return /* @__PURE__ */ (0, V.jsx)("nav", {+ "data-manage-crumb": "",+ "aria-label": "Breadcrumb",+ children: /* @__PURE__ */ (0, V.jsxs)("ol", { children: [/* @__PURE__ */ (0, V.jsxs)("li", { children: [/* @__PURE__ */ (0, V.jsx)("a", {+ href: "/data-cleanup",+ onClick: (t) => {+ t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());+ },+ children: "数据管理"+ }), /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {+ "aria-current": "true",+ children: /* @__PURE__ */ (0, V.jsx)("span", { children: t })+ })] })+ });+}+function Xie({ host: e, lede: t }) {+ return /* @__PURE__ */ (0, V.jsx)("p", {+ className: "mono",+ "data-manage-lede": "",+ children: t.kind === "skeleton" ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-trash-lede-skeletons": "",+ dangerouslySetInnerHTML: { __html: Bie }+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Zie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-empty-trash": "",+ "data-danger": "",+ title: "永久删除回收站内容",+ onClick: () => e.emptyTrash(),+ children: "清空回收站"+ }) : null] })+ });+}+function Zie({ text: e }) {+ let t = (0, B.useRef)(null);+ return (0, B.useLayoutEffect)(() => {+ qe(t.current, e);+ }, [e]), /* @__PURE__ */ (0, V.jsx)("span", {+ ref: t,+ "data-lede-text": ""+ });+}+//#endregion+//#region node_modules/@remixicon/react/index.mjs+var Qie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), $ie = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), sT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), cT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), lT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), uT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {+ viewBox: "0 0 24 24",+ xmlns: "http://www.w3.org/2000/svg",+ width: t,+ height: t,+ fill: e,+ ...r,+ className: "remixicon " + (n || "")+}, B.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" })), Cae = (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;+}, wae = (e, t) => ({+ classGroupId: e,+ validator: t+}), OT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({+ nextPart: e,+ validators: t,+ classGroupId: n+}), kT = "-", AT = [], Tae = "arbitrary..", Eae = (e) => {+ let t = Oae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;+ return {+ getClassGroupId: (e) => {+ if (e.startsWith("[") && e.endsWith("]")) return Dae(e);+ let n = e.split(kT);+ return jT(n, +(n[0] === "" && n.length > 1), t);+ },+ getConflictingClassGroupIds: (e, t) => {+ if (t) {+ let t = r[e], i = n[e];+ return t ? i ? Cae(i, t) : t : i || AT;}- return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Ii(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);+ return n[e] || AT;}- return function(e, t, n, r) {- try {- ao = 0;- var i = _(e, t, n, r);- return io = null, i;- } catch (t) {- if (t === Ja || t === Xa) throw t;- var a = Ai(29, t, null, e.mode);- return a.lanes = r, a.return = e, a;- }- };+ };+}, jT = (e, t, n) => {+ if (e.length - t === 0) return n.classGroupId;+ let r = e[t], i = n.nextPart.get(r);+ if (i) {+ let n = jT(e, t + 1, i);+ if (n) return n;}- var uo = lo(!0), fo = lo(!1), po = !1;- function mo(e) {- e.updateQueue = {- baseState: e.memoizedState,- firstBaseUpdate: null,- lastBaseUpdate: null,- shared: {- pending: null,- lanes: 0,- hiddenCallbacks: null- },- callbacks: null- };+ let a = n.validators;+ if (a === null) return;+ let o = t === 0 ? e.join(kT) : e.slice(t).join(kT), s = a.length;+ for (let e = 0; e < s; e++) {+ let t = a[e];+ if (t.validator(o)) return t.classGroupId;}- function ho(e, t) {- e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {- baseState: e.baseState,- firstBaseUpdate: e.firstBaseUpdate,- lastBaseUpdate: e.lastBaseUpdate,- shared: e.shared,- callbacks: null- });+}, Dae = (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 ? Tae + r : void 0;+})(), Oae = (e) => {+ let { theme: t, classGroups: n } = e;+ return kae(n, t);+}, kae = (e, t) => {+ let n = OT();+ for (let r in e) {+ let i = e[r];+ MT(i, n, r, t);}- function go(e) {- return {- lane: e,- tag: 0,- payload: null,- callback: null,- next: null- };+ return n;+}, MT = (e, t, n, r) => {+ let i = e.length;+ for (let a = 0; a < i; a++) {+ let i = e[a];+ Aae(i, t, n, r);}- function _o(e, t, n) {- var r = e.updateQueue;- if (r === null) return null;- if (r = r.shared, rd & 2) {- var i = r.pending;- return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Di(e), Ei(e, null, n), t;- }- return Ci(e, r, t, n), Di(e);+}, Aae = (e, t, n, r) => {+ if (typeof e == "string") {+ jae(e, t, n);+ return;}- function vo(e, t, n) {- if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {- var r = t.lanes;- r &= e.pendingLanes, n |= r, t.lanes = n, dt(e, n);- }+ if (typeof e == "function") {+ Mae(e, t, n, r);+ return;}- function yo(e, t) {- var n = e.updateQueue, r = e.alternate;- if (r !== null && (r = r.updateQueue, n === r)) {- var i = null, a = null;- if (n = n.firstBaseUpdate, n !== null) {- do {- var o = {- lane: n.lane,- tag: n.tag,- payload: n.payload,- callback: null,- next: null- };- a === null ? i = a = o : a = a.next = o, n = n.next;- } while (n !== null);- a === null ? i = a = t : a = a.next = t;- } else i = a = t;- n = {- baseState: r.baseState,- firstBaseUpdate: i,- lastBaseUpdate: a,- shared: r.shared,- callbacks: r.callbacks- }, e.updateQueue = n;- return;- }- e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;- }- var bo = !1;- function xo() {- if (bo) {- var e = za;- if (e !== null) throw e;- }- }- function So(e, t, n, r) {- bo = !1;- var i = e.updateQueue;- po = !1;- var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;- if (s !== null) {- i.shared.pending = null;- var c = s, l = c.next;- c.next = null, o === null ? a = l : o.next = l, o = c;- var u = e.alternate;- u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c));- }- if (a !== null) {- var d = i.baseState;- o = 0, u = l = c = null, s = a;- do {- var f = s.lane & -536870913, p = f !== s.lane;- if (p ? (od & f) === f : (r & f) === f) {- f !== 0 && f === Ra && (bo = !0), u !== null && (u = u.next = {- lane: 0,- tag: s.tag,- payload: s.payload,- callback: null,- next: null- });- a: {- var m = e, h = s;- f = t;- var g = n;- switch (h.tag) {- case 1:- if (m = h.payload, typeof m == "function") {- d = m.call(g, d, f);- break a;- }- d = m;- break a;- case 3: m.flags = m.flags & -65537 | 128;- case 0:- if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;- d = w({}, d, f);- break a;- case 2: po = !0;- }- }- f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));- } else p = {- lane: f,- tag: s.tag,- payload: s.payload,- callback: s.callback,- next: null- }, u === null ? (l = u = p, c = d) : u = u.next = p, o |= f;- if (s = s.next, s === null) {- if (s = i.shared.pending, s === null) break;- p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;- }- } while (1);- u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), md |= o, e.lanes = o, e.memoizedState = d;- }- }- function Co(e, t) {- if (typeof e != "function") throw Error(i(191, e));- e.call(t);- }- function wo(e, t) {- var n = e.callbacks;- if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) Co(n[e], t);- }- var To = R(null), Eo = R(0);- function Do(e, t) {- e = fd, ge(Eo, e), ge(To, t), fd = e | t.baseLanes;- }- function Oo() {- ge(Eo, fd), ge(To, To.current);- }- function ko() {- fd = Eo.current, he(To), he(Eo);- }- var Ao = R(null), jo = null;- function Mo(e) {- var t = e.alternate;- ge(Lo, Lo.current & 1), ge(Ao, e), jo === null && (t === null || To.current !== null || t.memoizedState !== null) && (jo = e);- }- function No(e) {- ge(Lo, Lo.current), ge(Ao, e), jo === null && (jo = e);- }- function Po(e) {- e.tag === 22 ? (ge(Lo, Lo.current), ge(Ao, e), jo === null && (jo = e)) : Fo();- }- function Fo() {- ge(Lo, Lo.current), ge(Ao, Ao.current);- }- function Io(e) {- he(Ao), jo === e && (jo = null), he(Lo);+ Nae(e, t, n, r);+}, jae = (e, t, n) => {+ let r = e === "" ? t : NT(t, e);+ r.classGroupId = n;+}, Mae = (e, t, n, r) => {+ if (Pae(e)) {+ MT(e(r), t, n, r);+ return;}- var Lo = R(0);- function Ro(e, t) {- ge(Ao, Ao.current), ge(Lo, t);+ t.validators === null && (t.validators = []), t.validators.push(wae(n, e));+}, Nae = (e, t, n, r) => {+ let i = Object.entries(e), a = i.length;+ for (let e = 0; e < a; e++) {+ let [a, o] = i[e];+ MT(o, NT(t, a), n, r);}- function zo(e) {- he(Lo), he(Ao), jo === e && (jo = null);+}, NT = (e, t) => {+ let n = e, r = t.split(kT), i = r.length;+ for (let e = 0; e < i; e++) {+ let t = r[e], i = n.nextPart.get(t);+ i || (i = OT(), n.nextPart.set(t, i)), n = i;}- function Bo(e) {- for (var t = e; t !== null;) {- if (t.tag === 13) {- var n = t.memoizedState;- if (n !== null && (n = n.dehydrated, n === null || gm(n) || _m(n))) return t;- } else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {- if (t.flags & 128) return t;- } else if (t.child !== null) {- t.child.return = t, t = t.child;- continue;- }- if (t === e) break;- for (; t.sibling === null;) {- if (t.return === null || t.return === e) return null;- t = t.return;- }- t.sibling.return = t.return, t = t.sibling;+ return n;+}, Pae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Fae = (e) => {+ if (e < 1) return {+ get: () => void 0,+ set: () => {}+ };+ let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {+ n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));+ };+ return {+ get(e) {+ let t = n[e];+ if (t !== void 0) return t;+ if ((t = r[e]) !== void 0) return i(e, t), t;+ },+ set(e, t) {+ e in n ? n[e] = t : i(e, t);}- return null;- }- var Vo = 0, Ho = null, Uo = null, Wo = null, Go = !1, Ko = !1, qo = !1, Jo = 0, Yo = 0, Xo = null, Zo = 0;- function Qo() {- throw Error(i(321));- }- function $o(e, t) {- if (t === null) return !1;- for (var n = 0; n < t.length && n < e.length; n++) if (!zr(e[n], t[n])) return !1;- return !0;- }- function es(e, t, n, r, i, a) {- return Vo = a, Ho = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, L.H = e === null || e.memoizedState === null ? _c : vc, qo = !1, a = n(r, i), qo = !1, Ko && (a = ns(t, n, r, i)), ts(e), a;- }- function ts(e) {- L.H = gc;- var t = Uo !== null && Uo.next !== null;- if (Vo = 0, Wo = Uo = Ho = null, Go = !1, Yo = 0, Xo = null, t) throw Error(i(300));- e === null || Fc || (e = e.dependencies, e !== null && Sa(e) && (Fc = !0));- }- function ns(e, t, n, r) {- Ho = e;- var a = 0;- do {- if (Ko && (Xo = null), Yo = 0, Ko = !1, 25 <= a) throw Error(i(301));- if (a += 1, Wo = Uo = null, e.updateQueue != null) {- var o = e.updateQueue;- o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);- }- L.H = yc, o = t(n, r);- } while (Ko);- return o;- }- function rs() {- var e = L.H, t = e.useState()[0];- return t = typeof t.then == "function" ? us(t) : t, e = e.useState()[0], (Uo === null ? null : Uo.memoizedState) !== e && (Ho.flags |= 1024), t;- }- function is() {- var e = Jo !== 0;- return Jo = 0, e;- }- function as(e, t, n) {- t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;- }- function os(e) {- if (Go) {- for (e = e.memoizedState; e !== null;) {- var t = e.queue;- t !== null && (t.pending = null), e = e.next;+ };+}, PT = "!", FT = ":", Iae = [], IT = (e, t, n, r, i) => ({+ modifiers: e,+ hasImportantModifier: t,+ baseClassName: n,+ maybePostfixModifierPosition: r,+ isExternal: i+}), Lae = (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 === FT) {+ t.push(e.slice(i, s)), i = s + 1;+ continue;+ }+ if (o === "/") {+ a = s;+ continue;+ }}- Go = !1;- }- Vo = 0, Wo = Uo = Ho = null, Ko = !1, Yo = Jo = 0, Xo = null;- }- function ss() {- var e = {- memoizedState: null,- baseState: null,- baseQueue: null,- queue: null,- next: null- };- return Wo === null ? Ho.memoizedState = Wo = e : Wo = Wo.next = e, Wo;- }- function cs() {- if (Uo === null) {- var e = Ho.alternate;- e = e === null ? null : e.memoizedState;- } else e = Uo.next;- var t = Wo === null ? Ho.memoizedState : Wo.next;- if (t !== null) Wo = t, Uo = e;- else {- if (e === null) throw Ho.alternate === null ? Error(i(467)) : Error(i(310));- Uo = e, e = {- memoizedState: Uo.memoizedState,- baseState: Uo.baseState,- baseQueue: Uo.baseQueue,- queue: Uo.queue,- next: null- }, Wo === null ? Ho.memoizedState = Wo = e : Wo = Wo.next = e;+ o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;}- return Wo;- }- function ls() {- return {- lastEffect: null,- events: null,- stores: null,- memoCache: null- };+ let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;+ s.endsWith(PT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(PT) && (c = s.slice(1), l = !0);+ let u = a && a > i ? a - i : void 0;+ return IT(t, l, c, u);+ };+ if (t) {+ let e = t + FT, n = r;+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : IT(Iae, !1, t, void 0, !0);}- function us(e) {- var t = Yo;- return Yo += 1, Xo === null && (Xo = []), e = $a(Xo, e, t), t = Ho, (Wo === null ? t.memoizedState : Wo.next) === null && (t = t.alternate, L.H = t === null || t.memoizedState === null ? _c : vc), e;+ if (n) {+ let e = r;+ r = (t) => n({+ className: t,+ parseClassName: e+ });}- function ds(e) {- if (typeof e == "object" && e) {- if (typeof e.then == "function") return us(e);- if (e.$$typeof === ae) return;- if (e.$$typeof === M) return wa(e);+ return r;+}, Rae = (e) => {+ let t = /* @__PURE__ */ new Map();+ return e.orderSensitiveModifiers.forEach((e, n) => {+ t.set(e, 1e6 + n);+ }), (e) => {+ let n = [], r = [];+ for (let i = 0; i < e.length; i++) {+ let a = e[i], o = a[0] === "[", s = t.has(a);+ o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);}- throw Error(i(438, String(e)));- }- function fs(e) {- var t = null, n = Ho.updateQueue;- if (n !== null && (t = n.memoCache), t == null) {- var r = Ho.alternate;- r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {- data: r.data.map(function(e) {- return e.slice();- }),- index: 0- })));+ return r.length > 0 && (r.sort(), n.push(...r)), n;+ };+}, zae = (e) => ({+ cache: Fae(e.cacheSize),+ parseClassName: Lae(e),+ sortModifiers: Rae(e),+ postfixLookupClassGroupIds: Bae(e),+ ...Eae(e)+}), Bae = (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;+}, Vae = /\s+/, Hae = (e, t) => {+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Vae), 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) {+ l = t + (l.length > 0 ? " " + l : l);+ continue;}- if (t ??= {- data: [],- index: 0- }, n === null && (n = ls(), Ho.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = re;- return t.index++, n;- }- function ps(e, t) {- return typeof t == "function" ? t(e) : t;- }- function ms(e) {- return hs(cs(), Uo, e);- }- function hs(e, t, n) {- var r = e.queue;- if (r === null) throw Error(i(311));- r.lastRenderedReducer = n;- var a = e.baseQueue, o = r.pending;- if (o !== null) {- if (a !== null) {- var s = a.next;- a.next = o.next, o.next = s;+ let h = !!m, g;+ if (h) {+ g = r(p.substring(0, m));+ let e = g && o[g] ? r(p) : void 0;+ e && e !== g && (g = e, h = !1);+ } else g = r(p);+ if (!g) {+ if (!h) {+ l = t + (l.length > 0 ? " " + l : l);+ continue;}- t.baseQueue = a = o, r.pending = null;- }- if (o = e.baseState, a === null) e.memoizedState = o;- else {- t = a.next;- var c = s = null, l = null, u = t, d = !1;- do {- var f = u.lane & -536870913;- if (f === u.lane ? (Vo & f) === f : (od & f) === f) {- var p = u.revertLane;- if (p === 0) l !== null && (l = l.next = {- lane: 0,- revertLane: 0,- gesture: null,- action: u.action,- hasEagerState: u.hasEagerState,- eagerState: u.eagerState,- next: null- }), f === Ra && (d = !0);- else if ((Vo & p) === p) {- u = u.next, p === Ra && (d = !0);- continue;- } else f = {- lane: 0,- revertLane: u.revertLane,- gesture: null,- action: u.action,- hasEagerState: u.hasEagerState,- eagerState: u.eagerState,- next: null- }, l === null ? (c = l = f, s = o) : l = l.next = f, Ho.lanes |= p, md |= p;- f = u.action, qo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);- } else p = {- lane: f,- revertLane: u.revertLane,- gesture: u.gesture,- action: u.action,- hasEagerState: u.hasEagerState,- eagerState: u.eagerState,- next: null- }, l === null ? (c = l = p, s = o) : l = l.next = p, Ho.lanes |= f, md |= f;- u = u.next;- } while (u !== null && u !== t);- if (l === null ? s = o : l.next = c, !zr(o, e.memoizedState) && (Fc = !0, d && (n = za, n !== null))) throw n;- e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;- }- return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];- }- function gs(e) {- var t = cs(), n = t.queue;- if (n === null) throw Error(i(311));- n.lastRenderedReducer = e;- var r = n.dispatch, a = n.pending, o = t.memoizedState;- if (a !== null) {- n.pending = null;- var s = a = a.next;- do- o = e(o, s.action), s = s.next;- while (s !== a);- zr(o, t.memoizedState) || (Fc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;- }- return [o, r];- }- function _s(e, t, n) {- var r = Ho, a = cs(), o = ra;- if (o) {- if (n === void 0) throw Error(i(407));- n = n();- } else n = t();- var s = !zr((Uo || a).memoizedState, n);- if (s && (a.memoizedState = n, Fc = !0), a = a.queue, Hs(bs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Wo !== null && !!(Wo.memoizedState.tag & 1), Ls(e ? 9 : 8, { destroy: void 0 }, ys.bind(null, r, a, n, t), null), e) {- if (r.flags |= 2048, id === null) throw Error(i(349));- o || Vo & 127 || vs(r, t, n);- }- return n;- }- function vs(e, t, n) {- e.flags |= 16384, e = {- getSnapshot: t,- value: n- }, t = Ho.updateQueue, t === null ? (t = ls(), Ho.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));- }- function ys(e, t, n, r) {- t.value = n, t.getSnapshot = r, xs(t) && Ss(e);- }- function bs(e, t, n) {- return n(function() {- xs(t) && Ss(e);- });- }- function xs(e) {- var t = e.getSnapshot;- e = e.value;- try {- var n = t();- return !zr(e, n);- } catch {- return !0;- }- }- function Ss(e) {- var t = Ti(e, 2);- t !== null && Hd(t, e, 2);- }- function Cs(e) {- var t = ss();- if (typeof e == "function") {- var n = e;- if (e = n(), qo) {- Je(!0);- try {- n();- } finally {- Je(!1);- }+ if (g = r(p), !g) {+ l = t + (l.length > 0 ? " " + l : l);+ continue;}+ h = !1;}- return t.memoizedState = t.baseState = e, t.queue = {- pending: null,- lanes: 0,- dispatch: null,- lastRenderedReducer: ps,- lastRenderedState: e- }, t;- }- function ws(e, t, n, r) {- return e.baseState = n, hs(e, Uo, typeof r == "function" ? r : ps);- }- function Ts(e, t, n, r, a) {- if (pc(e)) throw Error(i(485));- if (e = t.action, e !== null) {- var o = {- payload: a,- action: e,- next: null,- isTransition: !0,- status: "pending",- value: null,- reason: null,- listeners: [],- then: function(e) {- o.listeners.push(e);- }- };- L.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Es(t, o)) : (o.next = n.next, t.pending = n.next = o);+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + PT : _, y = v + g;+ if (s.indexOf(y) > -1) continue;+ s.push(y);+ let b = i(g, h);+ for (let e = 0; e < b.length; ++e) {+ let t = b[e];+ s.push(v + t);}- }- function Es(e, t) {- var n = t.action, r = t.payload, i = e.state;- if (t.isTransition) {- var a = L.T, o = {};- o.types = a === null ? null : a.types, L.T = o;- try {- var s = n(i, r), c = L.S;- c !== null && c(o, s), Ds(e, t, s);- } catch (n) {- ks(e, t, n);- } finally {- a !== null && o.types !== null && (a.types = o.types), L.T = a;- }- } else try {- a = n(i, r), Ds(e, t, a);- } catch (n) {- ks(e, t, n);- }- }- function Ds(e, t, n) {- typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {- Os(e, t, n);- }, function(n) {- return ks(e, t, n);- }) : Os(e, t, n);- }- function Os(e, t, n) {- t.status = "fulfilled", t.value = n, As(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Es(e, n)));- }- function ks(e, t, n) {- var r = e.pending;- if (e.pending = null, r !== null) {- r = r.next;- do- t.status = "rejected", t.reason = n, As(t), t = t.next;- while (t !== r);- }- e.action = null;- }- function As(e) {- e = e.listeners;- for (var t = 0; t < e.length; t++) (0, e[t])();- }- function js(e, t) {- return t;- }- function Ms(e, t) {- if (ra) {- var n = id.formState;- if (n !== null) {- a: {- var r = Ho;- if (ra) {- if (na) {- b: {- for (var i = na, a = aa; i.nodeType !== 8;) {- if (!a) {- i = null;- break b;- }- if (i = ym(i.nextSibling), i === null) {- i = null;- break b;- }- }- a = i.data, i = a === "F!" || a === "F" ? i : null;- }- if (i) {- na = ym(i.nextSibling), r = i.data === "F!";- break a;- }- }- sa(r);- }- r = !1;- }- r && (t = n[0]);- }- }- return n = ss(), n.memoizedState = n.baseState = t, r = {- pending: null,- lanes: 0,- dispatch: null,- lastRenderedReducer: js,- lastRenderedState: t- }, n.queue = r, n = uc.bind(null, Ho, r), r.dispatch = n, r = Cs(!1), a = fc.bind(null, Ho, !1, r.queue), r = ss(), i = {- state: t,- dispatch: null,- action: e,- pending: null- }, r.queue = i, n = Ts.bind(null, Ho, i, a, n), i.dispatch = n, r.memoizedState = e, [- t,- n,- !1- ];- }- function Ns(e) {- return Ps(cs(), Uo, e);- }- function Ps(e, t, n) {- if (t = hs(e, t, js)[0], e = ms(ps)[0], typeof t == "object" && t && typeof t.then == "function") try {- var r = us(t);- } catch (e) {- throw e === Ja ? Xa : e;- }- else r = t;- t = cs();- var i = t.queue, a = i.dispatch;- return n !== t.memoizedState && (Ho.flags |= 2048, Ls(9, { destroy: void 0 }, Fs.bind(null, i, n), null)), [- r,- a,- e- ];- }- function Fs(e, t) {- e.action = t;- }- function Is(e) {- var t = cs(), n = Uo;- if (n !== null) return Ps(t, n, e);- cs(), t = t.memoizedState, n = cs();- var r = n.queue.dispatch;- return n.memoizedState = e, [- t,- r,- !1- ];- }- function Ls(e, t, n, r) {- return e = {- tag: e,- create: n,- deps: r,- inst: t,- next: null- }, t = Ho.updateQueue, t === null && (t = ls(), Ho.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;- }- function Rs() {- return cs().memoizedState;- }- function zs(e, t, n, r) {- var i = ss();- Ho.flags |= e, i.memoizedState = Ls(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);- }- function Bs(e, t, n, r) {- var i = cs();- r = r === void 0 ? null : r;- var a = i.memoizedState.inst;- Uo !== null && r !== null && $o(r, Uo.memoizedState.deps) ? i.memoizedState = Ls(t, a, n, r) : (Ho.flags |= e, i.memoizedState = Ls(1 | t, a, n, r));- }- function Vs(e, t) {- zs(8390656, 8, e, t);- }- function Hs(e, t) {- Bs(2048, 8, e, t);- }- function Us(e) {- Ho.flags |= 4;- var t = Ho.updateQueue;- if (t === null) t = ls(), Ho.updateQueue = t, t.events = [e];- else {- var n = t.events;- n === null ? t.events = [e] : n.push(e);- }- }- function Ws(e) {- var t = cs().memoizedState;- return Us({- ref: t,- nextImpl: e- }), function() {- if (rd & 2) throw Error(i(440));- return t.impl.apply(void 0, arguments);- };- }- function Gs(e, t) {- return Bs(4, 2, e, t);- }- function Ks(e, t) {- return Bs(4, 4, e, t);- }- function qs(e, t) {- if (typeof t == "function") {- e = e();- var n = t(e);- return function() {- typeof n == "function" ? n() : t(null);- };- }- if (t != null) return e = e(), t.current = e, function() {- t.current = null;- };- }- function Js(e, t, n) {- n = n == null ? null : n.concat([e]), Bs(4, 4, qs.bind(null, t, e), n);- }- function Ys() {}- function Xs(e, t) {- var n = cs();- t = t === void 0 ? null : t;- var r = n.memoizedState;- return t !== null && $o(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);- }- function Zs(e, t) {- var n = cs();- t = t === void 0 ? null : t;- var r = n.memoizedState;- if (t !== null && $o(t, r[1])) return r[0];- if (r = e(), qo) {- Je(!0);- try {- e();- } finally {- Je(!1);- }- }- return n.memoizedState = [r, t], r;- }- function Qs(e, t, n) {- return n === void 0 || Vo & 1073741824 && !(od & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Bd(), Ho.lanes |= e, md |= e, n);- }- function $s(e, t, n, r) {- return zr(n, t) ? n : To.current === null ? !(Vo & 106) || Vo & 1073741824 && !(od & 261930) ? (Fc = !0, e.memoizedState = n) : (e = Bd(), Ho.lanes |= e, md |= e, t) : (e = Qs(e, n, r), zr(e, t) || (Fc = !0), e);- }- function ec(e, t, n, r, i) {- var a = de.p;- de.p = a !== 0 && 8 > a ? a : 8;- var o = L.T, s = {};- s.types = o === null ? null : o.types, L.T = s, fc(e, !1, t, n);- try {- var c = i(), l = L.S;- l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? dc(e, t, Ha(c, r), zd(e)) : dc(e, t, r, zd(e));- } catch (n) {- dc(e, t, {- then: function() {},- status: "rejected",- reason: n- }, zd());- } finally {- de.p = a, o !== null && s.types !== null && (o.types = s.types), L.T = o;- }- }- function tc() {}- function nc(e, t, n, r) {- if (e.tag !== 5) throw Error(i(476));- var a = rc(e).queue;- ec(e, a, t, fe, n === null ? tc : function() {- return ic(e), n(r);- });- }- function rc(e) {- var t = e.memoizedState;- if (t !== null) return t;- t = {- memoizedState: fe,- baseState: fe,- baseQueue: null,- queue: {- pending: null,- lanes: 0,- dispatch: null,- lastRenderedReducer: ps,- lastRenderedState: fe- },- next: null- };- var n = {};- return t.next = {- memoizedState: n,- baseState: n,- baseQueue: null,- queue: {- pending: null,- lanes: 0,- dispatch: null,- lastRenderedReducer: ps,- lastRenderedState: n- },- next: null- }, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;- }- function ic(e) {- var t = rc(e);- t.next === null && (t = e.alternate.memoizedState), dc(e, t.next.queue, {}, zd());- }- function ac() {- return wa(_h);- }- function oc() {- return cs().memoizedState;- }- function sc() {- return cs().memoizedState;- }- function cc(e) {- for (var t = e.return; t !== null;) {- switch (t.tag) {- case 24:- case 3:- var n = zd();- e = go(n);- var r = _o(t, e, n);- r !== null && (Hd(r, t, n), vo(r, t, n)), t = { cache: ja() }, e.payload = t;- return;- }- t = t.return;- }- }- function lc(e, t, n) {- var r = zd();- n = {- lane: r,- revertLane: 0,- gesture: null,- action: n,- hasEagerState: !1,- eagerState: null,- next: null- }, pc(e) ? mc(t, n) : (n = wi(e, t, n, r), n !== null && (Hd(n, e, r), hc(n, t, r)));- }- function uc(e, t, n) {- dc(e, t, n, zd());- }- function dc(e, t, n, r) {- var i = {- lane: r,- revertLane: 0,- gesture: null,- action: n,- hasEagerState: !1,- eagerState: null,- next: null- };- if (pc(e)) mc(t, i);- else {- var a = e.alternate;- if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {- var o = t.lastRenderedState, s = a(o, n);- if (i.hasEagerState = !0, i.eagerState = s, zr(s, o)) return Ci(e, t, i, 0), id === null && Si(), !1;- } catch {}- if (n = wi(e, t, i, r), n !== null) return Hd(n, e, r), hc(n, t, r), !0;- }- return !1;- }- function fc(e, t, n, r) {- if (r = {- lane: 2,- revertLane: Uf(),- gesture: null,- action: r,- hasEagerState: !1,- eagerState: null,- next: null- }, pc(e)) {- if (t) throw Error(i(479));- } else t = wi(e, n, r, 2), t !== null && Hd(t, e, 2);- }- function pc(e) {- var t = e.alternate;- return e === Ho || t !== null && t === Ho;- }- function mc(e, t) {- Ko = Go = !0;- var n = e.pending;- n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;- }- function hc(e, t, n) {- if (n & 4194048) {- var r = t.lanes;- r &= e.pendingLanes, n |= r, t.lanes = n, dt(e, n);- }- }- var gc = {- readContext: wa,- use: ds,- useCallback: Qo,- useContext: Qo,- useEffect: Qo,- useImperativeHandle: Qo,- useLayoutEffect: Qo,- useInsertionEffect: Qo,- useMemo: Qo,- useReducer: Qo,- useRef: Qo,- useState: Qo,- useDebugValue: Qo,- useDeferredValue: Qo,- useTransition: Qo,- useSyncExternalStore: Qo,- useId: Qo,- useHostTransitionStatus: Qo,- useFormState: Qo,- useActionState: Qo,- useOptimistic: Qo,- useMemoCache: Qo,- useCacheRefresh: Qo,- useEffectEvent: Qo- }, _c = {- readContext: wa,- use: ds,- useCallback: function(e, t) {- return ss().memoizedState = [e, t === void 0 ? null : t], e;- },- useContext: wa,- useEffect: Vs,- useImperativeHandle: function(e, t, n) {- n = n == null ? null : n.concat([e]), zs(4194308, 4, qs.bind(null, t, e), n);- },- useLayoutEffect: function(e, t) {- return zs(4194308, 4, e, t);- },- useInsertionEffect: function(e, t) {- zs(4, 2, e, t);- },- useMemo: function(e, t) {- var n = ss();- t = t === void 0 ? null : t;- var r = e();- if (qo) {- Je(!0);- try {- e();- } finally {- Je(!1);- }- }- return n.memoizedState = [r, t], r;- },- useReducer: function(e, t, n) {- var r = ss();- if (n !== void 0) {- var i = n(t);- if (qo) {- Je(!0);- try {- n(t);- } finally {- Je(!1);- }- }- } else i = t;- return r.memoizedState = r.baseState = i, e = {- pending: null,- lanes: 0,- dispatch: null,- lastRenderedReducer: e,- lastRenderedState: i- }, r.queue = e, e = e.dispatch = lc.bind(null, Ho, e), [r.memoizedState, e];- },- useRef: function(e) {- var t = ss();- return e = { current: e }, t.memoizedState = e;- },- useState: function(e) {- e = Cs(e);- var t = e.queue, n = uc.bind(null, Ho, t);- return t.dispatch = n, [e.memoizedState, n];- },- useDebugValue: Ys,- useDeferredValue: function(e, t) {- return Qs(ss(), e, t);- },- useTransition: function() {- var e = Cs(!1);- return e = ec.bind(null, Ho, e.queue, !0, !1), ss().memoizedState = e, [!1, e];- },- useSyncExternalStore: function(e, t, n) {- var r = Ho, a = ss();- if (ra) {- if (n === void 0) throw Error(i(407));- n = n();- } else {- if (n = t(), id === null) throw Error(i(349));- od & 127 || vs(r, t, n);- }- a.memoizedState = n;- var o = {- value: n,- getSnapshot: t- };- return a.queue = o, Vs(bs.bind(null, r, o, e), [e]), r.flags |= 2048, Ls(9, { destroy: void 0 }, ys.bind(null, r, o, n, t), null), n;- },- useId: function() {- var e = ss(), t = id.identifierPrefix;- if (ra) {- var n = Yi, r = Ji;- n = (r & ~(1 << 32 - Ye(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Jo++, 0 < n && (t += "H" + n.toString(32)), t += "_";- } else n = Zo++, t = "_" + t + "r_" + n.toString(32) + "_";- return e.memoizedState = t;- },- useHostTransitionStatus: ac,- useFormState: Ms,- useActionState: Ms,- useOptimistic: function(e) {- var t = ss();- t.memoizedState = t.baseState = e;- var n = {- pending: null,- lanes: 0,- dispatch: null,- lastRenderedReducer: null,- lastRenderedState: null- };- return t.queue = n, t = fc.bind(null, Ho, !0, n), n.dispatch = t, [e, t];- },- useMemoCache: fs,- useCacheRefresh: function() {- return ss().memoizedState = cc.bind(null, Ho);- },- useEffectEvent: function(e) {- var t = ss(), n = { impl: e };- return t.memoizedState = n, function() {- if (rd & 2) throw Error(i(440));- return n.impl.apply(void 0, arguments);- };- }- }, vc = {- readContext: wa,- use: ds,- useCallback: Xs,- useContext: wa,- useEffect: Hs,- useImperativeHandle: Js,- useInsertionEffect: Gs,- useLayoutEffect: Ks,- useMemo: Zs,- useReducer: ms,- useRef: Rs,- useState: function() {- return ms(ps);- },- useDebugValue: Ys,- useDeferredValue: function(e, t) {- return $s(cs(), Uo.memoizedState, e, t);- },- useTransition: function() {- var e = ms(ps)[0], t = cs().memoizedState;- return [typeof e == "boolean" ? e : us(e), t];- },- useSyncExternalStore: _s,- useId: oc,- useHostTransitionStatus: ac,- useFormState: Ns,- useActionState: Ns,- useOptimistic: function(e, t) {- return ws(cs(), Uo, e, t);- },- useMemoCache: fs,- useCacheRefresh: sc,- useEffectEvent: Ws- }, yc = {- readContext: wa,- use: ds,- useCallback: Xs,- useContext: wa,- useEffect: Hs,- useImperativeHandle: Js,- useInsertionEffect: Gs,- useLayoutEffect: Ks,- useMemo: Zs,- useReducer: gs,- useRef: Rs,- useState: function() {- return gs(ps);- },- useDebugValue: Ys,- useDeferredValue: function(e, t) {- var n = cs();- return Uo === null ? Qs(n, e, t) : $s(n, Uo.memoizedState, e, t);- },- useTransition: function() {- var e = gs(ps)[0], t = cs().memoizedState;- return [typeof e == "boolean" ? e : us(e), t];- },- useSyncExternalStore: _s,- useId: oc,- useHostTransitionStatus: ac,- useFormState: Is,- useActionState: Is,- useOptimistic: function(e, t) {- var n = cs();- return Uo === null ? (n.baseState = e, [e, n.queue.dispatch]) : ws(n, Uo, e, t);- },- useMemoCache: fs,- useCacheRefresh: sc,- useEffectEvent: Ws- };- function bc(e, t, n, r) {- t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);- }- var xc = {- enqueueSetState: function(e, t, n) {- e = e._reactInternals;- var r = zd(), i = go(r);- i.payload = t, n != null && (i.callback = n), t = _o(e, i, r), t !== null && (Hd(t, e, r), vo(t, e, r));- },- enqueueReplaceState: function(e, t, n) {- e = e._reactInternals;- var r = zd(), i = go(r);- i.tag = 1, i.payload = t, n != null && (i.callback = n), t = _o(e, i, r), t !== null && (Hd(t, e, r), vo(t, e, r));- },- enqueueForceUpdate: function(e, t) {- e = e._reactInternals;- var n = zd(), r = go(n);- r.tag = 2, t != null && (r.callback = t), t = _o(e, r, n), t !== null && (Hd(t, e, n), vo(t, e, n));- }- };- function Sc(e, t, n, r, i, a, o) {- return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Br(n, r) || !Br(i, a) : !0;- }- function Cc(e, t, n, r) {- e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && xc.enqueueReplaceState(t, t.state, null);- }- function wc(e, t) {- var n = t;- if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);- if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);- return n;- }- function Tc(e) {- vi(e);- }- function Ec(e) {- console.error(e);- }- function Dc(e) {- vi(e);- }- function Oc(e, t) {- try {- var n = e.onUncaughtError;- n(t.value, { componentStack: t.stack });- } catch (e) {- setTimeout(function() {- throw e;- });- }- }- function kc(e, t, n) {- try {- var r = e.onCaughtError;- r(n.value, {- componentStack: n.stack,- errorBoundary: t.tag === 1 ? t.stateNode : null- });- } catch (e) {- setTimeout(function() {- throw e;- });- }- }- function Ac(e, t, n) {- return n = go(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {- Oc(e, t);- }, n;- }- function jc(e) {- return e = go(e), e.tag = 3, e;- }- function Mc(e, t, n, r) {- var i = n.type.getDerivedStateFromError;- if (typeof i == "function") {- var a = r.value;- e.payload = function() {- return i(a);- }, e.callback = function() {- kc(t, n, r);- };- }- var o = n.stateNode;- o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {- kc(t, n, r), typeof i != "function" && (Ed === null ? Ed = /* @__PURE__ */ new Set([this]) : Ed.add(this));- var e = r.stack;- this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });- });- }- function Nc(e, t, n, r, a) {- if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {- if (t = n.alternate, t !== null && xa(t, n, a, !0), n = Ao.current, n !== null) {- switch (n.tag) {- case 31:- case 13:- case 19: return jo === null ? ef() : n.alternate === null && pd === 0 && (pd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Za ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), Cf(e, r, a)), !1;- case 22: return n.flags |= 65536, r === Za ? 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)), Cf(e, r, a)), !1;- }- throw Error(i(435, n.tag));- }- return Cf(e, r, a), ef(), !1;- }- if (ra) return t = Ao.current, t === null ? (r !== oa && (t = Error(i(423), { cause: r }), pa(Bi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Bi(r, n), a = Ac(e.stateNode, r, a), yo(e, a), pd !== 4 && (pd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== oa && (e = Error(i(422), { cause: r }), pa(Bi(e, n)))), !1;- var o = Error(i(520), { cause: r });- if (o = Bi(o, n), yd === null ? yd = [o] : yd.push(o), pd !== 4 && (pd = 2), t === null) return !0;- r = Bi(r, n), n = t;- do {- switch (n.tag) {- case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Ac(n.stateNode, r, e), yo(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" && (Ed === null || !Ed.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = jc(a), Mc(a, e, n, r), yo(n, a), !1;- break;- case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;- }- n = n.return;- } while (n !== null);- return !1;- }- var Pc = Error(i(461)), Fc = !1;- function Ic(e, t, n, r) {- t.child = e === null ? fo(t, null, n, r) : uo(t, e.child, n, r);- }- function Lc(e, t, n, r, i) {- n = n.render;- var a = t.ref;- if ("ref" in r) {- var o = {};- for (var s in r) s !== "ref" && (o[s] = r[s]);- } else o = r;- return Ca(t), r = es(e, t, n, o, a, i), s = is(), e !== null && !Fc ? (as(e, t, i), dl(e, t, i)) : (ra && s && Qi(t), t.flags |= 1, Ic(e, t, r, i), t.child);- }- function Rc(e, t, n, r, i) {- if (e === null) {- var a = n.type;- return typeof a == "function" && !ji(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, zc(e, t, a, r, i)) : (e = Pi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);- }- if (a = e.child, !fl(e, i)) {- var o = a.memoizedProps;- if (n = n.compare, n = n === null ? Br : n, n(o, r) && e.ref === t.ref) return dl(e, t, i);- }- return t.flags |= 1, e = Mi(a, r), e.ref = t.ref, e.return = t, t.child = e;- }- function zc(e, t, n, r, i) {- if (e !== null) {- var a = e.memoizedProps;- if (Br(a, r) && e.ref === t.ref) {- if (Fc = !1, t.pendingProps = r = a, fl(e, i)) e.flags & 131072 && (Fc = !0);- else return t.lanes = e.lanes, dl(e, t, i);- }- }- return qc(e, t, n, r, i);- }- function Bc(e, t, n, r) {- var i = r.children, a = e === null ? null : e.memoizedState;- if (e === null && t.stateNode === null && (t.stateNode = {- _visibility: 1,- _pendingMarkers: null,- _retryCache: null,- _transitions: null- }), r.mode === "hidden") {- if (t.flags & 128) {- if (a = a === null ? n : a.baseLanes | n, e !== null) {- for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;- r = i & ~a;- } else r = 0, t.child = null;- return Hc(e, t, a, n, r);- }- if (n & 536870912) t.memoizedState = {- baseLanes: 0,- cachePool: null- }, e !== null && Ka(t, a === null ? null : a.cachePool), a === null ? Oo() : Do(t, a), Po(t);- else return r = t.lanes = 536870912, Hc(e, t, a === null ? n : a.baseLanes | n, n, r);- } else a === null ? (e !== null && Ka(t, null), Oo(), Fo()) : (Ka(t, a.cachePool), Do(t, a), Fo(), t.memoizedState = null);- return Ic(e, t, i, n), t.child;- }- function Vc(e, t) {- return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {- _visibility: 1,- _pendingMarkers: null,- _retryCache: null,- _transitions: null- }), t.sibling;- }- function Hc(e, t, n, r, i) {- var a = Ga();- return a = a === null ? null : {- parent: Aa._currentValue,- pool: a- }, t.memoizedState = {- baseLanes: n,- cachePool: a- }, e !== null && Ka(t, null), Oo(), Po(t), e !== null && xa(e, t, r, !0), t.childLanes = i, null;- }- function Uc(e, t) {- return t = nl({- mode: t.mode,- children: t.children- }, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;- }- function Wc(e, t, n) {- return uo(t, e.child, null, n), e = Uc(t, t.pendingProps), e.flags |= 2, Io(t), t.memoizedState = null, e;- }- function Gc(e, t, n) {- var r = t.pendingProps, a = !!(t.flags & 128);- if (t.flags &= -129, e === null) {- if (ra) {- if (r.mode === "hidden") return e = Uc(t, r), t.lanes = 536870912, e.memoizedState = {- baseLanes: 0,- cachePool: null- }, Vc(null, e);- if (No(t), (e = na) ? (e = hm(e, aa), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {- dehydrated: e,- treeContext: qi === null ? null : {- id: Ji,- overflow: Yi- },- retryLane: 536870912,- hydrationErrors: null- }, n = Li(e), n.return = t, t.child = n, ta = t, na = null)) : e = null, e === null) throw sa(t);- return t.lanes = 536870912, null;- }- return Uc(t, r);- }- var o = e.memoizedState;- if (o !== null) {- var s = o.dehydrated;- if (No(t), a) {- if (t.flags & 256) t.flags &= -257, t = Wc(e, t, n);- else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;- else throw Error(i(558));- } else if (Fc || xa(e, t, n, !1), a = (n & e.childLanes) !== 0, Fc || a) {- if (To.current === null) {- if (r = id, r !== null && (s = ft(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Hd(r, e, s), Pc;- ef();- }- t = Wc(e, t, n);- } else e = o.treeContext, na = ym(s.nextSibling), ta = t, ra = !0, ia = null, aa = !1, e !== null && ea(t, e), t = Uc(t, r), t.flags |= 134221824;- return t;- }- return e = Mi(e.child, {- mode: r.mode,- children: r.children- }), e.ref = t.ref, t.child = e, e.return = t, e;- }- function Kc(e, t) {- var n = t.ref;- if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);- else {- if (typeof n != "function" && typeof n != "object") throw Error(i(284));- (e === null || e.ref !== n) && (t.flags |= 4194816);- }- }- function qc(e, t, n, r, i) {- return Ca(t), n = es(e, t, n, r, void 0, i), r = is(), e !== null && !Fc ? (as(e, t, i), dl(e, t, i)) : (ra && r && Qi(t), t.flags |= 1, Ic(e, t, n, i), t.child);- }- function Jc(e, t, n, r, i, a) {- return Ca(t), t.updateQueue = null, n = ns(t, r, n, i), ts(e), r = is(), e !== null && !Fc ? (as(e, t, a), dl(e, t, a)) : (ra && r && Qi(t), t.flags |= 1, Ic(e, t, n, a), t.child);- }- function Yc(e, t, n, r, i) {- if (Ca(t), t.stateNode === null) {- var a = Oi, o = n.contextType;- typeof o == "object" && o && (a = wa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = xc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, mo(t), o = n.contextType, a.context = typeof o == "object" && o ? wa(o) : Oi, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (bc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && xc.enqueueReplaceState(a, a.state, null), So(t, r, a, i), xo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;- } else if (e === null) {- a = t.stateNode;- var s = t.memoizedProps, c = wc(n, s);- a.props = c;- var l = a.context, u = n.contextType;- o = Oi, typeof u == "object" && u && (o = wa(u));- var d = n.getDerivedStateFromProps;- u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Cc(t, a, r, o), po = !1;- var f = t.memoizedState;- a.state = f, So(t, r, a, i), xo(), l = t.memoizedState, s || f !== l || po ? (typeof d == "function" && (bc(t, n, d, r), l = t.memoizedState), (c = po || Sc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);- } else {- a = t.stateNode, ho(e, t), o = t.memoizedProps, u = wc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Oi, typeof l == "object" && l && (c = wa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Cc(t, a, r, c), po = !1, f = t.memoizedState, a.state = f, So(t, r, a, i), xo();- var p = t.memoizedState;- o !== d || f !== p || po || e !== null && e.dependencies !== null && Sa(e.dependencies) ? (typeof s == "function" && (bc(t, n, s, r), p = t.memoizedState), (u = po || Sc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && Sa(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);- }- return a = r, Kc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = uo(t, e.child, null, i), t.child = uo(t, null, n, i)) : Ic(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = dl(e, t, i), e;- }- function Xc(e, t, n, r) {- return da(), t.flags |= 256, Ic(e, t, n, r), t.child;- }- var Zc = {- dehydrated: null,- treeContext: null,- retryLane: 0,- hydrationErrors: null- };- function Qc(e) {- return {- baseLanes: e,- cachePool: qa()- };- }- function $c(e, t, n) {- return e = e === null ? 0 : e.childLanes & ~n, t && (e |= _d), e;- }- function el(e, t, n) {- var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;- if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Lo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {- if (ra) {- if (i ? Mo(t) : Fo(), (e = na) ? (e = hm(e, aa), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {- dehydrated: e,- treeContext: qi === null ? null : {- id: Ji,- overflow: Yi- },- retryLane: 536870912,- hydrationErrors: null- }, n = Li(e), n.return = t, t.child = n, ta = t, na = null)) : e = null, e === null) throw sa(t);- return t.lanes = _m(e) ? 32 : 536870912, null;- }- return a = r.children, r = r.fallback, i ? (Fo(), i = t.mode, a = nl({- mode: "hidden",- children: a- }, i), r = Fi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Qc(n), r.childLanes = $c(e, o, n), t.memoizedState = Zc, Vc(null, r)) : (Mo(t), tl(t, a));- }- var s = e.memoizedState;- if (s !== null) {- var c = s.dehydrated;- if (c !== null) return il(e, t, a, o, r, c, s, n);- }- return i ? (Fo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Mi(s, {- mode: "hidden",- children: r.children- }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Fi(i, a, n, null), i.flags |= 2) : i = Mi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Vc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Qc(n) : (a = i.cachePool, a === null ? a = qa() : (s = Aa._currentValue, a = a.parent === s ? a : {- parent: s,- pool: s- }), i = {- baseLanes: i.baseLanes | n,- cachePool: a- }), r.memoizedState = i, r.childLanes = $c(e, o, n), t.memoizedState = Zc, Vc(e.child, r)) : (Mo(t), n = e.child, e = n.sibling, n = Mi(n, {- mode: "visible",- children: r.children- }), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);- }- function tl(e, t) {- return t = nl({- mode: "visible",- children: t- }, e.mode), t.return = e, e.child = t;- }- function nl(e, t) {- return e = Ai(22, e, null, t), e.lanes = 0, e;- }- function rl(e, t, n) {- return uo(t, e.child, null, n), e = tl(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;- }- function il(e, t, n, r, a, o, s, c) {- if (n) return t.flags & 256 ? (Mo(t), t.flags &= -257, rl(e, t, c)) : t.memoizedState === null ? (Fo(), o = a.fallback, s = t.mode, a = nl({- mode: "visible",- children: a.children- }, s), o = Fi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, uo(t, e.child, null, c), a = t.child, a.memoizedState = Qc(c), a.childLanes = $c(e, r, c), t.memoizedState = Zc, Vc(null, a)) : (Fo(), t.child = e.child, t.flags |= 128, null);- if (Mo(t), _m(o)) {- if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;- return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, pa({- value: a,- source: null,- stack: null- })), rl(e, t, c);- }- if (Fc || xa(e, t, c, !1), r = (c & e.childLanes) !== 0, Fc || r) {- if (To.current !== null) return rl(e, t, c);- if (r = id, r !== null && (a = ft(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Hd(r, e, a), Pc;- return gm(o) || ef(), rl(e, t, c);- }- return gm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, na = ym(o.nextSibling), ta = t, ra = !0, ia = null, aa = !1, e !== null && ea(t, e), t = tl(t, a.children), t.flags |= 134221824, t);- }- function al(e, t, n) {- e.lanes |= t;- var r = e.alternate;- r !== null && (r.lanes |= t), ya(e.return, t, n);- }- function ol(e) {- for (var t = null; e !== null;) {- var n = e.alternate;- n !== null && Bo(n) === null && (t = e), e = e.sibling;- }- return t;- }- function sl(e, t, n, r, i, a) {- var o = e.memoizedState;- o === null ? e.memoizedState = {- isBackwards: t,- rendering: null,- renderingStartTime: 0,- last: r,- tail: n,- tailMode: i,- treeForkCount: a- } : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);- }- function cl(e) {- var t = e.child;- for (e.child = null; t !== null;) {- var n = t.sibling;- t.sibling = e.child, e.child = t, t = n;- }- }- function ll(e, t, n) {- var r = t.pendingProps, i = r.revealOrder, a = r.tail;- r = r.children;- var o = Lo.current;- if (t.flags & 128) return Ro(t, o), null;- var s = !!(o & 2);- if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Ro(t, o), i === "backwards" && e !== null ? (cl(e), Ic(e, t, r, n), cl(e)) : Ic(e, t, r, n), r = ra ? Wi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {- if (e.tag === 13) e.memoizedState !== null && al(e, n, t);- else if (e.tag === 19) al(e, n, t);- else if (e.child !== null) {- e.child.return = e, e = e.child;- continue;- }- if (e === t) break a;- for (; e.sibling === null;) {- if (e.return === null || e.return === t) break a;- e = e.return;- }- e.sibling.return = e.return, e = e.sibling;- }- switch (i) {- case "backwards":- n = ol(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, cl(t)), sl(t, !0, i, null, a, r);- break;- case "unstable_legacy-backwards":- for (n = null, i = t.child, t.child = null; i !== null;) {- if (e = i.alternate, e !== null && Bo(e) === null) {- t.child = i;- break;- }- e = i.sibling, i.sibling = n, n = i, i = e;- }- sl(t, !0, n, null, a, r);- break;- case "together":- sl(t, !1, null, null, void 0, r);- break;- case "independent":- t.memoizedState = null;- break;- default: n = ol(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), sl(t, !1, i, n, a, r);- }- return t.child;- }- function ul(e, t, n) {- var r = t.pendingProps;- return _a(t, t.type, r.value), Ic(e, t, r.children, n), t.child;- }- function dl(e, t, n) {- if (e !== null && (t.dependencies = e.dependencies), md |= t.lanes, (n & t.childLanes) === 0) {- if (e !== null) {- if (xa(e, t, n, !1), (n & t.childLanes) === 0) return null;- } else return null;- }- if (e !== null && t.child !== e.child) throw Error(i(153));- if (t.child !== null) {- for (e = t.child, n = Mi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Mi(e, e.pendingProps), n.return = t;- n.sibling = null;- }- return t.child;- }- function fl(e, t) {- return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && Sa(e)));- }- function pl(e, t, n) {- switch (t.tag) {- case 3:- xe(t, t.stateNode.containerInfo), _a(t, Aa, e.memoizedState.cache), da();- break;- case 27:- case 5:- Ce(t);- break;- case 4:- xe(t, t.stateNode.containerInfo);- break;- case 10:- _a(t, t.type, t.memoizedProps.value);- break;- case 31:- if (t.memoizedState !== null) return t.flags |= 128, No(t), null;- break;- case 13:- var r = t.memoizedState;- if (r !== null) {- if (r.dehydrated !== null) return Mo(t), t.flags |= 128, null;- r = xa(e, t, n, !1);- var i = t.child.childLanes;- return r || (n & i) !== 0 ? el(e, t, n) : (Mo(t), e = dl(e, t, n), e === null ? null : e.sibling);- }- Mo(t);- break;- case 19:- if (t.flags & 128) return ll(e, t, n);- if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (xa(e, t, n, !1), (n & t.childLanes) !== 0), i) {- if (r) return ll(e, t, n);- t.flags |= 128;- }- if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Ro(t, Lo.current), r) break;- return null;- case 22: return t.lanes = 0, Bc(e, t, n, t.pendingProps);- case 24: _a(t, Aa, e.memoizedState.cache);- }- return dl(e, t, n);- }- function ml(e, t, n) {- if (e !== null) {- if (e.memoizedProps !== t.pendingProps) Fc = !0;- else {- if (!fl(e, n) && !(t.flags & 128)) return Fc = !1, pl(e, t, n);- Fc = !!(e.flags & 131072);- }- } else Fc = !1, ra && t.flags & 1048576 && Zi(t, Wi, t.index);- switch (t.lanes = 0, t.tag) {- case 16:- a: {- var r = t.pendingProps;- if (e = eo(t.elementType), t.type = e, typeof e == "function") ji(e) ? (r = wc(e, r), t.tag = 1, t = Yc(null, t, e, r, n)) : (t.tag = 0, t = qc(null, t, e, r, n));- else {- if (e != null) {- var a = e.$$typeof;- if (a === N) {- t.tag = 11, t = Lc(null, t, e, r, n);- break a;- }- if (a === F) {- t.tag = 14, t = Rc(null, t, e, r, n);- break a;- }- if (a === M) {- t.tag = 10, t.type = e, t = ul(null, t, n);- break a;- }- }- throw t = le(e) || e, Error(i(306, t, ""));- }- }- return t;- case 0: return qc(e, t, t.type, t.pendingProps, n);- case 1: return r = t.type, a = wc(r, t.pendingProps), Yc(e, t, r, a, n);- case 3:- a: {- if (xe(t, t.stateNode.containerInfo), e === null) throw Error(i(387));- r = t.pendingProps;- var o = t.memoizedState;- a = o.element, ho(e, t), So(t, r, null, n);- var s = t.memoizedState;- if (r = s.cache, _a(t, Aa, r), r !== o.cache && ba(t, [Aa], n, !0), xo(), r = s.element, o.isDehydrated) {- if (o = {- element: r,- isDehydrated: !1,- cache: s.cache- }, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {- t = Xc(e, t, r, n);- break a;- }- if (r !== a) {- a = Bi(Error(i(424)), t), pa(a), t = Xc(e, t, r, n);- break a;- }- switch (e = t.stateNode.containerInfo, e.nodeType) {- case 9:- e = e.body;- break;- default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;- }- for (na = ym(e.firstChild), ta = t, ra = !0, ia = null, aa = !0, n = fo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;- } else {- if (da(), r === a) {- t = dl(e, t, n);- break a;- }- Ic(e, t, r, n);- }- t = t.child;- }- return t;- case 26: return Kc(e, t), e === null ? (n = Um(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ra || (t.stateNode = Cp(t.type, t.pendingProps, ye.current, t)) : t.memoizedState = Um(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;- case 27: return Ce(t), e === null && ra && (r = t.stateNode = Tm(t.type, t.pendingProps, ye.current), ta = t, aa = !0, a = na, Mp(t.type) ? (bm = a, na = ym(r.firstChild)) : na = a), Ic(e, t, t.pendingProps.children, n), Kc(e, t), e === null && (t.flags |= 4194304), t.child;- case 5: return e === null && ra && ((a = r = na) && (r = pm(r, t.type, t.pendingProps, aa), r === null ? a = !1 : (t.stateNode = r, ta = t, na = ym(r.firstChild), aa = !1, a = !0)), a || sa(t)), Ce(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, wp(a, o) ? r = null : s !== null && wp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = es(e, t, rs, null, null, n), _h._currentValue = a), Kc(e, t), Ic(e, t, r, n), t.child;- case 6: return e === null && ra && ((e = n = na) && (n = mm(n, t.pendingProps, aa), n === null ? e = !1 : (t.stateNode = n, ta = t, na = null, e = !0)), e || sa(t)), null;- case 13: return el(e, t, n);- case 4: return xe(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = uo(t, null, r, n) : Ic(e, t, r, n), t.child;- case 11: return Lc(e, t, t.type, t.pendingProps, n);- case 7: return r = t.pendingProps, Kc(e, t), Ic(e, t, r, n), t.child;- case 8: return Ic(e, t, t.pendingProps.children, n), t.child;- case 12: return Ic(e, t, t.pendingProps.children, n), t.child;- case 10: return ul(e, t, n);- case 9: return a = t.type._context, r = t.pendingProps.children, Ca(t), a = wa(a), r = r(a), t.flags |= 1, Ic(e, t, r, n), t.child;- case 14: return Rc(e, t, t.type, t.pendingProps, n);- case 15: return zc(e, t, t.type, t.pendingProps, n);- case 19: return ll(e, t, n);- case 31: return Gc(e, t, n);- case 22: return Bc(e, t, n, t.pendingProps);- case 24: return Ca(t), r = wa(Aa), e === null ? (a = Ga(), a === null && (a = id, o = ja(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {- parent: r,- cache: a- }, mo(t), _a(t, Aa, a)) : ((e.lanes & n) !== 0 && (ho(e, t), So(t, null, null, n), xo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, _a(t, Aa, r), r !== a.cache && ba(t, [Aa], n, !0)) : (a = {- parent: r,- cache: r- }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), _a(t, Aa, r))), Ic(e, t, t.pendingProps.children, n), t.child;- case 30: return t.stateNode === null && (t.stateNode = {- autoName: null,- paired: null,- clones: null,- ref: null- }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ra && Qi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Kc(e, t), Ic(e, t, r.children, n), t.child;- case 29: throw t.pendingProps;- }- throw Error(i(156, t.tag));- }- function hl(e) {- e.flags |= 4;- }- function gl(e, t, n, r, i) {- var a;- if ((a = !!(e.mode & 32)) && (a = n === null ? ih(t, r) : ih(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 (Zd()) e.flags |= 8192;- else throw to = Za, Ya;- }- } else e.flags &= -16777217;- }- function _l(e, t) {- if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;- else if (e.flags |= 16777216, !ah(t)) {- if (Zd()) e.flags |= 8192;- else throw to = Za, Ya;- }- }- function vl(e, t) {- t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ot(), e.lanes |= t, vd |= t);- }- function yl(e, t) {- if (!ra) switch (e.tailMode) {- case "visible": break;- case "collapsed":- for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;- r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null;- break;- default:- for (t = e.tail, n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling;- n === null ? e.tail = null : n.sibling = null;- }- }- function bl(e) {- var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;- if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;- else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;- return e.subtreeFlags |= r, e.childLanes = n, t;- }- function xl(e, t, n) {- var r = t.pendingProps;- switch ($i(t), t.tag) {- case 16:- case 15:- case 0:- case 11:- case 7:- case 8:- case 12:- case 9:- case 14: return bl(t), null;- case 1: return bl(t), null;- case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), va(Aa), Se(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ua(t) ? hl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, fa())), bl(t), null;- case 26:- var a = t.type, o = t.memoizedState;- return e === null ? (hl(t), o === null ? (bl(t), gl(t, a, null, r, n)) : (bl(t), _l(t, o))) : o ? o === e.memoizedState ? (bl(t), t.flags &= -16777217) : (hl(t), bl(t), _l(t, o)) : (e = e.memoizedProps, e !== r && hl(t), bl(t), gl(t, a, e, r, n)), null;- case 27:- if (we(t), n = ye.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && hl(t);- else {- if (!r) {- if (t.stateNode === null) throw Error(i(166));- return bl(t), t.subtreeFlags &= -33554433, null;- }- e = _e.current, ua(t) ? ca(t, e) : (e = Tm(a, r, n), t.stateNode = e, hl(t));- }- return bl(t), t.subtreeFlags &= -33554433, null;- case 5:- if (we(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && hl(t);- else {- if (!r) {- if (t.stateNode === null) throw Error(i(166));- return bl(t), t.subtreeFlags &= -33554433, null;- }- if (o = _e.current, ua(t)) ca(t, o);- else {- var s = bp(ye.current);- switch (o) {- case 1:- o = s.createElementNS("http://www.w3.org/2000/svg", a);- break;- case 2:- o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a);- break;- default: switch (a) {- case "svg":- o = s.createElementNS("http://www.w3.org/2000/svg", a);- break;- case "math":- o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a);- break;- case "script":- o = s.createElement("div"), o.innerHTML = "<script><\/script>", o = o.removeChild(o.firstChild);- break;- case "select":- o = typeof r.is == "string" ? s.createElement("select", { is: r.is }) : s.createElement("select"), r.multiple ? o.multiple = !0 : r.size && (o.size = r.size);- break;- default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);- }- }- o[vt] = t, o[yt] = r;- a: for (s = t.child; s !== null;) {- if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);- else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {- s.child.return = s, s = s.child;- continue;- }- if (s === t) break a;- for (; s.sibling === null;) {- if (s.return === null || s.return === t) break a;- s = s.return;- }- s.sibling.return = s.return, s = s.sibling;- }- t.stateNode = o;- a: switch (pp(o, a, r), a) {- case "button":- case "input":- case "select":- case "textarea":- r = !!r.autoFocus;- break a;- case "img":- r = !0;- break a;- default: r = !1;- }- r && hl(t);- }- }- return bl(t), t.subtreeFlags &= -33554433, gl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;- case 6:- if (e && t.stateNode != null) e.memoizedProps !== r && hl(t);- else {- if (typeof r != "string" && t.stateNode === null) throw Error(i(166));- if (e = ye.current, ua(t)) {- if (e = t.stateNode, n = t.memoizedProps, r = null, a = ta, a !== null) switch (a.tag) {- case 27:- case 5: r = a.memoizedProps;- }- e[vt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || up(e.nodeValue, n)), e || sa(t, !0);- } else e = bp(e).createTextNode(r), e[vt] = t, t.stateNode = e;- }- return bl(t), null;- case 31:- if (n = t.memoizedState, e === null || e.memoizedState !== null) {- if (r = ua(t), n !== null) {- if (e === null) {- if (!r) throw Error(i(318));- if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));- e[vt] = t;- } else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;- bl(t), e = !1;- } else n = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;- if (!e) return t.flags & 256 ? (Io(t), t) : (Io(t), null);- if (t.flags & 128) throw Error(i(558));- }- return bl(t), null;- case 13:- if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {- if (a = ua(t), r !== null && r.dehydrated !== null) {- if (e === null) {- if (!a) throw Error(i(318));- if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));- a[vt] = t;- } else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;- bl(t), a = !1;- } else a = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;- if (!a) return t.flags & 256 ? (Io(t), t) : (Io(t), null);- }- return Io(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), vl(t, t.updateQueue), bl(t), null);- case 4: return Se(), e === null && ep(t.stateNode.containerInfo), t.flags |= 67108864, bl(t), null;- case 10: return va(t.type), bl(t), null;- case 19:- if (zo(t), r = t.memoizedState, r === null) return bl(t), null;- if (a = !!(t.flags & 128), o = r.rendering, o === null) {- if (a) yl(r, !1);- else {- if (pd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {- if (o = Bo(e), o !== null) {- for (t.flags |= 128, yl(r, !1), e = o.updateQueue, t.updateQueue = e, vl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;- return Ro(t, Lo.current & 1 | 2), ra && Xi(t, r.treeForkCount), t.child;- }- e = e.sibling;- }- r.tail !== null && Le() > wd && (t.flags |= 128, a = !0, yl(r, !1), t.lanes = 4194304);- }- } else {- if (!a) {- if (e = Bo(o), e !== null) {- if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, vl(t, e), yl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ra) return bl(t), null;- } else 2 * Le() - r.renderingStartTime > wd && n !== 536870912 && (t.flags |= 128, a = !0, yl(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);- }- if (r.tail !== null) {- e = r.tail;- a: {- for (n = e; n !== null;) {- if (n.alternate !== null) {- n = !1;- break a;- }- n = n.sibling;- }- n = !0;- }- return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Le(), e.sibling = null, o = Lo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ra ? Ro(t, o) : (n = o, ge(Ao, t), ge(Lo, n), jo === null && (jo = t)), ra && Xi(t, r.treeForkCount), e;- }- return bl(t), null;- case 22:- case 23: return Io(t), ko(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (bl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : bl(t), n = t.updateQueue, n !== null && vl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && he(Wa), null;- case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), va(Aa), bl(t), null;- case 25: return null;- case 30: return t.flags |= 33554432, bl(t), null;- }- throw Error(i(156, t.tag));- }- function Sl(e, t) {- switch ($i(t), t.tag) {- case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 3: return va(Aa), Se(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;- case 26:- case 27:- case 5: return we(t), null;- case 31:- if (t.memoizedState !== null) {- if (Io(t), t.alternate === null) throw Error(i(340));- da();- }- return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 13:- if (Io(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {- if (t.alternate === null) throw Error(i(340));- da();- }- return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 19: return zo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;- case 4: return Se(), null;- case 10: return va(t.type), null;- case 22:- case 23: return Io(t), ko(), e !== null && he(Wa), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;- case 24: return va(Aa), null;- case 25: return null;- default: return null;- }- }- function Cl(e, t) {- switch ($i(t), t.tag) {- case 3:- va(Aa), Se();- break;- case 26:- case 27:- case 5:- we(t);- break;- case 4:- Se();- break;- case 31:- t.memoizedState !== null && Io(t);- break;- case 13:- Io(t);- break;- case 19:- zo(t);- break;- case 10:- va(t.type);- break;- case 22:- case 23:- Io(t), ko(), e !== null && he(Wa);- break;- case 24: va(Aa);- }- }- function wl(e, t) {- try {- var n = t.updateQueue, r = n === null ? null : n.lastEffect;- if (r !== null) {- var i = r.next;- n = i;- do {- if ((n.tag & e) === e) {- r = void 0;- var a = n.create, o = n.inst;- r = a(), o.destroy = r;- }- n = n.next;- } while (n !== i);- }- } catch (e) {- Sf(t, t.return, e);- }- }- function Tl(e, t, n) {- try {- var r = t.updateQueue, i = r === null ? null : r.lastEffect;- if (i !== null) {- var a = i.next;- r = a;- do {- if ((r.tag & e) === e) {- var o = r.inst, s = o.destroy;- if (s !== void 0) {- o.destroy = void 0, i = t;- var c = n, l = s;- try {- l();- } catch (e) {- Sf(i, c, e);- }- }- }- r = r.next;- } while (r !== a);- }- } catch (e) {- Sf(t, t.return, e);- }- }- function El(e) {- var t = e.updateQueue;- if (t !== null) {- var n = e.stateNode;- try {- wo(t, n);- } catch (t) {- Sf(e, e.return, t);- }- }- }- function Dl(e, t, n) {- n.props = wc(e.type, e.memoizedProps), n.state = e.memoizedState;- try {- n.componentWillUnmount();- } catch (n) {- Sf(e, t, n);- }- }- function Ol(e, t) {- try {- var n = e.ref;- if (n !== null) {- switch (e.tag) {- case 26:- case 27:- case 5:- var r = e.stateNode;- break;- case 30:- var i = e.stateNode, a = hi(e.memoizedProps, i);- (i.ref === null || i.ref.name !== a) && (i.ref = Wp(a)), r = i.ref;- break;- case 7:- if (e.stateNode === null) {- var o = new Gp(e);- f(e.child, !1, cm, o, void 0, void 0), e.stateNode = o;- }- r = e.stateNode;- break;- default: r = e.stateNode;- }- typeof n == "function" ? e.refCleanup = n(r) : n.current = r;- }- } catch (n) {- Sf(e, t, n);- }- }- function kl(e, t) {- var n = e.ref, r = e.refCleanup;- if (n !== null) {- if (typeof r == "function") try {- r();- } catch (n) {- Sf(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) {- Sf(e, t, n);- }- else n.current = null;- }- }- function Al(e, t) {- if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) um(e.stateNode, t[n]);- }- function jl(e) {- for (var t = e.return; t !== null && (Pl(t) && um(e.stateNode, t.stateNode), !Nl(t));) t = t.return;- }- function Ml(e) {- for (var t = e.return; t !== null && (Pl(t) && dm(e.stateNode, t.stateNode), !Nl(t));) t = t.return;- }- function Nl(e) {- return e.tag === 5 || e.tag === 3 || e.tag === 27;- }- function Pl(e) {- return e && e.tag === 7 && e.stateNode !== null;- }- function Fl(e) {- var t = e.type, n = e.memoizedProps, r = e.stateNode;- try {- a: switch (t) {- case "button":- case "input":- case "select":- case "textarea":- n.autoFocus && r.focus();- break a;- case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);- }- } catch (t) {- Sf(e, e.return, t);- }- }- function Il(e, t, n) {- try {- var r = e.stateNode;- hp(r, e.type, n, t), r[yt] = t;- } catch (t) {- Sf(e, e.return, t);- }- }- function Ll(e) {- return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Mp(e.type) || e.tag === 4;- }- function Rl(e) {- a: for (;;) {- for (; e.sibling === null;) {- if (e.return === null || Ll(e.return)) return null;- e = e.return;- }- for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {- if (e.tag === 27 && Mp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;- e.child.return = e, e = e.child;- }- if (!(e.flags & 2)) return e.stateNode;- }- }- function zl(e, t, n, r) {- var i = e.tag;- if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = gn)), Al(e, r), Ut = !0;- else if (i !== 4 && (i === 27 && (Al(e, r), r = null, Mp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (zl(e, t, n, r), e = e.sibling; e !== null;) zl(e, t, n, r), e = e.sibling;- }- function Bl(e, t, n, r) {- var i = e.tag;- if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Al(e, r), Ut = !0;- else if (i !== 4 && (i === 27 && (Al(e, r), r = null, Mp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Bl(e, t, n, r), e = e.sibling; e !== null;) Bl(e, t, n, r), e = e.sibling;- }- function Vl(e) {- var t = e.stateNode, n = e.memoizedProps;- try {- for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);- pp(t, r, n), t[vt] = e, t[yt] = n;- } catch (t) {- Sf(e, e.return, t);- }- }- var Hl = !1, Ul = null;- function Wl(e) {- (e.tag === 30 || e.subtreeFlags & 33554432) && (Hl = !0);- }- var Gl = null;- function Kl() {- var e = Gl;- return Gl = null, e;- }- var ql = 0;- function Jl(e, t, n, r, i) {- return ql = 0, Yl(e.child, t, n, r, i);- }- function Yl(e, t, n, r, i) {- for (var a = !1; e !== null;) {- if (e.tag === 5) {- var o = e.stateNode;- if (r !== null) {- var s = Rp(o);- r.push(s), s.view && (a = !0);- } else a || Rp(o).view && (a = !0);- Hl = !0, Fp(o, ql === 0 ? t : t + "_" + ql, n), ql++;- } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Yl(e.child, t, n, r, i) && (a = !0));- e = e.sibling;- }- return a;- }- function Xl(e, t) {- for (; e !== null;) e.tag === 5 ? Ip(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Xl(e.child, t)), e = e.sibling;- }- function Zl(e) {- if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {- if ((e.tag !== 22 || e.memoizedState === null) && (Zl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {- var t = e.memoizedProps;- if (t.name == null || t.name === "auto") throw Error(i(544));- var n = t.name;- t = _i(t.default, t.share), t !== "none" && (Jl(e, n, t, null, !1) || Xl(e.child, !1));- }- e = e.sibling;- }- }- function Ql(e, t) {- if (e.tag === 30) {- var n = e.stateNode, r = e.memoizedProps, i = hi(r, n), a = _i(r.default, n.paired ? r.share : r.enter);- a === "none" ? Zl(e) : Jl(e, i, a, null, !1) ? (Zl(e), n.paired || t || Vd(e, r.onEnter)) : Xl(e.child, !1);- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e, t), e = e.sibling;- else Zl(e);- }- function $l(e) {- if (Ul !== null && Ul.size !== 0) {- var t = Ul;- if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {- if (e.tag !== 22 || e.memoizedState === null) {- if (e.tag === 30 && e.flags & 18874368) {- var n = e.memoizedProps, r = n.name;- if (r != null && r !== "auto") {- var i = t.get(r);- if (i !== void 0) {- var a = _i(n.default, n.share);- if (a !== "none" && (Jl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Vd(e, n.onShare)) : Xl(e.child, !1)), t.delete(r), t.size === 0) break;- }- }- }- $l(e);- }- e = e.sibling;- }- }- }- function eu(e) {- if (e.tag === 30) {- var t = e.memoizedProps, n = hi(t, e.stateNode), r = Ul === null ? void 0 : Ul.get(n), i = _i(t.default, r === void 0 ? t.exit : t.share);- i !== "none" && (Jl(e, n, i, null, !1) ? r === void 0 ? Vd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ul.delete(n), Vd(e, t.onShare)) : Xl(e.child, !1)), Ul !== null && $l(e);- } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) eu(e), e = e.sibling;- else Ul !== null && $l(e);- }- function tu(e) {- for (e = e.child; e !== null;) {- if (e.tag === 30) {- var t = e.memoizedProps, n = hi(t, e.stateNode);- t = _i(t.default, t.update), e.flags &= -5, t !== "none" && Jl(e, n, t, e.memoizedState = [], !1);- } else e.subtreeFlags & 33554432 && tu(e);- e = e.sibling;- }- }- function nu(e) {- if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {- if (e.tag !== 22 || e.memoizedState === null) {- if (e.tag === 30 && e.flags & 18874368) {- var t = e.stateNode;- t.paired !== null && (t.paired = null, Xl(e.child, !1));- }- nu(e);- }- e = e.sibling;- }- }- function ru(e) {- if (e.tag === 30) e.stateNode.paired = null, Xl(e.child, !1), nu(e);- else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ru(e), e = e.sibling;- else nu(e);- }- function iu(e) {- for (e = e.child; e !== null;) e.tag === 30 ? Xl(e.child, !1) : e.subtreeFlags & 33554432 && iu(e), e = e.sibling;- }- function au(e, t, n, r, i, a, o) {- for (var s = !1; t !== null;) {- if (t.tag === 5) {- var c = t.stateNode;- if (a !== null && ql < a.length) {- var l = a[ql], u = Rp(c);- (l.view || u.view) && (s = !0);- var d;- if (d = !(e.flags & 4)) {- if (u.clip) d = !0;- else {- d = l.rect;- var f = u.rect;- d = d.y !== f.y || d.x !== f.x || d.height !== f.height || d.width !== f.width;- }- }- d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);- } else e.flags |= 32;- e.flags & 4 && Fp(c, ql === 0 ? n : n + "_" + ql, i), s && e.flags & 4 || (Gl === null && (Gl = []), Gl.push(c, ql === 0 ? r : r + "_" + ql, t.memoizedProps)), ql++;- } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : au(e, t.child, n, r, i, a, o) && (s = !0));- t = t.sibling;- }- return s;- }- function ou(e, t) {- for (e = e.child; e !== null;) {- if (e.tag === 30) {- var n = e.memoizedProps, r = e.stateNode, i = hi(n, r), a = _i(n.default, n.update);- if (t) {- r = r.clones;- var o = r === null ? null : r.map(zp);- } else o = e.memoizedState, e.memoizedState = null;- r = e;- var s = e.child;- ql = 0, i = au(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Vd(e, n.onUpdate));- } else e.subtreeFlags & 33554432 && ou(e, t);- e = e.sibling;- }- }- var su = !1, cu = !1, lu = !1, uu = !1, du = typeof WeakSet == "function" ? WeakSet : Set, fu = null, pu = !1, mu = !1, hu = !1, gu = !1;- function _u(e, t, n) {- if (e = e.containerInfo, vp = Th, e = Gr(e), Kr(e)) {- if ("selectionStart" in e) var r = {- start: e.selectionStart,- end: e.selectionEnd- };- else a: {- r = (r = e.ownerDocument) && r.defaultView || window;- var i = r.getSelection && r.getSelection();- if (i && i.rangeCount !== 0) {- r = i.anchorNode;- var a = i.anchorOffset, o = i.focusNode;- i = i.focusOffset;- try {- r.nodeType, o.nodeType;- } catch {- r = null;- break a;- }- var s = 0, c = -1, l = -1, u = 0, d = 0, f = e, p = null;- b: for (;;) {- for (var m; f !== r || a !== 0 && f.nodeType !== 3 || (c = s + a), f !== o || i !== 0 && f.nodeType !== 3 || (l = s + i), f.nodeType === 3 && (s += f.nodeValue.length), (m = f.firstChild) !== null;) p = f, f = m;- for (;;) {- if (f === e) break b;- if (p === r && ++u === a && (c = s), p === o && ++d === i && (l = s), (m = f.nextSibling) !== null) break;- f = p, p = f.parentNode;- }- f = m;- }- r = c === -1 || l === -1 ? null : {- start: c,- end: l- };- } else r = null;- }- r ||= {- start: 0,- end: 0- };- } else r = null;- for (yp = {- focusedElem: e,- selectionRange: r- }, Th = !1, n = (n & 335544064) === n, fu = t, t = n ? 9270 : 1024; fu !== null;) {- if (e = fu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && eu(r[a]);- if (e.alternate === null && e.flags & 2) n && Wl(e), vu(n);- else {- if (e.tag === 22) {- if (r = e.alternate, e.memoizedState !== null) {- r !== null && r.memoizedState === null && n && eu(r), vu(n);- continue;- }- if (r !== null && r.memoizedState !== null) {- n && Wl(e), vu(n);- continue;- }- }- r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, fu = r) : (n && tu(e), vu(n));- }- }- Ul = null;- }- function vu(e) {- for (; fu !== null;) {- var t = fu, n = e, r = t.alternate, a = t.flags;- switch (t.tag) {- case 0:- case 11:- case 15: break;- case 1:- if (a & 1024 && r !== null) {- n = void 0, a = r.memoizedProps, r = r.memoizedState;- var o = t.stateNode;- try {- var s = wc(t.type, a);- n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;- } catch (e) {- Sf(t, t.return, e);- }- }- break;- case 3:- if (a & 1024) {- if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) fm(r);- else if (n === 1) switch (r.nodeName) {- case "HEAD":- case "HTML":- case "BODY":- fm(r);- break;- default: r.textContent = "";- }- }- break;- case 5:- case 26:- case 27:- case 6:- case 4:- case 17: break;- case 30:- n && r !== null && (n = hi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = _i(a.default, a.update), a !== "none" && Jl(r, n, a, r.memoizedState = [], !0));- break;- default: if (a & 1024) throw Error(i(163));- }- if (r = t.sibling, r !== null) {- r.return = t.return, fu = r;- break;- }- fu = t.return;- }- }- function yu(e, t, n) {- var r = n.flags;- switch (n.tag) {- case 0:- case 11:- case 15:- Ru(e, n), r & 4 && wl(5, n);- break;- case 1:- if (Ru(e, n), r & 4) {- if (e = n.stateNode, t === null) try {- e.componentDidMount();- } catch (e) {- Sf(n, n.return, e);- }- else {- var i = wc(n.type, t.memoizedProps);- t = t.memoizedState;- try {- e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);- } catch (e) {- Sf(n, n.return, e);- }- }- }- r & 64 && El(n), r & 512 && Ol(n, n.return);- break;- case 3:- if (Ru(e, n), r & 64 && (e = n.updateQueue, e !== null)) {- if (t = null, n.child !== null) switch (n.child.tag) {- case 27:- case 5:- t = n.child.stateNode;- break;- case 1: t = n.child.stateNode;- }- try {- wo(e, t);- } catch (e) {- Sf(n, n.return, e);- }- }- break;- case 27: t === null && r & 4 && Vl(n);- case 26:- case 5:- Ru(e, n), t === null && r & 4 && Fl(n), r & 512 && Ol(n, n.return);- break;- case 12:- Ru(e, n);- break;- case 31:- Ru(e, n), r & 4 && Ou(e, n);- break;- case 13:- Ru(e, n), r & 4 && ku(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Ef.bind(null, n), vm(e, n))));- break;- case 22:- if (r = n.memoizedState !== null || su, !r) {- var a = t !== null && t.memoizedState !== null || cu;- t = su, i = cu, su = r, (cu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Bu(e, n, r)) : Ru(e, n), su = t, cu = i;- }- break;- case 30:- Ru(e, n), r & 512 && Ol(n, n.return);- break;- case 7: r & 512 && Ol(n, n.return);- default: Ru(e, n);- }- }- function bu(e, t) {- for (e = e.child; e !== null;) xu(e, t), e = e.sibling;- }- function xu(e, t) {- switch (e.tag) {- case 5:- case 26:- try {- var n = e.stateNode;- if (t) {- var r = n.style;- typeof r.setProperty == "function" ? r.setProperty("display", "none", "important") : r.display = "none";- } else {- var i = e.stateNode, a = e.memoizedProps.style, o = a != null && a.hasOwnProperty("display") ? a.display : null;- i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();- }- } catch (t) {- Sf(e, e.return, t);- }- Su(e, t);- break;- case 6:- try {- e.stateNode.nodeValue = t ? "" : e.memoizedProps, Ut = !0;- } catch (t) {- Sf(e, e.return, t);- }- break;- case 18:- try {- var s = e.stateNode;- t ? Pp(s, !0) : Pp(e.stateNode, !1);- } catch (t) {- Sf(e, e.return, t);- }- break;- case 22:- case 23:- e.memoizedState === null && bu(e, t);- break;- default: bu(e, t);- }- }- function Su(e, t) {- if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {- a: {- var n = e, r = t;- switch (n.tag) {- case 4:- xu(n, r);- break a;- case 22:- n.memoizedState === null && Su(n, r);- break a;- default: Su(n, r);- }- }- e = e.sibling;- }- }- function Cu(e) {- var t = e.alternate;- t !== null && (e.alternate = null, Cu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Dt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;- }- var wu = null, Tu = !1;- function Eu(e, t, n) {- for (n = n.child; n !== null;) Du(e, t, n), n = n.sibling;- }- function Du(e, t, n) {- if (qe && typeof qe.onCommitFiberUnmount == "function") try {- qe.onCommitFiberUnmount(Ke, n);- } catch {}- switch (n.tag) {- case 26:- cu || kl(n, t), Eu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !cu && (n = n.stateNode, n.parentNode.removeChild(n));- break;- case 27:- cu || kl(n, t), Ml(n);- var r = wu, i = Tu;- Mp(n.type) && (wu = n.stateNode, Tu = !1), Eu(e, t, n), Em(n.stateNode, n.type, n.memoizedProps), wu = r, Tu = i;- break;- case 5: cu || kl(n, t), Ml(n);- case 6:- if (n.tag === 6 && Ml(n), r = wu, i = Tu, wu = null, Eu(e, t, n), wu = r, Tu = i, wu !== null) {- if (Tu) try {- (wu.nodeType === 9 ? wu.body : wu.nodeName === "HTML" ? wu.ownerDocument.body : wu).removeChild(n.stateNode), Ut = !0;- } catch (e) {- Sf(n, t, e);- }- else try {- wu.removeChild(n.stateNode), Ut = !0;- } catch (e) {- Sf(n, t, e);- }- }- break;- case 18:- wu !== null && (Tu ? (e = wu, Np(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Np(wu, n.stateNode));- break;- case 4:- r = wu, i = Tu, wu = n.stateNode.containerInfo, Tu = !0, Eu(e, t, n), wu = r, Tu = i;- break;- case 0:- case 11:- case 14:- case 15:- Tl(2, n, t), cu || Tl(4, n, t), Eu(e, t, n);- break;- case 1:- cu || (kl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Dl(n, t, r)), Eu(e, t, n);- break;- case 21:- Eu(e, t, n);- break;- case 22:- cu = (r = cu) || n.memoizedState !== null, Eu(e, t, n), cu = r;- break;- case 30:- kl(n, t), Eu(e, t, n);- break;- case 7:- cu || kl(n, t), Eu(e, t, n);- break;- default: Eu(e, t, n);- }- }- function Ou(e, t) {- if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {- e = e.dehydrated;- try {- Zh(e);- } catch (e) {- Sf(t, t.return, e);- }- }- }- function ku(e, t) {- if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {- Zh(e);- } catch (e) {- Sf(t, t.return, e);- }- }- function Au(e) {- switch (e.tag) {- case 31:- case 13:- case 19:- var t = e.stateNode;- return t === null && (t = e.stateNode = new du()), t;- case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new du()), t;- default: throw Error(i(435, e.tag));- }- }- function ju(e, t) {- var n = Au(e);- t.forEach(function(t) {- if (!n.has(t)) {- n.add(t);- var r = Df.bind(null, e, t);- t.then(r, r);- }- });- }- function Mu(e, t, n) {- var r = t.deletions;- if (r !== null) for (var a = 0; a < r.length; a++) {- var o = r[a], s = e, c = t, l = c;- a: for (; l !== null;) {- switch (l.tag) {- case 27:- if (Mp(l.type)) {- wu = l.stateNode, Tu = !1;- break a;- }- break;- case 5:- wu = l.stateNode, Tu = !1;- break a;- case 3:- case 4:- wu = l.stateNode.containerInfo, Tu = !0;- break a;- }- l = l.return;- }- if (wu === null) throw Error(i(160));- Du(s, c, o), wu = null, Tu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;- }- if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Nu(t, e, n), t = t.sibling;- }- var V = null;- function Nu(e, t, n) {- var r = e.alternate, a = e.flags;- switch (e.tag) {- case 0:- case 11:- case 14:- case 15:- if (a & 4 && (r = e.updateQueue, r = r === null ? null : r.events, r !== null)) for (var o = 0; o < r.length; o++) {- var s = r[o];- s.ref.impl = s.nextImpl;- }- Mu(t, e, n), Pu(e), a & 4 && (Tl(3, e, e.return), wl(3, e), Tl(5, e, e.return));- break;- case 1:- Mu(t, e, n), Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), a & 64 && su && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));- break;- case 26:- if (o = V, Mu(t, e, n), Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), a & 4) {- if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {- if (n === null) {- if (e.stateNode === null) {- if (su) e.stateNode = Cp(e.type, e.memoizedProps, t.containerInfo, e);- else {- a: {- t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;- b: switch (t) {- case "title":- r = a.getElementsByTagName("title")[0], (!r || r[Tt] || r[vt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), pp(r, t, n), r[vt] = e, Nt(r), t = r;- break a;- case "link":- if (o = th("link", "href", a).get(t + (n.href || ""))) {- for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {- o.splice(s, 1);- break b;- }- }- r = a.createElement(t), pp(r, t, n), a.head.appendChild(r);- break;- case "meta":- if (o = th("meta", "content", a).get(t + (n.content || ""))) {- for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {- o.splice(s, 1);- break b;- }- }- r = a.createElement(t), pp(r, t, n), a.head.appendChild(r);- break;- default: throw Error(i(468, t));- }- r[vt] = e, Nt(r), t = r;- }- e.stateNode = t;- }- } else su || nh(o, e.type, e.stateNode);- } else e.stateNode = Xm(o, n, e.memoizedProps);- } else a === n ? n === null && e.stateNode !== null && Il(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || cu || t.parentNode.removeChild(t)) : a.count--, n === null ? su || nh(o, e.type, e.stateNode) : Xm(o, n, e.memoizedProps));- }- break;- case 27:- Mu(t, e, n), Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), r !== null && a & 4 && Il(e, e.memoizedProps, r.memoizedProps);- break;- case 5:- if (o = lu, lu = !1, Mu(t, e, n), lu = o, Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), e.flags & 32) {- t = e.stateNode;- try {- cn(t, ""), Ut = !0;- } catch (t) {- Sf(e, e.return, t);- }- }- a & 4 && e.stateNode != null && (t = e.memoizedProps, Il(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (uu = !0);- break;- case 6:- if (Mu(t, e, n), Pu(e), a & 4) {- if (e.stateNode === null) throw Error(i(162));- t = e.memoizedProps, n = e.stateNode;- try {- n.nodeValue = t, Ut = !0;- } catch (t) {- Sf(e, e.return, t);- }- }- break;- case 3:- if (Ut = !1, eh = null, o = V, V = Am(t.containerInfo), Mu(t, e, n), V = o, Pu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {- Zh(t.containerInfo);- } catch (t) {- Sf(e, e.return, t);- }- uu && (uu = !1, Fu(e)), Ut = !1;- break;- case 4:- a = lu, lu = su, r = Wt(), o = V, V = Am(e.stateNode.containerInfo), Mu(t, e, n), Pu(e), V = o, Ut && mu && (hu = !0), Ut = r, lu = a;- break;- case 12:- Mu(t, e, n), Pu(e);- break;- case 31:- Mu(t, e, n), Pu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ju(e, t)));- break;- case 13:- Mu(t, e, n), Pu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (Sd = Le()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ju(e, t)));- break;- case 22:- o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;- var c = su, l = cu, u = lu;- su = c || o, lu = u || o, cu = l || s, Mu(t, e, n), cu = l, lu = u, su = c, Pu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || su || cu || (t = s || cu, n = su, r = cu, su = o || su, cu = t, zu(e, 2), su = n, cu = r), !o && lu || bu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, ju(e, n))));- break;- case 19:- Mu(t, e, n), Pu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ju(e, t)));- break;- case 30:- a & 512 && (cu || r === null || kl(r, r.return)), a = Wt(), o = mu, s = (n & 335544064) === n, c = e.memoizedProps, mu = s && _i(c.default, c.update) !== "none", Mu(t, e, n), Pu(e), s && r !== null && Ut && (e.flags |= 4), mu = o, Ut = a;- break;- case 21: break;- case 7: a & 512 && (cu || r === null || kl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);- default: Mu(t, e, n), Pu(e);- }- }- function Pu(e) {- var t = e.flags;- if (t & 2) {- try {- for (var n, r = e.return; r !== null;) {- if (Ll(r)) {- n = r;- break;- }- r = r.return;- }- r = null;- for (var a = e.return; a !== null;) {- if (Pl(a)) {- var o = a.stateNode;- r === null ? r = [o] : r.push(o);- }- if (Nl(a)) break;- a = a.return;- }- var s = r;- if (n == null) throw Error(i(160));- switch (n.tag) {- case 27:- var c = n.stateNode;- Bl(e, Rl(e), c, s);- break;- case 5:- var l = n.stateNode;- n.flags & 32 && (cn(l, ""), n.flags &= -33), Bl(e, Rl(e), l, s);- break;- case 3:- case 4:- var u = n.stateNode.containerInfo;- zl(e, Rl(e), u, s);- break;- default: throw Error(i(161));- }- } catch (t) {- Sf(e, e.return, t);- }- e.flags &= -3;- }- t & 4096 && (e.flags &= -4097);- }- function Fu(e) {- if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {- var t = e;- Fu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;- }- }- function Iu(e, t) {- if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Lu(t, e), t = t.sibling;- else ou(t, !1);- }- function Lu(e, t) {- var n = e.alternate;- if (n === null) Ql(e, !1);- else switch (e.tag) {- case 3:- if (gu = pu = !1, Kl(), Iu(t, e), !pu && !hu) {- if (e = Gl, e !== null) for (var r = 0; r < e.length; r += 3) {- n = e[r];- var i = e[r + 1];- Ip(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({- opacity: [0, 0],- pointerEvents: ["none", "none"]- }, {- duration: 0,- fill: "forwards",- pseudoElement: "::view-transition-group(" + i + ")"- });- }- e = t.containerInfo, e = e.nodeType === 9 ? e.documentElement : e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "" && (e.style.viewTransitionName = "none", e.animate({- opacity: [0, 0],- pointerEvents: ["none", "none"]- }, {- duration: 0,- fill: "forwards",- pseudoElement: "::view-transition-group(root)"- }), e.animate({- width: [0, 0],- height: [0, 0]- }, {- duration: 0,- fill: "forwards",- pseudoElement: "::view-transition"- })), gu = !0;- }- Gl = null;- break;- case 5:- Iu(t, e);- break;- case 4:- r = pu, pu = !1, Iu(t, e), pu && (hu = !0), pu = r;- break;- case 22:- e.memoizedState === null && (n.memoizedState === null ? Iu(t, e) : Ql(e, !1));- break;- case 30:- r = pu, i = Kl(), pu = !1, Iu(t, e), pu && (e.flags |= 4);- var a = e.memoizedProps, o = e.stateNode;- t = hi(a, o), o = hi(n.memoizedProps, o);- var s = _i(a.default, a.update);- s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, ql = 0, t = au(e, n, t, o, s, a, !0), ql !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Vd(e, e.memoizedProps.onUpdate), Gl = i) : i !== null && (i.push.apply(i, Gl), Gl = i), pu = e.flags & 32 ? !0 : r;- break;- default: Iu(t, e);- }- }- function Ru(e, t) {- if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) yu(e, t.alternate, t), t = t.sibling;- }- function zu(e, t) {- for (e = e.child; e !== null;) {- var n = e, r = t;- switch (n.tag) {- case 0:- case 11:- case 14:- case 15:- Tl(4, n, n.return), zu(n, r);- break;- case 1:- kl(n, n.return);- var i = n.stateNode;- typeof i.componentWillUnmount == "function" && Dl(n, n.return, i), zu(n, r);- break;- case 27: r & 2 && Em(n.stateNode, n.type, n.memoizedProps);- case 5:- kl(n, n.return), n.tag !== 5 && n.tag !== 27 || Ml(n), zu(n, r);- break;- case 6:- Ml(n);- break;- case 26:- kl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || cu || i.parentNode.removeChild(i), zu(n, r);- break;- case 22:- n.memoizedState === null && zu(n, r);- break;- case 30:- kl(n, n.return), zu(n, r);- break;- case 7: kl(n, n.return);- default: zu(n, r);- }- e = e.sibling;- }- }- function Bu(e, t, n) {- for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {- var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);- switch (a.tag) {- case 0:- case 11:- case 15:- Bu(i, a, n), wl(4, a);- break;- case 1:- if (Bu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {- i.componentDidMount();- } catch (e) {- Sf(r, r.return, e);- }- if (r = a, i = r.updateQueue, i !== null) {- var c = r.stateNode;- try {- var l = i.shared.hiddenCallbacks;- if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) Co(l[i], c);- } catch (e) {- Sf(r, r.return, e);- }- }- s && o & 64 && El(a), Ol(a, a.return);- break;- case 27: n & 2 && Vl(a);- case 5:- a.tag !== 5 && a.tag !== 27 || jl(a), Bu(i, a, n), s && r === null && o & 4 && Fl(a), Ol(a, a.return);- break;- case 6:- jl(a);- break;- case 26:- c = a.stateNode, a.memoizedState !== null || c === null || su || nh(Am(c.ownerDocument), a.type, c), Bu(i, a, n), s && r === null && o & 4 && Fl(a), Ol(a, a.return);- break;- case 12:- Bu(i, a, n);- break;- case 31:- Bu(i, a, n), s && o & 4 && Ou(i, a);- break;- case 13:- Bu(i, a, n), s && o & 4 && ku(i, a);- break;- case 22:- a.memoizedState === null && Bu(i, a, n), Ol(a, a.return);- break;- case 30:- Bu(i, a, n), Ol(a, a.return);- break;- case 7: Ol(a, a.return);- default: Bu(i, a, n);- }- t = t.sibling;- }- }- function Vu(e, t) {- var n = null;- e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Ma(n));- }- function Hu(e, t) {- e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ma(e));- }- function Uu(e, t, n, r) {- var i = (n & 335544064) === n;- if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Wu(e, t, n, r), t = t.sibling;- else i && iu(t);- }- function Wu(e, t, n, r) {- var i = (n & 335544064) === n;- i && t.alternate === null && t.return !== null && t.return.alternate !== null && ru(t);- var a = t.flags;- switch (t.tag) {- case 0:- case 11:- case 15:- Uu(e, t, n, r), a & 2048 && wl(9, t);- break;- case 1:- Uu(e, t, n, r);- break;- case 3:- Uu(e, t, n, r), i && gu && (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 && Ma(a)));- break;- case 12:- if (a & 2048) {- Uu(e, t, n, r), a = t.stateNode;- try {- var o = t.memoizedProps, s = o.id, c = o.onPostCommit;- typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);- } catch (e) {- Sf(t, t.return, e);- }- } else Uu(e, t, n, r);- break;- case 31:- Uu(e, t, n, r);- break;- case 13:- Uu(e, t, n, r);- break;- case 23: break;- case 22:- o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && ru(t), o._visibility & 2 ? Uu(e, t, n, r) : (o._visibility |= 2, Gu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && ru(s), o._visibility & 2 ? Uu(e, t, n, r) : Ku(e, t)), a & 2048 && Vu(s, t);- break;- case 24:- Uu(e, t, n, r), a & 2048 && Hu(t.alternate, t);- break;- case 30:- i && (a = t.alternate, a !== null && (Xl(a.child, !0), Xl(t.child, !0))), Uu(e, t, n, r);- break;- default: Uu(e, t, n, r);- }- }- function Gu(e, t, n, r, i) {- for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {- var a = e, o = t, s = n, c = r, l = o.flags;- switch (o.tag) {- case 0:- case 11:- case 15:- Gu(a, o, s, c, i), wl(8, o);- break;- case 23: break;- case 22:- var u = o.stateNode;- o.memoizedState === null ? (u._visibility |= 2, Gu(a, o, s, c, i)) : u._visibility & 2 ? Gu(a, o, s, c, i) : Ku(a, o), i && l & 2048 && Vu(o.alternate, o);- break;- case 24:- Gu(a, o, s, c, i), i && l & 2048 && Hu(o.alternate, o);- break;- default: Gu(a, o, s, c, i);- }- t = t.sibling;- }- }- function Ku(e, t) {- if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {- var n = e, r = t, i = r.flags;- switch (r.tag) {- case 22:- Ku(n, r), i & 2048 && Vu(r.alternate, r);- break;- case 24:- Ku(n, r), i & 2048 && Hu(r.alternate, r);- break;- default: Ku(n, r);- }- t = t.sibling;- }- }- var qu = 8192;- function Ju(e, t, n) {- if (e.subtreeFlags & qu) for (e = e.child; e !== null;) Yu(e, t, n), e = e.sibling;- }- function Yu(e, t, n) {- switch (e.tag) {- case 26:- Ju(e, t, n), e.flags & qu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && sh(n, e)) : ch(n, V, e.memoizedState, e.memoizedProps));- break;- case 5:- Ju(e, t, n), e.flags & qu && (e = e.stateNode, (t & 335544128) === t && sh(n, e));- break;- case 3:- case 4:- var r = V;- V = Am(e.stateNode.containerInfo), Ju(e, t, n), V = r;- break;- case 22:- e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = qu, qu = 16777216, Ju(e, t, n), qu = r) : Ju(e, t, n));- break;- case 30:- if ((e.flags & qu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {- var i = e.stateNode;- i.paired = null, Ul === null && (Ul = /* @__PURE__ */ new Map()), Ul.set(r, i);- }- Ju(e, t, n);- break;- default: Ju(e, t, n);- }- }- function Xu(e) {- var t = e.alternate;- if (t !== null && (e = t.child, e !== null)) {- t.child = null;- do- t = e.sibling, e.sibling = null, e = t;- while (e !== null);- }- }- function Zu(e) {- var t = e.deletions;- if (e.flags & 16) {- if (t !== null) for (var n = 0; n < t.length; n++) {- var r = t[n];- fu = r, ed(r, e);- }- Xu(e);- }- if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Qu(e), e = e.sibling;- }- function Qu(e) {- switch (e.tag) {- case 0:- case 11:- case 15:- Zu(e), e.flags & 2048 && Tl(9, e, e.return);- break;- case 3:- Zu(e);- break;- case 12:- Zu(e);- break;- case 22:- var t = e.stateNode;- e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, $u(e)) : Zu(e);- break;- default: Zu(e);- }- }- function $u(e) {- var t = e.deletions;- if (e.flags & 16) {- if (t !== null) for (var n = 0; n < t.length; n++) {- var r = t[n];- fu = r, ed(r, e);- }- Xu(e);- }- for (e = e.child; e !== null;) {- switch (t = e, t.tag) {- case 0:- case 11:- case 15:- Tl(8, t, t.return), $u(t);- break;- case 22:- n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, $u(t));- break;- default: $u(t);- }- e = e.sibling;- }- }- function ed(e, t) {- for (; fu !== null;) {- var n = fu;- switch (n.tag) {- case 0:- case 11:- case 15:- Tl(8, n, t);- break;- case 23:- case 22:- if (n.memoizedState !== null && n.memoizedState.cachePool !== null) {- var r = n.memoizedState.cachePool.pool;- r != null && r.refCount++;- }- break;- case 24: Ma(n.memoizedState.cache);- }- if (r = n.child, r !== null) r.return = n, fu = r;- else a: for (n = e; fu !== null;) {- r = fu;- var i = r.sibling, a = r.return;- if (Cu(r), r === n) {- fu = null;- break a;- }- if (i !== null) {- i.return = a, fu = i;- break a;- }- fu = a;- }- }- }- var td = {- getCacheForType: function(e) {- var t = wa(Aa), n = t.data.get(e);- return n === void 0 && (n = e(), t.data.set(e, n)), n;- },- cacheSignal: function() {- return wa(Aa).controller.signal;- }- }, nd = typeof WeakMap == "function" ? WeakMap : Map, rd = 0, id = null, ad = null, od = 0, sd = 0, cd = null, ld = !1, ud = !1, dd = !1, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = 0, vd = 0, yd = null, bd = null, xd = !1, Sd = 0, Cd = 0, wd = Infinity, Td = null, Ed = null, Dd = 0, Od = null, kd = null, Ad = 0, jd = 0, Md = null, Nd = null, Pd = null, Fd = null, Id = null, Ld = 0, Rd = null;- function zd() {- return rd & 2 && od !== 0 ? od & -od : L.T === null ? ht() : Uf();- }- function Bd() {- if (_d === 0) {- if (!(od & 536870912) || ra) {- var e = et;- et <<= 1, !(et & 3932160) && (et = 262144), _d = e;- } else _d = 536870912;- }- return e = Ao.current, e !== null && (e.flags |= 32), _d;- }- function Vd(e, t) {- if (t != null) {- var n = e.stateNode, r = n.ref;- r === null && (r = n.ref = Wp(hi(e.memoizedProps, n))), Fd === null && (Fd = []), Fd.push(t.bind(null, r));- }- }- function Hd(e, t, n) {- (e === id && (sd === 2 || sd === 9) || e.cancelPendingCommit !== null) && (Yd(e, 0), Kd(e, od, _d, !1)), ct(e, n), (!(rd & 2) || e !== id) && (e === id && (!(rd & 2) && (hd |= n), pd === 4 && Kd(e, od, _d, !1)), Ff(e));- }- function Ud(e, t, n) {- if (rd & 6) throw Error(i(327));- var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || z(e, t), a = r ? rf(e, t) : tf(e, t, !0), o = r;- do {- if (a === 0) {- ud && !r && Kd(e, t, 0, !1);- break;- }- if (n = e.current.alternate, o && !Gd(n)) {- a = tf(e, t, !1), o = !1;- continue;- }- if (a === 2) {- if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;- else s = e.pendingLanes & -536870913, s = s === 0 ? s & 536870912 ? 536870912 : 0 : s;- if (s !== 0) {- t = s;- a: {- var c = e;- a = yd;- var l = c.current.memoizedState.isDehydrated;- if (l && (Yd(c, s).flags |= 256), s = tf(c, s, !1), s !== 2 && s !== 6) {- if (dd && !l) {- c.errorRecoveryDisabledLanes |= o, hd |= o, a = 4;- break a;- }- o = bd, bd = a, o !== null && (bd === null ? bd = o : bd.push.apply(bd, o));- }- a = s;- }- if (o = !1, a !== 2) continue;- }- }- if (a === 1) {- Yd(e, 0), Kd(e, t, 0, !0);- break;- }- a: {- switch (r = e, o = a, o) {- case 0:- case 1: throw Error(i(345));- case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;- case 6:- Kd(r, t, _d, !ld);- break a;- case 2:- bd = null;- break;- case 3:- case 5: break;- default: throw Error(i(329));- }- if ((t & 62914560) === t && (a = Sd + 300 - Le(), 10 < a)) {- if (Kd(r, t, _d, !ld), rt(r, 0, !0) !== 0) break a;- Ad = t, r.timeoutHandle = Dp(Wd.bind(null, r, n, bd, Td, xd, t, _d, hd, vd, ld, o, "Throttled", -0, 0), a);- break a;- }- Wd(r, n, bd, Td, xd, t, _d, hd, vd, ld, o, null, -0, 0);- }- break;- } while (1);- Ff(e);- }- function Wd(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 = {- stylesheets: null,- count: 0,- imgCount: 0,- imgBytes: 0,- suspenseyImages: [],- waitingForImages: !0,- waitingForViewTransition: !1,- unsuspend: gn- }, Ul = null, Yu(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 = fh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? Sd - Le() : (a & 4194048) === a ? Cd - Le() : 0, m = uh(d, m), m !== null)) {- Ad = a, e.cancelPendingCommit = m(df.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Kd(e, a, o, !l);- return;- }- df(e, t, a, n, r, i, o, s, c, l, u, d);- }- function Gd(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++) {- var i = n[r], a = i.getSnapshot;- i = i.value;- try {- if (!zr(a(), i)) return !1;- } catch {- return !1;- }- }- if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n;- else {- if (t === e) break;- for (; t.sibling === null;) {- if (t.return === null || t.return === e) return !0;- t = t.return;- }- t.sibling.return = t.return, t = t.sibling;- }- }- return !0;- }- function Kd(e, t, n, r) {- t = it(e, t), t &= ~gd, t &= ~hd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;- for (var i = t; 0 < i;) {- var a = 31 - Ye(i), o = 1 << a;- r[a] = -1, i &= ~o;- }- n !== 0 && ut(e, n, t);- }- function qd() {- return rd & 6 ? !0 : (If(0, !1), !1);- }- function Jd() {- if (ad !== null) {- if (sd === 0) var e = ad.return;- else e = ad, ga = ha = null, os(e), io = null, ao = 0, e = ad;- for (; e !== null;) Cl(e.alternate, e), e = e.return;- ad = null;- }- }- function Yd(e, t) {- var n = e.timeoutHandle;- return n !== -1 && (e.timeoutHandle = -1, Op(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Ad = 0, Jd(), id = e, ad = n = Mi(e.current, null), od = t, sd = 0, cd = null, ld = !1, ud = z(e, t), dd = !1, vd = _d = gd = hd = md = pd = 0, bd = yd = null, xd = !1, fd = it(e, t), Si(), n;- }- function Xd(e, t) {- Ho = null, L.H = gc, t === Ja || t === Xa ? (t = no(), sd = 3) : t === Ya ? (t = no(), sd = 4) : sd = t === Pc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, cd = t, ad === null && (pd = 1, Oc(e, Bi(t, e.current)));- }- function Zd() {- var e = Ao.current;- return e === null ? !0 : (od & 4194048) === od ? jo === null : (od & 62914560) === od || od & 536870912 ? e === jo : !1;- }- function Qd() {- var e = L.H;- return L.H = gc, e === null ? gc : e;- }- function $d() {- var e = L.A;- return L.A = td, e;- }- function ef() {- pd = 4, ld || (od & 4194048) !== od && Ao.current !== null || (ud = !0), !(md & 134217727) && !(hd & 134217727) || id === null || Kd(id, od, _d, !1);- }- function tf(e, t, n) {- var r = rd;- rd |= 2;- var i = Qd(), a = $d();- (id !== e || od !== t) && (Td = null, Yd(e, t)), t = !1;- var o = pd;- a: do- try {- if (sd !== 0 && ad !== null) {- var s = ad, c = cd;- switch (sd) {- case 8:- Jd(), o = 6;- break a;- case 3:- case 2:- case 9:- case 6:- Ao.current === null && (t = !0);- var l = sd;- if (sd = 0, cd = null, cf(e, s, c, l), n && ud) {- o = 0;- break a;- }- break;- default: l = sd, sd = 0, cd = null, cf(e, s, c, l);- }- }- nf(), o = pd;- break;- } catch (t) {- Xd(e, t);- }- while (1);- return t && e.shellSuspendCounter++, ga = ha = null, rd = r, L.H = i, L.A = a, ad === null && (id = null, od = 0, Si()), o;- }- function nf() {- for (; ad !== null;) of(ad);- }- function rf(e, t) {- var n = rd;- rd |= 2;- var r = Qd(), a = $d();- id !== e || od !== t ? (Td = null, wd = Le() + 500, Yd(e, t)) : ud = z(e, t);- a: do- try {- if (sd !== 0 && ad !== null) {- t = ad;- var o = cd;- b: switch (sd) {- case 1:- sd = 0, cd = null, cf(e, t, o, 1);- break;- case 2:- case 9:- if (Qa(o)) {- sd = 0, cd = null, sf(t);- break;- }- t = function() {- sd !== 2 && sd !== 9 || id !== e || (sd = 7), Ff(e);- }, o.then(t, t);- break a;- case 3:- sd = 7;- break a;- case 4:- sd = 5;- break a;- case 7:- Qa(o) ? (sd = 0, cd = null, sf(t)) : (sd = 0, cd = null, cf(e, t, o, 7));- break;- case 5:- var s = null;- switch (ad.tag) {- case 26: s = ad.memoizedState;- case 5:- case 27:- var c = ad;- if (s ? ah(s) : c.stateNode.complete) {- sd = 0, cd = null;- var l = c.sibling;- if (l !== null) ad = l;- else {- var u = c.return;- u === null ? ad = null : (ad = u, lf(u));- }- break b;- }- }- sd = 0, cd = null, cf(e, t, o, 5);- break;- case 6:- sd = 0, cd = null, cf(e, t, o, 6);- break;- case 8:- Jd(), pd = 6;- break a;- default: throw Error(i(462));- }- }- af();- break;- } catch (t) {- Xd(e, t);- }- while (1);- return ga = ha = null, L.H = r, L.A = a, rd = n, ad === null ? (id = null, od = 0, Si(), pd) : 0;- }- function af() {- for (; ad !== null && !Fe();) of(ad);- }- function of(e) {- var t = ml(e.alternate, e, fd);- e.memoizedProps = e.pendingProps, t === null ? lf(e) : ad = t;- }- function sf(e) {- var t = e, n = t.alternate;- switch (t.tag) {- case 15:- case 0:- t = Jc(n, t, t.pendingProps, t.type, void 0, od);- break;- case 11:- t = Jc(n, t, t.pendingProps, t.type.render, t.ref, od);- break;- case 5:- os(t);- var r = t;- r === ta && (ra ? (la(r), r.tag === 5 && r.stateNode != null && (na = r.stateNode)) : (la(r), ra = !0));- default: Cl(n, t), t = ad = Ni(t, fd), t = ml(n, t, fd);- }- e.memoizedProps = e.pendingProps, t === null ? lf(e) : ad = t;- }- function cf(e, t, n, r) {- ga = ha = null, os(t), io = null, ao = 0;- var i = t.return;- try {- if (Nc(e, i, t, n, od)) {- pd = 1, Oc(e, Bi(n, e.current)), ad = null;- return;- }- } catch (t) {- if (i !== null) throw ad = i, t;- pd = 1, Oc(e, Bi(n, e.current)), ad = null;- return;- }- t.flags & 32768 ? (ra || r === 1 ? e = !0 : ud || od & 536870912 ? e = !1 : (ld = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Ao.current, r !== null && r.tag === 13 && (r.flags |= 16384))), uf(t, e)) : lf(t);- }- function lf(e) {- var t = e;- do {- if (t.flags & 32768) {- uf(t, ld);- return;- }- e = t.return;- var n = xl(t.alternate, t, fd);- if (n !== null) {- ad = n;- return;- }- if (t = t.sibling, t !== null) {- ad = t;- return;- }- ad = t = e;- } while (t !== null);- pd === 0 && (pd = 5);- }- function uf(e, t) {- do {- var n = Sl(e.alternate, e);- if (n !== null) {- n.flags &= 32767, ad = n;- return;- }- if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {- ad = e;- return;- }- ad = e = n;- } while (e !== null);- pd = 6, ad = null;- }- function df(e, t, n, r, a, o, s, c, l, u, d, f) {- e.cancelPendingCommit = null;- do- yf();- while (Dd !== 0);- if (rd & 6) throw Error(i(327));- if (t !== null) {- if (t === e.current) throw Error(i(177));- e === id && (ad = id = null, od = 0), kd = t, Od = e, Ad = n, Md = a, Nd = r, ff(e, t, n, s, c, l, f);- }- }- function ff(e, t, n, r, i, a, o) {- var s = t.lanes | t.childLanes;- if (jd = s, s |= xi, lt(e, n, s, r, i, a), Fd = null, (n & 335544064) === n ? (Id = Fa(e), r = 10262) : (Id = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Of(Ve, function() {- return bf(), null;- })) : (e.callbackNode = null, e.callbackPriority = 0), Hl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {- r = L.T, L.T = null, i = de.p, de.p = 2, a = rd, rd |= 4;- try {- _u(e, t, n);- } finally {- rd = a, de.p = i, L.T = r;- }- }- Dd = 1, Hl ? Pd = Hp(o, e.containerInfo, Id, hf, gf, mf, _f, bf, pf, null, null) : (hf(), gf(), _f());- }- function pf(e) {- if (Dd !== 0) {- var t = Od.onRecoverableError;- t(e, { componentStack: null });- }- }- function mf() {- Dd === 3 && (Dd = 0, Lu(kd, Od), Dd = 4);- }- function hf() {- if (Dd === 1) {- Dd = 0;- var e = Od, t = kd, n = Ad, r = !!(t.flags & 13878);- if (t.subtreeFlags & 13878 || r) {- r = L.T, L.T = null;- var i = de.p;- de.p = 2;- var a = rd;- rd |= 4;- try {- mu = hu = !1, Nu(t, e, n), n = yp;- var o = Gr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;- if (o !== s && s && s.ownerDocument && Wr(s.ownerDocument.documentElement, s)) {- if (c !== null && Kr(s)) {- var l = c.start, u = c.end;- if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);- else {- var d = s.ownerDocument || document, f = d && d.defaultView || window;- if (f.getSelection) {- var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);- !p.extend && h > g && (o = g, g = h, h = o);- var _ = Ur(s, h), v = Ur(s, g);- if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {- var y = d.createRange();- y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));- }- }- }- }- for (d = [], p = s; p = p.parentNode;) p.nodeType === 1 && d.push({- element: p,- left: p.scrollLeft,- top: p.scrollTop- });- for (typeof s.focus == "function" && s.focus(), s = 0; s < d.length; s++) {- var b = d[s];- b.element.scrollLeft = b.left, b.element.scrollTop = b.top;- }- }- Th = !!vp, yp = vp = null;- } finally {- rd = a, de.p = i, L.T = r;- }- }- e.current = t, Dd = 2;- }- }- function gf() {- if (Dd === 2) {- Dd = 0;- var e = Od, t = kd, n = !!(t.flags & 8772);- if (t.subtreeFlags & 8772 || n) {- n = L.T, L.T = null;- var r = de.p;- de.p = 2;- var i = rd;- rd |= 4;- try {- yu(e, t.alternate, t);- } finally {- rd = i, de.p = r, L.T = n;- }- }- Dd = 3;- }- }- function _f() {- if (Dd === 4 || Dd === 3) {- Dd = 0;- var e = Pd;- Pd = null, Ie();- var t = Od, n = kd, r = Ad, i = Nd, a = (r & 335544064) === r ? 10262 : 10256;- if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Dd = 5 : (Dd = 0, kd = Od = null, vf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Ed = null), mt(r), n = n.stateNode, qe && typeof qe.onCommitFiberRoot == "function") try {- qe.onCommitFiberRoot(Ke, n, void 0, (n.current.flags & 128) == 128);- } catch {}- if (i !== null) {- n = L.T, a = de.p, de.p = 2, L.T = null;- try {- for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {- var c = i[s];- o(c.value, { componentStack: c.stack });- }- } finally {- L.T = n, de.p = a;- }- }- if (i = Fd, o = Id, Id = null, i !== null && (Fd = 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);- Ad & 3 && yf(), Ff(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Rd ? Ld++ : (Ld = 0, Rd = t) : (Ld = 0, Rd = null), If(0, !1);- }- }- function vf(e, t) {- (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ma(t)));- }- function yf() {- return Pd !== null && (Pd.skipTransition(), Pd = null), hf(), gf(), _f(), bf();- }- function bf() {- if (Dd !== 5) return !1;- var e = Od, t = jd;- jd = 0;- var n = mt(Ad), r = L.T, a = de.p;- try {- de.p = 32 > n ? 32 : n, L.T = null, n = Md, Md = null;- var o = Od, s = Ad;- if (Dd = 0, kd = Od = null, Ad = 0, rd & 6) throw Error(i(331));- var c = rd;- if (rd |= 4, Qu(o.current), Wu(o, o.current, s, n), rd = c, If(0, !1), qe && typeof qe.onPostCommitFiberRoot == "function") try {- qe.onPostCommitFiberRoot(Ke, o);- } catch {}- return !0;- } finally {- de.p = a, L.T = r, vf(e, t);- }- }- function xf(e, t, n) {- t = Bi(n, t), t = Ac(e.stateNode, t, 2), e = _o(e, t, 2), e !== null && (ct(e, 2), Ff(e));- }- function Sf(e, t, n) {- if (e.tag === 3) xf(e, e, n);- else for (; t !== null;) {- if (t.tag === 3) {- xf(t, e, n);- break;- }- if (t.tag === 1) {- var r = t.stateNode;- if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Ed === null || !Ed.has(r))) {- e = Bi(n, e), n = jc(2), r = _o(t, n, 2), r !== null && (Mc(n, r, t, e), ct(r, 2), Ff(r));- break;- }- }- t = t.return;- }- }- function Cf(e, t, n) {- var r = e.pingCache;- if (r === null) {- r = e.pingCache = new nd();- 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) || (dd = !0, i.add(n), e = wf.bind(null, e, t, n), t.then(e, e));- }- function wf(e, t, n) {- var r = e.pingCache;- r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, id === e && (od & n) === n && (pd === 4 || pd === 3 && (od & 62914560) === od && 300 > Le() - Sd ? rd & 2 ? gd |= n : Yd(e, 0) : gd |= n, vd === od && (vd = 0)), Ff(e);- }- function Tf(e, t) {- t === 0 && (t = ot()), e = Ti(e, t), e !== null && (ct(e, t), Ff(e));- }- function Ef(e) {- var t = e.memoizedState, n = 0;- t !== null && (n = t.retryLane), Tf(e, n);- }- function Df(e, t) {- var n = 0;- switch (e.tag) {- case 31:- case 13:- var r = e.stateNode, a = e.memoizedState;- a !== null && (n = a.retryLane);- break;- case 19:- r = e.stateNode;- break;- case 22:- r = e.stateNode._retryCache;- break;- default: throw Error(i(314));- }- r !== null && r.delete(t), Tf(e, n);- }- function Of(e, t) {- return Ne(e, t);- }- var kf = null, Af = null, jf = !1, Mf = !1, Nf = !1, Pf = 0;- function Ff(e) {- e !== Af && e.next === null && (Af === null ? kf = Af = e : Af = Af.next = e), Mf = !0, jf || (jf = !0, Hf());- }- function If(e, t) {- if (!Nf && Mf) {- Nf = !0;- do- for (var n = !1, r = kf; r !== null;) {- if (!t) {- if (e !== 0) {- var i = r.pendingLanes;- if (i === 0) var a = 0;- else {- var o = r.suspendedLanes, s = r.pingedLanes;- a = (1 << 31 - Ye(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;- }- a !== 0 && (n = !0, Vf(r, a));- } else a = od, a = rt(r, r === id ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || z(r, a) || (n = !0, Vf(r, a));- }- r = r.next;- }- while (n);- Nf = !1;- }- }- function Lf() {- Rf();- }- function Rf() {- Mf = jf = !1;- var e = 0;- Pf !== 0 && Ep() && (e = Pf);- for (var t = Le(), n = null, r = kf; r !== null;) {- var i = r.next, a = zf(r, t);- a === 0 ? (r.next = null, n === null ? kf = i : n.next = i, i === null && (Af = n)) : (n = r, (e !== 0 || a & 3) && (Mf = !0)), r = i;- }- Dd !== 0 && Dd !== 5 || If(e, !1), Pf !== 0 && (Pf = 0);- }- function zf(e, t) {- for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {- var o = 31 - Ye(a), s = 1 << o, c = i[o];- c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = at(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;- }- if (t = id, n = od, n = rt(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (sd === 2 || sd === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Pe(r), e.callbackNode = null, e.callbackPriority = 0;- if (!(n & 3) || z(e, n)) {- if (t = n & -n, t === e.callbackPriority) return t;- switch (r !== null && Pe(r), mt(n)) {- case 2:- case 8:- n = Be;- break;- case 32:- n = Ve;- break;- case 268435456:- n = Ue;- break;- default: n = Ve;- }- return r = Bf.bind(null, e), n = Ne(n, r), e.callbackPriority = t, e.callbackNode = n, t;- }- return r !== null && r !== null && Pe(r), e.callbackPriority = 2, e.callbackNode = null, 2;- }- function Bf(e, t) {- if (Dd !== 0 && Dd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;- var n = e.callbackNode;- if (yf() && e.callbackNode !== n) return null;- var r = od;- return r = rt(e, e === id ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Ud(e, r, t), zf(e, Le()), e.callbackNode != null && e.callbackNode === n ? Bf.bind(null, e) : null);- }- function Vf(e, t) {- if (yf()) return null;- Ud(e, t, !0);- }- function Hf() {- Ap(function() {- rd & 6 ? Ne(ze, Lf) : Rf();- });- }- function Uf() {- if (Pf === 0) {- var e = Ra;- e === 0 && (e = $e, $e <<= 1, !($e & 261888) && ($e = 256)), Pf = e;- }- return Pf;- }- function Wf(e) {- return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : hn(e);- }- function Gf(e, t, n, r, i) {- if (t === "submit" && n && n.stateNode === i) {- var a = Wf((i[yt] || null).action), o = r.submitter;- o && (t = (t = o[yt] || null) ? Wf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));- var s = new Ln("action", "action", null, r, i);- e.push({- event: s,- listeners: [{- instance: null,- listener: function() {- if (r.defaultPrevented) {- if (Pf !== 0) {- var e = new FormData(i, o);- nc(n, {- pending: !0,- data: e,- method: i.method,- action: a- }, null, e);- }- } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), nc(n, {- pending: !0,- data: e,- method: i.method,- action: a- }, a, e));- },- currentTarget: i- }]- });- }- }- for (var Kf = 0; Kf < fi.length; Kf++) {- var qf = fi[Kf];- pi(qf.toLowerCase(), "on" + (qf[0].toUpperCase() + qf.slice(1)));- }- pi(ii, "onAnimationEnd"), pi(ai, "onAnimationIteration"), pi(oi, "onAnimationStart"), pi("dblclick", "onDoubleClick"), pi("focusin", "onFocus"), pi("focusout", "onBlur"), pi(si, "onTransitionRun"), pi(ci, "onTransitionStart"), pi(li, "onTransitionCancel"), pi(ui, "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",- "keypress",- "textInput",- "paste"- ]), Lt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));- var Jf = "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(" "), Yf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jf));- function Xf(e, t) {- t = !!(t & 4);- for (var n = 0; n < e.length; n++) {- var r = e[n], i = r.event;- r = r.listeners;- a: {- var a = void 0;- if (t) for (var o = r.length - 1; 0 <= o; o--) {- var s = r[o], c = s.instance, l = s.currentTarget;- if (s = s.listener, c !== a && i.isPropagationStopped()) break a;- a = s, i.currentTarget = l;- try {- a(i);- } catch (e) {- vi(e);- }- i.currentTarget = null, a = c;- }- else for (o = 0; o < r.length; o++) {- if (s = r[o], c = s.instance, l = s.currentTarget, s = s.listener, c !== a && i.isPropagationStopped()) break a;- a = s, i.currentTarget = l;- try {- a(i);- } catch (e) {- vi(e);- }- i.currentTarget = null, a = c;- }- }- }- }- function Zf(e, t) {- var n = t[xt];- n === void 0 && (n = t[xt] = /* @__PURE__ */ new Set());- var r = e + "__bubble";- n.has(r) || (tp(t, e, 2, !1), n.add(r));- }- function Qf(e, t, n) {- var r = 0;- t && (r |= 4), tp(n, e, r, t);- }- var $f = "_reactListening" + Math.random().toString(36).slice(2);- function ep(e) {- if (!e[$f]) {- e[$f] = !0, Ft.forEach(function(t) {- t !== "selectionchange" && (Yf.has(t) || Qf(t, !1, e), Qf(t, !0, e));- });- var t = e.nodeType === 9 ? e : e.ownerDocument;- t === null || t[$f] || (t[$f] = !0, Qf("selectionchange", !1, t));- }- }- function tp(e, t, n, r) {- switch (Mh(t)) {- case 2:- var i = Eh;- break;- case 8:- i = Dh;- break;- default: i = Oh;- }- n = i.bind(null, t, n, e), i = void 0, !En || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {- capture: !0,- passive: i- }) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });- }- function np(e, t, n, r, i) {- var a = r;- if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {- if (r === null) return;- var s = r.tag;- if (s === 3 || s === 4) {- var c = r.stateNode.containerInfo;- if (c === i) break;- if (s === 4) for (s = r.return; s !== null;) {- var l = s.tag;- if ((l === 3 || l === 4) && s.stateNode.containerInfo === i) return;- s = s.return;- }- for (; c !== null;) {- if (s = kt(c), s === null) return;- if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {- r = a = s;- continue a;- }- c = c.parentNode;- }- }- r = r.return;- }- Cn(function() {- var r = a, i = vn(n), s = [];- a: {- var c = di.get(e);- if (c !== void 0) {- var l = Ln, u = e;- switch (e) {- case "keypress": if (Mn(n) === 0) break a;- case "keydown":- case "keyup":- l = tr;- break;- case "focusin":- u = "focus", l = Kn;- break;- case "focusout":- u = "blur", l = Kn;- break;- case "beforeblur":- case "afterblur":- l = Kn;- break;- case "click": if (n.button === 2) break a;- case "auxclick":- case "dblclick":- case "mousedown":- case "mousemove":- case "mouseup":- case "mouseout":- case "mouseover":- case "contextmenu":- l = Wn;- break;- case "drag":- case "dragend":- case "dragenter":- case "dragexit":- case "dragleave":- case "dragover":- case "dragstart":- case "drop":- l = Gn;- break;- case "touchcancel":- case "touchend":- case "touchmove":- case "touchstart":- l = ir;- break;- case ii:- case ai:- case oi:- l = qn;- break;- case ui:- l = ar;- break;- case "scroll":- case "scrollend":- l = zn;- break;- case "wheel":- l = or;- break;- case "copy":- case "cut":- case "paste":- l = Jn;- break;- case "gotpointercapture":- case "lostpointercapture":- case "pointercancel":- case "pointerdown":- case "pointermove":- case "pointerout":- case "pointerover":- case "pointerup":- l = nr;- break;- case "submit":- l = rr;- break;- case "toggle":- case "beforetoggle": l = sr;- }- var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;- 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 = wn(m, p), g != null && d.push(rp(m, g, h))), f) break;- m = m.return;- }- 0 < d.length && (c = new l(c, u, null, n, i), s.push({- event: c,- listeners: d- }));- }- }- if (!(t & 7)) {- a: {- if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== _n && (u = n.relatedTarget || n.fromElement) && (kt(u) || u[bt])) break a;- (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? kt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Wn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = nr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, kt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, ap) : null, c !== null && op(s, u, c, d, !1), l !== null && f !== null && op(s, f, l, d, !0)));- }- a: {- if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Dr;- else if (xr(c)) {- if (Or) _ = Lr;- else {- _ = Fr;- var v = Pr;- }- } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && fn(r.elementType) && (_ = Dr) : _ = Ir;- if (_ &&= _(e, r)) {- Sr(s, _, n, i);- break a;- }- v && v(e, c, r);- }- switch (v = r ? Mt(r) : window, e) {- case "focusin":- (xr(v) || v.contentEditable === "true") && (Jr = v, Yr = r, Xr = null);- break;- case "focusout":- Xr = Yr = Jr = null;- break;- case "mousedown":- Zr = !0;- break;- case "contextmenu":- case "mouseup":- case "dragend":- Zr = !1, Qr(s, n, i);- break;- case "selectionchange": if (qr) break;- case "keydown":- case "keyup": Qr(s, n, i);- }- var y;- if (lr) b: {- switch (e) {- case "compositionstart":- var b = "onCompositionStart";- break b;- case "compositionend":- b = "onCompositionEnd";- break b;- case "compositionupdate":- b = "onCompositionUpdate";- break b;- }- b = void 0;- }- else _r ? hr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");- b && (fr && n.locale !== "ko" && (_r || b !== "onCompositionStart" ? b === "onCompositionEnd" && _r && (y = jn()) : (On = i, kn = "value" in On ? On.value : On.textContent, _r = !0)), v = ip(r, b), 0 < v.length && (b = new Yn(b, e, null, n, i), s.push({- event: b,- listeners: v- }), y ? b.data = y : (y = gr(n), y !== null && (b.data = y)))), (y = dr ? vr(e, n) : yr(e, n)) && (b = ip(r, "onBeforeInput"), 0 < b.length && (v = new Yn("onBeforeInput", "beforeinput", null, n, i), s.push({- event: v,- listeners: b- }), v.data = y)), Gf(s, e, r, n, i);- }- Xf(s, t);- });- }- function rp(e, t, n) {- return {- instance: e,- listener: t,- currentTarget: n- };- }- function ip(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 = wn(e, n), i != null && r.unshift(rp(e, i, a)), i = wn(e, t), i != null && r.push(rp(e, i, a))), e.tag === 3) return r;- e = e.return;- }- return [];- }- function ap(e) {- if (e === null) return null;- do- e = e.return;- while (e && e.tag !== 5 && e.tag !== 27);- return e || null;- }- function op(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 = wn(n, a), l != null && o.unshift(rp(n, l, c))) : i || (l = wn(n, a), l != null && o.push(rp(n, l, c)))), n = n.return;- }- o.length !== 0 && e.push({- event: t,- listeners: o- });- }- var sp = /\r\n?/g, cp = /\u0000|\uFFFD/g;- function lp(e) {- return (typeof e == "string" ? e : "" + e).replace(sp, "\n").replace(cp, "");- }- function up(e, t) {- return t = lp(t), lp(e) === t;- }- function dp(e, t, n, r, a, o) {- switch (n) {- case "children":- if (typeof r == "string") t === "body" || t === "textarea" && r === "" || cn(e, r);- else if (typeof r == "number" || typeof r == "bigint") t !== "body" && cn(e, "" + r);- else return;- break;- case "className":- Kt(e, "class", r);- break;- case "tabIndex":- Kt(e, "tabindex", r);- break;- case "dir":- case "role":- case "viewBox":- case "width":- case "height":- Kt(e, n, r);- break;- case "style":- dn(e, r, o);- return;- case "data": if (t !== "object") {- Kt(e, "data", r);- break;- }- case "src":- case "href":- if (r === "" && (t !== "a" || n !== "href")) {- e.removeAttribute(n);- break;- }- if (r == null || typeof r == "function" || typeof r == "symbol" || typeof r == "boolean") {- e.removeAttribute(n);- break;- }- r = hn(r), e.setAttribute(n, r);- break;- case "action":- case "formAction":- if (typeof r == "function") {- 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" && dp(e, t, "name", a.name, a, null), dp(e, t, "formEncType", a.formEncType, a, null), dp(e, t, "formMethod", a.formMethod, a, null), dp(e, t, "formTarget", a.formTarget, a, null)) : (dp(e, t, "encType", a.encType, a, null), dp(e, t, "method", a.method, a, null), dp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {- e.removeAttribute(n);- break;- }- r = hn(r), e.setAttribute(n, r);- break;- case "onClick":- r != null && (e.onclick = gn);- return;- case "onScroll":- r != null && Zf("scroll", e);- return;- case "onScrollEnd":- r != null && Zf("scrollend", e);- return;- case "dangerouslySetInnerHTML":- if (r != null) {- if (typeof r != "object" || !("__html" in r)) throw Error(i(61));- if (n = r.__html, n != null) {- if (a.children != null) throw Error(i(60));- o?.__html !== n && (e.innerHTML = n);- }- }- break;- case "multiple":- e.multiple = r && typeof r != "function" && typeof r != "symbol";- break;- case "muted":- e.muted = r && typeof r != "function" && typeof r != "symbol";- break;- case "suppressContentEditableWarning":- case "suppressHydrationWarning":- case "defaultValue":- case "defaultChecked":- case "innerHTML":- case "ref": break;- case "autoFocus": break;- case "xlinkHref":- if (r == null || typeof r == "function" || typeof r == "boolean" || typeof r == "symbol") {- e.removeAttribute("xlink:href");- break;- }- n = hn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);- break;- case "contentEditable":- case "spellCheck":- case "draggable":- case "value":- case "autoReverse":- case "externalResourcesRequired":- case "focusable":- case "preserveAlpha":- r != null && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, r) : e.removeAttribute(n);- break;- case "inert":- case "allowFullScreen":- case "async":- case "autoPlay":- case "controls":- case "credentialless":- case "default":- case "defer":- case "disabled":- case "disablePictureInPicture":- case "disableRemotePlayback":- case "formNoValidate":- case "hidden":- case "loop":- case "noModule":- case "noValidate":- case "open":- case "playsInline":- case "readOnly":- case "required":- case "reversed":- case "scoped":- case "seamless":- case "itemScope":- r && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, "") : e.removeAttribute(n);- break;- case "capture":- case "download":- !0 === r ? e.setAttribute(n, "") : !1 !== r && r != null && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, r) : e.removeAttribute(n);- break;- case "cols":- case "rows":- case "size":- case "span":- r != null && typeof r != "function" && typeof r != "symbol" && !isNaN(r) && 1 <= r ? e.setAttribute(n, r) : e.removeAttribute(n);- break;- case "rowSpan":- case "start":- r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);- break;- case "popover":- Zf("beforetoggle", e), Zf("toggle", e), Gt(e, "popover", r);- break;- case "xlinkActuate":- qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);- break;- case "xlinkArcrole":- qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);- break;- case "xlinkRole":- qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);- break;- case "xlinkShow":- qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);- break;- case "xlinkTitle":- qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);- break;- case "xlinkType":- qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);- break;- case "xmlBase":- qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);- break;- case "xmlLang":- qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);- break;- case "xmlSpace":- qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);- break;- case "is":- Gt(e, "is", r);- break;- case "innerText":- case "textContent": return;- default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = pn.get(n) || n, Gt(e, n, r);- else return;- }- Ut = !0;- }- function fp(e, t, n, r, a, o) {- switch (n) {- case "style":- dn(e, r, o);- return;- case "dangerouslySetInnerHTML":- if (r != null) {- if (typeof r != "object" || !("__html" in r)) throw Error(i(61));- if (n = r.__html, n != null) {- if (a.children != null) throw Error(i(60));- o?.__html !== n && (e.innerHTML = n);- }- }- break;- case "children":- if (typeof r == "string") cn(e, r);- else if (typeof r == "number" || typeof r == "bigint") cn(e, "" + r);- else return;- break;- case "onScroll":- r != null && Zf("scroll", e);- return;- case "onScrollEnd":- r != null && Zf("scrollend", e);- return;- case "onClick":- r != null && (e.onclick = gn);- return;- case "suppressContentEditableWarning":- case "suppressHydrationWarning":- case "innerHTML":- case "ref": return;- case "innerText":- case "textContent": return;- default:- if (!It.hasOwnProperty(n)) a: {- if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[yt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {- typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);- break a;- }- Ut = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Gt(e, n, r);- }- return;- }- Ut = !0;- }- function pp(e, t, n) {- switch (t) {- case "div":- case "span":- case "svg":- case "path":- case "a":- case "g":- case "p":- case "li": break;- case "img":- Zf("error", e), Zf("load", e);- var r = !1, a = !1, o;- for (o in n) if (n.hasOwnProperty(o)) {- var s = n[o];- if (s != null) switch (o) {- case "src":- r = !0;- break;- case "srcSet":- a = !0;- break;- case "children":- case "dangerouslySetInnerHTML": throw Error(i(137, t));- default: dp(e, t, o, s, n, null);- }- }- a && dp(e, t, "srcSet", n.srcSet, n, null), r && dp(e, t, "src", n.src, n, null);- return;- case "input":- Zf("invalid", e);- var c = o = s = a = null, l = null, u = null;- for (r in n) if (n.hasOwnProperty(r)) {- var d = n[r];- if (d != null) switch (r) {- case "name":- a = d;- break;- case "type":- s = d;- break;- case "checked":- l = d;- break;- case "defaultChecked":- u = d;- break;- case "value":- o = d;- break;- case "defaultValue":- c = d;- break;- case "children":- case "dangerouslySetInnerHTML":- if (d != null) throw Error(i(137, t));- break;- default: dp(e, t, r, d, n, null);- }- }- nn(e, o, c, l, u, s, a, !1);- return;- case "select":- for (a in Zf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {- case "value":- o = c;- break;- case "defaultValue":- s = c;- break;- case "multiple": r = c;- default: dp(e, t, a, c, n, null);- }- t = o, n = s, e.multiple = !!r, t == null ? n != null && an(e, !!r, n, !0) : an(e, !!r, t, !1);- return;- case "textarea":- for (s in Zf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {- case "value":- r = c;- break;- case "defaultValue":- a = c;- break;- case "children":- o = c;- break;- case "dangerouslySetInnerHTML":- if (c != null) throw Error(i(91));- break;- default: dp(e, t, s, c, n, null);- }- sn(e, r, a, o);- return;- case "option":- for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {- case "selected":- e.selected = r && typeof r != "function" && typeof r != "symbol";- break;- default: dp(e, t, l, r, n, null);- }- return;- case "dialog":- Zf("beforetoggle", e), Zf("toggle", e), Zf("cancel", e), Zf("close", e);- break;- case "iframe":- case "object":- Zf("load", e);- break;- case "video":- case "audio":- for (r = 0; r < Jf.length; r++) Zf(Jf[r], e);- break;- case "image":- Zf("error", e), Zf("load", e);- break;- case "details":- Zf("toggle", e);- break;- case "embed":- case "source":- case "link": Zf("error", e), Zf("load", e);- case "area":- case "base":- case "br":- case "col":- case "hr":- case "keygen":- case "meta":- case "param":- case "track":- case "wbr":- case "menuitem":- 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: dp(e, t, u, r, n, null);- }- return;- default: if (fn(t)) {- for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && fp(e, t, d, r, n, void 0));- return;- }- }- for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && dp(e, t, c, r, n, null));- }- var mp = {};- function hp(e, t, n, r) {- switch (t) {- case "div":- case "span":- case "svg":- case "path":- case "a":- case "g":- case "p":- case "li": break;- case "input":- var a = null, o = null, s = null, c = null, l = null, u = null, d = null;- for (m in n) {- var f = n[m];- if (n.hasOwnProperty(m) && f != null) switch (m) {- case "checked": break;- case "value": break;- case "defaultValue": l = f;- default: r.hasOwnProperty(m) || dp(e, t, m, null, r, f);- }- }- for (var p in r) {- var m = r[p];- if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {- case "type":- m !== f && (Ut = !0), o = m;- break;- case "name":- m !== f && (Ut = !0), a = m;- break;- case "checked":- m !== f && (Ut = !0), u = m;- break;- case "defaultChecked":- m !== f && (Ut = !0), d = m;- break;- case "value":- m !== f && (Ut = !0), s = m;- break;- case "defaultValue":- m !== f && (Ut = !0), c = m;- break;- case "children":- case "dangerouslySetInnerHTML":- if (m != null) throw Error(i(137, t));- break;- default: m !== f && dp(e, t, p, m, r, f);- }- }- tn(e, s, c, l, u, d, o, a);- return;- case "select":- for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {- case "value": break;- case "multiple": m = l;- default: r.hasOwnProperty(o) || dp(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":- o !== l && (Ut = !0), p = o;- break;- case "defaultValue":- o !== l && (Ut = !0), c = o;- break;- case "multiple": o !== l && (Ut = !0), s = o;- default: o !== l && dp(e, t, a, o, r, l);- }- t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? an(e, !!n, n ? [] : "", !1) : an(e, !!n, t, !0)) : an(e, !!n, p, !1);- return;- case "textarea":- for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {- case "value": break;- case "children": break;- default: dp(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":- a !== o && (Ut = !0), p = a;- break;- case "defaultValue":- a !== o && (Ut = !0), m = a;- break;- case "children": break;- case "dangerouslySetInnerHTML":- if (a != null) throw Error(i(91));- break;- default: a !== o && dp(e, t, s, a, r, o);- }- on(e, p, m);- return;- case "option":- for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {- case "selected":- e.selected = !1;- break;- default: dp(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 && (Ut = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";- break;- default: dp(e, t, l, p, r, m);- }- return;- case "img":- case "link":- case "area":- case "base":- case "br":- case "col":- case "embed":- case "hr":- case "keygen":- case "meta":- case "param":- case "source":- case "track":- case "wbr":- case "menuitem":- for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && dp(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: dp(e, t, u, p, r, m);- }- return;- default: if (fn(t)) {- for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && fp(e, t, _, void 0, r, p);- for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || fp(e, t, d, p, r, m);- return;- }- }- for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && dp(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 || dp(e, t, f, p, r, m);- }- function gp(e) {- switch (e) {- case "css":- case "script":- case "font":- case "img":- case "image":- case "input":- case "link": return !0;- default: return !1;- }- }- function _p() {- if (typeof performance.getEntriesByType == "function") {- for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {- var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;- if (a && s && gp(o)) {- for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {- var c = n[r], l = c.startTime;- if (l > s) break;- var u = c.transferSize, d = c.initiatorType;- u && gp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));- }- if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;- }- }- if (0 < e) return t / e / 1e6;- }- return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;- }- var vp = null, yp = null;- function bp(e) {- return e.nodeType === 9 ? e : e.ownerDocument;- }- function xp(e) {- switch (e) {- case "http://www.w3.org/2000/svg": return 1;- case "http://www.w3.org/1998/Math/MathML": return 2;- default: return 0;- }- }- function Sp(e, t) {- if (e === 0) switch (t) {- case "svg": return 1;- case "math": return 2;- default: return 0;- }- return e === 1 && t === "foreignObject" ? 0 : e;- }- function Cp(e, t, n, r) {- return n = bp(n).createElement(e), n[vt] = r, n[yt] = t, pp(n, e, t), Nt(n), n;- }- function wp(e, t) {- return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;- }- var Tp = null;- function Ep() {- var e = window.event;- return e && e.type === "popstate" ? e !== Tp && (Tp = e, !0) : (Tp = null, !1);- }- var Dp = typeof setTimeout == "function" ? setTimeout : void 0, Op = typeof clearTimeout == "function" ? clearTimeout : void 0, kp = typeof Promise == "function" ? Promise : void 0, H = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Dp, Ap = typeof queueMicrotask == "function" ? queueMicrotask : kp === void 0 ? Dp : function(e) {- return kp.resolve(null).then(e).catch(jp);- };- function jp(e) {- setTimeout(function() {- throw e;- });- }- function Mp(e) {- return e === "head";- }- function Np(e, t) {- var n = t, r = 0;- do {- var i = n.nextSibling;- if (e.removeChild(n), i && i.nodeType === 8) {- if (n = i.data, n === "/$" || n === "/&") {- if (r === 0) {- e.removeChild(i), Zh(t);- return;- }- r--;- } else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;- else if (n === "html") Dm(e.ownerDocument.documentElement);- else if (n === "head") {- n = e.ownerDocument.head, Dm(n);- for (var a = n.firstChild; a;) {- var o = a.nextSibling, s = a.nodeName;- a[Tt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;- }- } else n === "body" && Dm(e.ownerDocument.body);- }- n = i;- } while (n);- Zh(t);- }- function Pp(e, t) {- var n = e;- e = 0;- do {- var r = n.nextSibling;- if (n.nodeType === 1 ? t ? (n._stashedDisplay = n.style.display, n.style.display = "none") : (n.style.display = n._stashedDisplay || "", n.getAttribute("style") === "" && n.removeAttribute("style")) : n.nodeType === 3 && (t ? (n._stashedText = n.nodeValue, n.nodeValue = "") : n.nodeValue = n._stashedText || ""), r && r.nodeType === 8) {- if (n = r.data, n === "/$") {- if (e === 0) break;- e--;- } else n !== "$" && n !== "$?" && n !== "$~" && n !== "$!" || e++;- }- n = r;- } while (n);- }- function Fp(e, t, n) {- if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {- if (t = e.getClientRects(), t.length === 1) var r = 1;- else for (var i = r = 0; i < t.length; i++) {- var a = t[i];- 0 < a.width && 0 < a.height && r++;- }- r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);- }- }- function Ip(e, t) {- e = e.style, t = t.style;- var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;- e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));- }- function Lp(e, t, n) {- return n = n.ownerDocument.defaultView, {- rect: e,- abs: t.position === "absolute" || t.position === "fixed",- clip: t.clipPath !== "none" || t.overflow !== "visible" || t.filter !== "none" || t.mask !== "none" || t.mask !== "none" || t.borderRadius !== "0px",- view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth- };- }- function Rp(e) {- return Lp(e.getBoundingClientRect(), getComputedStyle(e), e);- }- function zp(e) {- var t = e.getBoundingClientRect();- t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);- var n = getComputedStyle(e);- return Lp(t, n, e);- }- function Bp(e) {- return e.documentElement.clientHeight;- }- function Vp(e) {- this.addEventListener("load", e), this.addEventListener("error", e);- }- function Hp(e, t, n, r, i, a, o, s, c) {- var l = t.nodeType === 9 ? t : t.ownerDocument;- try {- var u = l.startViewTransition({- update: function() {- var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;- r();- var s = [];- if (o === "loaded" && (Bp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {- var f = c[d];- if (!f.complete) {- var p = f.getBoundingClientRect();- if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {- if (u += oh(f), u > lh) {- s.length = o;- break;- }- f = new Promise(Vp.bind(f)), s.push(f);- }- }- }- if (0 < s.length) return t = Promise.race([Promise.all(s), new Promise(function(e) {- return setTimeout(e, 500);- })]).then(i, i), (n ? Promise.allSettled([n.finished, t]) : t).then(a, a);- if (i(), n) return n.finished.then(a, a);- a();- },- types: n- });- l.__reactViewTransition = u;- var d = [];- return u.ready.then(function() {- for (var e = l.documentElement.getAnimations({ subtree: !0 }), t = 0; t < e.length; t++) {- var n = e[t], r = n.effect, i = r.pseudoElement;- if (i != null && i.startsWith("::view-transition")) {- d.push(n), n = r.getKeyframes();- for (var a = i = void 0, s = !0, c = 0; c < n.length; c++) {- var u = n[c], f = u.width;- if (i === void 0) i = f;- else if (i !== f) {- s = !1;- break;- }- if (f = u.height, a === void 0) a = f;- else if (a !== f) {- s = !1;- break;- }- delete u.width, delete u.height, u.transform === "none" && delete u.transform;- }- s && i !== void 0 && a !== void 0 && (r.setKeyframes(n), s = getComputedStyle(r.target, r.pseudoElement), s.width !== i || s.height !== a) && (s = n[0], s.width = i, s.height = a, s = n[n.length - 1], s.width = i, s.height = a, r.setKeyframes(n));- }- }- o();- }, function(e) {- l.__reactViewTransition === u && (l.__reactViewTransition = null);- try {- if (typeof e == "object" && e) switch (e.name) {- case "InvalidStateError": (e.message === "View transition was skipped because document visibility state is hidden." || e.message === "Skipping view transition because document visibility state has become hidden." || e.message === "Skipping view transition because viewport size changed." || e.message === "Transition was aborted because of invalid state") && (e = null);- }- e !== null && c(e);- } finally {- r(), i(), o();- }- }), u.finished.finally(function() {- for (var e = 0; e < d.length; e++) d[e].cancel();- l.__reactViewTransition === u && (l.__reactViewTransition = null), s();- }), u;- } catch {- return r(), i(), o(), null;- }- }- function Up(e, t) {- this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";- }- Up.prototype.animate = function(e, t) {- return t = typeof t == "number" ? { duration: t } : w({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);- }, Up.prototype.getAnimations = function() {- for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {- var a = n[i].effect;- a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);- }- return r;- }, Up.prototype.getComputedStyle = function() {- return getComputedStyle(this._scope, this._selector);- };- function Wp(e) {- return {- name: e,- group: new Up("group", e),- imagePair: new Up("image-pair", e),- old: new Up("old", e),- new: new Up("new", e)- };- }- function Gp(e) {- this._fragmentFiber = e, this._observers = this._eventListeners = null;- }- Gp.prototype.addEventListener = function(e, t, n) {- var r = null, i = null;- if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {- this._eventListeners === null && (this._eventListeners = []);- var a = this._eventListeners;- if (Xp(a, e, t, n) === -1) {- var o = this, s = t;- n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {- o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);- }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Jp(n), a.push({- type: e,- listener: t,- optionsOrUseCapture: n,- attachedListener: s,- cleanup: i- }), f(this._fragmentFiber.child, !1, Kp, e, s, r);- }- this._eventListeners = a;- }- };- function Kp(e, t, n, r) {- return _(e).addEventListener(t, n, r), !1;- }- Gp.prototype.removeEventListener = function(e, t, n) {- var r = this._eventListeners;- if (r !== null && (t = Xp(r, e, t, n), t !== -1)) {- var i = r[t];- n = i.attachedListener;- var a = i.cleanup;- i = Jp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, qp, e, n, i), r.splice(t, 1), a !== null && a();- }- };- function qp(e, t, n, r) {- return _(e).removeEventListener(t, n, r), !1;- }- function Jp(e) {- return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {- capture: e.capture,- passive: e.passive- } : e;- }- function Yp(e) {- return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");- }- function Xp(e, t, n, r) {- if (e.length === 0) return -1;- r = Yp(r);- for (var i = 0; i < e.length; i++) {- var a = e[i];- if (a.type === t && a.listener === n && Yp(a.optionsOrUseCapture) === r) return i;- }- return -1;- }- Gp.prototype.dispatchEvent = function(e) {- var t = p(this._fragmentFiber);- if (t === null) return !0;- t = _(t);- var n = this._eventListeners;- if (n !== null && 0 < n.length || !e.bubbles) {- var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");- if (n) for (var i = 0; i < n.length; i++) {- var a = n[i];- r.addEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));- }- if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));- return t.removeChild(r), e;- }- return t.dispatchEvent(e);- }, Gp.prototype.focus = function(e) {- f(this._fragmentFiber.child, !0, Zp, e, void 0, void 0);- };- function Zp(e, t) {- return e.tag !== 6 && (e = _(e), Cm(e, t));- }- Gp.prototype.focusLast = function(e) {- var t = [];- f(this._fragmentFiber.child, !0, Qp, t, void 0, void 0);- for (var n = t.length - 1; 0 <= n && !Zp(t[n], e); n--);- };- function Qp(e, t) {- return t.push(e), !1;- }- Gp.prototype.blur = function() {- var e = p(this._fragmentFiber);- e !== null && (e = _(e), e = bp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, $p, e, void 0, void 0));- };- function $p(e, t) {- return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);- }- Gp.prototype.observeUsing = function(e) {- this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);- };- function em(e, t) {- return e.tag !== 6 && (e = _(e), t.observe(e), !1);- }- Gp.prototype.unobserveUsing = function(e) {- var t = this._observers;- if (t !== null && t.has(e)) {- t.delete(e), f(this._fragmentFiber.child, !1, tm, e, void 0, void 0);- for (var n = t = 0; n < nm.length; n++) {- var r = nm[n];- r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : nm[t++] = r;- }- nm.length = t;- }- };- function tm(e, t) {- return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);- }- var nm = [], rm = !1;- function im(e, t, n) {- nm.push({- fragmentInstance: e,- observer: t,- instance: n- }), rm || (rm = !0, wm(function() {- rm = !1;- var e = nm;- nm = [];- for (var t = 0; t < e.length; t++) {- var n = e[t];- n.observer.unobserve(n.instance);- }- }));- }- Gp.prototype.getClientRects = function() {- var e = [];- return f(this._fragmentFiber.child, !1, am, e, void 0, void 0), e;- };- function am(e, t) {- if (e.tag === 6) {- e = e.stateNode;- var n = e.ownerDocument.createRange();- n.selectNodeContents(e), t.push.apply(t, n.getClientRects());- } else e = _(e), t.push.apply(t, e.getClientRects());- return !1;- }- Gp.prototype.getRootNode = function(e) {- var t = p(this._fragmentFiber);- return t === null ? this : _(t).getRootNode(e);- }, Gp.prototype.compareDocumentPosition = function(e) {- var t = p(this._fragmentFiber);- if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;- var n = [];- f(this._fragmentFiber.child, !1, Qp, n, void 0, void 0);- var r = _(t);- if (n.length === 0) {- if (n = r, m(this._fragmentFiber)) {- a: {- for (t = this._fragmentFiber.return; t !== null;) {- if (t.tag === 4) {- t = t.stateNode.containerInfo;- break a;- }- if (t.tag === 3 || t.tag === 5 || t.tag === 27) break;- t = t.return;- }- t = null;- }- t != null && (n = t);- }- t = this._fragmentFiber;- var i = r = n.compareDocumentPosition(e);- return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = _(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;- }- t = _(n[0]), i = _(n[n.length - 1]);- var a = m(this._fragmentFiber) ? t.parentElement : r;- if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;- r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;- var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;- return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || om(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;- };- function om(e, t, n, r, i) {- var a = kt(i);- if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {- if (n = !!a) a: {- for (; a !== null;) {- if (a.tag === 7 && (a === t || a.alternate === t)) {- n = !0;- break a;- }- a = a.return;- }- n = !1;- }- return n;- }- if (e & Node.DOCUMENT_POSITION_CONTAINS) {- if (a === null) return a = i.ownerDocument, i === a || i === a.documentElement || i === a.body;- a: {- for (a = t, t = p(t); a !== null;) {- if (!(a.tag !== 5 && a.tag !== 3 && a.tag !== 27 || a !== t && a.alternate !== t)) {- a = !0;- break a;- }- a = a.return;- }- a = !1;- }- return a;- }- return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = C(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = C(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;- }- function sm(e, t) {- var n = e.ownerDocument.createRange();- n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);- }- Gp.prototype.scrollIntoView = function(e) {- if (typeof e == "object") throw Error(i(566));- var t = [];- f(this._fragmentFiber.child, !1, Qp, t, void 0, void 0);- var n = !1 !== e;- if (t.length === 0) {- var r = h(this._fragmentFiber);- if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;- if (r.tag === 6) {- e = _(r), sm(e, n);- return;- }- if (r = _(r), r.nodeType !== 9) {- if (r.nodeType === 11) {- n = "host" in r ? r.host : null, n !== null && n.scrollIntoView(e);- return;- }- r.scrollIntoView(e);- }- }- for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {- var a = t[r];- a.tag === 6 ? (a = _(a), sm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;- }- };- function cm(e, t) {- return e = _(e), lm(e, t), !1;- }- function lm(e, t) {- e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);- }- function um(e, t) {- var n = t._eventListeners;- if (n !== null) for (var r = 0; r < n.length; r++) {- var i = n[r];- e.addEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));- }- e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {- for (var r = 0, i = 0; i < nm.length; i++) {- var a = nm[i];- (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (nm[r++] = a);- }- nm.length = r, n.observe(e);- }), lm(e, t));- }- function dm(e, t) {- var n = t._eventListeners;- if (n !== null) for (var r = 0; r < n.length; r++) {- var i = n[r];- e.removeEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));- }- e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {- typeof n.rootMargin == "string" ? im(t, n, e) : n.unobserve(e);- }), e.reactFragments != null && e.reactFragments.delete(t));- }- function fm(e) {- var t = e.firstChild;- for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {- var n = t;- switch (t = t.nextSibling, n.nodeName) {- case "HTML":- case "HEAD":- case "BODY":- fm(n), Dt(n);- continue;- case "SCRIPT":- case "STYLE": continue;- case "LINK": if (n.rel.toLowerCase() === "stylesheet") continue;- }- e.removeChild(n);- }- }- function pm(e, t, n, r) {- for (; e.nodeType === 1;) {- var i = n;- if (e.nodeName.toLowerCase() !== t.toLowerCase()) {- if (!r && (e.nodeName !== "INPUT" || e.type !== "hidden")) break;- } else if (!r) {- if (t === "input" && e.type === "hidden") {- var a = i.name == null ? null : "" + i.name;- if (i.type === "hidden" && e.getAttribute("name") === a) return e;- } else return e;- } else if (!e[Tt]) switch (t) {- case "meta":- if (!e.hasAttribute("itemprop")) break;- return e;- case "link":- if (a = e.getAttribute("rel"), a === "stylesheet" && e.hasAttribute("data-precedence") || a !== i.rel || e.getAttribute("href") !== (i.href == null || i.href === "" ? null : i.href) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin) || e.getAttribute("title") !== (i.title == null ? null : i.title)) break;- return e;- case "style":- if (e.hasAttribute("data-precedence")) break;- return e;- case "script":- if (a = e.getAttribute("src"), (a !== (i.src == null ? null : i.src) || e.getAttribute("type") !== (i.type == null ? null : i.type) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin)) && a && e.hasAttribute("async") && !e.hasAttribute("itemprop")) break;- return e;- default: return e;- }- if (e = ym(e.nextSibling), e === null) break;- }- return null;- }- function mm(e, t, n) {- if (t === "") return null;- for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = ym(e.nextSibling), e === null)) return null;- return e;- }- function hm(e, t) {- for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = ym(e.nextSibling), e === null)) return null;- return e;- }- function gm(e) {- return e.data === "$?" || e.data === "$~";- }- function _m(e) {- return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";- }- function vm(e, t) {- var n = e.ownerDocument;- if (e.data === "$~") e._reactRetry = t;- else if (e.data !== "$?" || n.readyState !== "loading") t();- else {- var r = function() {- t(), n.removeEventListener("DOMContentLoaded", r);- };- n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;- }- }- function ym(e) {- for (; e != null; e = e.nextSibling) {- var t = e.nodeType;- if (t === 1 || t === 3) break;- if (t === 8) {- if (t = e.data, t === "$" || t === "$!" || t === "$?" || t === "$~" || t === "&" || t === "F!" || t === "F") break;- if (t === "/$" || t === "/&") return null;- }- }- return e;- }- var bm = null;- function xm(e) {- e = e.nextSibling;- for (var t = 0; e;) {- if (e.nodeType === 8) {- var n = e.data;- if (n === "/$" || n === "/&") {- if (t === 0) return ym(e.nextSibling);- t--;- } else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;- }- e = e.nextSibling;- }- return null;- }- function Sm(e) {- e = e.previousSibling;- for (var t = 0; e;) {- if (e.nodeType === 8) {- var n = e.data;- if (n === "$" || n === "$!" || n === "$?" || n === "$~" || n === "&") {- if (t === 0) return e;- t--;- } else n !== "/$" && n !== "/&" || t++;- }- e = e.previousSibling;- }- return null;- }- function Cm(e, t) {- function n() {- r = !0;- }- if (e.ownerDocument.activeElement === e) return !0;- var r = !1;- try {- e.ownerDocument.addEventListener("focus", n, !0), (e.focus || HTMLElement.prototype.focus).call(e, t);- } finally {- e.ownerDocument.removeEventListener("focus", n, !0);- }- return r;- }- function wm(e) {- H(function() {- H(function(t) {- return e(t);- });- });- }- function Tm(e, t, n) {- switch (t = bp(n), e) {- case "html":- if (e = t.documentElement, !e) throw Error(i(452));- return e;- case "head":- if (e = t.head, !e) throw Error(i(453));- return e;- case "body":- if (e = t.body, !e) throw Error(i(454));- return e;- default: throw Error(i(451));- }- }- function Em(e, t, n) {- for (var r in n) {- var i = n[r];- n.hasOwnProperty(r) && i != null && dp(e, t, r, null, mp, i);- }- n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === gn && (e.onclick = null), Dt(e);- }- function Dm(e) {- for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);- Dt(e);- }- var Om = /* @__PURE__ */ new Map(), km = /* @__PURE__ */ new Set();- function Am(e) {- if (typeof e.getRootNode == "function") {- var t = e.getRootNode();- if (t.nodeType === 9 || t.nodeType === 11) return t;- }- return e.nodeType === 9 ? e : e.ownerDocument;- }- var jm = de.d;- de.d = {- f: Mm,- r: Nm,- D: Im,- C: Lm,- L: Rm,- m: zm,- X: Vm,- S: Bm,- M: Hm- };- function Mm() {- var e = jm.f(), t = qd();- return e || t;- }- function Nm(e) {- var t = jt(e);- t !== null && t.tag === 5 && t.type === "form" ? ic(t) : jm.r(e);- }- var Pm = typeof document > "u" ? null : document;- function Fm(e, t, n) {- var r = Pm;- if (r && typeof t == "string" && t) {- var i = en(t);- i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), km.has(i) || (km.add(i), e = {- rel: e,- crossOrigin: n,- href: t- }, r.querySelector(i) === null && (t = r.createElement("link"), pp(t, "link", e), Nt(t), r.head.appendChild(t)));- }- }- function Im(e) {- jm.D(e), Fm("dns-prefetch", e, null);- }- function Lm(e, t) {- jm.C(e, t), Fm("preconnect", e, t);- }- function Rm(e, t, n) {- jm.L(e, t, n);- var r = Pm;- if (r && e && t) {- var i = "link[rel=\"preload\"][as=\"" + en(t) + "\"]";- t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + en(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + en(n.imageSizes) + "\"]")) : i += "[href=\"" + en(e) + "\"]";- var a = i;- switch (t) {- case "style":- a = Wm(e);- break;- case "script": a = Jm(e);- }- if (!(Om.has(a) || (e = w({- rel: "preload",- href: t === "image" && n && n.imageSrcSet ? void 0 : e,- as: t- }, n), Om.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Gm(a)) || t === "script" && r.querySelector(Ym(a))))) {- var o = r.createElement("link");- pp(o, "link", e), t === "style" && (o[Et] = !0, o.onload = o.onerror = function() {- Pt(o);- }), Nt(o), r.head.appendChild(o);- }- }- }- function zm(e, t) {- jm.m(e, t);- var n = Pm;- if (n && e) {- var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + en(r) + "\"][href=\"" + en(e) + "\"]", a = i;- switch (r) {- case "audioworklet":- case "paintworklet":- case "serviceworker":- case "sharedworker":- case "worker":- case "script": a = Jm(e);- }- if (!Om.has(a) && (e = w({- rel: "modulepreload",- href: e- }, t), Om.set(a, e), n.querySelector(i) === null)) {- switch (r) {- case "audioworklet":- case "paintworklet":- case "serviceworker":- case "sharedworker":- case "worker":- case "script": if (n.querySelector(Ym(a))) return;- }- r = n.createElement("link"), pp(r, "link", e), Nt(r), n.head.appendChild(r);- }- }- }- function Bm(e, t, n) {- jm.S(e, t, n);- var r = Pm;- if (r && e) {- var i = B(r).hoistableStyles, a = Wm(e);- t ||= "default";- var o = i.get(a);- if (!o) {- var s = {- loading: 0,- preload: null- };- if (o = r.querySelector(Gm(a))) s.loading = 5;- else {- e = w({- rel: "stylesheet",- href: e,- "data-precedence": t- }, n), (n = Om.get(a)) && Qm(e, n);- var c = o = r.createElement("link");- Nt(c), pp(c, "link", e), c._p = new Promise(function(e, t) {- c.onload = e, c.onerror = t;- }), c.addEventListener("load", function() {- s.loading |= 1;- }), c.addEventListener("error", function() {- s.loading |= 2;- }), s.loading |= 4, Zm(o, t, r);- }- o = {- type: "stylesheet",- instance: o,- count: 1,- state: s- }, i.set(a, o);- }- }- }- function Vm(e, t) {- jm.X(e, t);- var n = Pm;- if (n && e) {- var r = B(n).hoistableScripts, i = Jm(e), a = r.get(i);- a || (a = n.querySelector(Ym(i)), a || (e = w({- src: e,- async: !0- }, t), (t = Om.get(i)) && $m(e, t), a = n.createElement("script"), Nt(a), pp(a, "link", e), n.head.appendChild(a)), a = {- type: "script",- instance: a,- count: 1,- state: null- }, r.set(i, a));- }- }- function Hm(e, t) {- jm.M(e, t);- var n = Pm;- if (n && e) {- var r = B(n).hoistableScripts, i = Jm(e), a = r.get(i);- a || (a = n.querySelector(Ym(i)), a || (e = w({- src: e,- async: !0,- type: "module"- }, t), (t = Om.get(i)) && $m(e, t), a = n.createElement("script"), Nt(a), pp(a, "link", e), n.head.appendChild(a)), a = {- type: "script",- instance: a,- count: 1,- state: null- }, r.set(i, a));- }- }- function Um(e, t, n, r) {- var a = (a = ye.current) ? Am(a) : null;- if (!a) throw Error(i(446));- switch (e) {- case "meta":- case "title": return null;- case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Wm(n.href), t = B(a).hoistableStyles, r = t.get(n), r || (r = {- type: "style",- instance: null,- count: 0,- state: null- }, t.set(n, r)), r) : {- type: "void",- instance: null,- count: 0,- state: null- };- case "link":- if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {- e = Wm(n.href);- var o = B(a).hoistableStyles, s = o.get(e);- if (s || (a = a.ownerDocument || a, s = {- type: "stylesheet",- instance: null,- count: 0,- state: {- loading: 0,- preload: null- }- }, o.set(e, s), (o = a.querySelector(Gm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Om.get(e), o || (o = {- rel: "preload",- as: "style",- href: n.href,- crossOrigin: n.crossOrigin,- integrity: n.integrity,- media: n.media,- hrefLang: n.hrefLang,- referrerPolicy: n.referrerPolicy- }, Om.set(e, o)), qm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));- return s;- }- if (t && r !== null) throw Error(i(529, ""));- return null;- case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Jm(n), t = B(a).hoistableScripts, r = t.get(n), r || (r = {- type: "script",- instance: null,- count: 0,- state: null- }, t.set(n, r)), r) : {- type: "void",- instance: null,- count: 0,- state: null- };- default: throw Error(i(444, e));- }- }- function Wm(e) {- return "href=\"" + en(e) + "\"";- }- function Gm(e) {- return "link[rel=\"stylesheet\"][" + e + "]";- }- function Km(e) {- return w({}, e, {- "data-precedence": e.precedence,- precedence: null- });- }- function qm(e, t, n, r) {- if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {- if (!0 !== t[Et]) {- r.loading = 1;- return;- }- } else t = e.createElement("link"), t[Et] = !0, t.onload = t.onerror = Pt.bind(null, t), pp(t, "link", n), Nt(t), e.head.appendChild(t);- r.preload = t, t.addEventListener("load", function() {- return r.loading |= 1;- }), t.addEventListener("error", function() {- return r.loading |= 2;- });- }- function Jm(e) {- return "[src=\"" + en(e) + "\"]";- }- function Ym(e) {- return "script[async]" + e;- }- function Xm(e, t, n) {- if (t.count++, t.instance === null) switch (t.type) {- case "style":- var r = e.querySelector("style[data-href~=\"" + en(n.href) + "\"]");- if (r) return t.instance = r, Nt(r), r;- var a = w({}, n, {- "data-href": n.href,- "data-precedence": n.precedence,- href: null,- precedence: null- });- return r = (e.ownerDocument || e).createElement("style"), Nt(r), pp(r, "style", a), Zm(r, n.precedence, e), t.instance = r;- case "stylesheet":- a = Wm(n.href);- var o = e.querySelector(Gm(a));- if (o) return t.state.loading |= 4, t.instance = o, Nt(o), o;- r = Km(n), (a = Om.get(a)) && Qm(r, a), o = (e.ownerDocument || e).createElement("link"), Nt(o);- var s = o;- return s._p = new Promise(function(e, t) {- s.onload = e, s.onerror = t;- }), pp(o, "link", r), t.state.loading |= 4, Zm(o, n.precedence, e), t.instance = o;- case "script": return o = Jm(n.src), (a = e.querySelector(Ym(o))) ? (t.instance = a, Nt(a), a) : (r = n, (a = Om.get(o)) && (r = w({}, n), $m(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), pp(a, "link", r), e.head.appendChild(a), t.instance = a);- case "void": return null;- default: throw Error(i(443, t.type));- }- else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Zm(r, n.precedence, e));- return t.instance;- }- function Zm(e, t, n) {- for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {- var s = r[o];- if (s.dataset.precedence === t) a = s;- else if (a !== i) break;- }- a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));- }- function Qm(e, t) {- e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;- }- function $m(e, t) {- e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;- }- var eh = null;- function th(e, t, n) {- if (eh === null) {- var r = /* @__PURE__ */ new Map(), i = eh = /* @__PURE__ */ new Map();- i.set(n, r);- } else i = eh, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));- if (r.has(e)) return r;- for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {- var a = n[i];- if (!(a[Tt] || a[vt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {- var o = a.getAttribute(t) || "";- o = e + o;- var s = r.get(o);- s ? s.push(a) : r.set(o, [a]);- }- }- return r;- }- function nh(e, t, n) {- e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);- }- function rh(e, t, n) {- if (n === 1 || t.itemProp != null) return !1;- switch (e) {- case "meta":- case "title": return !0;- case "style":- if (typeof t.precedence != "string" || typeof t.href != "string" || t.href === "") break;- return !0;- case "link":- if (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" || t.onLoad || t.onError) break;- switch (t.rel) {- case "stylesheet": return e = t.disabled, typeof t.precedence == "string" && e == null;- default: return !0;- }- case "script": if (t.async && typeof t.async != "function" && typeof t.async != "symbol" && !t.onLoad && !t.onError && t.src && typeof t.src == "string") return !0;- }- return !1;- }- function ih(e, t) {- return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";- }- function ah(e) {- return !(e.type === "stylesheet" && !(e.state.loading & 3));- }- function oh(e) {- return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;- }- function sh(e, t) {- typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += oh(t), e.suspenseyImages.push(t)), e = ph.bind(e), t.decode().then(e, e));- }- function ch(e, t, n, r) {- if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {- if (n.instance === null) {- var i = Wm(r.href), a = t.querySelector(Gm(i));- if (a) {- t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = fh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Nt(a);- return;- }- a = t.ownerDocument || t, r = Km(r), (i = Om.get(i)) && Qm(r, i), a = a.createElement("link"), Nt(a);- var o = a;- o._p = new Promise(function(e, t) {- o.onload = e, o.onerror = t;- }), pp(a, "link", r), n.instance = a;- }- e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = fh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));- }- }- var lh = 0;- function uh(e, t) {- return e.stylesheets && e.count === 0 && hh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {- var r = setTimeout(function() {- if (e.stylesheets && hh(e, e.stylesheets), e.unsuspend) {- var t = e.unsuspend;- e.unsuspend = null, t();- }- }, 6e4 + t);- 0 < e.imgBytes && lh === 0 && (lh = 62500 * _p());- var i = setTimeout(function() {- if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && hh(e, e.stylesheets), e.unsuspend)) {- var t = e.unsuspend;- e.unsuspend = null, t();- }- }, (e.imgBytes > lh ? 50 : 800) + t);- return e.unsuspend = n, function() {- e.unsuspend = null, clearTimeout(r), clearTimeout(i);- };- } : null;- }- function dh(e) {- if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {- if (e.stylesheets) hh(e, e.stylesheets);- else if (e.unsuspend) {- var t = e.unsuspend;- e.unsuspend = null, t();- }- }- }- function fh() {- this.count--, dh(this);- }- function ph() {- this.imgCount--, dh(this);- }- var mh = null;- function hh(e, t) {- e.stylesheets = null, e.unsuspend !== null && (e.count++, mh = /* @__PURE__ */ new Map(), t.forEach(gh, e), mh = null, fh.call(e));- }- function gh(e, t) {- if (!(t.state.loading & 4)) {- var n = mh.get(e);- if (n) var r = n.get(null);- else {- n = /* @__PURE__ */ new Map(), mh.set(e, n);- for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {- var o = i[a];- (o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);- }- r && n.set(null, r);- }- i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = fh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;- }- }- var _h = {- $$typeof: M,- Provider: null,- Consumer: null,- _currentValue: fe,- _currentValue2: fe,- _threadCount: 0- };- function U(e, t, n, r, i, a, o, s, c) {- this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = st(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = st(0), this.hiddenUpdates = st(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();- }- function vh(e, t, n, r, i, a, o, s, c, l, u, d) {- return e = new U(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ai(3, null, null, t), e.current = a, a.stateNode = e, t = ja(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {- element: r,- isDehydrated: n,- cache: t- }, mo(a), e;- }- function yh(e) {- return e ? (e = Oi, e) : Oi;- }- function bh(e, t, n, r, i, a) {- i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = go(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = _o(e, r, t), n !== null && (Hd(n, e, t), vo(n, e, t));- }- function xh(e, t) {- if (e = e.memoizedState, e !== null && e.dehydrated !== null) {- var n = e.retryLane;- e.retryLane = n !== 0 && n < t ? n : t;- }- }- function Sh(e, t) {- xh(e, t), (e = e.alternate) && xh(e, t);- }- function Ch(e) {- if (e.tag === 13 || e.tag === 31) {- var t = Ti(e, 67108864);- t !== null && Hd(t, e, 67108864), Sh(e, 67108864);- }- }- function wh(e) {- if (e.tag === 13 || e.tag === 31) {- var t = zd();- t = pt(t);- var n = Ti(e, t);- n !== null && Hd(n, e, t), Sh(e, t);- }- }- var Th = !0;- function Eh(e, t, n, r) {- var i = L.T;- L.T = null;- var a = de.p;- try {- de.p = 2, Oh(e, t, n, r);- } finally {- de.p = a, L.T = i;- }- }- function Dh(e, t, n, r) {- var i = L.T;- L.T = null;- var a = de.p;- try {- de.p = 8, Oh(e, t, n, r);- } finally {- de.p = a, L.T = i;- }- }- function Oh(e, t, n, r) {- if (Th) {- var i = kh(r);- if (i === null) np(e, t, r, Ah, n), Vh(e, r);- else if (Uh(i, e, t, n, r)) r.stopPropagation();- else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {- for (; i !== null;) {- var a = jt(i);- if (a !== null) switch (a.tag) {- case 3:- if (a = a.stateNode, a.current.memoizedState.isDehydrated) {- var o = nt(a.pendingLanes);- if (o !== 0) {- var s = a;- for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {- var c = 1 << 31 - Ye(o);- s.entanglements[1] |= c, o &= ~c;- }- Ff(a), !(rd & 6) && (wd = Le() + 500, If(0, !1));- }- }- break;- case 31:- case 13: s = Ti(a, 2), s !== null && Hd(s, a, 2), qd(), Sh(a, 2);- }- if (a = kh(r), a === null && np(e, t, r, Ah, n), a === i) break;- i = a;- }- i !== null && r.stopPropagation();- } else np(e, t, r, null, n);- }- }- function kh(e) {- return e = vn(e), jh(e);- }- var Ah = null;- function jh(e) {- if (Ah = null, e = kt(e), e !== null) {- var t = o(e);- if (t === null) e = null;- else {- var n = t.tag;- if (n === 13) {- if (e = s(t), e !== null) return e;- e = null;- } else if (n === 31) {- if (e = c(t), e !== null) return e;- e = null;- } else if (n === 3) {- if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;- e = null;- } else t !== e && (e = null);- }- }- return Ah = e, null;- }- function Mh(e) {- switch (e) {- case "beforetoggle":- case "cancel":- case "click":- case "close":- case "contextmenu":- case "copy":- case "cut":- case "auxclick":- case "dblclick":- case "dragend":- case "dragstart":- case "drop":- case "focusin":- case "focusout":- case "input":- case "invalid":- case "keydown":- case "keypress":- case "keyup":- case "mousedown":- case "mouseup":- case "paste":- case "pause":- case "play":- case "pointercancel":- case "pointerdown":- case "pointerup":- case "ratechange":- case "reset":- case "seeked":- case "submit":- case "toggle":- case "touchcancel":- case "touchend":- case "touchstart":- case "volumechange":- case "change":- case "selectionchange":- case "textInput":- case "compositionstart":- case "compositionend":- case "compositionupdate":- case "beforeblur":- case "afterblur":- case "beforeinput":- case "blur":- case "fullscreenchange":- case "fullscreenerror":- case "focus":- case "hashchange":- case "popstate":- case "select":- case "selectstart": return 2;- case "drag":- case "dragenter":- case "dragexit":- case "dragleave":- case "dragover":- case "mousemove":- case "mouseout":- case "mouseover":- case "pointermove":- case "pointerout":- case "pointerover":- case "resize":- case "scroll":- case "touchmove":- case "wheel":- case "mouseenter":- case "mouseleave":- case "pointerenter":- case "pointerleave": return 8;- case "message": switch (Re()) {- case ze: return 2;- case Be: return 8;- case Ve:- case He: return 32;- case Ue: return 268435456;- default: return 32;- }- default: return 32;- }- }- var Nh = !1, Ph = null, Fh = null, Ih = null, Lh = /* @__PURE__ */ new Map(), Rh = /* @__PURE__ */ new Map(), zh = [], Bh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");- function Vh(e, t) {- switch (e) {- case "focusin":- case "focusout":- Ph = null;- break;- case "dragenter":- case "dragleave":- Fh = null;- break;- case "mouseover":- case "mouseout":- Ih = null;- break;- case "pointerover":- case "pointerout":- Lh.delete(t.pointerId);- break;- case "gotpointercapture":- case "lostpointercapture": Rh.delete(t.pointerId);- }- }- function Hh(e, t, n, r, i, a) {- return e === null || e.nativeEvent !== a ? (e = {- blockedOn: t,- domEventName: n,- eventSystemFlags: r,- nativeEvent: a,- targetContainers: [i]- }, t !== null && (t = jt(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);- }- function Uh(e, t, n, r, i) {- switch (t) {- case "focusin": return Ph = Hh(Ph, e, t, n, r, i), !0;- case "dragenter": return Fh = Hh(Fh, e, t, n, r, i), !0;- case "mouseover": return Ih = Hh(Ih, e, t, n, r, i), !0;- case "pointerover":- var a = i.pointerId;- return Lh.set(a, Hh(Lh.get(a) || null, e, t, n, r, i)), !0;- case "gotpointercapture": return a = i.pointerId, Rh.set(a, Hh(Rh.get(a) || null, e, t, n, r, i)), !0;- }- return !1;- }- function Wh(e) {- var t = kt(e.target);- if (t !== null) {- var n = o(t);- if (n !== null) {- if (t = n.tag, t === 13) {- if (t = s(n), t !== null) {- e.blockedOn = t, gt(e.priority, function() {- wh(n);- });- return;- }- } else if (t === 31) {- if (t = c(n), t !== null) {- e.blockedOn = t, gt(e.priority, function() {- wh(n);- });- return;- }- } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) {- e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;- return;- }- }- }- e.blockedOn = null;- }- function Gh(e) {- if (e.blockedOn !== null) return !1;- for (var t = e.targetContainers; 0 < t.length;) {- var n = kh(e.nativeEvent);- if (n === null) {- n = e.nativeEvent;- var r = new n.constructor(n.type, n);- _n = r, n.target.dispatchEvent(r), _n = null;- } else return t = jt(n), t !== null && Ch(t), e.blockedOn = n, !1;- t.shift();- }- return !0;- }- function Kh(e, t, n) {- Gh(e) && n.delete(t);- }- function qh() {- Nh = !1, Ph !== null && Gh(Ph) && (Ph = null), Fh !== null && Gh(Fh) && (Fh = null), Ih !== null && Gh(Ih) && (Ih = null), Lh.forEach(Kh), Rh.forEach(Kh);- }- function Jh(e, n) {- e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, qh)));- }- var Yh = null;- function Xh(e) {- Yh !== e && (Yh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {- Yh === e && (Yh = null);- for (var t = 0; t < e.length; t += 3) {- var n = e[t], r = e[t + 1], i = e[t + 2];- if (typeof r != "function") {- if (jh(r || n) === null) continue;- break;- }- var a = jt(n);- a !== null && (e.splice(t, 3), t -= 3, nc(a, {- pending: !0,- data: i,- method: n.method,- action: r- }, r, i));- }- }));- }- function Zh(e) {- function t(t) {- return Jh(t, e);- }- Ph !== null && Jh(Ph, e), Fh !== null && Jh(Fh, e), Ih !== null && Jh(Ih, e), Lh.forEach(t), Rh.forEach(t);- for (var n = 0; n < zh.length; n++) {- var r = zh[n];- r.blockedOn === e && (r.blockedOn = null);- }- for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.shift();- if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {- var i = n[r], a = n[r + 1], o = i[yt] || null;- if (typeof a == "function") o || Xh(n);- else if (o) {- var s = null;- if (a && a.hasAttribute("formAction")) {- if (i = a, o = a[yt] || null) s = o.formAction;- else if (jh(i) !== null) continue;- } else s = o.action;- typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);- }- }- }- function Qh() {- function e(e) {- e.canIntercept && e.info === "react-transition" && e.intercept({- handler: function() {- return new Promise(function(e) {- return i = e;- });- },- focusReset: "manual",- scroll: "manual"- });- }- function t() {- i !== null && (i(), i = null), r || setTimeout(n, 20);- }- function n() {- if (!r && !navigation.transition) {- var e = navigation.currentEntry;- e && e.url != null && navigation.navigate(e.url, {- state: e.getState(),- info: "react-transition",- history: "replace"- });- }- }- if (typeof navigation == "object") {- var r = !1, i = null;- return navigation.addEventListener("navigate", e), navigation.addEventListener("navigatesuccess", t), navigation.addEventListener("navigateerror", t), setTimeout(n, 100), function() {- r = !0, navigation.removeEventListener("navigate", e), navigation.removeEventListener("navigatesuccess", t), navigation.removeEventListener("navigateerror", t), i !== null && (i(), i = null);- };- }- }- function $h(e) {- this._internalRoot = e;- }- eg.prototype.render = $h.prototype.render = function(e) {- var t = this._internalRoot;- if (t === null) throw Error(i(409));- var n = t.current;- bh(n, zd(), e, t, null, null);- }, eg.prototype.unmount = $h.prototype.unmount = function() {- var e = this._internalRoot;- if (e !== null) {- this._internalRoot = null;- var t = e.containerInfo;- bh(e.current, 2, null, e, null, null), qd(), t[bt] = null;- }- };- function eg(e) {- this._internalRoot = e;- }- eg.prototype.unstable_scheduleHydration = function(e) {- if (e) {- var t = ht();- e = {- blockedOn: null,- target: e,- priority: t- };- for (var n = 0; n < zh.length && t !== 0 && t < zh[n].priority; n++);- zh.splice(n, 0, e), n === 0 && Wh(e);- }- };- var tg = n.version;- if (tg !== "19.3.0") throw Error(i(527, tg, "19.3.0"));- de.findDOMNode = function(e) {- var t = e._reactInternals;- if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));- return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;- };- var ng = {- bundleType: 0,- version: "19.3.0",- rendererPackageName: "react-dom",- currentDispatcherRef: L,- reconcilerVersion: "19.3.0"- };- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {- var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;- if (!rg.isDisabled && rg.supportsFiber) try {- Ke = rg.inject(ng), qe = rg;- } catch {}- }- e.createRoot = function(e, t) {- if (!a(e)) throw Error(i(299));- var n = !1, r = "", o = Tc, s = Ec, c = Dc;- return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[bt] = t.current, ep(e), new $h(t);- };-})), cS = (/* @__PURE__ */ xt(((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);- } catch (e) {- console.error(e);- }- }- n(), t.exports = Lne();-})))(), lS = B.createContext(void 0), uS = (e) => {- let t = B.useContext(lS);- if (e) return e;- if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");- return t;-}, dS = ({ client: e, children: t }) => (B.useEffect(() => (e.mount(), () => {- e.unmount();-}), [e]), /* @__PURE__ */ (0, V.jsx)(lS.Provider, {- value: e,- children: t-})), Rne = ({ children: e, options: t = {}, state: n, queryClient: r }) => {- let i = uS(r), a = B.useRef(t);- B.useEffect(() => {- a.current = t;- });- let o = B.useMemo(() => {- if (n) {- if (typeof n != "object") return;- let e = i.getQueryCache(), t = n.queries || [], r = [], o = [];- for (let n of t) {- let t = e.get(n.queryHash);- t ? (n.state.dataUpdatedAt > t.state.dataUpdatedAt || n.promise && t.state.status !== "pending" && t.state.fetchStatus !== "fetching" && n.dehydratedAt > t.state.dataUpdatedAt) && o.push(n) : r.push(n);- }- if (r.length > 0 && y(i, { queries: r }, a.current), o.length > 0) return o;- }- }, [i, n]);- return B.useEffect(() => {- o && y(i, { queries: o }, a.current);- }, [i, o]), e;-}, fS = B.createContext(!1), pS = () => B.useContext(fS), zne = fS.Provider;-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js-function mS() {- let e = !1;- return {- clearReset: () => {- e = !1;- },- reset: () => {- e = !0;- },- isReset: () => e- };-}-var hS = B.createContext(mS()), gS = () => B.useContext(hS), Bne = ({ children: e }) => {- let [t] = B.useState(() => mS());- return /* @__PURE__ */ (0, V.jsx)(hS.Provider, {- value: t,- children: typeof e == "function" ? e(t) : e- });-}, _S = (e, t, n) => {- let r = n?.state.error && typeof e.throwOnError == "function" ? C(e.throwOnError, [n.state.error, n]) : e.throwOnError;- (e.suspense || r) && (t.isReset() || (e.retryOnMount = !1));-}, vS = (e) => {- B.useEffect(() => {- e.clearReset();- }, [e]);-}, yS = ({ result: e, errorResetBoundary: t, throwOnError: n, query: r, suspense: i }) => e.isError && !t.isReset() && !e.isFetching && r && (i && e.data === void 0 || C(n, [e.error, r])), bS = (e, t) => t.state.data === void 0, xS = (e) => {- if (e.suspense) {- let t = 1e3, n = (e) => e === "static" ? e : Math.max(e ?? t, t), r = e.staleTime;- e.staleTime = typeof r == "function" ? (...e) => n(r(...e)) : n(r), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, t));- }-}, SS = (e, t) => e?.suspense && t.isPending, CS = (e, t, n) => t.fetchOptimistic(e).catch(() => {- n.clearReset();-});-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useQueries.js-function wS({ queries: e, ...t }, n) {- let r = uS(n), i = pS(), a = gS(), o = t.subscribed !== !1, s = B.useMemo(() => e.map((e) => {- let t = r.defaultQueryOptions(e);- return t._optimisticResults = i ? "isRestoring" : o ? "optimistic" : void 0, t;- }), [- e,- r,- i,- o- ]);- s.forEach((e) => {- xS(e);- let t = r.getQueryCache().get(e.queryHash);- _S(e, a, t);- }), vS(a);- let [c] = B.useState(() => new _(r, s, t)), [l, u, d] = c.getOptimisticResult(s, t.combine), f = !i && o;- B.useSyncExternalStore(B.useCallback((e) => f ? c.subscribe(x.batchCalls(e)) : b, [c, f]), () => c.getCurrentResult(), () => c.getCurrentResult()), B.useEffect(() => {- c.setQueries(s, t);- }, [- s,- t,- c- ]);- let p = l.some((e, t) => SS(s[t], e)) ? l.flatMap((e, t) => {- let n = s[t];- return n && SS(n, e) ? CS(n, new v(r, n), a) : [];- }) : [];- if (p.length > 0) throw Promise.all(p);- let m = l.find((e, t) => {- let n = s[t];- return n && yS({- result: e,- errorResetBoundary: a,- throwOnError: n.throwOnError,- query: r.getQueryCache().get(n.queryHash),- suspense: n.suspense- });- });- if (m) throw m.error;- return u(d());-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useBaseQuery.js-function TS(e, t, n) {- let r = pS(), i = gS(), a = uS(n), o = a.defaultQueryOptions(e), s = a.getQueryCache().get(o.queryHash), c = e.subscribed !== !1;- o._optimisticResults = r ? "isRestoring" : c ? "optimistic" : void 0, xS(o), _S(o, i, s), vS(i);- let [l] = B.useState(() => new t(a, o)), u = l.getOptimisticResult(o), d = !r && c;- if (B.useSyncExternalStore(B.useCallback((e) => {- let t = d ? l.subscribe(x.batchCalls(e)) : b;- return l.updateResult(), t;- }, [l, d]), () => l.getCurrentResult(), () => l.getCurrentResult()), B.useEffect(() => {- l.setOptions(o);- }, [o, l]), SS(o, u)) throw CS(o, l, i);- if (yS({- result: u,- errorResetBoundary: i,- throwOnError: o.throwOnError,- query: s,- suspense: o.suspense- })) throw u.error;- return o.notifyOnChangeProps ? u : l.trackResult(u);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useQuery.js-function ES(e, t) {- return TS(e, v, t);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js-function Vne(e, t) {- return TS({- ...e,- enabled: !0,- suspense: !0,- throwOnError: bS,- placeholderData: void 0- }, v, t);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js-function Hne(e, t) {- return TS({- ...e,- enabled: !0,- suspense: !0,- throwOnError: bS,- placeholderData: void 0- }, h, t);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js-function Une(e, t) {- return wS({- ...e,- queries: e.queries.map((e) => ({- ...e,- suspense: !0,- throwOnError: bS,- enabled: !0,- placeholderData: void 0- }))- }, t);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/usePrefetchQuery.js-function Wne(e, t) {- let n = uS(t);- n.getQueryState(e.queryKey) || n.query(e).catch(b);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/usePrefetchInfiniteQuery.js-function Gne(e, t) {- let n = uS(t);- n.getQueryState(e.queryKey) || n.infiniteQuery(e).catch(b);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/queryOptions.js-function Kne(e) {- return e;-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/infiniteQueryOptions.js-function qne(e) {- return e;-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useIsFetching.js-function Jne(e, t) {- let n = uS(t), r = n.getQueryCache();- return B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => n.isFetching(e), () => n.isFetching(e));-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useMutationState.js-function Yne(e, t) {- let n = uS(t);- return OS({ filters: {- ...e,- status: "pending"- } }, n).length;-}-function DS(e, t) {- return e.findAll(t.filters).map((e) => t.select ? t.select(e) : e.state);-}-function OS(e = {}, t) {- let n = uS(t).getMutationCache(), r = B.useRef(e), i = B.useRef(null);- return i.current === null && (i.current = DS(n, e)), B.useEffect(() => {- r.current = e;- }), B.useSyncExternalStore(B.useCallback((e) => n.subscribe(() => {- let t = S(i.current, DS(n, r.current));- i.current !== t && (i.current = t, x.schedule(e));- }), [n]), () => i.current, () => i.current);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useMutation.js-function kS(e, t) {- let n = uS(t), [r] = B.useState(() => new g(n, e));- B.useEffect(() => {- r.setOptions(e);- }, [r, e]);- let i = B.useSyncExternalStore(B.useCallback((e) => r.subscribe(x.batchCalls(e)), [r]), () => r.getCurrentResult(), () => r.getCurrentResult()), a = B.useCallback((...e) => {- r.mutate(e[0], e[1]).catch(b);- }, [r]);- if (i.error && C(r.options.throwOnError, [i.error])) throw i.error;- return {- ...i,- mutate: a,- mutateAsync: i.mutate- };-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/mutationOptions.js-function Xne(e) {- return e;-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js-function AS(e, t) {- return TS(e, h, t);-}-//#endregion-//#region node_modules/@tanstack/react-query/build/modern/index.js-var jS = /* @__PURE__ */ St({- HydrationBoundary: () => Rne,- IsRestoringProvider: () => zne,- QueryClientContext: () => lS,- QueryClientProvider: () => dS,- QueryErrorResetBoundary: () => Bne,- infiniteQueryOptions: () => qne,- mutationOptions: () => Xne,- queryOptions: () => Kne,- useInfiniteQuery: () => AS,- useIsFetching: () => Jne,- useIsMutating: () => Yne,- useIsRestoring: () => pS,- useMutation: () => kS,- useMutationState: () => OS,- usePrefetchInfiniteQuery: () => Gne,- usePrefetchQuery: () => Wne,- useQueries: () => wS,- useQuery: () => ES,- useQueryClient: () => uS,- useQueryErrorResetBoundary: () => gS,- useSuspenseInfiniteQuery: () => Hne,- useSuspenseQueries: () => Une,- useSuspenseQuery: () => Vne-});-import * as Zne from "/dist/peach-ui.js";-wt(jS, Zne);-/* istanbul ignore file */-//#endregion-//#region src/api.ts-var MS = class extends Error {- status;- body;- constructor(e, t, n = null) {- super(ye(e, t)), this.name = "ApiError", this.status = t, this.body = n;- }-}, NS = (e) => {- if (!e || typeof e != "object") return "";- let t = e;- for (let e of [- "message",- "detail",- "error"- ]) {- let n = t[e];- if (typeof n == "string" && n) return n;- }- return "";-}, W = (e) => ye(e);-async function G(e, t) {- let n = await fetch(e, {- headers: { Accept: "application/json" },- credentials: "same-origin",- ...t ? { signal: t } : {}- }), r = null;- try {- r = await n.json();- } catch {}- if (!n.ok) throw new MS(NS(r) || `请求失败(${n.status})`, n.status);- return r;-}-async function K(e, t, n = "POST", r) {- let i = await fetch(e, {- method: n,- ...r ? { signal: r } : {},- headers: {- Accept: "application/json",- "Content-Type": "application/json"- },- credentials: "same-origin",- body: JSON.stringify(t)- }), a = null;- try {- a = await i.json();- } catch {}- if (!i.ok) throw new MS(NS(a) || `请求失败(${i.status})`, i.status, a);- return a;-}-//#endregion-//#region src/player/host.ts-var PS = null;-function Qne(e) {- PS = e;-}-function FS() {- if (!PS) throw Error("播放器还没有接上宿主(configurePlayer)");- return PS;-}-//#endregion-//#region src/player/menu.ts-var IS = null;-function $ne(e) {- IS = e;-}-function ere() {- let e = document.getElementById("playerMenu");- return e || (e = document.createElement("div"), e.className = "popmenu", e.setAttribute("data-player-context-menu", ""), e.id = "playerMenu", e.setAttribute("role", "menu"), e.setAttribute("aria-label", "播放器菜单"), e.hidden = !0, document.body.append(e)), e;-}-var LS = null, RS = (e, t) => t ? e.replace("<svg", `<svg ${t}=""`) : e;-function zS() {- let e = document.getElementById("playerMenu");- e?.matches(":popover-open") && e.hidePopover(), e && e.parentElement !== document.body && document.body.append(e), e && De(e, () => {- e.innerHTML = "";- }), LS &&= (LS(), null);-}-async function tre(e) {- try {- return await navigator.clipboard.writeText(e), !0;- } catch {- let t = document.createElement("textarea");- t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.opacity = "0", document.body.append(t), t.select();- let n = !1;- try {- n = document.execCommand("copy");- } catch {}- return t.remove(), n;- }-}-function nre(e) {- let t = !!IS?.inMiniplayer(e), n = e.peachItem, r = IS?.kind(e) ?? "item", i = (t) => {- let i = new URL(r === "follow" ? `/follow/item/${n?.id}` : `/item/${n?.id}`, location.origin);- return t && i.searchParams.set("t", String(Math.floor(e.currentTime() || 0))), i.href;- }, a = (e, t) => {- tre(i(e)).then((e) => FS().toast(e ? t : "复制失败,请手动复制地址栏", {- timeout: 4e3,- warn: !e- }));- }, o = [{- icon: "repeat",- label: "循环播放",- checked: !!e.loop(),- run: () => e.loop(!e.loop())- }, t ? {- icon: "maximize-2",- label: "展开",- run: () => IS?.expand()- } : {- icon: "picture-in-picture-2",- label: "迷你播放器",- run: () => IS?.toMiniplayer()- }];- document.pictureInPictureEnabled && o.push({- icon: "player-pip",- fill: !0,- label: "画中画",- run: () => e.el().querySelector(".vjs-picture-in-picture-control")?.click()- }), o.push({- icon: "link",- label: "复制视频网址",- run: () => a(!1, "已复制视频网址")- }), o.push({- icon: "link",- label: "复制当前时间的视频网址",- run: () => a(!0, "已复制当前时间的视频网址")- });- let s = document.getElementById("playerStatsBtn");- return !t && s && !s.hidden && o.push({- icon: "chart",- label: "播放统计",- run: () => s.click()- }), o;-}-function rre(e, t, n) {- let r = ere();- zS();- let i = FS().stage();- i instanceof HTMLDialogElement && i.open && i.append(r), r.setAttribute("popover", "manual");- let a = nre(e);- r.innerHTML = a.map((e, t) => {- let n = e.checked !== void 0;- return `<button type="button" role="${n ? "menuitemcheckbox" : "menuitem"}"${n ? ` aria-checked="${e.checked}"` : ""} data-player-menu="${t}">${RS(R(e.icon), e.fill ? "data-player-menu-fill" : "")}<span>${L(e.label)}</span>${n ? RS(R("check"), "data-player-menu-check") : ""}</button>`;- }).join(""), ze(r), r.showPopover(), r.style.left = `${Math.max(8, Math.min(t, innerWidth - r.offsetWidth - 8))}px`, r.style.top = `${Math.max(8, Math.min(n, innerHeight - r.offsetHeight - 8))}px`;- let o = [...r.querySelectorAll("[data-player-menu]")];- o.forEach((e) => {- e.onclick = (t) => {- t.stopPropagation();- let n = a[Number(e.dataset.playerMenu)];- zS(), n?.run();- };- });- let s = (e) => {- r.contains(e.target) || zS();- }, c = (e) => {- if (e.key === "Escape") {- e.preventDefault(), e.stopPropagation(), zS();- return;- }- if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;- e.preventDefault();- let t = o.indexOf(document.activeElement);- o[(t + (e.key === "ArrowDown" ? 1 : -1) + o.length) % o.length]?.focus();- }, l = (t) => {- Ve(t, e.el()) && zS();- };- setTimeout(() => {- document.addEventListener("pointerdown", s, !0), document.addEventListener("keydown", c, !0), window.addEventListener("scroll", l, {- capture: !0,- passive: !0- });- }, 0), LS = () => {- document.removeEventListener("pointerdown", s, !0), document.removeEventListener("keydown", c, !0), window.removeEventListener("scroll", l, !0);- }, o[0]?.focus();-}-function ire(e) {- e.el().addEventListener("contextmenu", (t) => {- t.target.closest(".vjs-peach-settings-menu") || (t.preventDefault(), rre(e, t.clientX, t.clientY));- }), e.on("dispose", zS);-}-//#endregion-//#region src/player/registry.ts-var BS = null, VS = () => BS;-function HS(e) {- BS = e;-}-function US(e) {- !e || e.isDisposed() || requestAnimationFrame(() => {- e.isDisposed() || e.trigger("resize");- });-}-//#endregion-//#region src/player/stats.ts-function WS(e) {- let t = e.currentTime || 0;- for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t && e.buffered.end(n) >= t) return Math.max(0, e.buffered.end(n) - t);- return 0;-}-function are(e) {- let t = e.currentTime || 0;- for (let n = 0; n < e.buffered.length; n++) if (e.buffered.start(n) <= t + .25 && e.buffered.end(n) >= t) return e.buffered.end(n);- return e.buffered.length ? e.buffered.end(e.buffered.length - 1) : 0;-}-var GS = 3e3;-function KS(e, t) {- let n = Number(e) || 0, r = ve(t) || 0;- return n > 0 && r > 0 ? n * 8 / r : 0;-}-function ore(e) {- let t = [], n = null, r = 0, i = 0;- return {- bitrate: Number(e) || 0,- get bits() {- return i;- },- get seconds() {- return r;- },- bytes() {- return this.bitrate > 0 ? r * this.bitrate / 8 : 0;- },- sample(e) {- if (!e) return i;- let a = performance.now(), o = are(e), s = e.currentTime || 0;- if (n) {- let e = (a - n.at) / 1e3, i = Math.abs(s - n.ct) > e * 4 + 1, c = o - n.frontier;- !i && c > 0 && (r += c), e * 1e3 > GS * 2 && (t.length = 0);- }- for (n = {- at: a,- frontier: o,- ct: s- }, t.push({- at: a,- advanced: r- }); t.length > 2 && a - t[0].at > GS;) t.shift();- let c = t[0], l = (a - c.at) / 1e3, u = r - c.advanced;- return l >= .5 && u > 0 && this.bitrate > 0 && (i = u * this.bitrate / l), i;- }- };-}-var qS = 24;-function JS(e, t) {- e.push(Number.isFinite(t) && t > 0 ? t : 0), e.length > qS && e.splice(0, e.length - qS);-}-var YS = "peach-player-panel";-function XS(e, t, n, r) {- let i = [...Array(Math.max(0, qS - e.length)).fill(null), ...e], a = Math.max(1, n || 0), o = i.map((e) => {- if (e === null) return "<i aria-hidden=\"true\"></i>";- let n = e <= 0 ? 0 : Math.max(.08, Math.min(1, e / a));- return `<i data-bar="${t === "buffer" ? e < 5 ? "low" : e < 15 ? "mid" : "good" : "on"}" style="height:${(n * 100).toFixed(1)}%" aria-hidden="true"></i>`;- }).join("");- return `<span data-player-stats-plot="${t}" role="img" aria-label="${L(r)}">${o}</span>`;-}-function sre() {- return `<button data-player-stats-button="" id="playerStatsBtn" aria-label="播放统计" title="播放统计" aria-pressed="false" hidden>${R("chart")}</button>- <div data-player-net="" id="playerNet" role="status" aria-live="polite" hidden></div>- <div data-player-stats="" id="playerStats" role="status" hidden></div>`;-}-function ZS(e, t = "") {- let n = t ? encodeURIComponent(t) : "";- return performance.getEntriesByType("resource").filter((t) => t.name.includes("/stream") && (t.name.includes(`/stream?id=${e}`) || t.name.includes(`/stream/hls/${e}/`)) && (!n || t.name.includes(`session=${n}`)));-}-function QS(e, t = "") {- let n = ZS(e, t), r = n.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), i = n.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;- return r > 0 && i > 0 ? r * 8 / i : 0;-}-function $S(e, t, n = "", r = null) {- let i = 0;- try {- i = Number(e?.tech({ IWillNotUseThisInPlugins: !0 })?.vhs?.stats?.bandwidth) || 0;- } catch {}- return i > 0 ? i : r ? Number(r.bits) || 0 : QS(t, n);-}-function eC(e) {- if (!Number.isFinite(e) || e <= 0) return "加载中…";- let t = e / 8;- return t >= 1048576 ? `${(t / 1048576).toFixed(1)} MB/s` : `${Math.max(1, Math.round(t / 1024))} KB/s`;-}-function cre(e, t) {- return e > 0 ? eC(e) : t > 0 ? `已缓冲 ${Math.round(t)} 秒` : eC(0);-}-//#endregion-//#region src/player/controls.ts-function tC(e, t, n = "") {- if (!e) return () => {};- let r = e.querySelector(":scope>.vjs-peach-tooltip");- r || (r = document.createElement("span"), r.className = "vjs-peach-tooltip", r.setAttribute("role", "tooltip"), r.innerHTML = "<span class=\"vjs-peach-tooltip-text\"></span><kbd hidden></kbd>", e.append(r));- let i = r.querySelector(".vjs-peach-tooltip-text"), a = r.querySelector("kbd");- n && e.setAttribute("aria-keyshortcuts", n);- let o = (r = t, o = "") => {- i.textContent = r, a.textContent = n, a.hidden = !n, e.setAttribute("aria-label", o || r), e.removeAttribute("title");- };- return o(), o;-}-function lre(e, t = !0) {- let n = FS(), r = n.settings();- r.ambientMode = !!e, t && n.saveSettings(), n.stage()?.toggleAttribute("data-ambient", r.ambientMode), document.dispatchEvent(new CustomEvent("peachambientchange", { detail: { enabled: r.ambientMode } }));-}-var nC = /* @__PURE__ */ new WeakMap();-function rC(e) {- if (!e) return;- let t = FS().settings().theaterMode;- e.setAttribute("aria-pressed", String(t)), e.querySelector("use")?.setAttribute("href", t ? "#i-theater-exit" : "#i-theater-enter"), nC.get(e)?.(t ? "默认视图" : "影院模式");-}-function iC(e, t = !0) {- let n = FS(), r = n.settings();- r.theaterMode = !!e, t && n.saveSettings();- let i = n.stage();- i?.toggleAttribute("data-theater", r.theaterMode), rC(i?.querySelector("[data-player-theater]")), US(VS());-}-function ure(e) {- let t = FS().stage(), n = t?.querySelector("[data-ambient-canvas]");- if (!t || !n) return () => {};- let r = n.getContext("2d", { alpha: !1 });- if (!r) return () => {};- let i = !1, a = 0, o = 0, s = null, c = () => {- s = null, r.clearRect(0, 0, n.width, n.height), t.style.removeProperty("--video-glow");- }, l = () => {- if (!(e.readyState < 2)) try {- r.drawImage(e, 0, 0, n.width, n.height);- let i = r.getImageData(0, 0, n.width, n.height).data, a = 0, o = 0, c = 0, l = 0;- for (let e = 0; e < i.length; e += 16) a += i[e], o += i[e + 1], c += i[e + 2], l++;- if (l) {- let e = [- Math.round(a / l),- Math.round(o / l),- Math.round(c / l)- ];- (!s || e.some((e, t) => Math.abs(e - s[t]) >= 6)) && (s = e, t.style.setProperty("--video-glow", `rgb(${e.join(" ")})`));- }- } catch {}- }, u = (t) => {- e.requestVideoFrameCallback ? e.requestVideoFrameCallback((e) => d(t, e)) : requestAnimationFrame((e) => d(t, e));- }, d = (t, n) => {- if (!(i || t !== o)) {- if (!FS().settings().ambientMode) {- c();- return;- }- e.paused || (!document.hidden && n - a > 480 && (a = n, l()), u(t));- }- }, f = () => {- i || !FS().settings().ambientMode || (l(), e.paused || u(++o));- }, p = (e) => {- let n = !!e.detail.enabled;- t.toggleAttribute("data-ambient", n), n ? f() : (o++, c());- };- return document.addEventListener("peachambientchange", p), e.addEventListener("play", f), e.addEventListener("loadeddata", f), f(), () => {- i = !0, o++, document.removeEventListener("peachambientchange", p), e.removeEventListener("play", f), e.removeEventListener("loadeddata", f), c();- };-}-function dre(e, t, n = 0, r = null) {- let i = e.getChild("controlBar")?.el();- if (!i || i.querySelector("[data-player-quality]")) return;- let a = document.createElement("div");- a.className = "vjs-peach-settings vjs-control", a.dataset.playerQuality = "", a.innerHTML = `<button type="button" class="vjs-peach-settings-toggle" aria-label="播放器设置" aria-expanded="false">- ${R("settings")}<span data-player-quality-badge hidden></span></button>- <div class="vjs-peach-settings-menu" role="menu" aria-label="播放器设置" aria-hidden="true"></div>`;- let o = i.querySelector(".vjs-fullscreen-control");- i.insertBefore(a, o || null);- let s = a.querySelector("button"), c = a.querySelector("[data-player-quality-badge]");- tC(s, "设置");- let l = a.querySelector(".vjs-peach-settings-menu"), u = typeof e.qualityLevels == "function" ? e.qualityLevels() : null, d = r, f = "auto", p = (e, t) => {- let n = [Number(e), Number(t)].filter((e) => e > 0);- return n.length ? Math.min(...n) : 0;- }, m = () => {- let e = [];- if (u?.length) {- u.length > 1 && e.push({- key: "auto",- label: "自动",- pixels: 0- });- for (let n = 0; n < u.length; n++) {- let r = u[n], i = p(r.width, r.height) || (u.length === 1 ? p(t.videoWidth, t.videoHeight) : 0);- e.push({- key: String(n),- label: i ? `${i}p` : u.length === 1 ? "当前画质" : `线路 ${n + 1}`,- pixels: i- });- }- return e;- }- if (d?.length) return d.map((e) => ({- key: `h${e.height}`,- label: e.label || `${e.height}p`,- pixels: e.height- }));- let r = p(t.videoWidth, t.videoHeight) || Number(n) || 0;- return [{- key: "original",- label: r ? `${r}p` : "原画",- pixels: r- }];- }, h = () => {- let e = m(), n = e.find((e) => e.key === f) || e[0], r = u?.[u.selectedIndex ?? -1], i = n.key === "auto" ? p(r?.width, r?.height) || p(t.videoWidth, t.videoHeight) : n.pixels;- return c.textContent = i >= 2160 ? "4K" : i >= 720 ? "HD" : "", c.hidden = !c.textContent, {- options: e,- active: n- };- }, g = () => l.getAttribute("aria-hidden") !== "true", _ = (e) => {- l.setAttribute("aria-hidden", String(!e)), s.setAttribute("aria-expanded", String(e)), e && document.dispatchEvent(new CustomEvent(YS, { detail: "settings" }));- }, v = () => _(!1), y = (e) => {- e.detail !== "settings" && v();- };- document.addEventListener(YS, y);- let b = null, x = (e, t) => {- let n = l.querySelector(".vjs-peach-panel"), r = document.createElement("div");- if (r.className = "vjs-peach-panel", r.innerHTML = e, !n || !t || !g()) return l.replaceChildren(r), l.style.height = "", r;- b &&= (clearTimeout(b), null);- let i = l.getBoundingClientRect().height;- n.classList.add("vjs-peach-panel-leaving"), r.classList.add(t > 0 ? "vjs-peach-panel-animate-forward" : "vjs-peach-panel-animate-back"), l.append(r), l.style.height = `${i}px`;- let a = r.scrollHeight;- return requestAnimationFrame(() => {- l.classList.add("vjs-peach-popup-animating"), l.style.height = `${a}px`, r.classList.remove("vjs-peach-panel-animate-forward", "vjs-peach-panel-animate-back"), n.classList.add(t > 0 ? "vjs-peach-panel-animate-back" : "vjs-peach-panel-animate-forward"), b = setTimeout(() => {- b = null, n.remove(), l.classList.remove("vjs-peach-popup-animating"), l.style.height = "";- }, 250);- }), r;- }, S = (e, t) => e.querySelector(t), C = (t = 0) => {- let { active: n } = h(), r = Number(e.playbackRate()) || 1, i = x(`<div class="vjs-peach-panel-menu"><button type="button" class="vjs-peach-menu-row" role="menuitemcheckbox" data-player-ambient aria-checked="${FS().settings().ambientMode}">- ${R("player-ambient")}<span>氛围模式</span><i class="vjs-peach-switch" aria-hidden="true"></i></button>- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-speed>${R("player-speed")}<span>播放速度</span><b>${r === 1 ? "正常" : `${r}×`}</b>${R("player-menu-next")}</button>- <button type="button" class="vjs-peach-menu-row" role="menuitem" data-player-quality-view>${R("player-quality")}<span>清晰度</span><b>${L(n.label)}</b>${R("player-menu-next")}</button></div>`, t);- S(i, "[data-player-ambient]").onclick = () => {- lre(!FS().settings().ambientMode), C();- }, S(i, "[data-player-speed]").onclick = () => D(), S(i, "[data-player-quality-view]").onclick = () => O();- }, w = .05, T = [- 1,- 1.25,- 1.5,- 2,- 3- ], E = (e) => Number.isInteger(e) ? e.toFixed(1) : String(e), D = (t = 1) => {- let n = .25, r = (e) => Math.min(3, Math.max(n, Number(e.toFixed(2)))), i = x(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>播放速度</strong></div>- <div class="vjs-peach-speed-panel"><div class="vjs-peach-speed-display"><output data-player-speed-display></output></div>- <div class="vjs-peach-speed-slider"><button type="button" class="vjs-peach-speed-button" data-player-speed-step="-1" aria-label="播放速度减 0.05">${R("minus")}</button>- <input type="range" class="vjs-peach-speed-range" data-player-speed-range min="${n}" max="3" step="${w}" aria-label="播放速度">- <button type="button" class="vjs-peach-speed-button" data-player-speed-step="1" aria-label="播放速度加 0.05">${R("plus")}</button></div>- <div class="vjs-peach-speed-chips">${T.map((e) => `<span class="vjs-peach-speed-preset"><button type="button" class="vjs-peach-speed-button" data-player-speed-option="${e}" aria-pressed="false">${E(e)}</button>${e === 1 ? "<span class=\"vjs-peach-speed-preset-label\">正常</span>" : ""}</span>`).join("")}</div></div>`, t), a = i.querySelector("[data-player-speed-display]"), o = i.querySelector("[data-player-speed-range]"), s = r(Number(e.playbackRate()) || 1), c = () => {- a.textContent = `${s.toFixed(2)}x`, o.value = String(s), o.style.setProperty("--peach-speed-percent", `${(s - n) / 2.75 * 100}%`), i.querySelectorAll("[data-player-speed-option]").forEach((e) => e.setAttribute("aria-pressed", String(Number(e.dataset.playerSpeedOption) === s)));- }, l = (t) => {- s = r(t), e.playbackRate(s), c();- };- S(i, "[data-player-menu-back]").onclick = () => C(-1), o.oninput = () => l(Number(o.value)), i.querySelectorAll("[data-player-speed-step]").forEach((e) => {- e.onclick = () => l(s + Number(e.dataset.playerSpeedStep) * w);- }), i.querySelectorAll("[data-player-speed-option]").forEach((e) => {- e.onclick = () => l(Number(e.dataset.playerSpeedOption));- }), c();- }, O = (n = 1) => {- let { options: r, active: i } = h(), a = x(`<div class="vjs-peach-panel-header"><button type="button" class="vjs-peach-menu-back" data-player-menu-back aria-label="返回上一个菜单">${R("player-menu-back")}</button><strong>清晰度</strong></div><div class="vjs-peach-panel-menu">${r.map((e) => `<button type="button" class="vjs-peach-menu-option" role="menuitemradio" data-player-quality-option="${L(e.key)}" aria-checked="${e.key === i.key}"><span class="vjs-peach-option-check">${e.key === i.key ? R("player-option-check") : ""}</span><span class="vjs-peach-option-label">${L(e.label)}</span></button>`).join("")}</div>`, n);- S(a, "[data-player-menu-back]").onclick = () => C(-1), a.querySelectorAll("[data-player-quality-option]").forEach((n) => {- n.onclick = () => {- if (f = n.dataset.playerQualityOption || "auto", u?.length) for (let e = 0; e < u.length; e++) u[e].enabled = f === "auto" || f === String(e);- if (d?.length && f.startsWith("h")) {- let n = f.slice(1), r = e.currentTime() || 0, i = !e.paused(), a = new URL(e.currentSrc() || t.src, location.origin);- a.searchParams.set("quality", n), e.src({- src: a.pathname + a.search,- type: "video/mp4"- }), e.one("loadedmetadata", () => {- r > 0 && e.currentTime(r), i && e.play()?.catch(() => {});- });- }- C(-1);- };- });- };- s.onclick = (e) => {- e.stopPropagation();- let t = !g();- t && C(), _(t);- };- let k = (e) => {- a.contains(e.target) || v();- };- return document.addEventListener("pointerdown", k), a.addEventListener("keydown", (e) => {- e.key === "Escape" && (v(), s.focus());- }), t.addEventListener("loadedmetadata", () => {- g() ? C() : h();- }), t.addEventListener("resize", () => {- g() ? C() : h();- }), u?.on?.([- "addqualitylevel",- "removequalitylevel",- "change"- ], () => {- g() ? C() : h();- }), e.on("dispose", () => {- document.removeEventListener("pointerdown", k), document.removeEventListener(YS, y), b && clearTimeout(b);- }), h(), fre(e, a), pre(e), (e) => {- d = e?.length ? e : null, g() ? C() : h();- };-}-function fre(e, t) {- let n = e.getChild("controlBar")?.el();- if (!n || n.querySelector("[data-player-theater]")) return;- let r = FS().settings().theaterMode, i = document.createElement("div");- i.className = "vjs-peach-theater vjs-control", i.innerHTML = `<button type="button" data-player-theater aria-pressed="${r}">${R(r ? "theater-exit" : "theater-enter")}</button>`, n.insertBefore(i, t.nextSibling);- let a = i.querySelector("button");- nC.set(a, tC(a, "影院模式", "T")), rC(a), a.onclick = (e) => {- e.stopPropagation(), iC(!FS().settings().theaterMode);- };-}-function pre(e) {- let t = e.getChild("controlBar")?.el();- if (!t || t.querySelector(".vjs-peach-right-controls")) return;- let n = t.querySelector(":scope>.vjs-play-control");- n && !n.querySelector(":scope>.vjs-peach-hover") && n.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>");- let r = (e, t) => e ? (e.dataset.peachExplicitIcon = "", e.insertAdjacentHTML("beforeend", R(t, "vjs-peach-control-icon")), e.querySelector(":scope>.vjs-peach-control-icon use")) : null, i = (e, t) => {- if (!e) return null;- let n = document.getElementById(`i-${t}`);- if (!n) return null;- e.dataset.peachExplicitIcon = "";- let r = document.createElementNS("http://www.w3.org/2000/svg", "svg");- return r.setAttribute("viewBox", n.getAttribute("viewBox") || ""), r.setAttribute("aria-hidden", "true"), r.setAttribute("class", "vjs-peach-control-icon vjs-peach-morph-icon"), r.innerHTML = n.innerHTML, e.append(r), r;- }, a = (e) => [...document.getElementById(`i-${e}`)?.querySelectorAll("path") || []], o = i(n, "player-play")?.querySelector("path"), s = a("player-play")[0]?.getAttribute("d") || "", c = a("player-pause")[0]?.getAttribute("d") || "", l = tC(n, "播放", "K"), u = CSS.supports("d", "path(\"M0 0\")"), d = () => {- let t = e.paused() || e.ended(), n = t ? s : c;- o && (u ? o.style.setProperty("d", `path("${n}")`) : o.setAttribute("d", n)), l(t ? "播放" : "暂停");- };- e.on([- "play",- "pause",- "ended"- ], d), d();- let f = t.querySelector(":scope>.vjs-volume-panel"), p = f?.querySelector(":scope>.vjs-mute-control"), m = i(p, "player-volume");- m && a("player-volume-muted").forEach((e) => m.append(e.cloneNode(!0)));- let h = tC(p, "静音", "M"), g = () => {- let t = e.muted() || e.volume() === 0;- m && (m.dataset.silent = String(t), m.dataset.loud = String(!t && e.volume() > .5)), h(t ? "取消静音" : "静音");- };- e.on("volumechange", g), g();- let _ = document.createElement("div");- _.className = "vjs-peach-bezel", _.setAttribute("role", "status"), _.hidden = !0, _.innerHTML = `<span class="vjs-peach-bezel-icon">${R("player-play")}</span>`;- let v = _.querySelector("use"), y = null, b = (e, t) => {- v?.setAttribute("href", `#i-${e}`), _.setAttribute("aria-label", t), _.hidden = !1, _.classList.remove("vjs-peach-bezel-run"), _.offsetWidth, _.classList.add("vjs-peach-bezel-run"), y && clearTimeout(y), y = setTimeout(() => {- _.hidden = !0, _.classList.remove("vjs-peach-bezel-run");- }, 1e3);- };- e.el().insertBefore(_, t), e.el().addEventListener("click", (t) => {- let n = t.target;- if (n.closest(".vjs-mute-control")) {- let t = e.muted() || e.volume() === 0;- b(t ? "player-volume" : "player-volume-muted", t ? "取消静音" : "静音");- } else if (n.closest(".vjs-play-control,.vjs-tech,.vjs-poster")) {- let t = e.paused() || e.ended();- b(t ? "player-play" : "player-pause", t ? "播放" : "暂停");- }- }, !0), e.on("dispose", () => {- y && clearTimeout(y);- });- let x = document.createElement("button"), S = !1;- x.type = "button", x.className = "vjs-peach-time vjs-control", x.dataset.playerTime = "", x.innerHTML = "<span class=\"vjs-peach-time-text\"></span>";- let C = x.querySelector(".vjs-peach-time-text"), w = tC(x, "显示剩余时间"), T = () => {- let t = Math.max(0, Number(e.currentTime()) || 0), n = Math.max(0, Number(e.duration()) || 0), r = de(Math.max(0, n - t));- C.textContent = `${S ? `-${r}` : de(t)} / ${de(n)}`, x.dataset.remaining = String(S), w(S ? "显示已播放时间" : "显示剩余时间", S ? `剩余 ${r},总时长 ${de(n)};点击显示已播放时间` : `已播放 ${de(t)},总时长 ${de(n)};点击显示剩余时间`);- };- x.onclick = (e) => {- e.stopPropagation(), S = !S, T();- }, e.on([- "timeupdate",- "durationchange",- "loadedmetadata"- ], T), T(), f ? f.insertAdjacentElement("afterend", x) : t.append(x);- let E = t.querySelector(":scope>.vjs-picture-in-picture-control");- r(E, "player-pip");- let D = tC(E, "画中画");- e.on(["enterpictureinpicture", "leavepictureinpicture"], () => D(document.pictureInPictureElement ? "退出画中画" : "画中画"));- let O = t.querySelector(":scope>.vjs-fullscreen-control"), k = r(O, "player-fullscreen-enter"), A = tC(O, "全屏", "F"), j = () => {- let t = !!e.isFullscreen();- e.el().toggleAttribute("data-peach-fullscreen", t), k?.setAttribute("href", t ? "#i-player-fullscreen-exit" : "#i-player-fullscreen-enter"), A(t ? "退出全屏" : "全屏"), US(e);- };- e.on([- "fullscreenchange",- "enterFullWindow",- "exitFullWindow"- ], j), j();- let M = [- E,- t.querySelector(":scope>.vjs-peach-settings"),- t.querySelector(":scope>.vjs-peach-theater"),- O- ].filter((e) => !!e);- if (!M.length) return;- let N = document.createElement("div");- N.className = "vjs-peach-right-controls", N.setAttribute("aria-label", "播放器视图控制"), t.insertBefore(N, M[0]), M.forEach((e) => {- e.insertAdjacentHTML("beforeend", "<span class=\"vjs-peach-hover\" aria-hidden=\"true\"></span>"), N.append(e);- });- let P = document.createElement("div");- P.className = "vjs-peach-expand vjs-control", P.innerHTML = `<button type="button" data-player-expand aria-expanded="false">${R("player-expand")}</button><span class="vjs-peach-hover" aria-hidden="true"></span>`, N.prepend(P);- let ee = P.querySelector("button"), F = tC(ee, "展开控件"), I = (t) => {- e.el().classList.toggle("vjs-peach-right-expanded", t), ee.setAttribute("aria-expanded", String(t)), F(t ? "收起控件" : "展开控件");- };- ee.onclick = (t) => {- t.stopPropagation(), I(!e.el().classList.contains("vjs-peach-right-expanded"));- };- let te = () => {- let t = e.el(), n = t.clientWidth < 528;- t.style.setProperty("--peach-player-h", `${t.clientHeight}px`), t.classList.toggle("vjs-peach-xsmall", n), n || I(!1);- }, ne = new ResizeObserver(te);- ne.observe(e.el()), e.on("dispose", () => ne.disconnect()), I(!1), te();-}-function mre(e, t, n = {}) {- let r = e.getChild("controlBar")?.el()?.querySelector(".vjs-progress-control");- if (!r || r.querySelector("[data-player-seek-preview]")) return;- let i = n.thumbnail !== !1, a = document.createElement("div");- a.className = "vjs-peach-seek-preview", a.dataset.playerSeekPreview = "", a.hidden = !0, a.innerHTML = `${i ? "<i class=\"vjs-peach-seek-frame\" hidden><img alt=\"\"></i>" : ""}<span class="mono">0:00</span>`, r.append(a);- let o = a.querySelector(".vjs-peach-seek-frame"), s = a.querySelector("img"), c = a.querySelector("span"), l = null, u = "";- o && t.id && ce(`/api/timeline?id=${encodeURIComponent(t.id)}`).then((e) => {- e && e.frames > 0 && e.interval > 0 && (l = e);- }).catch(() => {});- let d = (e, n, r, i) => {- let a = n.columns || 10, o = a * (n.rows || 10), s = Math.min(n.frames - 1, Math.max(0, Math.floor(e / n.interval))), c = Math.floor(s / o), l = s % o, d = Math.ceil(Math.min(o, n.frames - c * o) / a), f = `/timeline?id=${encodeURIComponent(t.id)}&s=${c}`;- f !== u && (u = f, i.src = f), r.hidden = !1, t.width && t.height && (r.style.aspectRatio = `${t.width} / ${t.height}`), i.style.objectFit = "fill", i.style.width = `${a * 100}%`, i.style.height = `${d * 100}%`, i.style.left = `${-(l % a) * 100}%`, i.style.top = `${-Math.floor(l / a) * 100}%`;- }, f = -1, p = (n) => {- if (n.pointerType === "touch") return;- let i = ve(e.duration()) || ve(t.duration);- if (!i) return;- let u = r.getBoundingClientRect(), p = Math.min(1, Math.max(0, (n.clientX - u.left) / u.width)), m = o ? Math.min(240, Math.max(160, u.width * .28)) : 76, h = Math.min(u.width - m / 2, Math.max(m / 2, n.clientX - u.left));- if (a.style.left = `${h}px`, a.hidden = !1, c.textContent = de(i * p), !o || !s) return;- if (l) {- d(i * p, l, o, s);- return;- }- let g = Math.min(8, Math.floor(p * 9));- g !== f && (f = g, o.hidden = !1, s.removeAttribute("style"), s.src = `/poster?id=${encodeURIComponent(t.id)}&c=${g}`);- }, m = () => {- a.hidden = !0;- };- s && o && (s.onerror = () => {- o.hidden = !0;- }), r.addEventListener("pointermove", p), r.addEventListener("pointerleave", m), e.on("dispose", () => {- r.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", m);- });-}-function hre(e, t) {- let n = navigator.mediaSession;- if (!n || typeof n.setActionHandler != "function") return;- let r = () => ve(e.duration()) || ve(t.duration) || 0, i = (t) => {- let n = r();- e.currentTime(Math.max(0, n ? Math.min(n, t) : t));- }, a = () => Math.max(1, Number(FS().settings().seekSeconds) || 10), o = [- ["play", () => {- e.play();- }],- ["pause", () => e.pause()],- ["seekbackward", (t) => i(e.currentTime() - (t?.seekOffset || a()))],- ["seekforward", (t) => i(e.currentTime() + (t?.seekOffset || a()))],- ["seekto", (e) => {- typeof e?.seekTime == "number" && i(e.seekTime);- }]- ], s = [];- for (let [e, t] of o) try {- n.setActionHandler(e, t), s.push(e);- } catch {}- let c = () => {- let t = r(), i = Math.max(0, Number(e.currentTime()) || 0);- if (typeof n.setPositionState == "function" && !(!t || i > t)) try {- n.setPositionState({- duration: t,- position: i,- playbackRate: Math.max(.001, Number(e.playbackRate()) || 1)- });- } catch {}- };- e.on([- "timeupdate",- "durationchange",- "ratechange",- "seeked",- "loadedmetadata"- ], c), c(), e.on("dispose", () => {- s.forEach((e) => {- try {- n.setActionHandler(e, null);- } catch {}- });- try {- n.setPositionState?.();- } catch {}- });-}-function gre(e) {- let t = e.el().querySelector(".vjs-loading-spinner");- !t || t.querySelector(".vjs-peach-spinner-container") || (t.innerHTML = "<span class=\"vjs-peach-spinner-container\"><span class=\"vjs-peach-spinner-rotator\"><span class=\"vjs-peach-spinner-left\"><span class=\"vjs-peach-spinner-circle\"></span></span><span class=\"vjs-peach-spinner-right\"><span class=\"vjs-peach-spinner-circle\"></span></span></span></span>");-}-function _re(e, t) {- ce(`/api/assets/${t}/subtitles`).then((t) => {- !e || e.isDisposed() || (t?.subtitles || []).filter((e) => e.playable).forEach((t) => {- e.addRemoteTextTrack({- kind: "subtitles",- src: t.src,- srclang: t.language || "",- label: t.label,- default: !1- }, !0);- });- }).catch(() => {});-}-//#endregion-//#region src/player/dispose.ts-function aC(e) {- if (!e || e.isDisposed()) return;- let t = e.el()?.querySelector("video");- try {- e.pause();- } catch {}- if (t) {- try {- t.onpause?.(new Event("pause"));- } catch {}- t.onplay = null, t.ontimeupdate = null, t.onpause = null, t.onended = null;- }- try {- e.dispose();- } catch {}-}-//#endregion-//#region src/player/stream.ts-function oC() {- return globalThis.crypto?.randomUUID?.() || `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;-}-function sC(e, t) {- return {- src: `/stream?id=${e.id}&session=${encodeURIComponent(t)}`,- type: String(e.name || "").toLowerCase().endsWith(".webm") ? "video/webm" : "video/mp4"- };-}-function cC(e) {- return e.location === "online" && e.follow_item_id ? {- src: `/follow-stream?id=${e.follow_item_id}`,- type: "video/mp4"- } : null;-}-async function lC(e, t) {- let n = cC(e);- if (n) return n;- try {- let n = await ce(`/api/stream-plan?id=${e.id}&session=${encodeURIComponent(t)}`);- if (n?.protocol === "hls" && n.src) return {- src: n.src,- type: n.mime_type || "application/vnd.apple.mpegurl"- };- } catch {}- return sC(e, t);-}-function uC(e) {- e && fetch(`/api/stream-cancel?session=${encodeURIComponent(e)}`, {- method: "POST",- credentials: "same-origin",- keepalive: !0- }).then((e) => e.json()).then((e) => {- document.documentElement.dataset.peachStreamCancel = JSON.stringify(e);- }).catch(() => {});-}-var dC = "";-function fC() {- return dC;-}-function pC() {- return dC ||= oC(), dC;-}-var vre = (e) => sC(e, pC()), yre = (e) => lC(e, pC());-function mC() {- let e = dC;- e && (dC = "", uC(e));-}-//#endregion-//#region src/player/telemetry.ts-function hC(e, t, n = {}) {- if (!t) return;- let r = 0, i = 0, a = 0, o = null;- t.addEventListener("seeking", () => {- a++;- });- let s = (e) => e ? document.querySelector(e) : null, c = () => {- let r = ve(e.duration) || ve(t.duration);- if (!r) return;- let i = Math.min(t.currentTime / r, 1), a = s(n.watched), o = s(n.mark), c = s(n.ratio);- a && (a.style.width = `${(i * 100).toFixed(1)}%`), o && (o.style.left = `${(i * 100).toFixed(1)}%`), c && (c.textContent = `${(i * 100).toFixed(0)}%`);- }, l = (n) => {- let r = ve(e.duration) || ve(t.duration);- !i && !n && !a || (ce("/api/activity", {- method: "POST",- body: JSON.stringify({- id: e.id,- position: t.currentTime,- duration: r,- delta: i,- ended: !!n,- seeks: a- })- }).then((e) => {- let t = document.getElementById("realTxt");- if (t && e && e.real_ratio != null) {- let n = Math.min(e.real_ratio, 1) * 100;- t.textContent = `${n.toFixed(0)}%`;- let r = document.getElementById("realBar");- r && (r.style.width = `${n.toFixed(1)}%`);- }- }).catch(() => {}), i = 0, a = 0);- }, u = () => {- o &&= (clearInterval(o), null);- };- t.onplay = () => {- r = t.currentTime, u(), o = setInterval(() => l(!1), 1e4);- }, t.ontimeupdate = () => {- let e = t.currentTime - r;- e > 0 && e < 2 && (i += e), r = t.currentTime, c();- }, t.onpause = () => {- u(), l(!1);- }, t.onended = () => {- u(), l(!0), n.onEnded?.();- }, t.addEventListener("emptied", () => {- u(), l(!1);- }, { once: !0 }), c();-}-function bre(e, t) {- let n = 0, r = 0, i = !1, a = null, o = (n) => {- let i = ve(e.duration) || ve(t.duration);- !r && !n || (ce("/api/follow/activity", {- method: "POST",- body: JSON.stringify({- item: e.id,- position: t.currentTime,- duration: i,- delta: r,- ended: !!n- })- }).catch(() => {}), r = 0);- }, s = () => {- a && clearInterval(a), a = null;- };- t.addEventListener("play", () => {- i || (i = !0, ce("/api/follow/play", {- method: "POST",- body: JSON.stringify({ item: e.id })- }).then((t) => {- e.status = t?.status || e.status;- }).catch(() => {})), n = t.currentTime, s(), a = setInterval(() => o(!1), 1e4);- }), t.addEventListener("timeupdate", () => {- let e = t.currentTime - n;- e > 0 && e < 2 && (r += e), n = t.currentTime;- }), t.addEventListener("pause", () => {- s(), o(!1);- }), t.addEventListener("ended", () => {- s(), o(!0);- }), t.addEventListener("emptied", () => {- s(), o(!1);- }, { once: !0 });-}-//#endregion-//#region src/player/videojs.ts-var gC = "/vendor/videojs/8.24.1/", _C = (e) => new Promise((t, n) => {- let r = document.head.querySelector(`script[src="${e}"]`);- if (r?.dataset.loaded) {- t();- return;- }- let i = r ?? document.createElement("script");- i.addEventListener("load", () => {- i.dataset.loaded = "1", t();- }, { once: !0 }), i.addEventListener("error", () => {- i.remove(), n(/* @__PURE__ */ Error(`script unavailable: ${e}`));- }, { once: !0 }), r || (i.src = e, document.head.appendChild(i));-}), vC = () => globalThis.videojs, yC = null;-function bC() {- let e = vC();- return e ? Promise.resolve(e) : (yC ??= _C(`${gC}video.min.js`).then(() => _C(`${gC}lang/zh-CN.js`)).then(() => {- let e = vC();- if (!e) throw Error("videojs unavailable");- return e;- }).catch((e) => {- throw yC = null, e;- }), yC);-}-//#endregion-//#region src/player/immerse-player.ts-var xre = {- controls: !1,- preload: "auto",- posterImage: !1,- titleBar: !1,- textTrackDisplay: !1,- loadingSpinner: !1,- bigPlayButton: !1,- controlBar: !1,- errorDisplay: !1,- textTrackSettings: !1-};-function Sre(e, t) {- let { item: n, session: r } = t, i = null, a = !1;- return Promise.all([lC(n, r), bC().catch(() => null)]).then(([o, s]) => {- if (a) return;- let c = sC(n, r), l = String(o.type || "").includes("mpegurl");- if (!s) e.src = (l ? c : o).src;- else {- let t = s(e, xre);- i = t, l && t.one("error", () => {- a || t.src(c);- }), t.src(o);- }- hC(n, e, t.onEnded ? { onEnded: t.onEnded } : {}), t.onLoaded?.();- }), () => {- a || (a = !0, uC(r), i ? aC(i) : (e.pause(), e.removeAttribute("src"), e.load()));- };-}-//#endregion-//#region src/player/detail-player.ts-var xC = /* @__PURE__ */ new WeakMap(), SC = null, CC = null, wC = null;-function TC() {- SC &&= (clearInterval(SC), null), CC &&= (clearInterval(CC), null), wC &&= (clearTimeout(wC), null);-}-async function Cre(e, t, n, r = {}) {- let i = VS();- if (i && !i.isDisposed()) return i;- let a = FS(), o = r.resume ?? null;- o?.autoplay && (n = !0);- let s = () => r.source ? Promise.resolve(r.source) : yre(e), c;- try {- c = await bC();- } catch {- return t.controls = !0, s().then((e) => {- t.src = e.src, n && t.play().catch(() => {});- }).catch(() => {}), null;- }- let l = c(t, {- controls: !0,- preload: "metadata",- language: "zh-CN",- responsive: !0,- poster: r.poster || O(e, a.settings().javImage),- controlBar: {- pictureInPictureToggle: !0,- currentTimeDisplay: !1,- timeDivider: !1,- durationDisplay: !1,- remainingTimeDisplay: !1,- progressControl: { seekBar: {- mouseTimeDisplay: !1,- playProgressBar: { timeTooltip: !1 }- } }- }- });- HS(l), l.peachItem = e, ire(l), l.on("loadedmetadata", () => {- let e = l.el()?.querySelector("video");- e?.videoWidth && e.videoHeight && l.el().style.setProperty("--peach-video-ratio", `${e.videoWidth}/${e.videoHeight}`);- });- let u = ve(e.duration), d = {- speed: [],- activity: [],- buffer: []- }, f = Number(r.size ?? e.size) || 0, p = ore(KS(f, e.duration)), m = 0, h = !1, g = () => VS() === l && !l.isDisposed(), _ = () => {- if (!u || h || !g()) return;- let e = Number(l.duration());- (!Number.isFinite(e) || Math.abs(e - u) > Math.max(2, u * .001)) && (h = !0, l.duration(u), queueMicrotask(() => {- h = !1;- }));- }, v = () => String(l.currentSource()?.type || "").includes("mpegurl"), y = {- chrome: null,- ready: !1,- updateStats: () => {}- };- xC.set(l, y), y.updateStats = () => {- let n = y.chrome?.statsPanel;- if (!n || n.hidden || !g()) return;- let i = t.getVideoPlaybackQuality ? t.getVideoPlaybackQuality() : null, a = t.getBoundingClientRect(), o = `${t.videoWidth || e.width || "?"}×${t.videoHeight || e.height || "?"}`, s = v(), c = fC(), h = s ? ZS(e.id, c) : [], _ = h.reduce((e, t) => e + (t.transferSize || t.encodedBodySize || 0), 0), b = h.reduce((e, t) => e + (t.duration || 0), 0) / 1e3;- p.sample(t);- let x = $S(l, e.id, c, s ? null : p) || (b > 0 ? _ * 8 / b : 0), S = s ? _ : p.bitrate > 0 ? p.bytes() : p.seconds, C = Math.max(0, S - m);- m = S;- let w = WS(t);- JS(d.speed, x), JS(d.activity, C), JS(d.buffer, w);- let T = String(e.name || ""), E = (T.includes(".") ? T.split(".").pop() || "" : s ? "" : String(l.currentSource()?.type || "").split("/").pop() || "").toUpperCase() || "—", D = x ? `${(x / 1e6).toFixed(1)} Mbps` : "—", O = s || p.bitrate > 0, k = s ? [- "网络活动",- `${_ ? pe(_) : "—"} · ${h.length} 请求`,- `最近一秒网络活动 ${C ? pe(C) : "0 B"}`- ] : [- "已下载",- O ? `${pe(S)}${f > 0 ? ` / ${pe(f)}` : ""}` : `${S.toFixed(0)} 秒`,- O ? `最近一秒下载 ${C ? pe(C) : "0 B"}` : `最近一秒下载 ${C.toFixed(1)} 秒`- ];- n.innerHTML = `<dl>${[- ["视频 ID / 会话", c && !r.source ? `${e.id} / ${c.slice(0, 8)}` : `${e.id}`],- ["视口 / 帧", `${Math.round(a.width)}×${Math.round(a.height)} / ${i ? `${i.totalVideoFrames - i.droppedVideoFrames} of ${i.totalVideoFrames}` : "—"}`],- ["当前 / 最佳分辨率", `${o} / ${e.width || t.videoWidth || "?"}×${e.height || t.videoHeight || "?"}`],- ["编码 / 传输", `${E} / ${s ? "HLS" : "HTTP Range"}`],- [- "连接速度",- D,- XS(d.speed, "speed", Math.max(1e7, ...d.speed), `连接速度 ${D === "—" ? "暂无数据" : D}`)- ],- [- k[0],- k[1],- XS(d.activity, "activity", Math.max(1, ...d.activity), k[2])- ],- [- "缓冲健康",- `${w.toFixed(1)} 秒`,- XS(d.buffer, "buffer", 30, `当前可连续播放 ${w.toFixed(1)} 秒`)- ],- ["播放时间", `${de(t.currentTime)} / ${de(u || l.duration())}`],- ["日期", (/* @__PURE__ */ new Date()).toLocaleString()]- ].map(([e, t, n]) => `<dt>${L(e)}</dt><dd${n ? " data-player-stats-metric=\"\"" : ""}>${n || ""}<span>${L(t)}</span></dd>`).join("")}</dl>`;- }, l.on([- "loadstart",- "loadedmetadata",- "durationchange",- "error"- ], _);- let b = !1, x = !1, S = () => {- let n = y.chrome?.netBadge;- if (!n || l.isDisposed()) return;- let r = v();- r || p.sample(t);- let i = $S(l, e.id, fC(), r ? null : p), a = r ? eC(i) : cre(i, WS(t));- n.innerHTML = `${R("gauge")}<span class="sr-only">加载速度</span><span>${L(a)}</span>`;- }, C = () => {- let e = y.chrome?.netBadge;- !e || !e.isConnected || (e.hidden = !1, S(), CC && clearInterval(CC), CC = setInterval(S, 500));- }, w = () => {- let e = y.chrome?.netBadge;- e && (wC && clearTimeout(wC), wC = setTimeout(() => {- e.hidden = !0, CC &&= (clearInterval(CC), null);- }, 1400));- };- return l.on([- "loadstart",- "progress",- "waiting",- "stalled"- ], C), l.on(["canplay", "playing"], () => {- S(), w();- }), l.on("error", () => {- if (b && !x && !l.isDisposed()) {- x = !0, b = !1, l.src(vre(e)), n && l.play()?.catch(() => {});- return;- }- r.checkSourceStatus !== !1 && a.loadSourceStatus().then((t) => {- t[String(e.location)] !== !1 || l.isDisposed() || l.error({- code: 2,- message: `脱盘模式 · ${a.offlineReason(String(e.location))}`- });- });- }), l.ready(() => {- _();- let n = dre(l, t, e.height, r.qualities ?? null);- r.mediaPromise?.then((t) => {- if (!g()) return;- n?.(t?.qualities?.length ? t.qualities : null);- let r = Number(t?.size) || 0;- r > 0 && !f && (f = r, p.bitrate = KS(r, e.duration));- }).catch(() => {}), mre(l, e, { thumbnail: !r.source }), hre(l, e), gre(l), r.source || _re(l, e.id), y.ready = !0, y.chrome?.statsButton && (y.chrome.statsButton.hidden = !1);- }), s().then((e) => {- g() && (b = String(e.type || "").includes("mpegurl"), l.src(e), _(), setTimeout(_, 0), setTimeout(_, 250), o && o.time > 0 && l.one("loadedmetadata", () => {- l.isDisposed() || l.currentTime(o.time);- }), n && l.play()?.catch(() => {}));- }).catch(() => {}), l;-}-var wre = "<canvas data-ambient-canvas=\"\" width=\"32\" height=\"18\"></canvas>";-function EC(e, t = null) {- if (e.querySelector(":scope > [data-ambient-canvas]") || e.insertAdjacentHTML("afterbegin", wre), e.querySelector(":scope > #playerStatsBtn")) return;- let n = document.createElement("template");- n.innerHTML = sre(), e.insertBefore(n.content, t);-}-function DC(e, t) {- let n = xC.get(e);- if (!n || e.isDisposed()) return () => {};- let r = (e) => t.querySelector(`:scope > #${e}`), i = {- statsButton: r("playerStatsBtn"),- statsPanel: r("playerStats"),- netBadge: r("playerNet")- };- n.chrome = i;- let { statsButton: a, statsPanel: o } = i, s = () => {};- if (a && o) {- a.hidden = !n.ready;- let e = () => {- o.hidden || (o.hidden = !0, a.setAttribute("aria-pressed", "false"), SC &&= (clearInterval(SC), null));- };- a.onclick = () => {- if (!o.hidden) {- e();- return;- }- document.dispatchEvent(new CustomEvent(YS, { detail: "stats" })), o.hidden = !1, a.setAttribute("aria-pressed", "true"), n.updateStats(), SC && clearInterval(SC), SC = setInterval(n.updateStats, 1e3);- };- let t = (t) => {- t.detail !== "stats" && e();- };- document.addEventListener(YS, t), s = () => document.removeEventListener(YS, t);- }- let c = e.el().querySelector("video"), l = c ? ure(c) : () => {}, u = !0, d = () => {- u && (u = !1, s(), l(), n.chrome === i && (n.chrome = null, TC()));- };- return e.one("dispose", d), d;-}-function OC(e, t) {- if (t.kind === "immerse") return Sre(e, t);- let { kind: n, item: r, media: i = null, handedOff: a, onPlayer: o } = t, s = FS(), c = t.chrome === !1 ? null : e.parentElement;- c && EC(c, e);- let l = { resume: t.resume ?? null };- if (n === "follow") l = {- ...l,- source: {- src: `/follow-stream?id=${r.id}${i ? `&media=${i.index}` : ""}`,- type: i?.media_type || r.media_type || "video/mp4"- },- checkSourceStatus: !1,- size: i?.size,- poster: r.thumb_url,- mediaPromise: ce(`/follow-qualities?id=${encodeURIComponent(r.id)}`).catch(() => null)- };- else {- let t = O(r, s.settings().javImage);- t && (e.poster = t), e.addEventListener("play", () => {- ce("/api/play", {- method: "POST",- body: JSON.stringify({ id: r.id })- }).catch(() => {});- }, { once: !0 }), hC(r, e, {- watched: "#watched",- mark: "#mark",- ratio: "#ratioTxt"- });- }- let u = null, d = !1, f = () => {}, p = () => {- f(), !(!u || a?.(u)) && (VS() === u && (HS(null), TC()), aC(u));- };- return Cre(r, e, t.autoplay ?? s.settings().detailAutoplay, l).then((t) => {- if (u = t, d) {- p();- return;- }- if (!t) {- o?.(null);- return;- }- c && (f = DC(t, c)), n === "follow" && bre(r, e), o?.(t);- }), () => {- d = !0, p();- };-}-//#endregion-//#region src/player/playback.ts-function kC(e) {- e && (e.paused ? e.play()?.catch(() => {}) : e.pause());-}-function Tre(e, t) {- let n = e.duration, r = (e.currentTime || 0) + t;- e.currentTime = Number.isFinite(n) ? Math.max(0, Math.min(n, r)) : Math.max(0, r);-}-//#endregion-//#region src/jav-artwork.ts-function AC(e) {- return e === "thumbnail" ? "thumbnail" : "cover";-}-function Ere(e, t) {- return e.is_jav && e.code && e.has_cover && (AC(t) === "cover" || !e.has_thumb) ? "cover" : e.has_thumb ? "thumbnail" : "";-}-var jC = .704;-function MC(e, t) {- let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));- return t && n.set("exclude_vertical", "1"), n.toString();-}-var Dre = (e, t) => [- "catalog-grid",- "catalog",- e,- t-], Ore = (e, t) => [- "catalog-grid",- "entity",- e,- t-];-async function kre(e, t, n, r, i) {- let a = new URLSearchParams(e);- a.set("limit", String(n)), a.set("offset", String(t)), t && a.set("count", "0");- let o = await G(`/api/items?${a}`, i), s = {- ...o,- items: o.items || [],- offset: t- };- return !t && !s.items.length && !r && (s.libraryEmpty = (await G("/api/items?limit=1&thumb=0", i)).total === 0), s;-}-var Are = (e) => (t) => (t.offset === 0 ? t.items.length < (t.total || 0) : t.has_more) ? t.offset + e : void 0, jre = (e, t) => {- let n = t.reduce((e, t) => e + t.items.length, 0);- return (e.has_more == null ? n < (e.total || 0) : e.has_more) ? n : void 0;-};-function NC(e) {- let t = MC(e.filters || {}, !!e.excludeVertical), n = e.batchSize || 60, r = e.filters?.state === "trash";- return {- queryKey: Dre(t, e.revision || 0),- queryFn: ({ pageParam: e, signal: i }) => kre(t, e, n, r, i),- initialPageParam: 0,- getNextPageParam: Are(n)- };-}-function Mre(e) {- return {- queryKey: Ore(e.entityKey || "", e.revision || 0),- queryFn: async ({ pageParam: t, signal: n }) => {- if (!e.fetchPage) return {- items: [],- total: 0,- offset: t- };- let r = await e.fetchPage(t, n);- return {- ...r,- items: r.items || [],- offset: t- };- },- initialPageParam: 0,- getNextPageParam: jre- };-}-async function Nre(e, t) {- if (e.mode !== "catalog") return;- let n = NC(e);- await z.fetchInfiniteQuery({- ...n,- queryFn: ({ pageParam: e }) => n.queryFn({- pageParam: e,- signal: t- })- });-}-function Pre(e, t, n) {- return n ? e.filter((e) => {- let n = e.part_group?.key;- if (n) {- if (t.parts.has(n)) return !1;- t.parts.add(n);- }- let r = e.edition_group?.key;- if (r) {- if (t.editions.has(r)) return !1;- t.editions.add(r);- }- return !0;- }) : [...e];-}-var PC = (e, t) => !!e && !!Ere(e, t);-function Fre(e, t) {- let n = (e) => PC(e, t) && !!(e.creator || (e.performers || []).length || e.studio);- return e.slice(15).find(n) || e.slice(8).find(n) || e.slice(8).find((e) => PC(e, t)) || e[e.length - 1];-}-function Ire(e, { collapse: t, mix: n, javImage: r }) {- let i = {- parts: /* @__PURE__ */ new Set(),- editions: /* @__PURE__ */ new Set()- }, a = /* @__PURE__ */ new Set(), o = [], s = [];- for (let c of e) {- s.push(o.length);- let e = Pre(c.items.filter((e) => !a.has(e.id) && !!a.add(e.id)), i, t), l = e.map((e) => ({- kind: "card",- item: e- }));- if (n && e.length >= 8) {- let t = Fre(e, r);- t && l.splice(7, 0, {- kind: "mix",- seed: t- });- }- o.push(...l);- }- return {- tiles: o,- pageStarts: s- };-}-function Lre(e, t, n) {- let r = Math.max(1, n), i = [];- for (let n = Math.max(r, Math.ceil(Math.max(0, t) / r) * r); n < e; n += r) i.push(n);- return i;-}-function Rre(e, t) {- let n = new URLSearchParams(Object.entries(e).filter(([, e]) => e));- return n.set("orient", "竖屏"), n.set("limit", "18"), n.set("offset", String(t)), n.toString();-}-function zre(e, t) {- let n = [...t].sort((e, t) => e.at - t.at), r = [], i = 0;- for (let t of n) r.push({- start: i,- tiles: e.slice(i, t.at),- strip: t- }), i = t.at;- return r.push({- start: i,- tiles: e.slice(i),- strip: null- }), r;-}-function FC(e, t) {- IC((t) => t.id === e, t);-}-function IC(e, t) {- z.setQueriesData({- queryKey: ["catalog-grid"],- predicate: (e) => Array.isArray(e.state.data?.pages)- }, (n) => !n || !n.pages.some((t) => t.items.some(e)) ? n : {- ...n,- pages: n.pages.map((n) => n.items.some(e) ? {- ...n,- items: n.items.map((n) => e(n) ? {- ...n,- ...t- } : n)- } : n)- });-}-//#endregion-//#region src/react/item-detail/item-detail.ts-var LC = (e) => ["item", e], RC = (e) => [- "item-queue",- e.kind,- e.kind === "playlist" ? e.playlistId : e.seedId-], Bre = (e, t) => [- "item-related",- e,- t-], Vre = (e) => `/api/item?id=${e}`, Hre = (e, t) => `/api/related?id=${e}&limit=${t}`, zC = "/api/playlist", BC = "/api/feedback", VC = "/api/item-tag", HC = "/api/watch-later", UC = "/api/quality-goal", WC = "/api/preference", GC = class extends Error {};-async function KC(e, t) {- let n = await G(Vre(e), t);- if (n.error) throw new GC(n.error);- return n;-}-async function qC(e, t, n) {- if (e.kind === "mix") {- let r = e.seedId, [i, a] = await Promise.all([KC(r, n), t.mixRelated(r)]);- return z.setQueryData(LC(i.id), i), {- kind: "mix",- seedId: r,- title: `Mix · ${P(i, t.tagLabel)}`,- items: [i, ...a.filter((e) => e.id !== i.id)]- };- }- if (e.kind === "playlist") return JC(await G(`${zC}?id=${e.playlistId}`, n));- let r = await G(`/api/${e.kind}?id=${e.seedId}`, n);- if (r.error || !r.items?.length) throw Error(r.error || "这一组已不存在");- return {- kind: e.kind,- seedId: e.seedId,- title: `${e.kind === "parts" ? "分卷" : "版本"} · ${r.title || ""}`,- items: r.items- };-}-var JC = (e) => ({- kind: "playlist",- playlistId: e.id,- title: e.name,- items: e.items || [],- currentAssetId: e.current_asset_id-}), YC = (e) => e.disposal === "vanished";-function XC(e, t) {- if (e.kind === "mix") return t;- let n = e.kind === "playlist" ? e.items.filter((e) => !YC(e)) : e.items;- return n.length ? t != null && n.some((e) => e.id === t) ? t : e.kind === "playlist" && n.some((t) => t.id === e.currentAssetId) ? e.currentAssetId : n[0].id : null;-}-function Ure(e, t) {- if (t?.kind !== "parts") return e;- let n = t.items.find((t) => t.id === e.id)?.part_label || "";- return e.part_label === n ? e : {- ...e,- part_label: n- };-}-async function Wre(e, t) {- let { queue: n, actions: r } = e, i = null, a = !1;- if (n) {- let o = RC(n);- try {- let r = n.fresh ? void 0 : z.getQueryData(o);- a = !r && n.kind === "mix", i = r || await z.fetchQuery({- queryKey: o,- queryFn: () => qC(n, e.helpers, t),- staleTime: 0- });- } catch (n) {- if (t.aborted) throw n;- e.id == null ? r.redirect({ kind: "gone" }) : r.redirect({- kind: "item",- id: e.id- });- return;- }- }- let o = i ? XC(i, e.id) : e.id;- if (o == null) {- r.redirect(i?.kind === "playlist" ? { kind: "playlists" } : { kind: "gone" });- return;- }- let s, c = a && o === i?.seedId ? z.getQueryData(LC(o)) : void 0;- try {- s = c || await z.fetchQuery({- queryKey: LC(o),- queryFn: () => KC(o, t),- staleTime: 0- });- } catch (e) {- if (e instanceof GC) {- r.redirect({ kind: "gone" });- return;- }- throw e;- }- s.location === "online" && s.follow_item_id && r.redirect({- kind: "follow",- id: Number(s.follow_item_id)- });-}-function Gre(e) {- let t = e.entity_refs || {}, n = /* @__PURE__ */ new Set(), r = (e) => {- let t = me(e.name);- return !e.name || n.has(t) ? !1 : (n.add(t), !0);- }, i = (t.performer?.length ? t.performer : (e.performers || []).map((e) => ({- id: null,- name: e- }))).filter(r), a = t.studio?.[0] || !e.studio ? [] : [{- id: null,- name: e.studio,- has_logo: !!e.has_studio_logo,- ...e.studio_logo_version ? { logo_version: e.studio_logo_version } : {}- }], o = [...t.studio || [], ...a].filter(r), s = o.flatMap((e) => e.makers || []).filter(r), c = (t.creator || []).filter(r);- return {- cast: i,- studios: o,- makers: s,- creators: c,- series: (t.series || []).filter(r),- unowned: !i.length && !c.length && !String(e.creator || "").trim()- };-}-var ZC = (e) => Math.min(Math.max(e || 0, 0), 100), QC = (e) => Math.round(ZC(e) / 20), Kre = (e) => {- let t = QC(e);- return t ? `${t} 星` : "未评分";-}, qre = (e, t) => {- let n = t * 20;- return n === (e || 0) ? 0 : n;-};-function Jre(e, t) {- let n = /* @__PURE__ */ new Map();- return (e.tags || []).filter((e) => !t.isDurationTag(e.k)).forEach((e) => {- let r = me(t.tagLabel(e.k)), i = n.get(r);- (!i || me(e.k) === r && me(i.k) !== r) && n.set(r, e);- }), [...n.values()].slice(0, 40);-}-var $C = (e, t) => (e.tags || []).some((e) => me(e.k) === me(t)), ew = (e, t) => ({- ...e,- tags: (e.tags || []).filter((e) => me(e.k) !== me(t))-}), tw = (e, t) => $C(e, t.k) ? e : {- ...e,- tags: [...e.tags || [], t]-}, nw = "peach.recentTags";-function rw() {- try {- let e = JSON.parse(localStorage.getItem(nw) || "[]");- return Array.isArray(e) ? e.map(String) : [];- } catch {- return [];- }-}-function Yre(e) {- try {- let t = rw().filter((t) => me(t) !== me(e));- localStorage.setItem(nw, JSON.stringify([e, ...t].slice(0, 12)));- } catch {}-}-function Xre(e, t, n) {- let r = me(e), i = new Map(t.map((e) => [me(e.k), e])), a = t.filter((e) => !r || me(e.k).includes(r)).slice(0, 120), o = r ? [] : n.map((e) => i.get(me(e)) || {- k: e,- n: 0- }).filter((e, t, n) => n.findIndex((t) => me(t.k) === me(e.k)) === t).slice(0, 12), s = a.some((e) => me(e.k) === r);- return {- recent: o,- results: a,- create: r && !s ? e.trim() : ""- };-}-var Zre = {- 中字: "subtitle",- 无码: "uncensored",- 无码破解: "cracked",- 有码: "censored"-}, Qre = {- mix: "Mix",- parts: "分卷",- editions: "版本",- playlist: "播放列表"-};-function $re(e) {- let t = e.items.length, n = e.kind === "parts" ? `${t} 卷` : e.kind === "editions" ? `${t} 个版本` : `${t} 个视频`;- return {- title: Qre[e.kind],- summary: e.kind === "editions" ? n : `${e.title} · ${n}`- };-}-var iw = (e = "") => /^(?:\d+|[a-h])$/i.test(e) ? `第 ${e} 卷` : e, eie = (e, t) => t?.kind === "parts" && e.part_label ? `<small class="javedition partlabel">${L(iw(e.part_label))}</small>` : "";-function tie(e, t, n, r) {- let i = e.filter((e) => e !== t), a = i.indexOf(n);- return i.splice(a + +!!r, 0, t), i;-}-var nie = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);-function rie(e, t) {- return t ? "offline" : e.location === "online" && !e.follow_item_id ? "online" : e.cost === "metered" && e.location !== "online" ? "metered" : "";-}-function iie(e) {- let t = Number(e.duration) > 0 ? Number(e.duration) : 0;- return !e.play_seconds || !t ? null : Math.min(Number(e.play_seconds) / t, 1) * 100;-}-function aw(e, t) {- return e === "dislike" ? t.feedback === "dislike" ? "已标记不合口味" : "已取消不合口味" : e === "seen" ? t.feedback === "seen" ? "已标记看过" : "已取消看过" : e === "dispose" ? t.disposal === "trash" ? "已移入回收站" : "已移出回收站" : "已记录一次高潮";-}-//#endregion-//#region src/react/providers.tsx-var ow = null;-function aie() {- return ow?.isConnected || (ow = document.createElement("div"), ow.className = "peach-react", ow.dataset.reactOverlays = "", document.body.append(ow)), ow;-}-function sw({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)(dS, {- client: z,- children: /* @__PURE__ */ (0, V.jsx)(rd, {- reducedMotion: "user",- children: /* @__PURE__ */ (0, V.jsx)(Qv, {- getContainer: aie,- children: e- })- })- });-}-//#endregion-//#region src/react/immerse/immerse.ts-var oie = (e, t, n) => [- "immerse-list",- e,- t,- n-];-function sie(e) {- let t = new URLSearchParams();- for (let [n, r] of Object.entries(e)) r && t.set(n, String(r));- return t.delete("orient"), t.set("sort", "rand"), t.set("limit", "60"), t.set("offset", "0"), t.set("thumb", ""), t.toString();-}-var cie = (e, t) => e.cost !== "metered" && !!e.duration && !t(String(e.location ?? ""));-function lie(e, t = Math.random) {- for (let n = e.length - 1; n > 0; n--) {- let r = Math.floor(t() * (n + 1));- [e[n], e[r]] = [e[r], e[n]];- }- return e;-}-async function uie(e, t) {- return lie(((await G(`/api/items?${e}`)).items || []).filter((e) => cie(e, t)));-}-var cw = (e) => z.ensureQueryData({- queryKey: LC(e),- queryFn: ({ signal: t }) => KC(e, t)-});-function die(e, t) {- let n = new Set(e.map((e) => e.id));- return e.concat(t.filter((e) => !n.has(e.id)));-}-function fie(e) {- let t = e.performers || [], n = t.length ? t.slice(0, 3).join("、") + (t.length > 3 ? ` 等 ${t.length} 人` : "") : e.creator || "未归属", r = t.length ? "performer" : e.creator ? "creator" : "";- return {- who: n,- kind: r,- name: t.length ? t[0] : e.creator || "未归属",- ref: r && e.entity_refs?.[r]?.[0] || null- };-}-function pie(e, t, n) {- if (!e || !t || !n || !Number.isFinite(n)) return null;- let r = e / t;- return (r > n ? r / n : n / r) > 1.05 ? "contain" : "cover";-}-function mie(e, t) {- return e.videoWidth && e.videoHeight ? e.videoWidth >= e.videoHeight : !!(t.width && t.height && t.width > 0 && t.height > 0 && t.width >= t.height);-}-var hie = 15e3, lw = {- open: !1,- idle: !1,- wide: !1,- loading: null,- shown: null-}, uw = null, dw = null, fw = null, pw = null, mw = lw, hw = 0, gw = 0, _w = 0, vw = "", yw = [], bw = 0, xw = !1, Sw = !1, Cw = null, ww = /* @__PURE__ */ new Set(), Tw = "", Ew = null, Dw = 0, Ow = null, kw = !1;-function Aw() {- if (!uw) throw Error("沉浸岛还没有接上宿主(configureImmerse)");- return uw;-}-function gie() {- return (!dw || !fw?.isConnected) && (dw?.unmount(), fw = document.createElement("div"), fw.dataset.immerseHost = "", document.body.append(fw), dw = (0, cS.createRoot)(fw)), dw;-}-function jw() {- let e = gie();- (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(sw, { children: /* @__PURE__ */ (0, V.jsx)(Pie, { view: mw }) })));-}-function Mw() {- let e = Ew ? QS(Ew.id) : 0;- return e ? `${Tw} · ${eC(e)}` : Tw;-}-function Nw(e, t = null) {- if (clearInterval(Dw), Dw = 0, e === null) {- mw = {- ...mw,- loading: null- }, jw();- return;- }- Tw = e, Ew = t, mw = {- ...mw,- loading: Mw()- }, jw(), Dw = window.setInterval(() => {- Ew = yw[bw] ?? null, mw = {- ...mw,- loading: Mw()- }, jw();- }, 500);-}-function _ie(e) {- let t = document.createElement("div");- t.dataset.immerseSlide = "", e && (t.style.transform = `translateY(${e}%)`);- let n = document.createElement("video");- n.className = "video-js", n.playsInline = !0, n.preload = "auto", t.append(n), pw.track.append(t);- let r = oC(), i = () => {}, a = {- el: t,- video: n,- session: r,- release: () => uC(r),- disposed: !1,- gone: new Promise((e) => {- i = e;- }),- leave: i- };- return ww.add(a), a;-}-function vie(e, t) {- return new Promise((n) => {- e.release = OC(e.video, {- kind: "immerse",- item: t,- session: e.session,- onLoaded: n,- onEnded: () => {- mw.open && Bw(1);- }- }), e.gone.then(n);- });-}-function Pw(e) {- !e || e.disposed || (e.disposed = !0, ww.delete(e), e.leave(), e.release(), e.el.remove(), Cw === e && (Cw = null));-}-var Fw = [- "loadeddata",- "canplay",- "error"-];-function yie(e) {- let { video: t } = e;- return t.readyState >= 3 ? Promise.resolve() : new Promise((n) => {- let r = !1, i = () => {- r || (r = !0, clearTimeout(a), Fw.forEach((e) => t.removeEventListener(e, i)), n());- };- Fw.forEach((e) => t.addEventListener(e, i, { once: !0 }));- let a = setTimeout(i, hie);- e.gone.then(i);- });-}-function Iw(e) {- let t = e.closest("[data-immerse-track]"), n = t && t.clientWidth && t.clientHeight ? t.clientWidth / t.clientHeight : window.innerWidth / window.innerHeight, r = pie(e.videoWidth, e.videoHeight, n);- r === "contain" ? e.dataset.fit = "contain" : r && delete e.dataset.fit;-}-var Lw = () => pw?.track.querySelectorAll("video").forEach(Iw);-function bie(e) {- delete e.dataset.fit, e.readyState >= 1 ? Iw(e) : e.addEventListener("loadedmetadata", () => Iw(e), { once: !0 });-}-function xie(e) {- mw = {- ...mw,- wide: e- }, jw(), Lw();-}-var Rw = () => {- let e = vw;- return z.fetchQuery({- queryKey: oie(e, gw, _w),- queryFn: () => uie(e, Aw().sourceOffline),- staleTime: Infinity- });-};-function Sie(e, t) {- let n = () => ve(e.duration) || ve(t.duration);- e.addEventListener("timeupdate", () => {- let t = n();- t && pw && (pw.progress.style.width = `${(e.currentTime / t * 100).toFixed(2)}%`);- }), Ow = {- video: e,- duration: n- };-}-async function zw(e = 0) {- let t = yw[bw];- if (!t || xw) return;- let n = hw;- Aw().route(t.id), xw = !0, Nw(e ? "切换中…" : "加载中…", t);- let r = null;- try {- if (await cw(t.id).catch((e) => {- if (!(e instanceof GC)) throw e;- }), n !== hw) return;- let i = Cw, a = !!(e && i);- a || Pw(i);- let o = _ie(a ? e > 0 ? 100 : -100 : 0);- if (r = o, bie(o.video), await vie(o, t), await yie(o), o.disposed || (xie(mie(o.video, t)), a && i && (requestAnimationFrame(() => requestAnimationFrame(() => {- i.el.style.transform = `translateY(${e > 0 ? -100 : 100}%)`, o.el.style.transform = "";- })), await new Promise((e) => setTimeout(e, 210)), Pw(i), o.el.style.transform = ""), o.disposed)) return;- Cw = o, r = null, o.video.play()?.catch(() => {}), mw = {- ...mw,- idle: !1,- shown: {- item: t,- index: bw,- length: yw.length- }- }, Sie(o.video, t), K("/api/play", { id: t.id }).catch(() => {}), Nw(null);- } catch {- Pw(r), n === hw && Nw(null);- } finally {- n === hw && (xw = !1);- }-}-async function Bw(e) {- if (xw || !mw.open) return;- let t = hw;- if (bw += e, Nw("切换中…", yw[bw] ?? null), bw >= yw.length - 3 && !Sw) {- Sw = !0;- try {- _w += 1;- let e = await Rw();- t === hw && (yw = die(yw, e));- } catch {} finally {- Sw = !1;- }- }- t === hw && (bw >= yw.length && (bw = 0), bw < 0 && (bw = yw.length - 1), await zw(e));-}-async function Cie(e) {- let t = ++hw;- Vw(), gw += 1, _w = 0, vw = sie(Aw().filters()), z.removeQueries({ queryKey: ["immerse-list"] }), mw = {- ...mw,- open: !0,- idle: !0,- shown: null- }, document.body.setAttribute("data-immerse-open", ""), Nw("加载内容…");- try {- let n = await Rw();- if (e && !n.some((t) => t.id === e)) {- let t = await cw(e).catch((e) => {- if (e instanceof GC) return null;- throw e;- });- t?.id && (n = [t, ...n.filter((t) => t.id !== e)]);- }- if (t !== hw) return;- if (yw = n, !yw.length) {- Hw(), Aw().warn("当前筛选下没有可直接播放的内容");- return;- }- bw = Math.max(0, yw.findIndex((t) => t.id === e)), await zw();- } catch {- if (t !== hw) return;- Nw(null), Hw();- }-}-function Vw() {- clearInterval(Dw), Dw = 0, Jw(), Kw = null, Ow = null, kw = !1, [...ww].forEach(Pw), xw = !1;-}-function Hw() {- mw.open && (hw++, Vw(), mw = lw, document.body.removeAttribute("data-immerse-open"), jw(), Aw().closed());-}-var Uw = 0, Ww = null, Gw = 0, Kw = null, qw = 0;-function Jw() {- clearTimeout(Uw), Uw = 0, Ww = null;-}-function wie(e) {- let t = Cw?.video;- if (!t) return;- let n = e < window.innerWidth / 2 ? -1 : 1, r = Date.now();- if (Ww && Ww.side === n && r - Ww.at <= 280) {- Jw(), Tre(t, Aw().seekSeconds() * n);- return;- }- Uw && (clearTimeout(Uw), Uw = 0, kC(t)), Ww = {- side: n,- at: r- }, Uw = window.setTimeout(() => {- Uw = 0, Ww = null, mw.open && kC(Cw?.video);- }, 280);-}-function Tie() {- Date.now() < Gw || kC(Cw?.video);-}-var Yw = (e) => pw?.bar.toggleAttribute("data-scrubbing", e);-function Xw(e) {- pw && (pw.progress.style.width = `${(e * 100).toFixed(2)}%`);-}-function Zw(e) {- let t = e.target;- if (e.touches.length !== 1 || !t?.closest("[data-immerse-track]")) {- Kw = null;- return;- }- let n = Cw?.video;- Kw = {- x: e.touches[0].clientX,- y: e.touches[0].clientY,- axis: "",- from: n && n.currentTime || 0- };-}-function Qw(e) {- if (!Kw || e.touches.length !== 1) return;- let t = e.touches[0].clientX - Kw.x, n = e.touches[0].clientY - Kw.y;- if (!Kw.axis) {- if (Math.abs(t) < 12 && Math.abs(n) < 12) return;- Kw.axis = Math.abs(t) > Math.abs(n) ? "x" : "y", Kw.axis === "x" && Yw(!0);- }- if (Kw.axis !== "x") return;- let r = Cw?.video, i = r && r.duration || 0;- i && (e.preventDefault(), Kw.to = Math.min(i, Math.max(0, Kw.from + t / window.innerWidth * i)), Xw(Kw.to / i));-}-function $w(e) {- if (!Kw) return;- let t = Kw;- if (Kw = null, Gw = Date.now() + 700, Yw(!1), t.axis === "x") {- let e = Cw?.video;- e && t.to != null && (e.currentTime = t.to);- return;- }- let n = e.changedTouches[0], r = n.clientX - t.x, i = t.y - n.clientY;- if (Math.abs(i) > 60) {- Jw(), Bw(i > 0 ? 1 : -1);- return;- }- Math.abs(r) <= 14 && Math.abs(i) <= 14 && (e.preventDefault(), wie(n.clientX));-}-function eT() {- Kw = null, Yw(!1);-}-function tT(e) {- let t = Date.now();- t - qw < 260 || (qw = t, Bw(e.deltaY > 0 ? 1 : -1));-}-function nT(e) {- let t = pw.bar.getBoundingClientRect();- return Math.min(1, Math.max(0, (e.clientX - t.left) / t.width));-}-function Eie(e) {- Ow?.duration() && (kw = !0, Yw(!0), e.currentTarget.setPointerCapture(e.pointerId), Xw(nT(e)), e.preventDefault());-}-function Die(e) {- kw && Xw(nT(e));-}-function Oie(e) {- if (!kw) return;- kw = !1, Yw(!1);- let t = Ow?.duration();- Ow && t && (Ow.video.currentTime = t * nT(e));-}-function kie() {- kw = !1, Yw(!1);-}-async function rT(e, t) {- let n = await K(BC, {- id: e,- kind: t- }), r = z.getQueryData(LC(e));- if (!r) return FC(e, {- feedback: n.feedback ?? void 0,- o_count: n.o_count- }), n;- let i = {- ...r,- feedback: n.feedback ?? void 0,- o_count: n.o_count- };- return z.setQueryData(LC(e), i), FC(e, {- feedback: i.feedback,- disposal: i.disposal,- watch_later: i.watch_later,- rating: i.rating,- o_count: i.o_count- }), n;-}-var Aie = [- {- kind: "dislike",- glyph: "thumbs-down",- label: "标为不喜欢"- },- {- kind: "seen",- glyph: "eye",- label: "标为看过"- },- {- kind: "o",- glyph: "heart",- label: "记一次高潮"- }-];-function iT(e) {- return ES({- queryKey: LC(e ?? 0),- queryFn: ({ signal: t }) => KC(e, t),- enabled: e != null,- staleTime: Infinity- }).data;-}-function jie({ kind: e, glyph: t, label: n, id: r }) {- let i = iT(r), a = kS({- mutationFn: async (t) => {- let n = z.getQueryData(LC(t))?.feedback || null;- return {- result: await rT(t, e),- before: n- };- },- onSuccess: ({ result: t, before: n }, r) => {- Aw().toast(aw(e, t), { undo: async () => {- e === "o" ? await rT(r, "o-undo") : (t.feedback && await rT(r, t.feedback), n && await rT(r, n));- } }), e === "dislike" && t.feedback === "dislike" && setTimeout(() => {- Bw(1);- }, 260);- },- onError: (e) => Aw().failure("更新反馈", e)- }), o = a.isPending, s = e !== "o" && i ? i.feedback === e ? "true" : "false" : void 0;- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-immerse-action": "",- children: [/* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-immerse-circle": "",- title: n,- "aria-label": n,- "aria-pressed": s,- ...o ? {- "aria-busy": !0,- "aria-disabled": !0- } : {},- onClick: () => {- r != null && !a.isPending && a.mutate(r);- },- children: /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${t}` })- })- }), /* @__PURE__ */ (0, V.jsxs)("span", {- "data-immerse-label": "",- children: [- e === "dislike" ? "不喜欢" : null,- e === "seen" ? i?.feedback === "seen" ? "已看" : "看过" : null,- e === "o" ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: ["高潮 ", /* @__PURE__ */ (0, V.jsx)("b", { children: i?.o_count || 0 })] }) : null- ]- })]- });-}-function Mie({ shown: e }) {- let t = e?.item ?? null, n = iT(t?.id ?? null), r = n ? fie(n) : null, i = Aw(), a = (e) => {- e.preventDefault(), n && (Hw(), n.performers?.[0] ? i.openEntity("performer", n.performers[0]) : n.creator ? i.openEntity("creator", n.creator) : i.openUnowned());- }, o = () => {- t && (Hw(), i.openItem(t.id));- }, s = r ? w(r.name, r.ref, ae(r.name), r.kind || "performer") : "";- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-immerse-ui": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-immerse-author": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-immerse-avatar": "",- "aria-label": "打开资料",- onClick: a,- dangerouslySetInnerHTML: { __html: s }- }),- /* @__PURE__ */ (0, V.jsx)("a", {- href: "#",- onClick: a,- children: r?.who ?? ""- }),- /* @__PURE__ */ (0, V.jsx)("span", { children: e && t ? `· ${fe(t.duration)} · ${t.ctx_orient || ""} · ${e.index + 1}/${e.length}` : "" })- ]- }), /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-immerse-title": "",- onClick: o,- children: t ? i.displayName(t) : ""- })]- });-}-var Nie = { __html: Ke("媒体加载中") };-function Pie({ view: e }) {- let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null);- (0, B.useLayoutEffect)(() => {- let e = t.current;- return pw = {- root: e,- track: n.current,- bar: r.current,- progress: i.current- }, e.addEventListener("touchstart", Zw, { passive: !0 }), e.addEventListener("touchmove", Qw, { passive: !1 }), e.addEventListener("touchend", $w, { passive: !1 }), e.addEventListener("touchcancel", eT, { passive: !0 }), e.addEventListener("wheel", tT, { passive: !0 }), () => {- e.removeEventListener("touchstart", Zw), e.removeEventListener("touchmove", Qw), e.removeEventListener("touchend", $w), e.removeEventListener("touchcancel", eT), e.removeEventListener("wheel", tT), pw = null;- };- }, []);- let a = e.shown?.item.id ?? null, o = (e) => e ? "" : void 0;- return /* @__PURE__ */ (0, V.jsxs)("div", {- ref: t,- "data-immerse": "",- "data-idle": o(e.idle),- "data-wide": o(e.wide),- hidden: !e.open,- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-immerse-stage": "",- "data-wide": o(e.wide),- children: [/* @__PURE__ */ (0, V.jsx)("div", {- ref: n,- "data-immerse-track": "",- onClick: Tie- }), /* @__PURE__ */ (0, V.jsx)("div", {- "data-immerse-actions": "",- children: Aie.map((e) => /* @__PURE__ */ (0, V.jsx)(jie, {- ...e,- id: a- }, e.kind))- })]- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-immerse-loader": "",- role: "status",- "aria-live": "polite",- hidden: e.loading === null,- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-immerse-spinner": "",- dangerouslySetInnerHTML: Nie- }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.loading ?? "" })]- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-immerse-close": "",- title: "关闭",- "aria-label": "关闭",- onClick: Hw,- children: /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-x" })- })- }),- /* @__PURE__ */ (0, V.jsx)("div", {- ref: r,- "data-immerse-bar": "",- onPointerDown: Eie,- onPointerMove: Die,- onPointerUp: Oie,- onPointerCancel: kie,- children: /* @__PURE__ */ (0, V.jsx)("i", { ref: i })- }),- /* @__PURE__ */ (0, V.jsx)(Mie, { shown: e.shown })- ]- });-}-var Fie = {- open: Cie,- close: Hw,- isOpen: () => mw.open,- activeVideo: () => mw.open ? Cw?.video ?? null : null-};-function Iie(e) {- if (!mw.open) return;- let t = e.target;- t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) || e.ctrlKey || e.metaKey || e.altKey || (e.key === "ArrowDown" && Bw(1), e.key === "ArrowUp" && Bw(-1));-}-function Lie(e) {- let t = !uw;- return uw = e, jw(), t && (document.addEventListener("keydown", Iie), addEventListener("resize", () => {- mw.open && Lw();- }), addEventListener("pagehide", () => {- ww.forEach((e) => uC(e.session));- })), Fie;-}-//#endregion-//#region src/manage-header.ts-var Rie = {- "/junk-files": "垃圾文件",- "/duplicates": "重复文件",- "/review": "人工复核",- "/trash": "回收站",- "/quality-goals": "高清版",- "/scraping": "来源和凭证"-}, zie = /* @__PURE__ */ new Set(["/data-cleanup", "/scraping"]), Bie = ({ total: e, shown: t }) => `${e.toLocaleString()} 个符合 · 显示 ${t}`;-function Vie(e) {- let t = e.sections.find(([t]) => t === e.section);- if (!t) return null;- let n = Rie[e.path] ?? "";- return {- title: e.path === "/diagnostics" ? "系统诊断" : e.section === "cleanup" && n || t[1],- crumb: n,- compact: zie.has(e.path) || e.section === "configuration",- lede: e.section === "trash" ? e.trash ? {- kind: "count",- text: Bie(e.trash),- total: e.trash.total- } : { kind: "skeleton" } : { kind: "none" }- };-}-var Hie = "<span class=\"skeleton\" data-trash-lede-skeleton=\"text\" aria-hidden=\"true\"></span><span class=\"skeleton\" data-trash-lede-skeleton=\"action\" aria-hidden=\"true\"></span>";-//#endregion-//#region src/react/settings-panel/icon.tsx-function aT({ name: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })- });-}-function Uie({ name: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#${e}` })- });-}-//#endregion-//#region src/react/manage-header/manage-header-island.tsx-var oT = null, sT = null, cT = /* @__PURE__ */ new Set();-function Wie(e) {- return cT.add(e), () => {- cT.delete(e);- };-}-function Gie() {- for (let e of [...cT]) e();-}-var Kie = { render(e) {- sT = e, (0, $f.flushSync)(Gie);-} };-function qie(e) {- return oT = e, sT = null, Kie;-}-function Jie() {- let e = (0, B.useSyncExternalStore)(Wie, () => sT);- return oT && e ? /* @__PURE__ */ (0, V.jsx)(Yie, {- host: oT,- props: e- }) : null;-}-function Yie({ host: e, props: t }) {- let n = Vie(t);- return n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(Xie, {- host: e,- section: t.section,- menu: t.menu- }),- n.crumb ? /* @__PURE__ */ (0, V.jsx)(Zie, {- host: e,- label: n.crumb- }) : null,- /* @__PURE__ */ (0, V.jsx)("h2", {- "data-manage-title": "",- "data-compact": n.compact ? "" : void 0,- children: n.title- }),- n.lede.kind === "none" ? null : /* @__PURE__ */ (0, V.jsx)(Qie, {- host: e,- lede: n.lede- })- ] }) : null;-}-var lT = null;-function uT(e, t, n) {- e.style.setProperty("--tab-x", `${t}px`), e.style.setProperty("--tab-width", `${n}px`);-}-function Xie({ host: e, section: t, menu: n }) {- let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = () => {- let e = r.current, t = i.current;- if (!e || !t) return;- let n = e.querySelector("button[aria-pressed=\"true\"]");- n && !n.offsetWidth || (uT(t, n?.offsetLeft ?? 0, n?.offsetWidth ?? 0), n && (lT = {- x: n.offsetLeft,- width: n.offsetWidth- }));- };- return (0, B.useLayoutEffect)(() => {- let e = r.current, t = i.current;- lT ? uT(t, lT.x, lT.width) : a();- let n = 0, o = requestAnimationFrame(() => {- t.setAttribute("data-ready", ""), n = requestAnimationFrame(a);- }), s = new ResizeObserver(a);- return s.observe(e), () => {- cancelAnimationFrame(o), cancelAnimationFrame(n), s.disconnect();- };- }, []), (0, B.useLayoutEffect)(() => {- i.current?.hasAttribute("data-ready") && a();- }, [t, n]), /* @__PURE__ */ (0, V.jsx)("nav", {- "data-manage-bar": "",- "aria-label": "管理",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- ref: r,- "data-manage-menu": "",- children: [n.map(([n, r, i]) => {- let a = n === t;- return /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-manage": n,- "aria-pressed": a,- "aria-current": a ? "page" : void 0,- onClick: () => e.openManage(n),- children: [/* @__PURE__ */ (0, V.jsx)(aT, { name: i }), /* @__PURE__ */ (0, V.jsx)("span", { children: r })]- }, n);- }), /* @__PURE__ */ (0, V.jsx)("span", {- ref: i,- "data-manage-indicator": "",- "aria-hidden": "true"- })]- })- });-}-function Zie({ host: e, label: t }) {- return /* @__PURE__ */ (0, V.jsx)("nav", {- "data-manage-crumb": "",- "aria-label": "Breadcrumb",- children: /* @__PURE__ */ (0, V.jsxs)("ol", { children: [/* @__PURE__ */ (0, V.jsxs)("li", { children: [/* @__PURE__ */ (0, V.jsx)("a", {- href: "/data-cleanup",- onClick: (t) => {- t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || t.button || (t.preventDefault(), e.openDataCleanup());- },- children: "数据管理"- }), /* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-right" })] }), /* @__PURE__ */ (0, V.jsx)("li", {- "aria-current": "true",- children: /* @__PURE__ */ (0, V.jsx)("span", { children: t })- })] })- });-}-function Qie({ host: e, lede: t }) {- return /* @__PURE__ */ (0, V.jsx)("p", {- className: "mono",- "data-manage-lede": "",- children: t.kind === "skeleton" ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-trash-lede-skeletons": "",- dangerouslySetInnerHTML: { __html: Hie }- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)($ie, { text: t.text }), t.total ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-empty-trash": "",- "data-danger": "",- title: "永久删除回收站内容",- onClick: () => e.emptyTrash(),- children: "清空回收站"- }) : null] })- });-}-function $ie({ text: e }) {- let t = (0, B.useRef)(null);- return (0, B.useLayoutEffect)(() => {- qe(t.current, e);- }, [e]), /* @__PURE__ */ (0, V.jsx)("span", {- ref: t,- "data-lede-text": ""- });-}-//#endregion-//#region node_modules/@remixicon/react/index.mjs-var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z" })), tae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" })), dT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), fT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), pT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), nae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" })), mT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z" })), rae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" })), hT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M11.602 13.7599L13.014 15.1719L21.4795 6.7063L22.8938 8.12051L13.014 18.0003L6.65 11.6363L8.06421 10.2221L10.189 12.3469L11.6025 13.7594L11.602 13.7599ZM11.6037 10.9322L16.5563 5.97949L17.9666 7.38977L13.014 12.3424L11.6037 10.9322ZM8.77698 16.5873L7.36396 18.0003L1 11.6363L2.41421 10.2221L3.82723 11.6352L3.82604 11.6363L8.77698 16.5873Z" })), iae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" })), gT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), _T = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M12 2C15.866 2 19 5.13401 19 9C19 9.11351 18.9973 9.22639 18.992 9.33857C21.3265 10.16 23 12.3846 23 15C23 18.3137 20.3137 21 17 21H7C3.68629 21 1 18.3137 1 15C1 12.3846 2.67346 10.16 5.00804 9.33857C5.0027 9.22639 5 9.11351 5 9C5 5.13401 8.13401 2 12 2ZM12 4C9.23858 4 7 6.23858 7 9C7 9.08147 7.00193 9.16263 7.00578 9.24344L7.07662 10.7309L5.67183 11.2252C4.0844 11.7837 3 13.2889 3 15C3 17.2091 4.79086 19 7 19H17C19.2091 19 21 17.2091 21 15C21 12.79 19.21 11 17 11C15.233 11 13.7337 12.1457 13.2042 13.7347L11.3064 13.1021C12.1005 10.7185 14.35 9 17 9C17 6.23858 14.7614 4 12 4Z" })), vT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM15.5 8.5L13.5 13.5L8.5 15.5L10.5 10.5L15.5 8.5Z" })), yT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), bT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" })), aae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), xT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), ST = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), oae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" })), sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M13 12H16L12 16L8 12H11V8H13V12ZM15 4H5V20H19V8H15V4ZM3 2.9918C3 2.44405 3.44749 2 3.9985 2H16L20.9997 7L21 20.9925C21 21.5489 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918Z" })), cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H13V17H8V15Z" })), lae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 7H16V9H8V7ZM8 11H16V13H8V11ZM8 15H16V17H8V15Z" })), uae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z" })), dae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), CT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), wT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), fae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" })), pae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), mae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), hae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" })), gae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M21 3C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H21ZM11 13H4V19H11V13ZM20 13H13V19H20V13ZM11 5H4V11H11V5ZM20 5H13V11H20V5Z" })), TT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z" })), _ae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M16.3944 12.0001L10 7.7371V16.263L16.3944 12.0001ZM19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })), ET = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), DT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M5.46257 4.43262C7.21556 2.91688 9.5007 2 12 2C17.5228 2 22 6.47715 22 12C22 14.1361 21.3302 16.1158 20.1892 17.7406L17 12H20C20 7.58172 16.4183 4 12 4C9.84982 4 7.89777 4.84827 6.46023 6.22842L5.46257 4.43262ZM18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 9.86386 2.66979 7.88416 3.8108 6.25944L7 12H4C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z" })), OT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M3 17C5.20914 17 7 18.7909 7 21H3V17ZM3 10C9.07513 10 14 14.9249 14 21H12C12 16.0294 7.97056 12 3 12V10ZM3 3C12.9411 3 21 11.0589 21 21H19C19 12.1634 11.8366 5 3 5V3Z" })), kT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z" })), vae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M12.0006 18.26L4.94715 22.2082L6.52248 14.2799L0.587891 8.7918L8.61493 7.84006L12.0006 0.5L15.3862 7.84006L23.4132 8.7918L17.4787 14.2799L19.054 22.2082L12.0006 18.26ZM12.0006 15.968L16.2473 18.3451L15.2988 13.5717L18.8719 10.2674L14.039 9.69434L12.0006 5.27502L9.96214 9.69434L5.12921 10.2674L8.70231 13.5717L7.75383 18.3451L12.0006 15.968Z" })), yae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z" })), bae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M9.40017 16H3C1.89543 16 1 15.1046 1 14V11.8957C1 11.6344 1.05118 11.3757 1.15064 11.1342L4.24501 3.61925C4.3993 3.24455 4.76447 3 5.16969 3H22C22.5523 3 23 3.44772 23 4V14C23 14.5523 22.5523 15 22 15H18.5182C18.1932 15 17.8886 15.1579 17.7012 15.4233L12.2478 23.149C12.1053 23.3508 11.8367 23.4184 11.6157 23.3078L9.80163 22.4008C8.74998 21.875 8.20687 20.6874 8.49694 19.548L9.40017 16ZM17 13.4125V5H5.83939L3 11.8957V14H9.40017C10.7049 14 11.6602 15.229 11.3384 16.4934L10.4351 20.0414C10.3771 20.2693 10.4857 20.5068 10.6961 20.612L11.3572 20.9425L16.0673 14.27C16.3172 13.9159 16.6366 13.6257 17 13.4125ZM19 13H21V5H19V13Z" })), xae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M14.5998 8.00033H21C22.1046 8.00033 23 8.89576 23 10.0003V12.1047C23 12.3659 22.9488 12.6246 22.8494 12.8662L19.755 20.3811C19.6007 20.7558 19.2355 21.0003 18.8303 21.0003H2C1.44772 21.0003 1 20.5526 1 20.0003V10.0003C1 9.44804 1.44772 9.00033 2 9.00033H5.48184C5.80677 9.00033 6.11143 8.84246 6.29881 8.57701L11.7522 0.851355C11.8947 0.649486 12.1633 0.581978 12.3843 0.692483L14.1984 1.59951C15.25 2.12534 15.7931 3.31292 15.5031 4.45235L14.5998 8.00033ZM7 10.5878V19.0003H18.1606L21 12.1047V10.0003H14.5998C13.2951 10.0003 12.3398 8.77128 12.6616 7.50691L13.5649 3.95894C13.6229 3.73105 13.5143 3.49353 13.3039 3.38837L12.6428 3.0578L7.93275 9.73038C7.68285 10.0844 7.36341 10.3746 7 10.5878ZM5 11.0003H3V19.0003H5V11.0003Z" })), AT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z" })), jT = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), Sae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), Cae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.createElement("path", { d: "M17 6C16.4477 6 16 5.55228 16 5C16 4.44772 16.4477 4 17 4C17.5523 4 18 4.44772 18 5C18 5.55228 17.5523 6 17 6ZM17 8C18.6569 8 20 6.65685 20 5C20 3.34315 18.6569 2 17 2C15.3431 2 14 3.34315 14 5C14 6.65685 15.3431 8 17 8ZM7 3C4.79086 3 3 4.79086 3 7V9H5V7C5 5.89543 5.89543 5 7 5H10V3H7ZM17 21C19.2091 21 21 19.2091 21 17V15H19V17C19 18.1046 18.1046 19 17 19H14V21H17ZM8 13C8 12.4477 7.55228 12 7 12C6.44772 12 6 12.4477 6 13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13ZM10 13C10 14.6569 8.65685 16 7 16C5.34315 16 4 14.6569 4 13C4 11.3431 5.34315 10 7 10C8.65685 10 10 11.3431 10 13ZM17 11C15.8954 11 15 11.8954 15 13H13C13 10.7909 14.7909 9 17 9C19.2091 9 21 10.7909 21 13H19C19 11.8954 18.1046 11 17 11ZM5 21C5 19.8954 5.89543 19 7 19C8.10457 19 9 19.8954 9 21H11C11 18.7909 9.20914 17 7 17C4.79086 17 3 18.7909 3 21H5Z" })), wae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B.createElement("svg", {- viewBox: "0 0 24 24",- xmlns: "http://www.w3.org/2000/svg",- width: t,- height: t,- fill: e,- ...r,- className: "remixicon " + (n || "")-}, B.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" })), Tae = (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;-}, Eae = (e, t) => ({- classGroupId: e,- validator: t-}), MT = (e = /* @__PURE__ */ new Map(), t = null, n) => ({- nextPart: e,- validators: t,- classGroupId: n-}), NT = "-", PT = [], Dae = "arbitrary..", Oae = (e) => {- let t = Aae(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;- return {- getClassGroupId: (e) => {- if (e.startsWith("[") && e.endsWith("]")) return kae(e);- let n = e.split(NT);- return FT(n, +(n[0] === "" && n.length > 1), t);- },- getConflictingClassGroupIds: (e, t) => {- if (t) {- let t = r[e], i = n[e];- return t ? i ? Tae(i, t) : t : i || PT;- }- return n[e] || PT;- }- };-}, FT = (e, t, n) => {- if (e.length - t === 0) return n.classGroupId;- let r = e[t], i = n.nextPart.get(r);- if (i) {- let n = FT(e, t + 1, i);- if (n) return n;- }- let a = n.validators;- if (a === null) return;- let o = t === 0 ? e.join(NT) : e.slice(t).join(NT), s = a.length;- for (let e = 0; e < s; e++) {- let t = a[e];- if (t.validator(o)) return t.classGroupId;- }-}, kae = (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 ? Dae + r : void 0;-})(), Aae = (e) => {- let { theme: t, classGroups: n } = e;- return jae(n, t);-}, jae = (e, t) => {- let n = MT();- for (let r in e) {- let i = e[r];- IT(i, n, r, t);- }- return n;-}, IT = (e, t, n, r) => {- let i = e.length;- for (let a = 0; a < i; a++) {- let i = e[a];- Mae(i, t, n, r);- }-}, Mae = (e, t, n, r) => {- if (typeof e == "string") {- Nae(e, t, n);- return;- }- if (typeof e == "function") {- Pae(e, t, n, r);- return;- }- Fae(e, t, n, r);-}, Nae = (e, t, n) => {- let r = e === "" ? t : LT(t, e);- r.classGroupId = n;-}, Pae = (e, t, n, r) => {- if (Iae(e)) {- IT(e(r), t, n, r);- return;- }- t.validators === null && (t.validators = []), t.validators.push(Eae(n, e));-}, Fae = (e, t, n, r) => {- let i = Object.entries(e), a = i.length;- for (let e = 0; e < a; e++) {- let [a, o] = i[e];- IT(o, LT(t, a), n, r);- }-}, LT = (e, t) => {- let n = e, r = t.split(NT), i = r.length;- for (let e = 0; e < i; e++) {- let t = r[e], i = n.nextPart.get(t);- i || (i = MT(), n.nextPart.set(t, i)), n = i;- }- return n;-}, Iae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Lae = (e) => {- if (e < 1) return {- get: () => void 0,- set: () => {}- };- let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {- n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));- };- return {- get(e) {- let t = n[e];- if (t !== void 0) return t;- if ((t = r[e]) !== void 0) return i(e, t), t;- },- set(e, t) {- e in n ? n[e] = t : i(e, t);- }- };-}, RT = "!", zT = ":", Rae = [], BT = (e, t, n, r, i) => ({- modifiers: e,- hasImportantModifier: t,- baseClassName: n,- maybePostfixModifierPosition: r,- isExternal: i-}), zae = (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 === zT) {- t.push(e.slice(i, s)), i = s + 1;- continue;- }- if (o === "/") {- a = s;- continue;- }- }- o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;- }- let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;- s.endsWith(RT) ? (c = s.slice(0, -1), l = !0) : s.startsWith(RT) && (c = s.slice(1), l = !0);- let u = a && a > i ? a - i : void 0;- return BT(t, l, c, u);- };- if (t) {- let e = t + zT, n = r;- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : BT(Rae, !1, t, void 0, !0);- }- if (n) {- let e = r;- r = (t) => n({- className: t,- parseClassName: e- });- }- return r;-}, Bae = (e) => {- let t = /* @__PURE__ */ new Map();- return e.orderSensitiveModifiers.forEach((e, n) => {- t.set(e, 1e6 + n);- }), (e) => {- let n = [], r = [];- for (let i = 0; i < e.length; i++) {- let a = e[i], o = a[0] === "[", s = t.has(a);- o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);- }- return r.length > 0 && (r.sort(), n.push(...r)), n;- };-}, Vae = (e) => ({- cache: Lae(e.cacheSize),- parseClassName: zae(e),- sortModifiers: Bae(e),- postfixLookupClassGroupIds: Hae(e),- ...Oae(e)-}), Hae = (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;-}, Uae = /\s+/, Wae = (e, t) => {- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(Uae), 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) {- l = t + (l.length > 0 ? " " + l : l);- continue;- }- let h = !!m, g;- if (h) {- g = r(p.substring(0, m));- let e = g && o[g] ? r(p) : void 0;- e && e !== g && (g = e, h = !1);- } else g = r(p);- if (!g) {- if (!h) {- l = t + (l.length > 0 ? " " + l : l);- continue;- }- if (g = r(p), !g) {- l = t + (l.length > 0 ? " " + l : l);- continue;- }- h = !1;- }- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + RT : _, y = v + g;- if (s.indexOf(y) > -1) continue;- s.push(y);- let b = i(g, h);- for (let e = 0; e < b.length; ++e) {- let t = b[e];- s.push(v + t);- }- l = t + (l.length > 0 ? " " + l : l);+ l = t + (l.length > 0 ? " " + l : l);}return l;-}, Gae = (...e) => {+}, Uae = (...e) => {let t = 0, n, r, i = "";- for (; t < e.length;) (n = e[t++]) && (r = VT(n)) && (i && (i += " "), i += r);+ for (; t < e.length;) (n = e[t++]) && (r = LT(n)) && (i && (i += " "), i += r);return i;-}, VT = (e) => {+}, LT = (e) => {if (typeof e == "string") return e;let t, n = "";- for (let r = 0; r < e.length; r++) e[r] && (t = VT(e[r])) && (n && (n += " "), n += t);+ for (let r = 0; r < e.length; r++) e[r] && (t = LT(e[r])) && (n && (n += " "), n += t);return n;-}, HT = (e, ...t) => {- let n, r, i, a, o = (o) => (n = Vae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {+}, RT = (e, ...t) => {+ let n, r, i, a, o = (o) => (n = zae(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 = Wae(e, n);+ let a = Hae(e, n);return i(e, a), a;};- return a = o, (...e) => a(Gae(...e));-}, Kae = [], UT = (e) => {- let t = (t) => t[e] || Kae;+ return a = o, (...e) => a(Uae(...e));+}, Wae = [], zT = (e) => {+ let t = (t) => t[e] || Wae;return t.isThemeGetter = !0, t.themeKey = e, t;-}, WT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, GT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, qae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Jae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Yae = /\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$/, Xae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Zae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, KT = (e) => qae.test(e), qT = (e) => !!e && !Number.isNaN(Number(e)), JT = (e) => !!e && Number.isInteger(Number(e)), YT = (e) => e.endsWith("%") && qT(e.slice(0, -1)), XT = (e) => Jae.test(e), ZT = () => !0, $ae = (e) => Yae.test(e) && !Xae.test(e), QT = () => !1, eoe = (e) => Zae.test(e), toe = (e) => Qae.test(e), noe = (e) => !q(e) && !rE(e), roe = (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)), ioe = (e) => sE(e, dE, QT), q = (e) => WT.test(e), $T = (e) => sE(e, fE, $ae), eE = (e) => sE(e, foe, qT), aoe = (e) => sE(e, mE, ZT), ooe = (e) => sE(e, pE, QT), tE = (e) => sE(e, lE, QT), soe = (e) => sE(e, uE, toe), nE = (e) => sE(e, hE, eoe), rE = (e) => GT.test(e), iE = (e) => cE(e, fE), coe = (e) => cE(e, pE), aE = (e) => cE(e, lE), loe = (e) => cE(e, dE), uoe = (e) => cE(e, uE), oE = (e) => cE(e, hE, !0), doe = (e) => cE(e, mE, !0), sE = (e, t, n) => {- let r = WT.exec(e);+}, BT = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, VT = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gae = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Kae = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qae = /\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$/, Jae = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, Yae = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xae = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, HT = (e) => Gae.test(e), UT = (e) => !!e && !Number.isNaN(Number(e)), WT = (e) => !!e && Number.isInteger(Number(e)), GT = (e) => e.endsWith("%") && UT(e.slice(0, -1)), KT = (e) => Kae.test(e), qT = () => !0, Zae = (e) => qae.test(e) && !Jae.test(e), JT = () => !1, Qae = (e) => Yae.test(e), $ae = (e) => Xae.test(e), eoe = (e) => !q(e) && !$T(e), toe = (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)), noe = (e) => rE(e, sE, JT), q = (e) => BT.test(e), YT = (e) => rE(e, cE, Zae), XT = (e) => rE(e, uoe, UT), roe = (e) => rE(e, uE, qT), ioe = (e) => rE(e, lE, JT), ZT = (e) => rE(e, aE, JT), aoe = (e) => rE(e, oE, $ae), QT = (e) => rE(e, dE, Qae), $T = (e) => VT.test(e), eE = (e) => iE(e, cE), ooe = (e) => iE(e, lE), tE = (e) => iE(e, aE), soe = (e) => iE(e, sE), coe = (e) => iE(e, oE), nE = (e) => iE(e, dE, !0), loe = (e) => iE(e, uE, !0), rE = (e, t, n) => {+ let r = BT.exec(e);return r ? r[1] ? t(r[1]) : n(r[2]) : !1;-}, cE = (e, t, n = !1) => {- let r = GT.exec(e);+}, iE = (e, t, n = !1) => {+ let r = VT.exec(e);return r ? r[1] ? t(r[1]) : n : !1;-}, lE = (e) => e === "position" || e === "percentage", uE = (e) => e === "image" || e === "url", dE = (e) => e === "length" || e === "size" || e === "bg-size", fE = (e) => e === "length", foe = (e) => e === "number", pE = (e) => e === "family-name", mE = (e) => e === "number" || e === "weight", hE = (e) => e === "shadow", gE = () => {- let e = UT("color"), t = UT("font"), n = UT("text"), r = UT("font-weight"), i = UT("tracking"), a = UT("leading"), o = UT("breakpoint"), s = UT("container"), c = UT("spacing"), l = UT("radius"), u = UT("shadow"), d = UT("inset-shadow"), f = UT("text-shadow"), p = UT("drop-shadow"), m = UT("blur"), h = UT("perspective"), g = UT("aspect"), _ = UT("ease"), v = UT("animate"), y = () => [+}, aE = (e) => e === "position" || e === "percentage", oE = (e) => e === "image" || e === "url", sE = (e) => e === "length" || e === "size" || e === "bg-size", cE = (e) => e === "length", uoe = (e) => e === "number", lE = (e) => e === "family-name", uE = (e) => e === "number" || e === "weight", dE = (e) => e === "shadow", fE = () => {+ let e = zT("color"), t = zT("font"), n = zT("text"), r = zT("font-weight"), i = zT("tracking"), a = zT("leading"), o = zT("breakpoint"), s = zT("container"), c = zT("spacing"), l = zT("radius"), u = zT("shadow"), d = zT("inset-shadow"), f = zT("text-shadow"), p = zT("drop-shadow"), m = zT("blur"), h = zT("perspective"), g = zT("aspect"), _ = zT("ease"), v = zT("animate"), y = () => ["auto","avoid","all",@@ -25982,7 +17351,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"left-bottom"], x = () => [...b(),- rE,+ $T,q], S = () => ["auto",@@ -25995,42 +17364,42 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"contain","none"], w = () => [- rE,+ $T,q,c], T = () => [- KT,+ HT,"full","auto",...w()], E = () => [- JT,+ WT,"none","subgrid",- rE,+ $T,q], D = () => ["auto",{ span: ["full",- JT,- rE,+ WT,+ $T,q] },- JT,- rE,+ WT,+ $T,q], O = () => [- JT,+ WT,"auto",- rE,+ $T,q], k = () => ["auto","min","max","fr",- rE,+ $T,q], A = () => ["start",@@ -26051,7 +17420,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"center-safe","end-safe"], M = () => ["auto", ...w()], N = () => [- KT,+ HT,"auto","full","dvw",@@ -26066,7 +17435,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B...w()], P = () => [s,- KT,+ HT,"screen","full","dvw",@@ -26077,7 +17446,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"fit",...w()], ee = () => [- KT,+ HT,"screen","full","lh",@@ -26090,13 +17459,13 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B...w()], F = () => [e,- rE,+ $T,q], I = () => [...b(),- aE,tE,- { position: [rE, q] }+ ZT,+ { position: [$T, q] }], te = () => ["no-repeat", { repeat: ["","x",@@ -26107,25 +17476,25 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"auto","cover","contain",- loe,- ioe,- { size: [rE, q] }+ soe,+ noe,+ { size: [$T, q] }], re = () => [- YT,- iE,- $T+ GT,+ eE,+ YT], ie = () => ["","none","full",l,- rE,+ $T,q], ae = () => ["",- qT,- iE,- $T+ UT,+ eE,+ YT], oe = () => ["solid","dashed",@@ -26149,32 +17518,32 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"color","luminosity"], ce = () => [- qT,- YT,- aE,- tE+ UT,+ GT,+ tE,+ ZT], le = () => ["","none",m,- rE,+ $T,q], ue = () => ["none",- qT,- rE,+ UT,+ $T,q], L = () => ["none",- qT,- rE,+ UT,+ $T,q], de = () => [- qT,- rE,+ UT,+ $T,q], fe = () => [- KT,+ HT,"full",...w()];@@ -26188,17 +17557,17 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"bounce"],aspect: ["video"],- blur: [XT],- breakpoint: [XT],- color: [ZT],- container: [XT],- "drop-shadow": [XT],+ blur: [KT],+ breakpoint: [KT],+ color: [qT],+ container: [KT],+ "drop-shadow": [KT],ease: ["in","out","in-out"],- font: [noe],+ font: [eoe],"font-weight": ["thin","extralight",@@ -26210,7 +17579,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"extrabold","black"],- "inset-shadow": [XT],+ "inset-shadow": [KT],leading: ["none","tight",@@ -26227,11 +17596,11 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"distant","none"],- radius: [XT],- shadow: [XT],- spacing: ["px", qT],- text: [XT],- "text-shadow": [XT],+ radius: [KT],+ shadow: [KT],+ spacing: ["px", UT],+ text: [KT],+ "text-shadow": [KT],tracking: ["tighter","tight",@@ -26245,9 +17614,9 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Baspect: [{ aspect: ["auto","square",- KT,+ HT,q,- rE,+ $T,g] }],container: ["container"],@@ -26255,15 +17624,15 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"","normal","size",- rE,+ $T,q] }],- "container-named": [roe],+ "container-named": [toe],columns: [{ columns: [- qT,+ UT,"auto",q,- rE,+ $T,s] }],"break-after": [{ "break-after": y() }],@@ -26360,13 +17729,13 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"collapse"],z: [{ z: [- JT,+ WT,"auto",- rE,+ $T,q] }],basis: [{ basis: [- KT,+ HT,"full","auto",s,@@ -26384,8 +17753,8 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"wrap-reverse"] }],flex: [{ flex: [- qT,- KT,+ UT,+ HT,"auto","initial","none",@@ -26393,22 +17762,22 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],grow: [{ grow: ["",- qT,- rE,+ UT,+ $T,q] }],shrink: [{ shrink: ["",- qT,- rE,+ UT,+ $T,q] }],order: [{ order: [- JT,+ WT,"first","last","none",- rE,+ $T,q] }],"grid-cols": [{ "grid-cols": E() }],@@ -26516,15 +17885,15 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"font-size": [{ text: ["base",n,- iE,- $T+ eE,+ YT] }],"font-smoothing": ["antialiased", "subpixel-antialiased"],"font-style": ["italic", "not-italic"],"font-weight": [{ font: [r,- doe,- aoe+ loe,+ roe] }],"font-stretch": [{ "font-stretch": ["ultra-condensed",@@ -26536,12 +17905,12 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"expanded","extra-expanded","ultra-expanded",- YT,+ GT,q] }],"font-family": [{ font: [- coe,ooe,+ ioe,t] }],"font-features": [{ "font-features": [q] }],@@ -26553,14 +17922,14 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],tracking: [{ tracking: [i,- rE,+ $T,q] }],"line-clamp": [{ "line-clamp": [- qT,+ UT,"none",- rE,- eE+ $T,+ XT] }],leading: [{ leading: ["none",@@ -26569,7 +17938,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],"list-image": [{ "list-image": ["none",- rE,+ $T,q] }],"list-style-position": [{ list: ["inside", "outside"] }],@@ -26577,7 +17946,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"disc","decimal","none",- rE,+ $T,q] }],"text-alignment": [{ text: [@@ -26598,17 +17967,17 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B],"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],"text-decoration-thickness": [{ decoration: [- qT,+ UT,"from-font","auto",- rE,- $T+ $T,+ YT] }],"text-decoration-color": [{ decoration: F() }],"underline-offset": [{ "underline-offset": [- qT,+ UT,"auto",- rE,+ $T,q] }],"text-transform": [@@ -26630,8 +17999,8 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],indent: [{ indent: w() }],"tab-size": [{ tab: [- JT,- rE,+ WT,+ $T,q] }],"vertical-align": [{ align: [@@ -26643,7 +18012,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"text-bottom","sub","super",- rE,+ $T,q] }],whitespace: [{ whitespace: [@@ -26672,7 +18041,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B] }],content: [{ content: ["none",- rE,+ $T,q] }],"bg-attachment": [{ bg: [@@ -26708,24 +18077,24 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"l","tl"] },- JT,- rE,+ WT,+ $T,q],radial: ["",- rE,+ $T,q],conic: ["",- JT,- rE,+ WT,+ $T,q]},- uoe,- soe+ coe,+ aoe] }],"bg-color": [{ bg: F() }],"gradient-from-pos": [{ from: re() }],@@ -26792,15 +18161,15 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"hidden"] }],"outline-offset": [{ "outline-offset": [- qT,- rE,+ UT,+ $T,q] }],"outline-w": [{ outline: ["",- qT,- iE,- $T+ UT,+ eE,+ YT] }],"outline-color": [{ outline: F() }],shadow: [{ shadow: [@@ -26808,34 +18177,34 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"inner","none",u,- oE,- nE+ nE,+ QT] }],"shadow-color": [{ shadow: F() }],"inset-shadow": [{ "inset-shadow": ["none",d,- oE,- nE+ nE,+ QT] }],"inset-shadow-color": [{ "inset-shadow": F() }],"ring-w": [{ ring: ae() }],"ring-w-inset": ["ring-inset"],"ring-color": [{ ring: F() }],- "ring-offset-w": [{ "ring-offset": [qT, $T] }],+ "ring-offset-w": [{ "ring-offset": [UT, YT] }],"ring-offset-color": [{ "ring-offset": F() }],"inset-ring-w": [{ "inset-ring": ae() }],"inset-ring-color": [{ "inset-ring": F() }],"text-shadow": [{ "text-shadow": ["none",f,- oE,- nE+ nE,+ QT] }],"text-shadow-color": [{ "text-shadow": F() }],opacity: [{ opacity: [- qT,- rE,+ UT,+ $T,q] }],"mix-blend": [{ "mix-blend": [@@ -26858,7 +18227,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"intersect","exclude"] }],- "mask-image-linear-pos": [{ "mask-linear": [qT] }],+ "mask-image-linear-pos": [{ "mask-linear": [UT] }],"mask-image-linear-from-pos": [{ "mask-linear-from": ce() }],"mask-image-linear-to-pos": [{ "mask-linear-to": ce() }],"mask-image-linear-from-color": [{ "mask-linear-from": F() }],@@ -26887,7 +18256,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"mask-image-y-to-pos": [{ "mask-y-to": ce() }],"mask-image-y-from-color": [{ "mask-y-from": F() }],"mask-image-y-to-color": [{ "mask-y-to": F() }],- "mask-image-radial": [{ "mask-radial": [rE, q] }],+ "mask-image-radial": [{ "mask-radial": [$T, q] }],"mask-image-radial-from-pos": [{ "mask-radial-from": ce() }],"mask-image-radial-to-pos": [{ "mask-radial-to": ce() }],"mask-image-radial-from-color": [{ "mask-radial-from": F() }],@@ -26898,7 +18267,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => Bfarthest: ["side", "corner"]}] }],"mask-image-radial-pos": [{ "mask-radial-at": b() }],- "mask-image-conic-pos": [{ "mask-conic": [qT] }],+ "mask-image-conic-pos": [{ "mask-conic": [UT] }],"mask-image-conic-from-pos": [{ "mask-conic-from": ce() }],"mask-image-conic-to-pos": [{ "mask-conic-to": ce() }],"mask-image-conic-from-color": [{ "mask-conic-from": F() }],@@ -26922,110 +18291,110 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"mask-type": [{ "mask-type": ["alpha", "luminance"] }],"mask-image": [{ mask: ["none",- rE,+ $T,q] }],filter: [{ filter: ["","none",- rE,+ $T,q] }],blur: [{ blur: le() }],brightness: [{ brightness: [- qT,- rE,+ UT,+ $T,q] }],contrast: [{ contrast: [- qT,- rE,+ UT,+ $T,q] }],"drop-shadow": [{ "drop-shadow": ["","none",p,- oE,- nE+ nE,+ QT] }],"drop-shadow-color": [{ "drop-shadow": F() }],grayscale: [{ grayscale: ["",- qT,- rE,+ UT,+ $T,q] }],"hue-rotate": [{ "hue-rotate": [- qT,- rE,+ UT,+ $T,q] }],invert: [{ invert: ["",- qT,- rE,+ UT,+ $T,q] }],saturate: [{ saturate: [- qT,- rE,+ UT,+ $T,q] }],sepia: [{ sepia: ["",- qT,- rE,+ UT,+ $T,q] }],"backdrop-filter": [{ "backdrop-filter": ["","none",- rE,+ $T,q] }],"backdrop-blur": [{ "backdrop-blur": le() }],"backdrop-brightness": [{ "backdrop-brightness": [- qT,- rE,+ UT,+ $T,q] }],"backdrop-contrast": [{ "backdrop-contrast": [- qT,- rE,+ UT,+ $T,q] }],"backdrop-grayscale": [{ "backdrop-grayscale": ["",- qT,- rE,+ UT,+ $T,q] }],"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [- qT,- rE,+ UT,+ $T,q] }],"backdrop-invert": [{ "backdrop-invert": ["",- qT,- rE,+ UT,+ $T,q] }],"backdrop-opacity": [{ "backdrop-opacity": [- qT,- rE,+ UT,+ $T,q] }],"backdrop-saturate": [{ "backdrop-saturate": [- qT,- rE,+ UT,+ $T,q] }],"backdrop-sepia": [{ "backdrop-sepia": ["",- qT,- rE,+ UT,+ $T,q] }],"border-collapse": [{ border: ["collapse", "separate"] }],@@ -27042,38 +18411,38 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"shadow","transform","none",- rE,+ $T,q] }],"transition-behavior": [{ transition: ["normal", "discrete"] }],duration: [{ duration: [- qT,+ UT,"initial",- rE,+ $T,q] }],ease: [{ ease: ["linear","initial",_,- rE,+ $T,q] }],delay: [{ delay: [- qT,- rE,+ UT,+ $T,q] }],animate: [{ animate: ["none",v,- rE,+ $T,q] }],backface: [{ backface: ["hidden", "visible"] }],perspective: [{ perspective: [h,- rE,+ $T,q] }],"perspective-origin": [{ "perspective-origin": x() }],@@ -27090,7 +18459,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"skew-x": [{ "skew-x": de() }],"skew-y": [{ "skew-y": de() }],transform: [{ transform: [- rE,+ $T,q,"","none",@@ -27105,8 +18474,8 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"translate-z": [{ "translate-z": fe() }],"translate-none": ["translate-none"],zoom: [{ zoom: [- JT,- rE,+ WT,+ $T,q] }],accent: [{ accent: F() }],@@ -27157,7 +18526,7 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"nwse-resize","zoom-in","zoom-out",- rE,+ $T,q] }],"field-sizing": [{ "field-sizing": ["fixed", "content"] }],@@ -27244,10554 +18613,19176 @@ var eae = ({ color: e = "currentColor", size: t = 24, className: n, ...r }) => B"scroll","contents","transform",- rE,+ $T,q] }],fill: [{ fill: ["none", ...F()] }],"stroke-w": [{ stroke: [- qT,- iE,- $T,- eE+ UT,+ eE,+ YT,+ XT] }],stroke: [{ stroke: ["none", ...F()] }],"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]},- conflictingClassGroups: {- "container-named": ["container-type"],- overflow: ["overflow-x", "overflow-y"],- overscroll: ["overscroll-x", "overscroll-y"],- inset: [- "inset-x",- "inset-y",- "inset-bs",- "inset-be",- "start",- "end",- "top",- "right",- "bottom",- "left"- ],- "inset-x": [- "start",- "end",- "right",- "left"- ],- "inset-y": [- "inset-bs",- "inset-be",- "top",- "bottom"- ],- flex: [- "basis",- "grow",- "shrink"- ],- gap: ["gap-x", "gap-y"],- p: [- "px",- "py",- "ps",- "pe",- "pbs",- "pbe",- "pt",- "pr",- "pb",- "pl"- ],- px: [- "ps",- "pe",- "pr",- "pl"- ],- py: [- "pbs",- "pbe",- "pt",- "pb"- ],- m: [- "mx",- "my",- "ms",- "me",- "mbs",- "mbe",- "mt",- "mr",- "mb",- "ml"- ],- mx: [- "ms",- "me",- "mr",- "ml"- ],- my: [- "mbs",- "mbe",- "mt",- "mb"- ],- size: ["w", "h"],- "font-size": ["leading"],- "fvn-normal": [- "fvn-ordinal",- "fvn-slashed-zero",- "fvn-figure",- "fvn-spacing",- "fvn-fraction"- ],- "fvn-ordinal": ["fvn-normal"],- "fvn-slashed-zero": ["fvn-normal"],- "fvn-figure": ["fvn-normal"],- "fvn-spacing": ["fvn-normal"],- "fvn-fraction": ["fvn-normal"],- "line-clamp": ["display", "overflow"],- rounded: [- "rounded-s",- "rounded-e",- "rounded-t",- "rounded-r",- "rounded-b",- "rounded-l",- "rounded-ss",- "rounded-se",- "rounded-ee",- "rounded-es",- "rounded-tl",- "rounded-tr",- "rounded-br",- "rounded-bl"- ],- "rounded-s": ["rounded-ss", "rounded-es"],- "rounded-e": ["rounded-se", "rounded-ee"],- "rounded-t": ["rounded-tl", "rounded-tr"],- "rounded-r": ["rounded-tr", "rounded-br"],- "rounded-b": ["rounded-br", "rounded-bl"],- "rounded-l": ["rounded-tl", "rounded-bl"],- "border-spacing": ["border-spacing-x", "border-spacing-y"],- "border-w": [- "border-w-x",- "border-w-y",- "border-w-s",- "border-w-e",- "border-w-bs",- "border-w-be",- "border-w-t",- "border-w-r",- "border-w-b",- "border-w-l"- ],- "border-w-x": [- "border-w-s",- "border-w-e",- "border-w-r",- "border-w-l"- ],- "border-w-y": [- "border-w-bs",- "border-w-be",- "border-w-t",- "border-w-b"- ],- "border-color": [- "border-color-x",- "border-color-y",- "border-color-s",- "border-color-e",- "border-color-bs",- "border-color-be",- "border-color-t",- "border-color-r",- "border-color-b",- "border-color-l"- ],- "border-color-x": [- "border-color-s",- "border-color-e",- "border-color-r",- "border-color-l"- ],- "border-color-y": [- "border-color-bs",- "border-color-be",- "border-color-t",- "border-color-b"- ],- translate: [- "translate-x",- "translate-y",- "translate-none"- ],- "translate-none": [- "translate",- "translate-x",- "translate-y",- "translate-z"- ],- "scroll-m": [- "scroll-mx",- "scroll-my",- "scroll-ms",- "scroll-me",- "scroll-mbs",- "scroll-mbe",- "scroll-mt",- "scroll-mr",- "scroll-mb",- "scroll-ml"- ],- "scroll-mx": [- "scroll-ms",- "scroll-me",- "scroll-mr",- "scroll-ml"- ],- "scroll-my": [- "scroll-mbs",- "scroll-mbe",- "scroll-mt",- "scroll-mb"- ],- "scroll-p": [- "scroll-px",- "scroll-py",- "scroll-ps",- "scroll-pe",- "scroll-pbs",- "scroll-pbe",- "scroll-pt",- "scroll-pr",- "scroll-pb",- "scroll-pl"- ],- "scroll-px": [- "scroll-ps",- "scroll-pe",- "scroll-pr",- "scroll-pl"- ],- "scroll-py": [- "scroll-pbs",- "scroll-pbe",- "scroll-pt",- "scroll-pb"- ],- touch: [- "touch-x",- "touch-y",- "touch-pz"- ],- "touch-x": ["touch"],- "touch-y": ["touch"],- "touch-pz": ["touch"]+ conflictingClassGroups: {+ "container-named": ["container-type"],+ overflow: ["overflow-x", "overflow-y"],+ overscroll: ["overscroll-x", "overscroll-y"],+ inset: [+ "inset-x",+ "inset-y",+ "inset-bs",+ "inset-be",+ "start",+ "end",+ "top",+ "right",+ "bottom",+ "left"+ ],+ "inset-x": [+ "start",+ "end",+ "right",+ "left"+ ],+ "inset-y": [+ "inset-bs",+ "inset-be",+ "top",+ "bottom"+ ],+ flex: [+ "basis",+ "grow",+ "shrink"+ ],+ gap: ["gap-x", "gap-y"],+ p: [+ "px",+ "py",+ "ps",+ "pe",+ "pbs",+ "pbe",+ "pt",+ "pr",+ "pb",+ "pl"+ ],+ px: [+ "ps",+ "pe",+ "pr",+ "pl"+ ],+ py: [+ "pbs",+ "pbe",+ "pt",+ "pb"+ ],+ m: [+ "mx",+ "my",+ "ms",+ "me",+ "mbs",+ "mbe",+ "mt",+ "mr",+ "mb",+ "ml"+ ],+ mx: [+ "ms",+ "me",+ "mr",+ "ml"+ ],+ my: [+ "mbs",+ "mbe",+ "mt",+ "mb"+ ],+ size: ["w", "h"],+ "font-size": ["leading"],+ "fvn-normal": [+ "fvn-ordinal",+ "fvn-slashed-zero",+ "fvn-figure",+ "fvn-spacing",+ "fvn-fraction"+ ],+ "fvn-ordinal": ["fvn-normal"],+ "fvn-slashed-zero": ["fvn-normal"],+ "fvn-figure": ["fvn-normal"],+ "fvn-spacing": ["fvn-normal"],+ "fvn-fraction": ["fvn-normal"],+ "line-clamp": ["display", "overflow"],+ rounded: [+ "rounded-s",+ "rounded-e",+ "rounded-t",+ "rounded-r",+ "rounded-b",+ "rounded-l",+ "rounded-ss",+ "rounded-se",+ "rounded-ee",+ "rounded-es",+ "rounded-tl",+ "rounded-tr",+ "rounded-br",+ "rounded-bl"+ ],+ "rounded-s": ["rounded-ss", "rounded-es"],+ "rounded-e": ["rounded-se", "rounded-ee"],+ "rounded-t": ["rounded-tl", "rounded-tr"],+ "rounded-r": ["rounded-tr", "rounded-br"],+ "rounded-b": ["rounded-br", "rounded-bl"],+ "rounded-l": ["rounded-tl", "rounded-bl"],+ "border-spacing": ["border-spacing-x", "border-spacing-y"],+ "border-w": [+ "border-w-x",+ "border-w-y",+ "border-w-s",+ "border-w-e",+ "border-w-bs",+ "border-w-be",+ "border-w-t",+ "border-w-r",+ "border-w-b",+ "border-w-l"+ ],+ "border-w-x": [+ "border-w-s",+ "border-w-e",+ "border-w-r",+ "border-w-l"+ ],+ "border-w-y": [+ "border-w-bs",+ "border-w-be",+ "border-w-t",+ "border-w-b"+ ],+ "border-color": [+ "border-color-x",+ "border-color-y",+ "border-color-s",+ "border-color-e",+ "border-color-bs",+ "border-color-be",+ "border-color-t",+ "border-color-r",+ "border-color-b",+ "border-color-l"+ ],+ "border-color-x": [+ "border-color-s",+ "border-color-e",+ "border-color-r",+ "border-color-l"+ ],+ "border-color-y": [+ "border-color-bs",+ "border-color-be",+ "border-color-t",+ "border-color-b"+ ],+ translate: [+ "translate-x",+ "translate-y",+ "translate-none"+ ],+ "translate-none": [+ "translate",+ "translate-x",+ "translate-y",+ "translate-z"+ ],+ "scroll-m": [+ "scroll-mx",+ "scroll-my",+ "scroll-ms",+ "scroll-me",+ "scroll-mbs",+ "scroll-mbe",+ "scroll-mt",+ "scroll-mr",+ "scroll-mb",+ "scroll-ml"+ ],+ "scroll-mx": [+ "scroll-ms",+ "scroll-me",+ "scroll-mr",+ "scroll-ml"+ ],+ "scroll-my": [+ "scroll-mbs",+ "scroll-mbe",+ "scroll-mt",+ "scroll-mb"+ ],+ "scroll-p": [+ "scroll-px",+ "scroll-py",+ "scroll-ps",+ "scroll-pe",+ "scroll-pbs",+ "scroll-pbe",+ "scroll-pt",+ "scroll-pr",+ "scroll-pb",+ "scroll-pl"+ ],+ "scroll-px": [+ "scroll-ps",+ "scroll-pe",+ "scroll-pr",+ "scroll-pl"+ ],+ "scroll-py": [+ "scroll-pbs",+ "scroll-pbe",+ "scroll-pt",+ "scroll-pb"+ ],+ touch: [+ "touch-x",+ "touch-y",+ "touch-pz"+ ],+ "touch-x": ["touch"],+ "touch-y": ["touch"],+ "touch-pz": ["touch"]+ },+ conflictingClassGroupModifiers: { "font-size": ["leading"] },+ postfixLookupClassGroups: ["container-type"],+ orderSensitiveModifiers: [+ "*",+ "**",+ "after",+ "backdrop",+ "before",+ "details-content",+ "file",+ "first-letter",+ "first-line",+ "marker",+ "placeholder",+ "selection"+ ]+ };+}, doe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (pE(e, "cacheSize", t), pE(e, "prefix", n), pE(e, "experimentalParseClassName", r), mE(e.theme, a.theme), mE(e.classGroups, a.classGroups), mE(e.conflictingClassGroups, a.conflictingClassGroups), mE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), pE(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), pE(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), hE(e.theme, i.theme), hE(e.classGroups, i.classGroups), hE(e.conflictingClassGroups, i.conflictingClassGroups), hE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), gE(e, i, "postfixLookupClassGroups"), gE(e, i, "orderSensitiveModifiers"), e), pE = (e, t, n) => {+ n !== void 0 && (e[t] = n);+}, mE = (e, t) => {+ if (t) for (let n in t) pE(e, n, t[n]);+}, hE = (e, t) => {+ if (t) for (let n in t) gE(e, t, n);+}, gE = (e, t, n) => {+ let r = t[n];+ r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);+}, foe = (e, ...t) => typeof e == "function" ? RT(fE, e, ...t) : RT(() => doe(fE(), e), ...t), poe = [+ "large-title",+ "display-1",+ "display-2",+ "display-3",+ "display-4",+ "title-1",+ "title-2",+ "title-3",+ "headline",+ "body",+ "body-2",+ "caption-1",+ "caption-2"+], moe = [+ "regular",+ "medium",+ "semibold",+ "bold"+], _E = foe({ extend: { classGroups: { "font-size": [{ text: poe.flatMap((e) => moe.map((t) => `${e}-${t}`)) }] } } });+function vE(e) {+ return e;+}+//#endregion+//#region src/react/boardui/components/base/badges/chip.tsx+var yE = vE({+ base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",+ variant: {+ bold: "py-0.5 text-body-medium",+ subtle: "py-1 text-body-medium",+ caption: "py-1 text-caption-1-medium"+ },+ color: {+ lime: "bg-status-lime-background text-status-lime-text",+ rose: "bg-status-rose-background text-status-rose-text",+ yellow: "bg-status-yellow-background text-status-yellow-text",+ cyan: "bg-status-cyan-background text-status-cyan-text",+ blue: "bg-status-blue-background text-status-blue-text",+ purple: "bg-status-purple-background text-status-purple-text",+ neutral: "bg-background-tertiary-default text-text-secondary",+ gray: "bg-background-secondary-default text-text-primary",+ soft: "bg-background-secondary-default text-text-secondary"+ }+});+function bE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {+ return /* @__PURE__ */ (0, V.jsx)("span", {+ ref: r,+ className: _E(yE.base, yE.variant[e], yE.color[t], n),+ ...i+ });+}+//#endregion+//#region src/react/boardui/components/base/buttons/button.tsx+var xE = vE({+ base: [+ "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",+ "font-sans select-none cursor-pointer",+ "button-press-motion",+ "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",+ "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed"+ ].join(" "),+ size: {+ medium: "h-9 rounded-2lg p-2 text-body-medium",+ small: "h-8 rounded-lg px-2 py-1.5 text-body-medium",+ xs: "h-6 rounded-sm px-2 text-caption-1-semibold"+ },+ iconOnlySize: {+ medium: "",+ small: "size-8 p-0",+ xs: "size-6 p-0"+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-[18px] shrink-0",+ xs: "size-3.5 shrink-0"+ },+ label: {+ medium: "inline-flex items-center justify-center px-1 shrink-0",+ small: "inline-flex items-center justify-center px-0.5 shrink-0",+ xs: "inline-flex items-center justify-center px-0.5 shrink-0"+ },+ variant: {+ primary: [+ "bg-button-primary text-text-white shadow-xs",+ "disabled:text-button-primary-disabled-foreground disabled:shadow-none",+ "aria-disabled:text-button-primary-disabled-foreground aria-disabled:shadow-none"+ ].join(" "),+ danger: [+ "bg-button-danger text-text-white shadow-xs",+ "disabled:text-foreground-disabled-danger disabled:shadow-none",+ "aria-disabled:text-foreground-disabled-danger aria-disabled:shadow-none"+ ].join(" "),+ secondary: [+ "bg-background-primary-default text-text-primary",+ "border border-border-button-default shadow-xs",+ "hover:bg-background-primary-hover hover:border-border-button-hover",+ "active:bg-background-primary-active active:border-border-button-active",+ "disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-text-tertiary disabled:shadow-none",+ "aria-disabled:bg-background-primary-disabled aria-disabled:border-border-button-default aria-disabled:text-text-tertiary aria-disabled:shadow-none"+ ].join(" "),+ ghost: [+ "bg-button-ghost-background text-button-ghost-foreground",+ "hover:bg-button-ghost-hover active:bg-button-ghost-active",+ "disabled:bg-button-ghost-disabled disabled:text-button-ghost-disabled-foreground disabled:shadow-none",+ "aria-disabled:bg-button-ghost-disabled aria-disabled:text-button-ghost-disabled-foreground aria-disabled:shadow-none"+ ].join(" ")+ }+});+function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ ref: c,+ type: s,+ className: _E(xE.base, xE.size[t], xE.variant[e], n && xE.iconOnlySize[t], o),+ ...l,+ children: [+ r ? /* @__PURE__ */ (0, V.jsx)(r, {+ className: xE.icon[t],+ "aria-hidden": !0+ }) : null,+ !n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {+ className: xE.label[t],+ children: a+ }),+ !n && i ? /* @__PURE__ */ (0, V.jsx)(i, {+ className: xE.icon[t],+ "aria-hidden": !0+ }) : null+ ]+ });+}+function SE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {+ return /* @__PURE__ */ (0, V.jsxs)("a", {+ ref: s,+ className: _E(xE.base, xE.size[t], xE.variant[e], n && xE.iconOnlySize[t], o),+ ...c,+ children: [+ r ? /* @__PURE__ */ (0, V.jsx)(r, {+ className: xE.icon[t],+ "aria-hidden": !0+ }) : null,+ !n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {+ className: xE.label[t],+ children: a+ }),+ !n && i ? /* @__PURE__ */ (0, V.jsx)(i, {+ className: xE.icon[t],+ "aria-hidden": !0+ }) : null+ ]+ });+}+//#endregion+//#region src/react/components/card.tsx+var hoe = "min-w-0", goe = {+ filled: "bg-background-secondary-default",+ outlined: "border border-separator-border bg-background-primary-default",+ raised: "bg-background-primary-default"+}, _oe = {+ default: "rounded-2xl shadow-card",+ chart: "rounded-2-5xl",+ surface: "rounded-surface",+ plain: "rounded-2xl"+}, voe = {+ line: "border border-border-button-default",+ soft: "border border-separator-border"+}, yoe = {+ none: "",+ default: "p-5"+}, boe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", xoe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";+function CE(e = {}) {+ let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");+ return [+ hoe,+ goe[t],+ _oe[s],+ yoe[n],+ a ? voe[a] : "",+ r ? boe : "",+ i ? xoe : "",+ o ?? ""+ ].filter(Boolean).join(" ");+}+//#endregion+//#region src/react/components/empty-state.tsx+var Soe = {+ page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",+ plain: "px-6 py-12",+ inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"+};+function wE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {+ let a = i === "page";+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-empty-state": "",+ className: `flex flex-col items-center gap-2 text-center ${Soe[i]}`,+ children: [+ a ? /* @__PURE__ */ (0, V.jsx)("span", {+ "aria-hidden": !0,+ className: "mb-2 flex size-empty-glyph items-center justify-center rounded-floating border border-text-primary/15 p-2.5 text-text-secondary",+ children: /* @__PURE__ */ (0, V.jsx)(e, {+ "aria-hidden": !0,+ className: "size-8"+ })+ }) : /* @__PURE__ */ (0, V.jsx)(e, {+ "aria-hidden": !0,+ className: "size-6 text-text-tertiary"+ }),+ /* @__PURE__ */ (0, V.jsx)("h3", {+ className: `${a ? "text-body-semibold" : "text-headline-medium"} text-text-primary`,+ children: t+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: `${a ? "max-w-empty-copy leading-empty-copy" : "max-w-prose"} text-body-2-regular text-text-secondary`,+ children: r+ }),+ n ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mt-2 flex flex-wrap justify-center gap-2",+ children: n+ }) : null+ ]+ });+}+//#endregion+//#region src/react/components/loading-dots.tsx+function TE({ label: e, inline: t = !1 }) {+ let n = /* @__PURE__ */ (0, V.jsxs)("span", {+ "aria-hidden": !0,+ className: "inline-flex items-center gap-1",+ children: [+ /* @__PURE__ */ (0, V.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),+ /* @__PURE__ */ (0, V.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),+ /* @__PURE__ */ (0, V.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })+ ]+ });+ return t ? /* @__PURE__ */ (0, V.jsxs)("span", {+ role: "status",+ className: "inline-flex items-center gap-2",+ children: [n, e]+ }) : /* @__PURE__ */ (0, V.jsxs)("p", {+ role: "status",+ className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",+ children: [n, e]+ });+}+//#endregion+//#region src/react/components/note.tsx+function Y({ tone: e, title: t, action: n, extra: r, children: i }) {+ let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-wrap items-center justify-between gap-3",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 flex-1 flex-col gap-0.5",+ children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-medium",+ children: t+ }) : null, /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular",+ children: i+ })]+ }), n]+ }), r] });+ switch (e) {+ case "info": return /* @__PURE__ */ (0, V.jsx)("div", {+ role: "status",+ className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",+ children: a+ });+ case "success": return /* @__PURE__ */ (0, V.jsx)("div", {+ role: "status",+ className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",+ children: a+ });+ case "warning": return /* @__PURE__ */ (0, V.jsx)("div", {+ role: "note",+ className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",+ children: a+ });+ case "error": return /* @__PURE__ */ (0, V.jsx)("div", {+ role: "alert",+ className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",+ children: a+ });+ default: return /* @__PURE__ */ (0, V.jsx)("div", {+ role: "note",+ className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",+ children: a+ });+ }+}+//#endregion+//#region src/react/components/page.tsx+function EE({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mx-auto flex w-full max-w-board flex-col gap-8",+ children: e+ });+}+//#endregion+//#region src/react/components/progress.tsx+var DE = 100, Coe = .4;+function OE({ label: e, value: t, max: n = 100, stops: r = [] }) {+ let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * DE;+ return /* @__PURE__ */ (0, V.jsxs)("svg", {+ role: "progressbar",+ "aria-label": e,+ "aria-valuemin": 0,+ "aria-valuemax": n,+ "aria-valuenow": t,+ viewBox: `0 0 ${DE} 1`,+ preserveAspectRatio: "none",+ className: "h-1.5 w-full overflow-hidden rounded-full",+ children: [+ /* @__PURE__ */ (0, V.jsx)("rect", {+ width: DE,+ height: 1,+ className: "fill-background-tertiary-default"+ }),+ /* @__PURE__ */ (0, V.jsx)("rect", {+ width: a(t),+ height: 1,+ className: "fill-border-focus-ring"+ }),+ r.map((e) => /* @__PURE__ */ (0, V.jsx)("rect", {+ x: a(e),+ width: Coe,+ height: 1,+ className: "fill-background-secondary-default"+ }, e))+ ]+ });+}+//#endregion+//#region src/react/settings/busy-props.ts+function X(e) {+ return e ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {};+}+//#endregion+//#region src/react/settings/use-action.ts+function kE(e = "") {+ let t = (0, B.useRef)(null), [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(e);+ (0, B.useEffect)(() => () => t.current?.abort(), []);+ async function o(e, n, i, o) {+ if (t.current) return;+ let s = new AbortController();+ t.current = s, r(e), a("");+ try {+ let e = await n(s.signal);+ s.signal.aborted || i(e);+ } catch (e) {+ if (s.signal.aborted) return;+ o ? o(e) : a(W(e));+ } finally {+ t.current === s && (t.current = null), s.signal.aborted || r("");+ }+ }+ return {+ run: o,+ busy: n,+ error: i,+ setError: a+ };+}+//#endregion+//#region node_modules/react-aria-components/dist/private/utils.mjs+var AE = Symbol("default");+function jE({ values: e, children: t }) {+ for (let [n, r] of e) t = /*#__PURE__*/ B.createElement(n.Provider, { value: r }, t);+ return t;+}+function ME(e) {+ let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;+ return (0, B.useMemo)(() => {+ let e, l, u;+ return e = typeof t == "function" ? t({+ ...s,+ defaultClassName: i+ }) : t, l = typeof n == "function" ? n({+ ...s,+ defaultStyle: o || {}+ }) : n, u = typeof r == "function" ? r({+ ...s,+ defaultChildren: a+ }) : r ?? a, {+ className: e ?? i,+ style: l || o ? {+ ...o,+ ...l+ } : void 0,+ children: u ?? a,+ "data-rac": "",+ render: c ? (e) => c(e, s) : void 0+ };+ }, [+ t,+ n,+ r,+ i,+ a,+ o,+ s,+ c+ ]);+}+function NE(e, t) {+ let n = (0, B.useContext)(e);+ if (t === null) return null;+ if (n && typeof n == "object" && "slots" in n && n.slots) {+ let e = t || AE;+ 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}.`);+ }+ return n.slots[e];+ }+ return n;+}+function PE(e, t, n) {+ let { ref: r, ...i } = NE(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(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,+ ...n+ }, a = typeof e.style == "function" ? e.style({+ ...t,+ defaultStyle: r+ }) : e.style;+ return {+ ...r,+ ...a+ };+ } : {+ ...i.style,+ ...e.style+ }), [o, a];+}+function FE(e = !0) {+ let [t, n] = (0, B.useState)(e), r = (0, B.useRef)(!1), i = (0, B.useCallback)((e) => {+ r.current = !0, n(!!e);+ }, []);+ return Hp(() => {+ r.current || n(!1);+ }, []), [i, t];+}+function IE(e) {+ let t = /^(data-.*)$/, n = {};+ for (let r in e) t.test(r) || (n[r] = e[r]);+ return n;+}+function woe(e, t, n) {+ let { render: r, ...i } = t, a = (0, B.useRef)(null), o = (0, B.useMemo)(() => mh(n, a), [n, a]);+ Hp(() => {}, [e, r]);+ let s = {+ ...i,+ ref: o+ };+ return r ? r(s, void 0) : /*#__PURE__*/ B.createElement(e, s);+}+var LE = {}, RE = new Proxy({}, { get(e, t) {+ if (typeof t != "string") return;+ let n = LE[t];+ return n || (n = /*#__PURE__*/ (0, B.forwardRef)(woe.bind(null, t)), LE[t] = n), n;+} }), zE = /*#__PURE__*/ (0, B.createContext)(null), BE = /*#__PURE__*/ (0, B.createContext)(null), VE = /*#__PURE__*/ (0, B.createContext)(null), HE = {+ CollectionRoot({ collection: e, renderDropIndicator: t }) {+ return UE(e, null, t);+ },+ CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {+ return UE(e, t, n);+ }+};+function UE(e, t, n) {+ return dp({+ items: t ? e.getChildren(t.key) : e,+ dependencies: [n],+ children(t) {+ if (t.type === "content") return /*#__PURE__*/ B.createElement(B.Fragment, null);+ let r = t.render(t);+ return !n || t.type !== "item" ? r : /*#__PURE__*/ B.createElement(B.Fragment, null, n({+ type: "item",+ key: t.key,+ dropPosition: "before"+ }), r, Toe(e, t, n));+ }+ });+}+function Toe(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);+ for (; o != null && o.type !== "item";) o = o.nextKey == null ? null : e.getItem(o.nextKey);+ let s = [];+ if (o == null) {+ let r = t;+ for (; r?.type === "item" && (!a || r.parentKey !== a.parentKey && a.level < r.level);) {+ let t = n({+ type: "item",+ key: r.key,+ dropPosition: "after"+ });+ /*#__PURE__*/ (0, B.isValidElement)(t) && s.push(/*#__PURE__*/ (0, B.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);+ }+ }+ return s;+}+var WE = /*#__PURE__*/ (0, B.createContext)(HE);+function GE(e) {+ return (0, B.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Label.mjs+var KE = /*#__PURE__*/ (0, B.createContext)({}), Eoe = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, KE);+ let { elementType: n = "label", ...r } = e, i = RE[n];+ return /*#__PURE__*/ B.createElement(i, {+ className: "react-aria-Label",+ ...r,+ ref: t+ });+}), Doe = /*#__PURE__*/ (0, B.createContext)(null), qE = /*#__PURE__*/ (0, B.createContext)({}), JE = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, qE);+ let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Aee(e, t);+ i = koe(i, r);+ let { focusProps: o, isFocused: s, isFocusVisible: c } = ry(e), { hoverProps: l, isHovered: u } = sy({+ ...e,+ isDisabled: e.isDisabled || r+ }), d = {+ isHovered: u,+ isPressed: (n.isPressed || a) && !r,+ isFocused: s,+ isFocusVisible: c,+ isDisabled: e.isDisabled || !1,+ isPending: r ?? !1+ }, f = ME({+ ...e,+ values: d,+ defaultClassName: "react-aria-Button"+ }), p = dh(i.id), m = dh(), h = i["aria-labelledby"];+ r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));+ let g = (0, B.useRef)(r);+ (0, B.useEffect)(() => {+ let e = { "aria-labelledby": h || p };+ (!g.current && s && r || g.current && s && !r) && f_(e, "assertive"), g.current = r;+ }, [+ r,+ s,+ h,+ p+ ]);+ let _ = Eg(e, { global: !0 });+ return delete _.onClick, /*#__PURE__*/ B.createElement(RE.button, {+ ...U(_, f, i, o, l),+ type: i.type === "submit" && r ? "button" : i.type,+ id: p,+ ref: t,+ "aria-labelledby": h,+ slot: e.slot || void 0,+ "aria-disabled": r ? "true" : i["aria-disabled"],+ "data-disabled": e.isDisabled || void 0,+ "data-pressed": d.isPressed || void 0,+ "data-hovered": u || void 0,+ "data-focused": s || void 0,+ "data-pending": r || void 0,+ "data-focus-visible": c || void 0+ }, /*#__PURE__*/ B.createElement(Doe.Provider, { value: { id: m } }, f.children));+}), Ooe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;+function koe(e, t) {+ if (t) {+ for (let t in e) t.startsWith("on") && !Ooe.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 YE = /*#__PURE__*/ (0, B.createContext)({}), XE = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, YE);+ let { children: n, level: r = 3, className: i, ...a } = e, o = RE[`h${r}`];+ return /*#__PURE__*/ B.createElement(o, {+ ...a,+ ref: t,+ className: i ?? "react-aria-Heading"+ }, n);+}), ZE = /*#__PURE__*/ (0, B.createContext)({}), Aoe = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, ZE);+ let { elementType: n = "span", ...r } = e, i = RE[n];+ return /*#__PURE__*/ B.createElement(i, {+ className: "react-aria-Text",+ ...r,+ ref: t+ });+}), QE = /*#__PURE__*/ (0, B.createContext)(null), $E = /*#__PURE__*/ (0, B.createContext)(null), eD = /*#__PURE__*/ (0, B.createContext)(null), tD = /*#__PURE__*/ (0, B.createContext)(null), joe = /*#__PURE__*/ (0, B.createContext)(null), nD = /*#__PURE__*/ (0, B.createContext)(null);+function Moe(e, t) {+ let { validationBehavior: n } = NE($E) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(joe), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {+ ...IE(e),+ children: typeof e.children == "function" || e.children,+ value: e.value,+ validationBehavior: r+ };+ return [i ? $ee(o, i, a) : N_(o, R_(e), a), a];+}+var Noe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { inputRef: n = null, ...r } = e;+ [e, t] = PE(r, t, eD);+ let [i, a] = Moe(e, n);+ return /*#__PURE__*/ B.createElement(nD.Provider, { value: {+ ...i,+ inputRef: a,+ defaultClassName: "react-aria-Checkbox",+ isIndeterminate: e.isIndeterminate,+ isRequired: e.isRequired+ } }, /*#__PURE__*/ B.createElement(Poe, {+ ...e,+ ref: t+ }));+}), Poe = /*#__PURE__*/ (0, B.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, B.useContext)(nD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({+ ...e,+ isDisabled: g+ }), y = ME({+ ...e,+ defaultClassName: u,+ values: {+ isSelected: i,+ isIndeterminate: d || !1,+ isPressed: s,+ isHovered: v,+ isFocused: p,+ isFocusVisible: m,+ isDisabled: a,+ isReadOnly: o,+ isInvalid: c,+ isRequired: f || !1+ }+ }), b = Eg(e, { global: !0 });+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(RE.label, {+ ...U(b, n, _, y),+ ref: t,+ slot: e.slot || void 0,+ "data-selected": i || void 0,+ "data-indeterminate": d || void 0,+ "data-pressed": s || void 0,+ "data-hovered": v || void 0,+ "data-focused": p || void 0,+ "data-focus-visible": m || void 0,+ "data-disabled": a || void 0,+ "data-readonly": o || void 0,+ "data-invalid": c || void 0,+ "data-required": f || void 0+ }, /*#__PURE__*/ B.createElement(H_, { elementType: "span" }, /*#__PURE__*/ B.createElement("input", {+ ...U(r, h),+ ref: l+ })), y.children);+}), rD = /*#__PURE__*/ (0, B.createContext)({}), Foe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, rD);+ 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 } = sy({+ onHoverStart: a,+ onHoverChange: o,+ onHoverEnd: s,+ isDisabled: n+ }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = ME({+ ...e,+ values: {+ isHovered: u,+ isFocusWithin: d,+ isFocusVisible: f,+ isDisabled: n,+ isInvalid: r+ },+ defaultClassName: "react-aria-Group"+ });+ return /*#__PURE__*/ B.createElement(RE.div, {+ ...U(c, p, l),+ ...m,+ ref: t,+ role: e.role ?? "group",+ slot: e.slot ?? void 0,+ "data-focus-within": d || void 0,+ "data-hovered": u || void 0,+ "data-focus-visible": f || void 0,+ "data-disabled": n || void 0,+ "data-invalid": r || void 0,+ "data-readonly": i || void 0+ }, m.children);+}), iD = /*#__PURE__*/ (0, B.createContext)({}), Ioe = (e) => {+ let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;+ return i;+}, Loe = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, iD);+ let { hoverProps: n, isHovered: r } = sy({+ ...e,+ isDisabled: e.disabled+ }), { isFocused: i, isFocusVisible: a, focusProps: o } = ry({+ isTextInput: !0,+ autoFocus: e.autoFocus+ }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = ME({+ ...e,+ values: {+ isHovered: r,+ isFocused: i,+ isFocusVisible: a,+ isDisabled: e.disabled || !1,+ isInvalid: s+ },+ defaultClassName: "react-aria-Input"+ });+ return /*#__PURE__*/ B.createElement(RE.input, {+ ...U(Ioe(e), o, n),+ ...c,+ ref: t,+ "data-focused": i || void 0,+ "data-disabled": e.disabled || void 0,+ "data-hovered": r || void 0,+ "data-focus-visible": a || void 0,+ "data-invalid": s || void 0+ });+}), aD = {};+aD = {+ colorSwatchPicker: "تغييرات الألوان",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "حدد عنصرًا",+ tableResizer: "أداة تغيير الحجم"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs+var oD = {};+oD = {+ colorSwatchPicker: "Цветови мостри",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Изберете предмет",+ tableResizer: "Преоразмерител"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs+var sD = {};+sD = {+ colorSwatchPicker: "Vzorky barev",+ dropzoneLabel: "Místo pro přetažení",+ selectPlaceholder: "Vyberte položku",+ tableResizer: "Změna velikosti"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs+var cD = {};+cD = {+ colorSwatchPicker: "Farveprøver",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Vælg et element",+ tableResizer: "Størrelsesændring"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs+var lD = {};+lD = {+ colorSwatchPicker: "Farbfelder",+ dropzoneLabel: "Ablegebereich",+ selectPlaceholder: "Element wählen",+ tableResizer: "Größenanpassung"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs+var uD = {};+uD = {+ colorSwatchPicker: "Χρωματικά δείγματα",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Επιλέξτε ένα αντικείμενο",+ tableResizer: "Αλλαγή μεγέθους"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs+var dD = {};+dD = {+ selectPlaceholder: "Select an item",+ tableResizer: "Resizer",+ dropzoneLabel: "DropZone",+ colorSwatchPicker: "Color swatches"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs+var fD = {};+fD = {+ colorSwatchPicker: "Muestras de colores",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Seleccionar un artículo",+ tableResizer: "Cambiador de tamaño"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs+var pD = {};+pD = {+ colorSwatchPicker: "Värvinäidised",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Valige üksus",+ tableResizer: "Suuruse muutja"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs+var mD = {};+mD = {+ colorSwatchPicker: "Värimallit",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Valitse kohde",+ tableResizer: "Koon muuttaja"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs+var hD = {};+hD = {+ colorSwatchPicker: "Échantillons de couleurs",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Sélectionner un élément",+ tableResizer: "Redimensionneur"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs+var gD = {};+gD = {+ colorSwatchPicker: "דוגמיות צבע",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "בחר פריט",+ tableResizer: "שינוי גודל"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs+var _D = {};+_D = {+ colorSwatchPicker: "Uzorci boja",+ dropzoneLabel: "Zona spuštanja",+ selectPlaceholder: "Odaberite stavku",+ tableResizer: "Promjena veličine"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs+var vD = {};+vD = {+ colorSwatchPicker: "Színtárak",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Válasszon ki egy elemet",+ tableResizer: "Átméretező"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs+var yD = {};+yD = {+ 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 bD = {};+bD = {+ colorSwatchPicker: "カラースウォッチ",+ dropzoneLabel: "ドロップゾーン",+ selectPlaceholder: "項目を選択",+ tableResizer: "サイズ変更ツール"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs+var xD = {};+xD = {+ colorSwatchPicker: "색상 견본",+ dropzoneLabel: "드롭 영역",+ selectPlaceholder: "항목 선택",+ tableResizer: "크기 조정기"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs+var SD = {};+SD = {+ colorSwatchPicker: "Spalvų pavyzdžiai",+ dropzoneLabel: "„DropZone“",+ selectPlaceholder: "Pasirinkite elementą",+ tableResizer: "Dydžio keitiklis"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs+var CD = {};+CD = {+ colorSwatchPicker: "Krāsu paraugi",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Izvēlēties vienumu",+ tableResizer: "Izmēra mainītājs"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs+var wD = {};+wD = {+ colorSwatchPicker: "Fargekart",+ dropzoneLabel: "Droppsone",+ selectPlaceholder: "Velg et element",+ tableResizer: "Størrelsesendrer"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs+var TD = {};+TD = {+ colorSwatchPicker: "kleurstalen",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Selecteer een item",+ tableResizer: "Resizer"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs+var ED = {};+ED = {+ colorSwatchPicker: "Próbki kolorów",+ dropzoneLabel: "Strefa upuszczania",+ selectPlaceholder: "Wybierz element",+ tableResizer: "Zmiana rozmiaru"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs+var DD = {};+DD = {+ colorSwatchPicker: "Amostras de cores",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Selecione um item",+ tableResizer: "Redimensionador"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs+var OD = {};+OD = {+ colorSwatchPicker: "Amostras de cores",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Selecione um item",+ tableResizer: "Redimensionador"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs+var kD = {};+kD = {+ colorSwatchPicker: "Specimene de culoare",+ dropzoneLabel: "Zonă de plasare",+ selectPlaceholder: "Selectați un element",+ tableResizer: "Instrument de redimensionare"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs+var AD = {};+AD = {+ colorSwatchPicker: "Цветовые образцы",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Выберите элемент",+ tableResizer: "Средство изменения размера"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs+var jD = {};+jD = {+ colorSwatchPicker: "Vzorkovníky farieb",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Vyberte položku",+ tableResizer: "Nástroj na zmenu veľkosti"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs+var MD = {};+MD = {+ colorSwatchPicker: "Barvne palete",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Izberite element",+ tableResizer: "Spreminjanje velikosti"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs+var ND = {};+ND = {+ colorSwatchPicker: "Uzorci boje",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Izaberite stavku",+ tableResizer: "Promena veličine"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs+var PD = {};+PD = {+ colorSwatchPicker: "Färgrutor",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Välj en artikel",+ tableResizer: "Storleksändrare"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs+var FD = {};+FD = {+ colorSwatchPicker: "Renk örnekleri",+ dropzoneLabel: "Bırakma Bölgesi",+ selectPlaceholder: "Bir öğe seçin",+ tableResizer: "Yeniden boyutlandırıcı"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs+var ID = {};+ID = {+ colorSwatchPicker: "Зразки кольорів",+ dropzoneLabel: "DropZone",+ selectPlaceholder: "Виберіть елемент",+ tableResizer: "Засіб змінення розміру"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs+var LD = {};+LD = {+ colorSwatchPicker: "颜色色板",+ dropzoneLabel: "放置区域",+ selectPlaceholder: "选择一个项目",+ tableResizer: "尺寸调整器"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs+var RD = {};+RD = {+ colorSwatchPicker: "色票",+ dropzoneLabel: "放置區",+ selectPlaceholder: "選取項目",+ tableResizer: "大小調整器"+};+//#endregion+//#region node_modules/react-aria-components/dist/private/intlStrings.mjs+var zD = {};+zD = {+ "ar-AE": aD,+ "bg-BG": oD,+ "cs-CZ": sD,+ "da-DK": cD,+ "de-DE": lD,+ "el-GR": uD,+ "en-US": dD,+ "es-ES": fD,+ "et-EE": pD,+ "fi-FI": mD,+ "fr-FR": hD,+ "he-IL": gD,+ "hr-HR": _D,+ "hu-HU": vD,+ "it-IT": yD,+ "ja-JP": bD,+ "ko-KR": xD,+ "lt-LT": SD,+ "lv-LV": CD,+ "nb-NO": wD,+ "nl-NL": TD,+ "pl-PL": ED,+ "pt-BR": DD,+ "pt-PT": OD,+ "ro-RO": kD,+ "ru-RU": AD,+ "sk-SK": jD,+ "sl-SI": MD,+ "sr-SP": ND,+ "sv-SE": PD,+ "tr-TR": FD,+ "uk-UA": ID,+ "zh-CN": LD,+ "zh-TW": RD+};+//#endregion+//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs+var BD = /*#__PURE__*/ (0, B.createContext)({}), VD = /*#__PURE__*/ (0, B.createContext)(null), Roe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { render: n } = (0, B.useContext)(VD);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, n(e, t));+});+function HD(e, t) {+ let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, B.useCallback)((e) => {+ if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(Roe, { target: e });+ }, [+ t?.target,+ r,+ n+ ]);+ return e?.useDropIndicator ? i : void 0;+}+function UD(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;+ if (e != null) {+ let r = n.collection.getItem(i)?.level ?? 0;+ for (; e != null;) {+ let i = n.collection.getItem(e);+ if (!i) break;+ if (i.type !== "item") {+ e = n.collection.getKeyAfter(e);+ continue;+ }+ if ((i.level ?? 0) <= r) break;+ t = e, e = n.collection.getKeyAfter(e);+ }+ }+ i = e ?? t ?? i;+ }+ return (0, B.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Header.mjs+var WD = /*#__PURE__*/ (0, B.createContext)({}), zoe = /*#__PURE__*/ (0, B.createContext)(null);+function GD(e) {+ let t = (0, B.useRef)({});+ return /*#__PURE__*/ B.createElement(zoe.Provider, { value: t }, e.children);+}+//#endregion+//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs+var KD = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), qD = /*#__PURE__*/ (0, B.createContext)({}), Boe = /*#__PURE__*/ tg(class extends tp {+ static {+ this.type = "separator";+ }+ filter(e, t) {+ let n = t.getItem(this.prevKey);+ if (n && n.type !== "separator") {+ let n = this.clone();+ return t.addDescendants(n, e), n;+ }+ return null;+ }+}, function(e, t) {+ [e, t] = PE(e, t, qD);+ let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";+ c === "hr" && r === "vertical" && (c = "div");+ let l = RE[c], { separatorProps: u } = $te({+ ...s,+ elementType: n,+ orientation: r+ }), d = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(l, {+ render: e.render,+ ...U(d, u),+ style: i,+ className: a ?? "react-aria-Separator",+ ref: t,+ slot: o || void 0+ });+});+//#endregion+//#region node_modules/react-aria/dist/private/utils/inertValue.mjs+function JD(e) {+ let t = B.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 YD = class {+ constructor(e) {+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;+ let t = (e) => {+ if (this.keyMap.set(e.key, e), e.childNodes && e.type === "section") for (let n of e.childNodes) t(n);+ };+ for (let n of e) t(n);+ let n = null, r = 0, i = 0;+ for (let [e, t] of this.keyMap) n ? (n.nextKey = e, t.prevKey = n.key) : (this.firstKey = e, t.prevKey = void 0), t.type === "item" && (t.index = r++), (t.type === "section" || t.type === "item") && i++, n = t, n.nextKey = void 0;+ this._size = i, this.lastKey = n?.key ?? null;+ }+ *[Symbol.iterator]() {+ yield* this.iterable;+ }+ get size() {+ return this._size;+ }+ getKeys() {+ return this.keyMap.keys();+ }+ getKeyBefore(e) {+ let t = this.keyMap.get(e);+ return t ? t.prevKey ?? null : null;+ }+ getKeyAfter(e) {+ let t = this.keyMap.get(e);+ return t ? t.nextKey ?? null : null;+ }+ getFirstKey() {+ return this.firstKey;+ }+ getLastKey() {+ return this.lastKey;+ }+ getItem(e) {+ return this.keyMap.get(e) ?? null;+ }+ at(e) {+ let t = [...this.getKeys()];+ return this.getItem(t[e]);+ }+ getChildren(e) {+ return this.keyMap.get(e)?.childNodes || [];+ }+}, XD = 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 Voe(e, t) {+ if (e.size !== t.size) return !1;+ for (let n of e) if (!t.has(n)) return !1;+ return !0;+}+function ZD(e) {+ let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => QD(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => QD(e.defaultSelectedKeys, new XD()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);+ i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");+ let g = (0, B.useRef)(i);+ return (0, B.useEffect)(() => {+ i !== g.current && (h(i), g.current = i);+ }, [i]), {+ selectionMode: t,+ disallowEmptySelection: n,+ selectionBehavior: m,+ setSelectionBehavior: h,+ get isFocused() {+ return o.current;+ },+ setFocused(e) {+ o.current = e, s(e);+ },+ get focusedKey() {+ return c.current;+ },+ get childFocusStrategy() {+ return l.current;+ },+ setFocusedKey(e, t = "first") {+ c.current = e, l.current = t, u(e);+ },+ selectedKeys: d,+ setSelectedKeys(e) {+ (r || !Voe(e, d)) && f(e);+ },+ disabledKeys: p,+ disabledBehavior: a+ };+}+function QD(e, t) {+ return e ? e === "all" ? "all" : new XD(e) : t;+}+//#endregion+//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs+var $D = 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;+ }+ get selectionMode() {+ return this.state.selectionMode;+ }+ get disallowEmptySelection() {+ return this.state.disallowEmptySelection;+ }+ get selectionBehavior() {+ return this.state.selectionBehavior;+ }+ setSelectionBehavior(e) {+ this.state.setSelectionBehavior(e);+ }+ get isFocused() {+ return this.state.isFocused;+ }+ setFocused(e) {+ this.state.setFocused(e);+ }+ get focusedKey() {+ return this.state.focusedKey;+ }+ get childFocusStrategy() {+ return this.state.childFocusStrategy;+ }+ setFocusedKey(e, t) {+ (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);+ }+ get selectedKeys() {+ return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;+ }+ get rawSelection() {+ return this.state.selectedKeys;+ }+ isSelected(e) {+ if (this.state.selectionMode === "none") return !1;+ let t = this.getKey(e);+ return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);+ }+ get isEmpty() {+ return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;+ }+ get isSelectAll() {+ if (this.isEmpty) return !1;+ if (this.state.selectedKeys === "all") return !0;+ if (this._isSelectAll != null) return this._isSelectAll;+ let e = this.getSelectAllKeys(), t = this.state.selectedKeys;+ return this._isSelectAll = e.every((e) => t.has(e)), this._isSelectAll;+ }+ get firstSelectedKey() {+ let e = null;+ for (let t of this.state.selectedKeys) {+ let n = this.collection.getItem(t);+ (!e || n && Gv(this.collection, n, e) < 0) && (e = n);+ }+ return e?.key ?? null;+ }+ get lastSelectedKey() {+ let e = null;+ for (let t of this.state.selectedKeys) {+ let n = this.collection.getItem(t);+ (!e || n && Gv(this.collection, n, e) > 0) && (e = n);+ }+ return e?.key ?? null;+ }+ get disabledKeys() {+ return this.state.disabledKeys;+ }+ get disabledBehavior() {+ return this.state.disabledBehavior;+ }+ extendSelection(e) {+ if (this.selectionMode === "none") return;+ if (this.selectionMode === "single") {+ this.replaceSelection(e);+ return;+ }+ let t = this.getKey(e);+ if (t == null) return;+ let n;+ if (this.state.selectedKeys === "all") n = new XD([t], t, t);+ else {+ let e = this.state.selectedKeys, r = e.anchorKey ?? t;+ n = new XD(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);+ }+ this.state.setSelectedKeys(n);+ }+ getKeyRange(e, t) {+ let n = this.collection.getItem(e), r = this.collection.getItem(t);+ return n && r ? Gv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];+ }+ getKeyRangeInternal(e, t) {+ if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);+ let n = [], r = e;+ for (; r != null;) {+ let e = this.collection.getItem(r);+ if (e && (e.type === "item" || e.type === "cell" && this.allowsCellSelection) && n.push(r), r === t) return n;+ r = this.collection.getKeyAfter(r);+ }+ return [];+ }+ getKey(e) {+ let t = this.collection.getItem(e);+ if (!t || t.type === "cell" && this.allowsCellSelection) return e;+ for (; t && t.type !== "item" && t.parentKey != null;) t = this.collection.getItem(t.parentKey);+ return !t || t.type !== "item" ? null : t.key;+ }+ toggleSelection(e) {+ if (this.selectionMode === "none") return;+ if (this.selectionMode === "single" && !this.isSelected(e)) {+ this.replaceSelection(e);+ return;+ }+ let t = this.getKey(e);+ if (t == null) return;+ let n = new XD(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 XD([t], t, t) : new XD();+ this.state.setSelectedKeys(n);+ }+ setSelectedKeys(e) {+ if (this.selectionMode === "none") return;+ let t = new XD();+ for (let n of e) {+ let e = this.getKey(n);+ if (e != null && (t.add(e), this.selectionMode === "single")) break;+ }+ this.state.setSelectedKeys(t);+ }+ getSelectAllKeys() {+ let e = this.fullCollection ?? this.collection, t = [], n = (r) => {+ for (; r != null;) {+ if (this.canSelectItemIn(r, e)) {+ let i = e.getItem(r);+ i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Hv(Vv(i, e))?.key ?? null);+ }+ r = e.getKeyAfter(r);+ }+ };+ return n(e.getFirstKey()), t;+ }+ selectAll() {+ !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 XD());+ }+ toggleSelectAll() {+ this.isSelectAll ? this.clearSelection() : this.selectAll();+ }+ select(e, t) {+ this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));+ }+ isSelectionEqual(e) {+ if (e === this.state.selectedKeys) return !0;+ let t = this.selectedKeys;+ if (e.size !== t.size) return !1;+ for (let n of e) if (!t.has(n)) return !1;+ for (let n of t) if (!e.has(n)) return !1;+ return !0;+ }+ canSelectItem(e) {+ return this.canSelectItemIn(e, this.collection);+ }+ canSelectItemIn(e, t) {+ if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;+ let n = t.getItem(e);+ return !(!n || n?.props?.isDisabled || n.type === "cell" && !this.allowsCellSelection);+ }+ isDisabled(e) {+ let t = this.collection.getItem(e);+ return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!t?.props?.isDisabled) && t?.props?.disabledBehavior !== "selection";+ }+ isLink(e) {+ return !!this.collection.getItem(e)?.props?.href;+ }+ getItemProps(e) {+ return this.collection.getItem(e)?.props;+ }+ withCollection(t) {+ return new e(t, this.state, {+ allowsCellSelection: this.allowsCellSelection,+ layoutDelegate: this.layoutDelegate || void 0,+ fullCollection: this.fullCollection ?? this.collection+ });+ }+}, Hoe = class {+ build(e, t) {+ return this.context = t, eO(() => this.iterateCollection(e));+ }+ *iterateCollection(e) {+ let { children: t, items: n } = e;+ if (B.isValidElement(t) && t.type === B.Fragment) yield* this.iterateCollection({+ children: t.props.children,+ items: n+ });+ else if (typeof t == "function") {+ if (!n) throw Error("props.children was a function but props.items is missing");+ let e = 0;+ for (let r of n) yield* this.getFullNode({+ value: r,+ index: e+ }, { renderer: t }), e++;+ } else {+ let e = [];+ B.Children.forEach(t, (t) => {+ t && e.push(t);+ });+ let n = 0;+ for (let t of e) {+ let e = this.getFullNode({+ element: t,+ index: n+ }, {});+ for (let t of e) n++, yield t;+ }+ }+ }+ getKey(e, t, n, r) {+ if (e.key != null) return e.key;+ if (t.type === "cell" && t.key != null) return `${r}${t.key}`;+ let i = t.value;+ if (i != null) {+ let e = i.key ?? i.id;+ if (e == null) throw Error("No key found for item");+ return e;+ }+ return r ? `${r}.${t.index}` : `$.${t.index}`;+ }+ getChildState(e, t) {+ return { renderer: t.renderer || e.renderer };+ }+ *getFullNode(e, t, n, r) {+ if (B.isValidElement(e.element) && e.element.type === B.Fragment) {+ let i = [];+ B.Children.forEach(e.element.props.children, (e) => {+ i.push(e);+ });+ let a = e.index ?? 0;+ for (let e of i) yield* this.getFullNode({+ element: e,+ index: a+++ }, t, n, r);+ return;+ }+ let i = e.element;+ if (!i && e.value && t && t.renderer) {+ let n = this.cache.get(e.value);+ if (n && (!n.shouldInvalidate || !n.shouldInvalidate(this.context))) {+ n.index = e.index, n.parentKey = r ? r.key : null, yield n;+ return;+ }+ i = t.renderer(e.value);+ }+ if (B.isValidElement(i)) {+ let a = i.type;+ if (typeof a != "function" && typeof a.getCollectionNode != "function") {+ let e = i.type;+ throw Error(`Unknown element <${e}> in collection.`);+ }+ let o = a.getCollectionNode(i.props, this.context), s = e.index ?? 0, c = o.next();+ for (; !c.done && c.value;) {+ let a = c.value;+ e.index = s;+ let l = a.key ?? null;+ l ??= a.element ? null : this.getKey(i, e, t, n);+ let u = [...this.getFullNode({+ ...a,+ key: l,+ index: s,+ wrapper: Uoe(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 <${tO(t.type)}> in <${tO(r?.type ?? "unknown parent type")}>. Only <${tO(e.type)}> is supported.`);+ s++, yield t;+ }+ c = o.next(u);+ }+ return;+ }+ if (e.key == null || e.type == null) return;+ let a = this, o = {+ type: e.type,+ props: e.props,+ key: e.key,+ parentKey: r ? r.key : null,+ value: e.value ?? null,+ level: (r?.level ?? 0) + +(r?.type === "item"),+ index: e.index,+ rendered: e.rendered,+ textValue: e.textValue ?? "",+ "aria-label": e["aria-label"],+ wrapper: e.wrapper,+ shouldInvalidate: e.shouldInvalidate,+ hasChildNodes: e.hasChildNodes || !1,+ childNodes: eO(function* () {+ if (!e.hasChildNodes || !e.childNodes) return;+ let n = 0;+ for (let r of e.childNodes()) {+ r.key != null && (r.key = `${o.key}${r.key}`);+ let e = a.getFullNode({+ ...r,+ index: n+ }, a.getChildState(t, r), o.key, o);+ for (let t of e) n++, yield t;+ }+ })+ };+ yield o;+ }+ constructor() {+ this.cache = /* @__PURE__ */ new WeakMap();+ }+};+function eO(e) {+ let t = [], n = null;+ return { *[Symbol.iterator]() {+ for (let e of t) yield e;+ n ||= e();+ for (let e of n) t.push(e), yield e;+ } };+}+function Uoe(e, t) {+ if (e && t) return (n) => e(t(n));+ if (e) return e;+ if (t) return t;+}+function tO(e) {+ return e[0].toUpperCase() + e.slice(1);+}+//#endregion+//#region node_modules/react-stately/dist/private/collections/useCollection.mjs+function nO(e, t, n) {+ let r = (0, B.useMemo)(() => new Hoe(), []), { children: i, items: a, collection: o } = e;+ return (0, B.useMemo)(() => o || t(r.build({+ children: i,+ items: a+ }, n)), [+ r,+ i,+ a,+ o,+ n,+ t+ ]);+}+//#endregion+//#region node_modules/react-stately/dist/private/list/useListState.mjs+function rO(e) {+ let { filter: t, layoutDelegate: n } = e, r = ZD(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = nO(e, (0, B.useCallback)((e) => t ? new YD(t(e)) : new YD(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new $D(a, r, { layoutDelegate: n }), [+ a,+ r,+ n+ ]);+ return iO(a, o), {+ collection: a,+ disabledKeys: i,+ selectionManager: o+ };+}+function Woe(e, t) {+ let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);+ return iO(n, r), {+ collection: n,+ selectionManager: r,+ disabledKeys: e.disabledKeys+ };+}+function iO(e, t) {+ let n = (0, B.useRef)(null);+ (0, B.useEffect)(() => {+ if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {+ let r = n.current.getKeyAfter(t.focusedKey), i = null;+ for (; r != null;) {+ let a = e.getItem(r);+ if (a && a.type === "item" && !t.isDisabled(r)) {+ i = r;+ break;+ }+ r = n.current.getKeyAfter(r);+ }+ if (i == null) for (r = n.current.getKeyBefore(t.focusedKey); r != null;) {+ let a = e.getItem(r);+ if (a && a.type === "item" && !t.isDisabled(r)) {+ i = r;+ break;+ }+ r = n.current.getKeyBefore(r);+ }+ t.setFocusedKey(i);+ }+ n.current = e;+ }, [e, t]);+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs+function aO(e, t) {+ let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, B.useRef)(null), s = ug((e) => {+ for (let t of e) t.isIntersecting && r && r();+ });+ Hp(() => {+ if (t.current) {+ let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;+ o.current = new IntersectionObserver(s, {+ root: h_(t?.current),+ rootMargin: n+ }), o.current.observe(t.current);+ }+ return () => {+ o.current && o.current.disconnect();+ };+ }, [+ n,+ t,+ i,+ a+ ]);+}+//#endregion+//#region node_modules/react-aria-components/dist/private/ListBox.mjs+var oO = /*#__PURE__*/ (0, B.createContext)(null), sO = /*#__PURE__*/ (0, B.createContext)(null), Goe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, oO);+ let n = (0, B.useContext)(sO);+ return n ? /*#__PURE__*/ B.createElement(cO, {+ state: n,+ props: e,+ listBoxRef: t+ }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Koe, {+ props: e,+ listBoxRef: t,+ collection: n+ }));+});+function Koe({ props: e, listBoxRef: t, collection: n }) {+ e = {+ ...e,+ collection: n,+ children: null,+ items: null+ };+ let { layoutDelegate: r } = (0, B.useContext)(WE), i = rO({+ ...e,+ layoutDelegate: r+ });+ return /*#__PURE__*/ B.createElement(cO, {+ state: i,+ props: e,+ listBoxRef: t+ });+}+function cO({ state: e, props: t, listBoxRef: n }) {+ [t, n] = PE(t, n, zE);+ let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Woe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({+ usage: "search",+ sensitivity: "base"+ }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(WE), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({+ collection: c,+ collator: h,+ ref: n,+ disabledKeys: m,+ disabledBehavior: p,+ layout: i,+ orientation: a,+ direction: f,+ layoutDelegate: _+ }), [+ c,+ h,+ n,+ p,+ m,+ a,+ f,+ t.keyboardDelegate,+ i,+ _+ ]), { listBoxProps: x } = Ete({+ ...t,+ shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,+ keyboardDelegate: b,+ isVirtualized: g+ }, s, n);+ (0, B.useRef)(u), (0, B.useRef)(d), (0, B.useEffect)(() => {}, [u, d]);+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null);+ if (u && r) {+ S = r.useDraggableCollectionState({+ collection: c,+ selectionManager: l,+ preview: r.renderDragPreview ? D : void 0+ }), r.useDraggableCollection({}, S, n);+ let e = r.DragPreview;+ E = r.renderDragPreview ? /*#__PURE__*/ B.createElement(e, { ref: D }, r.renderDragPreview) : null;+ }+ if (d && r) {+ C = r.useDroppableCollectionState({+ collection: c,+ selectionManager: l+ });+ let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(c, n, {+ orientation: a,+ layout: i,+ direction: f+ });+ w = r.useDroppableCollection({+ keyboardDelegate: b,+ dropTargetDelegate: e+ }, C, n), T = C.isDropTarget({ type: "root" });+ }+ let { focusProps: O, isFocused: k, isFocusVisible: A } = ry(), j = s.collection.size === 0, M = {+ isDropTarget: T,+ isEmpty: j,+ isFocused: k,+ isFocusVisible: A,+ layout: t.layout || "stack",+ orientation: a,+ state: s+ }, N = ME({+ ...t,+ children: void 0,+ defaultClassName: "react-aria-ListBox",+ values: M+ }), P = null;+ j && t.renderEmptyState && (P = /*#__PURE__*/ B.createElement("div", {+ role: "option",+ style: { display: "contents" }+ }, t.renderEmptyState(M)));+ let ee = Eg(t, { global: !0 });+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(ee, N, x, O, w?.collectionProps),+ ref: n,+ slot: t.slot || void 0,+ onScroll: t.onScroll,+ "data-drop-target": T || void 0,+ "data-empty": j || void 0,+ "data-focused": k || void 0,+ "data-focus-visible": A || void 0,+ "data-layout": t.layout || "stack",+ "data-orientation": a+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [oO, t],+ [sO, s],+ [BD, {+ dragAndDropHooks: r,+ dragState: S,+ dropState: C+ }],+ [qD, { elementType: "div" }],+ [VD, { render: Yoe }],+ [VE, {+ name: "ListBoxSection",+ render: qoe+ }]+ ] }, /*#__PURE__*/ B.createElement(GD, null, /*#__PURE__*/ B.createElement(y, {+ collection: c,+ scrollRef: n,+ persistedKeys: UD(l, r, C),+ renderDropIndicator: HD(r, C)+ }))), P, E));+}+function qoe(e, t, n, r = "react-aria-ListBoxSection") {+ let i = (0, B.useContext)(sO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(BD), { CollectionBranch: s } = (0, B.useContext)(WE), [c, l] = FE(), { headingProps: u, groupProps: d } = Dte({+ heading: l,+ "aria-label": e["aria-label"] ?? void 0+ }), f = ME({+ ...e,+ id: void 0,+ children: void 0,+ defaultClassName: r,+ values: void 0+ }), p = Eg(e, { global: !0 });+ return delete p.id, /*#__PURE__*/ B.createElement(RE.section, {+ ...U(p, f, d),+ ref: t+ }, /*#__PURE__*/ B.createElement(WD.Provider, { value: {+ ...u,+ ref: c+ } }, /*#__PURE__*/ B.createElement(s, {+ collection: i.collection,+ parent: n,+ renderDropIndicator: HD(a, o)+ })));+}+var Joe = /*#__PURE__*/ tg(ip, function(e, t, n) {+ let r = Nh(t), i = (0, B.useContext)(sO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(BD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({+ key: n.key,+ "aria-label": e?.["aria-label"]+ }, i, r), { hoverProps: p, isHovered: m } = sy({+ isDisabled: !f.allowsSelection && !f.hasAction && !c,+ onHoverStart: n.props.onHoverStart,+ onHoverChange: n.props.onHoverChange,+ onHoverEnd: n.props.onHoverEnd+ }), { keyboardProps: h } = Mh(e), { focusProps: g } = vh(e), _ = null;+ o && a && (_ = a.useDraggableItem({+ key: n.key,+ hasAction: f.hasAction+ }, o));+ let v = null;+ s && a && (v = a.useDroppableItem({ target: {+ type: "item",+ key: n.key,+ dropPosition: "on"+ } }, s, r));+ let y = o && o.isDragging(n.key), b = ME({+ ...e,+ id: void 0,+ children: e.children,+ defaultClassName: "react-aria-ListBoxItem",+ values: {+ ...f,+ isHovered: m,+ selectionMode: i.selectionManager.selectionMode,+ selectionBehavior: i.selectionManager.selectionBehavior,+ allowsDragging: !!o,+ isDragging: y,+ isDropTarget: v?.isDropTarget+ }+ });+ (0, B.useEffect)(() => {+ n.textValue;+ }, [n.textValue]);+ let x = e.href ? RE.a : RE.div, S = Eg(e, { global: !0 });+ return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ B.createElement(x, {+ ...U(S, b, l, p, h, g, _?.dragProps, v?.dropProps),+ ref: r,+ "data-allows-dragging": !!o || void 0,+ "data-selected": f.isSelected || void 0,+ "data-disabled": f.isDisabled || void 0,+ "data-hovered": m || void 0,+ "data-focused": f.isFocused || void 0,+ "data-focus-visible": f.isFocusVisible || void 0,+ "data-pressed": f.isPressed || void 0,+ "data-dragging": y || void 0,+ "data-drop-target": v?.isDropTarget || void 0,+ "data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode+ }, /*#__PURE__*/ B.createElement(jE, { values: [[ZE, { slots: {+ [AE]: u,+ label: u,+ description: d+ } }], [KD, { isSelected: f.isSelected }]] }, b.children));+});+function Yoe(e, t) {+ t = Nh(t);+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(BD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);+ return a ? null : /*#__PURE__*/ B.createElement(Zoe, {+ ...e,+ dropIndicatorProps: i,+ isDropTarget: o,+ ref: t+ });+}+function Xoe(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = ME({+ ...i,+ defaultClassName: "react-aria-DropIndicator",+ values: { isDropTarget: r }+ });+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(RE.div, {+ ...n,+ ...a,+ role: "option",+ ref: t,+ "data-drop-target": r || void 0+ }));+}+var Zoe = /*#__PURE__*/ (0, B.forwardRef)(Xoe);+tg(rp, function(e, t, n) {+ let r = (0, B.useContext)(sO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);+ aO((0, B.useMemo)(() => ({+ onLoadMore: a,+ collection: r?.collection,+ sentinelRef: c,+ scrollOffset: o+ }), [+ a,+ o,+ r?.collection+ ]), c);+ let l = ME({+ ...s,+ id: void 0,+ children: n.rendered,+ defaultClassName: "react-aria-ListBoxLoadingIndicator",+ values: void 0+ });+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement("div", {+ style: {+ position: "relative",+ width: 0,+ height: 0+ },+ inert: JD(!0)+ }, /*#__PURE__*/ B.createElement("div", {+ "data-testid": "loadMoreSentinel",+ ref: c,+ style: {+ position: "absolute",+ height: 1,+ width: 1+ }+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(Eg(e, { global: !0 }), { tabIndex: -1 }),+ ...l,+ role: "option",+ ref: t+ }, l.children)));+});+//#endregion+//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs+var Qoe = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });+//#endregion+//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs+function lO(e) {+ let [t, n] = L_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, B.useState)(null);+ return {+ isOpen: t,+ setOpen: n,+ open: (0, B.useCallback)(() => {+ n(!0);+ }, [n]),+ close: (0, B.useCallback)(() => {+ n(!1);+ }, [n]),+ toggle: (0, B.useCallback)(() => {+ n(!t);+ }, [n, t]),+ point: r,+ setPoint: i+ };+}+//#endregion+//#region node_modules/react-aria/dist/private/utils/animation.mjs+function uO(e, t = !0) {+ let [n, r] = (0, B.useState)(!0), i = n && t;+ return Hp(() => {+ if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();+ }, [e, i]), fO(e, i, (0, B.useCallback)(() => r(!1), [])), i;+}+function dO(e, t) {+ let [n, r] = (0, B.useState)(t ? "open" : "closed");+ switch (n) {+ case "open":+ t || r("exiting");+ break;+ case "closed":+ case "exiting": t && r("open");+ }+ let i = n === "exiting";+ return fO(e, i, (0, B.useCallback)(() => {+ r((e) => e === "exiting" ? "closed" : e);+ }, [])), i;+}+function fO(e, t, n) {+ Hp(() => {+ if (t && e.current) {+ if (!("getAnimations" in e.current)) {+ n();+ return;+ }+ let t = e.current.getAnimations();+ if (t.length === 0) {+ n();+ return;+ }+ let r = !1;+ return Promise.allSettled(t.map((e) => e.finished)).then(() => {+ r || (0, $f.flushSync)(() => {+ n();+ });+ }), () => {+ r = !0;+ };+ }+ }, [+ e,+ t,+ n+ ]);+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Popover.mjs+var pO = /*#__PURE__*/ (0, B.createContext)(null), mO = /*#__PURE__*/ (0, B.createContext)(null), hO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, pO);+ let n = (0, B.useContext)(TO), r = lO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = dO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();+ if (s) {+ let t = e.children;+ return typeof t == "function" && (t = t({+ trigger: e.trigger || null,+ placement: "bottom",+ isEntering: !1,+ isExiting: !1,+ defaultChildren: null+ })), /*#__PURE__*/ B.createElement(B.Fragment, null, t);+ }+ return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement($oe, {+ ...e,+ triggerRef: e.triggerRef,+ state: i,+ popoverRef: t,+ isExiting: o,+ dir: c+ });+});+function $oe({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {+ let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(mO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({+ ...i,+ offset: i.offset ?? 8,+ arrowRef: a,+ groupRef: c ? s : o+ }, e), m = i.popoverRef, h = uO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = ME({+ ...i,+ defaultClassName: "react-aria-Popover",+ values: {+ trigger: i.trigger || null,+ placement: f,+ isEntering: g,+ isExiting: t+ }+ }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, B.useState)(i.trigger === "PreviewTrigger");+ Hp(() => {+ m.current && b(v && !m.current.querySelector("[role=dialog]"));+ }, [m, v]), (0, B.useEffect)(() => {+ y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Km() !== "pointer") && m.current && !jp(m.current) && ih(m.current);+ }, [+ y,+ m,+ i.trigger+ ]);+ let x = (0, B.useMemo)(() => {+ let e = _.children;+ if (r) for (let t of r) e = /*#__PURE__*/ B.createElement(t.Provider, { value: null }, e);+ return e;+ }, [_.children, r]), [S, C] = (0, B.useState)(null), w = (0, B.useCallback)(() => {+ i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");+ }, [i.triggerRef]);+ Hp(w, [w]), Zy({+ ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,+ onResize: w+ });+ let T = {+ ...l.style,+ "--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,+ ..._.style,+ "--trigger-width": _.style?.["--trigger-width"] || S+ }, E = /*#__PURE__*/ B.createElement(RE.div, {+ ...U(Eg(i, { global: !0 }), l),+ ..._,+ id: y ? i.id : void 0,+ role: y ? "dialog" : void 0,+ tabIndex: y ? -1 : void 0,+ "aria-label": i["aria-label"],+ "aria-labelledby": i["aria-labelledby"],+ ref: m,+ slot: i.slot || void 0,+ style: T,+ dir: i.dir,+ "data-trigger": i.trigger,+ "data-placement": f,+ "data-entering": g || void 0,+ "data-exiting": t || void 0+ }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(Qoe.Provider, { value: {+ ...d,+ placement: f,+ ref: a+ } }, x), /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }));+ return c ? /*#__PURE__*/ B.createElement(ty, {+ ...i,+ shouldContainFocus: y && i.trigger !== "PreviewTrigger",+ isExiting: t,+ portalContainer: n ?? s?.current ?? void 0+ }, E) : /*#__PURE__*/ B.createElement(ty, {+ ...i,+ shouldContainFocus: y && i.trigger !== "PreviewTrigger",+ isExiting: t,+ portalContainer: n+ }, !i.isNonModal && e.isOpen && /*#__PURE__*/ B.createElement("div", {+ "data-testid": "underlay",+ ...u,+ style: {+ position: "fixed",+ inset: 0+ }+ }), /*#__PURE__*/ B.createElement("div", {+ ref: o,+ style: { display: "contents" }+ }, /*#__PURE__*/ B.createElement(mO.Provider, { value: o }, E)));+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Keyboard.mjs+var ese = /*#__PURE__*/ (0, B.createContext)({});+//#endregion+//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs+function gO(e) {+ let t = lO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {+ a([]), t.close();+ }, s = (e, t) => {+ a((n) => t > n.length ? n : [...n.slice(0, t), e]);+ }, c = (e, t) => {+ a((n) => n[t] === e ? n.slice(0, t) : n);+ };+ return {+ focusStrategy: n,+ ...t,+ open(e = null) {+ r(e), t.open();+ },+ toggle(e = null) {+ r(e), t.toggle();+ },+ close() {+ o();+ },+ expandedKeysStack: i,+ openSubmenu: s,+ closeSubmenu: c+ };+}+//#endregion+//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs+var tse = class {+ constructor(e, { expandedKeys: t } = {}) {+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();+ let n = (e) => {+ if (this.keyMap.set(e.key, e), e.childNodes && (e.type === "section" || t.has(e.key))) for (let t of e.childNodes) n(t);+ };+ for (let t of e) n(t);+ let r = null, i = 0;+ for (let [e, t] of this.keyMap) r ? (r.nextKey = e, t.prevKey = r.key) : (this.firstKey = e, t.prevKey = void 0), t.type === "item" && (t.index = i++), r = t, r.nextKey = void 0;+ this.lastKey = r?.key ?? null;+ }+ *[Symbol.iterator]() {+ yield* this.iterable;+ }+ get size() {+ return this.keyMap.size;+ }+ getKeys() {+ return this.keyMap.keys();+ }+ getKeyBefore(e) {+ let t = this.keyMap.get(e);+ return t ? t.prevKey ?? null : null;+ }+ getKeyAfter(e) {+ let t = this.keyMap.get(e);+ return t ? t.nextKey ?? null : null;+ }+ getFirstKey() {+ return this.firstKey;+ }+ getLastKey() {+ return this.lastKey;+ }+ getItem(e) {+ return this.keyMap.get(e) ?? null;+ }+ at(e) {+ let t = [...this.getKeys()];+ return this.getItem(t[e]);+ }+};+//#endregion+//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs+function nse(e) {+ let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = ZD(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = nO(e, (0, B.useCallback)((e) => new tse(e, { expandedKeys: n }), [n]), null);+ return (0, B.useEffect)(() => {+ i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);+ }, [o, i.focusedKey]), {+ collection: o,+ expandedKeys: n,+ disabledKeys: a,+ toggleKey: (e) => {+ r(rse(n, e));+ },+ setExpandedKeys: r,+ selectionManager: new $D(o, i)+ };+}+function rse(e, t) {+ let n = new Set(e);+ return n.has(t) ? n.delete(t) : n.add(t), n;+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Menu.mjs+var _O = /*#__PURE__*/ (0, B.createContext)(null), vO = /*#__PURE__*/ (0, B.createContext)(null), yO = /*#__PURE__*/ (0, B.createContext)(null), bO = /*#__PURE__*/ (0, B.createContext)(null);+function ise(e) {+ let t = gO(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({+ ...e,+ type: "menu"+ }, t, n), a = (0, B.useRef)(null);+ return Vh() ? null : /*#__PURE__*/ B.createElement(jE, { values: [+ [_O, {+ ...i,+ ref: a+ }],+ [TO, t],+ [yO, t],+ [pO, {+ trigger: "MenuTrigger",+ triggerRef: n,+ scrollRef: a,+ placement: "bottom start",+ "aria-labelledby": i["aria-labelledby"],+ offset: e.trigger === "contextMenu" ? 0 : void 0+ }]+ ] }, /*#__PURE__*/ B.createElement(pte, {+ ...r,+ ref: n,+ isPressed: t.isOpen+ }, e.children));+}+var ase = /*#__PURE__*/ (0, B.createContext)(null);+(class extends tp {+ static {+ this.type = "submenutrigger";+ }+ filter(e, t, n) {+ let r = e.getItem(this.firstChildKey);+ if (r && n(r.textValue, this)) {+ let n = this.clone();+ return t.addDescendants(n, e), n;+ }+ return null;+ }+});+var ose = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ return [e, t] = PE(e, t, _O), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(sse, {+ props: e,+ collection: n,+ menuRef: t+ }));+});+function sse({ props: e, collection: t, menuRef: n }) {+ [e, n] = PE(e, n, zE);+ let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = nse({+ ...e,+ collection: a,+ children: void 0+ }), s = (0, B.useContext)(yO), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(WE), { menuProps: u } = kte({+ ...e,+ isVirtualized: c,+ onClose: e.onClose || s?.close+ }, o, n), d = ME({+ ...e,+ children: void 0,+ defaultClassName: "react-aria-Menu",+ values: { isEmpty: o.collection.size === 0 }+ }), f = null;+ o.collection.size === 0 && e.renderEmptyState && (f = /*#__PURE__*/ B.createElement("div", {+ role: "menuitem",+ style: { display: "contents" }+ }, e.renderEmptyState()));+ let p = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(p, d, u),+ ref: n,+ slot: e.slot || void 0,+ "data-empty": o.collection.size === 0 || void 0,+ onScroll: e.onScroll+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [vO, o],+ [qD, { elementType: "div" }],+ [VE, {+ name: "MenuSection",+ render: xO+ }],+ [ase, {+ parentMenuRef: n,+ shouldUseVirtualFocus: i?.shouldUseVirtualFocus+ }],+ [CO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],+ [zE, null],+ [BE, null],+ [bO, o.selectionManager],+ [yO, s ?? gO({})]+ ] }, /*#__PURE__*/ B.createElement(GD, null, /*#__PURE__*/ B.createElement(l, {+ collection: o.collection,+ persistedKeys: GE(o.selectionManager.focusedKey),+ scrollRef: n+ }))), f));+}+var cse = class extends $D {+ constructor(e, t) {+ super(e.collection, t), this.parent = e;+ }+ get focusedKey() {+ return this.parent.focusedKey;+ }+ get isFocused() {+ return this.parent.isFocused;+ }+ setFocusedKey(e, t) {+ return this.parent.setFocusedKey(e, t);+ }+ setFocused(e) {+ this.parent.setFocused(e);+ }+ get childFocusStrategy() {+ return this.parent.childFocusStrategy;+ }+};+function xO(e, t, n, r = "react-aria-MenuSection") {+ let i = (0, B.useContext)(vO), { CollectionBranch: a } = (0, B.useContext)(WE), [o, s] = FE(), { headingProps: c, groupProps: l } = jte({+ heading: s,+ "aria-label": n.props["aria-label"] ?? void 0+ }), u = ME({+ ...e,+ id: void 0,+ children: void 0,+ defaultClassName: r,+ className: n.props?.className,+ style: n.props?.style,+ values: void 0+ }), d = (0, B.useContext)(bO), f = ZD(e), p = e.selectionMode == null ? d : new cse(d, f), m = NE(CO)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });+ return delete h.id, /*#__PURE__*/ B.createElement(RE.section, {+ ...U(h, u, l),+ ref: t+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [WD, {+ ...c,+ ref: o+ }],+ [bO, p],+ [CO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]+ ] }, /*#__PURE__*/ B.createElement(a, {+ collection: i.collection,+ parent: n+ })));+}+var SO = /*#__PURE__*/ ng(ap, xO), CO = /*#__PURE__*/ (0, B.createContext)(null), wO = /*#__PURE__*/ tg(ip, function(e, t, n) {+ [e, t] = PE(e, t, CO);+ let r = NE(CO)?.id, i = (0, B.useContext)(vO), a = Nh(t), o = (0, B.useContext)(bO), { isVirtualized: s } = (0, B.useContext)(WE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({+ ...e,+ id: r,+ key: n.key,+ selectionManager: o,+ isVirtualized: s+ }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = ME({+ ...e,+ id: void 0,+ children: n.rendered,+ defaultClassName: "react-aria-MenuItem",+ values: {+ ...f,+ isHovered: m,+ isFocusVisible: f.isFocusVisible,+ selectionMode: o.selectionMode,+ selectionBehavior: o.selectionBehavior,+ hasSubmenu: !!e["aria-haspopup"],+ isOpen: e["aria-expanded"] === "true"+ }+ }), g = e.href ? RE.a : RE.div, _ = Eg(e, { global: !0 });+ return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(g, {+ ...U(_, h, c, p),+ ref: a,+ "data-disabled": f.isDisabled || void 0,+ "data-hovered": m || void 0,+ "data-focused": f.isFocused || void 0,+ "data-focus-visible": f.isFocusVisible || void 0,+ "data-pressed": f.isPressed || void 0,+ "data-selected": f.isSelected || void 0,+ "data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,+ "data-has-submenu": !!e["aria-haspopup"] || void 0,+ "data-open": e["aria-expanded"] === "true" || void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [ZE, { slots: {+ [AE]: l,+ label: l,+ description: u+ } }],+ [ese, d],+ [KD, { isSelected: f.isSelected }]+ ] }, h.children));+});+tg(rp, function(e, t, n) {+ let r = (0, B.useContext)(vO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);+ aO((0, B.useMemo)(() => ({+ onLoadMore: a,+ collection: r?.collection,+ sentinelRef: c,+ scrollOffset: o+ }), [+ a,+ o,+ r?.collection+ ]), c);+ let l = ME({+ ...s,+ id: void 0,+ children: n.rendered,+ defaultClassName: "react-aria-MenuLoadingIndicator",+ values: void 0+ });+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement("div", {+ style: {+ position: "relative",+ width: 0,+ height: 0+ },+ inert: JD(!0)+ }, /*#__PURE__*/ B.createElement("div", {+ "data-testid": "loadMoreSentinel",+ ref: c,+ style: {+ position: "absolute",+ height: 1,+ width: 1+ }+ })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(Eg(e, { global: !0 }), { tabIndex: -1 }),+ ...l,+ role: "menuitem",+ ref: t+ }, l.children)));+});+//#endregion+//#region node_modules/react-aria-components/dist/private/Dialog.mjs+var lse = /*#__PURE__*/ (0, B.createContext)(null), TO = /*#__PURE__*/ (0, B.createContext)(null), EO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let n = e["aria-labelledby"];+ [e, t] = PE(e, t, lse);+ let { dialogProps: r, titleProps: i, contentProps: a } = hte({+ ...e,+ "aria-labelledby": n+ }, t), o = (0, B.useContext)(TO);+ !r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);+ let s = ME({+ defaultClassName: "react-aria-Dialog",+ className: e.className,+ style: e.style,+ children: e.children,+ values: { close: o?.close || (() => {}) }+ }), c = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(RE.section, {+ ...U(c, s, r),+ render: e.render,+ ref: t,+ slot: e.slot || void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [YE, { slots: {+ [AE]: {},+ title: {+ ...i,+ level: 2+ }+ } }],+ [ZE, { slots: {+ [AE]: {},+ description: a+ } }],+ [qE, { slots: {+ [AE]: {},+ close: { onPress: () => o?.close() }+ } }]+ ] }, s.children));+}), DO = typeof document < "u" && window.visualViewport;+function use() {+ let e = Om(), [t, n] = (0, B.useState)(() => e ? {+ width: 0,+ height: 0+ } : OO());+ return (0, B.useEffect)(() => {+ let e = (e) => {+ n((t) => e.width === t.width && e.height === t.height ? t : e);+ }, t = () => {+ DO && DO.scale > 1 || e(OO());+ }, r, i = (t) => {+ DO && DO.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {+ let t = kp();+ (!t || !lg(t)) && e({+ width: document.documentElement.clientWidth,+ height: document.documentElement.clientHeight+ });+ }));+ };+ return e(OO()), em() && nm() && window.addEventListener("blur", i, !0), DO ? DO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {+ cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), DO ? DO.removeEventListener("resize", t) : window.removeEventListener("resize", t);+ };+ }, []), t;+}+function OO() {+ return {+ width: DO ? Math.min(DO.width * DO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,+ height: DO ? DO.height * DO.scale : document.documentElement.clientHeight+ };+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Modal.mjs+var dse = /*#__PURE__*/ (0, B.createContext)(null), kO = /*#__PURE__*/ (0, B.createContext)(null), fse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ if ((0, B.useContext)(kO)) return /*#__PURE__*/ B.createElement(jO, {+ ...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__*/ B.createElement(AO, {+ isDismissable: n,+ isKeyboardDismissDisabled: r,+ isOpen: i,+ defaultOpen: a,+ onOpenChange: o,+ isEntering: c,+ isExiting: l,+ UNSTABLE_portalContainer: u,+ shouldCloseOnInteractOutside: d+ }, /*#__PURE__*/ B.createElement(jO, {+ ...f,+ modalRef: t+ }, s));+});+function pse(e, t) {+ [e, t] = PE(e, t, dse);+ let n = (0, B.useContext)(TO), r = lO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = dO(a, i.isOpen), c = dO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();+ return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(mse, {+ ...e,+ state: i,+ isExiting: l,+ overlayRef: a,+ modalRef: o+ });+}+var AO = /*#__PURE__*/ (0, B.forwardRef)(pse);+function mse({ UNSTABLE_portalContainer: e, ...t }) {+ let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = uO(t.overlayRef) || t.isEntering || !1, s = ME({+ ...t,+ defaultClassName: "react-aria-ModalOverlay",+ values: {+ isEntering: o,+ isExiting: t.isExiting,+ state: r+ }+ }), c = use(), l, u;+ if (typeof document < "u") {+ let e = m_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;+ l = e.scrollWidth - t, u = e.scrollHeight - n;+ }+ let d = {+ ...s.style,+ "--visual-viewport-width": c.width + "px",+ "--visual-viewport-height": c.height + "px",+ "--page-width": l === void 0 ? void 0 : l + "px",+ "--page-height": u === void 0 ? void 0 : u + "px"+ };+ return /*#__PURE__*/ B.createElement(ty, {+ isExiting: t.isExiting,+ portalContainer: e+ }, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(Eg(t, { global: !0 }), a),+ ...s,+ style: d,+ ref: t.overlayRef,+ "data-entering": o || void 0,+ "data-exiting": t.isExiting || void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [[kO, {+ modalProps: i,+ modalRef: n,+ isExiting: t.isExiting,+ isDismissable: t.isDismissable+ }], [TO, r]] }, s.children)));+}+function jO(e) {+ let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(kO), a = (0, B.useContext)(TO), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = uO(o), c = ME({+ ...e,+ defaultClassName: "react-aria-Modal",+ values: {+ isEntering: s,+ isExiting: r,+ state: a+ }+ });+ return /*#__PURE__*/ B.createElement(RE.div, {+ ...U(Eg(e, { global: !0 }), t),+ ...c,+ ref: o,+ "data-entering": s || void 0,+ "data-exiting": r || void 0+ }, i && /*#__PURE__*/ B.createElement(Nb, { onDismiss: a.close }), c.children);+}+//#endregion+//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs+var hse = Math.round(Math.random() * 1e10), gse = 0;+function _se(e) {+ let t = (0, B.useMemo)(() => e.name || `radio-group-${hse}-${++gse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({+ ...e,+ value: n+ }), c = (t) => {+ !e.isReadOnly && !e.isDisabled && (r(t), s.commitValidation());+ }, l = s.displayValidation.isInvalid;+ return {+ ...s,+ name: t,+ selectedValue: n,+ defaultSelectedValue: e.value === void 0 ? e.defaultValue ?? null : i,+ setSelectedValue: c,+ lastFocusedValue: a,+ setLastFocusedValue: o,+ isDisabled: e.isDisabled || !1,+ isReadOnly: e.isReadOnly || !1,+ isRequired: e.isRequired || !1,+ validationState: e.validationState || (l ? "invalid" : null),+ isInvalid: l+ };+}+//#endregion+//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs+var vse = /*#__PURE__*/ (0, B.createContext)(null), yse = /*#__PURE__*/ (0, B.createContext)(null), MO = /*#__PURE__*/ (0, B.createContext)(null), NO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, vse);+ let { validationBehavior: n } = NE($E) || {}, r = e.validationBehavior ?? n ?? "native", i = _se({+ ...e,+ validationBehavior: r+ }), [a, o] = FE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({+ ...e,+ label: o,+ validationBehavior: r+ }, i), f = ME({+ ...e,+ values: {+ orientation: e.orientation || "vertical",+ isDisabled: i.isDisabled,+ isReadOnly: i.isReadOnly,+ isRequired: i.isRequired,+ isInvalid: i.isInvalid,+ state: i+ },+ defaultClassName: "react-aria-RadioGroup"+ }), p = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(RE.div, {+ ...U(p, f, s),+ ref: t,+ slot: e.slot || void 0,+ "data-orientation": e.orientation || "vertical",+ "data-invalid": i.isInvalid || void 0,+ "data-disabled": i.isDisabled || void 0,+ "data-readonly": i.isReadOnly || void 0,+ "data-required": i.isRequired || void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [MO, i],+ [KE, {+ ...c,+ ref: a,+ elementType: "span"+ }],+ [ZE, { slots: {+ description: l,+ errorMessage: u+ } }],+ [QE, d]+ ] }, /*#__PURE__*/ B.createElement(GD, null, f.children)));+}), PO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { inputRef: n = null, ...r } = e;+ [e, t] = PE(r, t, yse);+ let i = B.useContext(MO), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({+ ...IE(e),+ children: typeof e.children == "function" || e.children+ }, i, a);+ return /*#__PURE__*/ B.createElement(FO.Provider, { value: {+ ...o,+ inputRef: a,+ defaultClassName: "react-aria-Radio"+ } }, /*#__PURE__*/ B.createElement(bse, {+ ...e,+ ref: t+ }));+}), FO = /*#__PURE__*/ (0, B.createContext)(null), bse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(FO), l = B.useContext(MO), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({+ ...e,+ isDisabled: p+ }), g = ME({+ ...e,+ defaultClassName: s,+ values: {+ isSelected: i,+ isPressed: o,+ isHovered: h,+ isFocused: u,+ isFocusVisible: d,+ isDisabled: a,+ isReadOnly: l.isReadOnly,+ isInvalid: l.isInvalid,+ isRequired: l.isRequired+ }+ }), _ = Eg(e, { global: !0 });+ return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(RE.label, {+ ...U(_, n, m, g),+ ref: t,+ "data-selected": i || void 0,+ "data-pressed": o || void 0,+ "data-hovered": h || void 0,+ "data-focused": u || void 0,+ "data-focus-visible": d || void 0,+ "data-disabled": a || void 0,+ "data-readonly": l.isReadOnly || void 0,+ "data-invalid": l.isInvalid || void 0,+ "data-required": l.isRequired || void 0+ }, /*#__PURE__*/ B.createElement(H_, { elementType: "span" }, /*#__PURE__*/ B.createElement("input", {+ ...U(r, f),+ ref: c+ })), g.children);+});+//#endregion+//#region node_modules/react-stately/dist/private/select/useSelectState.mjs+function xse(e) {+ let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = lO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [+ e.defaultValue,+ e.defaultSelectedKey,+ t+ ]), [s, c] = L_((0, B.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [+ e.value,+ e.selectedKey,+ t+ ]), o, e.onChange), l = t === "single" && Array.isArray(s) ? s[0] : s, u = (n) => {+ if (t === "single") {+ let t = Array.isArray(n) ? n[0] ?? null : n;+ c(t), t !== l && e.onSelectionChange?.(t);+ } else {+ let e = [];+ Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);+ }+ }, d = rO({+ ...e,+ selectionMode: t,+ disallowEmptySelection: t === "single",+ allowDuplicateSelectionEvents: !0,+ selectedKeys: (0, B.useMemo)(() => Sse(l), [l]),+ onSelectionChange: (e) => {+ if (e !== "all") {+ if (t === "single") {+ let t = e.values().next().value ?? null;+ u(t);+ } else u([...e]);+ n && r.close(), m.commitValidation();+ }+ }+ }), f = d.selectionManager.firstSelectedKey, p = (0, B.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = O_({+ ...e,+ value: Array.isArray(l) && l.length === 0 ? null : l+ }), [h, g] = (0, B.useState)(!1), [_] = (0, B.useState)(l);+ return {+ ...m,+ ...d,+ ...r,+ value: l,+ defaultValue: o ?? _,+ setValue: u,+ selectedKey: f,+ setSelectedKey: u,+ selectedItem: p[0] ?? null,+ selectedItems: p,+ defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? _ : null),+ focusStrategy: i,+ open(t = null) {+ (d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.open());+ },+ toggle(t = null) {+ (d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.toggle());+ },+ isFocused: h,+ setFocused: g+ };+}+function Sse(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 Cse(e) {+ return e && e.__esModule ? e.default : e;+}+var IO = /*#__PURE__*/ (0, B.createContext)(null), LO = /*#__PURE__*/ (0, B.createContext)(null), wse = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, IO);+ let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, B.useMemo)(() => typeof n == "function" ? n({+ isOpen: !1,+ isDisabled: r,+ isInvalid: i,+ isRequired: a,+ isFocused: !1,+ isFocusVisible: !1,+ defaultChildren: null+ }) : n, [+ n,+ r,+ i,+ a+ ]);+ return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(Ese, {+ props: e,+ collection: n,+ selectRef: t+ }));+}), Tse = [+ KE,+ qE,+ ZE+];+function Ese({ props: e, selectRef: t, collection: n }) {+ let { validationBehavior: r } = NE($E) || {}, i = e.validationBehavior ?? r ?? "native", a = xse({+ ...e,+ collection: n,+ children: void 0,+ validationBehavior: i+ }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = FE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({+ ...IE(e),+ label: u,+ validationBehavior: i+ }, a, c), y = (0, B.useMemo)(() => ({+ isOpen: a.isOpen,+ isFocused: a.isFocused,+ isFocusVisible: o,+ isDisabled: e.isDisabled || !1,+ isInvalid: v.isInvalid || !1,+ isRequired: e.isRequired || !1+ }), [+ a.isOpen,+ a.isFocused,+ o,+ e.isDisabled,+ v.isInvalid,+ e.isRequired+ ]), b = ME({+ ...e,+ values: y,+ defaultClassName: "react-aria-Select"+ }), x = Eg(e, { global: !0 });+ delete x.id;+ let S = (0, B.useRef)(null);+ return /*#__PURE__*/ B.createElement(jE, { values: [+ [IO, e],+ [LO, a],+ [RO, p],+ [KE, {+ ...d,+ ref: l,+ elementType: "span"+ }],+ [qE, {+ ...f,+ ref: c,+ isPressed: a.isOpen,+ autoFocus: e.autoFocus+ }],+ [TO, a],+ [pO, {+ trigger: "Select",+ triggerRef: c,+ scrollRef: S,+ placement: "bottom start",+ "aria-labelledby": m["aria-labelledby"],+ clearContexts: Tse+ }],+ [oO, {+ ...m,+ ref: S+ }],+ [sO, a],+ [ZE, { slots: {+ description: h,+ errorMessage: g+ } }],+ [QE, v]+ ] }, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(x, b, s),+ ref: t,+ slot: e.slot || void 0,+ "data-focused": a.isFocused || void 0,+ "data-focus-visible": o || void 0,+ "data-open": a.isOpen || void 0,+ "data-disabled": e.isDisabled || void 0,+ "data-invalid": v.isInvalid || void 0,+ "data-required": e.isRequired || void 0+ }, b.children, /*#__PURE__*/ B.createElement(ax, {+ ..._,+ autoComplete: e.autoComplete+ })));+}+for (var RO = /*#__PURE__*/ (0, B.createContext)(null), Dse = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, RO);+ let n = (0, B.useContext)(LO), { placeholder: r } = NE(IO), i = n.selectedItems.map((e) => {+ let t = e.props?.children;+ return typeof t == "function" && (t = t({+ isHovered: !1,+ isPressed: !1,+ isSelected: !1,+ isFocused: !1,+ isFocusVisible: !1,+ isDisabled: !1,+ selectionMode: "single",+ selectionBehavior: "toggle"+ })), t;+ }), a = gte(), o = (0, B.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, B.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [+ s,+ a,+ o+ ]), l = (0, B.useMemo)(() => {+ if (s === "single") return i[0];+ let e = a.formatToParts(o);+ if (e.length === 0) return null;+ let t = 0;+ return e.map((e) => e.type === "element" ? /*#__PURE__*/ B.createElement(B.Fragment, { key: t }, i[t++]) : e.value);+ }, [+ s,+ a,+ o,+ i+ ]), u = wg(Cse(zD), "react-aria-components"), d = ME({+ ...e,+ defaultChildren: l ?? r ?? u.format("selectPlaceholder"),+ defaultClassName: "react-aria-SelectValue",+ values: {+ selectedItem: n.selectedItems[0]?.value ?? null,+ selectedItems: (0, B.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),+ selectedText: c,+ isPlaceholder: n.selectedItems.length === 0,+ state: n+ }+ }), f = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(RE.span, {+ ref: t,+ ...f,+ ...d,+ "data-placeholder": n.selectedItems.length === 0 || void 0+ }, /*#__PURE__*/ B.createElement(ZE.Provider, { value: void 0 }, d.children));+}), Ose = /*#__PURE__*/ (0, B.createContext)(null), zO = /*#__PURE__*/ (0, B.createContext)(null), kse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { inputRef: n = null, ...r } = e;+ [e, t] = PE(r, t, Ose);+ let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = ene({+ ...IE(e),+ children: typeof e.children == "function" || e.children+ }, a, i);+ return /*#__PURE__*/ B.createElement(jE, { values: [[zO, a], [BO, {+ ...o,+ inputRef: i,+ defaultClassName: "react-aria-Switch"+ }]] }, /*#__PURE__*/ B.createElement(Ase, {+ ...e,+ ref: t+ }));+}), BO = /*#__PURE__*/ (0, B.createContext)(null), Ase = /*#__PURE__*/ (0, B.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, B.useContext)(BO), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(zO), { hoverProps: _, isHovered: v } = sy({+ ...e,+ isDisabled: h+ }), y = ME({+ ...e,+ defaultClassName: u,+ values: {+ isSelected: i,+ isPressed: s,+ isHovered: v,+ isFocused: f,+ isFocusVisible: p,+ isDisabled: a,+ isReadOnly: o,+ isInvalid: c,+ isRequired: d || !1,+ state: g+ }+ }), b = Eg(e, { global: !0 });+ return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(RE.label, {+ ...U(b, n, _, y),+ ref: t,+ slot: e.slot || void 0,+ "data-selected": i || void 0,+ "data-pressed": s || void 0,+ "data-hovered": v || void 0,+ "data-focused": f || void 0,+ "data-focus-visible": p || void 0,+ "data-disabled": a || void 0,+ "data-readonly": o || void 0,+ "data-invalid": c || void 0,+ "data-required": d || void 0+ }, /*#__PURE__*/ B.createElement(H_, { elementType: "span" }, /*#__PURE__*/ B.createElement("input", {+ ...U(r, m),+ ref: l+ })), y.children);+}), VO = 10, HO = 5, jse = class {+ setup(e, t, n) {+ this.delegate = e, this.state = t, this.direction = n;+ }+ getDropTargetFromPoint(e, t, n) {+ let r = this.delegate.getDropTargetFromPoint(e, t, n);+ return !r || r.type === "root" ? r : this.resolveDropTarget(r, e, t, n);+ }+ resolveDropTarget(e, t, n, r) {+ let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;+ if (Math.abs(a) > HO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > VO && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {+ let t = this.state.collection.getKeyBefore(e.key);+ for (; t != null;) {+ let e = this.state.collection.getItem(t);+ if (e?.type === "item") break;+ t = e?.parentKey ?? null;+ }+ if (t != null) {+ let n = {+ type: "item",+ key: t,+ dropPosition: "after"+ };+ r(n) && (e = n);+ }+ }+ let l = this.getPotentialTargets(e, r);+ if (l.length === 0) return { type: "root" };+ let u;+ return l.length > 1 ? u = this.selectTarget(l, e, t, n, s, c) : (u = l[0], i.boundaryContext = null), u;+ }+ getPotentialTargets(e, t) {+ if (e.dropPosition === "on") return [e];+ let n = e, r = this.state.collection, i = r.getItem(n.key);+ for (; i && i?.type !== "item" && i.nextKey != null;) n.key = i.nextKey, i = r.getItem(i.nextKey);+ let a = [n];+ if (i && i.hasChildNodes && this.state.expandedKeys.has(i.key) && r.getChildren && n.dropPosition === "after") {+ let e = i.firstChildKey == null ? null : r.getItem(i.firstChildKey);+ for (; e && e.type !== "item";) e = e.nextKey == null ? null : r.getItem(e.nextKey);+ if (e?.type === "item") {+ let n = {+ type: "item",+ key: e.key,+ dropPosition: "before"+ };+ return t(n) ? [n] : [];+ }+ }+ if (i?.nextKey != null) return [e];+ let o = i?.parentKey, s = [];+ for (; o != null;) {+ let e = r.getItem(o), n = e?.nextKey == null ? null : r.getItem(e.nextKey);+ if (!n || n.parentKey !== o) {+ if (e?.type === "item") {+ let e = {+ type: "item",+ key: o,+ dropPosition: "after"+ };+ t(e) && s.push(e);+ }+ if (n) break;+ }+ o = e?.parentKey;+ }+ if (s.length > 0 && a.push(...s), a.length === 1) {+ let e = r.getKeyAfter(n.key), a = e == null ? null : r.getItem(e);+ if (e != null && a && i && a.level != null && i.level != null && a.level > i.level) {+ let n = {+ type: "item",+ key: e,+ dropPosition: "before"+ };+ if (t(n)) return [n];+ }+ }+ return a.filter(t);+ }+ selectTarget(e, t, n, r, i, a) {+ if (e.length < 2) return e[0];+ let o = this.pointerTracking, s = this.state.collection.getItem(t.key)?.parentKey;+ if (s == null) return e[0];+ (!o.boundaryContext || o.boundaryContext.parentKey !== s) && (o.boundaryContext = {+ parentKey: s,+ preferredTargetIndex: o.yDirection === "up" ? e.length - 1 : 0,+ lastSwitchY: r,+ lastSwitchX: n+ });+ let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);+ if (Math.abs(r - c.lastSwitchY) > HO && i) {+ let t = c.preferredTargetIndex || 0;+ i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;+ }+ if (l > VO && a) {+ let t = c.preferredTargetIndex || 0;+ a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;+ }+ return e[Math.max(0, Math.min(c.preferredTargetIndex || 0, e.length - 1))];+ }+ constructor() {+ this.delegate = null, this.state = null, this.direction = "ltr", this.pointerTracking = {+ lastY: 0,+ lastX: 0,+ yDirection: null,+ xDirection: null,+ boundaryContext: null+ };+ }+}, Mse = class {+ constructor(e) {+ this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];+ let t = (r) => {+ let i = this.keyMap.get(r.key);+ e.visitNode && (r = e.visitNode(r)), this.keyMap.set(r.key, r);+ let a = /* @__PURE__ */ new Set(), o = null, s = !1;+ if (r.type === "item") {+ for (let e of r.childNodes) if (e.props?.colSpan !== void 0) {+ s = !0;+ break;+ }+ }+ for (let e of r.childNodes) e.type === "cell" && s && (e.colspan = e.props?.colSpan, e.colSpan = e.props?.colSpan, e.colIndex = o ? (o.colIndex ?? o.index) + (o.colSpan ?? 1) : e.index), e.type === "cell" && e.parentKey == null && (e.parentKey = r.key), a.add(e.key), o ? (o.nextKey = e.key, e.prevKey = o.key) : e.prevKey = null, t(e), o = e;+ if (o && (o.nextKey = null), i) for (let e of i.childNodes) a.has(e.key) || n(e);+ }, n = (e) => {+ this.keyMap.delete(e.key);+ for (let t of e.childNodes) this.keyMap.get(t.key) === t && n(t);+ }, r = null;+ for (let [n, i] of e.items.entries()) {+ let e = {+ ...i,+ level: i.level ?? 0,+ key: i.key ?? "row-" + n,+ type: i.type ?? "row",+ value: i.value ?? null,+ hasChildNodes: !0,+ childNodes: [...i.childNodes],+ rendered: i.rendered,+ textValue: i.textValue ?? "",+ index: i.index ?? n+ };+ r ? (r.nextKey = e.key, e.prevKey = r.key) : e.prevKey = null, this.rows.push(e), t(e), r = e;+ }+ r && (r.nextKey = null);+ }+ *[Symbol.iterator]() {+ yield* [...this.rows];+ }+ get size() {+ return [...this.rows].length;+ }+ getKeys() {+ return this.keyMap.keys();+ }+ getKeyBefore(e) {+ let t = this.keyMap.get(e);+ return t ? t.prevKey ?? null : null;+ }+ getKeyAfter(e) {+ let t = this.keyMap.get(e);+ return t ? t.nextKey ?? null : null;+ }+ getFirstKey() {+ return [...this.rows][0]?.key;+ }+ getLastKey() {+ let e = [...this.rows];+ return e[e.length - 1]?.key;+ }+ getItem(e) {+ return this.keyMap.get(e) ?? null;+ }+ at(e) {+ let t = [...this.getKeys()];+ return this.getItem(t[e]);+ }+ getChildren(e) {+ return this.keyMap.get(e)?.childNodes || [];+ }+}, UO = "row-header-column-" + Math.random().toString(36).slice(2), WO = "row-header-column-" + Math.random().toString(36).slice(2); UO === WO;) WO = "row-header-column-" + Math.random().toString(36).slice(2);+function GO(e, t) {+ if (t.length === 0) return [];+ let n = [], r = /* @__PURE__ */ new Map();+ for (let i of t) {+ let t = i.parentKey, a = [i];+ for (; t != null;) {+ let n = e.get(t);+ if (!n) break;+ if (r.has(n)) {+ n.colSpan ??= 0, n.colSpan++, n.colspan = n.colSpan;+ let { column: e, index: t } = r.get(n);+ if (t > a.length) break;+ for (let n = t; n < a.length; n++) e.splice(n, 0, null);+ for (let t = a.length; t < e.length; t++) e[t] && r.has(e[t]) && (r.get(e[t]).index = t);+ } else n.colSpan = 1, n.colspan = 1, a.push(n), r.set(n, {+ column: a,+ index: a.length - 1+ });+ t = n.parentKey;+ }+ n.push(a), i.index = n.length - 1;+ }+ let i = Math.max(...n.map((e) => e.length)), a = Array(i).fill(0).map(() => []), o = 0;+ for (let e of n) {+ let t = i - 1;+ for (let n of e) {+ if (n) {+ let e = a[t], r = e.reduce((e, t) => e + (t.colSpan ?? 1), 0);+ if (r < o) {+ let i = {+ type: "placeholder",+ key: "placeholder-" + n.key,+ colspan: o - r,+ colSpan: o - r,+ index: r,+ value: null,+ rendered: null,+ level: t,+ hasChildNodes: !1,+ childNodes: [],+ textValue: ""+ };+ e.length > 0 && (e[e.length - 1].nextKey = i.key, i.prevKey = e[e.length - 1].key), e.push(i);+ }+ e.length > 0 && (e[e.length - 1].nextKey = n.key, n.prevKey = e[e.length - 1].key), n.level = t, n.colIndex = o, e.push(n);+ }+ t--;+ }+ o++;+ }+ let s = 0;+ for (let e of a) {+ let n = e.reduce((e, t) => e + (t.colSpan ?? 1), 0);+ if (n < t.length) {+ let r = {+ type: "placeholder",+ key: "placeholder-" + e[e.length - 1].key,+ colSpan: t.length - n,+ colspan: t.length - n,+ index: n,+ value: null,+ rendered: null,+ level: s,+ hasChildNodes: !1,+ childNodes: [],+ textValue: "",+ prevKey: e[e.length - 1].key+ };+ e.push(r);+ }+ s++;+ }+ return a.map((e, t) => ({+ type: "headerrow",+ key: "headerrow-" + t,+ index: t,+ value: null,+ rendered: null,+ level: 0,+ hasChildNodes: !0,+ childNodes: e,+ textValue: ""+ }));+}+var Nse = class extends Mse {+ constructor(e, t, n) {+ let r = /* @__PURE__ */ new Set(), i = null, a = [];+ if (n?.showSelectionCheckboxes) {+ let e = {+ type: "column",+ key: UO,+ value: null,+ textValue: "",+ level: 0,+ index: +!!n?.showDragButtons,+ hasChildNodes: !1,+ rendered: null,+ childNodes: [],+ props: { isSelectionCell: !0 }+ };+ a.unshift(e);+ }+ if (n?.showDragButtons) {+ let e = {+ type: "column",+ key: WO,+ value: null,+ textValue: "",+ level: 0,+ index: 0,+ hasChildNodes: !1,+ rendered: null,+ childNodes: [],+ props: { isDragButtonCell: !0 }+ };+ a.unshift(e);+ }+ let o = [], s = /* @__PURE__ */ new Map(), c = (e) => {+ switch (e.type) {+ case "body":+ i = e;+ break;+ case "column":+ s.set(e.key, e), e.hasChildNodes || (a.push(e), e.props.isRowHeader && r.add(e.key));+ break;+ case "item":+ o.push(e);+ return;+ }+ for (let t of e.childNodes) c(t);+ };+ for (let t of e) c(t);+ let l = GO(s, a);+ if (l.forEach((e, t) => o.splice(t, 0, e)), super({+ columnCount: a.length,+ items: o,+ visitNode: (e) => (e.column = a[e.index], e)+ }), this._size = 0, this.columns = a, this.rowHeaderColumnKeys = r, this.body = i, this.headerRows = l, this._size = [...i.childNodes].length, this.rowHeaderColumnKeys.size === 0) {+ let e = this.columns.find((e) => !e.props?.isDragButtonCell && !e.props?.isSelectionCell);+ e && this.rowHeaderColumnKeys.add(e.key);+ }+ }+ *[Symbol.iterator]() {+ yield* this.body.childNodes;+ }+ get size() {+ return this._size;+ }+ getKeys() {+ return this.keyMap.keys();+ }+ getKeyBefore(e) {+ return this.keyMap.get(e)?.prevKey ?? null;+ }+ getKeyAfter(e) {+ return this.keyMap.get(e)?.nextKey ?? null;+ }+ getFirstKey() {+ return Hv(this.body.childNodes)?.key ?? null;+ }+ getLastKey() {+ return Wv(this.body.childNodes)?.key ?? null;+ }+ getItem(e) {+ return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;+ }+ at(e) {+ let t = [...this.getKeys()];+ return this.getItem(t[e]);+ }+ getChildren(e) {+ if (e === this.body.key) return this.body.childNodes;+ let t = this.getItem(e);+ return t?.type === "item" ? [...t.childNodes].filter((e) => e.type === "cell") : super.getChildren(e);+ }+ getTextValue(e) {+ let t = this.getItem(e);+ if (!t) return "";+ if (t.textValue) return t.textValue;+ let n = this.rowHeaderColumnKeys;+ if (n) {+ let e = [];+ for (let r of t.childNodes) {+ let t = this.columns[r.index];+ if (n.has(t.key) && r.textValue && e.push(r.textValue), e.length === n.size) break;+ }+ return e.join(" ");+ }+ return "";+ }+};+//#endregion+//#region node_modules/react-stately/dist/private/grid/useGridState.mjs+function Pse(e) {+ let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || ZD(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;+ r.setFocusedKey = (e, r) => {+ if (n === "cell" && e != null) {+ let n = t.getItem(e);+ if (n?.type === "item") {+ let i = Vv(n, t);+ e = r === "last" ? Wv(i)?.key ?? null : Hv(i)?.key ?? null;+ }+ }+ a(e, r);+ };+ let o = (0, B.useMemo)(() => new $D(t, r), [t, r]), s = (0, B.useRef)(null);+ return (0, B.useEffect)(() => {+ if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {+ let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;+ if (!n) {+ r.setFocusedKey(null);+ return;+ }+ let i = s.current.rows, a = t.rows, c = i.length - a.length, l = Math.min(c > 1 ? Math.max(n.index - c + 1, 0) : n.index, a.length - 1), u = null;+ for (let e = Math.max(0, l); e < a.length; e++) if (!o.isDisabled(a[e].key) && a[e].type !== "headerrow") {+ u = a[e];+ break;+ }+ if (u === null) {+ for (let e = l - 1; e >= 0; e--) if (!o.isDisabled(a[e].key) && a[e].type !== "headerrow") {+ u = a[e];+ break;+ }+ }+ if (u) {+ let i = u.hasChildNodes ? [...Vv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;+ r.setFocusedKey(a);+ } else r.setFocusedKey(null);+ }+ s.current = t;+ }, [+ t,+ o,+ r,+ r.focusedKey+ ]), {+ collection: t,+ disabledKeys: i,+ isKeyboardNavigationDisabled: !1,+ selectionManager: o+ };+}+//#endregion+//#region node_modules/react-stately/dist/private/table/useTableState.mjs+var Fse = {+ ascending: "descending",+ descending: "ascending"+};+function Ise(e) {+ let [t, n] = (0, B.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, B.useMemo)(() => ({+ showSelectionCheckboxes: i && r !== "none",+ showDragButtons: a,+ selectionMode: r,+ columns: []+ }), [+ e.children,+ i,+ r,+ a+ ]), c = nO(e, (0, B.useCallback)((e) => new Nse(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Pse({+ ...e,+ collection: c,+ disabledBehavior: e.disabledBehavior || "selection"+ }), [d, f] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);+ return {+ collection: c,+ disabledKeys: l,+ selectionManager: u,+ showSelectionCheckboxes: e.showSelectionCheckboxes || !1,+ sortDescriptor: e.sortDescriptor ?? null,+ isKeyboardNavigationDisabled: c.size === 0 || t,+ setKeyboardNavigationDisabled: n,+ sort(t, n) {+ e.onSortChange?.({+ column: t,+ direction: n ?? (e.sortDescriptor?.column === t ? Fse[e.sortDescriptor.direction] : "ascending")+ });+ },+ expandedKeys: d,+ toggleKey(e) {+ f((t) => {+ let n = new Set(t);+ return n.has(e) ? n.delete(e) : n.add(e), n;+ });+ },+ treeColumn: o+ };+}+function Lse(e, t) {+ let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);+ return {+ ...e,+ collection: n,+ selectionManager: r+ };+}+//#endregion+//#region node_modules/react-aria-components/dist/private/Table.mjs+var Rse = class extends op {+ withExpandedKeys(e) {+ let t = this.clone();+ return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;+ }+ addNode(e) {+ super.addNode(e), this.columnsDirty ||= e.type === "column", e.type === "tableheader" && (this.head = e);+ }+ getRows() {+ let e = [];+ for (let t of this) (t.type === "tablebody" || t.type === "tablefooter") && e.push(...this.getChildren(t.key));+ return e;+ }+ get body() {+ for (let e of this) if (e.type === "tablebody") return e;+ return new QO(-2);+ }+ commit(e, t, n = !1) {+ this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];+ for (let e of this.getRows()) {+ let t = e.lastChildKey;+ if (t != null) {+ let e = this.getItem(t);+ for (; e && e.type !== "cell";) e = e.prevKey == null ? null : this.getItem(e.prevKey);+ if (e) {+ let t = (e.colIndex ?? e.index) + (e.colSpan ?? 1);+ if (t !== this.columns.length && !n) throw Error(`Cell count must match column count. Found ${t} cells and ${this.columns.length} columns.`);+ }+ }+ this.rows.push(e);+ }+ super.commit(e, t, n);+ }+ updateColumns(e) {+ if (!this.columnsDirty) return;+ this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.columns = [];+ let t = /* @__PURE__ */ new Map(), n = (e) => {+ e.type === "column" && (t.set(e.key, e), e.hasChildNodes || (e.index = this.columns.length, this.columns.push(e), e.props.isRowHeader && this.rowHeaderColumnKeys.add(e.key)));+ for (let t of this.getChildren(e.key)) n(t);+ };+ for (let e of this.getChildren(this.head.key)) n(e);+ if (this.headerRows = GO(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");+ }+ get columnCount() {+ return this.columns.length;+ }+ *[Symbol.iterator]() {+ let e = this.firstKey;+ for (; e != null;) {+ let t = this.getItem(e);+ t && (yield t), e = t?.nextKey ?? null;+ }+ }+ getFirstKey() {+ for (let e of this) if (e.type === "tablebody") return e.firstChildKey ?? null;+ return null;+ }+ getLastKey() {+ let e = this.lastKey;+ if (e == null) return null;+ let t = this.getItem(e);+ for (; t?.lastChildKey != null && (t.type !== "item" || this.expandedKeys.has(t.key));) t = this.getItem(t.lastChildKey);+ return t?.key;+ }+ getKeyAfter(e) {+ let t = this.getItem(e);+ if (t?.type === "column") return t.nextKey ?? null;+ if (!t) return null;+ if (t.type === "item" && t.firstChildKey != null && this.expandedKeys.has(t.key)) {+ let e = this.getItem(t.firstChildKey);+ for (; e;) {+ if (e.type === "item") return e.key;+ e = e.nextKey == null ? null : this.getItem(e.nextKey);+ }+ }+ return super.getKeyAfter(e);+ }+ getKeyBefore(e) {+ let t = this.getItem(e);+ if (t?.type === "column") return t.prevKey ?? null;+ if (!t) return null;+ let n = null;+ if (t.prevKey != null) {+ for (t = this.getItem(t.prevKey); t && (t.type !== "item" || this.expandedKeys.has(t.key)) && t.lastChildKey != null;) t = this.getItem(t.lastChildKey);+ n = t?.key ?? null;+ }+ return n ??= t.parentKey, n != null && this.getItem(n)?.type === "tableheader" ? null : n;+ }+ getChildren(e) {+ let t = this.getItem(e);+ if (!t) {+ for (let t of this.headerRows) if (t.key === e) return t.childNodes;+ }+ let n = this;+ return t?.type === "tablebody" || t?.type === "tablefooter" ? { *[Symbol.iterator]() {+ let e = t.firstChildKey, r = e == null ? null : n.getItem(e);+ for (; r;) {+ yield r;+ let e = n.getKeyAfter(r.key);+ if (r = e == null ? null : n.getItem(e), r && r.parentKey === t.parentKey) break;+ }+ } } : { *[Symbol.iterator]() {+ let t = n.getItem(e), r = t?.firstChildKey == null ? null : n.getItem(t.firstChildKey);+ for (; r && (yield r, r = r.nextKey == null ? null : n.getItem(r.nextKey), t?.type !== "item" || r?.type === "cell"););+ } };+ }+ clone() {+ let e = super.clone();+ return e.headerRows = this.headerRows, e.columns = this.columns, e.rows = this.rows, e.rowHeaderColumnKeys = this.rowHeaderColumnKeys, e.head = this.head, e;+ }+ getTextValue(e) {+ let t = this.getItem(e);+ if (!t) return "";+ if (t.textValue) return t.textValue;+ let n = this.rowHeaderColumnKeys, r = [];+ for (let t of this.getChildren(e)) {+ let e = this.columns[t.index];+ if (n.has(e.key) && t.textValue && r.push(t.textValue), r.length === n.size) break;+ }+ return r.join(" ");+ }+ constructor(...e) {+ super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new YO(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();+ }+}, zse = /*#__PURE__*/ (0, B.createContext)(null), Bse = /*#__PURE__*/ (0, B.createContext)(null), KO = /*#__PURE__*/ (0, B.createContext)(null), qO = /*#__PURE__*/ (0, B.createContext)(null), Vse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, Bse);+ let n = ZD(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({+ selectionBehavior: i === "none" ? null : r,+ selectionMode: i,+ disallowEmptySelection: a,+ allowsDragging: o+ }), [+ r,+ i,+ a,+ o+ ]), c = /*#__PURE__*/ B.createElement(Wse.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));+ return /*#__PURE__*/ B.createElement(qh, {+ content: c,+ createCollection: () => new Rse()+ }, (r) => /*#__PURE__*/ B.createElement(Use, {+ props: e,+ forwardedRef: t,+ selectionState: n,+ collection: r+ }));+}), Hse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.table, {+ ...e,+ ref: t+ });+}), JO = {+ expand: {+ ltr: "ArrowRight",+ rtl: "ArrowLeft"+ },+ collapse: {+ ltr: "ArrowLeft",+ rtl: "ArrowRight"+ }+};+function Use({ props: e, forwardedRef: t, selectionState: n, collection: r }) {+ [e, t] = PE(e, t, zE);+ let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(zse);+ t = Nh((0, B.useMemo)(() => mh(t, c?.tableRef), [t, c?.tableRef]));+ let [l, u] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);+ r = (0, B.useMemo)(() => r.withExpandedKeys(l), [r, l]);+ let d = Ise({+ ...s,+ collection: r,+ children: void 0,+ UNSAFE_selectionState: n,+ expandedKeys: l,+ onExpandedChange: u+ }), f = Lse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(WE), { dragAndDropHooks: _ } = e, { gridProps: v } = one({+ ...s,+ layoutDelegate: m,+ isVirtualized: p+ }, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;+ (0, B.useRef)(b), (0, B.useRef)(x), (0, B.useEffect)(() => {}, [b, x]);+ let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new jse());+ if (b && _) {+ S = _.useDraggableCollectionState({+ collection: f.collection,+ selectionManager: y,+ preview: _.renderDragPreview ? D : void 0+ }), _.useDraggableCollection({}, S, t);+ let e = _.DragPreview;+ E = _.renderDragPreview ? /*#__PURE__*/ B.createElement(e, { ref: D }, _.renderDragPreview) : null;+ }+ if (x && _) {+ C = _.useDroppableCollectionState({+ collection: f.collection,+ selectionManager: y+ });+ let e = new Q_({+ collection: f.collection,+ disabledKeys: y.disabledKeys,+ disabledBehavior: y.disabledBehavior,+ ref: t,+ layoutDelegate: m+ }), n = _.dropTargetDelegate || h || new _.ListDropTargetDelegate(r.rows, t);+ k.setup(n, d, O), w = _.useDroppableCollection({+ keyboardDelegate: e,+ dropTargetDelegate: k,+ onDropActivate: (e) => {+ if (e.target.type === "item") {+ let t = e.target.key, n = d.collection.getItem(t), r = l.has(t);+ n && n.hasChildNodes && (!r || _?.isVirtualDragging?.()) && d.toggleKey(t);+ }+ },+ onKeyDown: (e) => {+ let t = C?.target;+ if (t && t.type === "item" && t.dropPosition === "on") {+ let n = d.collection.getItem(t.key);+ (e.key === JO.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === JO.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);+ }+ }+ }, C, t), T = C.isDropTarget({ type: "root" });+ }+ let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = ME({+ ...e,+ children: void 0,+ defaultClassName: "react-aria-Table",+ values: {+ isDropTarget: T,+ isFocused: j,+ isFocusVisible: M,+ state: f+ }+ }), P = !!(b && !S?.isDisabled), ee = N.style, F = null;+ c && (F = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (ee = {+ ...ee,+ tableLayout: "fixed",+ width: "min-content"+ }));+ let I = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(jE, { values: [+ [KO, f],+ [qO, F],+ [BD, {+ dragAndDropHooks: _,+ dragState: S,+ dropState: C+ }],+ [VD, { render: ece }],+ [zE, null],+ [BE, null]+ ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(Hse, {+ ...U(I, N, v, A, w?.collectionProps),+ style: ee,+ ref: t,+ slot: e.slot || void 0,+ onScroll: e.onScroll,+ "data-allows-dragging": P || void 0,+ "data-drop-target": T || void 0,+ "data-focused": j || void 0,+ "data-focus-visible": M || void 0+ }, /*#__PURE__*/ B.createElement(GD, null, /*#__PURE__*/ B.createElement(g, {+ collection: f.collection,+ scrollRef: c?.scrollRef ?? t,+ persistedKeys: UD(y, _, C)+ })))), E);+}+var Wse = /*#__PURE__*/ (0, B.createContext)(null), YO = class extends tp {+ static {+ this.type = "tableheader";+ }+}, Gse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.thead, {+ ...e,+ ref: t+ });+}), XO = /*#__PURE__*/ ng(YO, (e, t) => {+ let n = (0, B.useContext)(KO).collection, r = dp({+ items: n.headerRows,+ children: (0, B.useCallback)((e) => {+ switch (e.type) {+ case "headerrow": return /*#__PURE__*/ B.createElement(qse, { item: e });+ default: throw Error("Unsupported node type in TableHeader: " + e.type);+ }+ }, [])+ }), { rowGroupProps: i } = Zx(), { hoverProps: a, isHovered: o } = sy({+ onHoverStart: e.onHoverStart,+ onHoverChange: e.onHoverChange,+ onHoverEnd: e.onHoverEnd+ }), s = ME({+ ...e,+ children: void 0,+ defaultClassName: "react-aria-TableHeader",+ values: { isHovered: o }+ });+ return /*#__PURE__*/ B.createElement(Gse, {+ ...U(Eg(e, { global: !0 }), i, a),+ ...s,+ ref: t,+ "data-hovered": o || void 0+ }, r);+}, (e) => /*#__PURE__*/ B.createElement(ag, {+ dependencies: e.dependencies,+ items: e.columns+}, e.children)), Kse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement("div", {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement("tr", {+ ...e,+ ref: t+ });+});+function qse({ item: e }) {+ let t = (0, B.useRef)(null), n = (0, B.useContext)(KO), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(WE), { rowProps: a } = une({+ node: e,+ isVirtualized: r+ }, n, t), { checkboxProps: o } = _ne(n);+ return /*#__PURE__*/ B.createElement(Kse, {+ ...a,+ ref: t+ }, /*#__PURE__*/ B.createElement(jE, { values: [[eD, { slots: { selection: o } }], [tD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {+ collection: n.collection,+ parent: e+ })));+}+var Jse = class extends tp {+ static {+ this.type = "column";+ }+}, Yse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.th, {+ ...e,+ ref: t+ });+}), ZO = /*#__PURE__*/ tg(Jse, (e, t, n) => {+ let r = Nh(t), i = (0, B.useContext)(KO), { isVirtualized: a } = (0, B.useContext)(WE), { columnHeaderProps: o, isPressed: s } = lne({+ node: n,+ isVirtualized: a,+ focusMode: e.focusMode,+ allowsArrowNavigation: e.allowsArrowNavigation+ }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(qO), f = !1;+ d && (f = d.resizingColumn === n.key);+ let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = ME({+ ...e,+ id: void 0,+ children: n.rendered,+ defaultClassName: "react-aria-Column",+ values: {+ isHovered: m,+ isPressed: s,+ isFocused: c,+ isFocusVisible: l,+ allowsSorting: n.props.allowsSorting,+ sortDirection: i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0,+ isResizing: f,+ startResize: () => {+ if (d) d.startResize(n.key), i.setKeyboardNavigationDisabled(!0);+ else throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");+ },+ sort: (e) => {+ i.sort(n.key, e);+ }+ }+ }), g = h.style;+ d && (g = {+ ...g,+ width: d.getColumnWidth(n.key)+ });+ let _ = Eg(e, { global: !0 });+ return delete _.id, /*#__PURE__*/ B.createElement(Yse, {+ ...U(_, o, u, p),+ ...h,+ style: g,+ ref: r,+ "data-hovered": m || void 0,+ "data-pressed": s || void 0,+ "data-focused": c || void 0,+ "data-focus-visible": l || void 0,+ "data-resizing": f || void 0,+ "data-allows-sorting": n.props.allowsSorting || void 0,+ "data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [[Xse, {+ column: n,+ triggerRef: r+ }], [WE, HE]] }, h.children));+}), Xse = /*#__PURE__*/ (0, B.createContext)(null), QO = class extends np {+ static {+ this.type = "tablebody";+ }+}, Zse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.tbody, {+ ...e,+ ref: t+ });+}), $O = /*#__PURE__*/ ng(QO, (e, t, n) => {+ let r = (0, B.useContext)(KO), { isVirtualized: i } = (0, B.useContext)(WE), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(WE), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(BD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {+ isDropTarget: u,+ isEmpty: d+ }, p = ME({+ ...e,+ id: void 0,+ children: void 0,+ defaultClassName: "react-aria-TableBody",+ values: f+ }), m, h = a.columnCount;+ if (d && e.renderEmptyState && r) {+ let t = {}, n = {}, r = {};+ i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(tk, {+ role: "row",+ ...t,+ style: r+ }, /*#__PURE__*/ B.createElement(rk, {+ role: "rowheader",+ ...n,+ style: r+ }, e.renderEmptyState(f)));+ }+ let { rowGroupProps: g } = Zx(), _ = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(Zse, {+ ...U(_, p, g),+ ref: t,+ "data-empty": d || void 0+ }, l && /*#__PURE__*/ B.createElement(ace, null), /*#__PURE__*/ B.createElement(o, {+ collection: a,+ parent: n,+ renderDropIndicator: HD(s, c)+ }), m);+});+(class extends np {+ static {+ this.type = "tablefooter";+ }+});+var ek = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), Qse = class extends tp {+ static {+ this.type = "item";+ }+ filter(e, t, n) {+ let r = e.getChildren(this.key);+ for (let i of r) if (n(i.textValue, i)) {+ let n = this.clone();+ return t.addDescendants(n, e), n;+ }+ return null;+ }+}, tk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.tr, {+ ...e,+ ref: t+ });+}), nk = /*#__PURE__*/ ng(Qse, (e, t, n) => {+ let r = Nh(t), i = (0, B.useContext)(KO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(BD), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(WE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({+ node: n,+ shouldSelectOnPressUp: !!o,+ isVirtualized: c+ }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ry(), { isFocusVisible: _, focusProps: v } = ry({ within: !0 }), { hoverProps: y, isHovered: b } = sy({+ isDisabled: !p.allowsSelection && !p.hasAction && !u,+ onHoverStart: e.onHoverStart,+ onHoverChange: e.onHoverChange,+ onHoverEnd: e.onHoverEnd+ }), { checkboxProps: x } = gne({ key: n.key }, i), S;+ o && a && (S = a.useDraggableItem({+ key: n.key,+ hasDragButton: !0+ }, o));+ let C, w = (0, B.useRef)(null), { visuallyHiddenProps: T } = V_();+ s && a && (C = a.useDropIndicator({ target: {+ type: "item",+ key: n.key,+ dropPosition: "on"+ } }, s, w));+ let E = (0, B.useRef)(null);+ (0, B.useEffect)(() => {+ o && E.current;+ }, []);+ let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = ME({+ ...k,+ id: void 0,+ defaultClassName: "react-aria-Row",+ defaultStyle: { "--table-row-level": n.level + 1 },+ values: {+ ...p,+ state: i,+ isHovered: b,+ isFocused: m,+ isFocusVisible: h,+ selectionMode: i.selectionManager.selectionMode,+ selectionBehavior: i.selectionManager.selectionBehavior,+ isDragging: D,+ isDropTarget: C?.isDropTarget,+ isFocusVisibleWithin: _,+ id: n.key,+ hasChildItems: A,+ isExpanded: j,+ level: n.level + 1+ }+ }), N = Eg(e, { global: !0 });+ return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(tk, {+ role: "row",+ style: { height: 0 }+ }, /*#__PURE__*/ B.createElement(rk, {+ role: "gridcell",+ colSpan: i.collection.columnCount,+ style: { padding: 0 }+ }, /*#__PURE__*/ B.createElement("div", {+ role: "button",+ ...T,+ ...C.dropIndicatorProps,+ ref: w+ }))), /*#__PURE__*/ B.createElement(tk, {+ ...U(N, M, d, g, y, S?.dragProps, v),+ ref: r,+ "data-disabled": p.isDisabled || void 0,+ "data-selected": p.isSelected || void 0,+ "data-hovered": b || void 0,+ "data-focused": p.isFocused || void 0,+ "data-focus-visible": h || void 0,+ "data-pressed": p.isPressed || void 0,+ "data-dragging": D || void 0,+ "data-drop-target": C?.isDropTarget || void 0,+ "data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode,+ "data-focus-visible-within": _ || void 0,+ "data-expanded": j || void 0,+ "data-has-child-items": A || void 0,+ "data-level": n.level + 1+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [eD, { slots: {+ [AE]: {},+ selection: x+ } }],+ [tD, { slots: {+ [AE]: {},+ selection: x+ } }],+ [qE, { slots: {+ [AE]: {},+ chevron: f,+ drag: {+ ...S?.dragButtonProps,+ ref: E,+ style: { pointerEvents: "none" }+ }+ } }],+ [KD, { isSelected: p.isSelected }],+ [ek, { isFocusVisibleWithinRow: _ }]+ ] }, /*#__PURE__*/ B.createElement(l, {+ collection: i.collection,+ parent: n+ }))));+}, (e) => {+ if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");+ let t = [e.value].concat(e.dependencies);+ return /*#__PURE__*/ B.createElement(ag, {+ dependencies: t,+ items: e.columns,+ idScope: e.id+ }, e.children);+}), $se = class extends tp {+ static {+ this.type = "cell";+ }+}, rk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.td, {+ ...e,+ ref: t+ });+}), ik = /*#__PURE__*/ tg($se, (e, t, n) => {+ let r = Nh(t), i = (0, B.useContext)(KO), { dragState: a } = (0, B.useContext)(BD), { isVirtualized: o } = (0, B.useContext)(WE);+ n.column = i.collection.columns[n.index];+ let { gridCellProps: s, isPressed: c } = sne({+ node: n,+ shouldSelectOnPressUp: !!a,+ isVirtualized: o,+ focusMode: e.focusMode,+ allowsArrowNavigation: e.allowsArrowNavigation+ }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(ek), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = ME({+ ...e,+ id: void 0,+ defaultClassName: "react-aria-Cell",+ values: {+ isFocused: l,+ isFocusVisible: u,+ isFocusVisibleWithinRow: m,+ isPressed: c,+ isHovered: p,+ isSelected: h,+ id: n.key,+ columnIndex: g,+ hasChildItems: v,+ isExpanded: y,+ isDisabled: b,+ level: _.level + 1,+ isTreeColumn: n.column.key === i.treeColumn+ }+ }), S = Eg(e, { global: !0 });+ return delete S.id, /*#__PURE__*/ B.createElement(rk, {+ ...U(S, x, s, d, f),+ ref: r,+ "data-focused": l || void 0,+ "data-focus-visible": u || void 0,+ "data-focus-visible-within-row": m || void 0,+ "data-pressed": c || void 0,+ "data-selected": h || void 0,+ "data-column-index": g,+ "data-expanded": y || void 0,+ "data-has-child-items": v || void 0,+ "data-level": _.level + 1,+ "data-tree-column": n.column.key === i.treeColumn || void 0,+ "data-disabled": b || void 0+ }, /*#__PURE__*/ B.createElement(WE.Provider, { value: HE }, x.children));+});+function ece(e, t) {+ t = Nh(t);+ let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(BD), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);+ if (o) return null;+ let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;+ return /*#__PURE__*/ B.createElement(ice, {+ ...e,+ dropIndicatorProps: a,+ isDropTarget: s,+ buttonRef: i,+ level: c,+ ref: t+ });+}+var tce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.tr, {+ ...e,+ ref: t+ });+}), nce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ let { isVirtualized: n } = (0, B.useContext)(WE);+ return n ? /*#__PURE__*/ B.createElement(RE.div, {+ ...e,+ ref: t+ }) : /*#__PURE__*/ B.createElement(RE.td, {+ ...e,+ ref: t+ });+});+function rce(e, t) {+ let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(KO), { visuallyHiddenProps: c } = V_(), l = ME({+ ...o,+ defaultClassName: "react-aria-DropIndicator",+ defaultStyle: { "--table-row-level": a + 1 },+ values: { isDropTarget: r }+ });+ return /*#__PURE__*/ B.createElement(tce, {+ ...Eg(e, { global: !0 }),+ ...l,+ role: "row",+ ref: t,+ "data-drop-target": r || void 0,+ "aria-level": a+ }, /*#__PURE__*/ B.createElement(nce, {+ role: "gridcell",+ colSpan: s.collection.columnCount,+ style: { padding: 0 }+ }, /*#__PURE__*/ B.createElement("div", {+ ...c,+ role: "button",+ ...n,+ ref: i+ }), l.children));+}+var ice = /*#__PURE__*/ (0, B.forwardRef)(rce);+function ace() {+ let e = (0, B.useContext)(KO), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(BD), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();+ return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(tk, {+ role: "row",+ "aria-hidden": i["aria-hidden"],+ style: { height: 0 }+ }, /*#__PURE__*/ B.createElement(rk, {+ role: "gridcell",+ colSpan: e.collection.columnCount,+ style: { padding: 0 }+ }, /*#__PURE__*/ B.createElement("div", {+ role: "button",+ ...o,+ ...i,+ ref: r+ })));+}+tg(rp, function(e, t, n) {+ let r = (0, B.useContext)(KO), { isVirtualized: i } = (0, B.useContext)(WE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);+ aO((0, B.useMemo)(() => ({+ onLoadMore: o,+ collection: r?.collection,+ sentinelRef: u,+ scrollOffset: s+ }), [+ o,+ s,+ r?.collection+ ]), u);+ let d = ME({+ ...c,+ id: void 0,+ children: n.rendered,+ defaultClassName: "react-aria-TableLoadingIndicator",+ defaultStyle: { "--table-row-level": n.level + 1 },+ values: void 0+ }), f = {}, p = {}, m = {};+ return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(tk, {+ style: { height: 0 },+ inert: JD(!0)+ }, /*#__PURE__*/ B.createElement(rk, { style: {+ padding: 0,+ border: 0+ } }, /*#__PURE__*/ B.createElement("div", {+ "data-testid": "loadMoreSentinel",+ ref: u,+ style: {+ position: "relative",+ height: 1,+ width: 1+ }+ }))), a && d.children && /*#__PURE__*/ B.createElement(tk, {+ ...U(Eg(e, { global: !0 }), f),+ ...d,+ role: "row",+ ref: t,+ "aria-level": n.level + 1,+ "data-level": n.level + 1+ }, /*#__PURE__*/ B.createElement(rk, {+ role: "rowheader",+ ...p,+ style: m+ }, d.children)));+});+//#endregion+//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs+function oce(e) {+ let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = rO({+ ...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 sce(e) {+ let t = oce({+ ...e,+ onSelectionChange: e.onSelectionChange ? (t) => {+ t != null && e.onSelectionChange?.(t);+ } : void 0,+ suppressTextValueWarning: !0,+ defaultSelectedKey: e.defaultSelectedKey ?? ak(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0+ }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, B.useRef)(i);+ return (0, B.useEffect)(() => {+ let o = i;+ e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = ak(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 ak(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 ok = /*#__PURE__*/ (0, B.createContext)(null), sk = /*#__PURE__*/ (0, B.createContext)(null), ck = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ [e, t] = PE(e, t, ok);+ let { children: n, orientation: r = "horizontal" } = e;+ return n = (0, B.useMemo)(() => typeof n == "function" ? n({+ orientation: r,+ defaultChildren: null+ }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(cce, {+ props: e,+ collection: n,+ tabsRef: t+ }));+});+function cce({ props: e, tabsRef: t, collection: n }) {+ let { orientation: r = "horizontal" } = e, i = sce({+ ...e,+ collection: n,+ children: void 0+ }), { focusProps: a, isFocused: o, isFocusVisible: s } = ry({ within: !0 }), c = (0, B.useMemo)(() => ({+ orientation: r,+ isFocusWithin: o,+ isFocusVisible: s+ }), [+ r,+ o,+ s+ ]), l = ME({+ ...e,+ defaultClassName: "react-aria-Tabs",+ values: c+ }), u = Eg(e, { global: !0 });+ return /*#__PURE__*/ B.createElement(RE.div, {+ ...U(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__*/ B.createElement(jE, { values: [[ok, e], [sk, i]] }, l.children));+}+var lk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ return (0, B.useContext)(sk) ? /*#__PURE__*/ B.createElement(lce, {+ props: e,+ forwardedRef: t+ }) : /*#__PURE__*/ B.createElement(ag, e);+});+function lce({ props: e, forwardedRef: t }) {+ let n = (0, B.useContext)(sk), { CollectionRoot: r } = (0, B.useContext)(WE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = NE(ok), o = Nh(t), { tabListProps: s } = bne({+ ...e,+ orientation: i,+ keyboardActivation: a+ }, n, o), c = ME({+ ...e,+ children: null,+ defaultClassName: "react-aria-TabList",+ values: {+ orientation: i,+ state: n+ }+ }), l = Eg(e, { global: !0 });+ return delete l.id, /*#__PURE__*/ B.createElement(RE.div, {+ ...U(l, c, s),+ ref: o,+ "data-orientation": i || void 0+ }, /*#__PURE__*/ B.createElement(GD, null, /*#__PURE__*/ B.createElement(r, {+ collection: n.collection,+ persistedKeys: GE(n.selectionManager.focusedKey)+ })));+}+var uk = /*#__PURE__*/ tg(class extends tp {+ static {+ this.type = "item";+ }+}, (e, t, n) => {+ let r = (0, B.useContext)(sk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({+ key: n.key,+ ...e+ }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ry(), { hoverProps: f, isHovered: p } = sy({+ isDisabled: s,+ onHoverStart: e.onHoverStart,+ onHoverEnd: e.onHoverEnd,+ onHoverChange: e.onHoverChange+ }), m = ME({+ ...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 ? RE.a : RE.div, g = Eg(e, { global: !0 });+ return delete g.id, delete g.onClick, /*#__PURE__*/ B.createElement(h, {+ ...U(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__*/ B.createElement(KD.Provider, { value: { isSelected: o } }, m.children));+}), dk = /*#__PURE__*/ Bh(function(e, t) {+ let n = (0, B.useContext)(sk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);+ a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);+ let s = dO(r, i);+ return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(uce, {+ ...e,+ tabPanelRef: r,+ isInitiallySelected: a || !1,+ isExiting: s+ });+});+function uce(e) {+ let t = (0, B.useContext)(sk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = uO(r) && !i, p = ME({+ ...e,+ defaultClassName: "react-aria-TabPanel",+ values: {+ isFocused: l,+ isFocusVisible: u,+ isInert: JD(!d),+ isEntering: f,+ isExiting: a,+ state: t+ }+ }), m = Eg(o, { global: !0 });+ delete m.id;+ let h = d ? U(m, s, c, p) : U(m, p);+ return /*#__PURE__*/ B.createElement(RE.div, {+ ...h,+ ref: r,+ "data-focused": l || void 0,+ "data-focus-visible": u || void 0,+ inert: JD(!d || e.inert),+ "data-inert": d ? void 0 : "true",+ "data-entering": f || void 0,+ "data-exiting": a || void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [[ok, null], [sk, null]] }, /*#__PURE__*/ B.createElement(WE.Provider, { value: HE }, p.children)));+}+//#endregion+//#region node_modules/react-aria-components/dist/private/TextArea.mjs+var dce = /*#__PURE__*/ (0, B.createContext)({}), fce = /*#__PURE__*/ (0, B.createContext)(null), pce = /*#__PURE__*/ Bh(function(e, t) {+ [e, t] = PE(e, t, fce);+ let { validationBehavior: n } = NE($E) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);+ [e, i] = PE(e, i, BE);+ let [a, o] = FE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({+ ...IE(e),+ inputElementType: s,+ label: o,+ validationBehavior: r+ }, i), m = (0, B.useCallback)((e) => {+ i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");+ }, [i]), h = ME({+ ...e,+ values: {+ isDisabled: e.isDisabled || !1,+ isInvalid: p.isInvalid,+ isReadOnly: e.isReadOnly || !1,+ isRequired: e.isRequired || !1+ },+ defaultClassName: "react-aria-TextField"+ }), g = Eg(e, { global: !0 });+ return delete g.id, /*#__PURE__*/ B.createElement(RE.div, {+ ...g,+ ...h,+ ref: t,+ slot: e.slot || void 0,+ "data-disabled": e.isDisabled || void 0,+ "data-invalid": p.isInvalid || void 0,+ "data-readonly": e.isReadOnly || void 0,+ "data-required": e.isRequired || void 0+ }, /*#__PURE__*/ B.createElement(jE, { values: [+ [KE, {+ ...l,+ ref: a+ }],+ [iD, {+ ...u,+ ref: m+ }],+ [dce, {+ ...u,+ ref: m+ }],+ [rD, {+ role: "presentation",+ isInvalid: p.isInvalid,+ isDisabled: e.isDisabled || !1+ }],+ [ZE, { slots: {+ description: d,+ errorMessage: f+ } }],+ [QE, p]+ ] }, h.children));+});+//#endregion+//#region src/react/boardui/components/base/input/label.tsx+function mce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsxs)(Eoe, {+ "data-label": "true",+ ...a,+ className: _E("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),+ children: [+ i,+ e && /* @__PURE__ */ (0, V.jsx)("span", {+ "aria-hidden": "true",+ className: "text-body-medium text-text-error-primary",+ children: "*"+ }),+ n && /* @__PURE__ */ (0, V.jsx)(dae, {+ className: "size-4 shrink-0 text-foreground-icon-quaternary",+ "aria-hidden": !0+ })+ ]+ });+}+//#endregion+//#region src/react/boardui/components/base/input/hint-text.tsx+function fk({ isInvalid: e = !1, className: t, ...n }) {+ return /* @__PURE__ */ (0, V.jsx)(Aoe, {+ slot: e ? "errorMessage" : "description",+ ...n,+ className: _E("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 pk = (0, B.createContext)({});+function mk({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsx)(pk.Provider, {+ value: {+ size: e,+ fieldClassName: t,+ inputClassName: n+ },+ children: /* @__PURE__ */ (0, V.jsx)(pce, {+ ...a,+ "data-input-size": e,+ className: _E("group flex h-max w-full flex-col items-start gap-1", r),+ children: i+ })+ });+}+mk.displayName = "TextField";+var hk = vE({+ field: [+ "relative flex w-full items-center",+ "rounded-2lg",+ "bg-background-tertiary-default text-foreground-icon-tertiary",+ "ring-2 ring-inset ring-transparent",+ "transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease"+ ].join(" "),+ fieldSize: {+ medium: "p-2",+ small: "h-8 px-1.5 py-2"+ },+ fieldWithAddonSize: {+ medium: "h-9 pl-1 pr-2 py-2",+ small: "h-8 pl-1 pr-1.5 py-2"+ },+ content: "flex w-full items-center gap-2 min-w-0",+ leftSection: "flex flex-1 items-center gap-0.5 min-w-0",+ input: [+ "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0",+ "font-sans text-body-regular text-text-primary pl-1",+ "placeholder:text-text-tertiary",+ "focus:placeholder:text-text-primary",+ "disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text",+ "disabled:cursor-not-allowed",+ "aria-invalid:placeholder:text-text-error-placeholder"+ ].join(" "),+ icon: "size-5 shrink-0"+});+function gk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {+ let l = (0, B.useContext)(pk), u = e ?? l.size ?? "medium", d = r != null;+ return /* @__PURE__ */ (0, V.jsx)(Foe, {+ ref: s,+ className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => _E(hk.field, d ? hk.fieldWithAddonSize[u] : hk.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ className: hk.content,+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: hk.leftSection,+ children: [d ? r : t ? /* @__PURE__ */ (0, V.jsx)(t, {+ className: hk.icon,+ "aria-hidden": !0+ }) : null, /* @__PURE__ */ (0, V.jsx)(Loe, {+ ref: o,+ ...c,+ className: _E(hk.input, l.inputClassName, a)+ })]+ }), n ? /* @__PURE__ */ (0, V.jsx)(n, {+ className: hk.icon,+ "aria-hidden": !0+ }) : null]+ })+ });+}+gk.displayName = "InputBase";+function _k({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {+ return /* @__PURE__ */ (0, V.jsx)(mk, {+ ...d,+ className: u,+ "aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),+ children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ e && /* @__PURE__ */ (0, V.jsx)(mce, {+ isRequired: u,+ isInvalid: d,+ tooltip: n,+ children: e+ }),+ /* @__PURE__ */ (0, V.jsx)(gk, {+ ref: c,+ groupRef: l,+ placeholder: r,+ leadingIcon: i,+ trailingIcon: a,+ leadingAddon: o,+ fieldClassName: s+ }),+ t && /* @__PURE__ */ (0, V.jsx)(fk, {+ isInvalid: d,+ children: t+ })+ ] })+ });+}+_k.displayName = "Input";+//#endregion+//#region src/react/boardui/components/base/dropdown/menu-styles.ts+var vk = [+ "max-w-[calc(100vw-32px)] overflow-y-auto",+ "rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",+ "transition duration-150 ease-out",+ "data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]",+ "data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",+ "data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",+ "data-[placement=left]:origin-right data-[placement=right]:origin-left"+].join(" "), hce = "w-[266px]", gce = "flex w-full flex-col gap-1 outline-none", yk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), bk = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";+//#endregion+//#region src/react/boardui/components/foundations/icons/chevrons.tsx+function _ce(e) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 16 16",+ fill: "none",+ "aria-hidden": !0,+ ...e,+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",+ stroke: "currentColor",+ strokeWidth: "2",+ strokeLinecap: "round"+ })+ });+}+function vce(e) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ fill: "none",+ "aria-hidden": !0,+ ...e,+ children: /* @__PURE__ */ (0, V.jsx)("path", {+ d: "M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z",+ fill: "currentColor"+ })+ });+}+//#endregion+//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts+function yce(e, t, n) {+ (0, B.useEffect)(() => {+ if (!e) return;+ let r = (e) => {+ let r = e.target;+ n.some((e) => e.current?.contains(r)) || t();+ };+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);+ }, [+ e,+ t,+ n+ ]);+}+function bce(e, t) {+ let n = (0, B.useRef)(!1);+ return (0, B.useEffect)(() => {+ if (!e) return;+ let r = (e) => {+ t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {+ n.current = !1;+ }, 400));+ };+ return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);+ }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;+}+//#endregion+//#region src/react/boardui/components/base/select/select.tsx+var xk = (0, B.createContext)("md");+function Sk({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {+ let l = (0, B.useRef)(null), u = (0, B.useRef)(null), [d, f] = (0, B.useState)(!1);+ yce(d, () => f(!1), [l, u]);+ let p = bce(d, l);+ return /* @__PURE__ */ (0, V.jsx)(wse, {+ ref: s,+ ...c,+ isOpen: d,+ onOpenChange: (e) => p(e) && f(e),+ className: _E("group flex flex-col", e),+ children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(JE, {+ ref: l,+ className: _E("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),+ children: [/* @__PURE__ */ (0, V.jsx)(Dse, {+ className: _E("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),+ children: o+ }), /* @__PURE__ */ (0, V.jsx)(_ce, { className: _E("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]+ }), /* @__PURE__ */ (0, V.jsx)(hO, {+ ref: u,+ isNonModal: !0,+ offset: 4,+ className: _E(hce, vk, "p-2", n),+ children: /* @__PURE__ */ (0, V.jsx)(Goe, {+ items: a,+ className: _E(gce, "max-h-[240px] overflow-auto"),+ children: /* @__PURE__ */ (0, V.jsx)(xk.Provider, {+ value: r,+ children: i+ })+ })+ })] })+ });+}+function Ck({ className: e, children: t, ...n }) {+ let r = (0, B.useContext)(xk);+ return /* @__PURE__ */ (0, V.jsx)(Joe, {+ ...n,+ className: (t) => _E(yk, 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/boardui/components/application/settings/settings-rows.tsx+function wk({ className: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ className: _E("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),+ children: t+ });+}+function Tk({ className: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsx)("p", {+ className: _E("w-full px-3 text-body-2-medium text-text-secondary", e),+ children: t+ });+}+function Ek({ label: e, description: t, children: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: _E("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 flex-col",+ children: [/* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-regular text-text-primary",+ children: e+ }), t && /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: t+ })]+ }), n]+ });+}+//#endregion+//#region src/react/boardui/components/base/buttons/link-button.tsx+var Dk = vE({+ base: [+ "inline-flex items-center justify-center gap-1 whitespace-nowrap",+ "font-sans select-none cursor-pointer rounded-sm",+ "underline-offset-3 hover:underline",+ "transition-colors duration-150 ease",+ "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",+ "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"+ ].join(" "),+ size: {+ medium: "text-body-medium",+ small: "text-body-medium",+ xs: "text-caption-1-semibold"+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-[18px] shrink-0",+ xs: "size-3.5 shrink-0"+ },+ variant: {+ primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),+ secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")+ }+});+function Ok({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {+ let c = _E(Dk.base, Dk.size[t], Dk.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ n ? /* @__PURE__ */ (0, V.jsx)(n, {+ className: Dk.icon[t],+ "aria-hidden": !0+ }) : null,+ i != null && /* @__PURE__ */ (0, V.jsx)("span", { children: i }),+ r ? /* @__PURE__ */ (0, V.jsx)(r, {+ className: Dk.icon[t],+ "aria-hidden": !0+ }) : null+ ] });+ if (s.href !== void 0) {+ let { ref: e, href: t, ...n } = s;+ return /* @__PURE__ */ (0, V.jsx)("a", {+ ref: e,+ href: o ? void 0 : t,+ "aria-disabled": o || void 0,+ className: c,+ ...n,+ children: l+ });+ }+ let { ref: u, type: d = "button", ...f } = s;+ return /* @__PURE__ */ (0, V.jsx)("button", {+ ref: u,+ type: d,+ disabled: o,+ className: c,+ ...f,+ children: l+ });+}+//#endregion+//#region src/react/settings/section.tsx+function kk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {+ let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex w-full flex-wrap items-center justify-between gap-2",+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: "min-w-0 flex-1",+ children: /* @__PURE__ */ (0, V.jsx)(Tk, { children: e })+ }), n]+ }) : /* @__PURE__ */ (0, V.jsx)(Tk, { children: e }), /* @__PURE__ */ (0, V.jsx)(wk, { children: i })] });+ return r ? /* @__PURE__ */ (0, V.jsx)("form", {+ id: t,+ "aria-label": e,+ noValidate: !0,+ onSubmit: r,+ className: "flex w-full flex-col gap-2",+ children: a+ }) : /* @__PURE__ */ (0, V.jsx)("section", {+ id: t,+ "aria-label": e,+ className: "flex w-full flex-col gap-2",+ children: a+ });+}+function Ak({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col",+ children: e+ });+}+function jk({ divided: e = !1, children: t }) {+ return e ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",+ children: t+ }) : /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col gap-4 py-4 pr-3",+ children: t+ });+}+function Mk({ status: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",+ children: [e ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",+ children: e+ }) : null, t]+ });+}+function Nk({ role: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsx)("p", {+ role: e,+ className: "text-body-2-regular text-text-secondary",+ children: t+ });+}+function Pk({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)("p", {+ role: "alert",+ className: "text-body-2-regular text-text-error-primary",+ children: e+ });+}+function Fk({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-medium text-text-primary",+ children: e+ });+}+function Ik({ href: e, children: t, leadingIcon: n }) {+ return /* @__PURE__ */ (0, V.jsx)(Ok, {+ href: e,+ target: "_blank",+ rel: "noopener noreferrer",+ size: "small",+ leadingIcon: n,+ trailingIcon: _T,+ className: "min-w-0 max-w-full",+ children: /* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 whitespace-normal break-all",+ children: t+ })+ });+}+function Lk({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)("dl", {+ className: "flex flex-col",+ children: e+ });+}+function Rk({ term: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",+ children: [/* @__PURE__ */ (0, V.jsx)("dt", {+ className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",+ children: e+ }), /* @__PURE__ */ (0, V.jsx)("dd", {+ className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",+ children: t+ })]+ });+}+function zk({ summary: e, defaultOpen: t = !1, children: n }) {+ let r = (0, B.useId)(), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(t);+ return /* @__PURE__ */ (0, V.jsxs)("details", {+ ref: (e) => {+ i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);+ },+ children: [/* @__PURE__ */ (0, V.jsxs)("summary", {+ "aria-expanded": s,+ "aria-controls": r,+ onClick: (e) => {+ e.preventDefault(), !(!i.current || !a.current) && (We(i.current, a.current, !s), c(!s));+ },+ className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",+ children: [/* @__PURE__ */ (0, V.jsx)(lT, {+ "aria-hidden": !0,+ className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"+ }), e]+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ ref: a,+ id: r,+ inert: !s,+ children: /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-col gap-2 pt-3",+ children: n+ })+ })]+ });+}+function xce({ name: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: "0 0 24 24",+ fill: "none",+ className: "size-4 shrink-0 stroke-current stroke-2",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+ });+}+function Bk({ mark: e }) {+ return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, V.jsx)("img", {+ src: e,+ alt: "",+ width: 16,+ height: 16,+ className: "size-4 shrink-0"+ }) : /* @__PURE__ */ (0, V.jsx)(xce, { name: e });+}+//#endregion+//#region src/react/activity/tasks.ts+var Vk = "/api/tasks", Hk = ["tasks"], Sce = (e, t) => G(`${Vk}?${new URLSearchParams({+ before_finished_at: e.finished_at || "",+ before_id: String(e.id)+})}`, t);+function Uk(...e) {+ let t = /* @__PURE__ */ new Map();+ for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);+ return [...t.values()].sort((e, t) => {+ let n = e.finished_at || "", r = t.finished_at || "";+ return n === r ? t.id - e.id : n < r ? 1 : -1;+ });+}+var Cce = 2e3, wce = 1e4, Tce = (e) => e?.running.length ? Cce : wce, Wk = (e) => G(Vk, e);+async function Ece(e) {+ await z.fetchQuery({+ queryKey: Hk,+ queryFn: () => Wk(e)+ });+}+var Gk = {+ manual: "手动",+ scheduled: "定时",+ startup: "启动",+ cli: "命令行"+}, Dce = {+ pending: "排队中",+ running: "进行中",+ succeeded: "已完成",+ failed: "失败",+ cancelled: "已取消",+ interrupted: "被打断"+}, Oce = (e) => Dce[e] || e, kce = {+ checked: "已检查",+ total: "总数",+ scanned: "已扫描",+ identified: "已识别",+ candidates: "资料候选",+ covers: "封面",+ changed: "已改动",+ operation: "操作",+ ok: "取得",+ miss: "未取得",+ kept: "保留",+ planned: "计划",+ done: "已处理",+ added: "新增",+ written: "已写入",+ removed: "已移除",+ exit_code: "退出码",+ issue_count: "问题",+ followups: "派出后继",+ followups_duplicate: "已在排队",+ followups_truncated: "超上限未派",+ followups_depth_exceeded: "超深度未派",+ outcome: "结果",+ name: "实体",+ matched: "图库命中",+ size: "尺寸",+ source: "来源",+ cover_network: "封面连不上图片主机"+};+function Ace(e) {+ let t = /* @__PURE__ */ new Map();+ for (let n of e) {+ if (!n.followup_key || n.parent_run_id == null) continue;+ let e = t.get(n.parent_run_id);+ e ? e.push(n) : t.set(n.parent_run_id, [n]);+ }+ return t;+}+function jce(e, t) {+ let n = [], r = /* @__PURE__ */ new Map();+ for (let i of e) {+ if (!t(i)) {+ r = /* @__PURE__ */ new Map(), n.push({+ run: i,+ runs: [i]+ });+ continue;+ }+ let e = r.get(i.task_key);+ if (e) e.runs.push(i);+ else {+ let e = {+ run: i,+ runs: [i]+ };+ r.set(i.task_key, e), n.push(e);+ }+ }+ return n;+}+var Mce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Kk = (e) => e.status === "pending" || e.status === "running";+function Nce(e) {+ let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;+ return [r, e.error || Yk(e.result_summary) || (Kk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");+}+function qk(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 Jk(e) {+ if (!e) return "";+ let t = new Date(e);+ return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {+ month: "2-digit",+ day: "2-digit",+ hour: "2-digit",+ minute: "2-digit"+ });+}+var Pce = /* @__PURE__ */ new Set([+ "blocked_by",+ "status",+ "run_id",+ "request_id",+ "started_at",+ "completed_at",+ "finished_at"+]);+function Yk(e) {+ return Object.entries(e || {}).filter(([e, t]) => !Pce.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${kce[e] || e} ${t}`).join(" · ");+}+//#endregion+//#region src/react/activity/resource-search.tsx+function Fce({ className: e }) {+ return /* @__PURE__ */ (0, V.jsx)("span", {+ className: e,+ "aria-hidden": !0,+ dangerouslySetInnerHTML: { __html: Ke("") }+ });+}+function Ice(e) {+ return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";+}+function Lce({ initialCode: e, reason: t, choose: n }) {+ let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => Ice(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = kE(), v = () => {+ if (!r.trim() || _.busy) return;+ let e = new URLSearchParams({+ code: r.trim(),+ goal: a+ });+ s && e.set("min_size", String(Math.round(Number(s) * 1024 ** 3))), l && e.set("max_size", String(Math.round(Number(l) * 1024 ** 3))), f(null), g("");+ let t = r.trim();+ _.run("search", (t) => G(`/api/resources/search?${e}`, t), (e) => {+ f(e), m(t);+ });+ };+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ "aria-label": "资源搜索",+ "aria-busy": !!_.busy,+ className: "flex min-w-0 flex-col gap-4",+ children: [+ t ? /* @__PURE__ */ (0, V.jsxs)(Nk, { children: [+ "版本目标:",+ t,+ "。可在下方调整搜索优先项;完整度与水印需要逐条复核。"+ ] }) : null,+ /* @__PURE__ */ (0, V.jsx)(_k, {+ label: "搜索资源",+ value: r,+ maxLength: 80,+ placeholder: "输入番号,按回车搜索",+ leadingIcon: _.busy ? Fce : TT,+ isReadOnly: !!_.busy,+ "aria-busy": !!_.busy,+ onChange: i,+ onKeyDown: (e) => {+ e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), v());+ }+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1",+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(Sk, {+ "aria-label": "优先寻找",+ selectedKey: a,+ isDisabled: !!_.busy,+ onSelectionChange: (e) => {+ e !== null && o(String(e));+ },+ children: [+ /* @__PURE__ */ (0, V.jsx)(Ck, {+ id: "quality",+ children: "高清"+ }),+ /* @__PURE__ */ (0, V.jsx)(Ck, {+ id: "chinese",+ children: "中字"+ }),+ /* @__PURE__ */ (0, V.jsx)(Ck, {+ id: "uncensored",+ children: "无码"+ })+ ]+ })]+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex gap-3 max-sm:flex-col",+ children: [/* @__PURE__ */ (0, V.jsx)(_k, {+ label: "最小体积(GiB)",+ inputMode: "decimal",+ value: s,+ onChange: c+ }), /* @__PURE__ */ (0, V.jsx)(_k, {+ label: "最大体积(GiB)",+ inputMode: "decimal",+ value: l,+ onChange: u+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),+ _.busy ? /* @__PURE__ */ (0, V.jsx)(Nk, {+ role: "status",+ children: "正在搜索资源"+ }) : null,+ _.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: _.error }) : null,+ d?.error ? /* @__PURE__ */ (0, V.jsx)(Nk, {+ role: "status",+ children: d.error+ }) : null,+ d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(Nk, {+ role: "status",+ children: "没有符合条件的资源。"+ }) : null,+ d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(Nk, { children: e }, e)),+ d?.items.length ? /* @__PURE__ */ (0, V.jsx)("ul", {+ className: "flex min-w-0 flex-col gap-4",+ children: d.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ className: "flex min-w-0 flex-col gap-2 border-t border-separator-border pt-4",+ children: [+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "break-words text-body-2-medium text-text-primary",+ children: e.name+ }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: [+ `${(e.size / 1024 ** 3).toFixed(2)} GiB`,+ `${e.seeders} 个做种`,+ e.resolution ? `${e.resolution}p` : "",+ e.codec,+ e.chinese ? "中字" : "",+ e.uncensored ? "无码" : "",+ e.origins.join("、"),+ e.nature+ ].filter(Boolean).join(" · ") }),+ /* @__PURE__ */ (0, V.jsx)("div", { children: /* @__PURE__ */ (0, V.jsx)(J, {+ type: "button",+ variant: "secondary",+ onClick: () => {+ n(e.uri, p), g(e.id);+ },+ children: h === e.id ? "已填入磁力" : "选用此资源"+ }) })+ ]+ }, e.id))+ }) : null+ ]+ });+}+//#endregion+//#region src/react/activity/downloads-panel.tsx+var Xk = "/api/downloads", Zk = ["downloads"], Rce = "/api/downloads/cancel", zce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Bce = {+ ingested: "lime",+ failed: "rose",+ cancelled: "yellow",+ stalled: "yellow"+}, Vce = {+ submitted: "已提交,远端开始下载后这里会显示进度。",+ adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",+ adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",+ refused: "这个资源被判为违规,不再提交。",+ failed: "提交没有成功。"+}, Hce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, Qk = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";+function Uce({ prefill: e }) {+ let t = TS({+ queryKey: Zk,+ queryFn: ({ signal: e }) => G(`${Xk}?limit=50`, e),+ refetchInterval: (e) => zce(e.state.data)+ }), n = t.data;+ if (!n) return t.error ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: W(t.error)+ }) : null;+ let r = n.providers.filter((e) => e.configured);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ t.error ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: W(t.error)+ }) : null,+ n.available ? r.length ? /* @__PURE__ */ (0, V.jsx)(Wce, {+ snapshot: n,+ prefill: e+ }) : /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ children: "还没有配置云下载。在配置页「媒体」分组填好 CloudDrive2 的地址与令牌,或登录 PikPak, 这里就能粘贴磁力提交离线下载。"+ }) : /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ children: "云下载只在账本写入端可用。"+ }),+ n.tasks.length ? /* @__PURE__ */ (0, V.jsx)("ul", {+ "aria-live": "polite",+ className: "flex min-w-0 flex-col gap-3",+ children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(Kce, {+ task: e,+ writable: n.available+ }, e.id))+ }) : null+ ] });+}+function Wce({ snapshot: e, prefill: t }) {+ let n = lS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, B.useState)(r[0].key), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(t?.code ?? ""), [u, d] = (0, B.useState)(r[0].target), [f, p] = (0, B.useState)(null), m = kE(), h = (0, B.useRef)(null);+ (0, B.useEffect)(() => {+ t && h.current?.focus();+ }, [t]);+ let g = r.find((e) => e.key === i) ?? r[0], _ = (e) => {+ a(e), d(r.find((t) => t.key === e)?.target ?? "");+ };+ return /* @__PURE__ */ (0, V.jsx)("form", {+ "aria-label": "提交磁力",+ noValidate: !0,+ onSubmit: (e) => {+ e.preventDefault();+ let r = {+ magnet: o,+ provider: i,+ target: u,+ code: c,+ title: t?.title,+ origin: t?.origin+ };+ p(null), m.run("submit", (e) => K(Xk, r, "POST", e), (e) => {+ p(e), e.ok && s(""), n.invalidateQueries({ queryKey: Zk });+ });+ },+ children: /* @__PURE__ */ (0, V.jsxs)(wk, { children: [+ /* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Lce, {+ initialCode: t?.code ?? "",+ reason: t?.searchReason,+ choose: (e, t) => {+ s(e), l(t), h.current?.focus();+ }+ }),+ t?.title ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,+ /* @__PURE__ */ (0, V.jsx)(_k, {+ ref: h,+ label: "磁力链接",+ placeholder: "magnet:?xt=urn:btih:…",+ autoComplete: "off",+ maxLength: 4e3,+ value: o,+ onChange: s+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1",+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "下载到" }), /* @__PURE__ */ (0, V.jsx)(Sk, {+ "aria-label": "下载到",+ selectedKey: i,+ onSelectionChange: (e) => {+ e !== null && _(String(e));+ },+ children: r.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {+ id: e.key,+ children: e.label+ }, e.key))+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)(_k, {+ label: "目标目录",+ placeholder: g.target || "/云下载",+ autoComplete: "off",+ maxLength: 300,+ hint: "留空就用配置页填的目标目录。",+ value: u,+ onChange: d+ }),+ /* @__PURE__ */ (0, V.jsx)(_k, {+ label: "番号",+ placeholder: "可不填",+ autoComplete: "off",+ maxLength: 60,+ value: c,+ onChange: l+ })+ ] }),+ f ? /* @__PURE__ */ (0, V.jsx)(jk, {+ divided: !0,+ children: /* @__PURE__ */ (0, V.jsx)(Gce, { result: f })+ }) : null,+ m.error ? /* @__PURE__ */ (0, V.jsx)(jk, {+ divided: !0,+ children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: m.error })+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(Mk, {+ status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,+ children: /* @__PURE__ */ (0, V.jsx)(J, {+ type: "submit",+ disabled: !o.trim(),+ ...X(m.busy === "submit"),+ children: "提交离线下载"+ })+ })+ ] })+ });+}+function Gce({ result: e }) {+ let t = Qk(e.task), n = Vce[e.outcome];+ return e.outcome === "failed" ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: n }) : /* @__PURE__ */ (0, V.jsx)(Nk, {+ role: "status",+ children: n+ });+}+function Kce({ task: e, writable: t }) {+ let n = lS(), r = kE(), [i, a] = (0, B.useState)(!1), o = Qk(e), s = e.state === "failed", c = [+ e.provider_label,+ e.code,+ e.target,+ Jk(e.submitted_at)+ ].filter(Boolean).join(" · "), l = () => {+ n.invalidateQueries({ queryKey: Zk });+ }, u = () => {+ r.run("cancel", (t) => K(Rce, { id: e.id }, "POST", t), l);+ }, d = () => {+ let t = {+ magnet: e.source_uri,+ provider: e.provider,+ target: e.target,+ code: e.code,+ title: e.title,+ origin: e.origin+ };+ r.run("resubmit", (e) => K(Xk, t, "POST", e), l);+ }, f = () => {+ navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));+ };+ return /* @__PURE__ */ (0, V.jsxs)("li", {+ "data-download-state": e.state,+ "data-download-id": e.id,+ className: CE({+ padding: "none",+ bordered: "line",+ className: s ? "flex flex-col border-border-error-default" : "flex flex-col"+ }),+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2",+ children: [/* @__PURE__ */ (0, V.jsx)("strong", {+ className: "min-w-0 break-words text-title-1-medium text-text-primary",+ children: Hce(e)+ }), /* @__PURE__ */ (0, V.jsx)(bE, {+ color: Bce[e.state] ?? "neutral",+ children: e.state_label+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "min-w-0 break-words text-caption-1-regular text-text-secondary",+ children: c+ }),+ e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(OE, {+ label: "远端下载进度",+ value: Math.round(e.progress * 100),+ max: 100+ }) : null,+ e.ledger_path ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: "min-w-0 break-all text-caption-1-regular text-text-secondary",+ children: e.ledger_path+ }) : null,+ r.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: r.error }) : null,+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2 pt-1",+ children: [+ t && e.cancellable ? /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ size: "small",+ ...X(r.busy === "cancel"),+ onClick: u,+ children: "取消"+ }) : null,+ t && e.resubmittable ? /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ size: "small",+ ...X(r.busy === "resubmit"),+ onClick: d,+ children: "重新提交"+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "ghost",+ size: "small",+ onClick: f,+ children: i ? "已复制磁力" : "复制磁力"+ })+ ]+ })+ ]+ }), o ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",+ children: /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: o+ })+ }) : null]+ });+}+//#endregion+//#region src/react/activity/activity-page.tsx+var qce = {+ succeeded: "lime",+ failed: "rose",+ cancelled: "yellow",+ interrupted: "yellow"+};+function $k({ status: e }) {+ return /* @__PURE__ */ (0, V.jsx)(bE, {+ color: qce[e] ?? "neutral",+ children: Oce(e)+ });+}+function eA({ rows: e }) {+ return /* @__PURE__ */ (0, V.jsx)("ul", {+ className: "flex min-w-0 flex-col",+ children: e.map((e) => {+ let t = Nce(e);+ return /* @__PURE__ */ (0, V.jsxs)("li", {+ "data-status": e.status,+ "data-followup-key": e.followup_key,+ className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 border-t border-separator-border px-5 py-2.5",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 break-words text-caption-1-regular text-text-primary",+ children: e.task_label+ }),+ /* @__PURE__ */ (0, V.jsx)($k, { status: e.status }),+ t ? /* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 break-words text-caption-1-regular text-text-secondary",+ children: t+ }) : null+ ]+ }, e.id);+ })+ });+}+function tA({ run: e, meta: t, children: n, footer: r, followups: i }) {+ return /* @__PURE__ */ (0, V.jsxs)("li", {+ "data-status": e.status,+ "data-task-key": e.task_key,+ "data-run-id": e.id,+ className: CE({+ padding: "none",+ bordered: "line",+ className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"+ }),+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",+ children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-wrap items-center gap-2",+ children: [/* @__PURE__ */ (0, V.jsx)("strong", {+ className: "min-w-0 break-words text-title-1-medium text-text-primary",+ children: e.task_label+ }), /* @__PURE__ */ (0, V.jsx)($k, { status: e.status })]+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: t+ }),+ n+ ]+ }),+ i?.length ? /* @__PURE__ */ (0, V.jsx)(eA, { rows: i }) : null,+ r ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",+ children: /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: r+ })+ }) : null+ ]+ });+}+function Jce({ run: e, followups: t }) {+ let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = qk(e.elapsed_seconds), o = [Gk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");+ return /* @__PURE__ */ (0, V.jsx)(tA, {+ run: e,+ meta: o,+ followups: t,+ children: n > 0 ? /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1.5",+ children: [/* @__PURE__ */ (0, V.jsx)(OE, {+ label: i,+ value: r,+ max: n+ }), /* @__PURE__ */ (0, V.jsxs)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: [+ i,+ " · ",+ r,+ " / ",+ n,+ " 项"+ ]+ })]+ }) : /* @__PURE__ */ (0, V.jsx)(TE, { label: i })+ });+}+function nA({ run: e, followups: t, runs: n }) {+ let r = Yk(e.result_summary), i = qk(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [+ Gk[e.trigger] || e.trigger,+ `近 ${n.length} 轮`,+ `${Jk(a.finished_at)} – ${Jk(e.finished_at)}`+ ] : [+ Gk[e.trigger] || e.trigger,+ Jk(e.finished_at),+ i && `用时 ${i}`+ ]).filter(Boolean).join(" · ");+ return /* @__PURE__ */ (0, V.jsx)(tA, {+ run: e,+ meta: o,+ footer: e.error,+ followups: t,+ children: r ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: r+ }) : null+ });+}+function rA({ title: e, children: t }) {+ let n = (0, B.useId)();+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ "aria-labelledby": n,+ className: "flex min-w-0 flex-col gap-3",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ id: n,+ className: "text-title-2-semibold text-text-primary",+ children: e+ }), t]+ });+}+function iA({ live: e = !1, children: t }) {+ return /* @__PURE__ */ (0, V.jsx)("ul", {+ "aria-live": e ? "polite" : void 0,+ className: "flex min-w-0 flex-col gap-3",+ children: t+ });+}+function Yce({ prefill: e }) {+ let t = TS({+ queryKey: Hk,+ queryFn: ({ signal: e }) => Wk(e),+ refetchInterval: (e) => Tce(e.state.data)+ }), n = t.data, r = n?.finished, [i, a] = (0, B.useState)([]), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(r);+ r !== c && (l(r), i.length && c && a(Uk(i, c)));+ let u = OS({+ mutationFn: ({ oldest: e }) => Sce(e),+ onSuccess: (e, { shown: t }) => {+ a((n) => Uk(n, t, e.finished || [])), s(!!e.finished_has_more);+ }+ }), d = t.error ? W(t.error) : "";+ if (!n) return /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: d || "读取任务中心失败"+ }) });+ let f = Uk(n.finished || [], i), p = [+ ...n.running || [],+ ...n.skipped || [],+ ...f+ ], m = Ace(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {+ !u.isPending && v && u.mutate({+ oldest: v,+ shown: f+ });+ }, x = _.filter((e) => m.get(e.id)?.some(Kk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = jce(w, (e) => Mce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;+ return /* @__PURE__ */ (0, V.jsxs)(EE, { children: [+ d ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: d+ }) : null,+ n.available === !1 ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "warning",+ children: n.message || "账本上还没有任务中心的表"+ }) : null,+ E ? /* @__PURE__ */ (0, V.jsx)(wE, {+ shell: "plain",+ icon: bT,+ title: "还没有任务记录",+ children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)(rA, {+ title: "正在进行",+ children: S.length || x.length ? /* @__PURE__ */ (0, V.jsxs)(iA, {+ live: !0,+ children: [S.map((e) => /* @__PURE__ */ (0, V.jsx)(Jce, {+ run: e,+ followups: m.get(e.id)+ }, e.id)), x.map((e) => /* @__PURE__ */ (0, V.jsx)(nA, {+ run: e,+ followups: m.get(e.id)+ }, e.id))]+ }) : /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ children: "没有任务在跑。"+ })+ }),+ C.length ? /* @__PURE__ */ (0, V.jsx)(rA, {+ title: "被挡下的",+ children: /* @__PURE__ */ (0, V.jsx)(iA, { children: C.map((e) => /* @__PURE__ */ (0, V.jsx)(nA, {+ run: e,+ followups: m.get(e.id)+ }, e.id)) })+ }) : null,+ w.length || y ? /* @__PURE__ */ (0, V.jsxs)(rA, {+ title: "最近完成",+ children: [+ w.length ? /* @__PURE__ */ (0, V.jsx)(iA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(nA, {+ run: e,+ runs: t,+ followups: m.get(e.id)+ }, e.id)) }) : null,+ u.error ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: W(u.error)+ }) : null,+ y ? /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ size: "small",+ leadingIcon: sT,+ className: "self-start",+ ...X(u.isPending),+ onClick: b,+ children: "加载更早"+ }) : null+ ]+ }) : null+ ] }),+ /* @__PURE__ */ (0, V.jsx)(rA, {+ title: "云下载",+ children: /* @__PURE__ */ (0, V.jsx)(Uce, { prefill: e })+ })+ ] });+}+//#endregion+//#region src/react/components/use-stuck.ts+function aA(e) {+ (0, B.useEffect)(() => {+ let t = e.current;+ if (!t) return;+ let n = 0, r = () => {+ n = 0;+ let e = parseFloat(getComputedStyle(t).top), r = window.scrollY > 0 && Number.isFinite(e) && t.getBoundingClientRect().top <= e + 1;+ t.toggleAttribute("data-stuck", r);+ }, i = () => {+ n ||= requestAnimationFrame(r);+ };+ return r(), addEventListener("scroll", i, { passive: !0 }), addEventListener("resize", i), () => {+ cancelAnimationFrame(n), removeEventListener("scroll", i), removeEventListener("resize", i);+ };+ }, [e]);+}+//#endregion+//#region src/react/components/filter-glass.tsx+function Xce({ title: e, children: t }) {+ let n = (0, B.useRef)(null);+ return aA(n), /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: n,+ role: "group",+ "aria-label": e,+ "data-filter-glass": !0,+ "data-glass-pane": "",+ className: "sticky top-topbar z-10 mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5",+ children: [/* @__PURE__ */ (0, V.jsx)("h3", {+ className: "mr-1 text-body-medium",+ children: e+ }), t]+ });+}+function oA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {+ let d = (0, B.useRef)(null);+ return aA(d), /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: d,+ role: "group",+ "aria-label": e,+ "data-filter-glass": !0,+ "data-glass-pane": "",+ ...c,+ className: _E("sticky top-topbar z-10 mb-5.5 flex flex-col", i),+ children: [+ s,+ /* @__PURE__ */ (0, V.jsx)("div", {+ role: "group",+ "aria-label": t,+ "data-filter-row": "top",+ className: _E("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),+ children: n+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ ref: u,+ "data-filter-row": "bottom",+ "aria-busy": l || void 0,+ className: _E("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),+ children: r+ })+ ]+ });+}+var Zce = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";+function sA({ children: e, pressed: t, onPress: n, className: r, ...i }) {+ return /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ ...i,+ "aria-pressed": t,+ className: _E(Zce, r),+ onClick: n,+ children: e+ });+}+var Qce = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";+function cA({ children: e, onPress: t, busy: n = !1 }) {+ return /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-glass-pill": "",+ className: Qce,+ "aria-busy": n || void 0,+ "aria-disabled": n || void 0,+ onClick: () => {+ n || t();+ },+ children: e+ });+}+//#endregion+//#region src/react/components/use-view-glide.ts+function $ce(e, t, n) {+ if (!t.contains(e)) return null;+ let r = 0, i = 0;+ for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;+ let a = e.getBoundingClientRect();+ for (let o = e.parentElement; o && o !== t; o = o.parentElement) {+ r -= o.scrollLeft, i -= o.scrollTop;+ let e = () => o.getBoundingClientRect();+ if (n === "x" && o.scrollWidth > o.clientWidth && getComputedStyle(o).overflowX !== "visible") {+ let t = e();+ if (a.right <= t.left || a.left >= t.right) return null;+ }+ if (n === "y" && o.scrollHeight > o.clientHeight && getComputedStyle(o).overflowY !== "visible") {+ let t = e();+ if (a.bottom <= t.top || a.top >= t.bottom) return null;+ }+ }+ return {+ x: r,+ y: i,+ w: e.offsetWidth,+ h: e.offsetHeight+ };+}+function lA(e, t, n, r, { axis: i = "x" } = {}) {+ let a = (0, B.useRef)(null), o = (0, B.useCallback)((r, o) => {+ let s = e.current, c = t.current, l = s?.parentElement;+ if (!s) return;+ let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? $ce(u, l, i) : null;+ if (!d || !d.w) {+ s.hidden = !0;+ return;+ }+ let f = s.hidden ? null : a.current;+ s.hidden = !1, a.current = d, Fe(s, o ? f : null, d, i);+ }, [+ e,+ t,+ n,+ i+ ]), s = (0, B.useRef)(!1);+ return (0, B.useLayoutEffect)(() => {+ let t = e.current;+ t && !s.current && (t.hidden = !0), o(null, s.current), s.current = !0;+ }, [o, r]), (0, B.useEffect)(() => {+ let t = e.current?.parentElement, n = 0, r = () => {+ n ||= requestAnimationFrame(() => {+ n = 0, o(null, !1);+ });+ };+ return t?.addEventListener("scroll", r, {+ capture: !0,+ passive: !0+ }), addEventListener("resize", r, { passive: !0 }), () => {+ cancelAnimationFrame(n), t?.removeEventListener("scroll", r, { capture: !0 }), removeEventListener("resize", r);+ };+ }, [e, o]), {+ hover: (0, B.useCallback)((e) => {+ e.pointerType !== "touch" && o(e.currentTarget, !0);+ }, [o]),+ leave: (0, B.useCallback)((e) => {+ e.pointerType !== "touch" && o(null, !0);+ }, [o]),+ sync: (0, B.useCallback)(() => {+ e.current?.getAnimations().forEach((e) => e.cancel()), o(null, !1);+ }, [e, o])+ };+}+//#endregion+//#region src/react/components/use-moving-surface.ts+var ele = {+ selection: {+ type: ni,+ duration: .16,+ bounce: 0+ },+ hover: {+ type: ni,+ duration: .08,+ bounce: 0+ }+};+function uA(e) {+ let [t, n] = (0, B.useState)(null);+ return (0, B.useLayoutEffect)(() => {+ if (!t) return;+ let n = document.createElement("span");+ n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;+ let r = matchMedia("(prefers-reduced-motion: reduce)"), i = matchMedia("(hover: hover) and (pointer: fine)"), a = !1, o = null, s = null, c = "", l, u = e === "selection" ? "[role=\"tab\"],label[data-rac]" : "[role=\"option\"],button", d = () => [...t.querySelectorAll(u)].filter((e) => e.getBoundingClientRect().width > 0), f = () => {+ l?.cancel(), n.hidden = !0, s = null, c = "", delete t.dataset.surfaceReady;+ }, p = (u = !1) => {+ let p = d(), m = p.find((e) => e.hasAttribute("data-selected") || e.getAttribute("aria-selected") === "true"), h = e === "selection" ? m : o;+ if (!h || !t.contains(h) || !p.includes(h) || e === "hover" && (!i.matches || !a || p.length > 8 || h.matches(":disabled,[aria-disabled=\"true\"],[data-disabled]"))) {+ f();+ return;+ }+ let g = h.getBoundingClientRect(), _ = t.getBoundingClientRect(), v = _.width / t.offsetWidth || 1, y = _.height / t.offsetHeight || 1, b = (g.left - _.left) / v + t.scrollLeft - t.clientLeft, x = (g.top - _.top) / y + t.scrollTop - t.clientTop, S = g.width / v, C = g.height / y, w = `${b},${x},${S},${C}`;+ if (a && i.matches && !r.matches && s === h && c === w) return;+ let T = n.hidden ? null : n.getBoundingClientRect();+ l?.cancel(), n.hidden = !1, n.style.width = `${S}px`, n.style.height = `${C}px`;+ let E = `translate(${b}px, ${x}px) scale(1, 1)`;+ if (u && a && !r.matches && T && s !== h) {+ let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;+ l = Qf(n, { transform: [r, E] }, ele[e]);+ } else n.style.transform = E;+ s = h, c = w, t.dataset.surfaceReady = "";+ }, m = (t) => {+ if (a = t.pointerType === "mouse" && i.matches, e === "hover") {+ let e = t.target instanceof Element ? t.target.closest(u) : null;+ if (e === o && a) return;+ o = e, p(!0);+ }+ }, h = () => {+ a = !1, e === "hover" ? f() : p();+ }, g = () => {+ o = null, e === "hover" && f();+ }, _ = () => p(), v = new MutationObserver(() => p(!0)), y = new ResizeObserver(_), b = () => {+ y.disconnect(), y.observe(t), d().forEach((e) => y.observe(e));+ }, x = new MutationObserver(() => {+ b(), p();+ });+ return v.observe(t, {+ subtree: !0,+ attributes: !0,+ attributeFilter: [+ "data-selected",+ "aria-selected",+ "data-disabled",+ "aria-disabled"+ ]+ }), x.observe(t, {+ childList: !0,+ subtree: !0+ }), b(), p(), t.addEventListener("pointerdown", m, !0), t.addEventListener("pointermove", m), t.addEventListener("pointerleave", g), t.addEventListener("keydown", h, !0), t.addEventListener("scroll", _, !0), r.addEventListener("change", _), i.addEventListener("change", _), () => {+ l?.cancel(), v.disconnect(), x.disconnect(), y.disconnect(), t.removeEventListener("pointerdown", m, !0), t.removeEventListener("pointermove", m), t.removeEventListener("pointerleave", g), t.removeEventListener("keydown", h, !0), t.removeEventListener("scroll", _, !0), r.removeEventListener("change", _), i.removeEventListener("change", _), n.remove(), delete t.dataset.surfaceHost, delete t.dataset.surfaceReady;+ };+ }, [t, e]), n;+}+//#endregion+//#region src/react/components/segmented.tsx+function dA(e) {+ let t = uA("selection");+ return /* @__PURE__ */ (0, V.jsx)(lk, {+ ...e,+ ref: t+ });+}+function fA(e) {+ let t = uA("selection");+ return /* @__PURE__ */ (0, V.jsx)(NO, {+ ...e,+ ref: t+ });+}+var pA = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", mA = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", tle = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", hA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", gA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", nle = { "text-aa": 1.435 }, _A = /* @__PURE__ */ new Map();+function vA(e) {+ let t = _A.get(e);+ if (t) return t;+ let n = nle[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,+ className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+ }) : ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: "0 0 24 24",+ fill: "none",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+ });+ return r.displayName = `SpriteGlyph(${e})`, _A.set(e, r), r;+}+//#endregion+//#region src/react/entity-filter/entity-filter.ts+var rle = (e) => e === "videos", yA = () => /* @__PURE__ */ (0, V.jsx)("span", {+ "data-entity-sep": "",+ "aria-hidden": "true"+});+function ile(e) {+ let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = rle(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = lA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = lA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);+ return (0, B.useEffect)(() => {+ c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);+ }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(bA, {+ items: o,+ hidden: !l,+ actions: s+ }), /* @__PURE__ */ (0, V.jsx)(oA, {+ label: "筛选与排序",+ topLabel: "媒体与标签",+ attrs: {+ "data-filter-frame": "",+ "data-entity-filter-glass": ""+ },+ topClassName: "gap-1.5 overflow-visible",+ bottomClassName: "min-h-12",+ bottomRef: g,+ busy: e.busy,+ panes: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {+ ref: u,+ "data-view-glide": "",+ "aria-hidden": "true"+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ ref: d,+ "data-view-glide": "round",+ "aria-hidden": "true"+ })] }),+ top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ale, {+ keys: n,+ view: t,+ row: p,+ glide: v,+ onView: s.setView+ }), l ? /* @__PURE__ */ (0, V.jsx)(yA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: m,+ "data-entity-scroll": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ ref: f,+ role: "group",+ "aria-label": "观看状态",+ "data-entity-states": "",+ hidden: !l,+ onPointerLeave: _.leave,+ children: [i.map((e) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-entity-state": e.k,+ "data-entity-press": "",+ "aria-pressed": r === e.k,+ onPointerEnter: _.hover,+ onClick: () => {+ r !== e.k && s.setState(e.k);+ },+ children: e.label+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(yA, {})]+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ ref: h,+ "data-entity-tags": "",+ children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(sA, {+ "data-entity-tag": e.k,+ "data-entity-press": "",+ pressed: e.selected,+ onPress: () => s.toggleTag(e.k),+ children: [e.label, /* @__PURE__ */ (0, V.jsx)("span", {+ "data-count-badge": e.k,+ children: e.n.toLocaleString()+ })]+ }, e.k)) : null+ })]+ })] }),+ bottom: /* @__PURE__ */ (0, V.jsx)(ole, { ...e })+ })] });+}+function ale({ keys: e, view: t, row: n, glide: r, onView: i }) {+ let a = [];+ return e.people && a.push({+ value: "people",+ text: e.people.label,+ count: e.people.count,+ symbol: e.people.icon,+ kind: "people"+ }), a.push({+ value: "videos",+ text: "视频",+ count: e.videos.count,+ symbol: "play",+ kind: "video"+ }), e.photos && a.push({+ value: "photos",+ text: "照片",+ count: e.photos.count,+ symbol: "pics",+ kind: "image"+ }), /* @__PURE__ */ (0, V.jsx)("div", {+ ref: n,+ role: "group",+ "aria-label": e.label,+ "data-entity-media": "",+ onPointerLeave: r.leave,+ children: a.map(({ value: e, text: n, count: a, symbol: o, kind: s }) => {+ let c = `${n} ${Math.max(0, a || 0).toLocaleString()}`;+ return /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-view": e,+ "data-media-icon": s,+ "aria-pressed": t === e,+ "aria-label": c,+ title: c,+ onPointerEnter: r.hover,+ onClick: () => i(e),+ dangerouslySetInnerHTML: { __html: R(o) }+ }, e);+ })+ });+}+function bA({ items: e, hidden: t, actions: n }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-entity-combo": "",+ hidden: t,+ children: e.length ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-combo-chip": "",+ children: [e.label, /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "aria-label": `撤掉 ${e.label}`,+ onClick: () => e.kind === "untag" ? n.toggleTag(e.key) : n.clearFilter(e.key),+ children: "✕"+ })]+ }, `${e.kind}:${e.key}`)), /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-combo-clear": "",+ onClick: n.clearAll,+ children: "全部清除"+ })] }) : null+ });+}+function ole(e) {+ let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ t === "photos" && a?.back ? /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-photo-back": "",+ onClick: o.photoBack,+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "contents",+ dangerouslySetInnerHTML: { __html: R("chevron-left") }+ }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部照片" })]+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(sle, {+ text: n,+ busy: r+ }),+ t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(cle, {+ head: i,+ actions: o+ }) : null,+ t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)(lle, {+ head: a,+ actions: o,+ helpers: s+ }) : null+ ] });+}+function sle({ text: e, busy: t }) {+ return /* @__PURE__ */ (0, V.jsx)("h3", {+ "data-entity-readout": "",+ children: t ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-skeleton": "count",+ "aria-hidden": !0,+ className: "relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"+ }) : e+ });+}+function xA({ name: e, label: t, value: n, options: r, onChange: i }) {+ return /* @__PURE__ */ (0, V.jsx)(NO, {+ name: e,+ "aria-label": t,+ orientation: "horizontal",+ value: n,+ onChange: i,+ "data-entity-layout": "",+ className: hA,+ children: r.map(([e, t, n]) => {+ let r = vA(n);+ return /* @__PURE__ */ (0, V.jsx)(PO, {+ value: e,+ "aria-label": t,+ "data-glass-segment": "",+ className: gA,+ children: /* @__PURE__ */ (0, V.jsx)("span", {+ title: t,+ className: "contents",+ children: /* @__PURE__ */ (0, V.jsx)(r, { className: "size-4" })+ })+ }, e);+ })+ });+}+function SA({ onPress: e, busy: t = !1 }) {+ return /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-entity-batch": "",+ title: "换一批",+ "aria-label": "换一批",+ "aria-busy": t || void 0,+ "aria-disabled": t || void 0,+ onClick: () => {+ t || e();+ },+ dangerouslySetInnerHTML: { __html: t ? Ke("正在换一批") : R("shuffle") }+ });+}+function cle({ head: e, actions: t }) {+ return /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-entity-sorts": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)(SA, { onPress: () => void t.reshuffle() }),+ e.jav ? /* @__PURE__ */ (0, V.jsx)(xA, {+ label: "JAV 卡片版式",+ value: e.jav.layout,+ options: e.jav.options,+ onChange: t.setJavLayout+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(CA, {+ sorts: e.sorts,+ onSort: t.setSort+ })+ ]+ });+}+function CA({ sorts: e, onSort: t }) {+ return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: e.map((e) => {+ let n = vA(e.dir === "asc" ? "arrow-up" : "arrow-down");+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-entity-sort": e.key,+ "data-entity-press": "",+ "aria-pressed": e.pressed,+ "aria-label": e.ariaLabel || void 0,+ onClick: () => t(e.key),+ children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, V.jsx)(n, { className: "size-3.5" }) : null]+ }, e.key);+ }) });+}+function lle({ head: e, actions: t, helpers: n }) {+ let [r, i] = (0, B.useState)(!1), a = (0, B.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";+ return (0, B.useEffect)(() => {+ a.current && o && n.wireSourceTools(a.current);+ }, [n, o]), /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-entity-sorts": "",+ children: [+ e.shuffle ? /* @__PURE__ */ (0, V.jsx)(SA, {+ onPress: () => {+ i(!0), t.reshuffle().finally(() => i(!1));+ },+ busy: r+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(xA, {+ label: "图片布局",+ value: e.layout,+ options: e.layouts,+ onChange: t.setPhotoLayout+ }),+ o ? /* @__PURE__ */ (0, V.jsx)("span", {+ ref: a,+ "data-entity-srctools": "",+ dangerouslySetInnerHTML: { __html: o }+ }) : null+ ]+ });+}+//#endregion+//#region src/react/catalog-filter/catalog-filter-page.tsx+var wA = "";+function ule(e) {+ let t = !e.tiers, n = _le(e.comboHost);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-catalog-root": "",+ "data-loading": t || void 0,+ "data-refreshing": e.refreshing || void 0,+ className: "contents",+ children: [+ n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(bA, {+ items: e.combo,+ hidden: e.comboHidden,+ actions: e.actions+ }), n) : null,+ /* @__PURE__ */ (0, V.jsx)(ple, { ...e }),+ e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(dle, { ...e })+ ]+ });+}+function dle(e) {+ let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = lA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);+ (0, B.useEffect)(() => {+ n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);+ }, [n]);+ let l = !e.tiers, u = EA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);+ return (0, B.useLayoutEffect)(() => {+ Le(o.current, "tagbar");+ }, [u]), /* @__PURE__ */ (0, V.jsx)(oA, {+ label: "筛选与排序",+ topLabel: "视图与标签",+ attrs: {+ "data-filter-frame": "",+ "data-catalog-frame": ""+ },+ className: "mx-4",+ topClassName: "gap-1.5 overflow-visible",+ bottomClassName: e.trash ? "hidden" : "min-h-12",+ bottomRef: s,+ busy: !e.count || e.refreshing,+ panes: /* @__PURE__ */ (0, V.jsx)("span", {+ ref: r,+ "data-view-glide": "",+ "aria-hidden": "true"+ }),+ top: /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: a,+ "data-catalog-scroll": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ ref: i,+ role: "group",+ "aria-label": "视图",+ "data-catalog-views": "",+ onPointerLeave: c.leave,+ children: [e.views.map((n) => /* @__PURE__ */ (0, V.jsx)("a", {+ href: n.href,+ "data-catalog-view": n.k,+ "data-entity-press": "",+ "aria-pressed": e.state === n.k,+ onPointerEnter: c.hover,+ onClick: (e) => {+ e.preventDefault(), t.setView(n.k);+ },+ children: n.label+ }, n.k)), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-entity-sep": "",+ "aria-hidden": "true"+ })]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: o,+ "data-catalog-tags": "",+ children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(TA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(fle, {+ tag: e,+ onPress: t.toggleTag+ }, e.k))]+ })]+ }),+ bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(hle, { ...e })+ });+}+function fle({ tag: e, onPress: t }) {+ return /* @__PURE__ */ (0, V.jsxs)(sA, {+ "data-catalog-tag": e.k,+ "data-entity-press": "",+ pressed: e.selected,+ onPress: () => t(e.k),+ children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-count-badge": e.k,+ children: e.n.toLocaleString()+ })]+ });+}+function ple(e) {+ let { actions: t, helpers: n } = e, r = e.tiers ?? {+ key: "",+ performers: [],+ studios: []+ }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = EA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = EA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;+ return (0, B.useEffect)(() => {+ n.wireDrag(a.current), n.wireDrag(o.current);+ }, [+ n,+ u,+ d+ ]), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-catalog-tiers": "",+ hidden: !u && !d,+ children: [u ? /* @__PURE__ */ (0, V.jsx)("div", {+ ref: a,+ "data-catalog-tier": "performers",+ children: i ? /* @__PURE__ */ (0, V.jsx)(TA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-tier-performer": "",+ "data-entity-kind": "performer",+ "data-entity-name": e.name,+ onClick: () => t.openEntity("performer", e.name),+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-tier-ring": "",+ dangerouslySetInnerHTML: { __html: e.ringHtml }+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-tier-name": "",+ children: e.name+ })]+ }, e.name))+ }) : null, d ? /* @__PURE__ */ (0, V.jsx)("div", {+ ref: o,+ "data-catalog-tier": "studios",+ children: i ? /* @__PURE__ */ (0, V.jsx)(TA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-tier-studio": "",+ "data-entity-kind": "studio",+ "data-entity-name": e.name,+ onClick: () => t.openEntity("studio", e.name),+ children: [/* @__PURE__ */ (0, V.jsx)(mle, { studio: e }), e.name]+ }, e.name))+ }) : null]+ });+}+function mle({ studio: e }) {+ let [t, n] = (0, B.useState)(!1);+ return /* @__PURE__ */ (0, V.jsx)("span", {+ "data-tier-mark": "",+ children: e.logo && !t ? /* @__PURE__ */ (0, V.jsx)("img", {+ src: e.logo,+ alt: "",+ onError: () => n(!0),+ onLoad: (e) => {+ e.currentTarget.naturalWidth < 32 && n(!0);+ }+ }) : e.fallback+ });+}+function TA({ kind: e }) {+ let t = Array.from({ length: 64 }, (e, t) => t);+ return e === "tag" ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-catalog-placeholder": "tag",+ "aria-hidden": "true",+ children: t.map((e) => /* @__PURE__ */ (0, V.jsx)("span", {}, e))+ }) : /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-catalog-placeholder": "performer",+ "aria-hidden": "true",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]+ }, t) : /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-catalog-placeholder": "studio",+ "aria-hidden": "true",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]+ }, t)) });+}+function hle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {+ let [a, o] = (0, B.useState)(!1);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(gle, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-entity-sorts": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)(SA, {+ onPress: () => {+ o(!0), i.reshuffle().finally(() => o(!1));+ },+ busy: a || t+ }),+ n ? /* @__PURE__ */ (0, V.jsx)(xA, {+ name: n.name,+ label: n.label,+ value: n.value,+ options: n.options,+ onChange: i.setLayout+ }, n.name) : null,+ /* @__PURE__ */ (0, V.jsx)(CA, {+ sorts: r,+ onSort: i.setSort+ })+ ]+ })] });+}+function gle({ count: e }) {+ let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";+ return (0, B.useLayoutEffect)(() => {+ if (!e) {+ ke(n.current);+ return;+ }+ let i = t.current;+ i && (wA && i.dataset.popCount === void 0 && (i.dataset.popCount = wA), wA = r, Re(i, r));+ }, [e, r]), e ? /* @__PURE__ */ (0, V.jsx)("span", {+ ref: t,+ "data-catalog-readout": "",+ "data-count-readout": "",+ role: "status"+ }, "readout") : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-catalog-readout": "",+ children: /* @__PURE__ */ (0, V.jsx)("span", {+ ref: n,+ "data-skeleton": "count",+ "aria-hidden": !0,+ className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"+ })+ }, "skeleton");+}+function _le(e) {+ let [t, n] = (0, B.useState)(null);+ return (0, B.useLayoutEffect)(() => {+ if (!e) return;+ let t = e.ownerDocument.createElement("div");+ return t.className = "peach-react", e.replaceChildren(t), n(t), () => {+ t.remove(), n(null);+ };+ }, [e]), t;+}+function EA(e, t, n, r, i) {+ let a = () => ({+ key: n,+ limit: r,+ fetched: [],+ drained: !i+ }), [o, s] = (0, B.useState)(a), c = o.key === n ? o : a();+ c !== o && s(c);+ let l = (0, B.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, B.useRef)(null), d = (0, B.useRef)({+ current: c,+ all: l,+ more: i+ });+ d.current = {+ current: c,+ all: l,+ more: i+ };+ let f = (0, B.useCallback)(() => {+ let t = e.current, { current: n, all: r, more: i } = d.current;+ if (!(!t || !t.clientWidth || t.scrollLeft + t.clientWidth < t.scrollWidth - 320)) {+ if (n.limit < r.length) {+ s((e) => e.key === n.key ? {+ ...e,+ limit: e.limit + 12+ } : e);+ return;+ }+ n.drained || !i || u.current === n.key || (u.current = n.key, i().catch(() => []).then((e) => {+ u.current === n.key && (u.current = null), s((t) => t.key === n.key ? e.length ? {+ ...t,+ fetched: t.fetched.concat(e)+ } : {+ ...t,+ drained: !0+ } : t);+ }));+ }+ }, [e]);+ return (0, B.useLayoutEffect)(f), (0, B.useEffect)(() => {+ let t = e.current;+ return t?.addEventListener("scroll", f, { passive: !0 }), () => t?.removeEventListener("scroll", f);+ }), l.slice(0, c.limit);+}+//#endregion+//#region src/react/components/grid-reveal.tsx+function DA(e, t) {+ let [n, r] = (0, B.useState)(e ? "skeleton" : "none"), [i] = (0, B.useState)(() => e ? t() : ""), a = (0, B.useRef)(null);+ return (0, B.useLayoutEffect)(() => {+ a.current && ke(a.current);+ }, []), (0, B.useLayoutEffect)(() => {+ if (e || n !== "skeleton") return;+ let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");+ r(t ? "fade" : "none");+ }, [e]), (0, B.useEffect)(() => {+ if (n !== "fade") return;+ let e = setTimeout(() => r("none"), 1e3);+ return () => clearTimeout(e);+ }, [n]), {+ layer: n === "none" ? null : /* @__PURE__ */ (0, V.jsx)("div", {+ ref: a,+ "data-grid-fade": n === "fade" ? "" : void 0,+ "aria-hidden": !e || void 0,+ hidden: !e && n === "skeleton",+ onAnimationEnd: (e) => {+ e.target === e.currentTarget && r("none");+ },+ dangerouslySetInnerHTML: { __html: i }+ }),+ fading: n === "fade"+ };+}+function OA({ message: e, onRetry: t }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-error": "",+ onClick: (e) => {+ e.target.closest("[data-note-action]") && t();+ },+ dangerouslySetInnerHTML: { __html: Ie(e, {+ variant: "error",+ actionLabel: "重试"+ }) }+ });+}+//#endregion+//#region src/react/components/art-slot.tsx+function kA({ artwork: e, identity: t = e.html, relayout: n }) {+ let [r, i] = (0, B.useState)({+ identity: t,+ artwork: e+ });+ r.identity !== t && i({+ identity: t,+ artwork: e+ });+ let a = r.identity === t ? r.artwork : e, o = (0, B.useRef)(null), s = (0, B.useRef)(n);+ return s.current = n, (0, B.useLayoutEffect)(() => {+ o.current && s.current?.(o.current);+ }, [e.html]), /* @__PURE__ */ (0, V.jsx)("span", {+ ref: o,+ "data-media-art": a.kind,+ dangerouslySetInnerHTML: { __html: a.html }+ });+}+//#endregion+//#region src/react/components/media-card.tsx+var vle = 9 / 16;+function AA({ name: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+ });+}+var yle = {+ image: "图片",+ audio: "音频",+ archive: "压缩包",+ other: "其它文件"+};+function jA(e, t, n) {+ return t === "short" ? vle : o(n);+}+function ble(e) {+ let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = E(e), s = i[0] || "", c = ee(e);+ return {+ avatar: r ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-avatars": "",+ children: i.slice(0, 5).map((e, t) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-avatar": "",+ "data-entity-kind": "performer",+ "data-entity-name": e,+ title: `打开${c}页:${e}`,+ dangerouslySetInnerHTML: { __html: k(e, a[t] ?? null, "performer") }+ }, `${e}:${t}`))+ }) : t ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-avatar": "",+ "data-entity-kind": t,+ "data-entity-name": n,+ title: `打开${t === "performer" ? c : "资料"}页`,+ dangerouslySetInnerHTML: { __html: k(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }+ }) : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-avatar": "",+ dangerouslySetInnerHTML: { __html: k(n, null, "") }+ }),+ who: r ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-who": "",+ "data-entity-kind": "performer",+ "data-entity-name": s,+ children: s+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-who-more": "",+ children: `等 ${o} 人`+ })] }) : t ? /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-who": "",+ "data-entity-kind": t,+ "data-entity-name": n,+ children: n+ }) : /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-who": "",+ "data-open-unowned": "",+ children: n+ })+ };+}+function xle() {+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-media-preview": "",+ "data-open": "",+ title: "打开预览",+ "aria-label": "打开预览",+ children: [/* @__PURE__ */ (0, V.jsxs)("svg", {+ viewBox: "-18 -18 36 36",+ "aria-hidden": "true",+ children: [/* @__PURE__ */ (0, V.jsx)("circle", { r: "17" }), /* @__PURE__ */ (0, V.jsx)("circle", { r: "17" })]+ }), /* @__PURE__ */ (0, V.jsx)("svg", {+ "data-media-ring-play": "",+ viewBox: "0 0 24 24",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-play" })+ })]+ });+}+function Sle({ item: e, actions: t }) {+ let [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-later": "",+ children: /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-later": "",+ "aria-pressed": o,+ title: "稍后看",+ "aria-label": "稍后看",+ onClick: (n) => {+ n.stopPropagation(), !i && (a(!0), t.watchLater(e, (t) => r({+ id: e.id,+ on: t+ })).finally(() => a(!1)));+ },+ "aria-busy": i || void 0,+ "aria-disabled": i || void 0,+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: o ? "check" : "bookmark-plus" })+ })+ });+}+function MA(e, t) {+ let n = e?.querySelector("video.hv");+ !n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));+}+function Cle({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {+ let l = (0, B.useRef)(null), u = (0, B.useRef)(e);+ u.current = e;+ let d = (0, B.useCallback)((e) => {+ let t = u.current;+ l.current && l.current !== e && re(l.current), l.current = e, e && (!t.medium || t.medium === "video") && oe(e, t);+ }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = ble(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [+ e.feedback === "dislike" && "dislike",+ e.feedback === "seen" && "seen",+ e.disposal === "trash" && "dispose",+ e.watch_later && "later"+ ].filter(Boolean), O = (t) => {+ let n = t.target, r = l.current;+ if (!r) return;+ if (i || t.shiftKey || t.ctrlKey || t.metaKey) {+ t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);+ return;+ }+ if (n.closest("[data-open]")) {+ c(e, r);+ return;+ }+ let a = n.closest("[data-entity-kind]");+ if (a && r.contains(a)) {+ s.openEntity(a.dataset.entityKind || "", a.dataset.entityName || "");+ return;+ }+ let o = n.closest("[data-open-unowned]");+ if (o && r.contains(o)) {+ s.openUnowned();+ return;+ }+ let u = n.closest("[data-tag]");+ if (u && r.contains(u)) {+ s.toggleTag(u.dataset.tag || "");+ return;+ }+ c(e, r);+ }, k = /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-pic": "",+ style: { "--card-ratio": String(jA(e, t, n)) },+ children: [+ g.html ? /* @__PURE__ */ (0, V.jsx)(kA, {+ artwork: g,+ identity: _,+ relayout: (e) => ne(e, h)+ }) : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-nopic": "",+ children: "无预览"+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-badge": "",+ dangerouslySetInnerHTML: { __html: o.badgeHtml(e.location || "", e.cost || "") }+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-check": "",+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: "check" })+ }),+ /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-media-trash-mark": "",+ children: [/* @__PURE__ */ (0, V.jsx)(AA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]+ }),+ f ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-group": "",+ children: `${f.count} 卷`+ }) : null,+ p ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-group": "",+ title: p.editions.join(" · "),+ children: `${p.count} 个版本`+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-duration": "",+ children: fe(x)+ }),+ S > 0 ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-progress": "",+ role: "progressbar",+ "aria-label": "观看进度",+ "aria-valuemin": 0,+ "aria-valuemax": 100,+ "aria-valuenow": Math.round(S * 100),+ children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${(S * 100).toFixed(1)}%` } })+ }) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-scrub": "",+ children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })+ }),+ /* @__PURE__ */ (0, V.jsx)(xle, {}),+ /* @__PURE__ */ (0, V.jsx)(Sle, {+ item: e,+ actions: s+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-seek": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ onClick: (e) => {+ e.stopPropagation(), MA(l.current, -a);+ },+ title: `后退 ${a} 秒`,+ "aria-label": `后退 ${a} 秒`,+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: "rotate-ccw" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ onClick: (e) => {+ e.stopPropagation(), MA(l.current, a);+ },+ title: `前进 ${a} 秒`,+ "aria-label": `前进 ${a} 秒`,+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: "rotate-cw" })+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-open": "",+ title: "打开详情",+ "aria-label": "打开详情",+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: "expand" })+ })+ ]+ })+ ]+ });+ return /* @__PURE__ */ (0, V.jsxs)("article", {+ ref: d,+ "data-media-card": "",+ "data-id": e.id,+ "data-variant": t,+ "data-part-seed": f ? f.seed_id : void 0,+ "data-stacked": m ? "" : void 0,+ "data-pending-delete": e.disposal === "trash" ? "" : void 0,+ "data-selected": r ? "" : void 0,+ onClick: O,+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-open": "",+ "data-open": "",+ "aria-label": `打开 ${y}${f ? "分卷" : p ? "版本" : "详情"}`+ }),+ m ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-stack": "",+ children: k+ }) : k,+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-meta": "",+ children: [C, /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-text": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-title": "",+ "data-open": "",+ dangerouslySetInnerHTML: { __html: o.titleHtml(e, v) }+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-byline": "",+ children: [+ w,+ e.why ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-why": "",+ children: e.why+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-size": "",+ children: Number(b) > 0 ? pe(Number(b)) : "大小未知"+ }),+ e.play_count ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-watch-count": "",+ children: `看过 ${e.play_count}`+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-flags": "",+ children: D.map((e) => /* @__PURE__ */ (0, V.jsx)("i", { "data-flag": e }, e))+ })+ ]+ }),+ E.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-tags": "",+ children: E.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-tag": "",+ disabled: !!e.follow_item_id,+ "data-tag": e.follow_item_id ? void 0 : t,+ children: o.tagLabel(t)+ }, t))+ }) : null+ ]+ })]+ })+ ]+ });+}+function wle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : yle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {+ t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));+ }, g = (t) => {+ if (o.current) {+ if (n || t.shiftKey || t.ctrlKey || t.metaKey) {+ t.preventDefault(), i.toggleSelection(e.id, t.shiftKey);+ return;+ }+ a(e, o.current);+ }+ }, _ = p === "restore" ? "正在还原" : "正在处理";+ return /* @__PURE__ */ (0, V.jsxs)("article", {+ ref: o,+ "data-media-card": "",+ "data-id": e.id,+ "data-variant": "resource",+ "data-medium": e.medium || "other",+ "data-pending-delete": e.disposal === "trash" ? "" : void 0,+ "data-selected": t ? "" : void 0,+ onClick: g,+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-pic": "",+ style: { "--card-ratio": "1.7777777777777777" },+ children: [+ /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-media-glyph": "",+ children: [/* @__PURE__ */ (0, V.jsx)(AA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]+ }),+ l ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-art": "thumb",+ dangerouslySetInnerHTML: { __html: `<img class="poster" src="/photo-thumb?id=${e.id}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-badge": "",+ dangerouslySetInnerHTML: { __html: r.badgeHtml(e.location || "", e.cost || "") }+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-check": "",+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: "check" })+ }),+ /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-media-trash-mark": "",+ children: [/* @__PURE__ */ (0, V.jsx)(AA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-media-resource-action": p,+ "aria-label": `${m} ${u}`,+ title: m,+ onClick: h,+ "aria-busy": s || void 0,+ "aria-disabled": s || void 0,+ children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(AA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })+ })+ ]+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-meta": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-avatar": "",+ "data-media-kind-glyph": "",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)(AA, { name: f })+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-text": "",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-title": "",+ "data-middle-truncate": "",+ title: u,+ dangerouslySetInnerHTML: { __html: L(u || "未命名资源") }+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-media-byline": "",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-who": "",+ children: d+ }),+ e.why ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-why": "",+ children: e.why+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-size": "",+ children: Number(e.size) > 0 ? pe(Number(e.size)) : "大小未知"+ })+ ]+ })]+ })]+ })]+ });+}+function Tle(e) {+ return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(wle, { ...e }) : /* @__PURE__ */ (0, V.jsx)(Cle, { ...e });+}+var NA = (0, B.memo)(Tle), Ele = 1100, Dle = 340, Ole = 5e3;+function kle(e, t, n) {+ return new Promise((r) => {+ let i = new Image();+ n && (i.referrerPolicy = n);+ let a = !1, o = (e) => {+ a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));+ }, s = () => o(!1), c = setTimeout(s, Ole);+ t.cancels.add(s), i.onerror = s, i.onload = () => {+ if (!i.naturalWidth) {+ o(!1);+ return;+ }+ typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0);+ }, i.src = e;+ });+}+function PA({ load: e, canFlip: t, referrerPolicy: n }) {+ let [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(0), [s, c] = (0, B.useState)(null), l = (0, B.useRef)({+ live: !1,+ generation: 0,+ timers: /* @__PURE__ */ new Set(),+ cycle: null,+ cancels: /* @__PURE__ */ new Set(),+ armed: null,+ count: 0,+ at: 0+ }), u = (0, B.useRef)({+ load: e,+ canFlip: t+ });+ u.current = {+ load: e,+ canFlip: t+ };+ let d = (0, B.useCallback)(() => {+ let e = l.current;+ e.live = !1, e.generation += 1, e.timers.forEach(clearTimeout), e.timers.clear(), e.armed = null, e.cycle !== null && clearInterval(e.cycle), e.cycle = null, e.cancels.forEach((e) => e()), e.count = 0, e.at = 0;+ }, []), f = (e, t) => {+ let n = setTimeout(() => {+ l.current.timers.delete(n), t();+ }, e);+ return l.current.timers.add(n), n;+ }, p = () => {+ let e = l.current;+ if (!e.live || e.count < 2) return;+ let t = e.at;+ e.at = (t + 1) % e.count, c(t), o(e.at), f(980, () => c((e) => e === t ? null : e));+ }, m = async () => {+ let e = l.current;+ if (e.live || !u.current.canFlip()) return;+ e.live = !0;+ let t = ++e.generation, r = () => e.live && t === e.generation, a = [];+ try {+ a = (await u.current.load()).slice(0, 9);+ } catch {+ return;+ }+ if (!r() || !u.current.canFlip() || a.length < 2) return;+ let s = await Promise.all(a.map((t) => kle(t, e, n)));+ if (!r() || !u.current.canFlip()) return;+ let d = a.filter((e, t) => s[t]);+ d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {+ p(), e.cycle = setInterval(p, Ele);+ }));+ };+ return (0, B.useEffect)(() => d, [d]), {+ faces: r,+ current: a,+ leaving: s,+ onPointerEnter: () => {+ let e = l.current;+ e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Dle, () => {+ e.armed = null, m();+ });+ },+ onPointerLeave: () => {+ d(), i([]), o(0), c(null);+ }+ };+}+//#endregion+//#region src/react/components/mix-card.tsx+var FA = vA("play");+function Ale({ src: e }) {+ let [t, n] = (0, B.useState)(!1);+ return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {+ "data-mix-poster": "",+ src: e,+ width: 640,+ height: 360,+ alt: "",+ loading: "lazy",+ onError: () => n(!0),+ className: "absolute inset-0 block size-full object-contain"+ });+}+var IA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";+function jle({ faces: e, fallback: t, onOpenEntity: n }) {+ return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-mix-avatars": "",+ children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ title: `打开资料页:${e.name}`,+ "aria-label": `打开资料页:${e.name}`,+ onClick: () => n(e.kind, e.name),+ className: `${IA} cursor-pointer outline-none`,+ dangerouslySetInnerHTML: { __html: w(e.name, e, ae(e.name), e.kind) }+ }, `${e.kind}:${e.id}`))+ }) : /* @__PURE__ */ (0, V.jsx)("span", {+ "data-mix-initial": "",+ "aria-hidden": !0,+ className: `${IA} mt-0.5`,+ children: t+ });+}+function LA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {+ let b = PA({+ load: i,+ canFlip: a+ }), x = (0, B.useRef)(b.onPointerLeave);+ x.current = b.onPointerLeave;+ let S = (0, B.useRef)(null), C = (0, B.useCallback)((e) => {+ S.current = e, e && (e._stopHover = () => x.current());+ }, []), w = c ? () => {+ S.current && c(S.current);+ } : void 0, T = f !== void 0 || d !== void 0;+ return /* @__PURE__ */ (0, V.jsxs)("article", {+ ...y,+ ref: C,+ "data-mix-card": "",+ onMouseEnter: b.onPointerEnter,+ onMouseLeave: b.onPointerLeave,+ onClick: v ? w : void 0,+ className: "relative flex min-w-0 cursor-pointer flex-col gap-2",+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ "data-mix-stack": "",+ className: "relative isolate rounded-surface",+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ "data-mix-cover": "",+ "data-media-pic": T ? "" : void 0,+ style: d === void 0 ? void 0 : { "--card-ratio": String(d) },+ className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",+ children: [+ f?.html ? /* @__PURE__ */ (0, V.jsx)(kA, {+ artwork: f,+ identity: p,+ relayout: m+ }) : r ? /* @__PURE__ */ (0, V.jsx)(Ale, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",+ children: "无预览"+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "data-mix-faces": "",+ hidden: !b.faces.length,+ children: b.faces.map((e, t) => /* @__PURE__ */ (0, V.jsx)("div", {+ "data-mix-face": t === b.current ? "on" : t === b.leaving ? "off" : "",+ children: h ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-media-art": "",+ dangerouslySetInnerHTML: { __html: h(e) }+ }) : /* @__PURE__ */ (0, V.jsx)("img", {+ src: e,+ alt: "",+ loading: "eager"+ })+ }, e))+ }),+ /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ "data-mix-open": "",+ "aria-label": l,+ disabled: !c,+ onClick: v ? void 0 : w,+ className: "absolute inset-0 z-1 cursor-pointer rounded-surface outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring disabled:cursor-default"+ }),+ /* @__PURE__ */ (0, V.jsxs)("span", {+ "data-mix-badge": "",+ className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",+ children: [/* @__PURE__ */ (0, V.jsx)(FA, {+ "aria-hidden": !0,+ className: "size-3.75"+ }), g ?? `${n} 个视频`]+ })+ ]+ })+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 items-start gap-2.25",+ children: [+ _ ? /* @__PURE__ */ (0, V.jsx)("span", {+ "data-mix-glyph": "",+ "aria-hidden": !0,+ children: /* @__PURE__ */ (0, V.jsx)(FA, {})+ }) : /* @__PURE__ */ (0, V.jsx)(jle, {+ faces: o,+ fallback: e.slice(0, 1),+ onOpenEntity: s+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 flex-1 flex-col",+ children: [/* @__PURE__ */ (0, V.jsx)("b", {+ "data-mix-title": "",+ className: "truncate text-body-bold text-text-primary",+ children: e+ }), /* @__PURE__ */ (0, V.jsx)("span", {+ "data-mix-caption": "",+ className: "mt-0.5 truncate text-caption-1-regular text-text-secondary",+ children: t+ })]+ }),+ u+ ]+ })]+ });+}+//#endregion+//#region src/react/catalog-grid/catalog-grid-page.tsx+function RA(e) {+ if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(Nle, { ...e });+ let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${jC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;+ return /* @__PURE__ */ (0, V.jsx)(Ple, { ...e }, t);+}+function Mle({ name: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 24 24",+ "aria-hidden": "true",+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })+ });+}+function Nle(e) {+ let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(NA, {+ item: i,+ variant: r,+ layout: e.layout,+ selected: e.selected.has(i.id),+ selectMode: e.selectMode,+ seekSeconds: e.seekSeconds,+ helpers: e.helpers,+ actions: t,+ onOpen: n+ }, i.id));+ return r === "next" ? /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-next-row": "",+ children: i+ }) : /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-grid": "",+ "data-select-mode": e.selectMode ? "" : void 0,+ children: i+ });+}+function Ple(e) {+ let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? kre(e) : MC(e), s = i && e.initial ? {+ pages: [{+ ...e.initial,+ items: e.initial.items || [],+ offset: 0+ }],+ pageParams: [0]+ } : void 0, c = kS({+ queryKey: o.queryKey,+ queryFn: ({ pageParam: e, signal: t }) => o.queryFn({+ pageParam: e,+ signal: t+ }),+ initialPageParam: 0,+ getNextPageParam: o.getNextPageParam,+ initialData: s+ }), l = (0, B.useRef)(!1);+ (0, B.useEffect)(() => {+ c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));+ }, [c.isPending]);+ let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Nre(c.data?.pages || [], {+ collapse: e.groupCollapse !== !1,+ mix: !!e.mix && !a,+ javImage: r.javImage+ }), [+ c.data,+ e.groupCollapse,+ e.mix,+ a,+ r.javImage+ ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = DA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Fle(e, c.data, u, d, h);+ (0, B.useLayoutEffect)(() => {+ if (!c.data) return;+ let t = !0;+ return queueMicrotask(() => {+ t && e.onCount?.(p, f);+ }), () => {+ t = !1;+ };+ }, [+ c.data,+ p,+ f+ ]);+ let _ = (0, B.useCallback)((e, t) => n.open(e, t), [n]), v = (0, B.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, B.useCallback)((e) => n.openShort(e), [n]), b = (0, B.useCallback)(async () => {+ let e = await c.fetchNextPage({ cancelRefetch: !1 });+ if (e.isFetchNextPageError) throw e.error;+ }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Lle, {+ seed: i.seed,+ layout: r,+ helpers: t,+ actions: n+ }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(NA, {+ item: i.item,+ variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",+ layout: r,+ selected: e.selected.has(i.item.id),+ selectMode: e.selectMode,+ seekSeconds: e.seekSeconds,+ helpers: t,+ actions: n,+ onOpen: a ? v : _+ }, i.item.id);+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ ref: h,+ "data-media-body": "",+ "data-grid-reveal": m.fading ? "" : void 0,+ children: [m.layer, (() => {+ if (c.isPending) return null;+ if (!c.data) return /* @__PURE__ */ (0, V.jsx)(OA, {+ message: ye(c.error),+ onRetry: () => void c.refetch()+ });+ if (!u.length) {+ let t = e.emptyHtml?.({+ trash: a,+ libraryEmpty: !!c.data.pages[0]?.libraryEmpty+ }) || "";+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-empty": "",+ dangerouslySetInnerHTML: { __html: t }+ });+ }+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-sections": "",+ "data-select-mode": e.selectMode ? "" : void 0,+ children: Ire(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {+ "data-media-grid": "",+ children: t.tiles.map(x)+ }), t.strip ? /* @__PURE__ */ (0, V.jsx)(Ile, {+ cut: t.strip,+ props: e,+ onOpen: y+ }) : null] }, t.start))+ }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(zA, {+ entity: i,+ load: b,+ enabled: () => e.canLoadMore?.() !== !1+ }, c.data.pages.length) : null] });+ })()]+ });+}+function zA({ entity: e, load: t, enabled: n, children: r }) {+ let i = (0, B.useRef)(null), a = (0, B.useRef)(!1), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)({+ busy: !1,+ error: ""+ }), l = (0, B.useRef)({+ load: t,+ enabled: n+ });+ l.current = {+ load: t,+ enabled: n+ };+ let u = (0, B.useCallback)(async (e) => {+ let t = i.current;+ if (!(a.current || !t?.isConnected || !e && o.current || !l.current.enabled())) {+ a.current = !0, o.current = !1, c({+ busy: !0,+ error: ""+ });+ try {+ await l.current.load(), i.current && c({+ busy: !1,+ error: ""+ });+ } catch (e) {+ o.current = !0, i.current && c({+ busy: !1,+ error: ye(e)+ });+ } finally {+ a.current = !1;+ }+ }+ }, []), d = (0, B.useCallback)((e) => {+ i.current = e;+ }, []);+ (0, B.useEffect)(() => {+ let e = i.current;+ if (!e) return;+ let t = new IntersectionObserver((e) => {+ e.some((e) => e.isIntersecting) && u(!1);+ }, { rootMargin: "320px" });+ return t.observe(e), () => t.disconnect();+ }, [u]);+ let f = s.busy ? {+ "aria-busy": !0,+ "aria-disabled": !0+ } : {};+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)("button", {+ ref: d,+ type: "button",+ "data-entity-more": "",+ ...f,+ onClick: () => void u(!0),+ children: r ?? "载入更多"+ }) : /* @__PURE__ */ (0, V.jsx)("div", {+ ref: d,+ "data-load-more": "",+ ...f,+ onClick: () => void u(!0),+ dangerouslySetInnerHTML: { __html: Pe("继续载入中…") }+ }), s.error ? /* @__PURE__ */ (0, V.jsx)(OA, {+ message: s.error,+ onRetry: () => void u(!0)+ }) : null] });+}+function Fle(e, t, n, r, i) {+ let [a, o] = (0, B.useState)([]), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(0), u = (0, B.useRef)(0), d = (0, B.useRef)([]);+ return (0, B.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, B.useEffect)(() => {+ let n = t?.pages.length || 0;+ if (!e.shorts || u.current >= n) return;+ u.current = n;+ let r = new AbortController();+ d.current.push(r);+ let i = n - 1;+ G(`/api/items?${Fre(e.filters || {}, l.current)}`, r.signal).then((e) => {+ let t = e.items || [];+ if (!t.length) {+ l.current = 0;+ return;+ }+ c({+ page: i,+ total: Number(e.total || 0),+ items: t,+ more: e.has_more !== !1+ });+ }).catch(() => {});+ }, [t]), (0, B.useLayoutEffect)(() => {+ if (!s) return;+ c(null);+ let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Pre(n.length - e, f, d);+ if (!p.length) return;+ let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);+ l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {+ at: m,+ total: s.total,+ items: s.items+ }]);+ }, [s]), a;+}+function Ile({ cut: e, props: t, onOpen: n }) {+ let r = (0, B.useRef)(null), { wireDrag: i } = t;+ return (0, B.useEffect)(() => {+ r.current && i(r.current);+ }, [i]), /* @__PURE__ */ (0, V.jsxs)("section", {+ "data-shorts-strip": "",+ children: [/* @__PURE__ */ (0, V.jsxs)("h2", { children: [+ "竖屏 ",+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-shorts-count": "",+ children: `${e.total.toLocaleString()} 个`+ }),+ /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ "data-shorts-enter": "",+ onClick: () => t.actions.openShorts(),+ children: [/* @__PURE__ */ (0, V.jsx)(Mle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]+ })+ ] }), /* @__PURE__ */ (0, V.jsx)("div", {+ ref: r,+ "data-shorts-row": "",+ children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(NA, {+ item: e,+ variant: "short",+ layout: t.layout,+ selected: t.selected.has(e.id),+ selectMode: t.selectMode,+ seekSeconds: t.seekSeconds,+ helpers: t.helpers,+ actions: t.actions,+ onOpen: n+ }, e.id))+ })]+ });+}+function BA(e, t, n) {+ return N(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);+}+function Lle({ seed: e, layout: t, helpers: n, actions: r }) {+ let i = (0, B.useRef)(/* @__PURE__ */ new Map()), a = (0, B.useRef)(t);+ a.current = t;+ let o = P(e, n.tagLabel), s = (0, B.useCallback)(async () => {+ let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => NC(e, t.javImage)).slice(0, 9);+ return i.current = new Map(n.map((e) => [String(e.id), BA(e, t, !0).html])), n.map((e) => String(e.id));+ }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = BA(e, t, !1);+ return /* @__PURE__ */ (0, V.jsx)(LA, {+ "data-mix-seed": String(e.id),+ name: `Mix · ${o}`,+ caption: `${n.displayName(e, e.name || "")}及相似作品`,+ count: 0,+ badge: "Mix",+ glyph: !0,+ wholeCard: !0,+ poster: null,+ artwork: l,+ artworkIdentity: c === "small" ? l.html : BA(e, {+ ...t,+ size: "small"+ }, !1).html,+ relayoutArt: (e) => ne(e, c),+ ratio: jA(e, "grid", t),+ flipImages: s,+ faceHtml: (e) => i.current.get(e) || "",+ canFlip: r.canFlip,+ faces: [],+ onOpenEntity: r.openEntity,+ onOpen: (t) => r.openMix(e.id, t),+ openLabel: `打开 Mix · ${o}`+ });+}+//#endregion+//#region src/react/media-sources.ts+async function VA(e) {+ await z.fetchQuery({+ queryKey: et,+ queryFn: () => nt(e)+ });+}+var Rle = [+ "local",+ "115",+ "pikpak"+], zle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ble = "/api/duplicates?limit=120", HA = ["duplicates"], UA = "/api/batch", WA = (e) => G(Ble, e);+async function Vle(e) {+ await Promise.all([z.fetchQuery({+ queryKey: HA,+ queryFn: () => WA(e)+ }), VA(e)]);+}+var GA = {+ largest: "最大的一个",+ longest: "最长的一个",+ 115: "115(没有则留最大)",+ pikpak: "PikPak(没有则留最大)",+ all: "零个文件"+}, Hle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), KA = (e, t) => Hle(e, t).filter((t) => e.some((e) => e.location !== t)), Ule = (e, t) => t.filter((t) => e.some((e) => KA(e.files, [t]).length));+function Wle(e, t) {+ let n = [];+ for (let r of e) {+ if (t === "all") {+ for (let e of r.files) n.push(e.id);+ continue;+ }+ let e;+ if (t === "largest" || t === "longest") {+ let n = t === "longest" ? "is_longest" : "is_largest";+ e = r.files.find((e) => e[n]) ?? r.files[0];+ } else {+ let n = r.files.filter((e) => e.location === t), i = n.length ? n : r.files;+ e = i.reduce((e, t) => (t.size || 0) > (e.size || 0) ? t : e, i[0]);+ }+ for (let t of r.files) t.id !== e?.id && n.push(t.id);+ }+ return n;+}+function Gle(e, t) {+ let n = new Set(t);+ return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);+}+async function qA(e, t) {+ for (let n = 0; n < e.length; n += 200) await K(UA, {+ ids: e.slice(n, n + 200),+ operation: t+ });+}+//#endregion+//#region src/react/library-processing/library-processing.ts+var JA = "/api/library-processing", YA = ["library-processing"], XA = (e) => G(JA, e);+async function ZA(e) {+ await z.fetchQuery({+ queryKey: YA,+ queryFn: () => XA(e)+ });+}+var Kle = 2e3, qle = 1e4, QA = "连接中断,正在重新读取处理进度";+function Jle(e, t) {+ return e?.status === "running" ? Kle : t ? qle : !1;+}+var Yle = {+ reading_local: "读取本地资料",+ querying_metadata: "查询外部资料",+ fetching_cover: "采集缺失封面",+ writing_candidates: "保存资料候选"+}, $A = {+ querying_metadata: "没有资料",+ fetching_cover: "没有封面"+};+function Xle(e) {+ let t = Object.entries(e).filter(([e, t]) => $A[e] && t > 0).map(([e, t]) => `${$A[e]} ${t} 部`);+ return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";+}+function ej(e) {+ let t = Yle[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 Zle(e) {+ let t = e.issue_preview || [];+ return t.length ? {+ label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,+ items: t.map((e, t) => ({+ key: `${e.asset_id ?? "source"}-${t}`,+ label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),+ href: e.asset_id ? `/item/${e.asset_id}` : "",+ note: e.message,+ hint: e.path || ""+ })),+ log: e.issues_log || ""+ } : null;+}+var tj = "peach.library-processing.announced", Qle = 120;+function $le(e, t, n) {+ if (e.status !== "complete") return;+ let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < Qle;+ if (!(!n && !r)) {+ try {+ if (e.job_id && localStorage.getItem(tj) === e.job_id) return;+ e.job_id && localStorage.setItem(tj, e.job_id);+ } catch {}+ t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);+ }+}+//#endregion+//#region src/react/media-repair/media-repair.ts+var nj = "/api/media-repair", rj = ["media-repair"], ij = ["media-repair", "libraries"], eue = {+ status: "idle",+ library: "",+ stage: "",+ checked: 0,+ total: 0,+ found: 0,+ repaired: 0,+ failed: 0,+ missing_tool: 0,+ skipped: 0,+ message: ""+}, aj = (e) => G(nj, e), oj = async (e) => (await G("/api/libraries", e)).libraries || [];+async function tue(e) {+ await Promise.all([z.fetchQuery({+ queryKey: rj,+ queryFn: () => aj(e)+ }), z.fetchQuery({+ queryKey: ij,+ queryFn: () => oj(e)+ })]);+}+var sj = (e) => Number(e).toLocaleString();+function nue(e) {+ if (e.status === "running") {+ let t = e.total ? `${sj(e.checked)} / ${sj(e.total)}` : "准备中";+ return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;+ }+ return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${sj(e.repaired)} 部,${sj(e.failed)} 部修不了` : `修好 ${sj(e.repaired)} 部` : "";+}+var rue = (e) => `${sj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, iue = "/api/quality-goals?limit=200", cj = ["quality-goals"], lj = (e) => G(iue, e);+async function aue(e) {+ await z.fetchQuery({+ queryKey: cj,+ queryFn: () => lj(e)+ });+}+var oue = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;+function uj(e, t, n = 1) {+ let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);+ if (n * 2 + 5 >= t) return r(1, t);+ let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;+ return !o && s ? [+ ...r(1, 3 + 2 * n),+ "…",+ t+ ] : o && !s ? [+ 1,+ "…",+ ...r(t - (2 + 2 * n), t)+ ] : [+ 1,+ "…",+ ...r(i, a),+ "…",+ t+ ];+}+function dj(e, t) {+ return Math.max(1, Math.ceil(e / t));+}+function fj(e, t) {+ return Math.min(Math.max(1, Math.floor(e) || 1), t);+}+//#endregion+//#region src/selection.ts+function sue(e, t, n, r, i, a = i || !e.has(r)) {+ let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);+ return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;+}+//#endregion+//#region src/react/time.ts+function pj(e) {+ if (!e) return "";+ let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);+ if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);+ let r = (e) => String(e).padStart(2, "0");+ return `${n.getFullYear()}-${r(n.getMonth() + 1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}`;+}+//#endregion+//#region src/react/review/review.ts+var cue = "/api/review", lue = "/api/review/decision", uue = "/api/review/genre", mj = ["review"], hj = {+ metadata_fields: "元数据字段",+ creator_tags: "创作者标签",+ studio_logos: "厂牌 Logo",+ performer_avatars: "女优头像",+ western_identity: "西方身份回配",+ code_creators: "番号目录存疑",+ fc2_markings: "FC2 评论标记",+ fc2_similarity: "FC2 跨号相似",+ video_endcards: "片尾/出处证据"+}, due = Object.keys(hj), fue = "metadata_fields", gj = (e) => typeof e == "string" && Object.hasOwn(hj, e), pue = {+ creator_tags: "creator",+ western_identity: "creator"+};+function mue(e, t) {+ let n = [["candidates", t ? "按候选数量" : "全部待复核"]];+ return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;+}+function _j(e, t) {+ let n = /* @__PURE__ */ new Map();+ for (let r of e) {+ let e, i;+ if (t === "field") e = r.field || "__unspecified_field", i = r.field_label || r.field || "未标注字段";+ else if (t === "source") {+ let t = [...new Set((r.candidates?.map((e) => e.source || "") || [r.source || ""]).filter(Boolean))].sort();+ e = JSON.stringify(t), i = t.join(" / ") || "未标注来源";+ } else e = r.candidates ? r.candidates.length === 1 ? "single" : "multiple" : "pending", i = e === "single" ? "单一候选" : e === "multiple" ? "需选择来源" : "待复核";+ n.has(e) || n.set(e, {+ key: e,+ title: i,+ rows: []+ }), n.get(e).rows.push(r);+ }+ return [...n.values()];+}+function hue(e, t, n) {+ return n && _j(e, t).find((e) => e.key === n)?.rows || e;+}+function gue(e, t) {+ let n = dj(e.length, 20), r = fj(t, n);+ return {+ page: r,+ pages: n,+ rows: e.slice((r - 1) * 20, r * 20)+ };+}+function _ue(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 vue(e, t, n, r, i, a) {+ return sue(e, t, n, r, i, a);+}+function vj(e, t) {+ return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";+}+function yj(e, t) {+ return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);+}+var bj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";+function yue(e, t) {+ let n = yj(e, t), r = bj(e, t);+ return r ? `${n} · ${r}` : n;+}+var bue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", xue = (e) => String(e.tags || "").split("|").filter(Boolean), Sue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];+function Cue(e) {+ let t = e.candidates || [];+ return {+ candidateKey: t.length === 1 ? t[0].candidate_key : "",+ assets: (e.preview_assets || []).map((e) => e.id)+ };+}+function xj(e, t, n, r) {+ let i = !!t.asset_path && t.asset_mutation_revision != null;+ return {+ category: e,+ item_key: t.item_key,+ status: n,+ candidate_key: r.candidateKey,+ creator: t.creator,+ tags: t.tags,+ studio: t.studio,+ entity_id: t.entity_id,+ avatar_url: t.avatar_url,+ selected_ids: r.assets,+ ...i ? { expected_revision: t.asset_mutation_revision } : {}+ };+}+var Sj = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Cj = (e) => G(cue, e), wj = (e) => K(lue, e), wue = (e, t) => K(uue, {+ genre: e,+ tag: t+});+async function Tue(e) {+ await z.fetchQuery({+ queryKey: mj,+ queryFn: () => Cj(e)+ });+}+function Tj(e, t) {+ let n = new Set(t);+ n.size && z.setQueryData(mj, (t) => {+ if (!t) return t;+ let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));+ return i.length === r.length ? t : {+ ...t,+ sections: {+ ...t.sections,+ [e]: i+ },+ counts: {+ ...t.counts,+ [e]: Math.max(0, (t.counts[e] ?? r.length) - (r.length - i.length))+ }+ };+ });+}+var Eue = () => z.invalidateQueries({+ queryKey: mj,+ exact: !0+});+function Due(e, t) {+ return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${pj(e.fetched_at)} 的缓存` : e?.error || t;+}+//#endregion+//#region src/react/data-cleanup/links.ts+var Oue = "/api/links", Ej = "/api/links/check", Dj = "/api/links/prune", Oj = ["links"], kj = ["links", "check"], Aj = ["links", "prune"], jj = {+ official: "官网/事务所",+ social: "社交账号",+ catalog: "作品资料站",+ source_reference: "资料出处"+};+async function Mj(e) {+ let t = await e;+ if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");+ return t;+}+var Nj = (e) => G(Oue, e), Pj = (e) => K(Ej, { status_only: !0 }, "POST", e), kue = ({ retry: e, checkId: t }) => Mj(K(Ej, e ? {+ retry: e,+ check_id: t+} : { restart: !0 })), Fj = (e) => G(Dj, e), Aue = (e) => Mj(K(Dj, {+ confirm: !0,+ check_id: e,+ background: !0+})), Ij = (e) => Number(e || 0).toLocaleString(), jue = (e) => `已删除 ${Ij(e.removed)} 条;${e.marked ? `已隐退女优的 ${Ij(e.marked)} 条留作不可点的记录;` : ""}保留 ${Ij(e.recovered)} 条未确认失效的链接。`;+function Mue(e) {+ let t = e.scope === "retry";+ return e.total ? `${t ? "已重验" : "已检查"} ${Ij(e.checked)} / ${Ij(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";+}+//#endregion+//#region src/react/settings-panel/settings-data.ts+var Lj = "/api/settings", Rj = "/api/follow/schedule", zj = "/api/thumbnail-jobs", Bj = ["settings"], Vj = ["follow-schedule"], Hj = ["thumbnail-jobs"], Nue = (e) => G(Lj, e), Uj = (e) => G(Rj, e), Wj = (e) => G(zj, e);+function Pue(e = z) {+ return e.fetchQuery({+ queryKey: Vj,+ queryFn: ({ signal: e }) => Uj(e),+ staleTime: 0+ }).catch(() => null), e.fetchQuery({+ queryKey: Hj,+ queryFn: ({ signal: e }) => Wj(e),+ staleTime: 0+ }).catch(() => null), e.fetchQuery({+ queryKey: Bj,+ queryFn: ({ signal: e }) => Nue(e),+ staleTime: 0+ }).catch(() => null);+}+function Gj() {+ return OS({+ mutationFn: (e) => K(Lj, e),+ onSuccess: (e) => z.setQueryData(Bj, e)+ });+}+function Fue() {+ return OS({+ mutationFn: (e) => K(Rj, {+ enabled: e > 0,+ interval_minutes: e || 60+ }),+ onSuccess: (e) => z.setQueryData(Vj, e)+ });+}+function Iue() {+ return OS({+ mutationFn: (e) => K(zj, { mode: e }),+ onSuccess: (e) => z.setQueryData(Hj, e)+ });+}+function Lue(e) {+ return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${pj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${pj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";+}+function Rue(e) {+ return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";+}+//#endregion+//#region src/react/data-cleanup/organize.ts+var zue = "/api/organize", Bue = "/api/organize/preview", Vue = "/api/organize/apply", Hue = "/api/organize/rollback", Kj = ["organize"], qj = (e) => G(zue, e);+async function Uue(e) {+ await z.fetchQuery({+ queryKey: Kj,+ queryFn: () => qj(e)+ });+}+var Wue = (e) => K(Bue, e), Gue = (e) => e.kind === "apply" ? K(Vue, {+ ...e.request,+ confirm: !0+}) : K(Hue, { confirm: !0 });+async function Kue(e) {+ z.setQueryData(Kj, (t) => t && {+ ...t,+ templates: e+ });+ try {+ await K(Lj, { organizeTemplates: e });+ } catch {}+}+var que = (e, t) => e && {+ ...e,+ ...t+}, Jue = /目录模板|分隔符|盘符|`\.`/;+function Jj(e) {+ let t = String(e || "");+ return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);+}+var Yj = (e) => Number(e || 0).toLocaleString();+function Yue(e) {+ let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Yj(t)}`).join(" · ");+ return Number(e.counts?.change || 0) ? `${Yj(e.counts.change)} 个文件会改名或移动,${Yj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;+}+function Xj(e) {+ let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);+ return {+ text: t ? `已退回 ${Yj(r)} 个文件${n ? `,${Yj(n)} 行未能退回` : ""}。` : `已整理 ${Yj(r)} 个文件${n ? `,${Yj(n)} 行未能处理` : ""}。`,+ failed: n,+ rollback: t+ };+}+//#endregion+//#region src/react/data-cleanup/resource-sync.ts+var Zj = "/api/resource-sync/scan", Qj = "/api/resource-sync/apply", $j = ["resource-sync", "scan"], eM = ["resource-sync", "apply"], tM = (e) => K(Zj, {+ background: !0,+ status_only: !0+}, "POST", e), Xue = () => K(Zj, {+ background: !0,+ restart: !0+}), nM = (e) => G(Qj, e), Zue = (e) => K(Qj, {+ confirm: !0,+ clean_cache: !0,+ scan_id: e,+ background: !0+}), rM = (e) => (e?.sources ?? []).some((e) => Rle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);+async function Que(e) {+ rM(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({+ queryKey: $j,+ queryFn: () => tM(e)+ }), z.fetchQuery({+ queryKey: eM,+ queryFn: () => nM(e)+ })]);+}+var $ue = (e) => !!(e?.missing || e?.empty || e?.cache?.files), ede = {+ local: "本地磁盘",+ 115: "115",+ pikpak: "PikPak"+}, iM = (e) => Number(e || 0).toLocaleString(), tde = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", aM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), oM = (e) => e.vanish ? `${iM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", sM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", nde = (e) => `将永久删除文件已不在盘上的 ${iM(aM(e))} 条记录和 ${iM(e.empty)} 个空文件夹,并清理 ${iM(e.cache?.files)} 个闲置缓存。${sM(e)}${oM(e)}`, rde = (e) => `将永久删除文件已不在盘上的 ${iM(aM(e))} 条记录(含回收站里的)、${iM(e.empty)} 个空文件夹,并清理 ${iM(e.cache?.files)} 个闲置缓存。来源根目录保留。${sM(e)}${oM(e)}`, ide = (e) => e.online ? [+ `找不到文件 · 共 ${iM(e.total)} 项`,+ e.vanish ? `${iM(e.vanish)} 项带个人记录` : "",+ e.empty ? `空文件夹 ${iM(e.empty)} 个` : "",+ e.unreadable ? `${iM(e.unreadable)} 个目录读取失败,已跳过` : ""+].filter(Boolean).join(" · ") : `馆藏中有 ${iM(e.total)} 项`;+function cM(e) {+ let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");+ return {+ done: i,+ left: a,+ rest: [+ t.length ? `${iM(t.length)} 条记录没有删除(${o})` : "",+ n ? `${iM(n)} 个文件夹没有删除` : "",+ r.length ? `${iM(r.length)} 个缓存没有清理` : ""+ ].filter(Boolean).join(",")+ };+}+var ade = (e, t) => {+ let { rest: n } = cM(e), r = `已永久删除 ${iM(e.purged)} 条失效记录和 ${iM(e.dirs_removed)} 个空文件夹,清理 ${iM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${iM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${iM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");+ return n ? `${r}${n},重新检查后可再试。` : r;+}, ode = "/api/review?counts=1", lM = ["review", "counts"], sde = "/api/ads?limit=1", uM = ["junk-summary"], dM = "/api/items?state=trash&limit=1", fM = ["trash-summary"], cde = [+ ["video", "视频"],+ ["image", "图片"],+ ["archive", "压缩包"],+ ["audio", "音频"],+ ["url", "网址"],+ ["other", "其它"]+], pM = (e) => G(ode, e), mM = (e) => G(sde, e), hM = (e) => {+ let t = sessionStorage.getItem("peach.library");+ return G(t ? `${dM}&library=${encodeURIComponent(t)}` : dM, e);+}, gM = (e) => Number(e || 0).toLocaleString();+function lde(e) {+ let t = hj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);+ return a && i.push(`其余 ${a.toLocaleString()}`), {+ figure: `${r.toLocaleString()} 条待复核`,+ meta: i.join(" · ")+ };+}+function ude(e) {+ if (!e) return "";+ let t = cde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${gM(e.counts[t])}`);+ return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${gM(e.dismissed_total)}`), t.join(" · ");+}+var dde = [+ [lM, ({ signal: e }) => pM(e)],+ [cj, ({ signal: e }) => lj(e)],+ [fM, ({ signal: e }) => hM(e)],+ [Oj, ({ signal: e }) => Nj(e)],+ [kj, ({ signal: e }) => Pj(e)],+ [Aj, ({ signal: e }) => Fj(e)]+];+async function fde(e) {+ let t = location.hash === "#resource-sync", n = dde.map(([n, r]) => {+ if (t) return z.fetchQuery({+ queryKey: n,+ queryFn: () => r({ signal: e })+ }).catch(() => void 0);+ z.getQueryState(n) && z.prefetchQuery({+ queryKey: n,+ queryFn: r+ });+ });+ await Promise.all([+ ...n,+ z.fetchQuery({+ queryKey: uM,+ queryFn: () => mM(e)+ }),+ z.fetchQuery({+ queryKey: HA,+ queryFn: () => WA(e)+ }),+ VA(e).then(() => Que(e)),+ ZA(e),+ tue(e),+ Uue(e)+ ]);+}+//#endregion+//#region src/react/components/stat-card.tsx+var pde = [+ "text-chart-6",+ "text-chart-5",+ "text-chart-7",+ "text-chart-8"+], mde = [+ "bg-chart-6/10",+ "bg-chart-5/10",+ "bg-chart-7/10",+ "bg-chart-8/10"+];+function _M(e = {}) {+ return `${CE({+ ...e,+ padding: "none"+ })} flex flex-col overflow-hidden pt-4 text-left`;+}+var vM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", hde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";+function yM({ interactive: e = !1 } = {}) {+ return CE({+ padding: "none",+ radius: "plain",+ interactive: e,+ className: "flex min-h-33 flex-col gap-2 p-4 text-left"+ });+}+var gde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";+function bM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",+ children: [+ t || n ? /* @__PURE__ */ (0, V.jsx)("i", {+ "aria-hidden": !0,+ className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary",+ children: t ? /* @__PURE__ */ (0, V.jsx)(t, {+ "aria-hidden": !0,+ className: "size-4"+ }) : n+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 truncate",+ children: e+ }),+ r ? /* @__PURE__ */ (0, V.jsx)("span", {+ className: "ml-auto shrink-0 text-caption-1-regular",+ children: r+ }) : null+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)("strong", {+ className: "block text-title-1-medium tabular-nums text-text-primary",+ children: i+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: `block min-h-4 text-caption-1-regular text-text-tertiary ${o ? "" : "truncate"}`,+ children: a+ })+ ] });+}+function xM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",+ children: [t ? /* @__PURE__ */ (0, V.jsx)("i", {+ "aria-hidden": !0,+ className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${pde[n % 4]} ${mde[n % 4]}`,+ children: /* @__PURE__ */ (0, V.jsx)(t, {+ "aria-hidden": !0,+ className: "size-4"+ })+ }) : null, /* @__PURE__ */ (0, V.jsx)("span", {+ className: "min-w-0 truncate",+ children: e+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",+ children: r+ }),+ /* @__PURE__ */ (0, V.jsx)("small", {+ className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",+ children: i+ })+ ] });+}+//#endregion+//#region src/react/components/menu-dialog.tsx+function SM(e) {+ let t = uA("hover");+ return /* @__PURE__ */ (0, V.jsx)(EO, {+ ...e,+ ref: t+ });+}+({+ medium: "h-9 rounded-2lg p-2 text-body-medium",+ small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"+}).medium;+//#endregion+//#region src/management.ts+var _de = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", vde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", yde = CE({+ padding: "none",+ bordered: "line",+ className: "overflow-hidden"+}), bde = {+ split: "min-w-0 p-6",+ stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"+}, xde = {+ split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",+ stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"+}, Sde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Cde = {+ neutral: "border-border-button-default bg-card-footer",+ error: "border-border-error-default bg-background-tertiary-error"+}, wde = CE({+ padding: "none",+ radius: "surface",+ bordered: "line",+ className: "overflow-hidden"+}), CM = "border-t border-border-button-default p-4 first:border-t-0";+function wM({ tone: e = "neutral", status: t, children: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: `${Sde} ${Cde[e]}`,+ children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,+ children: t+ }) : null, n]+ });+}+function TM({ id: e, children: t }) {+ return /* @__PURE__ */ (0, V.jsx)("h2", {+ id: e,+ className: "text-title-2-medium! m-0! text-text-primary",+ children: t+ });+}+function EM({ id: e, gap: t = "none", children: n }) {+ return /* @__PURE__ */ (0, V.jsx)("h3", {+ id: e,+ className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,+ children: n+ });+}+function DM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ id: r,+ "aria-label": t,+ "aria-labelledby": n,+ ...o,+ className: `${yde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: bde[e],+ children: a+ }), i ? /* @__PURE__ */ (0, V.jsx)("footer", {+ className: xde[e],+ children: i+ }) : null]+ });+}+//#endregion+//#region src/react/components/overlay-scrollbar.ts+function OM() {+ let e = (0, B.useRef)(null);+ return (0, B.useEffect)(() => {+ Ce(e.current);+ }), e;+}+//#endregion+//#region src/react/boardui/components/base/buttons/icon-button.tsx+var kM = vE({+ base: [+ "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",+ "bg-background-primary-default text-foreground-icon-primary",+ "border border-border-button-default shadow-xs",+ "select-none cursor-pointer",+ "transition-[background-color,border-color,box-shadow,color] duration-150 ease",+ "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",+ "hover:bg-background-primary-hover hover:border-border-button-hover",+ "active:bg-background-primary-active active:border-border-button-active",+ "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none"+ ].join(" "),+ size: {+ medium: "size-9",+ small: "size-8"+ },+ icon: {+ medium: "size-5 shrink-0",+ small: "size-4 shrink-0"+ }+});+function AM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsx)("button", {+ ref: i,+ type: r,+ className: _E(kM.base, kM.size[t], n),+ ...a,+ children: /* @__PURE__ */ (0, V.jsx)(e, {+ className: kM.icon[t],+ "aria-hidden": !0+ })+ });+}+//#endregion+//#region src/react/components/path-line.tsx+function Tde({ className: e }) {+ return /* @__PURE__ */ (0, V.jsx)("svg", {+ "aria-hidden": !0,+ viewBox: "0 0 24 24",+ fill: "none",+ stroke: "currentColor",+ strokeWidth: 2,+ strokeLinecap: "round",+ strokeLinejoin: "round",+ className: e,+ children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-open" })+ });+}+var Ede = "打开文件管理器失败,请重试";+function jM({ path: e, prefix: t, className: n, onRevealed: r }) {+ let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(""), c = (0, B.useRef)(!0);+ (0, B.useEffect)(() => () => {+ c.current = !1;+ }, []);+ let l = async () => {+ if (!i) {+ a(!0), s("");+ try {+ await K("/api/reveal", { path: e }), r?.("已在资源管理器中显示");+ } catch (e) {+ c.current && s(e instanceof jS ? e.message : Ede);+ } finally {+ c.current && a(!1);+ }+ }+ };+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-1",+ children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex items-center justify-between gap-2",+ children: [/* @__PURE__ */ (0, V.jsxs)("p", {+ className: _E("min-w-0 break-all", n),+ children: [t, e]+ }), /* @__PURE__ */ (0, V.jsx)(AM, {+ icon: Tde,+ size: "small",+ className: "shrink-0",+ "aria-label": "在资源管理器中显示",+ onClick: () => void l(),+ ...X(i)+ })]+ }), o ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-error-primary",+ children: o+ }) : null]+ });+}+//#endregion+//#region src/react/components/task-progress.tsx+function MM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-task-progress": !0,+ className: r ? "flex flex-col gap-1.5" : CE({+ variant: "outlined",+ padding: "none",+ className: "flex flex-col gap-1.5 px-4 py-3.5"+ }),+ children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(OE, {+ label: e,+ value: t,+ max: n+ }), /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: e+ })] }) : /* @__PURE__ */ (0, V.jsx)(TE, { label: e })+ });+}+//#endregion+//#region src/react/library-processing/use-library-processing.ts+function NM({ toast: e, mode: t, monitor: n }) {+ let r = t === "notice" || !!n, i = TS({+ queryKey: YA,+ queryFn: ({ signal: e }) => XA(e),+ refetchInterval: (e) => Jle(e.state.data, r)+ }), [a, o] = (0, B.useState)(null), s = (0, B.useRef)(void 0), c = i.data;+ return (0, B.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") && $le(c, e, r);+ }, [+ c,+ t,+ e+ ]), {+ job: i,+ settled: a,+ forget: () => o(null)+ };+}+//#endregion+//#region src/react/library-processing/library-processing-card.tsx+var Dde = [+ {+ label: "扫描并补全资料",+ icon: hT,+ command: {}+ },+ {+ label: "只扫描",+ icon: yT,+ command: { stage: "scan" }+ },+ {+ label: "只采集",+ icon: lae,+ command: { stage: "collect" }+ }+], Ode = _E(yk, bk, "text-body-2-medium"), kde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Ade = (e) => {+ let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;+ if (!t && !n && !r && !i) return "";+ let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];+ return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;+}, jde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Ade(e);+function Mde({ busy: e, onRun: t }) {+ let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1), a = (n) => {+ e || (i(!1), t(n));+ };+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ "data-button-group": !0,+ "data-split-button": !0,+ "data-variant": "primary",+ children: [/* @__PURE__ */ (0, V.jsx)(J, {+ leadingIcon: hT,+ onClick: () => a({}),+ ...X(e),+ children: "扫描并补全资料"+ }), /* @__PURE__ */ (0, V.jsx)(J, {+ ref: n,+ iconOnly: !0,+ leadingIcon: sT,+ "aria-label": "更多扫描与采集方式",+ "aria-haspopup": "dialog",+ "aria-expanded": r,+ ...X(e),+ onClick: () => {+ e || i(!0);+ }+ })]+ }), /* @__PURE__ */ (0, V.jsx)(hO, {+ triggerRef: n,+ isOpen: r,+ onOpenChange: i,+ placement: "bottom end",+ offset: 4,+ className: vk,+ children: /* @__PURE__ */ (0, V.jsx)(SM, {+ "aria-label": "更多扫描与采集方式",+ className: "flex w-52 flex-col gap-1 outline-none",+ children: Dde.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ className: Ode,+ onClick: () => a(n),+ children: [/* @__PURE__ */ (0, V.jsx)(t, {+ "aria-hidden": !0,+ className: "size-4 shrink-0"+ }), e]+ }, e))+ })+ })] });+}+function Nde({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {+ let a = Zle(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = Xle(e.notes || {}), c = OM();+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-4 empty:hidden",+ children: [+ e.status === "running" && e.stalled ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "warning",+ title: "处理较慢",+ children: kde+ }) : null,+ t || e.status === "failed" ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ action: o ? /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "primary",+ size: "small",+ onClick: r,+ children: "重试未完成项"+ }) : null,+ extra: a ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mt-1.5 border-t border-current/20 pt-1.5",+ children: /* @__PURE__ */ (0, V.jsxs)(zk, {+ summary: a.label,+ children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: "relative",+ children: /* @__PURE__ */ (0, V.jsx)("ul", {+ ref: c,+ className: "max-h-96 overflow-y-auto pr-3",+ children: a.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",+ children: [+ e.href ? /* @__PURE__ */ (0, V.jsx)("a", {+ href: e.href,+ className: "text-body-2-medium underline-offset-4 hover:underline",+ children: e.label+ }) : /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-body-2-medium",+ children: e.label+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular",+ children: e.note+ }),+ e.hint ? /* @__PURE__ */ (0, V.jsx)("code", {+ className: "text-caption-1-regular break-all",+ children: e.hint+ }) : null+ ]+ }, e.key))+ })+ }), a.log ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",+ children: /* @__PURE__ */ (0, V.jsx)(jM, {+ path: a.log,+ prefix: "完整记录:",+ className: "text-caption-1-regular",+ onRevealed: i+ })+ }) : null]+ })+ }) : null,+ children: t || e.error || "处理未完成,请重试"+ }) : null,+ n?.status === "complete" ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "success",+ title: "处理完成",+ children: jde(n)+ }) : null,+ e.status !== "running" && s ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ extra: e.issues_log ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",+ children: /* @__PURE__ */ (0, V.jsx)(jM, {+ path: e.issues_log,+ prefix: "完整记录:",+ className: "text-caption-1-regular",+ onRevealed: i+ })+ }) : null,+ children: s+ }) : null+ ]+ });+}+function PM(e) {+ let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = NM(e), o = OS({+ mutationFn: (e) => K(JA, e),+ onSuccess: (e) => {+ a(), z.setQueryData(YA, e), z.invalidateQueries({ queryKey: YA });+ }+ });+ (0, B.useEffect)(() => {+ i && n?.();+ }, [i, n]);+ let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? QA : W(r.error) : "", l = o.isPending || s.status === "running", u = ej(s), d = (e) => {+ l || (o.reset(), o.mutate(e));+ };+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-4",+ children: [/* @__PURE__ */ (0, V.jsx)(DM, {+ layout: "stack",+ label: "扫描与采集",+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)(Ok, {+ href: "/scraping",+ size: "small",+ trailingIcon: cT,+ children: "来源和凭证"+ }),+ s.candidates ? /* @__PURE__ */ (0, V.jsx)(Ok, {+ href: "/review",+ size: "small",+ trailingIcon: cT,+ children: "复核资料"+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(Mde, {+ busy: l,+ onRun: d+ })+ ] }),+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, V.jsx)(EM, { children: "扫描与采集" }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: _de+ }),+ s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: u,+ value: s.checked,+ total: s.total+ }) : null+ ]+ })+ }), /* @__PURE__ */ (0, V.jsx)(Nde, {+ state: s,+ problem: c,+ settled: i,+ onRetry: () => {+ !s.job_id || !s.retryable_asset_ids?.length || d({+ job_id: s.job_id,+ retry: s.retryable_asset_ids+ });+ },+ toast: t+ })]+ });+}+//#endregion+//#region src/react/background-job.ts+var FM = 2e3, Pde = (e) => e, Fde = (e, t) => t;+function IM(e) {+ let { queryKey: t, jobOf: n = Pde, withJob: r = Fde, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);+ (0, B.useEffect)(() => {+ l.current = e;+ });+ let u = TS({+ queryKey: t,+ queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),+ refetchInterval: (e) => {+ let t = e.state.data;+ return t !== void 0 && n(t)?.status === "running" ? FM : i ?? !1;+ }+ }), d = OS({+ mutationFn: (e) => l.current.start(e),+ onSuccess: (e) => {+ o(!0), c(null), l.current.onStarted?.(e), z.setQueryData(t, (t) => r(t, e)), z.invalidateQueries({+ queryKey: t,+ exact: !0+ });+ },+ onError: (e) => l.current.onError?.(e)+ }), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";+ return (0, B.useEffect)(() => {+ if (f) {+ if (f.status === "running") {+ a || o(!0);+ return;+ }+ a && (o(!1), c(f), l.current.onFinish?.(f));+ }+ }, [f, a]), {+ query: u,+ job: f,+ running: p,+ outcome: s,+ start: d,+ dismiss: () => c(null)+ };+}+//#endregion+//#region src/react/media-repair/media-repair-card.tsx+var Ide = (e) => Se[e] || e, LM = (e) => z.setQueryData(rj, e);+function Lde() {+ let e = TS({+ queryKey: rj,+ queryFn: ({ signal: e }) => aj(e),+ refetchInterval: (e) => e.state.data?.status === "running" && FM+ }), t = TS({+ queryKey: ij,+ queryFn: ({ signal: e }) => oj(e)+ }), [n, r] = (0, B.useState)(""), i = kE(), a = e.data ?? eue, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {+ c && Te({+ title: `修复媒体库「${c.name}」`,+ body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),+ confirmLabel: "修复媒体库",+ onConfirm: async () => LM(await K(nj, {+ library: c.id,+ restart: !0+ }))+ });+ }, u = () => void i.run("stop", (e) => K(nj, { stop: !0 }, "POST", e), LM), d = nue(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-4",+ children: [/* @__PURE__ */ (0, V.jsx)(DM, {+ layout: "split",+ label: "媒体修复",+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Sk, {+ "aria-label": "媒体库",+ className: "w-48",+ selectedKey: c?.id ?? null,+ isDisabled: s || !o.length,+ onSelectionChange: (e) => {+ e !== null && r(String(e));+ },+ children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(Ck, {+ id: e.id,+ textValue: e.name,+ children: [/* @__PURE__ */ (0, V.jsx)(Bk, { mark: Ide(e.icon) }), e.name]+ }, e.id))+ }), s ? /* @__PURE__ */ (0, V.jsx)(J, {+ onClick: u,+ ...X(i.busy === "stop"),+ children: "停止"+ }) : /* @__PURE__ */ (0, V.jsx)(J, {+ onClick: l,+ disabled: !c,+ children: "开始修复"+ })] }),+ children: /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-2",+ children: [+ /* @__PURE__ */ (0, V.jsx)(EM, { children: "媒体修复" }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-2-regular text-text-secondary",+ children: vde+ }),+ s && a.total ? /* @__PURE__ */ (0, V.jsx)(OE, {+ label: "修复进度",+ value: a.checked,+ max: a.total+ }) : null,+ d ? /* @__PURE__ */ (0, V.jsx)("p", {+ role: "status",+ className: "text-caption-1-regular text-text-secondary",+ children: d+ }) : null+ ]+ })+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-4 empty:hidden",+ children: [+ f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "info",+ title: "没有要修的",+ children: "这个库里的片子都能直接播。"+ }) : null,+ f && a.missing_tool ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "warning",+ title: "缺少 untrunc",+ children: rue(a)+ }) : null,+ p ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ children: p+ }) : null+ ]+ })]+ });+}+//#endregion+//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx+var RM = {+ md: {+ box: "size-4",+ glyph: "size-4",+ label: "text-body-medium",+ gap: "gap-2"+ },+ sm: {+ box: "size-3.5",+ glyph: "size-3.5",+ label: "text-body-2-medium",+ gap: "gap-1.5"+ }+};+function zM({ state: e, size: t = "md" }) {+ let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = RM[t], c = n || r, l = o && !a;+ return /* @__PURE__ */ (0, V.jsx)("span", {+ "aria-hidden": !0,+ className: _E("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? _E("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : _E("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),+ children: /* @__PURE__ */ (0, V.jsx)("svg", {+ viewBox: "0 0 16 16",+ fill: "none",+ className: s.glyph,+ children: r ? /* @__PURE__ */ (0, V.jsx)("path", {+ d: "M4.5 8H8H11.5",+ stroke: "white",+ strokeWidth: "2",+ strokeLinecap: "round"+ }) : n ? /* @__PURE__ */ (0, V.jsx)("path", {+ d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",+ stroke: "white",+ strokeWidth: "2",+ strokeLinecap: "round",+ strokeLinejoin: "round",+ pathLength: 1,+ className: "animate-check-draw"+ }) : null+ })+ });+}+//#endregion+//#region src/react/boardui/components/base/checkbox/checkbox.tsx+function BM({ className: e, children: t, size: n = "md", ref: r, ...i }) {+ let a = RM[n];+ return /* @__PURE__ */ (0, V.jsx)(Noe, {+ ref: r,+ ...i,+ className: (t) => _E("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),+ children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(zM, {+ state: e,+ size: n+ }), t != null && /* @__PURE__ */ (0, V.jsx)("span", {+ className: _E(a.label, "text-text-primary"),+ children: t+ })] })+ });+}+//#endregion+//#region src/react/boardui/components/base/table/table.tsx+function VM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ className: _E("w-full overflow-x-auto", n),+ children: /* @__PURE__ */ (0, V.jsx)(Vse, {+ ref: r,+ ...i,+ className: _E("bui-table", e === "sm" && "bui-table-sm", t)+ })+ });+}+//#endregion+//#region src/react/components/row-click.ts+var Rde = [+ "a",+ "button",+ "input",+ "select",+ "textarea",+ "label",+ "[role=\"checkbox\"]",+ "[role=\"switch\"]",+ "[role=\"button\"]",+ "[role=\"link\"]",+ "[role=\"menu\"]"+].join(",");+function HM(e, t) {+ let n = e.target;+ if (!(n instanceof Element) || !t.contains(n)) return !1;+ let r = n.closest(Rde);+ return !r || !t.contains(r) || r === t;+}+//#endregion+//#region src/react/components/data-table-frame.tsx+function UM({ children: e, follow: t = !1, onRowClick: n }) {+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-board-data-table": !0,+ "data-follow-table": t || void 0,+ onClick: n ? (e) => {+ let t = e.target;+ if (!(t instanceof Element)) return;+ let r = t.closest("[role=\"row\"][data-key]");+ r && HM(e, r) && n(r.dataset.key);+ } : void 0,+ children: e+ });+}+//#endregion+//#region src/react/data-cleanup/link-manager.tsx+var zde = vA("unlink"), WM = vA("rotate-cw"), Bde = "站点返回 404 或 410,确认这个地址不存在。", Vde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Hde = "删除前会逐条重验一次;此操作不可撤销。", Ude = "暂时无法读取进度,正在重新连接…", GM = (e) => Number(e || 0).toLocaleString();+function KM({ label: e, value: t, note: n }) {+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex min-w-0 flex-col gap-0.5",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular leading-5 text-text-secondary",+ children: e+ }),+ /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary",+ children: t+ }),+ n ? /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular leading-5 text-text-secondary",+ children: n+ }) : null+ ]+ });+}+function qM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {+ if (!t.length) return null;+ let o = r ?? [], s = o.length > 0 && o.length === t.length;+ return /* @__PURE__ */ (0, V.jsxs)("div", {+ className: CM,+ children: [+ /* @__PURE__ */ (0, V.jsxs)("h4", {+ className: "mb-1 text-body-semibold text-text-primary",+ children: [e, /* @__PURE__ */ (0, V.jsx)("b", {+ className: "ml-1.5 font-semibold tabular-nums text-text-secondary",+ children: t.length+ })]+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "mb-3 text-caption-1-regular text-text-secondary",+ children: n+ }),+ /* @__PURE__ */ (0, V.jsx)(UM, { children: /* @__PURE__ */ (0, V.jsxs)(VM, {+ "aria-label": e,+ size: "sm",+ children: [/* @__PURE__ */ (0, V.jsxs)(XO, { children: [+ i ? /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "pick",+ children: /* @__PURE__ */ (0, V.jsx)(BM, {+ slot: null,+ "aria-label": "全选本次未访问成功的链接",+ isSelected: s,+ isIndeterminate: o.length > 0 && !s,+ onChange: (e) => i(e ? t.map((e) => e.id) : [])+ })+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "entity",+ isRowHeader: !0,+ children: "所属"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "kind",+ children: "类型"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "label",+ children: "标签"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "note",+ children: "结果"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "url",+ children: "地址"+ })+ ] }), /* @__PURE__ */ (0, V.jsx)($O, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(nk, {+ id: e.id,+ children: [+ i ? /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)(BM, {+ slot: null,+ "aria-label": `选择 ${e.entity} 的${e.label || e.url}`,+ isSelected: o.includes(e.id),+ onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))+ }) }) : null,+ /* @__PURE__ */ (0, V.jsx)(ik, { children: e.entity }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: jj[e.link_kind] || e.link_kind }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: e.label || "" }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ className: "tabular-nums text-text-error-primary",+ children: e.note+ }) }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsxs)("a", {+ href: e.url,+ target: "_blank",+ rel: "noreferrer",+ title: e.url,+ className: "flex max-w-90 min-w-0 items-center gap-1 text-text-secondary hover:text-text-primary",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ "data-middle-truncate": !0,+ className: "min-w-0 truncate",+ children: e.url+ }), /* @__PURE__ */ (0, V.jsx)(_T, {+ "aria-hidden": !0,+ className: "size-3.5 shrink-0"+ })]+ }) })+ ]+ }, e.id)) })]+ }) }),+ a+ ]+ });+}+function Wde() {+ let e = TS({+ queryKey: Oj,+ queryFn: ({ signal: e }) => Nj(e)+ }), [t, n] = (0, B.useState)([]), r = IM({+ queryKey: Aj,+ queryFn: ({ signal: e }) => Fj(e),+ start: Aue,+ onFinish: () => {+ z.invalidateQueries({+ queryKey: Oj,+ exact: !0+ }), z.invalidateQueries({+ queryKey: kj,+ exact: !0+ });+ }+ }), i = IM({+ queryKey: kj,+ queryFn: ({ signal: e }) => Pj(e),+ start: kue,+ onStarted: () => {+ r.dismiss(), n([]);+ }+ }), a = i.job, o = a?.check_id ?? "";+ (0, B.useEffect)(() => {+ n([]);+ }, [o]);+ let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${t}`).join(" · "), h = (e) => {+ s || e && !e.length || i.start.mutate(e ? {+ retry: e,+ checkId: o+ } : {});+ }, g = () => {+ c || !u.length || Te({+ title: "删除失效链接",+ body: `将删除 ${u.length} 条失效链接。删除前会再次检查,删除后无法恢复。`,+ confirmLabel: "删除失效链接",+ danger: !0,+ onConfirm: () => r.start.mutateAsync(o)+ });+ }, _ = r.outcome, v = i.start.error ?? r.start.error, y = null, b = null;+ if (_?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "链接清理未完成",+ children: _.error || "请查看任务记录,核对已处理的链接。"+ });+ else if (_) b = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "success",+ title: "完成",+ children: jue(_)+ });+ else if (v) b = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "检查失败",+ children: W(v)+ });+ else if (i.query.isError && a) b = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ title: "任务状态",+ children: Ude+ });+ else if (a?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "检查失败",+ children: a.error || "检查失败"+ });+ else if (a && a.status !== "idle") {+ y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: Mue(a),+ value: a.checked,+ total: a.total+ }) : null, c ? /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: r.job?.message || "正在重验并删除失效链接…",+ value: r.job?.checked,+ total: r.job?.total+ }) : null] });+ let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";+ b = l || u.length || d.length ? /* @__PURE__ */ (0, V.jsxs)("div", {+ className: wde,+ children: [+ /* @__PURE__ */ (0, V.jsx)(qM, {+ title: "地址已失效",+ items: u,+ hint: Bde+ }),+ /* @__PURE__ */ (0, V.jsx)(qM, {+ title: "本次未访问成功",+ items: d,+ hint: Vde,+ picked: f.length ? t : void 0,+ onPick: f.length ? n : void 0,+ children: f.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "-mx-4 mt-3 -mb-4",+ children: /* @__PURE__ */ (0, V.jsxs)(wM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {+ leadingIcon: WM,+ disabled: !t.length,+ ...X(s),+ onClick: () => h(t),+ children: e+ }), /* @__PURE__ */ (0, V.jsx)(J, {+ leadingIcon: WM,+ ...X(s),+ onClick: () => h(f.map((e) => e.id)),+ children: `全部重试(${f.length})`+ })] })+ }) : null+ }),+ l && u.length ? /* @__PURE__ */ (0, V.jsx)(wM, {+ tone: "error",+ status: Hde,+ children: /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "danger",+ ...X(c),+ onClick: g,+ children: `删除 ${u.length} 条失效链接`+ })+ }) : null,+ l && !u.length && !d.length ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: `${CM} text-body-regular text-notification-success-foreground`,+ children: "全部链接均可访问。"+ }) : null+ ]+ }) : null;+ }+ return /* @__PURE__ */ (0, V.jsxs)("section", {+ id: "link-manager",+ "aria-labelledby": "link-manager-title",+ className: "flex scroll-mt-20 flex-col gap-4",+ children: [+ /* @__PURE__ */ (0, V.jsx)(TM, {+ id: "link-manager-title",+ children: "链接管理"+ }),+ /* @__PURE__ */ (0, V.jsxs)(DM, {+ layout: "stack",+ labelledBy: "link-manager-box",+ footer: /* @__PURE__ */ (0, V.jsx)(J, {+ leadingIcon: zde,+ ...X(s),+ onClick: () => h(),+ children: s ? "检查中" : l ? "重新检查" : "检查死链"+ }),+ children: [+ /* @__PURE__ */ (0, V.jsx)(EM, {+ id: "link-manager-box",+ gap: "small",+ children: "站外链接"+ }),+ e.isError ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "链接统计读取失败",+ children: W(e.error)+ }) : p ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {+ className: "link-stat-grid mt-4 gap-x-8 gap-y-3",+ children: [/* @__PURE__ */ (0, V.jsx)(KM, {+ label: "链接总数",+ value: GM(p.total),+ note: `分布在 ${GM(p.entities)} 个女优、厂牌与系列`+ }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(KM, {+ label: jj[e] || e,+ value: GM(t)+ }, e))]+ }), m ? /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "mt-4 flex min-w-0 flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-caption-1-regular text-text-secondary",+ children: "主要站点"+ }), /* @__PURE__ */ (0, V.jsx)("b", {+ className: "text-body-2-medium break-words text-text-primary",+ children: m+ })]+ }) : null] }) : null,+ /* @__PURE__ */ (0, V.jsx)("div", {+ "aria-live": "polite",+ className: "mt-4 flex flex-col gap-3 empty:hidden",+ children: y+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "aria-live": "polite",+ className: "empty:hidden",+ children: b+ })+ ]+ });+}+//#endregion+//#region src/react/data-cleanup/organize-card.tsx+var Gde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Kde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", qde = 8;+function Jde({ plan: e }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ol", {+ className: "mt-2 flex min-w-0 flex-col gap-1",+ children: e.rows.slice(0, qde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",+ children: [+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-middle-truncate": !0,+ title: e.current_path,+ className: "min-w-0 truncate",+ children: Jj(e.current_path)+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "aria-hidden": !0,+ children: "→"+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-middle-truncate": !0,+ title: e.target_path,+ className: "min-w-0 truncate text-text-primary",+ children: Jj(e.target_path)+ })+ ]+ }, e.current_path))+ }), e.truncated ? /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular text-text-secondary",+ children: "只列出前 8 行,完整计划在计划 CSV 里。"+ }) : null] });+}+function Yde({ toast: e, failure: t }) {+ let n = TS({+ queryKey: Kj,+ queryFn: ({ signal: e }) => qj(e)+ }), r = n.data, i = r?.locations ?? [], [a, o] = (0, B.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, B.useState)(null), d = l?.location === s ? l : {+ location: s,+ file: c?.file ?? "",+ dir: c?.dir ?? ""+ }, f = (e) => u({+ ...d,+ ...e+ }), [p, m] = (0, B.useState)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = () => ({+ location: s,+ file_template: d.file.trim(),+ dir_template: d.dir.trim()+ }), v = OS({+ mutationFn: Wue,+ onSuccess: (e, t) => void Kue({+ ...r?.templates ?? {},+ [t.location]: {+ file: t.file_template,+ dir: t.dir_template+ }+ }),+ onError: (e) => {+ let t = Jue.test(W(e)) ? "dir" : "file";+ m(t), (t === "dir" ? g : h).current?.focus();+ }+ }), y = IM({+ queryKey: Kj,+ queryFn: ({ signal: e }) => qj(e),+ start: Gue,+ jobOf: (e) => e,+ withJob: que,+ onStarted: () => v.reset(),+ onFinish: (n) => {+ if (z.invalidateQueries({+ queryKey: Kj,+ exact: !0+ }), n.status !== "complete") return;+ let { text: r, failed: i } = Xj(n);+ i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));+ }+ }), b = y.running || y.start.isPending, x = v.data, S = Number(x?.counts?.change || 0), C = se[s] || s, w = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), T = () => {+ v.isPending || !s || (m(null), v.mutate(_()));+ }, E = () => void Te({+ title: "按模板整理文件",+ body: Gde(C),+ confirmLabel: "整理文件",+ onConfirm: () => y.start.mutateAsync({+ kind: "apply",+ request: _()+ })+ }), D = () => void Te({+ title: "回滚上一批整理",+ body: Kde,+ confirmLabel: "回滚整理",+ onConfirm: () => y.start.mutateAsync({ kind: "rollback" })+ }), O = null, k = y.job, A = y.outcome;+ if (k?.status === "running") {+ let e = k.message || k.stage || "正在整理文件…";+ O = /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: e,+ value: k.checked,+ total: k.total+ });+ } else if (A?.status === "failed") O = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "文件整理未完成",+ children: A.error || "请查看任务记录,核对已处理的文件。"+ });+ else if (A) {+ let { text: e, failed: t } = Xj(A);+ O = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: t ? "warning" : "success",+ title: t ? "部分完成" : "整理结果",+ children: e+ });+ } else y.start.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "整理失败",+ children: W(y.start.error)+ }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: "正在按模板算计划…"+ }) : v.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "模板不可用",+ children: W(v.error)+ }) : x && (O = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ title: "预览结果",+ children: Yue(x)+ }), S ? /* @__PURE__ */ (0, V.jsx)(Jde, { plan: x }) : null] }));+ return /* @__PURE__ */ (0, V.jsxs)(DM, {+ layout: "stack",+ id: "organize",+ labelledBy: "cleanup-organize-title",+ attributes: { "data-cleanup-organize": "" },+ footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)(J, {+ disabled: !i.length,+ ...X(v.isPending),+ onClick: T,+ children: "预览"+ }),+ S && !b && !y.outcome ? /* @__PURE__ */ (0, V.jsx)(J, {+ onClick: E,+ children: "执行整理"+ }) : null,+ r?.last_batch ? /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ ...X(b),+ onClick: D,+ children: "回滚上一批"+ }) : null+ ] }),+ children: [+ /* @__PURE__ */ (0, V.jsx)(EM, {+ id: "cleanup-organize-title",+ gap: "medium",+ children: "整理"+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-body-regular text-text-secondary",+ children: "按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。"+ }),+ n.isError ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "mt-3",+ children: /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "整理配置读取失败",+ children: W(n.error)+ })+ }) : null,+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "mt-3 flex flex-col gap-3",+ children: [+ i.length ? /* @__PURE__ */ (0, V.jsx)(Sk, {+ "aria-label": "整理哪个来源",+ className: "w-fit min-w-25",+ selectedKey: s || null,+ onSelectionChange: (e) => {+ e !== null && (o(String(e)), m(null), v.reset());+ },+ children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(Ck, {+ id: e.location,+ textValue: se[e.location] || e.location,+ children: [/* @__PURE__ */ (0, V.jsx)(Bk, { mark: Se[e.location] || "database" }), se[e.location] || e.location]+ }, e.location))+ }) : null,+ /* @__PURE__ */ (0, V.jsx)(_k, {+ label: "文件名模板",+ placeholder: "{number}[ {title}]",+ value: d.file,+ ref: h,+ spellCheck: "false",+ isInvalid: p === "file",+ onChange: (e) => {+ f({ file: e }), m(null);+ }+ }),+ /* @__PURE__ */ (0, V.jsx)(_k, {+ label: "目录模板",+ placeholder: "留空表示原地改名",+ value: d.dir,+ ref: g,+ spellCheck: "false",+ isInvalid: p === "dir",+ onChange: (e) => {+ f({ dir: e }), m(null);+ }+ }),+ r?.presets?.length ? /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-wrap gap-2",+ children: r.presets.map((e) => /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "secondary",+ onClick: () => {+ f({+ file: e.file,+ dir: e.dir+ }), m(null);+ },+ children: e.label+ }, e.label))+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "text-caption-1-regular leading-4.5 text-text-secondary",+ children: `${w};方括号里的内容在字段为空时整段省略。`+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "aria-live": "polite",+ className: "mt-3 flex flex-col gap-2 empty:hidden",+ children: O+ })+ ]+ });+}+//#endregion+//#region src/react/data-cleanup/orphan-records.ts+var Xde = "/api/orphan-records", Zde = "/api/orphan-records/attach", JM = ["orphan-records"], Qde = [+ ["asset_preference", "喜欢与理由"],+ ["watch_queue", "稍后看"],+ ["playlist_item", "播放列表"],+ ["asset_quality_goal", "寻找更好版本"],+ ["activity_event", "观看历史"],+ ["asset_tag_preference", "隐藏标签"]+], $de = (e) => G(Xde, e), efe = (e, t) => K(Zde, {+ id: e,+ target: t+}), tfe = (e) => K(UA, {+ ids: [e],+ operation: "delete"+}), nfe = (e) => [+ e.rating ? `评分 ${e.rating}` : "",+ e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",+ e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""+], YM = (e) => [...Qde.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...nfe(e)].filter(Boolean).join(" · "), rfe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", XM = (e) => [e.name, rfe(e.duration)].filter(Boolean).join(" · "), ife = vA("play"), ZM = () => z.invalidateQueries({+ queryKey: JM,+ exact: !0+});+function afe({ item: e, toast: t }) {+ let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = OS({+ mutationFn: () => efe(e.id, Number(n)),+ onSuccess: (e) => {+ t(`记录已接到新文件,批次 ${e.batch}`), ZM();+ },+ onError: (e) => t(W(e))+ }), a = OS({+ mutationFn: () => tfe(e.id),+ onSuccess: (n) => {+ t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), ZM();+ }+ }), o = () => {+ Te({+ title: "彻底删除",+ body: `将删除「${e.name}」这一条和它带的记录(${YM(e.records)})。此操作不可撤销。`,+ confirmLabel: "彻底删除",+ danger: !0,+ onConfirm: () => a.mutateAsync()+ });+ }, s = i.isPending || a.isPending;+ return /* @__PURE__ */ (0, V.jsxs)(nk, {+ id: e.id,+ children: [+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 items-center gap-3",+ children: [/* @__PURE__ */ (0, V.jsxs)("span", {+ className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",+ children: [/* @__PURE__ */ (0, V.jsx)(ife, {+ "aria-hidden": !0,+ className: "size-5"+ }), e.has_thumb ? /* @__PURE__ */ (0, V.jsx)("img", {+ src: `/thumb?id=${e.id}&c=4`,+ alt: "",+ loading: "lazy",+ onError: (e) => e.currentTarget.remove(),+ className: "absolute inset-0 size-full object-contain"+ }) : null]+ }), /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex min-w-0 flex-col gap-0.5",+ children: [/* @__PURE__ */ (0, V.jsx)("span", {+ title: e.name,+ className: "max-w-72 truncate text-body-regular text-text-primary",+ children: e.name+ }), /* @__PURE__ */ (0, V.jsx)("small", {+ className: "text-caption-1-regular text-text-secondary",+ children: [e.code, se[e.location] || e.location].filter(Boolean).join(" · ")+ })]+ })]+ }) }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ className: "block min-w-44",+ children: YM(e.records)+ }) }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(Sk, {+ "aria-label": `把 ${e.name} 的记录接到哪个文件`,+ className: "w-64",+ selectedKey: n,+ onSelectionChange: (e) => {+ e !== null && r(Number(e));+ },+ children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {+ id: e.id,+ textValue: XM(e),+ children: XM(e)+ }, e.id))+ }) : /* @__PURE__ */ (0, V.jsx)("span", {+ className: "text-text-secondary",+ children: "没有番号或文件名对得上的文件"+ }) }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsxs)("span", {+ className: "flex flex-wrap gap-2",+ children: [e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(J, {+ size: "small",+ disabled: s || n === null,+ ...X(i.isPending),+ onClick: () => i.mutate(),+ children: "接到这个文件"+ }) : null, /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "danger",+ size: "small",+ disabled: s,+ ...X(a.isPending),+ onClick: o,+ children: "彻底删除"+ })]+ }) })+ ]+ });+}+function ofe({ toast: e }) {+ let t = TS({+ queryKey: JM,+ queryFn: ({ signal: e }) => $de(e)+ }), n = t.data?.items ?? [];+ return !t.isError && !n.length ? null : /* @__PURE__ */ (0, V.jsxs)("section", {+ id: "orphan-records",+ "aria-labelledby": "orphan-records-title",+ className: "flex scroll-mt-20 flex-col gap-4",+ children: [/* @__PURE__ */ (0, V.jsx)(TM, {+ id: "orphan-records-title",+ children: "孤儿记录"+ }), /* @__PURE__ */ (0, V.jsxs)(DM, {+ layout: "stack",+ labelledBy: "orphan-records-box",+ children: [+ /* @__PURE__ */ (0, V.jsx)(EM, {+ id: "orphan-records-box",+ gap: "small",+ children: "文件已消失的作品"+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "mb-3 text-body-regular text-text-secondary",+ children: "这些作品的文件已不在盘上,喜欢、稍后看、播放列表与观看历史都还留着。接到新文件后记录跟过去,旧的这一条删掉。"+ }),+ t.isError ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "孤儿记录读取失败",+ children: W(t.error)+ }) : /* @__PURE__ */ (0, V.jsx)(UM, { children: /* @__PURE__ */ (0, V.jsxs)(VM, {+ "aria-label": "文件已消失的作品",+ size: "sm",+ children: [/* @__PURE__ */ (0, V.jsxs)(XO, { children: [+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "item",+ isRowHeader: !0,+ children: "作品"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "records",+ children: "带的记录"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "target",+ children: "接到"+ }),+ /* @__PURE__ */ (0, V.jsx)(ZO, {+ id: "actions",+ children: "操作"+ })+ ] }), /* @__PURE__ */ (0, V.jsx)($O, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(afe, {+ item: t,+ toast: e+ }, t.id)) })]+ }) })+ ]+ })]+ });+}+//#endregion+//#region src/react/data-cleanup/resource-sync-card.tsx+var sfe = vA("git-compare"), cfe = vA("rotate-cw"), lfe = "暂时无法读取进度,正在重新连接…", QM = "清理失效条目", $M = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", eN = (e) => Number(e || 0).toLocaleString();+function ufe({ scan: e }) {+ let t = e.cache ?? {+ files: 0,+ bytes: 0+ };+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {+ className: $M,+ children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, V.jsx)("article", {+ className: yM(),+ children: /* @__PURE__ */ (0, V.jsx)(bM, {+ label: ede[e.location] || "媒体来源",+ mark: /* @__PURE__ */ (0, V.jsx)(Bk, { mark: Se[e.location] ?? "database" }),+ aside: /* @__PURE__ */ (0, V.jsx)("span", {+ className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",+ children: e.online ? "可访问" : "离线,已跳过"+ }),+ figure: e.online ? `${eN(e.missing)} 项` : "—",+ meta: ide(e),+ wrapMeta: !0+ })+ }, e.location))+ }), /* @__PURE__ */ (0, V.jsxs)("div", {+ className: $M,+ children: [+ /* @__PURE__ */ (0, V.jsx)("article", {+ className: yM(),+ children: /* @__PURE__ */ (0, V.jsx)(bM, {+ label: "待永久删除",+ figure: `${eN(aM(e))} 项`,+ meta: "文件已不在盘上,含回收站"+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("article", {+ className: yM(),+ children: /* @__PURE__ */ (0, V.jsx)(bM, {+ label: "将标为已消失",+ figure: `${eN(e.vanish)} 项`,+ meta: "带个人记录,记录留着"+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("article", {+ className: yM(),+ children: /* @__PURE__ */ (0, V.jsx)(bM, {+ label: "空文件夹",+ figure: `${eN(e.empty)} 个`,+ meta: "保留来源根目录"+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("article", {+ className: yM(),+ children: /* @__PURE__ */ (0, V.jsx)(bM, {+ label: "可清理的缓存",+ figure: `${eN(t.files)} 个`,+ meta: t.files ? pe(t.bytes) : ""+ })+ })+ ]+ })] });+}+function dfe({ toast: e }) {+ let t = IM({+ queryKey: eM,+ queryFn: ({ signal: e }) => nM(e),+ start: Zue,+ onFinish: (t) => {+ if (z.invalidateQueries({+ queryKey: fM,+ exact: !0+ }), z.invalidateQueries({+ queryKey: $j,+ exact: !0+ }), t.status !== "complete") return;+ let { done: n, left: r } = cM(t);+ r ? e(`已完成 ${eN(n)} 项,${eN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");+ }+ }), n = IM({+ queryKey: $j,+ queryFn: ({ signal: e }) => tM(e),+ start: Xue,+ onStarted: () => t.dismiss()+ }), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void Te({+ title: QM,+ body: rde(e),+ confirmLabel: QM,+ danger: !0,+ onConfirm: () => t.start.mutateAsync(e.scan_id || "")+ }), l = t.outcome, u = (e) => {+ let t = cM(e).left > 0;+ return /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: t ? "warning" : "success",+ title: t ? "部分完成" : "清理结果",+ children: ade(e, pe)+ });+ }, d = null, f = null;+ if (l?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "资源清理未完成",+ children: l.error || "请查看任务记录,核对已处理的文件。"+ });+ else if (l) f = u(l);+ else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: t.job?.message || "正在复核并清理失效条目…"+ });+ else if (n.start.isError) f = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "扫描失败",+ children: W(n.start.error)+ });+ else if (n.query.isError && r) f = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ title: "任务状态",+ children: lfe+ });+ else if (r?.status === "running") {+ let e = tde(r);+ d = /* @__PURE__ */ (0, V.jsx)(MM, {+ embedded: !0,+ label: e,+ value: r.completed_sources,+ total: r.total_sources+ });+ } else if (r?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "扫描失败",+ children: r.error || "后台扫描失败"+ });+ else if (r?.status === "complete" && r.applied) f = t.job?.status === "complete" ? u(t.job) : /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ title: "清理结果",+ children: "这次检查的结果已经清理,重新扫描可再核对。"+ });+ else if (r?.status === "complete") {+ let e = $ue(r);+ f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [+ /* @__PURE__ */ (0, V.jsx)(ufe, { scan: r }),+ e ? /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "neutral",+ title: "清理内容",+ children: nde(r)+ }) : null,+ /* @__PURE__ */ (0, V.jsx)("div", {+ className: "flex flex-wrap items-center justify-end gap-2",+ children: e ? /* @__PURE__ */ (0, V.jsx)(J, {+ variant: "danger",+ ...X(a),+ onClick: () => c(r),+ children: a ? "正在复核并清理…" : QM+ }) : /* @__PURE__ */ (0, V.jsx)("p", {+ className: "mr-auto text-body-regular text-notification-success-foreground",+ children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"+ })+ })+ ] });+ }+ return t.start.isError && !l && (f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [f, /* @__PURE__ */ (0, V.jsx)(Y, {+ tone: "error",+ title: "清理失败",+ children: W(t.start.error)+ })] })), /* @__PURE__ */ (0, V.jsxs)("section", {+ id: "resource-sync",+ "aria-labelledby": "resource-sync-title",+ className: "flex scroll-mt-20 flex-col gap-4",+ children: [+ /* @__PURE__ */ (0, V.jsx)(TM, {+ id: "resource-sync-title",+ children: "资源同步"+ }),+ /* @__PURE__ */ (0, V.jsxs)(DM, {+ layout: "split",+ labelledBy: "resource-sync-box",+ footer: /* @__PURE__ */ (0, V.jsx)(J, {+ "data-resource-scan": !0,+ leadingIcon: o && !i ? cfe : sfe,+ ...X(i),+ onClick: () => {+ i || n.start.mutate();+ },+ children: s+ }),+ children: [+ /* @__PURE__ */ (0, V.jsx)(EM, {+ id: "resource-sync-box",+ gap: "small",+ children: "文件与记录核对"+ }),+ /* @__PURE__ */ (0, V.jsx)("p", {+ className: "max-w-190 text-body-2-regular leading-5 text-text-secondary",+ children: "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。"+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "aria-live": "polite",+ className: "mt-4 empty:hidden",+ children: d+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ "aria-live": "polite",+ className: "flex flex-col gap-4 empty:hidden",+ children: f+ })+ ]+ });+}+//#endregion+//#region src/react/data-cleanup/data-cleanup-page.tsx+function tN(e, t) {+ return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);+}+function nN({ section: e, label: t, icon: n, value: r, open: i }) {+ return /* @__PURE__ */ (0, V.jsx)("button", {+ type: "button",+ className: yM({ interactive: !0 }),+ "data-cleanup-go": e,+ onClick: () => i(e),+ children: /* @__PURE__ */ (0, V.jsx)(bM, {+ label: t,+ icon: n,+ figure: r.figure,+ meta: r.meta+ })+ });+}+var ffe = vA("square-check-big"), pfe = vA("sparkles"), mfe = vA("file-stack"), hfe = vA("file-archive"), gfe = vA("trash"), _fe = [+ lM,+ cj,+ HA+], vfe = () => {+ for (let e of _fe) z.invalidateQueries({+ queryKey: e,+ exact: !0+ });+};+function yfe({ toast: e, failure: t, open: n }) {+ let r = TS({+ queryKey: lM,+ queryFn: ({ signal: e }) => pM(e)+ }), i = TS({+ queryKey: cj,+ queryFn: ({ signal: e }) => lj(e)+ }), a = TS({+ queryKey: HA,+ queryFn: ({ signal: e }) => WA(e)+ }), o = TS({+ queryKey: uM,+ queryFn: ({ signal: e }) => mM(e)+ }), s = TS({+ queryKey: fM,+ queryFn: ({ signal: e }) => hM(e)+ }), c = TS({+ queryKey: tt,+ queryFn: ({ signal: e }) => rt(e)+ }), l = (t) => e(t);+ return /* @__PURE__ */ (0, V.jsxs)(EE, { children: [+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: gde,+ children: [+ /* @__PURE__ */ (0, V.jsx)(nN, {+ section: "review",+ label: "人工复核",+ icon: ffe,+ open: n,+ value: tN(r, lde)+ }),+ /* @__PURE__ */ (0, V.jsx)(nN, {+ section: "quality",+ label: "高清版",+ icon: pfe,+ open: n,+ value: tN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))+ }),+ /* @__PURE__ */ (0, V.jsx)(nN, {+ section: "duplicates",+ label: "重复文件",+ icon: mfe,+ open: n,+ value: tN(a, (e) => Number(e.total || 0) ? {+ figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,+ meta: `可回收 ${pe(e.reclaimable || 0)}`+ } : { figure: "没有重复内容" })+ }),+ /* @__PURE__ */ (0, V.jsx)(nN, {+ section: "ads",+ label: "垃圾文件",+ icon: hfe,+ open: n,+ value: tN(o, (e) => ({+ figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,+ meta: ude(e)+ }))+ }),+ /* @__PURE__ */ (0, V.jsx)(nN, {+ section: "trash",+ label: "回收站",+ icon: gfe,+ open: n,+ value: tN(s, (e) => ({+ figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,+ meta: e.total ? `占用 ${pe(e.bytes || 0)}` : ""+ }))+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsxs)("div", {+ className: "flex flex-col gap-4 max-cleanup-tight:gap-3",+ children: [+ /* @__PURE__ */ (0, V.jsx)("div", {+ id: "libraryProcessing",+ className: "scroll-mt-20",+ children: /* @__PURE__ */ (0, V.jsx)(PM, {+ toast: l,+ monitor: !0,+ onComplete: vfe+ })+ }),+ /* @__PURE__ */ (0, V.jsx)("div", {+ id: "mediaRepair",+ children: /* @__PURE__ */ (0, V.jsx)(Lde, {})+ }),+ /* @__PURE__ */ (0, V.jsx)(Yde, {+ toast: l,+ failure: t+ })+ ]+ }),+ /* @__PURE__ */ (0, V.jsx)(Wde, {}),+ /* @__PURE__ */ (0, V.jsx)(ofe, { toast: l }),+ rM(c.data) ? /* @__PURE__ */ (0, V.jsx)(dfe, { toast: e }) : null+ ] });+}+//#endregion+//#region src/react/feed-new/feed-new.ts+var rN = (e) => ["feed-new", e ?? "home"], bfe = 8, xfe = 1500;+function Sfe(e, t, n) {+ let r = document.createElement("template");+ r.innerHTML = e;+ let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {+ let t = new Image();+ return t.referrerPolicy = e.getAttribute("referrerpolicy") || "", t.src = e.getAttribute("src") || "", t.decode().catch(() => {});+ });+ return Promise.race([Promise.all(i), new Promise((e) => {+ setTimeout(e, n);+ })]);+}+async function Cfe(e, t, n) {+ let r = new URLSearchParams({ limit: "12" });+ e && r.set("entity", String(e));+ let i = await ce(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);+ return n && o.length && await Sfe(s, bfe, xfe), {+ items: o,+ html: s+ };+}+var iN = (e, t, n = !1) => ({+ queryKey: rN(e),+ queryFn: () => Cfe(e, t, n),+ staleTime: Infinity+}), aN = (e, t) => ce("/api/feeds/discovery", {+ method: "POST",+ body: JSON.stringify({+ action: t,+ ids: [e]+ })+}).then(() => void 0, () => void 0);+async function wfe(e) {+ z.removeQueries({ queryKey: rN(null) }), await z.fetchQuery(iN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));+}+//#endregion+//#region src/react/entity-page/entity-page.ts+var Tfe = [+ "loc",+ "creator",+ "tag",+ "state",+ "dur_min",+ "dur_max",+ "orient",+ "sort",+ "dir"+], oN = {+ media: "videos",+ set: 0+}, sN = (e, t) => [+ "entity",+ e,+ t+], Efe = (e, t, n, r) => [+ "entity-items",+ e,+ t,+ n,+ r+], cN = (e, t, n, r) => [+ "entity-photos",+ e,+ t,+ n,+ r+], lN = (e) => String(e || "").split(",").filter(Boolean), Dfe = (e, t) => lN(e).includes(t);+function uN(e, t, n, r, i = 0) {+ let a = new URLSearchParams();+ a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");+ for (let t of Tfe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);+ return r.jav && a.set("jav", "1"), a;+}+async function dN(e, t, n, r, i, a) {+ return await ce(`/api/items?${uN(e, t, n, r, i)}`, a ? { signal: a } : {});+}+var fN = (e) => {+ let t = {+ jav: e.jav,+ seed: e.seed+ }, n = uN(e.kind, e.name, e.filters, t).toString();+ return {+ queryKey: Efe(e.kind, e.name, n, e.revision),+ queryFn: ({ signal: n }) => dN(e.kind, e.name, e.filters, t, 0, n),+ staleTime: Infinity+ };+}, pN = (e, t) => ({+ queryKey: sN(e, t),+ queryFn: ({ signal: n }) => ce(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),+ staleTime: Infinity+});+function Ofe(e, t, n, r, i, a) {+ let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;+ if (i) {+ let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;+ return n ? `/api/photo-set?id=${n}${e}` : `/api/photos?${o}${e}`;+ }+ let s = r ? `&seed=${encodeURIComponent(r)}` : "";+ return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;+}+var mN = (e, t, n, r) => ({+ queryKey: cN(e, t, n, r),+ queryFn: async ({ pageParam: i }) => {+ let a = await ce(Ofe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {+ if (i) throw e;+ return { error: String(e) };+ });+ if (i && a.error) throw Error(a.error);+ return a;+ },+ initialPageParam: null,+ getNextPageParam: (e, t) => e.has_more && !e.error ? {+ offset: t.reduce((e, t) => e + (t.items || []).length, 0),+ seed: t[0]?.seed || ""+ } : void 0,+ staleTime: Infinity+}), hN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];+async function kfe(e) {+ let { kind: t, name: n } = e;+ for (let e of [+ "entity",+ "entity-items",+ "entity-photos"+ ]) z.removeQueries({ queryKey: [+ e,+ t,+ n+ ] });+ await Promise.all([+ z.fetchQuery(pN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: rN(Number(t.id)) }), z.fetchQuery(iN(Number(t.id), e.helpers.feedRowHtml, !0)))),+ z.fetchQuery(fN(e)),+ z.fetchInfiniteQuery(mN(t, n, 0, "")),+ e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(mN(t, n, e.media.set, "")) : null+ ]);+}+//#endregion+//#region src/react/follow/online-vocab.ts+var Afe = "/api/follow/authors", jfe = "/api/follow/tags", Mfe = (e) => [+ "follow",+ "authors",+ e+], Nfe = (e, t) => [+ "follow",+ "tags",+ e,+ t+];+function Pfe(e, t, n) {+ let r = new URLSearchParams({+ limit: String(t),+ offset: String(n)+ });+ return e && r.set("q", e), `${Afe}?${r}`;+}+function Ffe(e, t, n, r) {+ let i = new URLSearchParams({+ types: "all",+ limit: String(n),+ offset: String(r)+ });+ return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${jfe}?${i}`;+}+var Ife = (e, t, n, r) => G(Pfe(e, t, n), r), Lfe = (e, t, n, r, i) => G(Ffe(e, t, n, r), i), Rfe = "/api/index", gN = {+ performers: "艺人",+ creators: "卖家",+ studios: "厂牌",+ agencies: "事务所",+ tags: "标签"+}, zfe = {+ performers: "performer",+ creators: "creator",+ studios: "studio",+ agencies: "agency"+}, _N = [+ ["all", "全部"],+ ["meta", "影片属性"],+ ["relationship", "人物关系"],+ ["role", "角色设定"],+ ["appearance", "外貌身材"],+ ["scene", "情境场所"],+ ["story", "故事剧情"],+ ["position", "性交体位"],+ ["general", "其他内容"]+], vN = [+ ["all", "全部"],+ ["general", "通用"],+ ["artist", "创作者"],+ ["character", "角色"],+ ["copyright", "作品"],+ ["metadata", "元数据"]+], yN = {+ performers: [+ ["all", "全部"],+ ["japanese_av", "女优"],+ ["amateur", "素人"],+ ["western", "西方"],+ ["blogger", "网黄博主"],+ ["animation", "动画作者"]+ ],+ creators: [["all", "全部"]]+}, bN = {+ people: 120,+ tags: 180+}, xN = (e) => e !== "tags", SN = (e) => e === "studios" || e === "agencies";+function CN(e) {+ if (e.kind === "creators" && e.category === "animation") return CN({+ ...e,+ kind: "performers",+ scope: "local"+ });+ let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? vN : _N : e.kind === "performers" || e.kind === "creators" ? yN[e.kind] : [], r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);+ return {+ ...e,+ scope: t,+ category: (e.kind === "tags" || r) && i ? e.category : "all"+ };+}+function wN(e) {+ let { kind: t, q: n, scope: r, category: i } = e;+ return t === "tags" ? r === "online" ? {+ what: "online-tags",+ q: n,+ category: i+ } : {+ what: "tags",+ q: n,+ category: i+ } : t === "performers" && r === "online" ? {+ what: "online-authors",+ q: n+ } : {+ what: "people",+ kind: t,+ q: n,+ ...i && i !== "all" ? { category: i } : {}+ };+}+var TN = (e, t, n = "all") => [+ "index",+ e,+ t,+ ...e === "tags" || n !== "all" ? [n] : []+];+function EN(e, t, n, r, i) {+ let a = new URLSearchParams({+ kind: e,+ limit: String(r),+ offset: String(i)+ });+ return t && a.set("q", t), n !== "all" && a.set("category", n), `${Rfe}?${a}`;+}+function DN(e) {+ let t = e.what === "people" || e.what === "online-authors" ? bN.people : bN.tags, n = {+ initialPageParam: 0,+ getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0+ };+ switch (e.what) {+ case "people": return {+ ...n,+ queryKey: TN(e.kind, e.q, e.category || "all"),+ queryFn: ({ pageParam: n, signal: r }) => G(EN(e.kind, e.q, e.category || "all", t, n), r)+ };+ case "tags": return {+ ...n,+ queryKey: TN("tags", e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => G(EN("tags", e.q, e.category, t, n), r)+ };+ case "online-authors": return {+ ...n,+ queryKey: Mfe(e.q),+ queryFn: ({ pageParam: n, signal: r }) => Ife(e.q, t, n, r)+ };+ case "online-tags": return {+ ...n,+ queryKey: Nfe(e.q, e.category),+ queryFn: ({ pageParam: n, signal: r }) => Lfe(e.q, e.category, t, n, r)+ };+ }+}+async function Bfe(e, t) {+ let n = DN(wN(CN(e)));+ z.removeQueries({+ queryKey: n.queryKey,+ exact: !0+ }), await z.fetchInfiniteQuery({+ queryKey: n.queryKey,+ queryFn: ({ pageParam: e }) => n.queryFn({+ pageParam: e,+ signal: t+ }),+ initialPageParam: 0,+ getNextPageParam: n.getNextPageParam+ });+}+var Vfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Hfe = (e, t) => `${e}${t ? "+" : ""} 项`, ON = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Ufe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), Wfe = {+ numeric: !0,+ sensitivity: "base"+};+function Gfe(e, t) {+ let n = /* @__PURE__ */ new Map();+ for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", Wfe))) {+ let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);+ a ? a.push(r) : n.set(i, [r]);+ }+ return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));+}+//#endregion+//#region src/react/index/index-people.tsx+function kN({ html: e, face: t, company: n, big: r }) {+ let i = (0, B.useRef)(null);+ return (0, B.useLayoutEffect)(() => {+ t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");+ }, [t]), /* @__PURE__ */ (0, V.jsx)("span", {+ ref: i,+ "data-person-ring": "",+ "data-fit-native": n ? "mark" : "portrait",+ className: `relative inline-grid flex-none place-items-center self-center overflow-hidden text-title-1-regular ${r ? n ? "aspect-square w-full rounded-2lg" : "aspect-3/4 w-full rounded-2lg" : "size-17.5 rounded-full"} [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:max-w-none [&_img]:object-cover [&_img]:object-(--face)`,+ dangerouslySetInnerHTML: { __html: e }+ });+}+var Kfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";+function AN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsxs)("button", {+ type: "button",+ ...a,+ "data-index-cell": "",+ onClick: i,+ className: CE({+ radius: "plain",+ padding: "none",+ interactive: !0,+ className: `${Kfe} ${n ? "items-stretch text-left" : "items-center text-center"}`+ }),+ children: [+ r,+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-index-name": "",+ className: "text-body-medium break-all text-text-primary",+ children: e+ }),+ /* @__PURE__ */ (0, V.jsx)("span", {+ "data-index-readout": "",+ className: "text-caption-1-regular",+ children: t+ })+ ]+ });+}+function jN({ kind: e, items: t, layout: n, props: r }) {+ let i = SN(e), a = n === "big";+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-index-grid": "",+ "data-layout": n,+ "data-cells": i ? "company" : "people",+ className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,+ children: t.map((t) => {+ let n = t.entity_kind || zfe[e], o = r.personAvatar(t, n, a);+ return /* @__PURE__ */ (0, V.jsx)(AN, {+ "data-k": t.k,+ "data-kind": n,+ name: t.k,+ readout: `${Ufe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,+ big: a,+ onPress: () => r.openEntity(n, t.k),+ children: /* @__PURE__ */ (0, V.jsx)(kN, {+ html: o.html,+ face: o.face,+ company: i,+ big: a+ })+ }, `${n}:${t.entity_id || t.k}`);+ })+ });+}+function qfe({ items: e, layout: t, props: n }) {+ let r = t === "big";+ return /* @__PURE__ */ (0, V.jsx)("div", {+ "data-index-grid": "",+ "data-layout": t,+ "data-cells": "people",+ className: "index-grid-person gap-3",+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(AN, {+ "data-follow-author": e.key,+ "data-kind": "performer",+ name: e.k,+ readout: `${e.n.toLocaleString()} 项更新`,+ big: r,+ onPress: () => n.openFollowAuthor(e.key),+ children: /* @__PURE__ */ (0, V.jsx)(kN, {+ html: n.authorAvatar(e),+ company: !1,+ big: r+ })+ }, e.key))+ });+}+//#endregion+//#region node_modules/scheduler/cjs/scheduler.production.js+var Jfe = /* @__PURE__ */ xt(((e) => {+ function t(e, t) {+ var n = e.length;+ e.push(t);+ a: for (; 0 < n;) {+ var r = n - 1 >>> 1, a = e[r];+ if (0 < i(a, t)) e[r] = t, e[n] = a, n = r;+ else break a;+ }+ }+ function n(e) {+ return e.length === 0 ? null : e[0];+ }+ function r(e) {+ if (e.length === 0) return null;+ var t = e[0], n = e.pop();+ if (n !== t) {+ e[0] = n;+ a: for (var r = 0, a = e.length, o = a >>> 1; r < o;) {+ var s = 2 * (r + 1) - 1, c = e[s], l = s + 1, u = e[l];+ if (0 > i(c, n)) l < a && 0 > i(u, c) ? (e[r] = u, e[l] = n, r = l) : (e[r] = c, e[s] = n, r = s);+ else if (l < a && 0 > i(u, n)) e[r] = u, e[l] = n, r = l;+ else break a;+ }+ }+ return t;+ }+ function i(e, t) {+ var n = e.sortIndex - t.sortIndex;+ return n === 0 ? e.id - t.id : n;+ }+ if (e.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {+ var a = performance;+ e.unstable_now = function() {+ return a.now();+ };+ } else {+ var o = Date, s = o.now();+ e.unstable_now = function() {+ return o.now() - s;+ };+ }+ var c = [], l = [], u = 1, d = null, f = 3, p = !1, m = !1, h = !1, g = !1, _ = typeof setTimeout == "function" ? setTimeout : null, v = typeof clearTimeout == "function" ? clearTimeout : null, y = typeof setImmediate < "u" ? setImmediate : null;+ function b(e) {+ for (var i = n(l); i !== null;) {+ if (i.callback === null) r(l);+ else if (i.startTime <= e) r(l), i.sortIndex = i.expirationTime, t(c, i);+ else break;+ i = n(l);+ }+ }+ function x(e) {+ if (h = !1, b(e), !m) {+ if (n(c) !== null) m = !0, S || (S = !0, O());+ else {+ var t = n(l);+ t !== null && j(x, t.startTime - e);+ }+ }+ }+ var S = !1, C = -1, w = 5, T = -1;+ function E() {+ return g ? !0 : !(e.unstable_now() - T < w);+ }+ function D() {+ if (g = !1, S) {+ var t = e.unstable_now();+ T = t;+ var i = !0;+ try {+ a: {+ m = !1, h && (h = !1, v(C), C = -1), p = !0;+ var a = f;+ try {+ b: {+ for (b(t), d = n(c); d !== null && !(d.expirationTime > t && E());) {+ var o = d.callback;+ if (typeof o == "function") {+ d.callback = null, f = d.priorityLevel;+ var s = o(d.expirationTime <= t);+ if (t = e.unstable_now(), typeof s == "function") {+ d.callback = s, b(t), i = !0;+ break b;+ }+ d === n(c) && r(c), b(t);+ } else r(c);+ d = n(c);+ }+ if (d !== null) i = !0;+ else {+ var u = n(l);+ u !== null && j(x, u.startTime - t), i = !1;+ }+ }+ break a;+ } finally {+ d = null, f = a, p = !1;+ }+ i = void 0;+ }+ } finally {+ i ? O() : S = !1;+ }+ }+ }+ var O;+ if (typeof y == "function") O = function() {+ y(D);+ };+ else if (typeof MessageChannel < "u") {+ var k = new MessageChannel(), A = k.port2;+ k.port1.onmessage = D, O = function() {+ A.postMessage(null);+ };+ } else O = function() {+ _(D, 0);+ };+ function j(t, n) {+ C = _(function() {+ t(e.unstable_now());+ }, n);+ }+ e.unstable_IdlePriority = 5, e.unstable_ImmediatePriority = 1, e.unstable_LowPriority = 4, e.unstable_NormalPriority = 3, e.unstable_Profiling = null, e.unstable_UserBlockingPriority = 2, e.unstable_cancelCallback = function(e) {+ e.callback = null;+ }, e.unstable_forceFrameRate = function(e) {+ 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : w = 0 < e ? Math.floor(1e3 / e) : 5;+ }, e.unstable_getCurrentPriorityLevel = function() {+ return f;+ }, e.unstable_next = function(e) {+ switch (f) {+ case 1:+ case 2:+ case 3:+ var t = 3;+ break;+ default: t = f;+ }+ var n = f;+ f = t;+ try {+ return e();+ } finally {+ f = n;+ }+ }, e.unstable_requestPaint = function() {+ g = !0;+ }, e.unstable_runWithPriority = function(e, t) {+ switch (e) {+ case 1:+ case 2:+ case 3:+ case 4:+ case 5: break;+ default: e = 3;+ }+ var n = f;+ f = e;+ try {+ return t();+ } finally {+ f = n;+ }+ }, e.unstable_scheduleCallback = function(r, i, a) {+ var o = e.unstable_now();+ switch (typeof a == "object" && a ? (a = a.delay, a = typeof a == "number" && 0 < a ? o + a : o) : a = o, r) {+ case 1:+ var s = -1;+ break;+ case 2:+ s = 250;+ break;+ case 5:+ s = 1073741823;+ break;+ case 4:+ s = 1e4;+ break;+ default: s = 5e3;+ }+ return s = a + s, r = {+ id: u++,+ callback: i,+ priorityLevel: r,+ startTime: a,+ expirationTime: s,+ sortIndex: -1+ }, a > o ? (r.sortIndex = a, t(l, r), n(c) === null && r === n(l) && (h ? (v(C), C = -1) : h = !0, j(x, a - o))) : (r.sortIndex = s, t(c, r), m || p || (m = !0, S || (S = !0, O()))), r;+ }, e.unstable_shouldYield = E, e.unstable_wrapCallback = function(e) {+ var t = f;+ return function() {+ var n = f;+ f = t;+ try {+ return e.apply(this, arguments);+ } finally {+ f = n;+ }+ };+ };+})), Yfe = /* @__PURE__ */ xt(((e, t) => {+ t.exports = Jfe();+})), Xfe = /* @__PURE__ */ xt(((e) => {+ var t = Yfe(), n = Ot(), r = At();+ function i(e) {+ var t = "https://react.dev/errors/" + e;+ if (1 < arguments.length) {+ t += "?args[]=" + encodeURIComponent(arguments[1]);+ for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);+ }+ return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";+ }+ function a(e) {+ return !(!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11);+ }+ function o(e) {+ for (var t = e, n = t; n && !n.alternate;) t = n, t.flags & 4098 && (e = t.return), n = t.return;+ for (; t.return;) t = t.return;+ return t.tag === 3 ? e : null;+ }+ function s(e) {+ if (e.tag === 13) {+ var t = e.memoizedState;+ if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;+ }+ return null;+ }+ function c(e) {+ if (e.tag === 31) {+ var t = e.memoizedState;+ if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated;+ }+ return null;+ }+ function l(e) {+ if (o(e) !== e) throw Error(i(188));+ }+ function u(e) {+ var t = e.alternate;+ if (!t) {+ if (t = o(e), t === null) throw Error(i(188));+ return t === e ? e : null;+ }+ for (var n = e, r = t;;) {+ var a = n.return;+ if (a === null) break;+ var s = a.alternate;+ if (s === null) {+ if (r = a.return, r !== null) {+ n = r;+ continue;+ }+ break;+ }+ if (a.child === s.child) {+ for (s = a.child; s;) {+ if (s === n) return l(a), e;+ if (s === r) return l(a), t;+ s = s.sibling;+ }+ throw Error(i(188));+ }+ if (n.return !== r.return) n = a, r = s;+ else {+ for (var c = !1, u = a.child; u;) {+ if (u === n) {+ c = !0, n = a, r = s;+ break;+ }+ if (u === r) {+ c = !0, r = a, n = s;+ break;+ }+ u = u.sibling;+ }+ if (!c) {+ for (u = s.child; u;) {+ if (u === n) {+ c = !0, n = s, r = a;+ break;+ }+ if (u === r) {+ c = !0, r = s, n = a;+ break;+ }+ u = u.sibling;+ }+ if (!c) throw Error(i(189));+ }+ }+ if (n.alternate !== r) throw Error(i(190));+ }+ if (n.tag !== 3) throw Error(i(188));+ return n.stateNode.current === n ? e : t;+ }+ function d(e) {+ var t = e.tag;+ if (t === 5 || t === 26 || t === 27 || t === 6) return e;+ for (e = e.child; e !== null;) {+ if (t = d(e), t !== null) return t;+ e = e.sibling;+ }+ return null;+ }+ function f(e, t, n, r, i, a) {+ for (; e !== null;) {+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && n(e, r, i, a) || (e.tag !== 22 || e.memoizedState === null) && (t || e.tag !== 5 && e.tag !== 27) && f(e.child, t, n, r, i, a)) return !0;+ e = e.sibling;+ }+ return !1;+ }+ function p(e) {+ for (e = e.return; e !== null;) {+ if (e.tag === 3 || e.tag === 5 || e.tag === 27) return e;+ e = e.return;+ }+ return null;+ }+ function m(e) {+ var t = !1;+ for (e = e.return; e !== null && (e.tag === 4 && (t = !0), e.tag !== 3 && e.tag !== 5 && e.tag !== 27);) e = e.return;+ return t;+ }+ function h(e) {+ var t = [null, null], n = p(e);+ return n === null || g(t, e, n.child, { foundSelf: !1 }), t;+ }+ function g(e, t, n, r) {+ for (; n !== null;) {+ if (n === t) r.foundSelf = !0;+ else if (n.tag === 5 || n.tag === 27 || n.tag === 6) {+ if (r.foundSelf) return e[1] = n, !0;+ e[0] = n;+ } else if ((n.tag !== 22 || n.memoizedState === null) && g(e, t, n.child, r)) return !0;+ n = n.sibling;+ }+ return !1;+ }+ function _(e) {+ switch (e.tag) {+ case 5:+ case 27:+ case 6: return e.stateNode;+ case 3: return e.stateNode.containerInfo;+ default: throw Error(i(559));+ }+ }+ var v = null, y = null;+ function b(e, t, n) {+ return e === n || e === t && (v = e, !0);+ }+ function x(e, t, n) {+ return e === n ? (y = e, !1) : e === t && (y !== null && (v = e), !0);+ }+ function S(e) {+ if (e === null) return null;+ do+ e = e === null ? null : e.return;+ while (e && e.tag !== 5 && e.tag !== 27 && e.tag !== 3);+ return e || null;+ }+ function C(e, t, n) {+ for (var r = 0, i = e; i; i = n(i)) r++;+ i = 0;+ for (var a = t; a; a = n(a)) i++;+ for (; 0 < r - i;) e = n(e), r--;+ for (; 0 < i - r;) t = n(t), i--;+ for (; r--;) {+ if (e === t || t !== null && e === t.alternate) return e;+ e = n(e), t = n(t);+ }+ return null;+ }+ var w = Object.assign, T = Symbol.for("react.element"), E = Symbol.for("react.transitional.element"), D = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), ee = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), ne = Symbol.for("react.legacy_hidden"), re = Symbol.for("react.memo_cache_sentinel"), ie = Symbol.for("react.view_transition"), ae = Symbol.for("react.recoverable"), oe = Symbol.iterator;+ function se(e) {+ return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);+ }+ var ce = Symbol.for("react.client.reference");+ function le(e) {+ if (e == null) return null;+ if (typeof e == "function") return e.$$typeof === ce ? null : e.displayName || e.name || null;+ if (typeof e == "string") return e;+ switch (e) {+ case O: return "Fragment";+ case A: return "Profiler";+ case k: return "StrictMode";+ case P: return "Suspense";+ case ee: return "SuspenseList";+ case te: return "Activity";+ case ie: return "ViewTransition";+ }+ if (typeof e == "object") switch (e.$$typeof) {+ case D: return "Portal";+ case M: return e.displayName || "Context";+ case j: return (e._context.displayName || "Context") + ".Consumer";+ case N:+ var t = e.render;+ return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;+ case F: return t = e.displayName || null, t === null ? le(e.type) || "Memo" : t;+ case I:+ t = e._payload, e = e._init;+ try {+ return le(e(t));+ } catch {}+ }+ return null;+ }+ var ue = Array.isArray, L = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, de = r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = {+ pending: !1,+ data: null,+ method: null,+ action: null+ }, pe = [], me = -1;+ function R(e) {+ return { current: e };+ }+ function he(e) {+ 0 > me || (e.current = pe[me], pe[me] = null, me--);+ }+ function ge(e, t) {+ me++, pe[me] = e.current, e.current = t;+ }+ var _e = R(null), ve = R(null), ye = R(null), be = R(null);+ function xe(e, t) {+ switch (ge(ye, t), ge(ve, e), ge(_e, null), t.nodeType) {+ case 9:+ case 11:+ e = (e = t.documentElement) && (e = e.namespaceURI) ? xp(e) : 0;+ break;+ default: if (e = t.tagName, t = t.namespaceURI) t = xp(t), e = Sp(t, e);+ else switch (e) {+ case "svg":+ e = 1;+ break;+ case "math":+ e = 2;+ break;+ default: e = 0;+ }+ }+ he(_e), ge(_e, e);+ }+ function Se() {+ he(_e), he(ve), he(ye);+ }+ function Ce(e) {+ var t = e.memoizedState;+ t !== null && (_h._currentValue = t.memoizedState, ge(be, e)), t = _e.current;+ var n = Sp(t, e.type);+ t !== n && (ge(ve, e), ge(_e, n));+ }+ function we(e) {+ ve.current === e && (he(_e), he(ve)), be.current === e && (he(be), _h._currentValue = fe);+ }+ var Te, Ee;+ function De(e) {+ if (Te === void 0) try {+ throw Error();+ } catch (e) {+ var t = e.stack.trim().match(/\n( *(at )?)/);+ Te = t && t[1] || "", Ee = -1 < e.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < e.stack.indexOf("@") ? "@unknown:0:0" : "";+ }+ return "\n" + Te + e + Ee;+ }+ var Oe = !1;+ function ke(e, t) {+ if (!e || Oe) return "";+ Oe = !0;+ var n = Error.prepareStackTrace;+ Error.prepareStackTrace = void 0;+ try {+ var r = { DetermineComponentFrameRoot: function() {+ try {+ if (t) {+ var n = function() {+ throw Error();+ };+ if (Object.defineProperty(n.prototype, "props", { set: function() {+ throw Error();+ } }), typeof Reflect == "object" && Reflect.construct) {+ try {+ Reflect.construct(n, []);+ } catch (e) {+ var r = e;+ }+ Reflect.construct(e, [], n);+ } else {+ try {+ n.call();+ } catch (e) {+ r = e;+ }+ n = !1;+ try {+ var i = Object.getOwnPropertyDescriptor(e.prototype, "props");+ Object.defineProperty(e.prototype, "props", {+ configurable: !0,+ set: function() {+ throw Error();+ }+ }), n = !0, new e();+ } finally {+ n && (i === void 0 ? delete e.prototype.props : Object.defineProperty(e.prototype, "props", i));+ }+ }+ } else {+ try {+ throw Error();+ } catch (e) {+ r = e;+ }+ (n = e()) && typeof n.catch == "function" && n.catch(function() {});+ }+ } catch (e) {+ if (e && r && typeof e.stack == "string") return [e.stack, r.stack];+ }+ return [null, null];+ } };+ r.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";+ var i = Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot, "name");+ i && i.configurable && Object.defineProperty(r.DetermineComponentFrameRoot, "name", { value: "DetermineComponentFrameRoot" });+ var a = r.DetermineComponentFrameRoot(), o = a[0], s = a[1];+ if (o && s) {+ var c = o.split("\n"), l = s.split("\n");+ for (i = r = 0; r < c.length && !c[r].includes("DetermineComponentFrameRoot");) r++;+ for (; i < l.length && !l[i].includes("DetermineComponentFrameRoot");) i++;+ if (r === c.length || i === l.length) for (r = c.length - 1, i = l.length - 1; 1 <= r && 0 <= i && c[r] !== l[i];) i--;+ for (; 1 <= r && 0 <= i; r--, i--) if (c[r] !== l[i]) {+ if (r !== 1 || i !== 1) do+ if (r--, i--, 0 > i || c[r] !== l[i]) {+ var u = "\n" + c[r].replace(" at new ", " at ");+ return e.displayName && u.includes("<anonymous>") && (u = u.replace("<anonymous>", e.displayName)), u;+ }+ while (1 <= r && 0 <= i);+ break;+ }+ }+ } finally {+ Oe = !1, Error.prepareStackTrace = n;+ }+ return (n = e ? e.displayName || e.name : "") ? De(n) : "";+ }+ function Ae(e, t) {+ switch (e.tag) {+ case 26:+ case 27:+ case 5: return De(e.type);+ case 16: return De("Lazy");+ case 13: return e.child !== t && t !== null ? De("Suspense Fallback") : De("Suspense");+ case 19: return De("SuspenseList");+ case 0:+ case 15: return ke(e.type, !1);+ case 11: return ke(e.type.render, !1);+ case 1: return ke(e.type, !0);+ case 31: return De("Activity");+ case 30: return De("ViewTransition");+ default: return "";+ }+ }+ function je(e) {+ try {+ var t = "", n = null;+ do+ t += Ae(e, n), n = e, e = e.return;+ while (e);+ return t;+ } catch (e) {+ return "\nError generating stack: " + e.message + "\n" + e.stack;+ }+ }+ var Me = Object.prototype.hasOwnProperty, Ne = t.unstable_scheduleCallback, Pe = t.unstable_cancelCallback, Fe = t.unstable_shouldYield, Ie = t.unstable_requestPaint, Le = t.unstable_now, Re = t.unstable_getCurrentPriorityLevel, ze = t.unstable_ImmediatePriority, Be = t.unstable_UserBlockingPriority, Ve = t.unstable_NormalPriority, He = t.unstable_LowPriority, Ue = t.unstable_IdlePriority, We = t.log, Ge = t.unstable_setDisableYieldValue, Ke = null, qe = null;+ function Je(e) {+ if (typeof We == "function" && Ge(e), qe && typeof qe.setStrictMode == "function") try {+ qe.setStrictMode(Ke, e);+ } catch {}+ }+ var Ye = Math.clz32 ? Math.clz32 : Qe, Xe = Math.log, Ze = Math.LN2;+ function Qe(e) {+ return e >>>= 0, e === 0 ? 32 : 31 - (Xe(e) / Ze | 0) | 0;+ }+ var $e = 256, et = 262144, tt = 4194304;+ function nt(e) {+ var t = e & 42;+ if (t !== 0) return t;+ switch (e & -e) {+ case 1: return 1;+ case 2: return 2;+ case 4: return 4;+ case 8: return 8;+ case 16: return 16;+ case 32: return 32;+ case 64: return 64;+ case 128: return 128;+ case 256:+ case 512:+ case 1024:+ case 2048:+ case 4096:+ case 8192:+ case 16384:+ case 32768:+ case 65536:+ case 131072: return e & -e;+ case 262144:+ case 524288:+ case 1048576:+ case 2097152: return e & 3932160;+ case 4194304:+ case 8388608:+ case 16777216:+ case 33554432: return e & 62914560;+ case 67108864: return 67108864;+ case 134217728: return 134217728;+ case 268435456: return 268435456;+ case 536870912: return 536870912;+ case 1073741824: return 0;+ default: return e;+ }+ }+ function rt(e, t, n) {+ var r = e.pendingLanes;+ if (r === 0) return 0;+ var i = 0, a = e.suspendedLanes, o = e.pingedLanes;+ e = e.warmLanes;+ var s = r & 134217727;+ return s === 0 ? (s = r & ~a, s === 0 ? o === 0 ? n || (n = r & ~e, n !== 0 && (i = nt(n))) : i = nt(o) : i = nt(s)) : (r = s & ~a, r === 0 ? (o &= s, o === 0 ? n || (n = s & ~e, n !== 0 && (i = nt(n))) : i = nt(o)) : i = nt(r)), i === 0 ? 0 : t !== 0 && t !== i && (t & a) === 0 && (a = i & -i, n = t & -t, a >= n || a === 32 && n & 4194048) ? t : i;+ }+ function z(e, t) {+ return (e.pendingLanes & ~(e.suspendedLanes & ~e.pingedLanes) & t) === 0;+ }+ function it(e, t) {+ t & 8 && (t |= t & 32);+ var n = e.entangledLanes;+ if (n !== 0) for (e = e.entanglements, n &= t; 0 < n;) {+ var r = 31 - Ye(n), i = 1 << r;+ t |= e[r], n &= ~i;+ }+ return t;+ }+ function at(e, t) {+ switch (e) {+ case 1:+ case 2:+ case 4:+ case 8:+ case 64: return t + 250;+ case 16:+ case 32:+ case 128:+ case 256:+ case 512:+ case 1024:+ case 2048:+ case 4096:+ case 8192:+ case 16384:+ case 32768:+ case 65536:+ case 131072:+ case 262144:+ case 524288:+ case 1048576:+ case 2097152: return t + 5e3;+ case 4194304:+ case 8388608:+ case 16777216:+ case 33554432: return -1;+ case 67108864:+ case 134217728:+ case 268435456:+ case 536870912:+ case 1073741824: return -1;+ default: return -1;+ }+ }+ function ot() {+ var e = tt;+ return tt <<= 1, !(tt & 62914560) && (tt = 4194304), e;+ }+ function st(e) {+ for (var t = [], n = 0; 31 > n; n++) t.push(e);+ return t;+ }+ function ct(e, t) {+ e.pendingLanes |= t, t !== 268435456 && (e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0);+ }+ function lt(e, t, n, r, i, a) {+ var o = e.pendingLanes;+ e.pendingLanes = n, e.suspendedLanes = 0, e.pingedLanes = 0, e.warmLanes = 0, e.expiredLanes &= n, e.entangledLanes &= n, e.errorRecoveryDisabledLanes &= n, e.shellSuspendCounter = 0;+ var s = e.entanglements, c = e.expirationTimes, l = e.hiddenUpdates;+ for (n = o & ~n; 0 < n;) {+ var u = 31 - Ye(n), d = 1 << u;+ s[u] = 0, c[u] = -1;+ var f = l[u];+ if (f !== null) for (l[u] = null, u = 0; u < f.length; u++) {+ var p = f[u];+ p !== null && (p.lane &= -536870913);+ }+ n &= ~d;+ }+ r !== 0 && ut(e, r, 0), a !== 0 && i === 0 && e.tag !== 0 && (e.suspendedLanes |= a & ~(o & ~t));+ }+ function ut(e, t, n) {+ e.pendingLanes |= t, e.suspendedLanes &= ~t;+ var r = 31 - Ye(t);+ e.entangledLanes |= t, e.entanglements[r] = e.entanglements[r] | 1073741824 | n & 261930;+ }+ function dt(e, t) {+ var n = e.entangledLanes |= t;+ for (e = e.entanglements; n;) {+ var r = 31 - Ye(n), i = 1 << r;+ i & t | e[r] & t && (e[r] |= t), n &= ~i;+ }+ }+ function ft(e, t) {+ var n = t & -t;+ return n = n & 42 ? 1 : pt(n), (n & (e.suspendedLanes | t)) === 0 ? n : 0;+ }+ function pt(e) {+ switch (e) {+ case 2:+ e = 1;+ break;+ case 8:+ e = 4;+ break;+ case 32:+ e = 16;+ break;+ case 256:+ case 512:+ case 1024:+ case 2048:+ case 4096:+ case 8192:+ case 16384:+ case 32768:+ case 65536:+ case 131072:+ case 262144:+ case 524288:+ case 1048576:+ case 2097152:+ case 4194304:+ case 8388608:+ case 16777216:+ case 33554432:+ e = 128;+ break;+ case 268435456:+ e = 134217728;+ break;+ default: e = 0;+ }+ return e;+ }+ function mt(e) {+ return e &= -e, 2 < e ? 8 < e ? e & 134217727 ? 32 : 268435456 : 8 : 2;+ }+ function ht() {+ var e = de.p;+ return e === 0 ? (e = window.event, e === void 0 ? 32 : Mh(e.type)) : e;+ }+ function gt(e, t) {+ var n = de.p;+ try {+ return de.p = e, t();+ } finally {+ de.p = n;+ }+ }+ var _t = Math.random().toString(36).slice(2), vt = "__reactFiber$" + _t, yt = "__reactProps$" + _t, bt = "__reactContainer$" + _t, xt = "__reactEvents$" + _t, St = "__reactListeners$" + _t, Ct = "__reactHandles$" + _t, wt = "__reactResources$" + _t, Tt = "__reactMarker$" + _t, Et = "__reactLoad$" + _t;+ function Dt(e) {+ delete e[vt], delete e[yt], delete e[St], delete e[Ct];+ }+ function kt(e) {+ var t;+ if (t = e[vt]) return t;+ for (var n = e.parentNode; n;) {+ if (t = n[bt] || n[vt]) {+ if (n = t.alternate, t.child !== null || n !== null && n.child !== null) for (e = Sm(e); e !== null;) {+ if (n = e[vt]) return n;+ e = Sm(e);+ }+ return t;+ }+ e = n, n = e.parentNode;+ }+ return null;+ }+ function jt(e) {+ if (e = e[vt] || e[bt]) {+ var t = e.tag;+ if (t === 5 || t === 6 || t === 13 || t === 31 || t === 26 || t === 27 || t === 3) return e;+ }+ return null;+ }+ function Mt(e) {+ var t = e.tag;+ if (t === 5 || t === 26 || t === 27 || t === 6) return e.stateNode;+ throw Error(i(33));+ }+ function B(e) {+ var t = e[wt];+ return t ||= e[wt] = {+ hoistableStyles: /* @__PURE__ */ new Map(),+ hoistableScripts: /* @__PURE__ */ new Map()+ }, t;+ }+ function Nt(e) {+ e[Tt] = !0;+ }+ function Pt(e) {+ e[Et] = void 0;+ }+ var Ft = /* @__PURE__ */ new Set(), It = {};+ function Lt(e, t) {+ Rt(e, t), Rt(e + "Capture", t);+ }+ function Rt(e, t) {+ for (It[e] = t, e = 0; e < t.length; e++) Ft.add(t[e]);+ }+ var zt = RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"), Bt = {}, Vt = {};+ function Ht(e) {+ return Me.call(Vt, e) ? !0 : Me.call(Bt, e) ? !1 : zt.test(e) ? Vt[e] = !0 : (Bt[e] = !0, !1);+ }+ var Ut = !1;+ function Wt() {+ var e = Ut;+ return Ut = !1, e;+ }+ function Gt(e, t, n) {+ if (Ht(t)) {+ if (n === null) e.removeAttribute(t);+ else {+ switch (typeof n) {+ case "undefined":+ case "function":+ case "symbol":+ e.removeAttribute(t);+ return;+ case "boolean":+ var r = t.toLowerCase().slice(0, 5);+ if (r !== "data-" && r !== "aria-") {+ e.removeAttribute(t);+ return;+ }+ }+ e.setAttribute(t, n);+ }+ }+ }+ function Kt(e, t, n) {+ if (n === null) e.removeAttribute(t);+ else {+ switch (typeof n) {+ case "undefined":+ case "function":+ case "symbol":+ case "boolean":+ e.removeAttribute(t);+ return;+ }+ e.setAttribute(t, n);+ }+ }+ function qt(e, t, n, r) {+ if (r === null) e.removeAttribute(n);+ else {+ switch (typeof r) {+ case "undefined":+ case "function":+ case "symbol":+ case "boolean":+ e.removeAttribute(n);+ return;+ }+ e.setAttributeNS(t, n, r);+ }+ }+ function Jt(e) {+ switch (typeof e) {+ case "bigint":+ case "boolean":+ case "number":+ case "string":+ case "undefined": return e;+ case "object": return e;+ default: return "";+ }+ }+ function Yt(e) {+ var t = e.type;+ return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio");+ }+ function Xt(e, t, n) {+ var r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t);+ if (!e.hasOwnProperty(t) && r !== void 0 && typeof r.get == "function" && typeof r.set == "function") {+ var i = r.get, a = r.set;+ return Object.defineProperty(e, t, {+ configurable: !0,+ get: function() {+ return i.call(this);+ },+ set: function(e) {+ n = "" + e, a.call(this, e);+ }+ }), Object.defineProperty(e, t, { enumerable: r.enumerable }), {+ getValue: function() {+ return n;+ },+ setValue: function(e) {+ n = "" + e;+ },+ stopTracking: function() {+ e._valueTracker = null, delete e[t];+ }+ };+ }+ }+ function Zt(e) {+ if (!e._valueTracker) {+ var t = Yt(e) ? "checked" : "value";+ e._valueTracker = Xt(e, t, "" + e[t]);+ }+ }+ function Qt(e) {+ if (!e) return !1;+ var t = e._valueTracker;+ if (!t) return !0;+ var n = t.getValue(), r = "";+ return e && (r = Yt(e) ? e.checked ? "true" : "false" : e.value), e = r, e !== n && (t.setValue(e), !0);+ }+ var $t = /[\n"\\]/g;+ function en(e) {+ return e.replace($t, function(e) {+ return "\\" + e.charCodeAt(0).toString(16) + " ";+ });+ }+ function tn(e, t, n, r, i, a, o, s) {+ e.name = "", o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" ? e.type = o : e.removeAttribute("type"), t == null ? o !== "submit" && o !== "reset" || e.removeAttribute("value") : o === "number" ? (t === 0 && e.value === "" || e.value != t) && (e.value = "" + Jt(t)) : e.value !== "" + Jt(t) && (e.value = "" + Jt(t)), t == null ? n == null ? r != null && e.removeAttribute("value") : rn(e, Jt(n)) : o === "number" && e.value == t ? rn(e, Jt(e.value)) : rn(e, Jt(t)), i == null && a != null && (e.defaultChecked = !!a), i != null && (e.checked = i && typeof i != "function" && typeof i != "symbol"), s != null && typeof s != "function" && typeof s != "symbol" && typeof s != "boolean" ? e.name = "" + Jt(s) : e.removeAttribute("name");+ }+ function nn(e, t, n, r, i, a, o, s) {+ if (a != null && typeof a != "function" && typeof a != "symbol" && typeof a != "boolean" && (e.type = a), t != null || n != null) {+ if (!(a !== "submit" && a !== "reset" || t != null)) {+ Zt(e);+ return;+ }+ n = n == null ? "" : "" + Jt(n), t = t == null ? n : "" + Jt(t), s || t === e.value || (e.value = t), e.defaultValue = t;+ }+ r ??= i, r = typeof r != "function" && typeof r != "symbol" && !!r, e.checked = s ? e.checked : !!r, e.defaultChecked = !!r, o != null && typeof o != "function" && typeof o != "symbol" && typeof o != "boolean" && (e.name = o), Zt(e);+ }+ function rn(e, t) {+ e.defaultValue !== "" + t && (e.defaultValue = "" + t);+ }+ function an(e, t, n, r) {+ if (e = e.options, t) {+ t = {};+ for (var i = 0; i < n.length; i++) t["$" + n[i]] = !0;+ for (n = 0; n < e.length; n++) i = t.hasOwnProperty("$" + e[n].value), e[n].selected !== i && (e[n].selected = i), i && r && (e[n].defaultSelected = !0);+ } else {+ for (n = "" + Jt(n), t = null, i = 0; i < e.length; i++) {+ if (e[i].value === n) {+ e[i].selected = !0, r && (e[i].defaultSelected = !0);+ return;+ }+ t !== null || e[i].disabled || (t = e[i]);+ }+ t !== null && (t.selected = !0);+ }+ }+ function on(e, t, n) {+ if (t != null && (t = "" + Jt(t), t !== e.value && (e.value = t), n == null)) {+ e.defaultValue !== t && (e.defaultValue = t);+ return;+ }+ e.defaultValue = n == null ? "" : "" + Jt(n);+ }+ function sn(e, t, n, r) {+ if (t == null) {+ if (r != null) {+ if (n != null) throw Error(i(92));+ if (ue(r)) {+ if (1 < r.length) throw Error(i(93));+ r = r[0];+ }+ n = r;+ }+ n ??= "", t = n;+ }+ n = Jt(t), e.defaultValue = n, r = e.textContent, r === n && r !== "" && r !== null && (e.value = r), Zt(e);+ }+ function cn(e, t) {+ if (t) {+ var n = e.firstChild;+ if (n && n === e.lastChild && n.nodeType === 3) {+ n.nodeValue = t;+ return;+ }+ }+ e.textContent = t;+ }+ var ln = new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));+ function un(e, t, n) {+ var r = t.indexOf("--") === 0;+ n == null || typeof n == "boolean" || n === "" ? r ? e.setProperty(t, "") : t === "float" ? e.cssFloat = "" : e[t] = "" : r ? e.setProperty(t, n) : typeof n != "number" || n === 0 || ln.has(t) ? t === "float" ? e.cssFloat = n : e[t] = ("" + n).trim() : e[t] = n + "px";+ }+ function dn(e, t, n) {+ if (t != null && typeof t != "object") throw Error(i(62));+ if (e = e.style, n != null) {+ for (var r in n) !n.hasOwnProperty(r) || t != null && t.hasOwnProperty(r) || (r.indexOf("--") === 0 ? e.setProperty(r, "") : r === "float" ? e.cssFloat = "" : e[r] = "", Ut = !0);+ for (var a in t) r = t[a], t.hasOwnProperty(a) && n[a] !== r && (un(e, a, r), Ut = !0);+ } else for (var o in t) t.hasOwnProperty(o) && un(e, o, t[o]);+ }+ function fn(e) {+ if (e.indexOf("-") === -1) return !1;+ switch (e) {+ case "annotation-xml":+ case "color-profile":+ case "font-face":+ case "font-face-src":+ case "font-face-uri":+ case "font-face-format":+ case "font-face-name":+ case "missing-glyph": return !1;+ default: return !0;+ }+ }+ var pn = /* @__PURE__ */ new Map([+ ["acceptCharset", "accept-charset"],+ ["htmlFor", "for"],+ ["httpEquiv", "http-equiv"],+ ["crossOrigin", "crossorigin"],+ ["accentHeight", "accent-height"],+ ["alignmentBaseline", "alignment-baseline"],+ ["arabicForm", "arabic-form"],+ ["baselineShift", "baseline-shift"],+ ["capHeight", "cap-height"],+ ["clipPath", "clip-path"],+ ["clipRule", "clip-rule"],+ ["colorInterpolation", "color-interpolation"],+ ["colorInterpolationFilters", "color-interpolation-filters"],+ ["colorProfile", "color-profile"],+ ["colorRendering", "color-rendering"],+ ["dominantBaseline", "dominant-baseline"],+ ["enableBackground", "enable-background"],+ ["fillOpacity", "fill-opacity"],+ ["fillRule", "fill-rule"],+ ["floodColor", "flood-color"],+ ["floodOpacity", "flood-opacity"],+ ["fontFamily", "font-family"],+ ["fontSize", "font-size"],+ ["fontSizeAdjust", "font-size-adjust"],+ ["fontStretch", "font-stretch"],+ ["fontStyle", "font-style"],+ ["fontVariant", "font-variant"],+ ["fontWeight", "font-weight"],+ ["glyphName", "glyph-name"],+ ["glyphOrientationHorizontal", "glyph-orientation-horizontal"],+ ["glyphOrientationVertical", "glyph-orientation-vertical"],+ ["horizAdvX", "horiz-adv-x"],+ ["horizOriginX", "horiz-origin-x"],+ ["imageRendering", "image-rendering"],+ ["letterSpacing", "letter-spacing"],+ ["lightingColor", "lighting-color"],+ ["markerEnd", "marker-end"],+ ["markerMid", "marker-mid"],+ ["markerStart", "marker-start"],+ ["maskType", "mask-type"],+ ["overlinePosition", "overline-position"],+ ["overlineThickness", "overline-thickness"],+ ["paintOrder", "paint-order"],+ ["panose-1", "panose-1"],+ ["pointerEvents", "pointer-events"],+ ["renderingIntent", "rendering-intent"],+ ["shapeRendering", "shape-rendering"],+ ["stopColor", "stop-color"],+ ["stopOpacity", "stop-opacity"],+ ["strikethroughPosition", "strikethrough-position"],+ ["strikethroughThickness", "strikethrough-thickness"],+ ["strokeDasharray", "stroke-dasharray"],+ ["strokeDashoffset", "stroke-dashoffset"],+ ["strokeLinecap", "stroke-linecap"],+ ["strokeLinejoin", "stroke-linejoin"],+ ["strokeMiterlimit", "stroke-miterlimit"],+ ["strokeOpacity", "stroke-opacity"],+ ["strokeWidth", "stroke-width"],+ ["textAnchor", "text-anchor"],+ ["textDecoration", "text-decoration"],+ ["textRendering", "text-rendering"],+ ["transformOrigin", "transform-origin"],+ ["underlinePosition", "underline-position"],+ ["underlineThickness", "underline-thickness"],+ ["unicodeBidi", "unicode-bidi"],+ ["unicodeRange", "unicode-range"],+ ["unitsPerEm", "units-per-em"],+ ["vAlphabetic", "v-alphabetic"],+ ["vHanging", "v-hanging"],+ ["vIdeographic", "v-ideographic"],+ ["vMathematical", "v-mathematical"],+ ["vectorEffect", "vector-effect"],+ ["vertAdvY", "vert-adv-y"],+ ["vertOriginX", "vert-origin-x"],+ ["vertOriginY", "vert-origin-y"],+ ["wordSpacing", "word-spacing"],+ ["writingMode", "writing-mode"],+ ["xmlnsXlink", "xmlns:xlink"],+ ["xHeight", "x-height"]+ ]), mn = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;+ function hn(e) {+ return mn.test("" + e) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : e;+ }+ function gn() {}+ var _n = null;+ function vn(e) {+ return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;+ }+ var yn = null, bn = null;+ function xn(e) {+ var t = jt(e);+ if (t && (e = t.stateNode)) {+ var n = e[yt] || null;+ a: switch (e = t.stateNode, t.type) {+ case "input":+ if (tn(e, n.value, n.defaultValue, n.defaultValue, n.checked, n.defaultChecked, n.type, n.name), t = n.name, n.type === "radio" && t != null) {+ for (n = e; n.parentNode;) n = n.parentNode;+ for (n = n.querySelectorAll("input[name=\"" + en("" + t) + "\"][type=\"radio\"]"), t = 0; t < n.length; t++) {+ var r = n[t];+ if (r !== e && r.form === e.form) {+ var a = r[yt] || null;+ if (!a) throw Error(i(90));+ tn(r, a.value, a.defaultValue, a.defaultValue, a.checked, a.defaultChecked, a.type, a.name);+ }+ }+ for (t = 0; t < n.length; t++) r = n[t], r.form === e.form && Qt(r);+ }+ break a;+ case "textarea":+ on(e, n.value, n.defaultValue);+ break a;+ case "select": t = n.value, t != null && an(e, !!n.multiple, t, !1);+ }+ }+ }+ var Sn = !1;+ function Cn(e, t, n) {+ if (Sn) return e(t, n);+ Sn = !0;+ try {+ return e(t);+ } finally {+ if (Sn = !1, (yn !== null || bn !== null) && (qd(), yn && (t = yn, e = bn, bn = yn = null, xn(t), e))) for (t = 0; t < e.length; t++) xn(e[t]);+ }+ }+ function wn(e, t) {+ var n = e.stateNode;+ if (n === null) return null;+ var r = n[yt] || null;+ if (r === null) return null;+ n = r[t];+ a: switch (t) {+ case "onClick":+ case "onClickCapture":+ case "onDoubleClick":+ case "onDoubleClickCapture":+ case "onMouseDown":+ case "onMouseDownCapture":+ case "onMouseMove":+ case "onMouseMoveCapture":+ case "onMouseUp":+ case "onMouseUpCapture":+ case "onMouseEnter":+ (r = !r.disabled) || (e = e.type, r = e !== "button" && e !== "input" && e !== "select" && e !== "textarea"), e = !r;+ break a;+ default: e = !1;+ }+ if (e) return null;+ if (n && typeof n != "function") throw Error(i(231, t, typeof n));+ return n;+ }+ var Tn = !(typeof window > "u" || window.document === void 0 || window.document.createElement === void 0), En = !1;+ if (Tn) try {+ var Dn = {};+ Object.defineProperty(Dn, "passive", { get: function() {+ En = !0;+ } }), window.addEventListener("test", Dn, Dn), window.removeEventListener("test", Dn, Dn);+ } catch {+ En = !1;+ }+ var On = null, kn = null, An = null;+ function jn() {+ if (An) return An;+ var e, t = kn, n = t.length, r, i = "value" in On ? On.value : On.textContent, a = i.length;+ for (e = 0; e < n && t[e] === i[e]; e++);+ var o = n - e;+ for (r = 1; r <= o && t[n - r] === i[a - r]; r++);+ return An = i.slice(e, 1 < r ? 1 - r : void 0);+ }+ function Mn(e) {+ var t = e.keyCode;+ return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0;+ }+ function Nn() {+ return !0;+ }+ function Pn() {+ return !1;+ }+ function Fn(e) {+ function t(t, n, r, i, a) {+ for (var o in this._reactName = t, this._targetInst = r, this.type = n, this.nativeEvent = i, this.target = a, this.currentTarget = null, e) e.hasOwnProperty(o) && (t = e[o], this[o] = t ? t(i) : i[o]);+ return this.isDefaultPrevented = (i.defaultPrevented == null ? !1 === i.returnValue : i.defaultPrevented) ? Nn : Pn, this.isPropagationStopped = Pn, this;+ }+ return w(t.prototype, {+ preventDefault: function() {+ this.defaultPrevented = !0;+ var e = this.nativeEvent;+ e && (e.preventDefault ? e.preventDefault() : typeof e.returnValue != "unknown" && (e.returnValue = !1), this.isDefaultPrevented = Nn);+ },+ stopPropagation: function() {+ var e = this.nativeEvent;+ e && (e.stopPropagation ? e.stopPropagation() : typeof e.cancelBubble != "unknown" && (e.cancelBubble = !0), this.isPropagationStopped = Nn);+ },+ persist: function() {},+ isPersistent: Nn+ }), t;+ }+ var In = {+ eventPhase: 0,+ bubbles: 0,+ cancelable: 0,+ timeStamp: function(e) {+ return e.timeStamp || Date.now();+ },+ defaultPrevented: 0,+ isTrusted: 0+ }, Ln = Fn(In), Rn = w({}, In, {+ view: 0,+ detail: 0+ }), zn = Fn(Rn), Bn, Vn, Hn, Un = w({}, Rn, {+ screenX: 0,+ screenY: 0,+ clientX: 0,+ clientY: 0,+ pageX: 0,+ pageY: 0,+ ctrlKey: 0,+ shiftKey: 0,+ altKey: 0,+ metaKey: 0,+ getModifierState: er,+ button: 0,+ buttons: 0,+ relatedTarget: function(e) {+ return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;+ },+ movementX: function(e) {+ return "movementX" in e ? e.movementX : (e !== Hn && (Hn && e.type === "mousemove" ? (Bn = e.screenX - Hn.screenX, Vn = e.screenY - Hn.screenY) : Vn = Bn = 0, Hn = e), Bn);+ },+ movementY: function(e) {+ return "movementY" in e ? e.movementY : Vn;+ }+ }), Wn = Fn(Un), Gn = Fn(w({}, Un, { dataTransfer: 0 })), Kn = Fn(w({}, Rn, { relatedTarget: 0 })), qn = Fn(w({}, In, {+ animationName: 0,+ elapsedTime: 0,+ pseudoElement: 0+ })), Jn = Fn(w({}, In, { clipboardData: function(e) {+ return "clipboardData" in e ? e.clipboardData : window.clipboardData;+ } })), Yn = Fn(w({}, In, { data: 0 })), Xn = {+ Esc: "Escape",+ Spacebar: " ",+ Left: "ArrowLeft",+ Up: "ArrowUp",+ Right: "ArrowRight",+ Down: "ArrowDown",+ Del: "Delete",+ Win: "OS",+ Menu: "ContextMenu",+ Apps: "ContextMenu",+ Scroll: "ScrollLock",+ MozPrintableKey: "Unidentified"+ }, Zn = {+ 8: "Backspace",+ 9: "Tab",+ 12: "Clear",+ 13: "Enter",+ 16: "Shift",+ 17: "Control",+ 18: "Alt",+ 19: "Pause",+ 20: "CapsLock",+ 27: "Escape",+ 32: " ",+ 33: "PageUp",+ 34: "PageDown",+ 35: "End",+ 36: "Home",+ 37: "ArrowLeft",+ 38: "ArrowUp",+ 39: "ArrowRight",+ 40: "ArrowDown",+ 45: "Insert",+ 46: "Delete",+ 112: "F1",+ 113: "F2",+ 114: "F3",+ 115: "F4",+ 116: "F5",+ 117: "F6",+ 118: "F7",+ 119: "F8",+ 120: "F9",+ 121: "F10",+ 122: "F11",+ 123: "F12",+ 144: "NumLock",+ 145: "ScrollLock",+ 224: "Meta"+ }, Qn = {+ Alt: "altKey",+ Control: "ctrlKey",+ Meta: "metaKey",+ Shift: "shiftKey"+ };+ function $n(e) {+ var t = this.nativeEvent;+ return t.getModifierState ? t.getModifierState(e) : (e = Qn[e]) ? !!t[e] : !1;+ }+ function er() {+ return $n;+ }+ var tr = Fn(w({}, Rn, {+ key: function(e) {+ if (e.key) {+ var t = Xn[e.key] || e.key;+ if (t !== "Unidentified") return t;+ }+ return e.type === "keypress" ? (e = Mn(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? Zn[e.keyCode] || "Unidentified" : "";+ },+ code: 0,+ location: 0,+ ctrlKey: 0,+ shiftKey: 0,+ altKey: 0,+ metaKey: 0,+ repeat: 0,+ locale: 0,+ getModifierState: er,+ charCode: function(e) {+ return e.type === "keypress" ? Mn(e) : 0;},- conflictingClassGroupModifiers: { "font-size": ["leading"] },- postfixLookupClassGroups: ["container-type"],- orderSensitiveModifiers: [- "*",- "**",- "after",- "backdrop",- "before",- "details-content",- "file",- "first-letter",- "first-line",- "marker",- "placeholder",- "selection"- ]+ keyCode: function(e) {+ return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;+ },+ which: function(e) {+ return e.type === "keypress" ? Mn(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;+ }+ })), nr = Fn(w({}, Un, {+ pointerId: 0,+ width: 0,+ height: 0,+ pressure: 0,+ tangentialPressure: 0,+ tiltX: 0,+ tiltY: 0,+ twist: 0,+ pointerType: 0,+ isPrimary: 0+ })), rr = Fn(w({}, In, { submitter: 0 })), ir = Fn(w({}, Rn, {+ touches: 0,+ targetTouches: 0,+ changedTouches: 0,+ altKey: 0,+ metaKey: 0,+ ctrlKey: 0,+ shiftKey: 0,+ getModifierState: er+ })), ar = Fn(w({}, In, {+ propertyName: 0,+ elapsedTime: 0,+ pseudoElement: 0+ })), or = Fn(w({}, Un, {+ deltaX: function(e) {+ return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;+ },+ deltaY: function(e) {+ return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0;+ },+ deltaZ: 0,+ deltaMode: 0+ })), sr = Fn(w({}, In, {+ newState: 0,+ oldState: 0,+ source: 0+ })), cr = [+ 9,+ 13,+ 27,+ 32+ ], lr = Tn && "CompositionEvent" in window, ur = null;+ Tn && "documentMode" in document && (ur = document.documentMode);+ var dr = Tn && "TextEvent" in window && !ur, fr = Tn && (!lr || ur && 8 < ur && 11 >= ur), pr = " ", mr = !1;+ function hr(e, t) {+ switch (e) {+ case "keyup": return cr.indexOf(t.keyCode) !== -1;+ case "keydown": return t.keyCode !== 229;+ case "keypress":+ case "mousedown":+ case "focusout": return !0;+ default: return !1;+ }+ }+ function gr(e) {+ return e = e.detail, typeof e == "object" && "data" in e ? e.data : null;+ }+ var _r = !1;+ function vr(e, t) {+ switch (e) {+ case "compositionend": return gr(t);+ case "keypress": return t.which === 32 ? (mr = !0, pr) : null;+ case "textInput": return e = t.data, e === pr && mr ? null : e;+ default: return null;+ }+ }+ function yr(e, t) {+ if (_r) return e === "compositionend" || !lr && hr(e, t) ? (e = jn(), An = kn = On = null, _r = !1, e) : null;+ switch (e) {+ case "paste": return null;+ case "keypress":+ if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {+ if (t.char && 1 < t.char.length) return t.char;+ if (t.which) return String.fromCharCode(t.which);+ }+ return null;+ case "compositionend": return fr && t.locale !== "ko" ? null : t.data;+ default: return null;+ }+ }+ var br = {+ color: !0,+ date: !0,+ datetime: !0,+ "datetime-local": !0,+ email: !0,+ month: !0,+ number: !0,+ password: !0,+ range: !0,+ search: !0,+ tel: !0,+ text: !0,+ time: !0,+ url: !0,+ week: !0};-}, poe = (e, { cacheSize: t, prefix: n, experimentalParseClassName: r, extend: i = {}, override: a = {} }) => (_E(e, "cacheSize", t), _E(e, "prefix", n), _E(e, "experimentalParseClassName", r), vE(e.theme, a.theme), vE(e.classGroups, a.classGroups), vE(e.conflictingClassGroups, a.conflictingClassGroups), vE(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), _E(e, "postfixLookupClassGroups", a.postfixLookupClassGroups), _E(e, "orderSensitiveModifiers", a.orderSensitiveModifiers), yE(e.theme, i.theme), yE(e.classGroups, i.classGroups), yE(e.conflictingClassGroups, i.conflictingClassGroups), yE(e.conflictingClassGroupModifiers, i.conflictingClassGroupModifiers), bE(e, i, "postfixLookupClassGroups"), bE(e, i, "orderSensitiveModifiers"), e), _E = (e, t, n) => {- n !== void 0 && (e[t] = n);-}, vE = (e, t) => {- if (t) for (let n in t) _E(e, n, t[n]);-}, yE = (e, t) => {- if (t) for (let n in t) bE(e, t, n);-}, bE = (e, t, n) => {- let r = t[n];- r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);-}, moe = (e, ...t) => typeof e == "function" ? HT(gE, e, ...t) : HT(() => poe(gE(), e), ...t), hoe = [- "large-title",- "display-1",- "display-2",- "display-3",- "display-4",- "title-1",- "title-2",- "title-3",- "headline",- "body",- "body-2",- "caption-1",- "caption-2"-], goe = [- "regular",- "medium",- "semibold",- "bold"-], xE = moe({ extend: { classGroups: { "font-size": [{ text: hoe.flatMap((e) => goe.map((t) => `${e}-${t}`)) }] } } });-function SE(e) {- return e;-}-//#endregion-//#region src/react/boardui/components/base/badges/chip.tsx-var CE = SE({- base: "inline-flex items-center justify-center rounded-md px-1.5 whitespace-nowrap transition-[padding,font-size] duration-200 ease",- variant: {- bold: "py-0.5 text-body-medium",- subtle: "py-1 text-body-medium",- caption: "py-1 text-caption-1-medium"- },- color: {- lime: "bg-status-lime-background text-status-lime-text",- rose: "bg-status-rose-background text-status-rose-text",- yellow: "bg-status-yellow-background text-status-yellow-text",- cyan: "bg-status-cyan-background text-status-cyan-text",- blue: "bg-status-blue-background text-status-blue-text",- purple: "bg-status-purple-background text-status-purple-text",- neutral: "bg-background-tertiary-default text-text-secondary",- gray: "bg-background-secondary-default text-text-primary",- soft: "bg-background-secondary-default text-text-secondary"+ function xr(e) {+ var t = e && e.nodeName && e.nodeName.toLowerCase();+ return t === "input" ? !!br[e.type] : t === "textarea";+ }+ function Sr(e, t, n, r) {+ yn ? bn ? bn.push(r) : bn = [r] : yn = r, t = ip(t, "onChange"), 0 < t.length && (n = new Ln("onChange", "change", null, n, r), e.push({+ event: n,+ listeners: t+ }));+ }+ var Cr = null, wr = null;+ function Tr(e) {+ Xf(e, 0);+ }+ function Er(e) {+ if (Qt(Mt(e))) return e;+ }+ function Dr(e, t) {+ if (e === "change") return t;+ }+ var Or = !1;+ if (Tn) {+ var kr;+ if (Tn) {+ var Ar = "oninput" in document;+ if (!Ar) {+ var jr = document.createElement("div");+ jr.setAttribute("oninput", "return;"), Ar = typeof jr.oninput == "function";+ }+ kr = Ar;+ } else kr = !1;+ Or = kr && (!document.documentMode || 9 < document.documentMode);+ }+ function Mr() {+ Cr && (Cr.detachEvent("onpropertychange", Nr), wr = Cr = null);+ }+ function Nr(e) {+ if (e.propertyName === "value" && Er(wr)) {+ var t = [];+ Sr(t, wr, e, vn(e)), Cn(Tr, t);+ }+ }+ function Pr(e, t, n) {+ e === "focusin" ? (Mr(), Cr = t, wr = n, Cr.attachEvent("onpropertychange", Nr)) : e === "focusout" && Mr();+ }+ function Fr(e) {+ if (e === "selectionchange" || e === "keyup" || e === "keydown") return Er(wr);+ }+ function Ir(e, t) {+ if (e === "click") return Er(t);+ }+ function Lr(e, t) {+ if (e === "input" || e === "change") return Er(t);+ }+ function Rr(e, t) {+ return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;+ }+ var zr = typeof Object.is == "function" ? Object.is : Rr;+ function Br(e, t) {+ if (zr(e, t)) return !0;+ if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;+ var n = Object.keys(e), r = Object.keys(t);+ if (n.length !== r.length) return !1;+ for (r = 0; r < n.length; r++) {+ var i = n[r];+ if (!Me.call(t, i) || !zr(e[i], t[i])) return !1;+ }+ return !0;+ }+ function Vr(e) {+ if (e ||= typeof document < "u" ? document : void 0, e === void 0) return null;+ try {+ return e.activeElement || e.body;+ } catch {+ return e.body;+ }}-});-function wE({ variant: e = "bold", color: t = "neutral", className: n, ref: r, ...i }) {- return /* @__PURE__ */ (0, V.jsx)("span", {- ref: r,- className: xE(CE.base, CE.variant[e], CE.color[t], n),- ...i- });-}-//#endregion-//#region src/react/boardui/components/base/buttons/button.tsx-var TE = SE({- base: [- "inline-flex items-center justify-center gap-0.5 whitespace-nowrap overflow-hidden",- "font-sans select-none cursor-pointer",- "button-press-motion",- "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",- "disabled:cursor-not-allowed aria-disabled:cursor-not-allowed"- ].join(" "),- size: {- medium: "h-9 rounded-2lg p-2 text-body-medium",- small: "h-8 rounded-lg px-2 py-1.5 text-body-medium",- xs: "h-6 rounded-sm px-2 text-caption-1-semibold"- },- iconOnlySize: {- medium: "",- small: "size-8 p-0",- xs: "size-6 p-0"- },- icon: {- medium: "size-5 shrink-0",- small: "size-[18px] shrink-0",- xs: "size-3.5 shrink-0"- },- label: {- medium: "inline-flex items-center justify-center px-1 shrink-0",- small: "inline-flex items-center justify-center px-0.5 shrink-0",- xs: "inline-flex items-center justify-center px-0.5 shrink-0"- },- variant: {- primary: [- "bg-button-primary text-text-white shadow-xs",- "disabled:text-button-primary-disabled-foreground disabled:shadow-none",- "aria-disabled:text-button-primary-disabled-foreground aria-disabled:shadow-none"- ].join(" "),- danger: [- "bg-button-danger text-text-white shadow-xs",- "disabled:text-foreground-disabled-danger disabled:shadow-none",- "aria-disabled:text-foreground-disabled-danger aria-disabled:shadow-none"- ].join(" "),- secondary: [- "bg-background-primary-default text-text-primary",- "border border-border-button-default shadow-xs",- "hover:bg-background-primary-hover hover:border-border-button-hover",- "active:bg-background-primary-active active:border-border-button-active",- "disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-text-tertiary disabled:shadow-none",- "aria-disabled:bg-background-primary-disabled aria-disabled:border-border-button-default aria-disabled:text-text-tertiary aria-disabled:shadow-none"- ].join(" "),- ghost: [- "bg-button-ghost-background text-button-ghost-foreground",- "hover:bg-button-ghost-hover active:bg-button-ghost-active",- "disabled:bg-button-ghost-disabled disabled:text-button-ghost-disabled-foreground disabled:shadow-none",- "aria-disabled:bg-button-ghost-disabled aria-disabled:text-button-ghost-disabled-foreground aria-disabled:shadow-none"- ].join(" ")+ function Hr(e) {+ for (; e && e.firstChild;) e = e.firstChild;+ return e;}-});-function J({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, type: s = "button", ref: c, ...l }) {- return /* @__PURE__ */ (0, V.jsxs)("button", {- ref: c,- type: s,- className: xE(TE.base, TE.size[t], TE.variant[e], n && TE.iconOnlySize[t], o),- ...l,- children: [- r ? /* @__PURE__ */ (0, V.jsx)(r, {- className: TE.icon[t],- "aria-hidden": !0- }) : null,- !n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: TE.label[t],- children: a- }),- !n && i ? /* @__PURE__ */ (0, V.jsx)(i, {- className: TE.icon[t],- "aria-hidden": !0- }) : null- ]- });-}-function EE({ variant: e = "primary", size: t = "medium", iconOnly: n = !1, leadingIcon: r, trailingIcon: i, children: a, className: o, ref: s, ...c }) {- return /* @__PURE__ */ (0, V.jsxs)("a", {- ref: s,- className: xE(TE.base, TE.size[t], TE.variant[e], n && TE.iconOnlySize[t], o),- ...c,- children: [- r ? /* @__PURE__ */ (0, V.jsx)(r, {- className: TE.icon[t],- "aria-hidden": !0- }) : null,- !n && a != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: TE.label[t],- children: a- }),- !n && i ? /* @__PURE__ */ (0, V.jsx)(i, {- className: TE.icon[t],- "aria-hidden": !0- }) : null- ]- });-}-//#endregion-//#region src/react/components/card.tsx-var _oe = "min-w-0", voe = {- filled: "bg-background-secondary-default",- outlined: "border border-separator-border bg-background-primary-default",- raised: "bg-background-primary-default"-}, yoe = {- default: "rounded-2xl shadow-card",- chart: "rounded-2-5xl",- surface: "rounded-surface",- plain: "rounded-2xl"-}, boe = {- line: "border border-border-button-default",- soft: "border border-separator-border"-}, xoe = {- none: "",- default: "p-5"-}, Soe = "cursor-pointer outline-none not-data-selected:hover:bg-card-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring focus-visible:ring-offset-3", Coe = "relative data-selected:bg-background-primary-default data-selected:shadow-none data-selected:after:pointer-events-none data-selected:after:absolute data-selected:after:inset-0 data-selected:after:z-1 data-selected:after:rounded-[inherit] data-selected:after:border-2 data-selected:after:border-border-focus-ring";-function DE(e = {}) {- let { variant: t = "filled", padding: n = "default", interactive: r, selectable: i, bordered: a, className: o } = e, s = e.radius ?? (t === "outlined" ? "surface" : "default");- return [- _oe,- voe[t],- yoe[s],- xoe[n],- a ? boe[a] : "",- r ? Soe : "",- i ? Coe : "",- o ?? ""- ].filter(Boolean).join(" ");-}-//#endregion-//#region src/react/components/empty-state.tsx-var woe = {- page: "min-h-80 justify-center rounded-floating border border-separator-border bg-background-secondary-default px-6 py-12",- plain: "px-6 py-12",- inset: "min-h-40 justify-center rounded-xl bg-background-secondary-default px-4 py-4"-};-function OE({ icon: e, title: t, actions: n, children: r, shell: i = "page" }) {- let a = i === "page";- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-empty-state": "",- className: `flex flex-col items-center gap-2 text-center ${woe[i]}`,- children: [- a ? /* @__PURE__ */ (0, V.jsx)("span", {- "aria-hidden": !0,- className: "mb-2 flex size-empty-glyph items-center justify-center rounded-floating border border-text-primary/15 p-2.5 text-text-secondary",- children: /* @__PURE__ */ (0, V.jsx)(e, {- "aria-hidden": !0,- className: "size-8"- })- }) : /* @__PURE__ */ (0, V.jsx)(e, {- "aria-hidden": !0,- className: "size-6 text-text-tertiary"- }),- /* @__PURE__ */ (0, V.jsx)("h3", {- className: `${a ? "text-body-semibold" : "text-headline-medium"} text-text-primary`,- children: t- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: `${a ? "max-w-empty-copy leading-empty-copy" : "max-w-prose"} text-body-2-regular text-text-secondary`,- children: r- }),- n ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "mt-2 flex flex-wrap justify-center gap-2",- children: n- }) : null- ]- });-}-//#endregion-//#region src/react/components/loading-dots.tsx-function kE({ label: e, inline: t = !1 }) {- let n = /* @__PURE__ */ (0, V.jsxs)("span", {- "aria-hidden": !0,- className: "inline-flex items-center gap-1",- children: [- /* @__PURE__ */ (0, V.jsx)("i", { className: "dot-wave-0 size-1 rounded-full bg-current" }),- /* @__PURE__ */ (0, V.jsx)("i", { className: "dot-wave-1 size-1 rounded-full bg-current" }),- /* @__PURE__ */ (0, V.jsx)("i", { className: "dot-wave-2 size-1 rounded-full bg-current" })- ]- });- return t ? /* @__PURE__ */ (0, V.jsxs)("span", {- role: "status",- className: "inline-flex items-center gap-2",- children: [n, e]- }) : /* @__PURE__ */ (0, V.jsxs)("p", {- role: "status",- className: "flex items-center gap-2 text-caption-1-regular text-text-secondary",- children: [n, e]- });-}-//#endregion-//#region src/react/components/note.tsx-function Y({ tone: e, title: t, action: n, extra: r, children: i }) {- let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 flex-1 flex-col gap-0.5",- children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-medium",- children: t- }) : null, /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular",- children: i- })]- }), n]- }), r] });- switch (e) {- case "info": return /* @__PURE__ */ (0, V.jsx)("div", {- role: "status",- className: "flex flex-col gap-0.5 rounded-2lg bg-notification-information-background px-3 py-2 text-notification-information-foreground",- children: a- });- case "success": return /* @__PURE__ */ (0, V.jsx)("div", {- role: "status",- className: "flex flex-col gap-0.5 rounded-2lg bg-notification-success-background px-3 py-2 text-notification-success-foreground",- children: a- });- case "warning": return /* @__PURE__ */ (0, V.jsx)("div", {- role: "note",- className: "flex flex-col gap-0.5 rounded-2lg bg-status-yellow-background px-3 py-2 text-status-yellow-text",- children: a- });- case "error": return /* @__PURE__ */ (0, V.jsx)("div", {- role: "alert",- className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-error px-3 py-2 text-text-error-primary",- children: a- });- default: return /* @__PURE__ */ (0, V.jsx)("div", {- role: "note",- className: "flex flex-col gap-0.5 rounded-2lg bg-background-tertiary-default px-3 py-2 text-text-secondary",- children: a- });+ function Ur(e, t) {+ var n = Hr(e);+ e = 0;+ for (var r; n;) {+ if (n.nodeType === 3) {+ if (r = e + n.textContent.length, e <= t && r >= t) return {+ node: n,+ offset: t - e+ };+ e = r;+ }+ a: {+ for (; n;) {+ if (n.nextSibling) {+ n = n.nextSibling;+ break a;+ }+ n = n.parentNode;+ }+ n = void 0;+ }+ n = Hr(n);+ }+ }+ function Wr(e, t) {+ return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Wr(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1;+ }+ function Gr(e) {+ e = e != null && e.ownerDocument != null && e.ownerDocument.defaultView != null ? e.ownerDocument.defaultView : window;+ for (var t = Vr(e.document); t instanceof e.HTMLIFrameElement;) {+ try {+ var n = typeof t.contentWindow.location.href == "string";+ } catch {+ n = !1;+ }+ if (n) e = t.contentWindow;+ else break;+ t = Vr(e.document);+ }+ return t;+ }+ function Kr(e) {+ var t = e && e.nodeName && e.nodeName.toLowerCase();+ return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true");+ }+ var qr = Tn && "documentMode" in document && 11 >= document.documentMode, Jr = null, Yr = null, Xr = null, Zr = !1;+ function Qr(e, t, n) {+ var r = n.window === n ? n.document : n.nodeType === 9 ? n : n.ownerDocument;+ Zr || Jr == null || Jr !== Vr(r) || (r = Jr, "selectionStart" in r && Kr(r) ? r = {+ start: r.selectionStart,+ end: r.selectionEnd+ } : (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection(), r = {+ anchorNode: r.anchorNode,+ anchorOffset: r.anchorOffset,+ focusNode: r.focusNode,+ focusOffset: r.focusOffset+ }), Xr && Br(Xr, r) || (Xr = r, r = ip(Yr, "onSelect"), 0 < r.length && (t = new Ln("onSelect", "select", null, t, n), e.push({+ event: t,+ listeners: r+ }), t.target = Jr)));+ }+ function $r(e, t) {+ var n = {};+ return n[e.toLowerCase()] = t.toLowerCase(), n["Webkit" + e] = "webkit" + t, n["Moz" + e] = "moz" + t, n;+ }+ var ei = {+ animationend: $r("Animation", "AnimationEnd"),+ animationiteration: $r("Animation", "AnimationIteration"),+ animationstart: $r("Animation", "AnimationStart"),+ transitionrun: $r("Transition", "TransitionRun"),+ transitionstart: $r("Transition", "TransitionStart"),+ transitioncancel: $r("Transition", "TransitionCancel"),+ transitionend: $r("Transition", "TransitionEnd")+ }, ti = {}, ni = {};+ Tn && (ni = document.createElement("div").style, "AnimationEvent" in window || (delete ei.animationend.animation, delete ei.animationiteration.animation, delete ei.animationstart.animation), "TransitionEvent" in window || delete ei.transitionend.transition);+ function ri(e) {+ if (ti[e]) return ti[e];+ if (!ei[e]) return e;+ var t = ei[e], n;+ for (n in t) if (t.hasOwnProperty(n) && n in ni) return ti[e] = t[n];+ return e;+ }+ var ii = ri("animationend"), ai = ri("animationiteration"), oi = ri("animationstart"), si = ri("transitionrun"), ci = ri("transitionstart"), li = ri("transitioncancel"), ui = ri("transitionend"), di = /* @__PURE__ */ new Map(), fi = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");+ fi.push("scrollEnd");+ function pi(e, t) {+ di.set(e, t), Lt(t, [e]);+ }+ var mi = 0;+ function hi(e, t) {+ if (e.name != null && e.name !== "auto") return e.name;+ if (t.autoName !== null) return t.autoName;+ e = Od.identifierPrefix;+ var n = mi++;+ return e = "_" + e + "t_" + n.toString(32) + "_", t.autoName = e;+ }+ function gi(e) {+ if (e == null || typeof e == "string") return e;+ var t = null, n = Id;+ if (n !== null) for (var r = 0; r < n.length; r++) {+ var i = e[n[r]];+ if (i != null) {+ if (i === "none") return "none";+ t = t == null ? i : t + (" " + i);+ }+ }+ return t ?? e.default;+ }+ function _i(e, t) {+ return e = gi(e), t = gi(t), t == null ? e === "auto" ? null : e : t === "auto" ? null : t;+ }+ var vi = typeof reportError == "function" ? reportError : function(e) {+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {+ var t = new window.ErrorEvent("error", {+ bubbles: !0,+ cancelable: !0,+ message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),+ error: e+ });+ if (!window.dispatchEvent(t)) return;+ } else if (typeof process == "object" && typeof process.emit == "function") {+ process.emit("uncaughtException", e);+ return;+ }+ console.error(e);+ }, yi = [], bi = 0, xi = 0;+ function Si() {+ for (var e = bi, t = xi = bi = 0; t < e;) {+ var n = yi[t];+ yi[t++] = null;+ var r = yi[t];+ yi[t++] = null;+ var i = yi[t];+ yi[t++] = null;+ var a = yi[t];+ if (yi[t++] = null, r !== null && i !== null) {+ var o = r.pending;+ o === null ? i.next = i : (i.next = o.next, o.next = i), r.pending = i;+ }+ a !== 0 && Ei(n, i, a);+ }+ }+ function Ci(e, t, n, r) {+ yi[bi++] = e, yi[bi++] = t, yi[bi++] = n, yi[bi++] = r, xi |= r, e.lanes |= r, e = e.alternate, e !== null && (e.lanes |= r);+ }+ function wi(e, t, n, r) {+ return Ci(e, t, n, r), Di(e);+ }+ function Ti(e, t) {+ return Ci(e, null, null, t), Di(e);+ }+ function Ei(e, t, n) {+ e.lanes |= n;+ var r = e.alternate;+ r !== null && (r.lanes |= n);+ for (var i = !1, a = e.return; a !== null;) a.childLanes |= n, r = a.alternate, r !== null && (r.childLanes |= n), a.tag === 22 && (e = a.stateNode, e === null || e._visibility & 1 || (i = !0)), e = a, a = a.return;+ return e.tag === 3 ? (a = e.stateNode, i && t !== null && (i = 31 - Ye(n), e = a.hiddenUpdates, r = e[i], r === null ? e[i] = [t] : r.push(t), t.lane = n | 536870912), a) : null;+ }+ function Di(e) {+ if (50 < Ld) throw Ld = 0, Rd = null, Error(i(185));+ for (var t = e.return; t !== null;) e = t, t = e.return;+ return e.tag === 3 ? e.stateNode : null;+ }+ var Oi = {};+ function ki(e, t, n, r) {+ this.tag = e, this.key = n, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.refCleanup = this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = r, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;+ }+ function Ai(e, t, n, r) {+ return new ki(e, t, n, r);+ }+ function ji(e) {+ return e = e.prototype, !(!e || !e.isReactComponent);+ }+ function Mi(e, t) {+ var n = e.alternate;+ return n === null ? (n = Ai(e.tag, t, e.key, e.mode), n.elementType = e.elementType, n.type = e.type, n.stateNode = e.stateNode, n.alternate = e, e.alternate = n) : (n.pendingProps = t, n.type = e.type, n.flags = 0, n.subtreeFlags = 0, n.deletions = null), n.flags = e.flags & 1206910976, n.childLanes = e.childLanes, n.lanes = e.lanes, n.child = e.child, n.memoizedProps = e.memoizedProps, n.memoizedState = e.memoizedState, n.updateQueue = e.updateQueue, t = e.dependencies, n.dependencies = t === null ? null : {+ lanes: t.lanes,+ firstContext: t.firstContext+ }, n.sibling = e.sibling, n.index = e.index, n.ref = e.ref, n.refCleanup = e.refCleanup, n;+ }+ function Ni(e, t) {+ e.flags &= 1206910978;+ var n = e.alternate;+ return n === null ? (e.childLanes = 0, e.lanes = t, e.child = null, e.subtreeFlags = 0, e.memoizedProps = null, e.memoizedState = null, e.updateQueue = null, e.dependencies = null, e.stateNode = null) : (e.childLanes = n.childLanes, e.lanes = n.lanes, e.child = n.child, e.subtreeFlags = 0, e.deletions = null, e.memoizedProps = n.memoizedProps, e.memoizedState = n.memoizedState, e.updateQueue = n.updateQueue, e.type = n.type, t = n.dependencies, e.dependencies = t === null ? null : {+ lanes: t.lanes,+ firstContext: t.firstContext+ }), e;+ }+ function Pi(e, t, n, r, a, o) {+ var s = 0;+ if (r = e, typeof r == "function") ji(r) && (s = 1);+ else if (typeof r == "string") s = rh(e, n, _e.current) ? 26 : e === "html" || e === "head" || e === "body" ? 27 : 5;+ else a: switch (r) {+ case te: return e = Ai(31, n, t, a), e.elementType = te, e.lanes = o, e;+ case O: return Fi(n.children, a, o, t);+ case k:+ s = 8, a |= 24;+ break;+ case A: return e = Ai(12, n, t, a | 2), e.elementType = A, e.lanes = o, e;+ case P: return e = Ai(13, n, t, a), e.elementType = P, e.lanes = o, e;+ case ee: return e = Ai(19, n, t, a), e.elementType = ee, e.lanes = o, e;+ case ne:+ case ie: return e = a | 32, e = Ai(30, n, t, e), e.elementType = ie, e.lanes = o, e.stateNode = {+ autoName: null,+ paired: null,+ clones: null,+ ref: null+ }, e;+ default:+ if (typeof r == "object" && r) switch (r.$$typeof) {+ case M:+ s = 10;+ break a;+ case j:+ s = 9;+ break a;+ case N:+ s = 11;+ break a;+ case F:+ s = 14;+ break a;+ case I:+ s = 16, r = null;+ break a;+ }+ s = 29, n = Error(i(130, e === null ? "null" : typeof e, "")), r = null;+ }+ return t = Ai(s, n, t, a), t.elementType = e, t.type = r, t.lanes = o, t;+ }+ function Fi(e, t, n, r) {+ return e = Ai(7, e, r, t), e.lanes = n, e;+ }+ function Ii(e, t, n) {+ return e = Ai(6, e, null, t), e.lanes = n, e;+ }+ function Li(e) {+ var t = Ai(18, null, null, 0);+ return t.stateNode = e, t;+ }+ function Ri(e, t, n) {+ return t = Ai(4, e.children === null ? [] : e.children, e.key, t), t.lanes = n, t.stateNode = {+ containerInfo: e.containerInfo,+ pendingChildren: null,+ implementation: e.implementation+ }, t;+ }+ var zi = /* @__PURE__ */ new WeakMap();+ function Bi(e, t) {+ if (typeof e == "object" && e) {+ var n = zi.get(e);+ return n === void 0 ? (t = {+ value: e,+ source: t,+ stack: je(t)+ }, zi.set(e, t), t) : n;+ }+ return {+ value: e,+ source: t,+ stack: je(t)+ };+ }+ var Vi = [], Hi = 0, Ui = null, Wi = 0, Gi = [], Ki = 0, qi = null, Ji = 1, Yi = "";+ function Xi(e, t) {+ Vi[Hi++] = Wi, Vi[Hi++] = Ui, Ui = e, Wi = t;+ }+ function Zi(e, t, n) {+ Gi[Ki++] = Ji, Gi[Ki++] = Yi, Gi[Ki++] = qi, qi = e;+ var r = Ji;+ e = Yi;+ var i = 32 - Ye(r) - 1;+ r &= ~(1 << i), n += 1;+ var a = 32 - Ye(t) + i;+ if (30 < a) {+ var o = i - i % 5;+ a = (r & (1 << o) - 1).toString(32), r >>= o, i -= o, Ji = 1 << 32 - Ye(t) + i | n << i | r, Yi = a + e;+ } else Ji = 1 << a | n << i | r, Yi = e;+ }+ function Qi(e) {+ e.return !== null && (Xi(e, 1), Zi(e, 1, 0));+ }+ function $i(e) {+ for (; e === Ui;) Ui = Vi[--Hi], Vi[Hi] = null, Wi = Vi[--Hi], Vi[Hi] = null;+ for (; e === qi;) qi = Gi[--Ki], Gi[Ki] = null, Yi = Gi[--Ki], Gi[Ki] = null, Ji = Gi[--Ki], Gi[Ki] = null;+ }+ function ea(e, t) {+ Gi[Ki++] = Ji, Gi[Ki++] = Yi, Gi[Ki++] = qi, Ji = t.id, Yi = t.overflow, qi = e;+ }+ var ta = null, na = null, ra = !1, ia = null, aa = !1, oa = Error(i(519));+ function sa(e) {+ throw pa(Bi(Error(i(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", "")), e)), oa;}-}-//#endregion-//#region src/react/components/page.tsx-function AE({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- className: "mx-auto flex w-full max-w-board flex-col gap-8",- children: e- });-}-//#endregion-//#region src/react/components/progress.tsx-var jE = 100, Toe = .4;-function ME({ label: e, value: t, max: n = 100, stops: r = [] }) {- let i = n > 0 ? n : 1, a = (e) => Math.min(Math.max(e, 0), i) / i * jE;- return /* @__PURE__ */ (0, V.jsxs)("svg", {- role: "progressbar",- "aria-label": e,- "aria-valuemin": 0,- "aria-valuemax": n,- "aria-valuenow": t,- viewBox: `0 0 ${jE} 1`,- preserveAspectRatio: "none",- className: "h-1.5 w-full overflow-hidden rounded-full",- children: [- /* @__PURE__ */ (0, V.jsx)("rect", {- width: jE,- height: 1,- className: "fill-background-tertiary-default"- }),- /* @__PURE__ */ (0, V.jsx)("rect", {- width: a(t),- height: 1,- className: "fill-border-focus-ring"- }),- r.map((e) => /* @__PURE__ */ (0, V.jsx)("rect", {- x: a(e),- width: Toe,- height: 1,- className: "fill-background-secondary-default"- }, e))- ]- });-}-//#endregion-//#region src/react/settings/busy-props.ts-function X(e) {- return e ? {- "aria-busy": !0,- "aria-disabled": !0- } : {};-}-//#endregion-//#region src/react/settings/use-action.ts-function NE(e = "") {- let t = (0, B.useRef)(null), [n, r] = (0, B.useState)(""), [i, a] = (0, B.useState)(e);- (0, B.useEffect)(() => () => t.current?.abort(), []);- async function o(e, n, i, o) {- if (t.current) return;- let s = new AbortController();- t.current = s, r(e), a("");- try {- let e = await n(s.signal);- s.signal.aborted || i(e);- } catch (e) {- if (s.signal.aborted) return;- o ? o(e) : a(W(e));- } finally {- t.current === s && (t.current = null), s.signal.aborted || r("");+ function ca(e) {+ var t = e.stateNode, n = e.type, r = e.memoizedProps;+ switch (t[vt] = e, t[yt] = r, n) {+ case "dialog":+ Zf("cancel", t), Zf("close", t);+ break;+ case "iframe":+ case "object":+ case "embed":+ Zf("load", t);+ break;+ case "video":+ case "audio":+ for (n = 0; n < Jf.length; n++) Zf(Jf[n], t);+ break;+ case "source":+ Zf("error", t);+ break;+ case "img":+ case "image":+ case "link":+ Zf("error", t), Zf("load", t);+ break;+ case "details":+ Zf("toggle", t);+ break;+ case "input":+ Zf("invalid", t), nn(t, r.value, r.defaultValue, r.checked, r.defaultChecked, r.type, r.name, !0);+ break;+ case "select":+ Zf("invalid", t);+ break;+ case "textarea": Zf("invalid", t), sn(t, r.value, r.defaultValue, r.children);+ }+ n = r.children, typeof n != "string" && typeof n != "number" && typeof n != "bigint" || t.textContent === "" + n || !0 === r.suppressHydrationWarning || up(t.textContent, n) ? (r.popover != null && (Zf("beforetoggle", t), Zf("toggle", t)), r.onScroll != null && Zf("scroll", t), r.onScrollEnd != null && Zf("scrollend", t), r.onClick != null && (t.onclick = gn), t = !0) : t = !1, t || sa(e, !0);+ }+ function la(e) {+ for (ta = e.return; ta;) switch (ta.tag) {+ case 5:+ case 31:+ case 13:+ aa = !1;+ return;+ case 27:+ case 3:+ aa = !0;+ return;+ default: ta = ta.return;}}- return {- run: o,- busy: n,- error: i,- setError: a+ function ua(e) {+ if (e !== ta) return !1;+ if (!ra) return la(e), ra = !0, !1;+ var t = e.tag, n;+ if ((n = t !== 3 && t !== 27) && ((n = t === 5) && (n = e.type, n = n === "form" || n === "button" || wp(e.type, e.memoizedProps)), n = !n), n && na && sa(e), la(e), t === 13) {+ if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));+ na = xm(e);+ } else if (t === 31) {+ if (e = e.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(317));+ na = xm(e);+ } else t === 27 ? (t = na, Mp(e.type) ? (e = bm, bm = null, na = e) : na = t) : na = ta ? ym(e.stateNode.nextSibling) : null;+ return !0;+ }+ function da() {+ na = ta = null, ra = !1;+ }+ function fa() {+ var e = ia;+ return e !== null && (bd === null ? bd = e : bd.push.apply(bd, e), ia = null), e;+ }+ function pa(e) {+ ia === null ? ia = [e] : ia.push(e);+ }+ var ma = R(null), ha = null, ga = null;+ function _a(e, t, n) {+ ge(ma, t._currentValue), t._currentValue = n;+ }+ function va(e) {+ e._currentValue = ma.current, he(ma);+ }+ function ya(e, t, n) {+ for (; e !== null;) {+ var r = e.alternate;+ if ((e.childLanes & t) === t ? r !== null && (r.childLanes & t) !== t && (r.childLanes |= t) : (e.childLanes |= t, r !== null && (r.childLanes |= t)), e === n) break;+ e = e.return;+ }+ }+ function ba(e, t, n, r) {+ var a = e.child;+ for (a !== null && (a.return = e); a !== null;) {+ var o = a.dependencies;+ if (o !== null) {+ var s = a.child;+ o = o.firstContext;+ a: for (; o !== null;) {+ var c = o;+ o = a;+ for (var l = 0; l < t.length; l++) if (c.context === t[l]) {+ o.lanes |= n, c = o.alternate, c !== null && (c.lanes |= n), ya(o.return, n, e), r || (s = null);+ break a;+ }+ o = c.next;+ }+ } else if (a.tag === 18) {+ if (s = a.return, s === null) throw Error(i(341));+ s.lanes |= n, o = s.alternate, o !== null && (o.lanes |= n), ya(s, n, e), s = null;+ } else a.tag === 13 && a.memoizedState !== null && a.memoizedState.dehydrated === null ? (a.lanes |= n, s = a.alternate, s !== null && (s.lanes |= n), ya(a.return, n, e), s = a.child, s = s === null ? null : s.sibling) : s = a.child;+ if (s !== null) s.return = a;+ else for (s = a; s !== null;) {+ if (s === e) {+ s = null;+ break;+ }+ if (a = s.sibling, a !== null) {+ a.return = s.return, s = a;+ break;+ }+ s = s.return;+ }+ a = s;+ }+ }+ function xa(e, t, n, r) {+ e = null;+ for (var a = t, o = !1; a !== null;) {+ if (!o) {+ if (a.flags & 524288) o = !0;+ else if (a.flags & 262144) break;+ }+ if (a.tag === 10) {+ var s = a.alternate;+ if (s === null) throw Error(i(387));+ if (s = s.memoizedProps, s !== null) {+ var c = a.type;+ zr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));+ }+ } else if (a === be.current) {+ if (s = a.alternate, s === null) throw Error(i(387));+ s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [_h] : e.push(_h));+ }+ a = a.return;+ }+ return e !== null && ba(t, e, n, r), t.flags |= 262144, e !== null;+ }+ function Sa(e) {+ for (e = e.firstContext; e !== null;) {+ if (!zr(e.context._currentValue, e.memoizedValue)) return !0;+ e = e.next;+ }+ return !1;+ }+ function Ca(e) {+ ha = e, ga = null, e = e.dependencies, e !== null && (e.firstContext = null);+ }+ function wa(e) {+ return Ea(ha, e);+ }+ function Ta(e, t) {+ return ha === null && Ca(e), Ea(e, t);+ }+ function Ea(e, t) {+ var n = t._currentValue;+ if (t = {+ context: t,+ memoizedValue: n,+ next: null+ }, ga === null) {+ if (e === null) throw Error(i(308));+ ga = t, e.dependencies = {+ lanes: 0,+ firstContext: t+ }, e.flags |= 524288;+ } else ga = ga.next = t;+ return n;+ }+ var Da = typeof AbortController < "u" ? AbortController : function() {+ var e = [], t = this.signal = {+ aborted: !1,+ addEventListener: function(t, n) {+ e.push(n);+ }+ };+ this.abort = function() {+ t.aborted = !0, e.forEach(function(e) {+ return e();+ });+ };+ }, Oa = t.unstable_scheduleCallback, ka = t.unstable_NormalPriority, Aa = {+ $$typeof: M,+ Consumer: null,+ Provider: null,+ _currentValue: null,+ _currentValue2: null,+ _threadCount: 0};-}-//#endregion-//#region node_modules/react-aria-components/dist/private/utils.mjs-var PE = Symbol("default");-function FE({ values: e, children: t }) {- for (let [n, r] of e) t = /*#__PURE__*/ B.createElement(n.Provider, { value: r }, t);- return t;-}-function IE(e) {- let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;- return (0, B.useMemo)(() => {- let e, l, u;- return e = typeof t == "function" ? t({- ...s,- defaultClassName: i- }) : t, l = typeof n == "function" ? n({- ...s,- defaultStyle: o || {}- }) : n, u = typeof r == "function" ? r({- ...s,- defaultChildren: a- }) : r ?? a, {- className: e ?? i,- style: l || o ? {- ...o,- ...l- } : void 0,- children: u ?? a,- "data-rac": "",- render: c ? (e) => c(e, s) : void 0+ function ja() {+ return {+ controller: new Da(),+ data: /* @__PURE__ */ new Map(),+ refCount: 0};- }, [- t,- n,- r,- i,- a,- o,- s,- c- ]);-}-function LE(e, t) {- let n = (0, B.useContext)(e);- if (t === null) return null;- if (n && typeof n == "object" && "slots" in n && n.slots) {- let e = t || PE;- 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}.`);+ }+ function Ma(e) {+ e.refCount--, e.refCount === 0 && Oa(ka, function() {+ e.controller.abort();+ });+ }+ function Na(e, t) {+ if (e.pendingLanes & 4194048) {+ var n = e.transitionTypes;+ for (n === null && (n = e.transitionTypes = []), e = 0; e < t.length; e++) {+ var r = t[e];+ n.indexOf(r) === -1 && n.push(r);+ }}- return n.slots[e];}- return n;-}-function RE(e, t, n) {- let { ref: r, ...i } = LE(n, e.slot) || {}, a = Nh((0, B.useMemo)(() => mh(t, r), [t, r])), o = U(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,- ...n- }, a = typeof e.style == "function" ? e.style({- ...t,- defaultStyle: r- }) : e.style;- return {- ...r,- ...a+ var Pa = null;+ function Fa(e) {+ var t = e.transitionTypes;+ return e.transitionTypes = null, t;+ }+ var Ia = null, La = 0, Ra = 0, za = null;+ function Ba(e, t) {+ if (Ia === null) {+ var n = Ia = [];+ La = 0, Ra = Uf(), za = {+ status: "pending",+ value: void 0,+ then: function(e) {+ n.push(e);+ }+ };+ }+ return La++, t.then(Va, Va), t;+ }+ function Va() {+ if (--La === 0 && (Pa = null, Ia !== null)) {+ za !== null && (za.status = "fulfilled");+ var e = Ia;+ Ia = null, Ra = 0, za = null;+ for (var t = 0; t < e.length; t++) (0, e[t])();+ }+ }+ function Ha(e, t) {+ var n = [], r = {+ status: "pending",+ value: null,+ reason: null,+ then: function(e) {+ n.push(e);+ }};- } : {- ...i.style,- ...e.style- }), [o, a];-}-function zE(e = !0) {- let [t, n] = (0, B.useState)(e), r = (0, B.useRef)(!1), i = (0, B.useCallback)((e) => {- r.current = !0, n(!!e);- }, []);- return Hp(() => {- r.current || n(!1);- }, []), [i, t];-}-function BE(e) {- let t = /^(data-.*)$/, n = {};- for (let r in e) t.test(r) || (n[r] = e[r]);- return n;-}-function Eoe(e, t, n) {- let { render: r, ...i } = t, a = (0, B.useRef)(null), o = (0, B.useMemo)(() => mh(n, a), [n, a]);- Hp(() => {}, [e, r]);- let s = {- ...i,- ref: o+ return e.then(function() {+ r.status = "fulfilled", r.value = t;+ for (var e = 0; e < n.length; e++) (0, n[e])(t);+ }, function(e) {+ for (r.status = "rejected", r.reason = e, e = 0; e < n.length; e++) (0, n[e])(void 0);+ }), r;+ }+ var Ua = L.S;+ L.S = function(e, t) {+ if (Cd = Le(), typeof t == "object" && t && typeof t.then == "function" && Ba(e, t), Pa !== null) for (var n = kf; n !== null;) Na(n, Pa), n = n.next;+ if (n = e.types, n !== null) {+ for (var r = kf; r !== null;) Na(r, n), r = r.next;+ if (Ra !== 0) {+ r = Pa, r === null && (r = Pa = []);+ for (var i = 0; i < n.length; i++) {+ var a = n[i];+ r.indexOf(a) === -1 && r.push(a);+ }+ }+ }+ Ua !== null && Ua(e, t);};- return r ? r(s, void 0) : /*#__PURE__*/ B.createElement(e, s);-}-var VE = {}, HE = new Proxy({}, { get(e, t) {- if (typeof t != "string") return;- let n = VE[t];- return n || (n = /*#__PURE__*/ (0, B.forwardRef)(Eoe.bind(null, t)), VE[t] = n), n;-} }), UE = /*#__PURE__*/ (0, B.createContext)(null), WE = /*#__PURE__*/ (0, B.createContext)(null), GE = /*#__PURE__*/ (0, B.createContext)(null), KE = {- CollectionRoot({ collection: e, renderDropIndicator: t }) {- return qE(e, null, t);- },- CollectionBranch({ collection: e, parent: t, renderDropIndicator: n }) {- return qE(e, t, n);+ var Wa = R(null);+ function Ga() {+ var e = Wa.current;+ return e === null ? id.pooledCache : e;}-};-function qE(e, t, n) {- return dp({- items: t ? e.getChildren(t.key) : e,- dependencies: [n],- children(t) {- if (t.type === "content") return /*#__PURE__*/ B.createElement(B.Fragment, null);- let r = t.render(t);- return !n || t.type !== "item" ? r : /*#__PURE__*/ B.createElement(B.Fragment, null, n({- type: "item",- key: t.key,- dropPosition: "before"- }), r, Doe(e, t, n));+ function Ka(e, t) {+ t === null ? ge(Wa, Wa.current) : ge(Wa, t.pool);+ }+ function qa() {+ var e = Ga();+ return e === null ? null : {+ parent: Aa._currentValue,+ pool: e+ };+ }+ var Ja = Error(i(460)), Ya = Error(i(474)), Xa = Error(i(542)), Za = { then: function() {} };+ function Qa(e) {+ return e = e.status, e === "fulfilled" || e === "rejected";+ }+ function $a(e, t, n) {+ switch (n = e[n], n === void 0 ? e.push(t) : n !== t && (t.then(gn, gn), t = n), t.status) {+ case "fulfilled": return t.value;+ case "rejected": throw e = t.reason, ro(e), e === void 0 && !("reason" in t) ? Error(i(600)) : e;+ default:+ if (typeof t.status == "string") t.then(gn, gn);+ else {+ if (e = id, e !== null && 100 < e.shellSuspendCounter) throw Error(i(482));+ e = t, e.status = "pending", e.then(function(e) {+ if (t.status === "pending") {+ var n = t;+ n.status = "fulfilled", n.value = e;+ }+ }, function(e) {+ if (t.status === "pending") {+ var n = t;+ n.status = "rejected", n.reason = e;+ }+ });+ }+ switch (t.status) {+ case "fulfilled": return t.value;+ case "rejected": throw e = t.reason, ro(e), e;+ }+ throw to = t, Ja;}- });-}-function Doe(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);- for (; o != null && o.type !== "item";) o = o.nextKey == null ? null : e.getItem(o.nextKey);- let s = [];- if (o == null) {- let r = t;- for (; r?.type === "item" && (!a || r.parentKey !== a.parentKey && a.level < r.level);) {- let t = n({- type: "item",- key: r.key,- dropPosition: "after"- });- /*#__PURE__*/ (0, B.isValidElement)(t) && s.push(/*#__PURE__*/ (0, B.cloneElement)(t, { key: `${r.key}-after` })), r = r.parentKey == null ? null : e.getItem(r.parentKey);+ }+ function eo(e) {+ try {+ var t = e._init;+ return t(e._payload);+ } catch (e) {+ throw typeof e == "object" && e && typeof e.then == "function" ? (to = e, Ja) : e;}}- return s;-}-var JE = /*#__PURE__*/ (0, B.createContext)(KE);-function YE(e) {- return (0, B.useMemo)(() => e == null ? null : /* @__PURE__ */ new Set([e]), [e]);-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Label.mjs-var XE = /*#__PURE__*/ (0, B.createContext)({}), Ooe = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, XE);- let { elementType: n = "label", ...r } = e, i = HE[n];- return /*#__PURE__*/ B.createElement(i, {- className: "react-aria-Label",- ...r,- ref: t- });-}), koe = /*#__PURE__*/ (0, B.createContext)(null), ZE = /*#__PURE__*/ (0, B.createContext)({}), QE = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, ZE);- let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = Aee(e, t);- i = joe(i, r);- let { focusProps: o, isFocused: s, isFocusVisible: c } = ry(e), { hoverProps: l, isHovered: u } = sy({- ...e,- isDisabled: e.isDisabled || r- }), d = {- isHovered: u,- isPressed: (n.isPressed || a) && !r,- isFocused: s,- isFocusVisible: c,- isDisabled: e.isDisabled || !1,- isPending: r ?? !1- }, f = IE({- ...e,- values: d,- defaultClassName: "react-aria-Button"- }), p = dh(i.id), m = dh(), h = i["aria-labelledby"];- r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));- let g = (0, B.useRef)(r);- (0, B.useEffect)(() => {- let e = { "aria-labelledby": h || p };- (!g.current && s && r || g.current && s && !r) && f_(e, "assertive"), g.current = r;- }, [- r,- s,- h,- p- ]);- let _ = Eg(e, { global: !0 });- return delete _.onClick, /*#__PURE__*/ B.createElement(HE.button, {- ...U(_, f, i, o, l),- type: i.type === "submit" && r ? "button" : i.type,- id: p,- ref: t,- "aria-labelledby": h,- slot: e.slot || void 0,- "aria-disabled": r ? "true" : i["aria-disabled"],- "data-disabled": e.isDisabled || void 0,- "data-pressed": d.isPressed || void 0,- "data-hovered": u || void 0,- "data-focused": s || void 0,- "data-pending": r || void 0,- "data-focus-visible": c || void 0- }, /*#__PURE__*/ B.createElement(koe.Provider, { value: { id: m } }, f.children));-}), Aoe = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;-function joe(e, t) {- if (t) {- for (let t in e) t.startsWith("on") && !Aoe.test(t) && (e[t] = void 0);- e.href = void 0, e.target = void 0;+ var to = null;+ function no() {+ if (to === null) throw Error(i(459));+ var e = to;+ return to = null, e;+ }+ function ro(e) {+ if (e === Ja || e === Xa) throw Error(i(483));+ }+ var io = null, ao = 0;+ function oo(e) {+ var t = ao;+ return ao += 1, io === null && (io = []), $a(io, e, t);+ }+ function so(e, t) {+ t = t.props.ref, e.ref = t === void 0 ? null : t;+ }+ function co(e, t) {+ throw t.$$typeof === T ? Error(i(525)) : (e = Object.prototype.toString.call(t), Error(i(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)));}- return e;-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Heading.mjs-var $E = /*#__PURE__*/ (0, B.createContext)({}), eD = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, $E);- let { children: n, level: r = 3, className: i, ...a } = e, o = HE[`h${r}`];- return /*#__PURE__*/ B.createElement(o, {- ...a,- ref: t,- className: i ?? "react-aria-Heading"- }, n);-}), tD = /*#__PURE__*/ (0, B.createContext)({}), Moe = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, tD);- let { elementType: n = "span", ...r } = e, i = HE[n];- return /*#__PURE__*/ B.createElement(i, {- className: "react-aria-Text",- ...r,- ref: t- });-}), nD = /*#__PURE__*/ (0, B.createContext)(null), rD = /*#__PURE__*/ (0, B.createContext)(null), iD = /*#__PURE__*/ (0, B.createContext)(null), aD = /*#__PURE__*/ (0, B.createContext)(null), Noe = /*#__PURE__*/ (0, B.createContext)(null), oD = /*#__PURE__*/ (0, B.createContext)(null);-function Poe(e, t) {- let { validationBehavior: n } = LE(rD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useContext)(Noe), a = Nh((0, B.useMemo)(() => mh(t, e.inputRef === void 0 ? null : e.inputRef), [t, e.inputRef])), o = {- ...BE(e),- children: typeof e.children == "function" || e.children,- value: e.value,- validationBehavior: r- };- return [i ? $ee(o, i, a) : N_(o, R_(e), a), a];-}-var Foe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { inputRef: n = null, ...r } = e;- [e, t] = RE(r, t, iD);- let [i, a] = Poe(e, n);- return /*#__PURE__*/ B.createElement(oD.Provider, { value: {- ...i,- inputRef: a,- defaultClassName: "react-aria-Checkbox",- isIndeterminate: e.isIndeterminate,- isRequired: e.isRequired- } }, /*#__PURE__*/ B.createElement(Ioe, {- ...e,- ref: t- }));-}), Ioe = /*#__PURE__*/ (0, B.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, B.useContext)(oD), { isFocused: p, isFocusVisible: m, focusProps: h } = ry(), g = a || o, { hoverProps: _, isHovered: v } = sy({- ...e,- isDisabled: g- }), y = IE({- ...e,- defaultClassName: u,- values: {- isSelected: i,- isIndeterminate: d || !1,- isPressed: s,- isHovered: v,- isFocused: p,- isFocusVisible: m,- isDisabled: a,- isReadOnly: o,- isInvalid: c,- isRequired: f || !1+ function lo(e) {+ function t(t, n) {+ if (e) {+ var r = t.deletions;+ r === null ? (t.deletions = [n], t.flags |= 16) : r.push(n);+ }}- }), b = Eg(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(HE.label, {- ...U(b, n, _, y),- ref: t,- slot: e.slot || void 0,- "data-selected": i || void 0,- "data-indeterminate": d || void 0,- "data-pressed": s || void 0,- "data-hovered": v || void 0,- "data-focused": p || void 0,- "data-focus-visible": m || void 0,- "data-disabled": a || void 0,- "data-readonly": o || void 0,- "data-invalid": c || void 0,- "data-required": f || void 0- }, /*#__PURE__*/ B.createElement(H_, { elementType: "span" }, /*#__PURE__*/ B.createElement("input", {- ...U(r, h),- ref: l- })), y.children);-}), sD = /*#__PURE__*/ (0, B.createContext)({}), Loe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, sD);- 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 } = sy({- onHoverStart: a,- onHoverChange: o,- onHoverEnd: s,- isDisabled: n- }), { isFocused: d, isFocusVisible: f, focusProps: p } = ry({ within: !0 }), m = IE({- ...e,- values: {- isHovered: u,- isFocusWithin: d,- isFocusVisible: f,- isDisabled: n,- isInvalid: r- },- defaultClassName: "react-aria-Group"- });- return /*#__PURE__*/ B.createElement(HE.div, {- ...U(c, p, l),- ...m,- ref: t,- role: e.role ?? "group",- slot: e.slot ?? void 0,- "data-focus-within": d || void 0,- "data-hovered": u || void 0,- "data-focus-visible": f || void 0,- "data-disabled": n || void 0,- "data-invalid": r || void 0,- "data-readonly": i || void 0- }, m.children);-}), cD = /*#__PURE__*/ (0, B.createContext)({}), Roe = (e) => {- let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;- return i;-}, zoe = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, cD);- let { hoverProps: n, isHovered: r } = sy({- ...e,- isDisabled: e.disabled- }), { isFocused: i, isFocusVisible: a, focusProps: o } = ry({- isTextInput: !0,- autoFocus: e.autoFocus- }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = IE({- ...e,- values: {- isHovered: r,- isFocused: i,- isFocusVisible: a,- isDisabled: e.disabled || !1,- isInvalid: s- },- defaultClassName: "react-aria-Input"- });- return /*#__PURE__*/ B.createElement(HE.input, {- ...U(Roe(e), o, n),- ...c,- ref: t,- "data-focused": i || void 0,- "data-disabled": e.disabled || void 0,- "data-hovered": r || void 0,- "data-focus-visible": a || void 0,- "data-invalid": s || void 0- });-}), lD = {};-lD = {- colorSwatchPicker: "تغييرات الألوان",- dropzoneLabel: "DropZone",- selectPlaceholder: "حدد عنصرًا",- tableResizer: "أداة تغيير الحجم"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/bg-BG.mjs-var uD = {};-uD = {- colorSwatchPicker: "Цветови мостри",- dropzoneLabel: "DropZone",- selectPlaceholder: "Изберете предмет",- tableResizer: "Преоразмерител"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/cs-CZ.mjs-var dD = {};-dD = {- colorSwatchPicker: "Vzorky barev",- dropzoneLabel: "Místo pro přetažení",- selectPlaceholder: "Vyberte položku",- tableResizer: "Změna velikosti"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/da-DK.mjs-var fD = {};-fD = {- colorSwatchPicker: "Farveprøver",- dropzoneLabel: "DropZone",- selectPlaceholder: "Vælg et element",- tableResizer: "Størrelsesændring"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/de-DE.mjs-var pD = {};-pD = {- colorSwatchPicker: "Farbfelder",- dropzoneLabel: "Ablegebereich",- selectPlaceholder: "Element wählen",- tableResizer: "Größenanpassung"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/el-GR.mjs-var mD = {};-mD = {- colorSwatchPicker: "Χρωματικά δείγματα",- dropzoneLabel: "DropZone",- selectPlaceholder: "Επιλέξτε ένα αντικείμενο",- tableResizer: "Αλλαγή μεγέθους"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/en-US.mjs-var hD = {};-hD = {- selectPlaceholder: "Select an item",- tableResizer: "Resizer",- dropzoneLabel: "DropZone",- colorSwatchPicker: "Color swatches"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/es-ES.mjs-var gD = {};-gD = {- colorSwatchPicker: "Muestras de colores",- dropzoneLabel: "DropZone",- selectPlaceholder: "Seleccionar un artículo",- tableResizer: "Cambiador de tamaño"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/et-EE.mjs-var _D = {};-_D = {- colorSwatchPicker: "Värvinäidised",- dropzoneLabel: "DropZone",- selectPlaceholder: "Valige üksus",- tableResizer: "Suuruse muutja"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/fi-FI.mjs-var vD = {};-vD = {- colorSwatchPicker: "Värimallit",- dropzoneLabel: "DropZone",- selectPlaceholder: "Valitse kohde",- tableResizer: "Koon muuttaja"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/fr-FR.mjs-var yD = {};-yD = {- colorSwatchPicker: "Échantillons de couleurs",- dropzoneLabel: "DropZone",- selectPlaceholder: "Sélectionner un élément",- tableResizer: "Redimensionneur"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/he-IL.mjs-var bD = {};-bD = {- colorSwatchPicker: "דוגמיות צבע",- dropzoneLabel: "DropZone",- selectPlaceholder: "בחר פריט",- tableResizer: "שינוי גודל"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/hr-HR.mjs-var xD = {};-xD = {- colorSwatchPicker: "Uzorci boja",- dropzoneLabel: "Zona spuštanja",- selectPlaceholder: "Odaberite stavku",- tableResizer: "Promjena veličine"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/hu-HU.mjs-var SD = {};-SD = {- colorSwatchPicker: "Színtárak",- dropzoneLabel: "DropZone",- selectPlaceholder: "Válasszon ki egy elemet",- tableResizer: "Átméretező"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/it-IT.mjs-var CD = {};-CD = {- 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 wD = {};-wD = {- colorSwatchPicker: "カラースウォッチ",- dropzoneLabel: "ドロップゾーン",- selectPlaceholder: "項目を選択",- tableResizer: "サイズ変更ツール"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/ko-KR.mjs-var TD = {};-TD = {- colorSwatchPicker: "색상 견본",- dropzoneLabel: "드롭 영역",- selectPlaceholder: "항목 선택",- tableResizer: "크기 조정기"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/lt-LT.mjs-var ED = {};-ED = {- colorSwatchPicker: "Spalvų pavyzdžiai",- dropzoneLabel: "„DropZone“",- selectPlaceholder: "Pasirinkite elementą",- tableResizer: "Dydžio keitiklis"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/lv-LV.mjs-var DD = {};-DD = {- colorSwatchPicker: "Krāsu paraugi",- dropzoneLabel: "DropZone",- selectPlaceholder: "Izvēlēties vienumu",- tableResizer: "Izmēra mainītājs"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/nb-NO.mjs-var OD = {};-OD = {- colorSwatchPicker: "Fargekart",- dropzoneLabel: "Droppsone",- selectPlaceholder: "Velg et element",- tableResizer: "Størrelsesendrer"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/nl-NL.mjs-var kD = {};-kD = {- colorSwatchPicker: "kleurstalen",- dropzoneLabel: "DropZone",- selectPlaceholder: "Selecteer een item",- tableResizer: "Resizer"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/pl-PL.mjs-var AD = {};-AD = {- colorSwatchPicker: "Próbki kolorów",- dropzoneLabel: "Strefa upuszczania",- selectPlaceholder: "Wybierz element",- tableResizer: "Zmiana rozmiaru"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/pt-BR.mjs-var jD = {};-jD = {- colorSwatchPicker: "Amostras de cores",- dropzoneLabel: "DropZone",- selectPlaceholder: "Selecione um item",- tableResizer: "Redimensionador"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/pt-PT.mjs-var MD = {};-MD = {- colorSwatchPicker: "Amostras de cores",- dropzoneLabel: "DropZone",- selectPlaceholder: "Selecione um item",- tableResizer: "Redimensionador"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/ro-RO.mjs-var ND = {};-ND = {- colorSwatchPicker: "Specimene de culoare",- dropzoneLabel: "Zonă de plasare",- selectPlaceholder: "Selectați un element",- tableResizer: "Instrument de redimensionare"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/ru-RU.mjs-var PD = {};-PD = {- colorSwatchPicker: "Цветовые образцы",- dropzoneLabel: "DropZone",- selectPlaceholder: "Выберите элемент",- tableResizer: "Средство изменения размера"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/sk-SK.mjs-var FD = {};-FD = {- colorSwatchPicker: "Vzorkovníky farieb",- dropzoneLabel: "DropZone",- selectPlaceholder: "Vyberte položku",- tableResizer: "Nástroj na zmenu veľkosti"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/sl-SI.mjs-var ID = {};-ID = {- colorSwatchPicker: "Barvne palete",- dropzoneLabel: "DropZone",- selectPlaceholder: "Izberite element",- tableResizer: "Spreminjanje velikosti"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/sr-SP.mjs-var LD = {};-LD = {- colorSwatchPicker: "Uzorci boje",- dropzoneLabel: "DropZone",- selectPlaceholder: "Izaberite stavku",- tableResizer: "Promena veličine"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/sv-SE.mjs-var RD = {};-RD = {- colorSwatchPicker: "Färgrutor",- dropzoneLabel: "DropZone",- selectPlaceholder: "Välj en artikel",- tableResizer: "Storleksändrare"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/tr-TR.mjs-var zD = {};-zD = {- colorSwatchPicker: "Renk örnekleri",- dropzoneLabel: "Bırakma Bölgesi",- selectPlaceholder: "Bir öğe seçin",- tableResizer: "Yeniden boyutlandırıcı"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/uk-UA.mjs-var BD = {};-BD = {- colorSwatchPicker: "Зразки кольорів",- dropzoneLabel: "DropZone",- selectPlaceholder: "Виберіть елемент",- tableResizer: "Засіб змінення розміру"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/zh-CN.mjs-var VD = {};-VD = {- colorSwatchPicker: "颜色色板",- dropzoneLabel: "放置区域",- selectPlaceholder: "选择一个项目",- tableResizer: "尺寸调整器"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intl/zh-TW.mjs-var HD = {};-HD = {- colorSwatchPicker: "色票",- dropzoneLabel: "放置區",- selectPlaceholder: "選取項目",- tableResizer: "大小調整器"-};-//#endregion-//#region node_modules/react-aria-components/dist/private/intlStrings.mjs-var UD = {};-UD = {- "ar-AE": lD,- "bg-BG": uD,- "cs-CZ": dD,- "da-DK": fD,- "de-DE": pD,- "el-GR": mD,- "en-US": hD,- "es-ES": gD,- "et-EE": _D,- "fi-FI": vD,- "fr-FR": yD,- "he-IL": bD,- "hr-HR": xD,- "hu-HU": SD,- "it-IT": CD,- "ja-JP": wD,- "ko-KR": TD,- "lt-LT": ED,- "lv-LV": DD,- "nb-NO": OD,- "nl-NL": kD,- "pl-PL": AD,- "pt-BR": jD,- "pt-PT": MD,- "ro-RO": ND,- "ru-RU": PD,- "sk-SK": FD,- "sl-SI": ID,- "sr-SP": LD,- "sv-SE": RD,- "tr-TR": zD,- "uk-UA": BD,- "zh-CN": VD,- "zh-TW": HD-};-//#endregion-//#region node_modules/react-aria-components/dist/private/DragAndDrop.mjs-var WD = /*#__PURE__*/ (0, B.createContext)({}), GD = /*#__PURE__*/ (0, B.createContext)(null), Boe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { render: n } = (0, B.useContext)(GD);- return /*#__PURE__*/ B.createElement(B.Fragment, null, n(e, t));-});-function KD(e, t) {- let n = e?.renderDropIndicator, r = e?.isVirtualDragging?.(), i = (0, B.useCallback)((e) => {- if (r || t?.isDropTarget(e)) return n ? n(e) : /*#__PURE__*/ B.createElement(Boe, { target: e });- }, [- t?.target,- r,- n- ]);- return e?.useDropIndicator ? i : void 0;-}-function qD(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;- if (e != null) {- let r = n.collection.getItem(i)?.level ?? 0;- for (; e != null;) {- let i = n.collection.getItem(e);- if (!i) break;- if (i.type !== "item") {- e = n.collection.getKeyAfter(e);- continue;+ function n(n, r) {+ if (!e) return null;+ for (; r !== null;) t(n, r), r = r.sibling;+ return null;+ }+ function r(e) {+ for (var t = /* @__PURE__ */ new Map(); e !== null;) e.key === null ? t.set(e.index, e) : t.set(e.key, e), e = e.sibling;+ return t;+ }+ function a(e, t) {+ return e = Mi(e, t), e.index = 0, e.sibling = null, e;+ }+ function o(t, n, r) {+ return t.index = r, e ? (r = t.alternate, r === null ? (t.flags |= 134217730, n) : (r = r.index, r < n ? (t.flags |= 2, n) : r)) : (t.flags |= 1048576, n);+ }+ function s(t) {+ return e && t.alternate === null && (t.flags |= 134217730), t;+ }+ function c(e, t, n, r) {+ return t === null || t.tag !== 6 ? (t = Ii(n, e.mode, r), t.return = e, t) : (t = a(t, n), t.return = e, t);+ }+ function l(e, t, n, r) {+ var i = n.type;+ return i === O ? (e = d(e, t, n.props.children, r, n.key), so(e, n), e) : t !== null && (t.elementType === i || typeof i == "object" && i && i.$$typeof === I && eo(i) === t.type) ? (t = a(t, n.props), so(t, n), t.return = e, t) : (t = Pi(n.type, n.key, n.props, null, e.mode, r), so(t, n), t.return = e, t);+ }+ function u(e, t, n, r) {+ return t === null || t.tag !== 4 || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? (t = Ri(n, e.mode, r), t.return = e, t) : (t = a(t, n.children || []), t.return = e, t);+ }+ function d(e, t, n, r, i) {+ return t === null || t.tag !== 7 ? (t = Fi(n, e.mode, r, i), t.return = e, t) : (t = a(t, n), t.return = e, t);+ }+ function f(e, t, n) {+ if (typeof t == "string" && t !== "" || typeof t == "number" || typeof t == "bigint") return t = Ii("" + t, e.mode, n), t.return = e, t;+ if (typeof t == "object" && t) {+ switch (t.$$typeof) {+ case E: return n = Pi(t.type, t.key, t.props, null, e.mode, n), so(n, t), n.return = e, n;+ case D: return t = Ri(t, e.mode, n), t.return = e, t;+ case I: return t = eo(t), f(e, t, n);}- if ((i.level ?? 0) <= r) break;- t = e, e = n.collection.getKeyAfter(e);+ if (ue(t) || se(t)) return t = Fi(t, e.mode, n, null), t.return = e, t;+ if (typeof t.then == "function") return f(e, oo(t), n);+ if (t.$$typeof === M) return f(e, Ta(e, t), n);+ co(e, t);}+ return null;}- i = e ?? t ?? i;+ function p(e, t, n, r) {+ var i = t === null ? null : t.key;+ if (typeof n == "string" && n !== "" || typeof n == "number" || typeof n == "bigint") return i === null ? c(e, t, "" + n, r) : null;+ if (typeof n == "object" && n) {+ switch (n.$$typeof) {+ case E: return n.key === i ? l(e, t, n, r) : null;+ case D: return n.key === i ? u(e, t, n, r) : null;+ case I: return n = eo(n), p(e, t, n, r);+ }+ if (ue(n) || se(n)) return i === null ? d(e, t, n, r, null) : null;+ if (typeof n.then == "function") return p(e, t, oo(n), r);+ if (n.$$typeof === M) return p(e, t, Ta(e, n), r);+ co(e, n);+ }+ return null;+ }+ function m(e, t, n, r, i) {+ if (typeof r == "string" && r !== "" || typeof r == "number" || typeof r == "bigint") return e = e.get(n) || null, c(t, e, "" + r, i);+ if (typeof r == "object" && r) {+ switch (r.$$typeof) {+ case E: return e = e.get(r.key === null ? n : r.key) || null, l(t, e, r, i);+ case D: return e = e.get(r.key === null ? n : r.key) || null, u(t, e, r, i);+ case I: return r = eo(r), m(e, t, n, r, i);+ }+ if (ue(r) || se(r)) return e = e.get(n) || null, d(t, e, r, i, null);+ if (typeof r.then == "function") return m(e, t, n, oo(r), i);+ if (r.$$typeof === M) return m(e, t, n, Ta(t, r), i);+ co(t, r);+ }+ return null;+ }+ function h(i, a, s, c) {+ for (var l = null, u = null, d = a, h = a = 0, g = null; d !== null && h < s.length; h++) {+ d.index > h ? (g = d, d = null) : g = d.sibling;+ var _ = p(i, d, s[h], c);+ if (_ === null) {+ d === null && (d = g);+ break;+ }+ e && d && _.alternate === null && t(i, d), a = o(_, a, h), u === null ? l = _ : u.sibling = _, u = _, d = g;+ }+ if (h === s.length) return n(i, d), ra && Xi(i, h), l;+ if (d === null) {+ for (; h < s.length; h++) d = f(i, s[h], c), d !== null && (a = o(d, a, h), u === null ? l = d : u.sibling = d, u = d);+ return ra && Xi(i, h), l;+ }+ for (d = r(d); h < s.length; h++) g = m(d, i, h, s[h], c), g !== null && (e && (_ = g.alternate, _ !== null && d.delete(_.key === null ? h : _.key)), a = o(g, a, h), u === null ? l = g : u.sibling = g, u = g);+ return e && d.forEach(function(e) {+ return t(i, e);+ }), ra && Xi(i, h), l;+ }+ function g(a, s, c, l) {+ if (c == null) throw Error(i(151));+ for (var u = null, d = null, h = s, g = s = 0, _ = null, v = c.next(); h !== null && !v.done; g++, v = c.next()) {+ h.index > g ? (_ = h, h = null) : _ = h.sibling;+ var y = p(a, h, v.value, l);+ if (y === null) {+ h === null && (h = _);+ break;+ }+ e && h && y.alternate === null && t(a, h), s = o(y, s, g), d === null ? u = y : d.sibling = y, d = y, h = _;+ }+ if (v.done) return n(a, h), ra && Xi(a, g), u;+ if (h === null) {+ for (; !v.done; g++, v = c.next()) v = f(a, v.value, l), v !== null && (s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);+ return ra && Xi(a, g), u;+ }+ for (h = r(h); !v.done; g++, v = c.next()) v = m(h, a, g, v.value, l), v !== null && (e && (_ = v.alternate, _ !== null && h.delete(_.key === null ? g : _.key)), s = o(v, s, g), d === null ? u = v : d.sibling = v, d = v);+ return e && h.forEach(function(e) {+ return t(a, e);+ }), ra && Xi(a, g), u;+ }+ function _(e, r, o, c) {+ if (typeof o == "object" && o && o.type === O && o.key === null && o.props.ref === void 0 && (o = o.props.children), typeof o == "object" && o) {+ switch (o.$$typeof) {+ case E:+ a: {+ for (var l = o.key; r !== null;) {+ if (r.key === l) {+ if (l = o.type, l === O) {+ if (r.tag === 7) {+ n(e, r.sibling), c = a(r, o.props.children), so(c, o), c.return = e, e = c;+ break a;+ }+ } else if (r.elementType === l || typeof l == "object" && l && l.$$typeof === I && eo(l) === r.type) {+ n(e, r.sibling), c = a(r, o.props), so(c, o), c.return = e, e = c;+ break a;+ }+ n(e, r);+ break;+ }+ t(e, r), r = r.sibling;+ }+ o.type === O ? (c = Fi(o.props.children, e.mode, c, o.key), so(c, o), c.return = e, e = c) : (c = Pi(o.type, o.key, o.props, null, e.mode, c), so(c, o), c.return = e, e = c);+ }+ return s(e);+ case D:+ a: {+ for (l = o.key; r !== null;) {+ if (r.key === l) {+ if (r.tag === 4 && r.stateNode.containerInfo === o.containerInfo && r.stateNode.implementation === o.implementation) {+ n(e, r.sibling), c = a(r, o.children || []), c.return = e, e = c;+ break a;+ }+ n(e, r);+ break;+ }+ t(e, r), r = r.sibling;+ }+ c = Ri(o, e.mode, c), c.return = e, e = c;+ }+ return s(e);+ case I: return o = eo(o), _(e, r, o, c);+ }+ if (ue(o)) return h(e, r, o, c);+ if (se(o)) {+ if (l = se(o), typeof l != "function") throw Error(i(150));+ return o = l.call(o), g(e, r, o, c);+ }+ if (typeof o.then == "function") return _(e, r, oo(o), c);+ if (o.$$typeof === M) return _(e, r, Ta(e, o), c);+ co(e, o);+ }+ return typeof o == "string" && o !== "" || typeof o == "number" || typeof o == "bigint" ? (o = "" + o, r !== null && r.tag === 6 ? (n(e, r.sibling), c = a(r, o), c.return = e, e = c) : (n(e, r), c = Ii(o, e.mode, c), c.return = e, e = c), s(e)) : n(e, r);+ }+ return function(e, t, n, r) {+ try {+ ao = 0;+ var i = _(e, t, n, r);+ return io = null, i;+ } catch (t) {+ if (t === Ja || t === Xa) throw t;+ var a = Ai(29, t, null, e.mode);+ return a.lanes = r, a.return = e, a;+ }+ };}- return (0, B.useMemo)(() => new Set([r, i].filter((e) => e != null)), [r, i]);-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Header.mjs-var JD = /*#__PURE__*/ (0, B.createContext)({}), Voe = /*#__PURE__*/ (0, B.createContext)(null);-function YD(e) {- let t = (0, B.useRef)({});- return /*#__PURE__*/ B.createElement(Voe.Provider, { value: t }, e.children);-}-//#endregion-//#region node_modules/react-aria-components/dist/private/SelectionIndicator.mjs-var XD = /*#__PURE__*/ (0, B.createContext)({ isSelected: !1 }), ZD = /*#__PURE__*/ (0, B.createContext)({}), Hoe = /*#__PURE__*/ tg(class extends tp {- static {- this.type = "separator";+ var uo = lo(!0), fo = lo(!1), po = !1;+ function mo(e) {+ e.updateQueue = {+ baseState: e.memoizedState,+ firstBaseUpdate: null,+ lastBaseUpdate: null,+ shared: {+ pending: null,+ lanes: 0,+ hiddenCallbacks: null+ },+ callbacks: null+ };}- filter(e, t) {- let n = t.getItem(this.prevKey);- if (n && n.type !== "separator") {- let n = this.clone();- return t.addDescendants(n, e), n;- }- return null;+ function ho(e, t) {+ e = e.updateQueue, t.updateQueue === e && (t.updateQueue = {+ baseState: e.baseState,+ firstBaseUpdate: e.firstBaseUpdate,+ lastBaseUpdate: e.lastBaseUpdate,+ shared: e.shared,+ callbacks: null+ });}-}, function(e, t) {- [e, t] = RE(e, t, ZD);- let { elementType: n, orientation: r, style: i, className: a, slot: o, ...s } = e, c = n || "hr";- c === "hr" && r === "vertical" && (c = "div");- let l = HE[c], { separatorProps: u } = ene({- ...s,- elementType: n,- orientation: r- }), d = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(l, {- render: e.render,- ...U(d, u),- style: i,- className: a ?? "react-aria-Separator",- ref: t,- slot: o || void 0- });-});-//#endregion-//#region node_modules/react-aria/dist/private/utils/inertValue.mjs-function QD(e) {- let t = B.version.split(".");- return parseInt(t[0], 10) >= 19 ? e : e ? "true" : void 0;-}-//#endregion-//#region node_modules/react-stately/dist/private/list/ListCollection.mjs-var $D = class {- constructor(e) {- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;- let t = (e) => {- if (this.keyMap.set(e.key, e), e.childNodes && e.type === "section") for (let n of e.childNodes) t(n);+ function go(e) {+ return {+ lane: e,+ tag: 0,+ payload: null,+ callback: null,+ next: null};- for (let n of e) t(n);- let n = null, r = 0, i = 0;- for (let [e, t] of this.keyMap) n ? (n.nextKey = e, t.prevKey = n.key) : (this.firstKey = e, t.prevKey = void 0), t.type === "item" && (t.index = r++), (t.type === "section" || t.type === "item") && i++, n = t, n.nextKey = void 0;- this._size = i, this.lastKey = n?.key ?? null;}- *[Symbol.iterator]() {- yield* this.iterable;+ function _o(e, t, n) {+ var r = e.updateQueue;+ if (r === null) return null;+ if (r = r.shared, rd & 2) {+ var i = r.pending;+ return i === null ? t.next = t : (t.next = i.next, i.next = t), r.pending = t, t = Di(e), Ei(e, null, n), t;+ }+ return Ci(e, r, t, n), Di(e);}- get size() {- return this._size;+ function vo(e, t, n) {+ if (t = t.updateQueue, t !== null && (t = t.shared, n & 4194048)) {+ var r = t.lanes;+ r &= e.pendingLanes, n |= r, t.lanes = n, dt(e, n);+ }}- getKeys() {- return this.keyMap.keys();+ function yo(e, t) {+ var n = e.updateQueue, r = e.alternate;+ if (r !== null && (r = r.updateQueue, n === r)) {+ var i = null, a = null;+ if (n = n.firstBaseUpdate, n !== null) {+ do {+ var o = {+ lane: n.lane,+ tag: n.tag,+ payload: n.payload,+ callback: null,+ next: null+ };+ a === null ? i = a = o : a = a.next = o, n = n.next;+ } while (n !== null);+ a === null ? i = a = t : a = a.next = t;+ } else i = a = t;+ n = {+ baseState: r.baseState,+ firstBaseUpdate: i,+ lastBaseUpdate: a,+ shared: r.shared,+ callbacks: r.callbacks+ }, e.updateQueue = n;+ return;+ }+ e = n.lastBaseUpdate, e === null ? n.firstBaseUpdate = t : e.next = t, n.lastBaseUpdate = t;}- getKeyBefore(e) {- let t = this.keyMap.get(e);- return t ? t.prevKey ?? null : null;+ var bo = !1;+ function xo() {+ if (bo) {+ var e = za;+ if (e !== null) throw e;+ }}- getKeyAfter(e) {- let t = this.keyMap.get(e);- return t ? t.nextKey ?? null : null;+ function So(e, t, n, r) {+ bo = !1;+ var i = e.updateQueue;+ po = !1;+ var a = i.firstBaseUpdate, o = i.lastBaseUpdate, s = i.shared.pending;+ if (s !== null) {+ i.shared.pending = null;+ var c = s, l = c.next;+ c.next = null, o === null ? a = l : o.next = l, o = c;+ var u = e.alternate;+ u !== null && (u = u.updateQueue, s = u.lastBaseUpdate, s !== o && (s === null ? u.firstBaseUpdate = l : s.next = l, u.lastBaseUpdate = c));+ }+ if (a !== null) {+ var d = i.baseState;+ o = 0, u = l = c = null, s = a;+ do {+ var f = s.lane & -536870913, p = f !== s.lane;+ if (p ? (od & f) === f : (r & f) === f) {+ f !== 0 && f === Ra && (bo = !0), u !== null && (u = u.next = {+ lane: 0,+ tag: s.tag,+ payload: s.payload,+ callback: null,+ next: null+ });+ a: {+ var m = e, h = s;+ f = t;+ var g = n;+ switch (h.tag) {+ case 1:+ if (m = h.payload, typeof m == "function") {+ d = m.call(g, d, f);+ break a;+ }+ d = m;+ break a;+ case 3: m.flags = m.flags & -65537 | 128;+ case 0:+ if (m = h.payload, f = typeof m == "function" ? m.call(g, d, f) : m, f == null) break a;+ d = w({}, d, f);+ break a;+ case 2: po = !0;+ }+ }+ f = s.callback, f !== null && (e.flags |= 64, p && (e.flags |= 8192), p = i.callbacks, p === null ? i.callbacks = [f] : p.push(f));+ } else p = {+ lane: f,+ tag: s.tag,+ payload: s.payload,+ callback: s.callback,+ next: null+ }, u === null ? (l = u = p, c = d) : u = u.next = p, o |= f;+ if (s = s.next, s === null) {+ if (s = i.shared.pending, s === null) break;+ p = s, s = p.next, p.next = null, i.lastBaseUpdate = p, i.shared.pending = null;+ }+ } while (1);+ u === null && (c = d), i.baseState = c, i.firstBaseUpdate = l, i.lastBaseUpdate = u, a === null && (i.shared.lanes = 0), md |= o, e.lanes = o, e.memoizedState = d;+ }}- getFirstKey() {- return this.firstKey;+ function Co(e, t) {+ if (typeof e != "function") throw Error(i(191, e));+ e.call(t);}- getLastKey() {- return this.lastKey;+ function wo(e, t) {+ var n = e.callbacks;+ if (n !== null) for (e.callbacks = null, e = 0; e < n.length; e++) Co(n[e], t);}- getItem(e) {- return this.keyMap.get(e) ?? null;+ var To = R(null), Eo = R(0);+ function Do(e, t) {+ e = fd, ge(Eo, e), ge(To, t), fd = e | t.baseLanes;}- at(e) {- let t = [...this.getKeys()];- return this.getItem(t[e]);+ function Oo() {+ ge(Eo, fd), ge(To, To.current);}- getChildren(e) {- return this.keyMap.get(e)?.childNodes || [];+ function ko() {+ fd = Eo.current, he(To), he(Eo);}-}, eO = 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);+ var Ao = R(null), jo = null;+ function Mo(e) {+ var t = e.alternate;+ ge(Lo, Lo.current & 1), ge(Ao, e), jo === null && (t === null || To.current !== null || t.memoizedState !== null) && (jo = e);}-};-//#endregion-//#region node_modules/react-stately/dist/private/selection/useMultipleSelectionState.mjs-function Uoe(e, t) {- if (e.size !== t.size) return !1;- for (let n of e) if (!t.has(n)) return !1;- return !0;-}-function tO(e) {- let { selectionMode: t = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: a = "all" } = e, o = (0, B.useRef)(!1), [, s] = (0, B.useState)(!1), c = (0, B.useRef)(null), l = (0, B.useRef)(null), [, u] = (0, B.useState)(null), [d, f] = L_((0, B.useMemo)(() => nO(e.selectedKeys), [e.selectedKeys]), (0, B.useMemo)(() => nO(e.defaultSelectedKeys, new eO()), [e.defaultSelectedKeys]), e.onSelectionChange), p = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), [m, h] = (0, B.useState)(i);- i === "replace" && m === "toggle" && typeof d == "object" && d.size === 0 && h("replace");- let g = (0, B.useRef)(i);- return (0, B.useEffect)(() => {- i !== g.current && (h(i), g.current = i);- }, [i]), {- selectionMode: t,- disallowEmptySelection: n,- selectionBehavior: m,- setSelectionBehavior: h,- get isFocused() {- return o.current;- },- setFocused(e) {- o.current = e, s(e);- },- get focusedKey() {- return c.current;- },- get childFocusStrategy() {- return l.current;- },- setFocusedKey(e, t = "first") {- c.current = e, l.current = t, u(e);- },- selectedKeys: d,- setSelectedKeys(e) {- (r || !Uoe(e, d)) && f(e);- },- disabledKeys: p,- disabledBehavior: a- };-}-function nO(e, t) {- return e ? e === "all" ? "all" : new eO(e) : t;-}-//#endregion-//#region node_modules/react-stately/dist/private/selection/SelectionManager.mjs-var rO = 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;+ function No(e) {+ ge(Lo, Lo.current), ge(Ao, e), jo === null && (jo = e);}- get selectionMode() {- return this.state.selectionMode;+ function Po(e) {+ e.tag === 22 ? (ge(Lo, Lo.current), ge(Ao, e), jo === null && (jo = e)) : Fo();}- get disallowEmptySelection() {- return this.state.disallowEmptySelection;+ function Fo() {+ ge(Lo, Lo.current), ge(Ao, Ao.current);+ }+ function Io(e) {+ he(Ao), jo === e && (jo = null), he(Lo);+ }+ var Lo = R(0);+ function Ro(e, t) {+ ge(Ao, Ao.current), ge(Lo, t);+ }+ function zo(e) {+ he(Lo), he(Ao), jo === e && (jo = null);+ }+ function Bo(e) {+ for (var t = e; t !== null;) {+ if (t.tag === 13) {+ var n = t.memoizedState;+ if (n !== null && (n = n.dehydrated, n === null || gm(n) || _m(n))) return t;+ } else if (t.tag === 19 && t.memoizedProps.revealOrder !== "independent") {+ if (t.flags & 128) return t;+ } else if (t.child !== null) {+ t.child.return = t, t = t.child;+ continue;+ }+ if (t === e) break;+ for (; t.sibling === null;) {+ if (t.return === null || t.return === e) return null;+ t = t.return;+ }+ t.sibling.return = t.return, t = t.sibling;+ }+ return null;+ }+ var Vo = 0, Ho = null, Uo = null, Wo = null, Go = !1, Ko = !1, qo = !1, Jo = 0, Yo = 0, Xo = null, Zo = 0;+ function Qo() {+ throw Error(i(321));+ }+ function $o(e, t) {+ if (t === null) return !1;+ for (var n = 0; n < t.length && n < e.length; n++) if (!zr(e[n], t[n])) return !1;+ return !0;+ }+ function es(e, t, n, r, i, a) {+ return Vo = a, Ho = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, L.H = e === null || e.memoizedState === null ? _c : vc, qo = !1, a = n(r, i), qo = !1, Ko && (a = ns(t, n, r, i)), ts(e), a;+ }+ function ts(e) {+ L.H = gc;+ var t = Uo !== null && Uo.next !== null;+ if (Vo = 0, Wo = Uo = Ho = null, Go = !1, Yo = 0, Xo = null, t) throw Error(i(300));+ e === null || Fc || (e = e.dependencies, e !== null && Sa(e) && (Fc = !0));+ }+ function ns(e, t, n, r) {+ Ho = e;+ var a = 0;+ do {+ if (Ko && (Xo = null), Yo = 0, Ko = !1, 25 <= a) throw Error(i(301));+ if (a += 1, Wo = Uo = null, e.updateQueue != null) {+ var o = e.updateQueue;+ o.lastEffect = null, o.events = null, o.stores = null, o.memoCache != null && (o.memoCache.index = 0);+ }+ L.H = yc, o = t(n, r);+ } while (Ko);+ return o;}- get selectionBehavior() {- return this.state.selectionBehavior;+ function rs() {+ var e = L.H, t = e.useState()[0];+ return t = typeof t.then == "function" ? us(t) : t, e = e.useState()[0], (Uo === null ? null : Uo.memoizedState) !== e && (Ho.flags |= 1024), t;}- setSelectionBehavior(e) {- this.state.setSelectionBehavior(e);+ function is() {+ var e = Jo !== 0;+ return Jo = 0, e;}- get isFocused() {- return this.state.isFocused;+ function as(e, t, n) {+ t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~n;}- setFocused(e) {- this.state.setFocused(e);+ function os(e) {+ if (Go) {+ for (e = e.memoizedState; e !== null;) {+ var t = e.queue;+ t !== null && (t.pending = null), e = e.next;+ }+ Go = !1;+ }+ Vo = 0, Wo = Uo = Ho = null, Ko = !1, Yo = Jo = 0, Xo = null;}- get focusedKey() {- return this.state.focusedKey;+ function ss() {+ var e = {+ memoizedState: null,+ baseState: null,+ baseQueue: null,+ queue: null,+ next: null+ };+ return Wo === null ? Ho.memoizedState = Wo = e : Wo = Wo.next = e, Wo;}- get childFocusStrategy() {- return this.state.childFocusStrategy;+ function cs() {+ if (Uo === null) {+ var e = Ho.alternate;+ e = e === null ? null : e.memoizedState;+ } else e = Uo.next;+ var t = Wo === null ? Ho.memoizedState : Wo.next;+ if (t !== null) Wo = t, Uo = e;+ else {+ if (e === null) throw Ho.alternate === null ? Error(i(467)) : Error(i(310));+ Uo = e, e = {+ memoizedState: Uo.memoizedState,+ baseState: Uo.baseState,+ baseQueue: Uo.baseQueue,+ queue: Uo.queue,+ next: null+ }, Wo === null ? Ho.memoizedState = Wo = e : Wo = Wo.next = e;+ }+ return Wo;}- setFocusedKey(e, t) {- (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);+ function ls() {+ return {+ lastEffect: null,+ events: null,+ stores: null,+ memoCache: null+ };}- get selectedKeys() {- return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;+ function us(e) {+ var t = Yo;+ return Yo += 1, Xo === null && (Xo = []), e = $a(Xo, e, t), t = Ho, (Wo === null ? t.memoizedState : Wo.next) === null && (t = t.alternate, L.H = t === null || t.memoizedState === null ? _c : vc), e;}- get rawSelection() {- return this.state.selectedKeys;+ function ds(e) {+ if (typeof e == "object" && e) {+ if (typeof e.then == "function") return us(e);+ if (e.$$typeof === ae) return;+ if (e.$$typeof === M) return wa(e);+ }+ throw Error(i(438, String(e)));}- isSelected(e) {- if (this.state.selectionMode === "none") return !1;- let t = this.getKey(e);- return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);+ function fs(e) {+ var t = null, n = Ho.updateQueue;+ if (n !== null && (t = n.memoCache), t == null) {+ var r = Ho.alternate;+ r !== null && (r = r.updateQueue, r !== null && (r = r.memoCache, r != null && (t = {+ data: r.data.map(function(e) {+ return e.slice();+ }),+ index: 0+ })));+ }+ if (t ??= {+ data: [],+ index: 0+ }, n === null && (n = ls(), Ho.updateQueue = n), n.memoCache = t, n = t.data[t.index], n === void 0) for (n = t.data[t.index] = Array(e), r = 0; r < e; r++) n[r] = re;+ return t.index++, n;}- get isEmpty() {- return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;+ function ps(e, t) {+ return typeof t == "function" ? t(e) : t;}- get isSelectAll() {- if (this.isEmpty) return !1;- if (this.state.selectedKeys === "all") return !0;- if (this._isSelectAll != null) return this._isSelectAll;- let e = this.getSelectAllKeys(), t = this.state.selectedKeys;- return this._isSelectAll = e.every((e) => t.has(e)), this._isSelectAll;+ function ms(e) {+ return hs(cs(), Uo, e);}- get firstSelectedKey() {- let e = null;- for (let t of this.state.selectedKeys) {- let n = this.collection.getItem(t);- (!e || n && Gv(this.collection, n, e) < 0) && (e = n);+ function hs(e, t, n) {+ var r = e.queue;+ if (r === null) throw Error(i(311));+ r.lastRenderedReducer = n;+ var a = e.baseQueue, o = r.pending;+ if (o !== null) {+ if (a !== null) {+ var s = a.next;+ a.next = o.next, o.next = s;+ }+ t.baseQueue = a = o, r.pending = null;}- return e?.key ?? null;+ if (o = e.baseState, a === null) e.memoizedState = o;+ else {+ t = a.next;+ var c = s = null, l = null, u = t, d = !1;+ do {+ var f = u.lane & -536870913;+ if (f === u.lane ? (Vo & f) === f : (od & f) === f) {+ var p = u.revertLane;+ if (p === 0) l !== null && (l = l.next = {+ lane: 0,+ revertLane: 0,+ gesture: null,+ action: u.action,+ hasEagerState: u.hasEagerState,+ eagerState: u.eagerState,+ next: null+ }), f === Ra && (d = !0);+ else if ((Vo & p) === p) {+ u = u.next, p === Ra && (d = !0);+ continue;+ } else f = {+ lane: 0,+ revertLane: u.revertLane,+ gesture: null,+ action: u.action,+ hasEagerState: u.hasEagerState,+ eagerState: u.eagerState,+ next: null+ }, l === null ? (c = l = f, s = o) : l = l.next = f, Ho.lanes |= p, md |= p;+ f = u.action, qo && n(o, f), o = u.hasEagerState ? u.eagerState : n(o, f);+ } else p = {+ lane: f,+ revertLane: u.revertLane,+ gesture: u.gesture,+ action: u.action,+ hasEagerState: u.hasEagerState,+ eagerState: u.eagerState,+ next: null+ }, l === null ? (c = l = p, s = o) : l = l.next = p, Ho.lanes |= f, md |= f;+ u = u.next;+ } while (u !== null && u !== t);+ if (l === null ? s = o : l.next = c, !zr(o, e.memoizedState) && (Fc = !0, d && (n = za, n !== null))) throw n;+ e.memoizedState = o, e.baseState = s, e.baseQueue = l, r.lastRenderedState = o;+ }+ return a === null && (r.lanes = 0), [e.memoizedState, r.dispatch];}- get lastSelectedKey() {- let e = null;- for (let t of this.state.selectedKeys) {- let n = this.collection.getItem(t);- (!e || n && Gv(this.collection, n, e) > 0) && (e = n);+ function gs(e) {+ var t = cs(), n = t.queue;+ if (n === null) throw Error(i(311));+ n.lastRenderedReducer = e;+ var r = n.dispatch, a = n.pending, o = t.memoizedState;+ if (a !== null) {+ n.pending = null;+ var s = a = a.next;+ do+ o = e(o, s.action), s = s.next;+ while (s !== a);+ zr(o, t.memoizedState) || (Fc = !0), t.memoizedState = o, t.baseQueue === null && (t.baseState = o), n.lastRenderedState = o;}- return e?.key ?? null;+ return [o, r];}- get disabledKeys() {- return this.state.disabledKeys;+ function _s(e, t, n) {+ var r = Ho, a = cs(), o = ra;+ if (o) {+ if (n === void 0) throw Error(i(407));+ n = n();+ } else n = t();+ var s = !zr((Uo || a).memoizedState, n);+ if (s && (a.memoizedState = n, Fc = !0), a = a.queue, Hs(bs.bind(null, r, a, e), [e]), e = a.getSnapshot !== t || s || Wo !== null && !!(Wo.memoizedState.tag & 1), Ls(e ? 9 : 8, { destroy: void 0 }, ys.bind(null, r, a, n, t), null), e) {+ if (r.flags |= 2048, id === null) throw Error(i(349));+ o || Vo & 127 || vs(r, t, n);+ }+ return n;}- get disabledBehavior() {- return this.state.disabledBehavior;+ function vs(e, t, n) {+ e.flags |= 16384, e = {+ getSnapshot: t,+ value: n+ }, t = Ho.updateQueue, t === null ? (t = ls(), Ho.updateQueue = t, t.stores = [e]) : (n = t.stores, n === null ? t.stores = [e] : n.push(e));}- extendSelection(e) {- if (this.selectionMode === "none") return;- if (this.selectionMode === "single") {- this.replaceSelection(e);- return;- }- let t = this.getKey(e);- if (t == null) return;- let n;- if (this.state.selectedKeys === "all") n = new eO([t], t, t);- else {- let e = this.state.selectedKeys, r = e.anchorKey ?? t;- n = new eO(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);+ function ys(e, t, n, r) {+ t.value = n, t.getSnapshot = r, xs(t) && Ss(e);+ }+ function bs(e, t, n) {+ return n(function() {+ xs(t) && Ss(e);+ });+ }+ function xs(e) {+ var t = e.getSnapshot;+ e = e.value;+ try {+ var n = t();+ return !zr(e, n);+ } catch {+ return !0;}- this.state.setSelectedKeys(n);}- getKeyRange(e, t) {- let n = this.collection.getItem(e), r = this.collection.getItem(t);- return n && r ? Gv(this.collection, n, r) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];+ function Ss(e) {+ var t = Ti(e, 2);+ t !== null && Hd(t, e, 2);}- getKeyRangeInternal(e, t) {- if (this.layoutDelegate?.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);- let n = [], r = e;- for (; r != null;) {- let e = this.collection.getItem(r);- if (e && (e.type === "item" || e.type === "cell" && this.allowsCellSelection) && n.push(r), r === t) return n;- r = this.collection.getKeyAfter(r);+ function Cs(e) {+ var t = ss();+ if (typeof e == "function") {+ var n = e;+ if (e = n(), qo) {+ Je(!0);+ try {+ n();+ } finally {+ Je(!1);+ }+ }}- return [];+ return t.memoizedState = t.baseState = e, t.queue = {+ pending: null,+ lanes: 0,+ dispatch: null,+ lastRenderedReducer: ps,+ lastRenderedState: e+ }, t;}- getKey(e) {- let t = this.collection.getItem(e);- if (!t || t.type === "cell" && this.allowsCellSelection) return e;- for (; t && t.type !== "item" && t.parentKey != null;) t = this.collection.getItem(t.parentKey);- return !t || t.type !== "item" ? null : t.key;+ function ws(e, t, n, r) {+ return e.baseState = n, hs(e, Uo, typeof r == "function" ? r : ps);}- toggleSelection(e) {- if (this.selectionMode === "none") return;- if (this.selectionMode === "single" && !this.isSelected(e)) {- this.replaceSelection(e);- return;+ function Ts(e, t, n, r, a) {+ if (pc(e)) throw Error(i(485));+ if (e = t.action, e !== null) {+ var o = {+ payload: a,+ action: e,+ next: null,+ isTransition: !0,+ status: "pending",+ value: null,+ reason: null,+ listeners: [],+ then: function(e) {+ o.listeners.push(e);+ }+ };+ L.T === null ? o.isTransition = !1 : n(!0), r(o), n = t.pending, n === null ? (o.next = t.pending = o, Es(t, o)) : (o.next = n.next, t.pending = n.next = o);}- let t = this.getKey(e);- if (t == null) return;- let n = new eO(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 eO([t], t, t) : new eO();- this.state.setSelectedKeys(n);+ function Es(e, t) {+ var n = t.action, r = t.payload, i = e.state;+ if (t.isTransition) {+ var a = L.T, o = {};+ o.types = a === null ? null : a.types, L.T = o;+ try {+ var s = n(i, r), c = L.S;+ c !== null && c(o, s), Ds(e, t, s);+ } catch (n) {+ ks(e, t, n);+ } finally {+ a !== null && o.types !== null && (a.types = o.types), L.T = a;+ }+ } else try {+ a = n(i, r), Ds(e, t, a);+ } catch (n) {+ ks(e, t, n);+ }}- setSelectedKeys(e) {- if (this.selectionMode === "none") return;- let t = new eO();- for (let n of e) {- let e = this.getKey(n);- if (e != null && (t.add(e), this.selectionMode === "single")) break;+ function Ds(e, t, n) {+ typeof n == "object" && n && typeof n.then == "function" ? n.then(function(n) {+ Os(e, t, n);+ }, function(n) {+ return ks(e, t, n);+ }) : Os(e, t, n);+ }+ function Os(e, t, n) {+ t.status = "fulfilled", t.value = n, As(t), e.state = n, t = e.pending, t !== null && (n = t.next, n === t ? e.pending = null : (n = n.next, t.next = n, Es(e, n)));+ }+ function ks(e, t, n) {+ var r = e.pending;+ if (e.pending = null, r !== null) {+ r = r.next;+ do+ t.status = "rejected", t.reason = n, As(t), t = t.next;+ while (t !== r);}- this.state.setSelectedKeys(t);+ e.action = null;}- getSelectAllKeys() {- let e = this.fullCollection ?? this.collection, t = [], n = (r) => {- for (; r != null;) {- if (this.canSelectItemIn(r, e)) {- let i = e.getItem(r);- i?.type === "item" && t.push(r), i?.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && n(Hv(Vv(i, e))?.key ?? null);+ function As(e) {+ e = e.listeners;+ for (var t = 0; t < e.length; t++) (0, e[t])();+ }+ function js(e, t) {+ return t;+ }+ function Ms(e, t) {+ if (ra) {+ var n = id.formState;+ if (n !== null) {+ a: {+ var r = Ho;+ if (ra) {+ if (na) {+ b: {+ for (var i = na, a = aa; i.nodeType !== 8;) {+ if (!a) {+ i = null;+ break b;+ }+ if (i = ym(i.nextSibling), i === null) {+ i = null;+ break b;+ }+ }+ a = i.data, i = a === "F!" || a === "F" ? i : null;+ }+ if (i) {+ na = ym(i.nextSibling), r = i.data === "F!";+ break a;+ }+ }+ sa(r);+ }+ r = !1;}- r = e.getKeyAfter(r);+ r && (t = n[0]);}- };- return n(e.getFirstKey()), t;+ }+ return n = ss(), n.memoizedState = n.baseState = t, r = {+ pending: null,+ lanes: 0,+ dispatch: null,+ lastRenderedReducer: js,+ lastRenderedState: t+ }, n.queue = r, n = uc.bind(null, Ho, r), r.dispatch = n, r = Cs(!1), a = fc.bind(null, Ho, !1, r.queue), r = ss(), i = {+ state: t,+ dispatch: null,+ action: e,+ pending: null+ }, r.queue = i, n = Ts.bind(null, Ho, i, a, n), i.dispatch = n, r.memoizedState = e, [+ t,+ n,+ !1+ ];}- selectAll() {- !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");+ function Ns(e) {+ return Ps(cs(), Uo, e);}- clearSelection() {- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new eO());+ function Ps(e, t, n) {+ if (t = hs(e, t, js)[0], e = ms(ps)[0], typeof t == "object" && t && typeof t.then == "function") try {+ var r = us(t);+ } catch (e) {+ throw e === Ja ? Xa : e;+ }+ else r = t;+ t = cs();+ var i = t.queue, a = i.dispatch;+ return n !== t.memoizedState && (Ho.flags |= 2048, Ls(9, { destroy: void 0 }, Fs.bind(null, i, n), null)), [+ r,+ a,+ e+ ];}- toggleSelectAll() {- this.isSelectAll ? this.clearSelection() : this.selectAll();+ function Fs(e, t) {+ e.action = t;}- select(e, t) {- this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));+ function Is(e) {+ var t = cs(), n = Uo;+ if (n !== null) return Ps(t, n, e);+ cs(), t = t.memoizedState, n = cs();+ var r = n.queue.dispatch;+ return n.memoizedState = e, [+ t,+ r,+ !1+ ];}- isSelectionEqual(e) {- if (e === this.state.selectedKeys) return !0;- let t = this.selectedKeys;- if (e.size !== t.size) return !1;- for (let n of e) if (!t.has(n)) return !1;- for (let n of t) if (!e.has(n)) return !1;- return !0;+ function Ls(e, t, n, r) {+ return e = {+ tag: e,+ create: n,+ deps: r,+ inst: t,+ next: null+ }, t = Ho.updateQueue, t === null && (t = ls(), Ho.updateQueue = t), n = t.lastEffect, n === null ? t.lastEffect = e.next = e : (r = n.next, n.next = e, e.next = r, t.lastEffect = e), e;}- canSelectItem(e) {- return this.canSelectItemIn(e, this.collection);+ function Rs() {+ return cs().memoizedState;}- canSelectItemIn(e, t) {- if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;- let n = t.getItem(e);- return !(!n || n?.props?.isDisabled || n.type === "cell" && !this.allowsCellSelection);+ function zs(e, t, n, r) {+ var i = ss();+ Ho.flags |= e, i.memoizedState = Ls(1 | t, { destroy: void 0 }, n, r === void 0 ? null : r);}- isDisabled(e) {- let t = this.collection.getItem(e);- return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!t?.props?.isDisabled) && t?.props?.disabledBehavior !== "selection";+ function Bs(e, t, n, r) {+ var i = cs();+ r = r === void 0 ? null : r;+ var a = i.memoizedState.inst;+ Uo !== null && r !== null && $o(r, Uo.memoizedState.deps) ? i.memoizedState = Ls(t, a, n, r) : (Ho.flags |= e, i.memoizedState = Ls(1 | t, a, n, r));+ }+ function Vs(e, t) {+ zs(8390656, 8, e, t);+ }+ function Hs(e, t) {+ Bs(2048, 8, e, t);+ }+ function Us(e) {+ Ho.flags |= 4;+ var t = Ho.updateQueue;+ if (t === null) t = ls(), Ho.updateQueue = t, t.events = [e];+ else {+ var n = t.events;+ n === null ? t.events = [e] : n.push(e);+ }+ }+ function Ws(e) {+ var t = cs().memoizedState;+ return Us({+ ref: t,+ nextImpl: e+ }), function() {+ if (rd & 2) throw Error(i(440));+ return t.impl.apply(void 0, arguments);+ };}- isLink(e) {- return !!this.collection.getItem(e)?.props?.href;+ function Gs(e, t) {+ return Bs(4, 2, e, t);}- getItemProps(e) {- return this.collection.getItem(e)?.props;+ function Ks(e, t) {+ return Bs(4, 4, e, t);}- withCollection(t) {- return new e(t, this.state, {- allowsCellSelection: this.allowsCellSelection,- layoutDelegate: this.layoutDelegate || void 0,- fullCollection: this.fullCollection ?? this.collection- });+ function qs(e, t) {+ if (typeof t == "function") {+ e = e();+ var n = t(e);+ return function() {+ typeof n == "function" ? n() : t(null);+ };+ }+ if (t != null) return e = e(), t.current = e, function() {+ t.current = null;+ };}-}, Woe = class {- build(e, t) {- return this.context = t, iO(() => this.iterateCollection(e));+ function Js(e, t, n) {+ n = n == null ? null : n.concat([e]), Bs(4, 4, qs.bind(null, t, e), n);}- *iterateCollection(e) {- let { children: t, items: n } = e;- if (B.isValidElement(t) && t.type === B.Fragment) yield* this.iterateCollection({- children: t.props.children,- items: n- });- else if (typeof t == "function") {- if (!n) throw Error("props.children was a function but props.items is missing");- let e = 0;- for (let r of n) yield* this.getFullNode({- value: r,- index: e- }, { renderer: t }), e++;- } else {- let e = [];- B.Children.forEach(t, (t) => {- t && e.push(t);- });- let n = 0;- for (let t of e) {- let e = this.getFullNode({- element: t,- index: n- }, {});- for (let t of e) n++, yield t;+ function Ys() {}+ function Xs(e, t) {+ var n = cs();+ t = t === void 0 ? null : t;+ var r = n.memoizedState;+ return t !== null && $o(t, r[1]) ? r[0] : (n.memoizedState = [e, t], e);+ }+ function Zs(e, t) {+ var n = cs();+ t = t === void 0 ? null : t;+ var r = n.memoizedState;+ if (t !== null && $o(t, r[1])) return r[0];+ if (r = e(), qo) {+ Je(!0);+ try {+ e();+ } finally {+ Je(!1);}}+ return n.memoizedState = [r, t], r;}- getKey(e, t, n, r) {- if (e.key != null) return e.key;- if (t.type === "cell" && t.key != null) return `${r}${t.key}`;- let i = t.value;- if (i != null) {- let e = i.key ?? i.id;- if (e == null) throw Error("No key found for item");- return e;- }- return r ? `${r}.${t.index}` : `$.${t.index}`;+ function Qs(e, t, n) {+ return n === void 0 || Vo & 1073741824 && !(od & 261930) ? e.memoizedState = t : (e.memoizedState = n, e = Bd(), Ho.lanes |= e, md |= e, n);}- getChildState(e, t) {- return { renderer: t.renderer || e.renderer };+ function $s(e, t, n, r) {+ return zr(n, t) ? n : To.current === null ? !(Vo & 106) || Vo & 1073741824 && !(od & 261930) ? (Fc = !0, e.memoizedState = n) : (e = Bd(), Ho.lanes |= e, md |= e, t) : (e = Qs(e, n, r), zr(e, t) || (Fc = !0), e);}- *getFullNode(e, t, n, r) {- if (B.isValidElement(e.element) && e.element.type === B.Fragment) {- let i = [];- B.Children.forEach(e.element.props.children, (e) => {- i.push(e);- });- let a = e.index ?? 0;- for (let e of i) yield* this.getFullNode({- element: e,- index: a++- }, t, n, r);- return;- }- let i = e.element;- if (!i && e.value && t && t.renderer) {- let n = this.cache.get(e.value);- if (n && (!n.shouldInvalidate || !n.shouldInvalidate(this.context))) {- n.index = e.index, n.parentKey = r ? r.key : null, yield n;- return;- }- i = t.renderer(e.value);- }- if (B.isValidElement(i)) {- let a = i.type;- if (typeof a != "function" && typeof a.getCollectionNode != "function") {- let e = i.type;- throw Error(`Unknown element <${e}> in collection.`);- }- let o = a.getCollectionNode(i.props, this.context), s = e.index ?? 0, c = o.next();- for (; !c.done && c.value;) {- let a = c.value;- e.index = s;- let l = a.key ?? null;- l ??= a.element ? null : this.getKey(i, e, t, n);- let u = [...this.getFullNode({- ...a,- key: l,- index: s,- wrapper: Goe(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 <${aO(t.type)}> in <${aO(r?.type ?? "unknown parent type")}>. Only <${aO(e.type)}> is supported.`);- s++, yield t;- }- c = o.next(u);- }- return;+ function ec(e, t, n, r, i) {+ var a = de.p;+ de.p = a !== 0 && 8 > a ? a : 8;+ var o = L.T, s = {};+ s.types = o === null ? null : o.types, L.T = s, fc(e, !1, t, n);+ try {+ var c = i(), l = L.S;+ l !== null && l(s, c), typeof c == "object" && c && typeof c.then == "function" ? dc(e, t, Ha(c, r), zd(e)) : dc(e, t, r, zd(e));+ } catch (n) {+ dc(e, t, {+ then: function() {},+ status: "rejected",+ reason: n+ }, zd());+ } finally {+ de.p = a, o !== null && s.types !== null && (o.types = s.types), L.T = o;}- if (e.key == null || e.type == null) return;- let a = this, o = {- type: e.type,- props: e.props,- key: e.key,- parentKey: r ? r.key : null,- value: e.value ?? null,- level: (r?.level ?? 0) + +(r?.type === "item"),- index: e.index,- rendered: e.rendered,- textValue: e.textValue ?? "",- "aria-label": e["aria-label"],- wrapper: e.wrapper,- shouldInvalidate: e.shouldInvalidate,- hasChildNodes: e.hasChildNodes || !1,- childNodes: iO(function* () {- if (!e.hasChildNodes || !e.childNodes) return;- let n = 0;- for (let r of e.childNodes()) {- r.key != null && (r.key = `${o.key}${r.key}`);- let e = a.getFullNode({- ...r,- index: n- }, a.getChildState(t, r), o.key, o);- for (let t of e) n++, yield t;- }- })+ }+ function tc() {}+ function nc(e, t, n, r) {+ if (e.tag !== 5) throw Error(i(476));+ var a = rc(e).queue;+ ec(e, a, t, fe, n === null ? tc : function() {+ return ic(e), n(r);+ });+ }+ function rc(e) {+ var t = e.memoizedState;+ if (t !== null) return t;+ t = {+ memoizedState: fe,+ baseState: fe,+ baseQueue: null,+ queue: {+ pending: null,+ lanes: 0,+ dispatch: null,+ lastRenderedReducer: ps,+ lastRenderedState: fe+ },+ next: null};- yield o;+ var n = {};+ return t.next = {+ memoizedState: n,+ baseState: n,+ baseQueue: null,+ queue: {+ pending: null,+ lanes: 0,+ dispatch: null,+ lastRenderedReducer: ps,+ lastRenderedState: n+ },+ next: null+ }, e.memoizedState = t, e = e.alternate, e !== null && (e.memoizedState = t), t;}- constructor() {- this.cache = /* @__PURE__ */ new WeakMap();+ function ic(e) {+ var t = rc(e);+ t.next === null && (t = e.alternate.memoizedState), dc(e, t.next.queue, {}, zd());}-};-function iO(e) {- let t = [], n = null;- return { *[Symbol.iterator]() {- for (let e of t) yield e;- n ||= e();- for (let e of n) t.push(e), yield e;- } };-}-function Goe(e, t) {- if (e && t) return (n) => e(t(n));- if (e) return e;- if (t) return t;-}-function aO(e) {- return e[0].toUpperCase() + e.slice(1);-}-//#endregion-//#region node_modules/react-stately/dist/private/collections/useCollection.mjs-function oO(e, t, n) {- let r = (0, B.useMemo)(() => new Woe(), []), { children: i, items: a, collection: o } = e;- return (0, B.useMemo)(() => o || t(r.build({- children: i,- items: a- }, n)), [- r,- i,- a,- o,- n,- t- ]);-}-//#endregion-//#region node_modules/react-stately/dist/private/list/useListState.mjs-function sO(e) {- let { filter: t, layoutDelegate: n } = e, r = tO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = oO(e, (0, B.useCallback)((e) => t ? new $D(t(e)) : new $D(e), [t]), (0, B.useMemo)(() => ({ suppressTextValueWarning: e.suppressTextValueWarning }), [e.suppressTextValueWarning])), o = (0, B.useMemo)(() => new rO(a, r, { layoutDelegate: n }), [- a,- r,- n- ]);- return cO(a, o), {- collection: a,- disabledKeys: i,- selectionManager: o- };-}-function Koe(e, t) {- let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);- return cO(n, r), {- collection: n,- selectionManager: r,- disabledKeys: e.disabledKeys- };-}-function cO(e, t) {- let n = (0, B.useRef)(null);- (0, B.useEffect)(() => {- if (t.focusedKey != null && !e.getItem(t.focusedKey) && n.current) {- let r = n.current.getKeyAfter(t.focusedKey), i = null;- for (; r != null;) {- let a = e.getItem(r);- if (a && a.type === "item" && !t.isDisabled(r)) {- i = r;- break;- }- r = n.current.getKeyAfter(r);- }- if (i == null) for (r = n.current.getKeyBefore(t.focusedKey); r != null;) {- let a = e.getItem(r);- if (a && a.type === "item" && !t.isDisabled(r)) {- i = r;- break;- }- r = n.current.getKeyBefore(r);+ function ac() {+ return wa(_h);+ }+ function oc() {+ return cs().memoizedState;+ }+ function sc() {+ return cs().memoizedState;+ }+ function cc(e) {+ for (var t = e.return; t !== null;) {+ switch (t.tag) {+ case 24:+ case 3:+ var n = zd();+ e = go(n);+ var r = _o(t, e, n);+ r !== null && (Hd(r, t, n), vo(r, t, n)), t = { cache: ja() }, e.payload = t;+ return;}- t.setFocusedKey(i);- }- n.current = e;- }, [e, t]);-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/useLoadMoreSentinel.mjs-function lO(e, t) {- let { collection: n, onLoadMore: r, scrollOffset: i = 1, direction: a = "end" } = e, o = (0, B.useRef)(null), s = ug((e) => {- for (let t of e) t.isIntersecting && r && r();- });- Hp(() => {- if (t.current) {- let e = 100 * i, n = a === "start" ? `${e}% 0px 0px 0px` : `0px ${e}% ${e}% ${e}%`;- o.current = new IntersectionObserver(s, {- root: h_(t?.current),- rootMargin: n- }), o.current.observe(t.current);+ t = t.return;}- return () => {- o.current && o.current.disconnect();- };- }, [- n,- t,- i,- a- ]);-}-//#endregion-//#region node_modules/react-aria-components/dist/private/ListBox.mjs-var uO = /*#__PURE__*/ (0, B.createContext)(null), dO = /*#__PURE__*/ (0, B.createContext)(null), qoe = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, uO);- let n = (0, B.useContext)(dO);- return n ? /*#__PURE__*/ B.createElement(fO, {- state: n,- props: e,- listBoxRef: t- }) : /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(Joe, {- props: e,- listBoxRef: t,- collection: n- }));-});-function Joe({ props: e, listBoxRef: t, collection: n }) {- e = {- ...e,- collection: n,- children: null,- items: null- };- let { layoutDelegate: r } = (0, B.useContext)(JE), i = sO({- ...e,- layoutDelegate: r- });- return /*#__PURE__*/ B.createElement(fO, {- state: i,- props: e,- listBoxRef: t- });-}-function fO({ state: e, props: t, listBoxRef: n }) {- [t, n] = RE(t, n, UE);- let { dragAndDropHooks: r, layout: i = "stack", orientation: a = "vertical", filter: o } = t, s = Koe(e, o), { collection: c, selectionManager: l } = s, u = !!r?.useDraggableCollectionState, d = !!r?.useDroppableCollectionState, { direction: f } = vg(), { disabledBehavior: p, disabledKeys: m } = l, h = Xv({- usage: "search",- sensitivity: "base"- }), { isVirtualized: g, layoutDelegate: _, dropTargetDelegate: v, CollectionRoot: y } = (0, B.useContext)(JE), b = (0, B.useMemo)(() => t.keyboardDelegate || new Q_({- collection: c,- collator: h,- ref: n,- disabledKeys: m,- disabledBehavior: p,- layout: i,- orientation: a,- direction: f,- layoutDelegate: _- }), [- c,- h,- n,- p,- m,- a,- f,- t.keyboardDelegate,- i,- _- ]), { listBoxProps: x } = Ete({- ...t,- shouldSelectOnPressUp: u || t.shouldSelectOnPressUp,- keyboardDelegate: b,- isVirtualized: g- }, s, n);- (0, B.useRef)(u), (0, B.useRef)(d), (0, B.useEffect)(() => {}, [u, d]);- let S, C, w, T = !1, E = null, D = (0, B.useRef)(null);- if (u && r) {- S = r.useDraggableCollectionState({- collection: c,- selectionManager: l,- preview: r.renderDragPreview ? D : void 0- }), r.useDraggableCollection({}, S, n);- let e = r.DragPreview;- E = r.renderDragPreview ? /*#__PURE__*/ B.createElement(e, { ref: D }, r.renderDragPreview) : null;}- if (d && r) {- C = r.useDroppableCollectionState({- collection: c,- selectionManager: l- });- let e = r.dropTargetDelegate || v || new r.ListDropTargetDelegate(c, n, {- orientation: a,- layout: i,- direction: f- });- w = r.useDroppableCollection({- keyboardDelegate: b,- dropTargetDelegate: e- }, C, n), T = C.isDropTarget({ type: "root" });+ function lc(e, t, n) {+ var r = zd();+ n = {+ lane: r,+ revertLane: 0,+ gesture: null,+ action: n,+ hasEagerState: !1,+ eagerState: null,+ next: null+ }, pc(e) ? mc(t, n) : (n = wi(e, t, n, r), n !== null && (Hd(n, e, r), hc(n, t, r)));}- let { focusProps: O, isFocused: k, isFocusVisible: A } = ry(), j = s.collection.size === 0, M = {- isDropTarget: T,- isEmpty: j,- isFocused: k,- isFocusVisible: A,- layout: t.layout || "stack",- orientation: a,- state: s- }, N = IE({- ...t,- children: void 0,- defaultClassName: "react-aria-ListBox",- values: M- }), P = null;- j && t.renderEmptyState && (P = /*#__PURE__*/ B.createElement("div", {- role: "option",- style: { display: "contents" }- }, t.renderEmptyState(M)));- let ee = Eg(t, { global: !0 });- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(HE.div, {- ...U(ee, N, x, O, w?.collectionProps),- ref: n,- slot: t.slot || void 0,- onScroll: t.onScroll,- "data-drop-target": T || void 0,- "data-empty": j || void 0,- "data-focused": k || void 0,- "data-focus-visible": A || void 0,- "data-layout": t.layout || "stack",- "data-orientation": a- }, /*#__PURE__*/ B.createElement(FE, { values: [- [uO, t],- [dO, s],- [WD, {- dragAndDropHooks: r,- dragState: S,- dropState: C- }],- [ZD, { elementType: "div" }],- [GD, { render: Zoe }],- [GE, {- name: "ListBoxSection",- render: Yoe- }]- ] }, /*#__PURE__*/ B.createElement(YD, null, /*#__PURE__*/ B.createElement(y, {- collection: c,- scrollRef: n,- persistedKeys: qD(l, r, C),- renderDropIndicator: KD(r, C)- }))), P, E));-}-function Yoe(e, t, n, r = "react-aria-ListBoxSection") {- let i = (0, B.useContext)(dO), { dragAndDropHooks: a, dropState: o } = (0, B.useContext)(WD), { CollectionBranch: s } = (0, B.useContext)(JE), [c, l] = zE(), { headingProps: u, groupProps: d } = Dte({- heading: l,- "aria-label": e["aria-label"] ?? void 0- }), f = IE({- ...e,- id: void 0,- children: void 0,- defaultClassName: r,- values: void 0- }), p = Eg(e, { global: !0 });- return delete p.id, /*#__PURE__*/ B.createElement(HE.section, {- ...U(p, f, d),- ref: t- }, /*#__PURE__*/ B.createElement(JD.Provider, { value: {- ...u,- ref: c- } }, /*#__PURE__*/ B.createElement(s, {- collection: i.collection,- parent: n,- renderDropIndicator: KD(a, o)- })));-}-var Xoe = /*#__PURE__*/ tg(ip, function(e, t, n) {- let r = Nh(t), i = (0, B.useContext)(dO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(WD), c = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { optionProps: l, labelProps: u, descriptionProps: d, ...f } = Ote({- key: n.key,- "aria-label": e?.["aria-label"]- }, i, r), { hoverProps: p, isHovered: m } = sy({- isDisabled: !f.allowsSelection && !f.hasAction && !c,- onHoverStart: n.props.onHoverStart,- onHoverChange: n.props.onHoverChange,- onHoverEnd: n.props.onHoverEnd- }), { keyboardProps: h } = Mh(e), { focusProps: g } = vh(e), _ = null;- o && a && (_ = a.useDraggableItem({- key: n.key,- hasAction: f.hasAction- }, o));- let v = null;- s && a && (v = a.useDroppableItem({ target: {- type: "item",- key: n.key,- dropPosition: "on"- } }, s, r));- let y = o && o.isDragging(n.key), b = IE({- ...e,- id: void 0,- children: e.children,- defaultClassName: "react-aria-ListBoxItem",- values: {- ...f,- isHovered: m,- selectionMode: i.selectionManager.selectionMode,- selectionBehavior: i.selectionManager.selectionBehavior,- allowsDragging: !!o,- isDragging: y,- isDropTarget: v?.isDropTarget+ function uc(e, t, n) {+ dc(e, t, n, zd());+ }+ function dc(e, t, n, r) {+ var i = {+ lane: r,+ revertLane: 0,+ gesture: null,+ action: n,+ hasEagerState: !1,+ eagerState: null,+ next: null+ };+ if (pc(e)) mc(t, i);+ else {+ var a = e.alternate;+ if (e.lanes === 0 && (a === null || a.lanes === 0) && (a = t.lastRenderedReducer, a !== null)) try {+ var o = t.lastRenderedState, s = a(o, n);+ if (i.hasEagerState = !0, i.eagerState = s, zr(s, o)) return Ci(e, t, i, 0), id === null && Si(), !1;+ } catch {}+ if (n = wi(e, t, i, r), n !== null) return Hd(n, e, r), hc(n, t, r), !0;}- });- (0, B.useEffect)(() => {- n.textValue;- }, [n.textValue]);- let x = e.href ? HE.a : HE.div, S = Eg(e, { global: !0 });- return delete S.id, delete S.onClick, e.href && l.tabIndex == null && (l.tabIndex = -1), /*#__PURE__*/ B.createElement(x, {- ...U(S, b, l, p, h, g, _?.dragProps, v?.dropProps),- ref: r,- "data-allows-dragging": !!o || void 0,- "data-selected": f.isSelected || void 0,- "data-disabled": f.isDisabled || void 0,- "data-hovered": m || void 0,- "data-focused": f.isFocused || void 0,- "data-focus-visible": f.isFocusVisible || void 0,- "data-pressed": f.isPressed || void 0,- "data-dragging": y || void 0,- "data-drop-target": v?.isDropTarget || void 0,- "data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode- }, /*#__PURE__*/ B.createElement(FE, { values: [[tD, { slots: {- [PE]: u,- label: u,- description: d- } }], [XD, { isSelected: f.isSelected }]] }, b.children));-});-function Zoe(e, t) {- t = Nh(t);- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(WD), { dropIndicatorProps: i, isHidden: a, isDropTarget: o } = n.useDropIndicator(e, r, t);- return a ? null : /*#__PURE__*/ B.createElement($oe, {- ...e,- dropIndicatorProps: i,- isDropTarget: o,- ref: t- });-}-function Qoe(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, ...i } = e, a = IE({- ...i,- defaultClassName: "react-aria-DropIndicator",- values: { isDropTarget: r }- });- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(HE.div, {- ...n,- ...a,- role: "option",- ref: t,- "data-drop-target": r || void 0- }));-}-var $oe = /*#__PURE__*/ (0, B.forwardRef)(Qoe);-tg(rp, function(e, t, n) {- let r = (0, B.useContext)(dO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);- lO((0, B.useMemo)(() => ({- onLoadMore: a,- collection: r?.collection,- sentinelRef: c,- scrollOffset: o- }), [- a,- o,- r?.collection- ]), c);- let l = IE({- ...s,- id: void 0,- children: n.rendered,- defaultClassName: "react-aria-ListBoxLoadingIndicator",- values: void 0- });- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement("div", {- style: {- position: "relative",- width: 0,- height: 0- },- inert: QD(!0)- }, /*#__PURE__*/ B.createElement("div", {- "data-testid": "loadMoreSentinel",- ref: c,- style: {- position: "absolute",- height: 1,- width: 1+ return !1;+ }+ function fc(e, t, n, r) {+ if (r = {+ lane: 2,+ revertLane: Uf(),+ gesture: null,+ action: r,+ hasEagerState: !1,+ eagerState: null,+ next: null+ }, pc(e)) {+ if (t) throw Error(i(479));+ } else t = wi(e, n, r, 2), t !== null && Hd(t, e, 2);+ }+ function pc(e) {+ var t = e.alternate;+ return e === Ho || t !== null && t === Ho;+ }+ function mc(e, t) {+ Ko = Go = !0;+ var n = e.pending;+ n === null ? t.next = t : (t.next = n.next, n.next = t), e.pending = t;+ }+ function hc(e, t, n) {+ if (n & 4194048) {+ var r = t.lanes;+ r &= e.pendingLanes, n |= r, t.lanes = n, dt(e, n);}- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(HE.div, {- ...U(Eg(e, { global: !0 }), { tabIndex: -1 }),- ...l,- role: "option",- ref: t- }, l.children)));-});-//#endregion-//#region node_modules/react-aria-components/dist/private/OverlayArrow.mjs-var ese = /*#__PURE__*/ (0, B.createContext)({ placement: "bottom" });-//#endregion-//#region node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.mjs-function pO(e) {- let [t, n] = L_(e.isOpen, e.defaultOpen || !1, e.onOpenChange), [r, i] = (0, B.useState)(null);- return {- isOpen: t,- setOpen: n,- open: (0, B.useCallback)(() => {- n(!0);- }, [n]),- close: (0, B.useCallback)(() => {- n(!1);- }, [n]),- toggle: (0, B.useCallback)(() => {- n(!t);- }, [n, t]),- point: r,- setPoint: i- };-}-//#endregion-//#region node_modules/react-aria/dist/private/utils/animation.mjs-function mO(e, t = !0) {- let [n, r] = (0, B.useState)(!0), i = n && t;- return Hp(() => {- if (i && e.current && "getAnimations" in e.current) for (let t of e.current.getAnimations()) t instanceof CSSTransition && t.cancel();- }, [e, i]), gO(e, i, (0, B.useCallback)(() => r(!1), [])), i;-}-function hO(e, t) {- let [n, r] = (0, B.useState)(t ? "open" : "closed");- switch (n) {- case "open":- t || r("exiting");- break;- case "closed":- case "exiting": t && r("open");}- let i = n === "exiting";- return gO(e, i, (0, B.useCallback)(() => {- r((e) => e === "exiting" ? "closed" : e);- }, [])), i;-}-function gO(e, t, n) {- Hp(() => {- if (t && e.current) {- if (!("getAnimations" in e.current)) {- n();- return;+ var gc = {+ readContext: wa,+ use: ds,+ useCallback: Qo,+ useContext: Qo,+ useEffect: Qo,+ useImperativeHandle: Qo,+ useLayoutEffect: Qo,+ useInsertionEffect: Qo,+ useMemo: Qo,+ useReducer: Qo,+ useRef: Qo,+ useState: Qo,+ useDebugValue: Qo,+ useDeferredValue: Qo,+ useTransition: Qo,+ useSyncExternalStore: Qo,+ useId: Qo,+ useHostTransitionStatus: Qo,+ useFormState: Qo,+ useActionState: Qo,+ useOptimistic: Qo,+ useMemoCache: Qo,+ useCacheRefresh: Qo,+ useEffectEvent: Qo+ }, _c = {+ readContext: wa,+ use: ds,+ useCallback: function(e, t) {+ return ss().memoizedState = [e, t === void 0 ? null : t], e;+ },+ useContext: wa,+ useEffect: Vs,+ useImperativeHandle: function(e, t, n) {+ n = n == null ? null : n.concat([e]), zs(4194308, 4, qs.bind(null, t, e), n);+ },+ useLayoutEffect: function(e, t) {+ return zs(4194308, 4, e, t);+ },+ useInsertionEffect: function(e, t) {+ zs(4, 2, e, t);+ },+ useMemo: function(e, t) {+ var n = ss();+ t = t === void 0 ? null : t;+ var r = e();+ if (qo) {+ Je(!0);+ try {+ e();+ } finally {+ Je(!1);+ }}- let t = e.current.getAnimations();- if (t.length === 0) {- n();- return;+ return n.memoizedState = [r, t], r;+ },+ useReducer: function(e, t, n) {+ var r = ss();+ if (n !== void 0) {+ var i = n(t);+ if (qo) {+ Je(!0);+ try {+ n(t);+ } finally {+ Je(!1);+ }+ }+ } else i = t;+ return r.memoizedState = r.baseState = i, e = {+ pending: null,+ lanes: 0,+ dispatch: null,+ lastRenderedReducer: e,+ lastRenderedState: i+ }, r.queue = e, e = e.dispatch = lc.bind(null, Ho, e), [r.memoizedState, e];+ },+ useRef: function(e) {+ var t = ss();+ return e = { current: e }, t.memoizedState = e;+ },+ useState: function(e) {+ e = Cs(e);+ var t = e.queue, n = uc.bind(null, Ho, t);+ return t.dispatch = n, [e.memoizedState, n];+ },+ useDebugValue: Ys,+ useDeferredValue: function(e, t) {+ return Qs(ss(), e, t);+ },+ useTransition: function() {+ var e = Cs(!1);+ return e = ec.bind(null, Ho, e.queue, !0, !1), ss().memoizedState = e, [!1, e];+ },+ useSyncExternalStore: function(e, t, n) {+ var r = Ho, a = ss();+ if (ra) {+ if (n === void 0) throw Error(i(407));+ n = n();+ } else {+ if (n = t(), id === null) throw Error(i(349));+ od & 127 || vs(r, t, n);}- let r = !1;- return Promise.allSettled(t.map((e) => e.finished)).then(() => {- r || (0, $f.flushSync)(() => {- n();- });- }), () => {- r = !0;+ a.memoizedState = n;+ var o = {+ value: n,+ getSnapshot: t+ };+ return a.queue = o, Vs(bs.bind(null, r, o, e), [e]), r.flags |= 2048, Ls(9, { destroy: void 0 }, ys.bind(null, r, o, n, t), null), n;+ },+ useId: function() {+ var e = ss(), t = id.identifierPrefix;+ if (ra) {+ var n = Yi, r = Ji;+ n = (r & ~(1 << 32 - Ye(r) - 1)).toString(32) + n, t = "_" + t + "R_" + n, n = Jo++, 0 < n && (t += "H" + n.toString(32)), t += "_";+ } else n = Zo++, t = "_" + t + "r_" + n.toString(32) + "_";+ return e.memoizedState = t;+ },+ useHostTransitionStatus: ac,+ useFormState: Ms,+ useActionState: Ms,+ useOptimistic: function(e) {+ var t = ss();+ t.memoizedState = t.baseState = e;+ var n = {+ pending: null,+ lanes: 0,+ dispatch: null,+ lastRenderedReducer: null,+ lastRenderedState: null+ };+ return t.queue = n, t = fc.bind(null, Ho, !0, n), n.dispatch = t, [e, t];+ },+ useMemoCache: fs,+ useCacheRefresh: function() {+ return ss().memoizedState = cc.bind(null, Ho);+ },+ useEffectEvent: function(e) {+ var t = ss(), n = { impl: e };+ return t.memoizedState = n, function() {+ if (rd & 2) throw Error(i(440));+ return n.impl.apply(void 0, arguments);};}- }, [- e,- t,- n- ]);-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Popover.mjs-var _O = /*#__PURE__*/ (0, B.createContext)(null), vO = /*#__PURE__*/ (0, B.createContext)(null), yO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, _O);- let n = (0, B.useContext)(kO), r = pO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = hO(t, i.isOpen), o = e.isExiting || !e.shouldSkipAnimation && a || !1, s = Vh(), { direction: c } = vg();- if (s) {- let t = e.children;- return typeof t == "function" && (t = t({- trigger: e.trigger || null,- placement: "bottom",- isEntering: !1,- isExiting: !1,- defaultChildren: null- })), /*#__PURE__*/ B.createElement(B.Fragment, null, t);- }- return i && !i.isOpen && !o ? null : /*#__PURE__*/ B.createElement(tse, {- ...e,- triggerRef: e.triggerRef,- state: i,- popoverRef: t,- isExiting: o,- dir: c- });-});-function tse({ state: e, isExiting: t, UNSTABLE_portalContainer: n, clearContexts: r, ...i }) {- let a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useContext)(vO), c = s && i.trigger === "SubmenuTrigger", { popoverProps: l, underlayProps: u, arrowProps: d, placement: f, triggerAnchorPoint: p } = Jte({- ...i,- offset: i.offset ?? 8,- arrowRef: a,- groupRef: c ? s : o- }, e), m = i.popoverRef, h = mO(m, !!f), g = i.isEntering || !i.shouldSkipAnimation && h || !1, _ = IE({- ...i,- defaultClassName: "react-aria-Popover",- values: {- trigger: i.trigger || null,- placement: f,- isEntering: g,- isExiting: t- }- }), v = !i.isNonModal || i.trigger === "SubmenuTrigger" || i.trigger === "PreviewTrigger", [y, b] = (0, B.useState)(i.trigger === "PreviewTrigger");- Hp(() => {- m.current && b(v && !m.current.querySelector("[role=dialog]"));- }, [m, v]), (0, B.useEffect)(() => {- y && i.trigger !== "PreviewTrigger" && (i.trigger !== "SubmenuTrigger" || Km() !== "pointer") && m.current && !jp(m.current) && ih(m.current);- }, [- y,- m,- i.trigger- ]);- let x = (0, B.useMemo)(() => {- let e = _.children;- if (r) for (let t of r) e = /*#__PURE__*/ B.createElement(t.Provider, { value: null }, e);- return e;- }, [_.children, r]), [S, C] = (0, B.useState)(null), w = (0, B.useCallback)(() => {- i.triggerRef.current && C(i.triggerRef.current.getBoundingClientRect().width + "px");- }, [i.triggerRef]);- Hp(w, [w]), Zy({- ref: _.style?.["--trigger-width"] ? void 0 : i.triggerRef,- onResize: w- });- let T = {- ...l.style,- "--trigger-anchor-point": p ? `${p.x}px ${p.y}px` : void 0,- ..._.style,- "--trigger-width": _.style?.["--trigger-width"] || S- }, E = /*#__PURE__*/ B.createElement(HE.div, {- ...U(Eg(i, { global: !0 }), l),- ..._,- id: y ? i.id : void 0,- role: y ? "dialog" : void 0,- tabIndex: y ? -1 : void 0,- "aria-label": i["aria-label"],- "aria-labelledby": i["aria-labelledby"],- ref: m,- slot: i.slot || void 0,- style: T,- dir: i.dir,- "data-trigger": i.trigger,- "data-placement": f,- "data-entering": g || void 0,- "data-exiting": t || void 0- }, !i.isNonModal && /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }), /*#__PURE__*/ B.createElement(ese.Provider, { value: {- ...d,- placement: f,- ref: a- } }, x), /*#__PURE__*/ B.createElement(Nb, { onDismiss: e.close }));- return c ? /*#__PURE__*/ B.createElement(ty, {- ...i,- shouldContainFocus: y && i.trigger !== "PreviewTrigger",- isExiting: t,- portalContainer: n ?? s?.current ?? void 0- }, E) : /*#__PURE__*/ B.createElement(ty, {- ...i,- shouldContainFocus: y && i.trigger !== "PreviewTrigger",- isExiting: t,- portalContainer: n- }, !i.isNonModal && e.isOpen && /*#__PURE__*/ B.createElement("div", {- "data-testid": "underlay",- ...u,- style: {- position: "fixed",- inset: 0- }- }), /*#__PURE__*/ B.createElement("div", {- ref: o,- style: { display: "contents" }- }, /*#__PURE__*/ B.createElement(vO.Provider, { value: o }, E)));-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Keyboard.mjs-var nse = /*#__PURE__*/ (0, B.createContext)({});-//#endregion-//#region node_modules/react-stately/dist/private/menu/useMenuTriggerState.mjs-function bO(e) {- let t = pO(e), [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)([]), o = () => {- a([]), t.close();- }, s = (e, t) => {- a((n) => t > n.length ? n : [...n.slice(0, t), e]);- }, c = (e, t) => {- a((n) => n[t] === e ? n.slice(0, t) : n);- };- return {- focusStrategy: n,- ...t,- open(e = null) {- r(e), t.open();+ }, vc = {+ readContext: wa,+ use: ds,+ useCallback: Xs,+ useContext: wa,+ useEffect: Hs,+ useImperativeHandle: Js,+ useInsertionEffect: Gs,+ useLayoutEffect: Ks,+ useMemo: Zs,+ useReducer: ms,+ useRef: Rs,+ useState: function() {+ return ms(ps);},- toggle(e = null) {- r(e), t.toggle();+ useDebugValue: Ys,+ useDeferredValue: function(e, t) {+ return $s(cs(), Uo.memoizedState, e, t);},- close() {- o();+ useTransition: function() {+ var e = ms(ps)[0], t = cs().memoizedState;+ return [typeof e == "boolean" ? e : us(e), t];+ },+ useSyncExternalStore: _s,+ useId: oc,+ useHostTransitionStatus: ac,+ useFormState: Ns,+ useActionState: Ns,+ useOptimistic: function(e, t) {+ return ws(cs(), Uo, e, t);+ },+ useMemoCache: fs,+ useCacheRefresh: sc,+ useEffectEvent: Ws+ }, yc = {+ readContext: wa,+ use: ds,+ useCallback: Xs,+ useContext: wa,+ useEffect: Hs,+ useImperativeHandle: Js,+ useInsertionEffect: Gs,+ useLayoutEffect: Ks,+ useMemo: Zs,+ useReducer: gs,+ useRef: Rs,+ useState: function() {+ return gs(ps);+ },+ useDebugValue: Ys,+ useDeferredValue: function(e, t) {+ var n = cs();+ return Uo === null ? Qs(n, e, t) : $s(n, Uo.memoizedState, e, t);+ },+ useTransition: function() {+ var e = gs(ps)[0], t = cs().memoizedState;+ return [typeof e == "boolean" ? e : us(e), t];+ },+ useSyncExternalStore: _s,+ useId: oc,+ useHostTransitionStatus: ac,+ useFormState: Is,+ useActionState: Is,+ useOptimistic: function(e, t) {+ var n = cs();+ return Uo === null ? (n.baseState = e, [e, n.queue.dispatch]) : ws(n, Uo, e, t);+ },+ useMemoCache: fs,+ useCacheRefresh: sc,+ useEffectEvent: Ws+ };+ function bc(e, t, n, r) {+ t = e.memoizedState, n = n(r, t), n = n == null ? t : w({}, t, n), e.memoizedState = n, e.lanes === 0 && (e.updateQueue.baseState = n);+ }+ var xc = {+ enqueueSetState: function(e, t, n) {+ e = e._reactInternals;+ var r = zd(), i = go(r);+ i.payload = t, n != null && (i.callback = n), t = _o(e, i, r), t !== null && (Hd(t, e, r), vo(t, e, r));+ },+ enqueueReplaceState: function(e, t, n) {+ e = e._reactInternals;+ var r = zd(), i = go(r);+ i.tag = 1, i.payload = t, n != null && (i.callback = n), t = _o(e, i, r), t !== null && (Hd(t, e, r), vo(t, e, r));},- expandedKeysStack: i,- openSubmenu: s,- closeSubmenu: c+ enqueueForceUpdate: function(e, t) {+ e = e._reactInternals;+ var n = zd(), r = go(n);+ r.tag = 2, t != null && (r.callback = t), t = _o(e, r, n), t !== null && (Hd(t, e, n), vo(t, e, n));+ }};-}-//#endregion-//#region node_modules/react-stately/dist/private/tree/TreeCollection.mjs-var rse = class {- constructor(e, { expandedKeys: t } = {}) {- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e, t ||= /* @__PURE__ */ new Set();- let n = (e) => {- if (this.keyMap.set(e.key, e), e.childNodes && (e.type === "section" || t.has(e.key))) for (let t of e.childNodes) n(t);- };- for (let t of e) n(t);- let r = null, i = 0;- for (let [e, t] of this.keyMap) r ? (r.nextKey = e, t.prevKey = r.key) : (this.firstKey = e, t.prevKey = void 0), t.type === "item" && (t.index = i++), r = t, r.nextKey = void 0;- this.lastKey = r?.key ?? null;+ function Sc(e, t, n, r, i, a, o) {+ return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(r, a, o) : t.prototype && t.prototype.isPureReactComponent ? !Br(n, r) || !Br(i, a) : !0;}- *[Symbol.iterator]() {- yield* this.iterable;+ function Cc(e, t, n, r) {+ e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(n, r), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(n, r), t.state !== e && xc.enqueueReplaceState(t, t.state, null);}- get size() {- return this.keyMap.size;+ function wc(e, t) {+ var n = t;+ if ("ref" in t) for (var r in n = {}, t) r !== "ref" && (n[r] = t[r]);+ if (e = e.defaultProps) for (var i in n === t && (n = w({}, n)), e) n[i] === void 0 && (n[i] = e[i]);+ return n;}- getKeys() {- return this.keyMap.keys();+ function Tc(e) {+ vi(e);}- getKeyBefore(e) {- let t = this.keyMap.get(e);- return t ? t.prevKey ?? null : null;+ function Ec(e) {+ console.error(e);}- getKeyAfter(e) {- let t = this.keyMap.get(e);- return t ? t.nextKey ?? null : null;+ function Dc(e) {+ vi(e);}- getFirstKey() {- return this.firstKey;+ function Oc(e, t) {+ try {+ var n = e.onUncaughtError;+ n(t.value, { componentStack: t.stack });+ } catch (e) {+ setTimeout(function() {+ throw e;+ });+ }}- getLastKey() {- return this.lastKey;+ function kc(e, t, n) {+ try {+ var r = e.onCaughtError;+ r(n.value, {+ componentStack: n.stack,+ errorBoundary: t.tag === 1 ? t.stateNode : null+ });+ } catch (e) {+ setTimeout(function() {+ throw e;+ });+ }}- getItem(e) {- return this.keyMap.get(e) ?? null;+ function Ac(e, t, n) {+ return n = go(n), n.tag = 3, n.payload = { element: null }, n.callback = function() {+ Oc(e, t);+ }, n;}- at(e) {- let t = [...this.getKeys()];- return this.getItem(t[e]);+ function jc(e) {+ return e = go(e), e.tag = 3, e;}-};-//#endregion-//#region node_modules/react-stately/dist/private/tree/useTreeState.mjs-function ise(e) {- let { onExpandedChange: t } = e, [n, r] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), t), i = tO(e), a = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), o = oO(e, (0, B.useCallback)((e) => new rse(e, { expandedKeys: n }), [n]), null);- return (0, B.useEffect)(() => {- i.focusedKey != null && !o.getItem(i.focusedKey) && i.setFocusedKey(null);- }, [o, i.focusedKey]), {- collection: o,- expandedKeys: n,- disabledKeys: a,- toggleKey: (e) => {- r(ase(n, e));- },- setExpandedKeys: r,- selectionManager: new rO(o, i)- };-}-function ase(e, t) {- let n = new Set(e);- return n.has(t) ? n.delete(t) : n.add(t), n;-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Menu.mjs-var xO = /*#__PURE__*/ (0, B.createContext)(null), SO = /*#__PURE__*/ (0, B.createContext)(null), CO = /*#__PURE__*/ (0, B.createContext)(null), wO = /*#__PURE__*/ (0, B.createContext)(null);-function ose(e) {- let t = bO(e), n = (0, B.useRef)(null), { menuTriggerProps: r, menuProps: i } = Iv({- ...e,- type: "menu"- }, t, n), a = (0, B.useRef)(null);- return Vh() ? null : /*#__PURE__*/ B.createElement(FE, { values: [- [xO, {- ...i,- ref: a- }],- [kO, t],- [CO, t],- [_O, {- trigger: "MenuTrigger",- triggerRef: n,- scrollRef: a,- placement: "bottom start",- "aria-labelledby": i["aria-labelledby"],- offset: e.trigger === "contextMenu" ? 0 : void 0- }]- ] }, /*#__PURE__*/ B.createElement(pte, {- ...r,- ref: n,- isPressed: t.isOpen- }, e.children));-}-var sse = /*#__PURE__*/ (0, B.createContext)(null);-(class extends tp {- static {- this.type = "submenutrigger";+ function Mc(e, t, n, r) {+ var i = n.type.getDerivedStateFromError;+ if (typeof i == "function") {+ var a = r.value;+ e.payload = function() {+ return i(a);+ }, e.callback = function() {+ kc(t, n, r);+ };+ }+ var o = n.stateNode;+ o !== null && typeof o.componentDidCatch == "function" && (e.callback = function() {+ kc(t, n, r), typeof i != "function" && (Ed === null ? Ed = /* @__PURE__ */ new Set([this]) : Ed.add(this));+ var e = r.stack;+ this.componentDidCatch(r.value, { componentStack: e === null ? "" : e });+ });}- filter(e, t, n) {- let r = e.getItem(this.firstChildKey);- if (r && n(r.textValue, this)) {- let n = this.clone();- return t.addDescendants(n, e), n;+ function Nc(e, t, n, r, a) {+ if (n.flags |= 32768, typeof r == "object" && r && typeof r.then == "function") {+ if (t = n.alternate, t !== null && xa(t, n, a, !0), n = Ao.current, n !== null) {+ switch (n.tag) {+ case 31:+ case 13:+ case 19: return jo === null ? ef() : n.alternate === null && pd === 0 && (pd = 3), n.flags &= -257, n.flags |= 65536, n.lanes = a, r === Za ? n.flags |= 16384 : (t = n.updateQueue, t === null ? n.updateQueue = /* @__PURE__ */ new Set([r]) : t.add(r), Cf(e, r, a)), !1;+ case 22: return n.flags |= 65536, r === Za ? 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)), Cf(e, r, a)), !1;+ }+ throw Error(i(435, n.tag));+ }+ return Cf(e, r, a), ef(), !1;}- return null;+ if (ra) return t = Ao.current, t === null ? (r !== oa && (t = Error(i(423), { cause: r }), pa(Bi(t, n))), e = e.current.alternate, e.flags |= 65536, a &= -a, e.lanes |= a, r = Bi(r, n), a = Ac(e.stateNode, r, a), yo(e, a), pd !== 4 && (pd = 2)) : (!(t.flags & 65536) && (t.flags |= 256), t.flags |= 65536, t.lanes = a, r !== oa && (e = Error(i(422), { cause: r }), pa(Bi(e, n)))), !1;+ var o = Error(i(520), { cause: r });+ if (o = Bi(o, n), yd === null ? yd = [o] : yd.push(o), pd !== 4 && (pd = 2), t === null) return !0;+ r = Bi(r, n), n = t;+ do {+ switch (n.tag) {+ case 3: return n.flags |= 65536, e = a & -a, n.lanes |= e, e = Ac(n.stateNode, r, e), yo(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" && (Ed === null || !Ed.has(o)))) return n.flags |= 65536, a &= -a, n.lanes |= a, a = jc(a), Mc(a, e, n, r), yo(n, a), !1;+ break;+ case 22: if (n.memoizedState !== null) return n.flags |= 65536, !1;+ }+ n = n.return;+ } while (n !== null);+ return !1;}-});-var cse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- return [e, t] = RE(e, t, xO), /*#__PURE__*/ B.createElement(qh, { content: /*#__PURE__*/ B.createElement(ag, e) }, (n) => /*#__PURE__*/ B.createElement(lse, {- props: e,- collection: n,- menuRef: t- }));-});-function lse({ props: e, collection: t, menuRef: n }) {- [e, n] = RE(e, n, UE);- let { filter: r, ...i } = e, a = (0, B.useMemo)(() => r ? t.filter(r) : t, [t, r]), o = ise({- ...e,- collection: a,- children: void 0- }), s = (0, B.useContext)(CO), { isVirtualized: c, CollectionRoot: l } = (0, B.useContext)(JE), { menuProps: u } = kte({- ...e,- isVirtualized: c,- onClose: e.onClose || s?.close- }, o, n), d = IE({- ...e,- children: void 0,- defaultClassName: "react-aria-Menu",- values: { isEmpty: o.collection.size === 0 }- }), f = null;- o.collection.size === 0 && e.renderEmptyState && (f = /*#__PURE__*/ B.createElement("div", {- role: "menuitem",- style: { display: "contents" }- }, e.renderEmptyState()));- let p = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(HE.div, {- ...U(p, d, u),- ref: n,- slot: e.slot || void 0,- "data-empty": o.collection.size === 0 || void 0,- onScroll: e.onScroll- }, /*#__PURE__*/ B.createElement(FE, { values: [- [SO, o],- [ZD, { elementType: "div" }],- [GE, {- name: "MenuSection",- render: TO- }],- [sse, {- parentMenuRef: n,- shouldUseVirtualFocus: i?.shouldUseVirtualFocus- }],- [DO, { shouldCloseOnSelect: e.shouldCloseOnSelect }],- [UE, null],- [WE, null],- [wO, o.selectionManager],- [CO, s ?? bO({})]- ] }, /*#__PURE__*/ B.createElement(YD, null, /*#__PURE__*/ B.createElement(l, {- collection: o.collection,- persistedKeys: YE(o.selectionManager.focusedKey),- scrollRef: n- }))), f));-}-var use = class extends rO {- constructor(e, t) {- super(e.collection, t), this.parent = e;+ var Pc = Error(i(461)), Fc = !1;+ function Ic(e, t, n, r) {+ t.child = e === null ? fo(t, null, n, r) : uo(t, e.child, n, r);}- get focusedKey() {- return this.parent.focusedKey;+ function Lc(e, t, n, r, i) {+ n = n.render;+ var a = t.ref;+ if ("ref" in r) {+ var o = {};+ for (var s in r) s !== "ref" && (o[s] = r[s]);+ } else o = r;+ return Ca(t), r = es(e, t, n, o, a, i), s = is(), e !== null && !Fc ? (as(e, t, i), dl(e, t, i)) : (ra && s && Qi(t), t.flags |= 1, Ic(e, t, r, i), t.child);}- get isFocused() {- return this.parent.isFocused;+ function Rc(e, t, n, r, i) {+ if (e === null) {+ var a = n.type;+ return typeof a == "function" && !ji(a) && a.defaultProps === void 0 && n.compare === null ? (t.tag = 15, t.type = a, zc(e, t, a, r, i)) : (e = Pi(n.type, null, r, t, t.mode, i), e.ref = t.ref, e.return = t, t.child = e);+ }+ if (a = e.child, !fl(e, i)) {+ var o = a.memoizedProps;+ if (n = n.compare, n = n === null ? Br : n, n(o, r) && e.ref === t.ref) return dl(e, t, i);+ }+ return t.flags |= 1, e = Mi(a, r), e.ref = t.ref, e.return = t, t.child = e;}- setFocusedKey(e, t) {- return this.parent.setFocusedKey(e, t);+ function zc(e, t, n, r, i) {+ if (e !== null) {+ var a = e.memoizedProps;+ if (Br(a, r) && e.ref === t.ref) {+ if (Fc = !1, t.pendingProps = r = a, fl(e, i)) e.flags & 131072 && (Fc = !0);+ else return t.lanes = e.lanes, dl(e, t, i);+ }+ }+ return qc(e, t, n, r, i);}- setFocused(e) {- this.parent.setFocused(e);+ function Bc(e, t, n, r) {+ var i = r.children, a = e === null ? null : e.memoizedState;+ if (e === null && t.stateNode === null && (t.stateNode = {+ _visibility: 1,+ _pendingMarkers: null,+ _retryCache: null,+ _transitions: null+ }), r.mode === "hidden") {+ if (t.flags & 128) {+ if (a = a === null ? n : a.baseLanes | n, e !== null) {+ for (r = t.child = e.child, i = 0; r !== null;) i = i | r.lanes | r.childLanes, r = r.sibling;+ r = i & ~a;+ } else r = 0, t.child = null;+ return Hc(e, t, a, n, r);+ }+ if (n & 536870912) t.memoizedState = {+ baseLanes: 0,+ cachePool: null+ }, e !== null && Ka(t, a === null ? null : a.cachePool), a === null ? Oo() : Do(t, a), Po(t);+ else return r = t.lanes = 536870912, Hc(e, t, a === null ? n : a.baseLanes | n, n, r);+ } else a === null ? (e !== null && Ka(t, null), Oo(), Fo()) : (Ka(t, a.cachePool), Do(t, a), Fo(), t.memoizedState = null);+ return Ic(e, t, i, n), t.child;}- get childFocusStrategy() {- return this.parent.childFocusStrategy;+ function Vc(e, t) {+ return e !== null && e.tag === 22 || t.stateNode !== null || (t.stateNode = {+ _visibility: 1,+ _pendingMarkers: null,+ _retryCache: null,+ _transitions: null+ }), t.sibling;}-};-function TO(e, t, n, r = "react-aria-MenuSection") {- let i = (0, B.useContext)(SO), { CollectionBranch: a } = (0, B.useContext)(JE), [o, s] = zE(), { headingProps: c, groupProps: l } = jte({- heading: s,- "aria-label": n.props["aria-label"] ?? void 0- }), u = IE({- ...e,- id: void 0,- children: void 0,- defaultClassName: r,- className: n.props?.className,- style: n.props?.style,- values: void 0- }), d = (0, B.useContext)(wO), f = tO(e), p = e.selectionMode == null ? d : new use(d, f), m = LE(DO)?.shouldCloseOnSelect, h = Eg(e, { global: !0 });- return delete h.id, /*#__PURE__*/ B.createElement(HE.section, {- ...U(h, u, l),- ref: t- }, /*#__PURE__*/ B.createElement(FE, { values: [- [JD, {- ...c,- ref: o- }],- [wO, p],- [DO, { shouldCloseOnSelect: e.shouldCloseOnSelect ?? m }]- ] }, /*#__PURE__*/ B.createElement(a, {- collection: i.collection,- parent: n- })));-}-var EO = /*#__PURE__*/ ng(ap, TO), DO = /*#__PURE__*/ (0, B.createContext)(null), OO = /*#__PURE__*/ tg(ip, function(e, t, n) {- [e, t] = RE(e, t, DO);- let r = LE(DO)?.id, i = (0, B.useContext)(SO), a = Nh(t), o = (0, B.useContext)(wO), { isVirtualized: s } = (0, B.useContext)(JE), { menuItemProps: c, labelProps: l, descriptionProps: u, keyboardShortcutProps: d, ...f } = Ate({- ...e,- id: r,- key: n.key,- selectionManager: o,- isVirtualized: s- }, i, a), { hoverProps: p, isHovered: m } = sy({ isDisabled: f.isDisabled }), h = IE({- ...e,- id: void 0,- children: n.rendered,- defaultClassName: "react-aria-MenuItem",- values: {- ...f,- isHovered: m,- isFocusVisible: f.isFocusVisible,- selectionMode: o.selectionMode,- selectionBehavior: o.selectionBehavior,- hasSubmenu: !!e["aria-haspopup"],- isOpen: e["aria-expanded"] === "true"+ function Hc(e, t, n, r, i) {+ var a = Ga();+ return a = a === null ? null : {+ parent: Aa._currentValue,+ pool: a+ }, t.memoizedState = {+ baseLanes: n,+ cachePool: a+ }, e !== null && Ka(t, null), Oo(), Po(t), e !== null && xa(e, t, r, !0), t.childLanes = i, null;+ }+ function Uc(e, t) {+ return t = nl({+ mode: t.mode,+ children: t.children+ }, e.mode), t.ref = e.ref, e.child = t, t.return = e, t;+ }+ function Wc(e, t, n) {+ return uo(t, e.child, null, n), e = Uc(t, t.pendingProps), e.flags |= 2, Io(t), t.memoizedState = null, e;+ }+ function Gc(e, t, n) {+ var r = t.pendingProps, a = !!(t.flags & 128);+ if (t.flags &= -129, e === null) {+ if (ra) {+ if (r.mode === "hidden") return e = Uc(t, r), t.lanes = 536870912, e.memoizedState = {+ baseLanes: 0,+ cachePool: null+ }, Vc(null, e);+ if (No(t), (e = na) ? (e = hm(e, aa), e = e !== null && e.data === "&" ? e : null, e !== null && (t.memoizedState = {+ dehydrated: e,+ treeContext: qi === null ? null : {+ id: Ji,+ overflow: Yi+ },+ retryLane: 536870912,+ hydrationErrors: null+ }, n = Li(e), n.return = t, t.child = n, ta = t, na = null)) : e = null, e === null) throw sa(t);+ return t.lanes = 536870912, null;+ }+ return Uc(t, r);}- }), g = e.href ? HE.a : HE.div, _ = Eg(e, { global: !0 });- return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(g, {- ...U(_, h, c, p),- ref: a,- "data-disabled": f.isDisabled || void 0,- "data-hovered": m || void 0,- "data-focused": f.isFocused || void 0,- "data-focus-visible": f.isFocusVisible || void 0,- "data-pressed": f.isPressed || void 0,- "data-selected": f.isSelected || void 0,- "data-selection-mode": o.selectionMode === "none" ? void 0 : o.selectionMode,- "data-has-submenu": !!e["aria-haspopup"] || void 0,- "data-open": e["aria-expanded"] === "true" || void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [- [tD, { slots: {- [PE]: l,- label: l,- description: u- } }],- [nse, d],- [XD, { isSelected: f.isSelected }]- ] }, h.children));-});-tg(rp, function(e, t, n) {- let r = (0, B.useContext)(SO), { isLoading: i, onLoadMore: a, scrollOffset: o, ...s } = e, c = (0, B.useRef)(null);- lO((0, B.useMemo)(() => ({- onLoadMore: a,- collection: r?.collection,- sentinelRef: c,- scrollOffset: o- }), [- a,- o,- r?.collection- ]), c);- let l = IE({- ...s,- id: void 0,- children: n.rendered,- defaultClassName: "react-aria-MenuLoadingIndicator",- values: void 0- });- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement("div", {- style: {- position: "relative",- width: 0,- height: 0- },- inert: QD(!0)- }, /*#__PURE__*/ B.createElement("div", {- "data-testid": "loadMoreSentinel",- ref: c,- style: {- position: "absolute",- height: 1,- width: 1+ var o = e.memoizedState;+ if (o !== null) {+ var s = o.dehydrated;+ if (No(t), a) {+ if (t.flags & 256) t.flags &= -257, t = Wc(e, t, n);+ else if (t.memoizedState !== null) t.child = e.child, t.flags |= 128, t = null;+ else throw Error(i(558));+ } else if (Fc || xa(e, t, n, !1), a = (n & e.childLanes) !== 0, Fc || a) {+ if (To.current === null) {+ if (r = id, r !== null && (s = ft(r, n), s !== 0 && s !== o.retryLane)) throw o.retryLane = s, Ti(e, s), Hd(r, e, s), Pc;+ ef();+ }+ t = Wc(e, t, n);+ } else e = o.treeContext, na = ym(s.nextSibling), ta = t, ra = !0, ia = null, aa = !1, e !== null && ea(t, e), t = Uc(t, r), t.flags |= 134221824;+ return t;}- })), i && l.children && /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(HE.div, {- ...U(Eg(e, { global: !0 }), { tabIndex: -1 }),- ...l,- role: "menuitem",- ref: t- }, l.children)));-});-//#endregion-//#region node_modules/react-aria-components/dist/private/Dialog.mjs-var dse = /*#__PURE__*/ (0, B.createContext)(null), kO = /*#__PURE__*/ (0, B.createContext)(null), AO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let n = e["aria-labelledby"];- [e, t] = RE(e, t, dse);- let { dialogProps: r, titleProps: i, contentProps: a } = hte({- ...e,- "aria-labelledby": n- }, t), o = (0, B.useContext)(kO);- !r["aria-label"] && !r["aria-labelledby"] && e["aria-labelledby"] && (r["aria-labelledby"] = e["aria-labelledby"]);- let s = IE({- defaultClassName: "react-aria-Dialog",- className: e.className,- style: e.style,- children: e.children,- values: { close: o?.close || (() => {}) }- }), c = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(HE.section, {- ...U(c, s, r),- render: e.render,- ref: t,- slot: e.slot || void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [- [$E, { slots: {- [PE]: {},- title: {- ...i,- level: 2- }- } }],- [tD, { slots: {- [PE]: {},- description: a- } }],- [ZE, { slots: {- [PE]: {},- close: { onPress: () => o?.close() }- } }]- ] }, s.children));-}), jO = typeof document < "u" && window.visualViewport;-function fse() {- let e = Om(), [t, n] = (0, B.useState)(() => e ? {- width: 0,- height: 0- } : MO());- return (0, B.useEffect)(() => {- let e = (e) => {- n((t) => e.width === t.width && e.height === t.height ? t : e);- }, t = () => {- jO && jO.scale > 1 || e(MO());- }, r, i = (t) => {- jO && jO.scale > 1 || lg(H(t)) && (r = requestAnimationFrame(() => {- let t = kp();- (!t || !lg(t)) && e({- width: document.documentElement.clientWidth,- height: document.documentElement.clientHeight- });- }));- };- return e(MO()), em() && nm() && window.addEventListener("blur", i, !0), jO ? jO.addEventListener("resize", t) : window.addEventListener("resize", t), () => {- cancelAnimationFrame(r), em() && nm() && window.removeEventListener("blur", i, !0), jO ? jO.removeEventListener("resize", t) : window.removeEventListener("resize", t);- };- }, []), t;-}-function MO() {- return {- width: jO ? Math.min(jO.width * jO.scale, document.documentElement.clientWidth) : document.documentElement.clientWidth,- height: jO ? jO.height * jO.scale : document.documentElement.clientHeight- };-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Modal.mjs-var pse = /*#__PURE__*/ (0, B.createContext)(null), NO = /*#__PURE__*/ (0, B.createContext)(null), mse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- if ((0, B.useContext)(NO)) return /*#__PURE__*/ B.createElement(FO, {- ...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__*/ B.createElement(PO, {- isDismissable: n,- isKeyboardDismissDisabled: r,- isOpen: i,- defaultOpen: a,- onOpenChange: o,- isEntering: c,- isExiting: l,- UNSTABLE_portalContainer: u,- shouldCloseOnInteractOutside: d- }, /*#__PURE__*/ B.createElement(FO, {- ...f,- modalRef: t- }, s));-});-function hse(e, t) {- [e, t] = RE(e, t, pse);- let n = (0, B.useContext)(kO), r = pO(e), i = e.isOpen != null || e.defaultOpen != null || !n ? r : n, a = Nh(t), o = (0, B.useRef)(null), s = hO(a, i.isOpen), c = hO(o, i.isOpen), l = s || c || e.isExiting || !1, u = Om();- return !i.isOpen && !l || u ? null : /*#__PURE__*/ B.createElement(gse, {- ...e,- state: i,- isExiting: l,- overlayRef: a,- modalRef: o- });-}-var PO = /*#__PURE__*/ (0, B.forwardRef)(hse);-function gse({ UNSTABLE_portalContainer: e, ...t }) {- let n = t.modalRef, { state: r } = t, { modalProps: i, underlayProps: a } = Ite(t, r, n), o = mO(t.overlayRef) || t.isEntering || !1, s = IE({- ...t,- defaultClassName: "react-aria-ModalOverlay",- values: {- isEntering: o,- isExiting: t.isExiting,- state: r+ return e = Mi(e.child, {+ mode: r.mode,+ children: r.children+ }), e.ref = t.ref, t.child = e, e.return = t, e;+ }+ function Kc(e, t) {+ var n = t.ref;+ if (n === null) e !== null && e.ref !== null && (t.flags |= 4194816);+ else {+ if (typeof n != "function" && typeof n != "object") throw Error(i(284));+ (e === null || e.ref !== n) && (t.flags |= 4194816);}- }), c = fse(), l, u;- if (typeof document < "u") {- let e = m_(document.body) ? document.body : document.scrollingElement || document.documentElement, t = e.getBoundingClientRect().width % 1, n = e.getBoundingClientRect().height % 1;- l = e.scrollWidth - t, u = e.scrollHeight - n;}- let d = {- ...s.style,- "--visual-viewport-width": c.width + "px",- "--visual-viewport-height": c.height + "px",- "--page-width": l === void 0 ? void 0 : l + "px",- "--page-height": u === void 0 ? void 0 : u + "px"- };- return /*#__PURE__*/ B.createElement(ty, {- isExiting: t.isExiting,- portalContainer: e- }, /*#__PURE__*/ B.createElement(HE.div, {- ...U(Eg(t, { global: !0 }), a),- ...s,- style: d,- ref: t.overlayRef,- "data-entering": o || void 0,- "data-exiting": t.isExiting || void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [[NO, {- modalProps: i,- modalRef: n,- isExiting: t.isExiting,- isDismissable: t.isDismissable- }], [kO, r]] }, s.children)));-}-function FO(e) {- let { modalProps: t, modalRef: n, isExiting: r, isDismissable: i } = (0, B.useContext)(NO), a = (0, B.useContext)(kO), o = Nh((0, B.useMemo)(() => mh(e.modalRef, n), [e.modalRef, n])), s = mO(o), c = IE({- ...e,- defaultClassName: "react-aria-Modal",- values: {- isEntering: s,- isExiting: r,- state: a+ function qc(e, t, n, r, i) {+ return Ca(t), n = es(e, t, n, r, void 0, i), r = is(), e !== null && !Fc ? (as(e, t, i), dl(e, t, i)) : (ra && r && Qi(t), t.flags |= 1, Ic(e, t, n, i), t.child);+ }+ function Jc(e, t, n, r, i, a) {+ return Ca(t), t.updateQueue = null, n = ns(t, r, n, i), ts(e), r = is(), e !== null && !Fc ? (as(e, t, a), dl(e, t, a)) : (ra && r && Qi(t), t.flags |= 1, Ic(e, t, n, a), t.child);+ }+ function Yc(e, t, n, r, i) {+ if (Ca(t), t.stateNode === null) {+ var a = Oi, o = n.contextType;+ typeof o == "object" && o && (a = wa(o)), a = new n(r, a), t.memoizedState = a.state !== null && a.state !== void 0 ? a.state : null, a.updater = xc, t.stateNode = a, a._reactInternals = t, a = t.stateNode, a.props = r, a.state = t.memoizedState, a.refs = {}, mo(t), o = n.contextType, a.context = typeof o == "object" && o ? wa(o) : Oi, a.state = t.memoizedState, o = n.getDerivedStateFromProps, typeof o == "function" && (bc(t, n, o, r), a.state = t.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof a.getSnapshotBeforeUpdate == "function" || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (o = a.state, typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount(), o !== a.state && xc.enqueueReplaceState(a, a.state, null), So(t, r, a, i), xo(), a.state = t.memoizedState), typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !0;+ } else if (e === null) {+ a = t.stateNode;+ var s = t.memoizedProps, c = wc(n, s);+ a.props = c;+ var l = a.context, u = n.contextType;+ o = Oi, typeof u == "object" && u && (o = wa(u));+ var d = n.getDerivedStateFromProps;+ u = typeof d == "function" || typeof a.getSnapshotBeforeUpdate == "function", s = t.pendingProps !== s, u || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (s || l !== o) && Cc(t, a, r, o), po = !1;+ var f = t.memoizedState;+ a.state = f, So(t, r, a, i), xo(), l = t.memoizedState, s || f !== l || po ? (typeof d == "function" && (bc(t, n, d, r), l = t.memoizedState), (c = po || Sc(t, n, c, r, f, l, o)) ? (u || typeof a.UNSAFE_componentWillMount != "function" && typeof a.componentWillMount != "function" || (typeof a.componentWillMount == "function" && a.componentWillMount(), typeof a.UNSAFE_componentWillMount == "function" && a.UNSAFE_componentWillMount()), typeof a.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = r, t.memoizedState = l), a.props = r, a.state = l, a.context = o, r = c) : (typeof a.componentDidMount == "function" && (t.flags |= 4194308), r = !1);+ } else {+ a = t.stateNode, ho(e, t), o = t.memoizedProps, u = wc(n, o), a.props = u, d = t.pendingProps, f = a.context, l = n.contextType, c = Oi, typeof l == "object" && l && (c = wa(l)), s = n.getDerivedStateFromProps, (l = typeof s == "function" || typeof a.getSnapshotBeforeUpdate == "function") || typeof a.UNSAFE_componentWillReceiveProps != "function" && typeof a.componentWillReceiveProps != "function" || (o !== d || f !== c) && Cc(t, a, r, c), po = !1, f = t.memoizedState, a.state = f, So(t, r, a, i), xo();+ var p = t.memoizedState;+ o !== d || f !== p || po || e !== null && e.dependencies !== null && Sa(e.dependencies) ? (typeof s == "function" && (bc(t, n, s, r), p = t.memoizedState), (u = po || Sc(t, n, u, r, f, p, c) || e !== null && e.dependencies !== null && Sa(e.dependencies)) ? (l || typeof a.UNSAFE_componentWillUpdate != "function" && typeof a.componentWillUpdate != "function" || (typeof a.componentWillUpdate == "function" && a.componentWillUpdate(r, p, c), typeof a.UNSAFE_componentWillUpdate == "function" && a.UNSAFE_componentWillUpdate(r, p, c)), typeof a.componentDidUpdate == "function" && (t.flags |= 4), typeof a.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), t.memoizedProps = r, t.memoizedState = p), a.props = r, a.state = p, a.context = c, r = u) : (typeof a.componentDidUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 4), typeof a.getSnapshotBeforeUpdate != "function" || o === e.memoizedProps && f === e.memoizedState || (t.flags |= 1024), r = !1);}- });- return /*#__PURE__*/ B.createElement(HE.div, {- ...U(Eg(e, { global: !0 }), t),- ...c,- ref: o,- "data-entering": s || void 0,- "data-exiting": r || void 0- }, i && /*#__PURE__*/ B.createElement(Nb, { onDismiss: a.close }), c.children);-}-//#endregion-//#region node_modules/react-stately/dist/private/radio/useRadioGroupState.mjs-var _se = Math.round(Math.random() * 1e10), vse = 0;-function yse(e) {- let t = (0, B.useMemo)(() => e.name || `radio-group-${_se}-${++vse}`, [e.name]), [n, r] = L_(e.value, e.defaultValue ?? null, e.onChange), [i] = (0, B.useState)(n), [a, o] = (0, B.useState)(null), s = O_({- ...e,- value: n- }), c = (t) => {- !e.isReadOnly && !e.isDisabled && (r(t), s.commitValidation());- }, l = s.displayValidation.isInvalid;- return {- ...s,- name: t,- selectedValue: n,- defaultSelectedValue: e.value === void 0 ? e.defaultValue ?? null : i,- setSelectedValue: c,- lastFocusedValue: a,- setLastFocusedValue: o,- isDisabled: e.isDisabled || !1,- isReadOnly: e.isReadOnly || !1,- isRequired: e.isRequired || !1,- validationState: e.validationState || (l ? "invalid" : null),- isInvalid: l+ return a = r, Kc(e, t), r = !!(t.flags & 128), a || r ? (a = t.stateNode, n = r && typeof n.getDerivedStateFromError != "function" ? null : a.render(), t.flags |= 1, e !== null && r ? (t.child = uo(t, e.child, null, i), t.child = uo(t, null, n, i)) : Ic(e, t, n, i), t.memoizedState = a.state, e = t.child) : e = dl(e, t, i), e;+ }+ function Xc(e, t, n, r) {+ return da(), t.flags |= 256, Ic(e, t, n, r), t.child;+ }+ var Zc = {+ dehydrated: null,+ treeContext: null,+ retryLane: 0,+ hydrationErrors: null};-}-//#endregion-//#region node_modules/react-aria-components/dist/private/RadioGroup.mjs-var bse = /*#__PURE__*/ (0, B.createContext)(null), xse = /*#__PURE__*/ (0, B.createContext)(null), IO = /*#__PURE__*/ (0, B.createContext)(null), LO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, bse);- let { validationBehavior: n } = LE(rD) || {}, r = e.validationBehavior ?? n ?? "native", i = yse({- ...e,- validationBehavior: r- }), [a, o] = zE(!e["aria-label"] && !e["aria-labelledby"]), { radioGroupProps: s, labelProps: c, descriptionProps: l, errorMessageProps: u, ...d } = Xte({- ...e,- label: o,- validationBehavior: r- }, i), f = IE({- ...e,- values: {- orientation: e.orientation || "vertical",- isDisabled: i.isDisabled,- isReadOnly: i.isReadOnly,- isRequired: i.isRequired,- isInvalid: i.isInvalid,- state: i- },- defaultClassName: "react-aria-RadioGroup"- }), p = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(HE.div, {- ...U(p, f, s),- ref: t,- slot: e.slot || void 0,- "data-orientation": e.orientation || "vertical",- "data-invalid": i.isInvalid || void 0,- "data-disabled": i.isDisabled || void 0,- "data-readonly": i.isReadOnly || void 0,- "data-required": i.isRequired || void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [- [IO, i],- [XE, {- ...c,- ref: a,- elementType: "span"- }],- [tD, { slots: {- description: l,- errorMessage: u- } }],- [nD, d]- ] }, /*#__PURE__*/ B.createElement(YD, null, f.children)));-}), RO = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { inputRef: n = null, ...r } = e;- [e, t] = RE(r, t, xse);- let i = B.useContext(IO), a = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), o = Yte({- ...BE(e),- children: typeof e.children == "function" || e.children- }, i, a);- return /*#__PURE__*/ B.createElement(zO.Provider, { value: {- ...o,- inputRef: a,- defaultClassName: "react-aria-Radio"- } }, /*#__PURE__*/ B.createElement(Sse, {- ...e,- ref: t- }));-}), zO = /*#__PURE__*/ (0, B.createContext)(null), Sse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { labelProps: n, inputProps: r, isSelected: i, isDisabled: a, isPressed: o, defaultClassName: s, inputRef: c } = (0, B.useContext)(zO), l = B.useContext(IO), { isFocused: u, isFocusVisible: d, focusProps: f } = ry(), p = a || l.isReadOnly, { hoverProps: m, isHovered: h } = sy({- ...e,- isDisabled: p- }), g = IE({- ...e,- defaultClassName: s,- values: {- isSelected: i,- isPressed: o,- isHovered: h,- isFocused: u,- isFocusVisible: d,- isDisabled: a,- isReadOnly: l.isReadOnly,- isInvalid: l.isInvalid,- isRequired: l.isRequired+ function Qc(e) {+ return {+ baseLanes: e,+ cachePool: qa()+ };+ }+ function $c(e, t, n) {+ return e = e === null ? 0 : e.childLanes & ~n, t && (e |= _d), e;+ }+ function el(e, t, n) {+ var r = t.pendingProps, i = !1, a = !!(t.flags & 128), o;+ if ((o = a) || (o = e !== null && e.memoizedState === null ? !1 : !!(Lo.current & 2)), o && (i = !0, t.flags &= -129), o = !!(t.flags & 32), t.flags &= -33, e === null) {+ if (ra) {+ if (i ? Mo(t) : Fo(), (e = na) ? (e = hm(e, aa), e = e !== null && e.data !== "&" ? e : null, e !== null && (t.memoizedState = {+ dehydrated: e,+ treeContext: qi === null ? null : {+ id: Ji,+ overflow: Yi+ },+ retryLane: 536870912,+ hydrationErrors: null+ }, n = Li(e), n.return = t, t.child = n, ta = t, na = null)) : e = null, e === null) throw sa(t);+ return t.lanes = _m(e) ? 32 : 536870912, null;+ }+ return a = r.children, r = r.fallback, i ? (Fo(), i = t.mode, a = nl({+ mode: "hidden",+ children: a+ }, i), r = Fi(r, i, n, null), a.return = t, r.return = t, a.sibling = r, t.child = a, r = t.child, r.memoizedState = Qc(n), r.childLanes = $c(e, o, n), t.memoizedState = Zc, Vc(null, r)) : (Mo(t), tl(t, a));}- }), _ = Eg(e, { global: !0 });- return delete _.id, delete _.onClick, /*#__PURE__*/ B.createElement(HE.label, {- ...U(_, n, m, g),- ref: t,- "data-selected": i || void 0,- "data-pressed": o || void 0,- "data-hovered": h || void 0,- "data-focused": u || void 0,- "data-focus-visible": d || void 0,- "data-disabled": a || void 0,- "data-readonly": l.isReadOnly || void 0,- "data-invalid": l.isInvalid || void 0,- "data-required": l.isRequired || void 0- }, /*#__PURE__*/ B.createElement(H_, { elementType: "span" }, /*#__PURE__*/ B.createElement("input", {- ...U(r, f),- ref: c- })), g.children);-});-//#endregion-//#region node_modules/react-stately/dist/private/select/useSelectState.mjs-function Cse(e) {- let { selectionMode: t = "single", shouldCloseOnSelect: n = t === "single" } = e, r = pO(e), [i, a] = (0, B.useState)(null), o = (0, B.useMemo)(() => e.defaultValue === void 0 ? t === "single" ? e.defaultSelectedKey ?? null : [] : e.defaultValue, [- e.defaultValue,- e.defaultSelectedKey,- t- ]), [s, c] = L_((0, B.useMemo)(() => e.value === void 0 ? t === "single" ? e.selectedKey : void 0 : e.value, [- e.value,- e.selectedKey,- t- ]), o, e.onChange), l = t === "single" && Array.isArray(s) ? s[0] : s, u = (n) => {- if (t === "single") {- let t = Array.isArray(n) ? n[0] ?? null : n;- c(t), t !== l && e.onSelectionChange?.(t);- } else {- let e = [];- Array.isArray(n) ? e = n : n != null && (e = [n]), c(e);+ var s = e.memoizedState;+ if (s !== null) {+ var c = s.dehydrated;+ if (c !== null) return il(e, t, a, o, r, c, s, n);}- }, d = sO({- ...e,- selectionMode: t,- disallowEmptySelection: t === "single",- allowDuplicateSelectionEvents: !0,- selectedKeys: (0, B.useMemo)(() => wse(l), [l]),- onSelectionChange: (e) => {- if (e !== "all") {- if (t === "single") {- let t = e.values().next().value ?? null;- u(t);- } else u([...e]);- n && r.close(), m.commitValidation();+ return i ? (Fo(), i = r.fallback, a = t.mode, s = e.child, c = s.sibling, r = Mi(s, {+ mode: "hidden",+ children: r.children+ }), r.subtreeFlags = s.subtreeFlags & 1206910976, c === null ? (i = Fi(i, a, n, null), i.flags |= 2) : i = Mi(c, i), i.return = t, r.return = t, r.sibling = i, t.child = r, Vc(null, r), r = t.child, i = e.child.memoizedState, i === null ? i = Qc(n) : (a = i.cachePool, a === null ? a = qa() : (s = Aa._currentValue, a = a.parent === s ? a : {+ parent: s,+ pool: s+ }), i = {+ baseLanes: i.baseLanes | n,+ cachePool: a+ }), r.memoizedState = i, r.childLanes = $c(e, o, n), t.memoizedState = Zc, Vc(e.child, r)) : (Mo(t), n = e.child, e = n.sibling, n = Mi(n, {+ mode: "visible",+ children: r.children+ }), n.return = t, n.sibling = null, e !== null && (o = t.deletions, o === null ? (t.deletions = [e], t.flags |= 16) : o.push(e)), t.child = n, t.memoizedState = null, n);+ }+ function tl(e, t) {+ return t = nl({+ mode: "visible",+ children: t+ }, e.mode), t.return = e, e.child = t;+ }+ function nl(e, t) {+ return e = Ai(22, e, null, t), e.lanes = 0, e;+ }+ function rl(e, t, n) {+ return uo(t, e.child, null, n), e = tl(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e;+ }+ function il(e, t, n, r, a, o, s, c) {+ if (n) return t.flags & 256 ? (Mo(t), t.flags &= -257, rl(e, t, c)) : t.memoizedState === null ? (Fo(), o = a.fallback, s = t.mode, a = nl({+ mode: "visible",+ children: a.children+ }, s), o = Fi(o, s, c, null), o.flags |= 2, a.return = t, o.return = t, a.sibling = o, t.child = a, uo(t, e.child, null, c), a = t.child, a.memoizedState = Qc(c), a.childLanes = $c(e, r, c), t.memoizedState = Zc, Vc(null, a)) : (Fo(), t.child = e.child, t.flags |= 128, null);+ if (Mo(t), _m(o)) {+ if (r = o.nextSibling && o.nextSibling.dataset, r) var l = r.dgst;+ return r = l, r !== "" && (a = Error(i(419)), a.stack = "", a.digest = r, pa({+ value: a,+ source: null,+ stack: null+ })), rl(e, t, c);+ }+ if (Fc || xa(e, t, c, !1), r = (c & e.childLanes) !== 0, Fc || r) {+ if (To.current !== null) return rl(e, t, c);+ if (r = id, r !== null && (a = ft(r, c), a !== 0 && a !== s.retryLane)) throw s.retryLane = a, Ti(e, a), Hd(r, e, a), Pc;+ return gm(o) || ef(), rl(e, t, c);+ }+ return gm(o) ? (t.flags |= 192, t.child = e.child, null) : (e = s.treeContext, na = ym(o.nextSibling), ta = t, ra = !0, ia = null, aa = !1, e !== null && ea(t, e), t = tl(t, a.children), t.flags |= 134221824, t);+ }+ function al(e, t, n) {+ e.lanes |= t;+ var r = e.alternate;+ r !== null && (r.lanes |= t), ya(e.return, t, n);+ }+ function ol(e) {+ for (var t = null; e !== null;) {+ var n = e.alternate;+ n !== null && Bo(n) === null && (t = e), e = e.sibling;+ }+ return t;+ }+ function sl(e, t, n, r, i, a) {+ var o = e.memoizedState;+ o === null ? e.memoizedState = {+ isBackwards: t,+ rendering: null,+ renderingStartTime: 0,+ last: r,+ tail: n,+ tailMode: i,+ treeForkCount: a+ } : (o.isBackwards = t, o.rendering = null, o.renderingStartTime = 0, o.last = r, o.tail = n, o.tailMode = i, o.treeForkCount = a);+ }+ function cl(e) {+ var t = e.child;+ for (e.child = null; t !== null;) {+ var n = t.sibling;+ t.sibling = e.child, e.child = t, t = n;+ }+ }+ function ll(e, t, n) {+ var r = t.pendingProps, i = r.revealOrder, a = r.tail;+ r = r.children;+ var o = Lo.current;+ if (t.flags & 128) return Ro(t, o), null;+ var s = !!(o & 2);+ if (s ? (o = o & 1 | 2, t.flags |= 128) : o &= 1, Ro(t, o), i === "backwards" && e !== null ? (cl(e), Ic(e, t, r, n), cl(e)) : Ic(e, t, r, n), r = ra ? Wi : 0, !s && e !== null && e.flags & 128) a: for (e = t.child; e !== null;) {+ if (e.tag === 13) e.memoizedState !== null && al(e, n, t);+ else if (e.tag === 19) al(e, n, t);+ else if (e.child !== null) {+ e.child.return = e, e = e.child;+ continue;+ }+ if (e === t) break a;+ for (; e.sibling === null;) {+ if (e.return === null || e.return === t) break a;+ e = e.return;}+ e.sibling.return = e.return, e = e.sibling;}- }), f = d.selectionManager.firstSelectedKey, p = (0, B.useMemo)(() => [...d.selectionManager.selectedKeys].map((e) => d.collection.getItem(e)).filter((e) => e != null), [d.selectionManager.selectedKeys, d.collection]), m = O_({- ...e,- value: Array.isArray(l) && l.length === 0 ? null : l- }), [h, g] = (0, B.useState)(!1), [_] = (0, B.useState)(l);- return {- ...m,- ...d,- ...r,- value: l,- defaultValue: o ?? _,- setValue: u,- selectedKey: f,- setSelectedKey: u,- selectedItem: p[0] ?? null,- selectedItems: p,- defaultSelectedKey: e.defaultSelectedKey ?? (e.selectionMode === "single" ? _ : null),- focusStrategy: i,- open(t = null) {- (d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.open());- },- toggle(t = null) {- (d.collection.size !== 0 || e.allowsEmptyCollection) && (a(t), r.toggle());- },- isFocused: h,- setFocused: g- };-}-function wse(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 Tse(e) {- return e && e.__esModule ? e.default : e;-}-var BO = /*#__PURE__*/ (0, B.createContext)(null), VO = /*#__PURE__*/ (0, B.createContext)(null), Ese = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, BO);- let { children: n, isDisabled: r = !1, isInvalid: i = !1, isRequired: a = !1 } = e, o = (0, B.useMemo)(() => typeof n == "function" ? n({- isOpen: !1,- isDisabled: r,- isInvalid: i,- isRequired: a,- isFocused: !1,- isFocusVisible: !1,- defaultChildren: null- }) : n, [- n,- r,- i,- a- ]);- return /*#__PURE__*/ B.createElement(qh, { content: o }, (n) => /*#__PURE__*/ B.createElement(Ose, {- props: e,- collection: n,- selectRef: t- }));-}), Dse = [- XE,- ZE,- tD-];-function Ose({ props: e, selectRef: t, collection: n }) {- let { validationBehavior: r } = LE(rD) || {}, i = e.validationBehavior ?? r ?? "native", a = Cse({- ...e,- collection: n,- children: void 0,- validationBehavior: i- }), { isFocusVisible: o, focusProps: s } = ry({ within: !0 }), c = (0, B.useRef)(null), [l, u] = zE(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: d, triggerProps: f, valueProps: p, menuProps: m, descriptionProps: h, errorMessageProps: g, hiddenSelectProps: _, ...v } = Zte({- ...BE(e),- label: u,- validationBehavior: i- }, a, c), y = (0, B.useMemo)(() => ({- isOpen: a.isOpen,- isFocused: a.isFocused,- isFocusVisible: o,- isDisabled: e.isDisabled || !1,- isInvalid: v.isInvalid || !1,- isRequired: e.isRequired || !1- }), [- a.isOpen,- a.isFocused,- o,- e.isDisabled,- v.isInvalid,- e.isRequired- ]), b = IE({- ...e,- values: y,- defaultClassName: "react-aria-Select"- }), x = Eg(e, { global: !0 });- delete x.id;- let S = (0, B.useRef)(null);- return /*#__PURE__*/ B.createElement(FE, { values: [- [BO, e],- [VO, a],- [HO, p],- [XE, {- ...d,- ref: l,- elementType: "span"- }],- [ZE, {- ...f,- ref: c,- isPressed: a.isOpen,- autoFocus: e.autoFocus- }],- [kO, a],- [_O, {- trigger: "Select",- triggerRef: c,- scrollRef: S,- placement: "bottom start",- "aria-labelledby": m["aria-labelledby"],- clearContexts: Dse- }],- [uO, {- ...m,- ref: S- }],- [dO, a],- [tD, { slots: {- description: h,- errorMessage: g- } }],- [nD, v]- ] }, /*#__PURE__*/ B.createElement(HE.div, {- ...U(x, b, s),- ref: t,- slot: e.slot || void 0,- "data-focused": a.isFocused || void 0,- "data-focus-visible": o || void 0,- "data-open": a.isOpen || void 0,- "data-disabled": e.isDisabled || void 0,- "data-invalid": v.isInvalid || void 0,- "data-required": e.isRequired || void 0- }, b.children, /*#__PURE__*/ B.createElement($te, {- ..._,- autoComplete: e.autoComplete- })));-}-for (var HO = /*#__PURE__*/ (0, B.createContext)(null), kse = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, HO);- let n = (0, B.useContext)(VO), { placeholder: r } = LE(BO), i = n.selectedItems.map((e) => {- let t = e.props?.children;- return typeof t == "function" && (t = t({- isHovered: !1,- isPressed: !1,- isSelected: !1,- isFocused: !1,- isFocusVisible: !1,- isDisabled: !1,- selectionMode: "single",- selectionBehavior: "toggle"- })), t;- }), a = gte(), o = (0, B.useMemo)(() => n.selectedItems.map((e) => e?.textValue), [n.selectedItems]), s = n.selectionManager.selectionMode, c = (0, B.useMemo)(() => s === "single" ? o[0] ?? "" : a.format(o), [- s,- a,- o- ]), l = (0, B.useMemo)(() => {- if (s === "single") return i[0];- let e = a.formatToParts(o);- if (e.length === 0) return null;- let t = 0;- return e.map((e) => e.type === "element" ? /*#__PURE__*/ B.createElement(B.Fragment, { key: t }, i[t++]) : e.value);- }, [- s,- a,- o,- i- ]), u = wg(Tse(UD), "react-aria-components"), d = IE({- ...e,- defaultChildren: l ?? r ?? u.format("selectPlaceholder"),- defaultClassName: "react-aria-SelectValue",- values: {- selectedItem: n.selectedItems[0]?.value ?? null,- selectedItems: (0, B.useMemo)(() => n.selectedItems.map((e) => e.value ?? null), [n.selectedItems]),- selectedText: c,- isPlaceholder: n.selectedItems.length === 0,- state: n+ switch (i) {+ case "backwards":+ n = ol(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null, cl(t)), sl(t, !0, i, null, a, r);+ break;+ case "unstable_legacy-backwards":+ for (n = null, i = t.child, t.child = null; i !== null;) {+ if (e = i.alternate, e !== null && Bo(e) === null) {+ t.child = i;+ break;+ }+ e = i.sibling, i.sibling = n, n = i, i = e;+ }+ sl(t, !0, n, null, a, r);+ break;+ case "together":+ sl(t, !1, null, null, void 0, r);+ break;+ case "independent":+ t.memoizedState = null;+ break;+ default: n = ol(t.child), n === null ? (i = t.child, t.child = null) : (i = n.sibling, n.sibling = null), sl(t, !1, i, n, a, r);+ }+ return t.child;+ }+ function ul(e, t, n) {+ var r = t.pendingProps;+ return _a(t, t.type, r.value), Ic(e, t, r.children, n), t.child;+ }+ function dl(e, t, n) {+ if (e !== null && (t.dependencies = e.dependencies), md |= t.lanes, (n & t.childLanes) === 0) {+ if (e !== null) {+ if (xa(e, t, n, !1), (n & t.childLanes) === 0) return null;+ } else return null;}- }), f = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(HE.span, {- ref: t,- ...f,- ...d,- "data-placeholder": n.selectedItems.length === 0 || void 0- }, /*#__PURE__*/ B.createElement(tD.Provider, { value: void 0 }, d.children));-}), Ase = /*#__PURE__*/ (0, B.createContext)(null), UO = /*#__PURE__*/ (0, B.createContext)(null), jse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { inputRef: n = null, ...r } = e;- [e, t] = RE(r, t, Ase);- let i = Nh((0, B.useMemo)(() => mh(n, e.inputRef === void 0 ? null : e.inputRef), [n, e.inputRef])), a = R_(e), o = ax({- ...BE(e),- children: typeof e.children == "function" || e.children- }, a, i);- return /*#__PURE__*/ B.createElement(FE, { values: [[UO, a], [WO, {- ...o,- inputRef: i,- defaultClassName: "react-aria-Switch"- }]] }, /*#__PURE__*/ B.createElement(Mse, {- ...e,- ref: t- }));-}), WO = /*#__PURE__*/ (0, B.createContext)(null), Mse = /*#__PURE__*/ (0, B.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, B.useContext)(WO), { isFocused: f, isFocusVisible: p, focusProps: m } = ry(), h = a || o, g = (0, B.useContext)(UO), { hoverProps: _, isHovered: v } = sy({- ...e,- isDisabled: h- }), y = IE({- ...e,- defaultClassName: u,- values: {- isSelected: i,- isPressed: s,- isHovered: v,- isFocused: f,- isFocusVisible: p,- isDisabled: a,- isReadOnly: o,- isInvalid: c,- isRequired: d || !1,- state: g+ if (e !== null && t.child !== e.child) throw Error(i(153));+ if (t.child !== null) {+ for (e = t.child, n = Mi(e, e.pendingProps), t.child = n, n.return = t; e.sibling !== null;) e = e.sibling, n = n.sibling = Mi(e, e.pendingProps), n.return = t;+ n.sibling = null;}- }), b = Eg(e, { global: !0 });- return delete b.id, delete b.onClick, /*#__PURE__*/ B.createElement(HE.label, {- ...U(b, n, _, y),- ref: t,- slot: e.slot || void 0,- "data-selected": i || void 0,- "data-pressed": s || void 0,- "data-hovered": v || void 0,- "data-focused": f || void 0,- "data-focus-visible": p || void 0,- "data-disabled": a || void 0,- "data-readonly": o || void 0,- "data-invalid": c || void 0,- "data-required": d || void 0- }, /*#__PURE__*/ B.createElement(H_, { elementType: "span" }, /*#__PURE__*/ B.createElement("input", {- ...U(r, m),- ref: l- })), y.children);-}), GO = 10, KO = 5, Nse = class {- setup(e, t, n) {- this.delegate = e, this.state = t, this.direction = n;+ return t.child;}- getDropTargetFromPoint(e, t, n) {- let r = this.delegate.getDropTargetFromPoint(e, t, n);- return !r || r.type === "root" ? r : this.resolveDropTarget(r, e, t, n);+ function fl(e, t) {+ return (e.lanes & t) !== 0 || (e = e.dependencies, !!(e !== null && Sa(e)));}- resolveDropTarget(e, t, n, r) {- let i = this.pointerTracking, a = n - i.lastY, o = t - i.lastX, s = i.yDirection, c = i.xDirection;- if (Math.abs(a) > KO && (s = a > 0 ? "down" : "up", i.yDirection = s, i.lastY = n), Math.abs(o) > GO && (c = o > 0 ? "right" : "left", i.xDirection = c, i.lastX = t), e.dropPosition === "before") {- let t = this.state.collection.getKeyBefore(e.key);- for (; t != null;) {- let e = this.state.collection.getItem(t);- if (e?.type === "item") break;- t = e?.parentKey ?? null;- }- if (t != null) {- let n = {- type: "item",- key: t,- dropPosition: "after"- };- r(n) && (e = n);+ function pl(e, t, n) {+ switch (t.tag) {+ case 3:+ xe(t, t.stateNode.containerInfo), _a(t, Aa, e.memoizedState.cache), da();+ break;+ case 27:+ case 5:+ Ce(t);+ break;+ case 4:+ xe(t, t.stateNode.containerInfo);+ break;+ case 10:+ _a(t, t.type, t.memoizedProps.value);+ break;+ case 31:+ if (t.memoizedState !== null) return t.flags |= 128, No(t), null;+ break;+ case 13:+ var r = t.memoizedState;+ if (r !== null) {+ if (r.dehydrated !== null) return Mo(t), t.flags |= 128, null;+ r = xa(e, t, n, !1);+ var i = t.child.childLanes;+ return r || (n & i) !== 0 ? el(e, t, n) : (Mo(t), e = dl(e, t, n), e === null ? null : e.sibling);+ }+ Mo(t);+ break;+ case 19:+ if (t.flags & 128) return ll(e, t, n);+ if (i = !!(e.flags & 128), r = (n & t.childLanes) !== 0, r ||= (xa(e, t, n, !1), (n & t.childLanes) !== 0), i) {+ if (r) return ll(e, t, n);+ t.flags |= 128;+ }+ if (i = t.memoizedState, i !== null && (i.rendering = null, i.tail = null, i.lastEffect = null), Ro(t, Lo.current), r) break;+ return null;+ case 22: return t.lanes = 0, Bc(e, t, n, t.pendingProps);+ case 24: _a(t, Aa, e.memoizedState.cache);+ }+ return dl(e, t, n);+ }+ function ml(e, t, n) {+ if (e !== null) {+ if (e.memoizedProps !== t.pendingProps) Fc = !0;+ else {+ if (!fl(e, n) && !(t.flags & 128)) return Fc = !1, pl(e, t, n);+ Fc = !!(e.flags & 131072);}+ } else Fc = !1, ra && t.flags & 1048576 && Zi(t, Wi, t.index);+ switch (t.lanes = 0, t.tag) {+ case 16:+ a: {+ var r = t.pendingProps;+ if (e = eo(t.elementType), t.type = e, typeof e == "function") ji(e) ? (r = wc(e, r), t.tag = 1, t = Yc(null, t, e, r, n)) : (t.tag = 0, t = qc(null, t, e, r, n));+ else {+ if (e != null) {+ var a = e.$$typeof;+ if (a === N) {+ t.tag = 11, t = Lc(null, t, e, r, n);+ break a;+ }+ if (a === F) {+ t.tag = 14, t = Rc(null, t, e, r, n);+ break a;+ }+ if (a === M) {+ t.tag = 10, t.type = e, t = ul(null, t, n);+ break a;+ }+ }+ throw t = le(e) || e, Error(i(306, t, ""));+ }+ }+ return t;+ case 0: return qc(e, t, t.type, t.pendingProps, n);+ case 1: return r = t.type, a = wc(r, t.pendingProps), Yc(e, t, r, a, n);+ case 3:+ a: {+ if (xe(t, t.stateNode.containerInfo), e === null) throw Error(i(387));+ r = t.pendingProps;+ var o = t.memoizedState;+ a = o.element, ho(e, t), So(t, r, null, n);+ var s = t.memoizedState;+ if (r = s.cache, _a(t, Aa, r), r !== o.cache && ba(t, [Aa], n, !0), xo(), r = s.element, o.isDehydrated) {+ if (o = {+ element: r,+ isDehydrated: !1,+ cache: s.cache+ }, t.updateQueue.baseState = o, t.memoizedState = o, t.flags & 256) {+ t = Xc(e, t, r, n);+ break a;+ }+ if (r !== a) {+ a = Bi(Error(i(424)), t), pa(a), t = Xc(e, t, r, n);+ break a;+ }+ switch (e = t.stateNode.containerInfo, e.nodeType) {+ case 9:+ e = e.body;+ break;+ default: e = e.nodeName === "HTML" ? e.ownerDocument.body : e;+ }+ for (na = ym(e.firstChild), ta = t, ra = !0, ia = null, aa = !0, n = fo(t, null, r, n), t.child = n; n;) n.flags = n.flags & -3 | 134221824, n = n.sibling;+ } else {+ if (da(), r === a) {+ t = dl(e, t, n);+ break a;+ }+ Ic(e, t, r, n);+ }+ t = t.child;+ }+ return t;+ case 26: return Kc(e, t), e === null ? (n = Um(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ra || (t.stateNode = Cp(t.type, t.pendingProps, ye.current, t)) : t.memoizedState = Um(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;+ case 27: return Ce(t), e === null && ra && (r = t.stateNode = Tm(t.type, t.pendingProps, ye.current), ta = t, aa = !0, a = na, Mp(t.type) ? (bm = a, na = ym(r.firstChild)) : na = a), Ic(e, t, t.pendingProps.children, n), Kc(e, t), e === null && (t.flags |= 4194304), t.child;+ case 5: return e === null && ra && ((a = r = na) && (r = pm(r, t.type, t.pendingProps, aa), r === null ? a = !1 : (t.stateNode = r, ta = t, na = ym(r.firstChild), aa = !1, a = !0)), a || sa(t)), Ce(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, wp(a, o) ? r = null : s !== null && wp(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = es(e, t, rs, null, null, n), _h._currentValue = a), Kc(e, t), Ic(e, t, r, n), t.child;+ case 6: return e === null && ra && ((e = n = na) && (n = mm(n, t.pendingProps, aa), n === null ? e = !1 : (t.stateNode = n, ta = t, na = null, e = !0)), e || sa(t)), null;+ case 13: return el(e, t, n);+ case 4: return xe(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = uo(t, null, r, n) : Ic(e, t, r, n), t.child;+ case 11: return Lc(e, t, t.type, t.pendingProps, n);+ case 7: return r = t.pendingProps, Kc(e, t), Ic(e, t, r, n), t.child;+ case 8: return Ic(e, t, t.pendingProps.children, n), t.child;+ case 12: return Ic(e, t, t.pendingProps.children, n), t.child;+ case 10: return ul(e, t, n);+ case 9: return a = t.type._context, r = t.pendingProps.children, Ca(t), a = wa(a), r = r(a), t.flags |= 1, Ic(e, t, r, n), t.child;+ case 14: return Rc(e, t, t.type, t.pendingProps, n);+ case 15: return zc(e, t, t.type, t.pendingProps, n);+ case 19: return ll(e, t, n);+ case 31: return Gc(e, t, n);+ case 22: return Bc(e, t, n, t.pendingProps);+ case 24: return Ca(t), r = wa(Aa), e === null ? (a = Ga(), a === null && (a = id, o = ja(), a.pooledCache = o, o.refCount++, o !== null && (a.pooledCacheLanes |= n), a = o), t.memoizedState = {+ parent: r,+ cache: a+ }, mo(t), _a(t, Aa, a)) : ((e.lanes & n) !== 0 && (ho(e, t), So(t, null, null, n), xo()), a = e.memoizedState, o = t.memoizedState, a.parent === r ? (r = o.cache, _a(t, Aa, r), r !== a.cache && ba(t, [Aa], n, !0)) : (a = {+ parent: r,+ cache: r+ }, t.memoizedState = a, t.lanes === 0 && (t.memoizedState = t.updateQueue.baseState = a), _a(t, Aa, r))), Ic(e, t, t.pendingProps.children, n), t.child;+ case 30: return t.stateNode === null && (t.stateNode = {+ autoName: null,+ paired: null,+ clones: null,+ ref: null+ }), r = t.pendingProps, r.name != null && r.name !== "auto" ? t.flags |= e === null ? 18882560 : 18874368 : ra && Qi(t), e !== null && e.memoizedProps.name !== r.name ? t.flags |= 4194816 : Kc(e, t), Ic(e, t, r.children, n), t.child;+ case 29: throw t.pendingProps;}- let l = this.getPotentialTargets(e, r);- if (l.length === 0) return { type: "root" };- let u;- return l.length > 1 ? u = this.selectTarget(l, e, t, n, s, c) : (u = l[0], i.boundaryContext = null), u;+ throw Error(i(156, t.tag));}- getPotentialTargets(e, t) {- if (e.dropPosition === "on") return [e];- let n = e, r = this.state.collection, i = r.getItem(n.key);- for (; i && i?.type !== "item" && i.nextKey != null;) n.key = i.nextKey, i = r.getItem(i.nextKey);- let a = [n];- if (i && i.hasChildNodes && this.state.expandedKeys.has(i.key) && r.getChildren && n.dropPosition === "after") {- let e = i.firstChildKey == null ? null : r.getItem(i.firstChildKey);- for (; e && e.type !== "item";) e = e.nextKey == null ? null : r.getItem(e.nextKey);- if (e?.type === "item") {- let n = {- type: "item",- key: e.key,- dropPosition: "before"- };- return t(n) ? [n] : [];+ function hl(e) {+ e.flags |= 4;+ }+ function gl(e, t, n, r, i) {+ var a;+ if ((a = !!(e.mode & 32)) && (a = n === null ? ih(t, r) : ih(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 (Zd()) e.flags |= 8192;+ else throw to = Za, Ya;}+ } else e.flags &= -16777217;+ }+ function _l(e, t) {+ if (t.type !== "stylesheet" || t.state.loading & 4) e.flags &= -16777217;+ else if (e.flags |= 16777216, !ah(t)) {+ if (Zd()) e.flags |= 8192;+ else throw to = Za, Ya;}- if (i?.nextKey != null) return [e];- let o = i?.parentKey, s = [];- for (; o != null;) {- let e = r.getItem(o), n = e?.nextKey == null ? null : r.getItem(e.nextKey);- if (!n || n.parentKey !== o) {- if (e?.type === "item") {- let e = {- type: "item",- key: o,- dropPosition: "after"- };- t(e) && s.push(e);+ }+ function vl(e, t) {+ t !== null && (e.flags |= 4), e.flags & 16384 && (t = e.tag === 22 ? 536870912 : ot(), e.lanes |= t, vd |= t);+ }+ function yl(e, t) {+ if (!ra) switch (e.tailMode) {+ case "visible": break;+ case "collapsed":+ for (var n = e.tail, r = null; n !== null;) n.alternate !== null && (r = n), n = n.sibling;+ r === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : r.sibling = null;+ break;+ default:+ for (t = e.tail, n = null; t !== null;) t.alternate !== null && (n = t), t = t.sibling;+ n === null ? e.tail = null : n.sibling = null;+ }+ }+ function bl(e) {+ var t = e.alternate !== null && e.alternate.child === e.child, n = 0, r = 0;+ if (t) for (var i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags & 1206910976, r |= i.flags & 1206910976, i.return = e, i = i.sibling;+ else for (i = e.child; i !== null;) n |= i.lanes | i.childLanes, r |= i.subtreeFlags, r |= i.flags, i.return = e, i = i.sibling;+ return e.subtreeFlags |= r, e.childLanes = n, t;+ }+ function xl(e, t, n) {+ var r = t.pendingProps;+ switch ($i(t), t.tag) {+ case 16:+ case 15:+ case 0:+ case 11:+ case 7:+ case 8:+ case 12:+ case 9:+ case 14: return bl(t), null;+ case 1: return bl(t), null;+ case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), va(Aa), Se(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (ua(t) ? hl(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, fa())), bl(t), null;+ case 26:+ var a = t.type, o = t.memoizedState;+ return e === null ? (hl(t), o === null ? (bl(t), gl(t, a, null, r, n)) : (bl(t), _l(t, o))) : o ? o === e.memoizedState ? (bl(t), t.flags &= -16777217) : (hl(t), bl(t), _l(t, o)) : (e = e.memoizedProps, e !== r && hl(t), bl(t), gl(t, a, e, r, n)), null;+ case 27:+ if (we(t), n = ye.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && hl(t);+ else {+ if (!r) {+ if (t.stateNode === null) throw Error(i(166));+ return bl(t), t.subtreeFlags &= -33554433, null;+ }+ e = _e.current, ua(t) ? ca(t, e) : (e = Tm(a, r, n), t.stateNode = e, hl(t));}- if (n) break;- }- o = e?.parentKey;+ return bl(t), t.subtreeFlags &= -33554433, null;+ case 5:+ if (we(t), a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && hl(t);+ else {+ if (!r) {+ if (t.stateNode === null) throw Error(i(166));+ return bl(t), t.subtreeFlags &= -33554433, null;+ }+ if (o = _e.current, ua(t)) ca(t, o);+ else {+ var s = bp(ye.current);+ switch (o) {+ case 1:+ o = s.createElementNS("http://www.w3.org/2000/svg", a);+ break;+ case 2:+ o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a);+ break;+ default: switch (a) {+ case "svg":+ o = s.createElementNS("http://www.w3.org/2000/svg", a);+ break;+ case "math":+ o = s.createElementNS("http://www.w3.org/1998/Math/MathML", a);+ break;+ case "script":+ o = s.createElement("div"), o.innerHTML = "<script><\/script>", o = o.removeChild(o.firstChild);+ break;+ case "select":+ o = typeof r.is == "string" ? s.createElement("select", { is: r.is }) : s.createElement("select"), r.multiple ? o.multiple = !0 : r.size && (o.size = r.size);+ break;+ default: o = typeof r.is == "string" ? s.createElement(a, { is: r.is }) : s.createElement(a);+ }+ }+ o[vt] = t, o[yt] = r;+ a: for (s = t.child; s !== null;) {+ if (s.tag === 5 || s.tag === 6) o.appendChild(s.stateNode);+ else if (s.tag !== 4 && s.tag !== 27 && s.child !== null) {+ s.child.return = s, s = s.child;+ continue;+ }+ if (s === t) break a;+ for (; s.sibling === null;) {+ if (s.return === null || s.return === t) break a;+ s = s.return;+ }+ s.sibling.return = s.return, s = s.sibling;+ }+ t.stateNode = o;+ a: switch (pp(o, a, r), a) {+ case "button":+ case "input":+ case "select":+ case "textarea":+ r = !!r.autoFocus;+ break a;+ case "img":+ r = !0;+ break a;+ default: r = !1;+ }+ r && hl(t);+ }+ }+ return bl(t), t.subtreeFlags &= -33554433, gl(t, t.type, e === null ? null : e.memoizedProps, t.pendingProps, n), null;+ case 6:+ if (e && t.stateNode != null) e.memoizedProps !== r && hl(t);+ else {+ if (typeof r != "string" && t.stateNode === null) throw Error(i(166));+ if (e = ye.current, ua(t)) {+ if (e = t.stateNode, n = t.memoizedProps, r = null, a = ta, a !== null) switch (a.tag) {+ case 27:+ case 5: r = a.memoizedProps;+ }+ e[vt] = t, e = !!(e.nodeValue === n || r !== null && !0 === r.suppressHydrationWarning || up(e.nodeValue, n)), e || sa(t, !0);+ } else e = bp(e).createTextNode(r), e[vt] = t, t.stateNode = e;+ }+ return bl(t), null;+ case 31:+ if (n = t.memoizedState, e === null || e.memoizedState !== null) {+ if (r = ua(t), n !== null) {+ if (e === null) {+ if (!r) throw Error(i(318));+ if (e = t.memoizedState, e = e === null ? null : e.dehydrated, !e) throw Error(i(557));+ e[vt] = t;+ } else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;+ bl(t), e = !1;+ } else n = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = n), e = !0;+ if (!e) return t.flags & 256 ? (Io(t), t) : (Io(t), null);+ if (t.flags & 128) throw Error(i(558));+ }+ return bl(t), null;+ case 13:+ if (r = t.memoizedState, e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {+ if (a = ua(t), r !== null && r.dehydrated !== null) {+ if (e === null) {+ if (!a) throw Error(i(318));+ if (a = t.memoizedState, a = a === null ? null : a.dehydrated, !a) throw Error(i(317));+ a[vt] = t;+ } else da(), !(t.flags & 128) && (t.memoizedState = null), t.flags |= 4;+ bl(t), a = !1;+ } else a = fa(), e !== null && e.memoizedState !== null && (e.memoizedState.hydrationErrors = a), a = !0;+ if (!a) return t.flags & 256 ? (Io(t), t) : (Io(t), null);+ }+ return Io(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), vl(t, t.updateQueue), bl(t), null);+ case 4: return Se(), e === null && ep(t.stateNode.containerInfo), t.flags |= 67108864, bl(t), null;+ case 10: return va(t.type), bl(t), null;+ case 19:+ if (zo(t), r = t.memoizedState, r === null) return bl(t), null;+ if (a = !!(t.flags & 128), o = r.rendering, o === null) {+ if (a) yl(r, !1);+ else {+ if (pd !== 0 || e !== null && e.flags & 128) for (e = t.child; e !== null;) {+ if (o = Bo(e), o !== null) {+ for (t.flags |= 128, yl(r, !1), e = o.updateQueue, t.updateQueue = e, vl(t, e), t.subtreeFlags = 0, e = n, n = t.child; n !== null;) Ni(n, e), n = n.sibling;+ return Ro(t, Lo.current & 1 | 2), ra && Xi(t, r.treeForkCount), t.child;+ }+ e = e.sibling;+ }+ r.tail !== null && Le() > wd && (t.flags |= 128, a = !0, yl(r, !1), t.lanes = 4194304);+ }+ } else {+ if (!a) {+ if (e = Bo(o), e !== null) {+ if (t.flags |= 128, a = !0, e = e.updateQueue, t.updateQueue = e, vl(t, e), yl(r, !0), r.tail === null && r.tailMode !== "collapsed" && r.tailMode !== "visible" && !o.alternate && !ra) return bl(t), null;+ } else 2 * Le() - r.renderingStartTime > wd && n !== 536870912 && (t.flags |= 128, a = !0, yl(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);+ }+ if (r.tail !== null) {+ e = r.tail;+ a: {+ for (n = e; n !== null;) {+ if (n.alternate !== null) {+ n = !1;+ break a;+ }+ n = n.sibling;+ }+ n = !0;+ }+ return r.rendering = e, r.tail = e.sibling, r.renderingStartTime = Le(), e.sibling = null, o = Lo.current, o = a ? o & 1 | 2 : o & 1, r.tailMode === "visible" || r.tailMode === "collapsed" || !n || ra ? Ro(t, o) : (n = o, ge(Ao, t), ge(Lo, n), jo === null && (jo = t)), ra && Xi(t, r.treeForkCount), e;+ }+ return bl(t), null;+ case 22:+ case 23: return Io(t), ko(), r = t.memoizedState !== null, e === null ? r && (t.flags |= 8192) : e.memoizedState !== null !== r && (t.flags |= 8192), r ? n & 536870912 && !(t.flags & 128) && (bl(t), t.subtreeFlags & 6 && (t.flags |= 8192)) : bl(t), n = t.updateQueue, n !== null && vl(t, n.retryQueue), n = null, e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), r = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (r = t.memoizedState.cachePool.pool), r !== n && (t.flags |= 2048), e !== null && he(Wa), null;+ case 24: return n = null, e !== null && (n = e.memoizedState.cache), t.memoizedState.cache !== n && (t.flags |= 2048), va(Aa), bl(t), null;+ case 25: return null;+ case 30: return t.flags |= 33554432, bl(t), null;+ }+ throw Error(i(156, t.tag));+ }+ function Sl(e, t) {+ switch ($i(t), t.tag) {+ case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;+ case 3: return va(Aa), Se(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;+ case 26:+ case 27:+ case 5: return we(t), null;+ case 31:+ if (t.memoizedState !== null) {+ if (Io(t), t.alternate === null) throw Error(i(340));+ da();+ }+ return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;+ case 13:+ if (Io(t), e = t.memoizedState, e !== null && e.dehydrated !== null) {+ if (t.alternate === null) throw Error(i(340));+ da();+ }+ return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;+ case 19: return zo(t), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, e = t.memoizedState, e !== null && (e.rendering = null, e.tail = null), t.flags |= 4, t) : null;+ case 4: return Se(), null;+ case 10: return va(t.type), null;+ case 22:+ case 23: return Io(t), ko(), e !== null && he(Wa), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;+ case 24: return va(Aa), null;+ case 25: return null;+ default: return null;+ }+ }+ function Cl(e, t) {+ switch ($i(t), t.tag) {+ case 3:+ va(Aa), Se();+ break;+ case 26:+ case 27:+ case 5:+ we(t);+ break;+ case 4:+ Se();+ break;+ case 31:+ t.memoizedState !== null && Io(t);+ break;+ case 13:+ Io(t);+ break;+ case 19:+ zo(t);+ break;+ case 10:+ va(t.type);+ break;+ case 22:+ case 23:+ Io(t), ko(), e !== null && he(Wa);+ break;+ case 24: va(Aa);}- if (s.length > 0 && a.push(...s), a.length === 1) {- let e = r.getKeyAfter(n.key), a = e == null ? null : r.getItem(e);- if (e != null && a && i && a.level != null && i.level != null && a.level > i.level) {- let n = {- type: "item",- key: e,- dropPosition: "before"- };- if (t(n)) return [n];+ }+ function wl(e, t) {+ try {+ var n = t.updateQueue, r = n === null ? null : n.lastEffect;+ if (r !== null) {+ var i = r.next;+ n = i;+ do {+ if ((n.tag & e) === e) {+ r = void 0;+ var a = n.create, o = n.inst;+ r = a(), o.destroy = r;+ }+ n = n.next;+ } while (n !== i);}+ } catch (e) {+ Sf(t, t.return, e);}- return a.filter(t);}- selectTarget(e, t, n, r, i, a) {- if (e.length < 2) return e[0];- let o = this.pointerTracking, s = this.state.collection.getItem(t.key)?.parentKey;- if (s == null) return e[0];- (!o.boundaryContext || o.boundaryContext.parentKey !== s) && (o.boundaryContext = {- parentKey: s,- preferredTargetIndex: o.yDirection === "up" ? e.length - 1 : 0,- lastSwitchY: r,- lastSwitchX: n- });- let c = o.boundaryContext, l = Math.abs(n - c.lastSwitchX);- if (Math.abs(r - c.lastSwitchY) > KO && i) {- let t = c.preferredTargetIndex || 0;- i === "down" && t === 0 ? c.preferredTargetIndex = e.length - 1 : i === "up" && t === e.length - 1 && (c.preferredTargetIndex = 0), o.xDirection = null;- }- if (l > GO && a) {- let t = c.preferredTargetIndex || 0;- a === "left" ? this.direction === "ltr" ? t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n) : t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : a === "right" && (this.direction === "ltr" ? t > 0 && (c.preferredTargetIndex = t - 1, c.lastSwitchX = n) : t < e.length - 1 && (c.preferredTargetIndex = t + 1, c.lastSwitchX = n)), o.yDirection = null;+ function Tl(e, t, n) {+ try {+ var r = t.updateQueue, i = r === null ? null : r.lastEffect;+ if (i !== null) {+ var a = i.next;+ r = a;+ do {+ if ((r.tag & e) === e) {+ var o = r.inst, s = o.destroy;+ if (s !== void 0) {+ o.destroy = void 0, i = t;+ var c = n, l = s;+ try {+ l();+ } catch (e) {+ Sf(i, c, e);+ }+ }+ }+ r = r.next;+ } while (r !== a);+ }+ } catch (e) {+ Sf(t, t.return, e);}- return e[Math.max(0, Math.min(c.preferredTargetIndex || 0, e.length - 1))];- }- constructor() {- this.delegate = null, this.state = null, this.direction = "ltr", this.pointerTracking = {- lastY: 0,- lastX: 0,- yDirection: null,- xDirection: null,- boundaryContext: null- };}-}, Pse = class {- constructor(e) {- this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];- let t = (r) => {- let i = this.keyMap.get(r.key);- e.visitNode && (r = e.visitNode(r)), this.keyMap.set(r.key, r);- let a = /* @__PURE__ */ new Set(), o = null, s = !1;- if (r.type === "item") {- for (let e of r.childNodes) if (e.props?.colSpan !== void 0) {- s = !0;- break;- }+ function El(e) {+ var t = e.updateQueue;+ if (t !== null) {+ var n = e.stateNode;+ try {+ wo(t, n);+ } catch (t) {+ Sf(e, e.return, t);}- for (let e of r.childNodes) e.type === "cell" && s && (e.colspan = e.props?.colSpan, e.colSpan = e.props?.colSpan, e.colIndex = o ? (o.colIndex ?? o.index) + (o.colSpan ?? 1) : e.index), e.type === "cell" && e.parentKey == null && (e.parentKey = r.key), a.add(e.key), o ? (o.nextKey = e.key, e.prevKey = o.key) : e.prevKey = null, t(e), o = e;- if (o && (o.nextKey = null), i) for (let e of i.childNodes) a.has(e.key) || n(e);- }, n = (e) => {- this.keyMap.delete(e.key);- for (let t of e.childNodes) this.keyMap.get(t.key) === t && n(t);- }, r = null;- for (let [n, i] of e.items.entries()) {- let e = {- ...i,- level: i.level ?? 0,- key: i.key ?? "row-" + n,- type: i.type ?? "row",- value: i.value ?? null,- hasChildNodes: !0,- childNodes: [...i.childNodes],- rendered: i.rendered,- textValue: i.textValue ?? "",- index: i.index ?? n- };- r ? (r.nextKey = e.key, e.prevKey = r.key) : e.prevKey = null, this.rows.push(e), t(e), r = e;}- r && (r.nextKey = null);- }- *[Symbol.iterator]() {- yield* [...this.rows];- }- get size() {- return [...this.rows].length;- }- getKeys() {- return this.keyMap.keys();- }- getKeyBefore(e) {- let t = this.keyMap.get(e);- return t ? t.prevKey ?? null : null;- }- getKeyAfter(e) {- let t = this.keyMap.get(e);- return t ? t.nextKey ?? null : null;- }- getFirstKey() {- return [...this.rows][0]?.key;- }- getLastKey() {- let e = [...this.rows];- return e[e.length - 1]?.key;- }- getItem(e) {- return this.keyMap.get(e) ?? null;- }- at(e) {- let t = [...this.getKeys()];- return this.getItem(t[e]);- }- getChildren(e) {- return this.keyMap.get(e)?.childNodes || [];}-}, qO = "row-header-column-" + Math.random().toString(36).slice(2), JO = "row-header-column-" + Math.random().toString(36).slice(2); qO === JO;) JO = "row-header-column-" + Math.random().toString(36).slice(2);-function YO(e, t) {- if (t.length === 0) return [];- let n = [], r = /* @__PURE__ */ new Map();- for (let i of t) {- let t = i.parentKey, a = [i];- for (; t != null;) {- let n = e.get(t);- if (!n) break;- if (r.has(n)) {- n.colSpan ??= 0, n.colSpan++, n.colspan = n.colSpan;- let { column: e, index: t } = r.get(n);- if (t > a.length) break;- for (let n = t; n < a.length; n++) e.splice(n, 0, null);- for (let t = a.length; t < e.length; t++) e[t] && r.has(e[t]) && (r.get(e[t]).index = t);- } else n.colSpan = 1, n.colspan = 1, a.push(n), r.set(n, {- column: a,- index: a.length - 1- });- t = n.parentKey;+ function Dl(e, t, n) {+ n.props = wc(e.type, e.memoizedProps), n.state = e.memoizedState;+ try {+ n.componentWillUnmount();+ } catch (n) {+ Sf(e, t, n);}- n.push(a), i.index = n.length - 1;}- let i = Math.max(...n.map((e) => e.length)), a = Array(i).fill(0).map(() => []), o = 0;- for (let e of n) {- let t = i - 1;- for (let n of e) {- if (n) {- let e = a[t], r = e.reduce((e, t) => e + (t.colSpan ?? 1), 0);- if (r < o) {- let i = {- type: "placeholder",- key: "placeholder-" + n.key,- colspan: o - r,- colSpan: o - r,- index: r,- value: null,- rendered: null,- level: t,- hasChildNodes: !1,- childNodes: [],- textValue: ""- };- e.length > 0 && (e[e.length - 1].nextKey = i.key, i.prevKey = e[e.length - 1].key), e.push(i);+ function Ol(e, t) {+ try {+ var n = e.ref;+ if (n !== null) {+ switch (e.tag) {+ case 26:+ case 27:+ case 5:+ var r = e.stateNode;+ break;+ case 30:+ var i = e.stateNode, a = hi(e.memoizedProps, i);+ (i.ref === null || i.ref.name !== a) && (i.ref = Wp(a)), r = i.ref;+ break;+ case 7:+ if (e.stateNode === null) {+ var o = new Gp(e);+ f(e.child, !1, cm, o, void 0, void 0), e.stateNode = o;+ }+ r = e.stateNode;+ break;+ default: r = e.stateNode;}- e.length > 0 && (e[e.length - 1].nextKey = n.key, n.prevKey = e[e.length - 1].key), n.level = t, n.colIndex = o, e.push(n);+ typeof n == "function" ? e.refCleanup = n(r) : n.current = r;}- t--;- }- o++;- }- let s = 0;- for (let e of a) {- let n = e.reduce((e, t) => e + (t.colSpan ?? 1), 0);- if (n < t.length) {- let r = {- type: "placeholder",- key: "placeholder-" + e[e.length - 1].key,- colSpan: t.length - n,- colspan: t.length - n,- index: n,- value: null,- rendered: null,- level: s,- hasChildNodes: !1,- childNodes: [],- textValue: "",- prevKey: e[e.length - 1].key- };- e.push(r);+ } catch (n) {+ Sf(e, t, n);}- s++;}- return a.map((e, t) => ({- type: "headerrow",- key: "headerrow-" + t,- index: t,- value: null,- rendered: null,- level: 0,- hasChildNodes: !0,- childNodes: e,- textValue: ""- }));-}-var Fse = class extends Pse {- constructor(e, t, n) {- let r = /* @__PURE__ */ new Set(), i = null, a = [];- if (n?.showSelectionCheckboxes) {- let e = {- type: "column",- key: qO,- value: null,- textValue: "",- level: 0,- index: +!!n?.showDragButtons,- hasChildNodes: !1,- rendered: null,- childNodes: [],- props: { isSelectionCell: !0 }- };- a.unshift(e);- }- if (n?.showDragButtons) {- let e = {- type: "column",- key: JO,- value: null,- textValue: "",- level: 0,- index: 0,- hasChildNodes: !1,- rendered: null,- childNodes: [],- props: { isDragButtonCell: !0 }- };- a.unshift(e);- }- let o = [], s = /* @__PURE__ */ new Map(), c = (e) => {- switch (e.type) {- case "body":- i = e;- break;- case "column":- s.set(e.key, e), e.hasChildNodes || (a.push(e), e.props.isRowHeader && r.add(e.key));- break;- case "item":- o.push(e);- return;+ function kl(e, t) {+ var n = e.ref, r = e.refCleanup;+ if (n !== null) {+ if (typeof r == "function") try {+ r();+ } catch (n) {+ Sf(e, t, n);+ } finally {+ e.refCleanup = null, e = e.alternate, e != null && (e.refCleanup = null);}- for (let t of e.childNodes) c(t);- };- for (let t of e) c(t);- let l = YO(s, a);- if (l.forEach((e, t) => o.splice(t, 0, e)), super({- columnCount: a.length,- items: o,- visitNode: (e) => (e.column = a[e.index], e)- }), this._size = 0, this.columns = a, this.rowHeaderColumnKeys = r, this.body = i, this.headerRows = l, this._size = [...i.childNodes].length, this.rowHeaderColumnKeys.size === 0) {- let e = this.columns.find((e) => !e.props?.isDragButtonCell && !e.props?.isSelectionCell);- e && this.rowHeaderColumnKeys.add(e.key);+ else if (typeof n == "function") try {+ n(null);+ } catch (n) {+ Sf(e, t, n);+ }+ else n.current = null;}}- *[Symbol.iterator]() {- yield* this.body.childNodes;- }- get size() {- return this._size;- }- getKeys() {- return this.keyMap.keys();- }- getKeyBefore(e) {- return this.keyMap.get(e)?.prevKey ?? null;- }- getKeyAfter(e) {- return this.keyMap.get(e)?.nextKey ?? null;- }- getFirstKey() {- return Hv(this.body.childNodes)?.key ?? null;- }- getLastKey() {- return Wv(this.body.childNodes)?.key ?? null;- }- getItem(e) {- return e === this.body.key ? this.body : this.keyMap.get(e) ?? null;+ function Al(e, t) {+ if ((e.tag === 5 || e.tag === 27 || e.tag === 6) && e.alternate === null && t !== null) for (var n = 0; n < t.length; n++) um(e.stateNode, t[n]);}- at(e) {- let t = [...this.getKeys()];- return this.getItem(t[e]);+ function jl(e) {+ for (var t = e.return; t !== null && (Pl(t) && um(e.stateNode, t.stateNode), !Nl(t));) t = t.return;}- getChildren(e) {- if (e === this.body.key) return this.body.childNodes;- let t = this.getItem(e);- return t?.type === "item" ? [...t.childNodes].filter((e) => e.type === "cell") : super.getChildren(e);+ function Ml(e) {+ for (var t = e.return; t !== null && (Pl(t) && dm(e.stateNode, t.stateNode), !Nl(t));) t = t.return;}- getTextValue(e) {- let t = this.getItem(e);- if (!t) return "";- if (t.textValue) return t.textValue;- let n = this.rowHeaderColumnKeys;- if (n) {- let e = [];- for (let r of t.childNodes) {- let t = this.columns[r.index];- if (n.has(t.key) && r.textValue && e.push(r.textValue), e.length === n.size) break;- }- return e.join(" ");- }- return "";+ function Nl(e) {+ return e.tag === 5 || e.tag === 3 || e.tag === 27;}-};-//#endregion-//#region node_modules/react-stately/dist/private/grid/useGridState.mjs-function Ise(e) {- let { collection: t, focusMode: n } = e, r = e.UNSAFE_selectionState || tO(e), i = (0, B.useMemo)(() => e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set(), [e.disabledKeys]), a = r.setFocusedKey;- r.setFocusedKey = (e, r) => {- if (n === "cell" && e != null) {- let n = t.getItem(e);- if (n?.type === "item") {- let i = Vv(n, t);- e = r === "last" ? Wv(i)?.key ?? null : Hv(i)?.key ?? null;- }- }- a(e, r);- };- let o = (0, B.useMemo)(() => new rO(t, r), [t, r]), s = (0, B.useRef)(null);- return (0, B.useEffect)(() => {- if (r.focusedKey != null && s.current && !t.getItem(r.focusedKey)) {- let e = s.current.getItem(r.focusedKey), n = e?.parentKey != null && (e.type === "cell" || e.type === "rowheader" || e.type === "column") ? s.current.getItem(e.parentKey) : e;- if (!n) {- r.setFocusedKey(null);- return;- }- let i = s.current.rows, a = t.rows, c = i.length - a.length, l = Math.min(c > 1 ? Math.max(n.index - c + 1, 0) : n.index, a.length - 1), u = null;- for (let e = Math.max(0, l); e < a.length; e++) if (!o.isDisabled(a[e].key) && a[e].type !== "headerrow") {- u = a[e];- break;- }- if (u === null) {- for (let e = l - 1; e >= 0; e--) if (!o.isDisabled(a[e].key) && a[e].type !== "headerrow") {- u = a[e];- break;- }- }- if (u) {- let i = u.hasChildNodes ? [...Vv(u, t)] : [], a = u.hasChildNodes && n !== e && e && e.index < i.length ? i[e.index].key : u.key;- r.setFocusedKey(a);- } else r.setFocusedKey(null);- }- s.current = t;- }, [- t,- o,- r,- r.focusedKey- ]), {- collection: t,- disabledKeys: i,- isKeyboardNavigationDisabled: !1,- selectionManager: o- };-}-//#endregion-//#region node_modules/react-stately/dist/private/table/useTableState.mjs-var Lse = {- ascending: "descending",- descending: "ascending"-};-function Rse(e) {- let [t, n] = (0, B.useState)(!1), { selectionMode: r = "none", showSelectionCheckboxes: i, showDragButtons: a, treeColumn: o = null } = e, s = (0, B.useMemo)(() => ({- showSelectionCheckboxes: i && r !== "none",- showDragButtons: a,- selectionMode: r,- columns: []- }), [- e.children,- i,- r,- a- ]), c = oO(e, (0, B.useCallback)((e) => new Fse(e, null, s), [s]), s), { disabledKeys: l, selectionManager: u } = Ise({- ...e,- collection: c,- disabledBehavior: e.disabledBehavior || "selection"- }), [d, f] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);- return {- collection: c,- disabledKeys: l,- selectionManager: u,- showSelectionCheckboxes: e.showSelectionCheckboxes || !1,- sortDescriptor: e.sortDescriptor ?? null,- isKeyboardNavigationDisabled: c.size === 0 || t,- setKeyboardNavigationDisabled: n,- sort(t, n) {- e.onSortChange?.({- column: t,- direction: n ?? (e.sortDescriptor?.column === t ? Lse[e.sortDescriptor.direction] : "ascending")- });- },- expandedKeys: d,- toggleKey(e) {- f((t) => {- let n = new Set(t);- return n.has(e) ? n.delete(e) : n.add(e), n;- });- },- treeColumn: o- };-}-function zse(e, t) {- let n = (0, B.useMemo)(() => t ? e.collection.filter(t) : e.collection, [e.collection, t]), r = e.selectionManager.withCollection(n);- return {- ...e,- collection: n,- selectionManager: r- };-}-//#endregion-//#region node_modules/react-aria-components/dist/private/Table.mjs-var Bse = class extends op {- withExpandedKeys(e) {- let t = this.clone();- return t.expandedKeys = e, t.frozen = this.frozen, t.rows = Array.from(t.getRows()), t;+ function Pl(e) {+ return e && e.tag === 7 && e.stateNode !== null;}- addNode(e) {- super.addNode(e), this.columnsDirty ||= e.type === "column", e.type === "tableheader" && (this.head = e);+ function Fl(e) {+ var t = e.type, n = e.memoizedProps, r = e.stateNode;+ try {+ a: switch (t) {+ case "button":+ case "input":+ case "select":+ case "textarea":+ n.autoFocus && r.focus();+ break a;+ case "img": n.src ? r.src = n.src : n.srcSet && (r.srcset = n.srcSet);+ }+ } catch (t) {+ Sf(e, e.return, t);+ }}- getRows() {- let e = [];- for (let t of this) (t.type === "tablebody" || t.type === "tablefooter") && e.push(...this.getChildren(t.key));- return e;+ function Il(e, t, n) {+ try {+ var r = e.stateNode;+ hp(r, e.type, n, t), r[yt] = t;+ } catch (t) {+ Sf(e, e.return, t);+ }}- get body() {- for (let e of this) if (e.type === "tablebody") return e;- return new nk(-2);+ function Ll(e) {+ return e.tag === 5 || e.tag === 3 || e.tag === 26 || e.tag === 27 && Mp(e.type) || e.tag === 4;}- commit(e, t, n = !1) {- this.updateColumns(n), this.firstKey = e, this.lastKey = t, this.rows = [];- for (let e of this.getRows()) {- let t = e.lastChildKey;- if (t != null) {- let e = this.getItem(t);- for (; e && e.type !== "cell";) e = e.prevKey == null ? null : this.getItem(e.prevKey);- if (e) {- let t = (e.colIndex ?? e.index) + (e.colSpan ?? 1);- if (t !== this.columns.length && !n) throw Error(`Cell count must match column count. Found ${t} cells and ${this.columns.length} columns.`);- }+ function Rl(e) {+ a: for (;;) {+ for (; e.sibling === null;) {+ if (e.return === null || Ll(e.return)) return null;+ e = e.return;}- this.rows.push(e);+ for (e.sibling.return = e.return, e = e.sibling; e.tag !== 5 && e.tag !== 6 && e.tag !== 18;) {+ if (e.tag === 27 && Mp(e.type) || e.flags & 2 || e.child === null || e.tag === 4) continue a;+ e.child.return = e, e = e.child;+ }+ if (!(e.flags & 2)) return e.stateNode;}- super.commit(e, t, n);}- updateColumns(e) {- if (!this.columnsDirty) return;- this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.columns = [];- let t = /* @__PURE__ */ new Map(), n = (e) => {- e.type === "column" && (t.set(e.key, e), e.hasChildNodes || (e.index = this.columns.length, this.columns.push(e), e.props.isRowHeader && this.rowHeaderColumnKeys.add(e.key)));- for (let t of this.getChildren(e.key)) n(t);- };- for (let e of this.getChildren(this.head.key)) n(e);- if (this.headerRows = YO(t, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw Error("A table must have at least one Column with the isRowHeader prop set to true");+ function zl(e, t, n, r) {+ var i = e.tag;+ if (i === 5 || i === 6) i = e.stateNode, t ? (n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n).insertBefore(i, t) : (t = n.nodeType === 9 ? n.body : n.nodeName === "HTML" ? n.ownerDocument.body : n, t.appendChild(i), n = n._reactRootContainer, n != null || t.onclick !== null || (t.onclick = gn)), Al(e, r), Ut = !0;+ else if (i !== 4 && (i === 27 && (Al(e, r), r = null, Mp(e.type) && (n = e.stateNode, t = null)), e = e.child, e !== null)) for (zl(e, t, n, r), e = e.sibling; e !== null;) zl(e, t, n, r), e = e.sibling;}- get columnCount() {- return this.columns.length;+ function Bl(e, t, n, r) {+ var i = e.tag;+ if (i === 5 || i === 6) i = e.stateNode, t ? n.insertBefore(i, t) : n.appendChild(i), Al(e, r), Ut = !0;+ else if (i !== 4 && (i === 27 && (Al(e, r), r = null, Mp(e.type) && (n = e.stateNode)), e = e.child, e !== null)) for (Bl(e, t, n, r), e = e.sibling; e !== null;) Bl(e, t, n, r), e = e.sibling;}- *[Symbol.iterator]() {- let e = this.firstKey;- for (; e != null;) {- let t = this.getItem(e);- t && (yield t), e = t?.nextKey ?? null;+ function Vl(e) {+ var t = e.stateNode, n = e.memoizedProps;+ try {+ for (var r = e.type, i = t.attributes; i.length;) t.removeAttributeNode(i[0]);+ pp(t, r, n), t[vt] = e, t[yt] = n;+ } catch (t) {+ Sf(e, e.return, t);}}- getFirstKey() {- for (let e of this) if (e.type === "tablebody") return e.firstChildKey ?? null;- return null;+ var Hl = !1, Ul = null;+ function Wl(e) {+ (e.tag === 30 || e.subtreeFlags & 33554432) && (Hl = !0);}- getLastKey() {- let e = this.lastKey;- if (e == null) return null;- let t = this.getItem(e);- for (; t?.lastChildKey != null && (t.type !== "item" || this.expandedKeys.has(t.key));) t = this.getItem(t.lastChildKey);- return t?.key;+ var Gl = null;+ function Kl() {+ var e = Gl;+ return Gl = null, e;}- getKeyAfter(e) {- let t = this.getItem(e);- if (t?.type === "column") return t.nextKey ?? null;- if (!t) return null;- if (t.type === "item" && t.firstChildKey != null && this.expandedKeys.has(t.key)) {- let e = this.getItem(t.firstChildKey);- for (; e;) {- if (e.type === "item") return e.key;- e = e.nextKey == null ? null : this.getItem(e.nextKey);- }- }- return super.getKeyAfter(e);+ var ql = 0;+ function Jl(e, t, n, r, i) {+ return ql = 0, Yl(e.child, t, n, r, i);}- getKeyBefore(e) {- let t = this.getItem(e);- if (t?.type === "column") return t.prevKey ?? null;- if (!t) return null;- let n = null;- if (t.prevKey != null) {- for (t = this.getItem(t.prevKey); t && (t.type !== "item" || this.expandedKeys.has(t.key)) && t.lastChildKey != null;) t = this.getItem(t.lastChildKey);- n = t?.key ?? null;+ function Yl(e, t, n, r, i) {+ for (var a = !1; e !== null;) {+ if (e.tag === 5) {+ var o = e.stateNode;+ if (r !== null) {+ var s = Rp(o);+ r.push(s), s.view && (a = !0);+ } else a || Rp(o).view && (a = !0);+ Hl = !0, Fp(o, ql === 0 ? t : t + "_" + ql, n), ql++;+ } else (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && i || Yl(e.child, t, n, r, i) && (a = !0));+ e = e.sibling;}- return n ??= t.parentKey, n != null && this.getItem(n)?.type === "tableheader" ? null : n;+ return a;}- getChildren(e) {- let t = this.getItem(e);- if (!t) {- for (let t of this.headerRows) if (t.key === e) return t.childNodes;- }- let n = this;- return t?.type === "tablebody" || t?.type === "tablefooter" ? { *[Symbol.iterator]() {- let e = t.firstChildKey, r = e == null ? null : n.getItem(e);- for (; r;) {- yield r;- let e = n.getKeyAfter(r.key);- if (r = e == null ? null : n.getItem(e), r && r.parentKey === t.parentKey) break;+ function Xl(e, t) {+ for (; e !== null;) e.tag === 5 ? Ip(e.stateNode, e.memoizedProps) : (e.tag !== 22 || e.memoizedState === null) && (e.tag === 30 && t || Xl(e.child, t)), e = e.sibling;+ }+ function Zl(e) {+ if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {+ if ((e.tag !== 22 || e.memoizedState === null) && (Zl(e), e.tag === 30 && e.flags & 18874368 && e.stateNode.paired)) {+ var t = e.memoizedProps;+ if (t.name == null || t.name === "auto") throw Error(i(544));+ var n = t.name;+ t = _i(t.default, t.share), t !== "none" && (Jl(e, n, t, null, !1) || Xl(e.child, !1));}- } } : { *[Symbol.iterator]() {- let t = n.getItem(e), r = t?.firstChildKey == null ? null : n.getItem(t.firstChildKey);- for (; r && (yield r, r = r.nextKey == null ? null : n.getItem(r.nextKey), t?.type !== "item" || r?.type === "cell"););- } };+ e = e.sibling;+ }}- clone() {- let e = super.clone();- return e.headerRows = this.headerRows, e.columns = this.columns, e.rows = this.rows, e.rowHeaderColumnKeys = this.rowHeaderColumnKeys, e.head = this.head, e;+ function Ql(e, t) {+ if (e.tag === 30) {+ var n = e.stateNode, r = e.memoizedProps, i = hi(r, n), a = _i(r.default, n.paired ? r.share : r.enter);+ a === "none" ? Zl(e) : Jl(e, i, a, null, !1) ? (Zl(e), n.paired || t || Vd(e, r.onEnter)) : Xl(e.child, !1);+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) Ql(e, t), e = e.sibling;+ else Zl(e);}- getTextValue(e) {- let t = this.getItem(e);- if (!t) return "";- if (t.textValue) return t.textValue;- let n = this.rowHeaderColumnKeys, r = [];- for (let t of this.getChildren(e)) {- let e = this.columns[t.index];- if (n.has(e.key) && t.textValue && r.push(t.textValue), r.length === n.size) break;+ function $l(e) {+ if (Ul !== null && Ul.size !== 0) {+ var t = Ul;+ if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {+ if (e.tag !== 22 || e.memoizedState === null) {+ if (e.tag === 30 && e.flags & 18874368) {+ var n = e.memoizedProps, r = n.name;+ if (r != null && r !== "auto") {+ var i = t.get(r);+ if (i !== void 0) {+ var a = _i(n.default, n.share);+ if (a !== "none" && (Jl(e, r, a, null, !1) ? (a = e.stateNode, i.paired = a, a.paired = i, Vd(e, n.onShare)) : Xl(e.child, !1)), t.delete(r), t.size === 0) break;+ }+ }+ }+ $l(e);+ }+ e = e.sibling;+ }}- return r.join(" ");- }- constructor(...e) {- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new $O(-1), this.columnsDirty = !0, this.expandedKeys = /* @__PURE__ */ new Set();}-}, Vse = /*#__PURE__*/ (0, B.createContext)(null), Hse = /*#__PURE__*/ (0, B.createContext)(null), XO = /*#__PURE__*/ (0, B.createContext)(null), ZO = /*#__PURE__*/ (0, B.createContext)(null), Use = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, Hse);- let n = tO(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: a } = n, o = !!e.dragAndDropHooks?.useDraggableCollectionState, s = (0, B.useMemo)(() => ({- selectionBehavior: i === "none" ? null : r,- selectionMode: i,- disallowEmptySelection: a,- allowsDragging: o- }), [- r,- i,- a,- o- ]), c = /*#__PURE__*/ B.createElement(Kse.Provider, { value: s }, /*#__PURE__*/ B.createElement(ag, e));- return /*#__PURE__*/ B.createElement(qh, {- content: c,- createCollection: () => new Bse()- }, (r) => /*#__PURE__*/ B.createElement(Gse, {- props: e,- forwardedRef: t,- selectionState: n,- collection: r- }));-}), Wse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.table, {- ...e,- ref: t- });-}), QO = {- expand: {- ltr: "ArrowRight",- rtl: "ArrowLeft"- },- collapse: {- ltr: "ArrowLeft",- rtl: "ArrowRight"+ function eu(e) {+ if (e.tag === 30) {+ var t = e.memoizedProps, n = hi(t, e.stateNode), r = Ul === null ? void 0 : Ul.get(n), i = _i(t.default, r === void 0 ? t.exit : t.share);+ i !== "none" && (Jl(e, n, i, null, !1) ? r === void 0 ? Vd(e, t.onExit) : (i = e.stateNode, r.paired = i, i.paired = r, Ul.delete(n), Vd(e, t.onShare)) : Xl(e.child, !1)), Ul !== null && $l(e);+ } else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) eu(e), e = e.sibling;+ else Ul !== null && $l(e);}-};-function Gse({ props: e, forwardedRef: t, selectionState: n, collection: r }) {- [e, t] = RE(e, t, UE);- let { shouldUseVirtualFocus: i, disallowTypeAhead: a, filter: o, ...s } = e, c = (0, B.useContext)(Vse);- t = Nh((0, B.useMemo)(() => mh(t, c?.tableRef), [t, c?.tableRef]));- let [l, u] = L_(e.expandedKeys ? new Set(e.expandedKeys) : void 0, e.defaultExpandedKeys ? new Set(e.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e.onExpandedChange);- r = (0, B.useMemo)(() => r.withExpandedKeys(l), [r, l]);- let d = Rse({- ...s,- collection: r,- children: void 0,- UNSAFE_selectionState: n,- expandedKeys: l,- onExpandedChange: u- }), f = zse(d, o), { isVirtualized: p, layoutDelegate: m, dropTargetDelegate: h, CollectionRoot: g } = (0, B.useContext)(JE), { dragAndDropHooks: _ } = e, { gridProps: v } = one({- ...s,- layoutDelegate: m,- isVirtualized: p- }, f, t), y = f.selectionManager, b = !!_?.useDraggableCollectionState, x = !!_?.useDroppableCollectionState;- (0, B.useRef)(b), (0, B.useRef)(x), (0, B.useEffect)(() => {}, [b, x]);- let S, C, w, T = !1, E = null, D = (0, B.useRef)(null), { direction: O } = vg(), [k] = (0, B.useState)(() => new Nse());- if (b && _) {- S = _.useDraggableCollectionState({- collection: f.collection,- selectionManager: y,- preview: _.renderDragPreview ? D : void 0- }), _.useDraggableCollection({}, S, t);- let e = _.DragPreview;- E = _.renderDragPreview ? /*#__PURE__*/ B.createElement(e, { ref: D }, _.renderDragPreview) : null;+ function tu(e) {+ for (e = e.child; e !== null;) {+ if (e.tag === 30) {+ var t = e.memoizedProps, n = hi(t, e.stateNode);+ t = _i(t.default, t.update), e.flags &= -5, t !== "none" && Jl(e, n, t, e.memoizedState = [], !1);+ } else e.subtreeFlags & 33554432 && tu(e);+ e = e.sibling;+ }}- if (x && _) {- C = _.useDroppableCollectionState({- collection: f.collection,- selectionManager: y- });- let e = new Q_({- collection: f.collection,- disabledKeys: y.disabledKeys,- disabledBehavior: y.disabledBehavior,- ref: t,- layoutDelegate: m- }), n = _.dropTargetDelegate || h || new _.ListDropTargetDelegate(r.rows, t);- k.setup(n, d, O), w = _.useDroppableCollection({- keyboardDelegate: e,- dropTargetDelegate: k,- onDropActivate: (e) => {- if (e.target.type === "item") {- let t = e.target.key, n = d.collection.getItem(t), r = l.has(t);- n && n.hasChildNodes && (!r || _?.isVirtualDragging?.()) && d.toggleKey(t);- }- },- onKeyDown: (e) => {- let t = C?.target;- if (t && t.type === "item" && t.dropPosition === "on") {- let n = d.collection.getItem(t.key);- (e.key === QO.expand[O] && n?.hasChildNodes && !d.expandedKeys.has(t.key) || e.key === QO.collapse[O] && n?.hasChildNodes && d.expandedKeys.has(t.key)) && d.toggleKey(t.key);+ function nu(e) {+ if (e.subtreeFlags & 18874368) for (e = e.child; e !== null;) {+ if (e.tag !== 22 || e.memoizedState === null) {+ if (e.tag === 30 && e.flags & 18874368) {+ var t = e.stateNode;+ t.paired !== null && (t.paired = null, Xl(e.child, !1));}+ nu(e);}- }, C, t), T = C.isDropTarget({ type: "root" });+ e = e.sibling;+ }}- let { focusProps: A, isFocused: j, isFocusVisible: M } = ry(), N = IE({- ...e,- children: void 0,- defaultClassName: "react-aria-Table",- values: {- isDropTarget: T,- isFocused: j,- isFocusVisible: M,- state: f+ function ru(e) {+ if (e.tag === 30) e.stateNode.paired = null, Xl(e.child, !1), nu(e);+ else if (e.subtreeFlags & 33554432) for (e = e.child; e !== null;) ru(e), e = e.sibling;+ else nu(e);+ }+ function iu(e) {+ for (e = e.child; e !== null;) e.tag === 30 ? Xl(e.child, !1) : e.subtreeFlags & 33554432 && iu(e), e = e.sibling;+ }+ function au(e, t, n, r, i, a, o) {+ for (var s = !1; t !== null;) {+ if (t.tag === 5) {+ var c = t.stateNode;+ if (a !== null && ql < a.length) {+ var l = a[ql], u = Rp(c);+ (l.view || u.view) && (s = !0);+ var d;+ if (d = !(e.flags & 4)) {+ if (u.clip) d = !0;+ else {+ d = l.rect;+ var f = u.rect;+ d = d.y !== f.y || d.x !== f.x || d.height !== f.height || d.width !== f.width;+ }+ }+ d && (e.flags |= 4), u.abs ? u = !l.abs : (l = l.rect, u = u.rect, u = l.height !== u.height || l.width !== u.width), u && (e.flags |= 32);+ } else e.flags |= 32;+ e.flags & 4 && Fp(c, ql === 0 ? n : n + "_" + ql, i), s && e.flags & 4 || (Gl === null && (Gl = []), Gl.push(c, ql === 0 ? r : r + "_" + ql, t.memoizedProps)), ql++;+ } else (t.tag !== 22 || t.memoizedState === null) && (t.tag === 30 && o ? e.flags |= t.flags & 32 : au(e, t.child, n, r, i, a, o) && (s = !0));+ t = t.sibling;}- }), P = !!(b && !S?.isDisabled), ee = N.style, F = null;- c && (F = c.useTableColumnResizeState({ tableWidth: c.tableWidth }, f), p || (ee = {- ...ee,- tableLayout: "fixed",- width: "min-content"- }));- let I = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(FE, { values: [- [XO, f],- [ZO, F],- [WD, {- dragAndDropHooks: _,- dragState: S,- dropState: C- }],- [GD, { render: nce }],- [UE, null],- [WE, null]- ] }, /*#__PURE__*/ B.createElement(Yg, null, /*#__PURE__*/ B.createElement(Wse, {- ...U(I, N, v, A, w?.collectionProps),- style: ee,- ref: t,- slot: e.slot || void 0,- onScroll: e.onScroll,- "data-allows-dragging": P || void 0,- "data-drop-target": T || void 0,- "data-focused": j || void 0,- "data-focus-visible": M || void 0- }, /*#__PURE__*/ B.createElement(YD, null, /*#__PURE__*/ B.createElement(g, {- collection: f.collection,- scrollRef: c?.scrollRef ?? t,- persistedKeys: qD(y, _, C)- })))), E);-}-var Kse = /*#__PURE__*/ (0, B.createContext)(null), $O = class extends tp {- static {- this.type = "tableheader";+ return s;}-}, qse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.thead, {- ...e,- ref: t- });-}), ek = /*#__PURE__*/ ng($O, (e, t) => {- let n = (0, B.useContext)(XO).collection, r = dp({- items: n.headerRows,- children: (0, B.useCallback)((e) => {- switch (e.type) {- case "headerrow": return /*#__PURE__*/ B.createElement(Yse, { item: e });- default: throw Error("Unsupported node type in TableHeader: " + e.type);+ function ou(e, t) {+ for (e = e.child; e !== null;) {+ if (e.tag === 30) {+ var n = e.memoizedProps, r = e.stateNode, i = hi(n, r), a = _i(n.default, n.update);+ if (t) {+ r = r.clones;+ var o = r === null ? null : r.map(zp);+ } else o = e.memoizedState, e.memoizedState = null;+ r = e;+ var s = e.child;+ ql = 0, i = au(r, s, i, i, a, o, !1), e.flags & 4 && i && (t || Vd(e, n.onUpdate));+ } else e.subtreeFlags & 33554432 && ou(e, t);+ e = e.sibling;+ }+ }+ var su = !1, cu = !1, lu = !1, uu = !1, du = typeof WeakSet == "function" ? WeakSet : Set, fu = null, pu = !1, mu = !1, hu = !1, gu = !1;+ function _u(e, t, n) {+ if (e = e.containerInfo, vp = Th, e = Gr(e), Kr(e)) {+ if ("selectionStart" in e) var r = {+ start: e.selectionStart,+ end: e.selectionEnd+ };+ else a: {+ r = (r = e.ownerDocument) && r.defaultView || window;+ var i = r.getSelection && r.getSelection();+ if (i && i.rangeCount !== 0) {+ r = i.anchorNode;+ var a = i.anchorOffset, o = i.focusNode;+ i = i.focusOffset;+ try {+ r.nodeType, o.nodeType;+ } catch {+ r = null;+ break a;+ }+ var s = 0, c = -1, l = -1, u = 0, d = 0, f = e, p = null;+ b: for (;;) {+ for (var m; f !== r || a !== 0 && f.nodeType !== 3 || (c = s + a), f !== o || i !== 0 && f.nodeType !== 3 || (l = s + i), f.nodeType === 3 && (s += f.nodeValue.length), (m = f.firstChild) !== null;) p = f, f = m;+ for (;;) {+ if (f === e) break b;+ if (p === r && ++u === a && (c = s), p === o && ++d === i && (l = s), (m = f.nextSibling) !== null) break;+ f = p, p = f.parentNode;+ }+ f = m;+ }+ r = c === -1 || l === -1 ? null : {+ start: c,+ end: l+ };+ } else r = null;}- }, [])- }), { rowGroupProps: i } = Zx(), { hoverProps: a, isHovered: o } = sy({- onHoverStart: e.onHoverStart,- onHoverChange: e.onHoverChange,- onHoverEnd: e.onHoverEnd- }), s = IE({- ...e,- children: void 0,- defaultClassName: "react-aria-TableHeader",- values: { isHovered: o }- });- return /*#__PURE__*/ B.createElement(qse, {- ...U(Eg(e, { global: !0 }), i, a),- ...s,- ref: t,- "data-hovered": o || void 0- }, r);-}, (e) => /*#__PURE__*/ B.createElement(ag, {- dependencies: e.dependencies,- items: e.columns-}, e.children)), Jse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement("div", {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement("tr", {- ...e,- ref: t- });-});-function Yse({ item: e }) {- let t = (0, B.useRef)(null), n = (0, B.useContext)(XO), { isVirtualized: r, CollectionBranch: i } = (0, B.useContext)(JE), { rowProps: a } = une({- node: e,- isVirtualized: r- }, n, t), { checkboxProps: o } = _ne(n);- return /*#__PURE__*/ B.createElement(Jse, {- ...a,- ref: t- }, /*#__PURE__*/ B.createElement(FE, { values: [[iD, { slots: { selection: o } }], [aD, { slots: { selection: o } }]] }, /*#__PURE__*/ B.createElement(i, {- collection: n.collection,- parent: e- })));-}-var Xse = class extends tp {- static {- this.type = "column";+ r ||= {+ start: 0,+ end: 0+ };+ } else r = null;+ for (yp = {+ focusedElem: e,+ selectionRange: r+ }, Th = !1, n = (n & 335544064) === n, fu = t, t = n ? 9270 : 1024; fu !== null;) {+ if (e = fu, n && (r = e.deletions, r !== null)) for (a = 0; a < r.length; a++) n && eu(r[a]);+ if (e.alternate === null && e.flags & 2) n && Wl(e), vu(n);+ else {+ if (e.tag === 22) {+ if (r = e.alternate, e.memoizedState !== null) {+ r !== null && r.memoizedState === null && n && eu(r), vu(n);+ continue;+ }+ if (r !== null && r.memoizedState !== null) {+ n && Wl(e), vu(n);+ continue;+ }+ }+ r = e.child, (e.subtreeFlags & t) !== 0 && r !== null ? (r.return = e, fu = r) : (n && tu(e), vu(n));+ }+ }+ Ul = null;}-}, Zse = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.th, {- ...e,- ref: t- });-}), tk = /*#__PURE__*/ tg(Xse, (e, t, n) => {- let r = Nh(t), i = (0, B.useContext)(XO), { isVirtualized: a } = (0, B.useContext)(JE), { columnHeaderProps: o, isPressed: s } = lne({- node: n,- isVirtualized: a,- focusMode: e.focusMode,- allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: c, isFocusVisible: l, focusProps: u } = ry(), d = (0, B.useContext)(ZO), f = !1;- d && (f = d.resizingColumn === n.key);- let { hoverProps: p, isHovered: m } = sy({ isDisabled: !e.allowsSorting }), h = IE({- ...e,- id: void 0,- children: n.rendered,- defaultClassName: "react-aria-Column",- values: {- isHovered: m,- isPressed: s,- isFocused: c,- isFocusVisible: l,- allowsSorting: n.props.allowsSorting,- sortDirection: i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0,- isResizing: f,- startResize: () => {- if (d) d.startResize(n.key), i.setKeyboardNavigationDisabled(!0);- else throw Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");- },- sort: (e) => {- i.sort(n.key, e);+ function vu(e) {+ for (; fu !== null;) {+ var t = fu, n = e, r = t.alternate, a = t.flags;+ switch (t.tag) {+ case 0:+ case 11:+ case 15: break;+ case 1:+ if (a & 1024 && r !== null) {+ n = void 0, a = r.memoizedProps, r = r.memoizedState;+ var o = t.stateNode;+ try {+ var s = wc(t.type, a);+ n = o.getSnapshotBeforeUpdate(s, r), o.__reactInternalSnapshotBeforeUpdate = n;+ } catch (e) {+ Sf(t, t.return, e);+ }+ }+ break;+ case 3:+ if (a & 1024) {+ if (r = t.stateNode.containerInfo, n = r.nodeType, n === 9) fm(r);+ else if (n === 1) switch (r.nodeName) {+ case "HEAD":+ case "HTML":+ case "BODY":+ fm(r);+ break;+ default: r.textContent = "";+ }+ }+ break;+ case 5:+ case 26:+ case 27:+ case 6:+ case 4:+ case 17: break;+ case 30:+ n && r !== null && (n = hi(r.memoizedProps, r.stateNode), a = t.memoizedProps, a = _i(a.default, a.update), a !== "none" && Jl(r, n, a, r.memoizedState = [], !0));+ break;+ default: if (a & 1024) throw Error(i(163));+ }+ if (r = t.sibling, r !== null) {+ r.return = t.return, fu = r;+ break;}+ fu = t.return;}- }), g = h.style;- d && (g = {- ...g,- width: d.getColumnWidth(n.key)- });- let _ = Eg(e, { global: !0 });- return delete _.id, /*#__PURE__*/ B.createElement(Zse, {- ...U(_, o, u, p),- ...h,- style: g,- ref: r,- "data-hovered": m || void 0,- "data-pressed": s || void 0,- "data-focused": c || void 0,- "data-focus-visible": l || void 0,- "data-resizing": f || void 0,- "data-allows-sorting": n.props.allowsSorting || void 0,- "data-sort-direction": i.sortDescriptor?.column === n.key ? i.sortDescriptor.direction : void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [[Qse, {- column: n,- triggerRef: r- }], [JE, KE]] }, h.children));-}), Qse = /*#__PURE__*/ (0, B.createContext)(null), nk = class extends np {- static {- this.type = "tablebody";}-}, $se = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.tbody, {- ...e,- ref: t- });-}), rk = /*#__PURE__*/ ng(nk, (e, t, n) => {- let r = (0, B.useContext)(XO), { isVirtualized: i } = (0, B.useContext)(JE), a = r.collection, { CollectionBranch: o } = (0, B.useContext)(JE), { dragAndDropHooks: s, dropState: c } = (0, B.useContext)(WD), l = !!s?.useDroppableCollectionState && !c?.isDisabled, u = l && !!c && (c.isDropTarget({ type: "root" }) ?? !1), d = a.size === 0, f = {- isDropTarget: u,- isEmpty: d- }, p = IE({- ...e,- id: void 0,- children: void 0,- defaultClassName: "react-aria-TableBody",- values: f- }), m, h = a.columnCount;- if (d && e.renderEmptyState && r) {- let t = {}, n = {}, r = {};- i ? (n["aria-colspan"] = h, r = { display: "contents" }) : n.colSpan = h, m = /*#__PURE__*/ B.createElement(ak, {- role: "row",- ...t,- style: r- }, /*#__PURE__*/ B.createElement(sk, {- role: "rowheader",- ...n,- style: r- }, e.renderEmptyState(f)));- }- let { rowGroupProps: g } = Zx(), _ = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement($se, {- ...U(_, p, g),- ref: t,- "data-empty": d || void 0- }, l && /*#__PURE__*/ B.createElement(sce, null), /*#__PURE__*/ B.createElement(o, {- collection: a,- parent: n,- renderDropIndicator: KD(s, c)- }), m);-});-(class extends np {- static {- this.type = "tablefooter";+ function yu(e, t, n) {+ var r = n.flags;+ switch (n.tag) {+ case 0:+ case 11:+ case 15:+ Ru(e, n), r & 4 && wl(5, n);+ break;+ case 1:+ if (Ru(e, n), r & 4) {+ if (e = n.stateNode, t === null) try {+ e.componentDidMount();+ } catch (e) {+ Sf(n, n.return, e);+ }+ else {+ var i = wc(n.type, t.memoizedProps);+ t = t.memoizedState;+ try {+ e.componentDidUpdate(i, t, e.__reactInternalSnapshotBeforeUpdate);+ } catch (e) {+ Sf(n, n.return, e);+ }+ }+ }+ r & 64 && El(n), r & 512 && Ol(n, n.return);+ break;+ case 3:+ if (Ru(e, n), r & 64 && (e = n.updateQueue, e !== null)) {+ if (t = null, n.child !== null) switch (n.child.tag) {+ case 27:+ case 5:+ t = n.child.stateNode;+ break;+ case 1: t = n.child.stateNode;+ }+ try {+ wo(e, t);+ } catch (e) {+ Sf(n, n.return, e);+ }+ }+ break;+ case 27: t === null && r & 4 && Vl(n);+ case 26:+ case 5:+ Ru(e, n), t === null && r & 4 && Fl(n), r & 512 && Ol(n, n.return);+ break;+ case 12:+ Ru(e, n);+ break;+ case 31:+ Ru(e, n), r & 4 && Ou(e, n);+ break;+ case 13:+ Ru(e, n), r & 4 && ku(e, n), r & 64 && (e = n.memoizedState, e !== null && (e = e.dehydrated, e !== null && (n = Ef.bind(null, n), vm(e, n))));+ break;+ case 22:+ if (r = n.memoizedState !== null || su, !r) {+ var a = t !== null && t.memoizedState !== null || cu;+ t = su, i = cu, su = r, (cu = a) && !i ? (r = 2, n.subtreeFlags & 8772 && (r |= 1), Bu(e, n, r)) : Ru(e, n), su = t, cu = i;+ }+ break;+ case 30:+ Ru(e, n), r & 512 && Ol(n, n.return);+ break;+ case 7: r & 512 && Ol(n, n.return);+ default: Ru(e, n);+ }}-});-var ik = /*#__PURE__*/ (0, B.createContext)({ isFocusVisibleWithinRow: !1 }), ece = class extends tp {- static {- this.type = "item";+ function bu(e, t) {+ for (e = e.child; e !== null;) xu(e, t), e = e.sibling;}- filter(e, t, n) {- let r = e.getChildren(this.key);- for (let i of r) if (n(i.textValue, i)) {- let n = this.clone();- return t.addDescendants(n, e), n;+ function xu(e, t) {+ switch (e.tag) {+ case 5:+ case 26:+ try {+ var n = e.stateNode;+ if (t) {+ var r = n.style;+ typeof r.setProperty == "function" ? r.setProperty("display", "none", "important") : r.display = "none";+ } else {+ var i = e.stateNode, a = e.memoizedProps.style, o = a != null && a.hasOwnProperty("display") ? a.display : null;+ i.style.display = o == null || typeof o == "boolean" ? "" : ("" + o).trim();+ }+ } catch (t) {+ Sf(e, e.return, t);+ }+ Su(e, t);+ break;+ case 6:+ try {+ e.stateNode.nodeValue = t ? "" : e.memoizedProps, Ut = !0;+ } catch (t) {+ Sf(e, e.return, t);+ }+ break;+ case 18:+ try {+ var s = e.stateNode;+ t ? Pp(s, !0) : Pp(e.stateNode, !1);+ } catch (t) {+ Sf(e, e.return, t);+ }+ break;+ case 22:+ case 23:+ e.memoizedState === null && bu(e, t);+ break;+ default: bu(e, t);}- return null;}-}, ak = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.tr, {- ...e,- ref: t- });-}), ok = /*#__PURE__*/ ng(ece, (e, t, n) => {- let r = Nh(t), i = (0, B.useContext)(XO), { dragAndDropHooks: a, dragState: o, dropState: s } = (0, B.useContext)(WD), { isVirtualized: c, CollectionBranch: l } = (0, B.useContext)(JE), u = o && !(o.isDisabled || o.selectionManager.isDisabled(n.key)), { rowProps: d, expandButtonProps: f, ...p } = pne({- node: n,- shouldSelectOnPressUp: !!o,- isVirtualized: c- }, i, r), { isFocused: m, isFocusVisible: h, focusProps: g } = ry(), { isFocusVisible: _, focusProps: v } = ry({ within: !0 }), { hoverProps: y, isHovered: b } = sy({- isDisabled: !p.allowsSelection && !p.hasAction && !u,- onHoverStart: e.onHoverStart,- onHoverChange: e.onHoverChange,- onHoverEnd: e.onHoverEnd- }), { checkboxProps: x } = gne({ key: n.key }, i), S;- o && a && (S = a.useDraggableItem({- key: n.key,- hasDragButton: !0- }, o));- let C, w = (0, B.useRef)(null), { visuallyHiddenProps: T } = V_();- s && a && (C = a.useDropIndicator({ target: {- type: "item",- key: n.key,- dropPosition: "on"- } }, s, w));- let E = (0, B.useRef)(null);- (0, B.useEffect)(() => {- o && E.current;- }, []);- let D = o && o.isDragging(n.key), { children: O, ...k } = e, A = e.hasChildItems || i.collection.getItem(n.lastChildKey)?.type !== "cell", j = A && i.expandedKeys.has(n.key), M = IE({- ...k,- id: void 0,- defaultClassName: "react-aria-Row",- defaultStyle: { "--table-row-level": n.level + 1 },- values: {- ...p,- state: i,- isHovered: b,- isFocused: m,- isFocusVisible: h,- selectionMode: i.selectionManager.selectionMode,- selectionBehavior: i.selectionManager.selectionBehavior,- isDragging: D,- isDropTarget: C?.isDropTarget,- isFocusVisibleWithin: _,- id: n.key,- hasChildItems: A,- isExpanded: j,- level: n.level + 1- }- }), N = Eg(e, { global: !0 });- return delete N.id, delete N.onClick, /*#__PURE__*/ B.createElement(B.Fragment, null, C && !C.isHidden && /*#__PURE__*/ B.createElement(ak, {- role: "row",- style: { height: 0 }- }, /*#__PURE__*/ B.createElement(sk, {- role: "gridcell",- colSpan: i.collection.columnCount,- style: { padding: 0 }- }, /*#__PURE__*/ B.createElement("div", {- role: "button",- ...T,- ...C.dropIndicatorProps,- ref: w- }))), /*#__PURE__*/ B.createElement(ak, {- ...U(N, M, d, g, y, S?.dragProps, v),- ref: r,- "data-disabled": p.isDisabled || void 0,- "data-selected": p.isSelected || void 0,- "data-hovered": b || void 0,- "data-focused": p.isFocused || void 0,- "data-focus-visible": h || void 0,- "data-pressed": p.isPressed || void 0,- "data-dragging": D || void 0,- "data-drop-target": C?.isDropTarget || void 0,- "data-selection-mode": i.selectionManager.selectionMode === "none" ? void 0 : i.selectionManager.selectionMode,- "data-focus-visible-within": _ || void 0,- "data-expanded": j || void 0,- "data-has-child-items": A || void 0,- "data-level": n.level + 1- }, /*#__PURE__*/ B.createElement(FE, { values: [- [iD, { slots: {- [PE]: {},- selection: x- } }],- [aD, { slots: {- [PE]: {},- selection: x- } }],- [ZE, { slots: {- [PE]: {},- chevron: f,- drag: {- ...S?.dragButtonProps,- ref: E,- style: { pointerEvents: "none" }+ function Su(e, t) {+ if (e.subtreeFlags & 67108864) for (e = e.child; e !== null;) {+ a: {+ var n = e, r = t;+ switch (n.tag) {+ case 4:+ xu(n, r);+ break a;+ case 22:+ n.memoizedState === null && Su(n, r);+ break a;+ default: Su(n, r);+ }}- } }],- [XD, { isSelected: p.isSelected }],- [ik, { isFocusVisibleWithinRow: _ }]- ] }, /*#__PURE__*/ B.createElement(l, {- collection: i.collection,- parent: n- }))));-}, (e) => {- if (e.id == null && typeof e.children == "function") throw Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");- let t = [e.value].concat(e.dependencies);- return /*#__PURE__*/ B.createElement(ag, {- dependencies: t,- items: e.columns,- idScope: e.id- }, e.children);-}), tce = class extends tp {- static {- this.type = "cell";- }-}, sk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.td, {- ...e,- ref: t- });-}), ck = /*#__PURE__*/ tg(tce, (e, t, n) => {- let r = Nh(t), i = (0, B.useContext)(XO), { dragState: a } = (0, B.useContext)(WD), { isVirtualized: o } = (0, B.useContext)(JE);- n.column = i.collection.columns[n.index];- let { gridCellProps: s, isPressed: c } = sne({- node: n,- shouldSelectOnPressUp: !!a,- isVirtualized: o,- focusMode: e.focusMode,- allowsArrowNavigation: e.allowsArrowNavigation- }, i, r), { isFocused: l, isFocusVisible: u, focusProps: d } = ry(), { hoverProps: f, isHovered: p } = sy({}), { isFocusVisibleWithinRow: m } = (0, B.useContext)(ik), h = n.parentKey != null && i.selectionManager.isSelected(n.parentKey), g = n.colIndex || n.index, _ = i.collection.getItem(n.parentKey), v = _.props.hasChildItems || i.collection.getItem(_.lastChildKey)?.type !== "cell", y = v && i.expandedKeys.has(n.parentKey), b = i.selectionManager.isDisabled(n.parentKey), x = IE({- ...e,- id: void 0,- defaultClassName: "react-aria-Cell",- values: {- isFocused: l,- isFocusVisible: u,- isFocusVisibleWithinRow: m,- isPressed: c,- isHovered: p,- isSelected: h,- id: n.key,- columnIndex: g,- hasChildItems: v,- isExpanded: y,- isDisabled: b,- level: _.level + 1,- isTreeColumn: n.column.key === i.treeColumn+ e = e.sibling;}- }), S = Eg(e, { global: !0 });- return delete S.id, /*#__PURE__*/ B.createElement(sk, {- ...U(S, x, s, d, f),- ref: r,- "data-focused": l || void 0,- "data-focus-visible": u || void 0,- "data-focus-visible-within-row": m || void 0,- "data-pressed": c || void 0,- "data-selected": h || void 0,- "data-column-index": g,- "data-expanded": y || void 0,- "data-has-child-items": v || void 0,- "data-level": _.level + 1,- "data-tree-column": n.column.key === i.treeColumn || void 0,- "data-disabled": b || void 0- }, /*#__PURE__*/ B.createElement(JE.Provider, { value: KE }, x.children));-});-function nce(e, t) {- t = Nh(t);- let { dragAndDropHooks: n, dropState: r } = (0, B.useContext)(WD), i = (0, B.useRef)(null), { dropIndicatorProps: a, isHidden: o, isDropTarget: s } = n.useDropIndicator(e, r, i);- if (o) return null;- let c = r && e.target.type === "item" ? (r.collection.getItem(e.target.key)?.level || 0) + 1 : 1;- return /*#__PURE__*/ B.createElement(oce, {- ...e,- dropIndicatorProps: a,- isDropTarget: s,- buttonRef: i,- level: c,- ref: t- });-}-var rce = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.tr, {- ...e,- ref: t- });-}), ice = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- let { isVirtualized: n } = (0, B.useContext)(JE);- return n ? /*#__PURE__*/ B.createElement(HE.div, {- ...e,- ref: t- }) : /*#__PURE__*/ B.createElement(HE.td, {- ...e,- ref: t- });-});-function ace(e, t) {- let { dropIndicatorProps: n, isDropTarget: r, buttonRef: i, level: a, ...o } = e, s = (0, B.useContext)(XO), { visuallyHiddenProps: c } = V_(), l = IE({- ...o,- defaultClassName: "react-aria-DropIndicator",- defaultStyle: { "--table-row-level": a + 1 },- values: { isDropTarget: r }- });- return /*#__PURE__*/ B.createElement(rce, {- ...Eg(e, { global: !0 }),- ...l,- role: "row",- ref: t,- "data-drop-target": r || void 0,- "aria-level": a- }, /*#__PURE__*/ B.createElement(ice, {- role: "gridcell",- colSpan: s.collection.columnCount,- style: { padding: 0 }- }, /*#__PURE__*/ B.createElement("div", {- ...c,- role: "button",- ...n,- ref: i- }), l.children));-}-var oce = /*#__PURE__*/ (0, B.forwardRef)(ace);-function sce() {- let e = (0, B.useContext)(XO), { dragAndDropHooks: t, dropState: n } = (0, B.useContext)(WD), r = (0, B.useRef)(null), { dropIndicatorProps: i } = t.useDropIndicator({ target: { type: "root" } }, n, r), a = n.isDropTarget({ type: "root" }), { visuallyHiddenProps: o } = V_();- return !a && i["aria-hidden"] ? null : /*#__PURE__*/ B.createElement(ak, {- role: "row",- "aria-hidden": i["aria-hidden"],- style: { height: 0 }- }, /*#__PURE__*/ B.createElement(sk, {- role: "gridcell",- colSpan: e.collection.columnCount,- style: { padding: 0 }- }, /*#__PURE__*/ B.createElement("div", {- role: "button",- ...o,- ...i,- ref: r- })));-}-tg(rp, function(e, t, n) {- let r = (0, B.useContext)(XO), { isVirtualized: i } = (0, B.useContext)(JE), { isLoading: a, onLoadMore: o, scrollOffset: s, ...c } = e, l = r.collection.columns.length, u = (0, B.useRef)(null);- lO((0, B.useMemo)(() => ({- onLoadMore: o,- collection: r?.collection,- sentinelRef: u,- scrollOffset: s- }), [- o,- s,- r?.collection- ]), u);- let d = IE({- ...c,- id: void 0,- children: n.rendered,- defaultClassName: "react-aria-TableLoadingIndicator",- defaultStyle: { "--table-row-level": n.level + 1 },- values: void 0- }), f = {}, p = {}, m = {};- return i ? (p["aria-colspan"] = l, m = { display: "contents" }) : p.colSpan = l, /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(ak, {- style: { height: 0 },- inert: QD(!0)- }, /*#__PURE__*/ B.createElement(sk, { style: {- padding: 0,- border: 0- } }, /*#__PURE__*/ B.createElement("div", {- "data-testid": "loadMoreSentinel",- ref: u,- style: {- position: "relative",- height: 1,- width: 1+ }+ function Cu(e) {+ var t = e.alternate;+ t !== null && (e.alternate = null, Cu(t)), e.child = null, e.deletions = null, e.sibling = null, e.tag === 5 && (t = e.stateNode, t !== null && Dt(t)), e.stateNode = null, e.return = null, e.dependencies = null, e.memoizedProps = null, e.memoizedState = null, e.pendingProps = null, e.stateNode = null, e.updateQueue = null;+ }+ var wu = null, Tu = !1;+ function Eu(e, t, n) {+ for (n = n.child; n !== null;) Du(e, t, n), n = n.sibling;+ }+ function Du(e, t, n) {+ if (qe && typeof qe.onCommitFiberUnmount == "function") try {+ qe.onCommitFiberUnmount(Ke, n);+ } catch {}+ switch (n.tag) {+ case 26:+ cu || kl(n, t), Eu(e, t, n), n.memoizedState ? n.memoizedState.count-- : n.stateNode && !cu && (n = n.stateNode, n.parentNode.removeChild(n));+ break;+ case 27:+ cu || kl(n, t), Ml(n);+ var r = wu, i = Tu;+ Mp(n.type) && (wu = n.stateNode, Tu = !1), Eu(e, t, n), Em(n.stateNode, n.type, n.memoizedProps), wu = r, Tu = i;+ break;+ case 5: cu || kl(n, t), Ml(n);+ case 6:+ if (n.tag === 6 && Ml(n), r = wu, i = Tu, wu = null, Eu(e, t, n), wu = r, Tu = i, wu !== null) {+ if (Tu) try {+ (wu.nodeType === 9 ? wu.body : wu.nodeName === "HTML" ? wu.ownerDocument.body : wu).removeChild(n.stateNode), Ut = !0;+ } catch (e) {+ Sf(n, t, e);+ }+ else try {+ wu.removeChild(n.stateNode), Ut = !0;+ } catch (e) {+ Sf(n, t, e);+ }+ }+ break;+ case 18:+ wu !== null && (Tu ? (e = wu, Np(e.nodeType === 9 ? e.body : e.nodeName === "HTML" ? e.ownerDocument.body : e, n.stateNode), Zh(e)) : Np(wu, n.stateNode));+ break;+ case 4:+ r = wu, i = Tu, wu = n.stateNode.containerInfo, Tu = !0, Eu(e, t, n), wu = r, Tu = i;+ break;+ case 0:+ case 11:+ case 14:+ case 15:+ Tl(2, n, t), cu || Tl(4, n, t), Eu(e, t, n);+ break;+ case 1:+ cu || (kl(n, t), r = n.stateNode, typeof r.componentWillUnmount == "function" && Dl(n, t, r)), Eu(e, t, n);+ break;+ case 21:+ Eu(e, t, n);+ break;+ case 22:+ cu = (r = cu) || n.memoizedState !== null, Eu(e, t, n), cu = r;+ break;+ case 30:+ kl(n, t), Eu(e, t, n);+ break;+ case 7:+ cu || kl(n, t), Eu(e, t, n);+ break;+ default: Eu(e, t, n);}- }))), a && d.children && /*#__PURE__*/ B.createElement(ak, {- ...U(Eg(e, { global: !0 }), f),- ...d,- role: "row",- ref: t,- "aria-level": n.level + 1,- "data-level": n.level + 1- }, /*#__PURE__*/ B.createElement(sk, {- role: "rowheader",- ...p,- style: m- }, d.children)));-});-//#endregion-//#region node_modules/react-stately/dist/private/list/useSingleSelectListState.mjs-function cce(e) {- let [t, n] = L_(e.selectedKey, e.defaultSelectedKey ?? null, e.onSelectionChange), r = (0, B.useMemo)(() => t == null ? [] : [t], [t]), { collection: i, disabledKeys: a, selectionManager: o } = sO({- ...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);+ }+ function Ou(e, t) {+ if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null))) {+ e = e.dehydrated;+ try {+ Zh(e);+ } catch (e) {+ Sf(t, t.return, e);+ }}- });- 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 lce(e) {- let t = cce({- ...e,- onSelectionChange: e.onSelectionChange ? (t) => {- t != null && e.onSelectionChange?.(t);- } : void 0,- suppressTextValueWarning: !0,- defaultSelectedKey: e.defaultSelectedKey ?? lk(e.collection, e.disabledKeys ? new Set(e.disabledKeys) : /* @__PURE__ */ new Set()) ?? void 0- }), { selectionManager: n, collection: r, selectedKey: i } = t, a = (0, B.useRef)(i);- return (0, B.useEffect)(() => {- let o = i;- e.selectedKey == null && (n.isEmpty || o == null || !r.getItem(o)) && (o = lk(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 lk(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 uk = /*#__PURE__*/ (0, B.createContext)(null), dk = /*#__PURE__*/ (0, B.createContext)(null), fk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- [e, t] = RE(e, t, uk);- let { children: n, orientation: r = "horizontal" } = e;- return n = (0, B.useMemo)(() => typeof n == "function" ? n({- orientation: r,- defaultChildren: null- }) : n, [n, r]), /*#__PURE__*/ B.createElement(qh, { content: n }, (n) => /*#__PURE__*/ B.createElement(uce, {- props: e,- collection: n,- tabsRef: t- }));-});-function uce({ props: e, tabsRef: t, collection: n }) {- let { orientation: r = "horizontal" } = e, i = lce({- ...e,- collection: n,- children: void 0- }), { focusProps: a, isFocused: o, isFocusVisible: s } = ry({ within: !0 }), c = (0, B.useMemo)(() => ({- orientation: r,- isFocusWithin: o,- isFocusVisible: s- }), [- r,- o,- s- ]), l = IE({- ...e,- defaultClassName: "react-aria-Tabs",- values: c- }), u = Eg(e, { global: !0 });- return /*#__PURE__*/ B.createElement(HE.div, {- ...U(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__*/ B.createElement(FE, { values: [[uk, e], [dk, i]] }, l.children));-}-var pk = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- return (0, B.useContext)(dk) ? /*#__PURE__*/ B.createElement(dce, {- props: e,- forwardedRef: t- }) : /*#__PURE__*/ B.createElement(ag, e);-});-function dce({ props: e, forwardedRef: t }) {- let n = (0, B.useContext)(dk), { CollectionRoot: r } = (0, B.useContext)(JE), { orientation: i = "horizontal", keyboardActivation: a = "automatic" } = LE(uk), o = Nh(t), { tabListProps: s } = bne({- ...e,- orientation: i,- keyboardActivation: a- }, n, o), c = IE({- ...e,- children: null,- defaultClassName: "react-aria-TabList",- values: {- orientation: i,- state: n+ function ku(e, t) {+ if (t.memoizedState === null && (e = t.alternate, e !== null && (e = e.memoizedState, e !== null && (e = e.dehydrated, e !== null)))) try {+ Zh(e);+ } catch (e) {+ Sf(t, t.return, e);}- }), l = Eg(e, { global: !0 });- return delete l.id, /*#__PURE__*/ B.createElement(HE.div, {- ...U(l, c, s),- ref: o,- "data-orientation": i || void 0- }, /*#__PURE__*/ B.createElement(YD, null, /*#__PURE__*/ B.createElement(r, {- collection: n.collection,- persistedKeys: YE(n.selectionManager.focusedKey)- })));-}-var mk = /*#__PURE__*/ tg(class extends tp {- static {- this.type = "item";}-}, (e, t, n) => {- let r = (0, B.useContext)(dk), i = Nh(t), { tabProps: a, isSelected: o, isDisabled: s, isPressed: c } = vne({- key: n.key,- ...e- }, r, i), { focusProps: l, isFocused: u, isFocusVisible: d } = ry(), { hoverProps: f, isHovered: p } = sy({- isDisabled: s,- onHoverStart: e.onHoverStart,- onHoverEnd: e.onHoverEnd,- onHoverChange: e.onHoverChange- }), m = IE({- ...e,- id: void 0,- children: n.rendered,- defaultClassName: "react-aria-Tab",- values: {- isSelected: o,- isDisabled: s,- isFocused: u,- isFocusVisible: d,- isPressed: c,- isHovered: p+ function Au(e) {+ switch (e.tag) {+ case 31:+ case 13:+ case 19:+ var t = e.stateNode;+ return t === null && (t = e.stateNode = new du()), t;+ case 22: return e = e.stateNode, t = e._retryCache, t === null && (t = e._retryCache = new du()), t;+ default: throw Error(i(435, e.tag));}- }), h = n.props.href ? HE.a : HE.div, g = Eg(e, { global: !0 });- return delete g.id, delete g.onClick, /*#__PURE__*/ B.createElement(h, {- ...U(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__*/ B.createElement(XD.Provider, { value: { isSelected: o } }, m.children));-}), hk = /*#__PURE__*/ Bh(function(e, t) {- let n = (0, B.useContext)(dk), r = Nh(t), i = n.selectedKey === e.id, [a, o] = (0, B.useState)(n.selectedKey == null ? null : i);- a == null && n.selectedKey != null ? o(i) : !i && a && o(!1);- let s = hO(r, i);- return !i && !e.shouldForceMount && !s ? null : /*#__PURE__*/ B.createElement(fce, {- ...e,- tabPanelRef: r,- isInitiallySelected: a || !1,- isExiting: s- });-});-function fce(e) {- let t = (0, B.useContext)(dk), { id: n, tabPanelRef: r, isInitiallySelected: i, isExiting: a, ...o } = e, { tabPanelProps: s } = xne(e, t, r), { focusProps: c, isFocused: l, isFocusVisible: u } = ry(), d = t.selectedKey === e.id, f = mO(r) && !i, p = IE({- ...e,- defaultClassName: "react-aria-TabPanel",- values: {- isFocused: l,- isFocusVisible: u,- isInert: QD(!d),- isEntering: f,- isExiting: a,- state: t+ }+ function ju(e, t) {+ var n = Au(e);+ t.forEach(function(t) {+ if (!n.has(t)) {+ n.add(t);+ var r = Df.bind(null, e, t);+ t.then(r, r);+ }+ });+ }+ function Mu(e, t, n) {+ var r = t.deletions;+ if (r !== null) for (var a = 0; a < r.length; a++) {+ var o = r[a], s = e, c = t, l = c;+ a: for (; l !== null;) {+ switch (l.tag) {+ case 27:+ if (Mp(l.type)) {+ wu = l.stateNode, Tu = !1;+ break a;+ }+ break;+ case 5:+ wu = l.stateNode, Tu = !1;+ break a;+ case 3:+ case 4:+ wu = l.stateNode.containerInfo, Tu = !0;+ break a;+ }+ l = l.return;+ }+ if (wu === null) throw Error(i(160));+ Du(s, c, o), wu = null, Tu = !1, s = o.alternate, s !== null && (s.return = null), o.return = null;+ }+ if (t.subtreeFlags & 13886) for (t = t.child; t !== null;) Nu(t, e, n), t = t.sibling;+ }+ var V = null;+ function Nu(e, t, n) {+ var r = e.alternate, a = e.flags;+ switch (e.tag) {+ case 0:+ case 11:+ case 14:+ case 15:+ if (a & 4 && (r = e.updateQueue, r = r === null ? null : r.events, r !== null)) for (var o = 0; o < r.length; o++) {+ var s = r[o];+ s.ref.impl = s.nextImpl;+ }+ Mu(t, e, n), Pu(e), a & 4 && (Tl(3, e, e.return), wl(3, e), Tl(5, e, e.return));+ break;+ case 1:+ Mu(t, e, n), Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), a & 64 && su && (e = e.updateQueue, e !== null && (t = e.callbacks, t !== null && (n = e.shared.hiddenCallbacks, e.shared.hiddenCallbacks = n === null ? t : n.concat(t))));+ break;+ case 26:+ if (o = V, Mu(t, e, n), Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), a & 4) {+ if (a = r === null ? null : r.memoizedState, n = e.memoizedState, r === null) {+ if (n === null) {+ if (e.stateNode === null) {+ if (su) e.stateNode = Cp(e.type, e.memoizedProps, t.containerInfo, e);+ else {+ a: {+ t = e.type, n = e.memoizedProps, a = o.ownerDocument || o;+ b: switch (t) {+ case "title":+ r = a.getElementsByTagName("title")[0], (!r || r[Tt] || r[vt] || r.namespaceURI === "http://www.w3.org/2000/svg" || r.hasAttribute("itemprop")) && (r = a.createElement(t), a.head.insertBefore(r, a.querySelector("head > title"))), pp(r, t, n), r[vt] = e, Nt(r), t = r;+ break a;+ case "link":+ if (o = th("link", "href", a).get(t + (n.href || ""))) {+ for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("href") === (n.href == null || n.href === "" ? null : n.href) && r.getAttribute("rel") === (n.rel == null ? null : n.rel) && r.getAttribute("title") === (n.title == null ? null : n.title) && r.getAttribute("crossorigin") === (n.crossOrigin == null ? null : n.crossOrigin)) {+ o.splice(s, 1);+ break b;+ }+ }+ r = a.createElement(t), pp(r, t, n), a.head.appendChild(r);+ break;+ case "meta":+ if (o = th("meta", "content", a).get(t + (n.content || ""))) {+ for (s = 0; s < o.length; s++) if (r = o[s], r.getAttribute("content") === (n.content == null ? null : "" + n.content) && r.getAttribute("name") === (n.name == null ? null : n.name) && r.getAttribute("property") === (n.property == null ? null : n.property) && r.getAttribute("http-equiv") === (n.httpEquiv == null ? null : n.httpEquiv) && r.getAttribute("charset") === (n.charSet == null ? null : n.charSet)) {+ o.splice(s, 1);+ break b;+ }+ }+ r = a.createElement(t), pp(r, t, n), a.head.appendChild(r);+ break;+ default: throw Error(i(468, t));+ }+ r[vt] = e, Nt(r), t = r;+ }+ e.stateNode = t;+ }+ } else su || nh(o, e.type, e.stateNode);+ } else e.stateNode = Xm(o, n, e.memoizedProps);+ } else a === n ? n === null && e.stateNode !== null && Il(e, e.memoizedProps, r.memoizedProps) : (a === null ? (t = r.stateNode, t === null || cu || t.parentNode.removeChild(t)) : a.count--, n === null ? su || nh(o, e.type, e.stateNode) : Xm(o, n, e.memoizedProps));+ }+ break;+ case 27:+ Mu(t, e, n), Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), r !== null && a & 4 && Il(e, e.memoizedProps, r.memoizedProps);+ break;+ case 5:+ if (o = lu, lu = !1, Mu(t, e, n), lu = o, Pu(e), a & 512 && (cu || r === null || kl(r, r.return)), e.flags & 32) {+ t = e.stateNode;+ try {+ cn(t, ""), Ut = !0;+ } catch (t) {+ Sf(e, e.return, t);+ }+ }+ a & 4 && e.stateNode != null && (t = e.memoizedProps, Il(e, t, r === null ? t : r.memoizedProps)), a & 1024 && (uu = !0);+ break;+ case 6:+ if (Mu(t, e, n), Pu(e), a & 4) {+ if (e.stateNode === null) throw Error(i(162));+ t = e.memoizedProps, n = e.stateNode;+ try {+ n.nodeValue = t, Ut = !0;+ } catch (t) {+ Sf(e, e.return, t);+ }+ }+ break;+ case 3:+ if (Ut = !1, eh = null, o = V, V = Am(t.containerInfo), Mu(t, e, n), V = o, Pu(e), a & 4 && r !== null && r.memoizedState.isDehydrated) try {+ Zh(t.containerInfo);+ } catch (t) {+ Sf(e, e.return, t);+ }+ uu && (uu = !1, Fu(e)), Ut = !1;+ break;+ case 4:+ a = lu, lu = su, r = Wt(), o = V, V = Am(e.stateNode.containerInfo), Mu(t, e, n), Pu(e), V = o, Ut && mu && (hu = !0), Ut = r, lu = a;+ break;+ case 12:+ Mu(t, e, n), Pu(e);+ break;+ case 31:+ Mu(t, e, n), Pu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ju(e, t)));+ break;+ case 13:+ Mu(t, e, n), Pu(e), e.child.flags & 8192 && e.memoizedState !== null != (r !== null && r.memoizedState !== null) && (Sd = Le()), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ju(e, t)));+ break;+ case 22:+ o = e.memoizedState !== null, s = r !== null && r.memoizedState !== null;+ var c = su, l = cu, u = lu;+ su = c || o, lu = u || o, cu = l || s, Mu(t, e, n), cu = l, lu = u, su = c, Pu(e), a & 8192 && (t = e.stateNode, t._visibility = o ? t._visibility & -2 : t._visibility | 1, !o || r === null || s || su || cu || (t = s || cu, n = su, r = cu, su = o || su, cu = t, zu(e, 2), su = n, cu = r), !o && lu || bu(e, o)), a & 4 && (t = e.updateQueue, t !== null && (n = t.retryQueue, n !== null && (t.retryQueue = null, ju(e, n))));+ break;+ case 19:+ Mu(t, e, n), Pu(e), a & 4 && (t = e.updateQueue, t !== null && (e.updateQueue = null, ju(e, t)));+ break;+ case 30:+ a & 512 && (cu || r === null || kl(r, r.return)), a = Wt(), o = mu, s = (n & 335544064) === n, c = e.memoizedProps, mu = s && _i(c.default, c.update) !== "none", Mu(t, e, n), Pu(e), s && r !== null && Ut && (e.flags |= 4), mu = o, Ut = a;+ break;+ case 21: break;+ case 7: a & 512 && (cu || r === null || kl(r, r.return)), r && r.stateNode !== null && (r.stateNode._fragmentFiber = e);+ default: Mu(t, e, n), Pu(e);}- }), m = Eg(o, { global: !0 });- delete m.id;- let h = d ? U(m, s, c, p) : U(m, p);- return /*#__PURE__*/ B.createElement(HE.div, {- ...h,- ref: r,- "data-focused": l || void 0,- "data-focus-visible": u || void 0,- inert: QD(!d || e.inert),- "data-inert": d ? void 0 : "true",- "data-entering": f || void 0,- "data-exiting": a || void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [[uk, null], [dk, null]] }, /*#__PURE__*/ B.createElement(JE.Provider, { value: KE }, p.children)));-}-//#endregion-//#region node_modules/react-aria-components/dist/private/TextArea.mjs-var pce = /*#__PURE__*/ (0, B.createContext)({}), mce = /*#__PURE__*/ (0, B.createContext)(null), hce = /*#__PURE__*/ Bh(function(e, t) {- [e, t] = RE(e, t, mce);- let { validationBehavior: n } = LE(rD) || {}, r = e.validationBehavior ?? n ?? "native", i = (0, B.useRef)(null);- [e, i] = RE(e, i, WE);- let [a, o] = zE(!e["aria-label"] && !e["aria-labelledby"]), [s, c] = (0, B.useState)("input"), { labelProps: l, inputProps: u, descriptionProps: d, errorMessageProps: f, ...p } = ete({- ...BE(e),- inputElementType: s,- label: o,- validationBehavior: r- }, i), m = (0, B.useCallback)((e) => {- i.current = e, e && c(e instanceof HTMLTextAreaElement ? "textarea" : "input");- }, [i]), h = IE({- ...e,- values: {- isDisabled: e.isDisabled || !1,- isInvalid: p.isInvalid,- isReadOnly: e.isReadOnly || !1,- isRequired: e.isRequired || !1- },- defaultClassName: "react-aria-TextField"- }), g = Eg(e, { global: !0 });- return delete g.id, /*#__PURE__*/ B.createElement(HE.div, {- ...g,- ...h,- ref: t,- slot: e.slot || void 0,- "data-disabled": e.isDisabled || void 0,- "data-invalid": p.isInvalid || void 0,- "data-readonly": e.isReadOnly || void 0,- "data-required": e.isRequired || void 0- }, /*#__PURE__*/ B.createElement(FE, { values: [- [XE, {- ...l,- ref: a- }],- [cD, {- ...u,- ref: m- }],- [pce, {- ...u,- ref: m- }],- [sD, {- role: "presentation",- isInvalid: p.isInvalid,- isDisabled: e.isDisabled || !1- }],- [tD, { slots: {- description: d,- errorMessage: f- } }],- [nD, p]- ] }, h.children));-});-//#endregion-//#region src/react/boardui/components/base/input/label.tsx-function gce({ isRequired: e = !1, isInvalid: t, tooltip: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, V.jsxs)(Ooe, {- "data-label": "true",- ...a,- className: xE("flex cursor-default items-center gap-0.5", "text-body-medium text-text-primary", r),- children: [- i,- e && /* @__PURE__ */ (0, V.jsx)("span", {- "aria-hidden": "true",- className: "text-body-medium text-text-error-primary",- children: "*"- }),- n && /* @__PURE__ */ (0, V.jsx)(pae, {- className: "size-4 shrink-0 text-foreground-icon-quaternary",- "aria-hidden": !0- })- ]- });-}-//#endregion-//#region src/react/boardui/components/base/input/hint-text.tsx-function _ce({ isInvalid: e = !1, className: t, ...n }) {- return /* @__PURE__ */ (0, V.jsx)(Moe, {- slot: e ? "errorMessage" : "description",- ...n,- className: xE("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 gk = (0, B.createContext)({});-function _k({ size: e = "medium", fieldClassName: t, inputClassName: n, className: r, children: i, ...a }) {- return /* @__PURE__ */ (0, V.jsx)(gk.Provider, {- value: {- size: e,- fieldClassName: t,- inputClassName: n- },- children: /* @__PURE__ */ (0, V.jsx)(hce, {- ...a,- "data-input-size": e,- className: xE("group flex h-max w-full flex-col items-start gap-1", r),- children: i- })- });-}-_k.displayName = "TextField";-var vk = SE({- field: [- "relative flex w-full items-center",- "rounded-2lg",- "bg-background-tertiary-default text-foreground-icon-tertiary",- "ring-2 ring-inset ring-transparent",- "transition-[background-color,box-shadow,color] duration-[var(--input-transition-ms)] ease"- ].join(" "),- fieldSize: {- medium: "p-2",- small: "h-8 px-1.5 py-2"- },- fieldWithAddonSize: {- medium: "h-9 pl-1 pr-2 py-2",- small: "h-8 pl-1 pr-1.5 py-2"- },- content: "flex w-full items-center gap-2 min-w-0",- leftSection: "flex flex-1 items-center gap-0.5 min-w-0",- input: [- "min-w-0 flex-1 bg-transparent border-0 outline-none p-0 m-0",- "font-sans text-body-regular text-text-primary pl-1",- "placeholder:text-text-tertiary",- "focus:placeholder:text-text-primary",- "disabled:text-input-disabled-text disabled:placeholder:text-input-disabled-text",- "disabled:cursor-not-allowed",- "aria-invalid:placeholder:text-text-error-placeholder"- ].join(" "),- icon: "size-5 shrink-0"-});-function yk({ size: e, leadingIcon: t, trailingIcon: n, leadingAddon: r, fieldClassName: i, className: a, ref: o, groupRef: s, ...c }) {- let l = (0, B.useContext)(gk), u = e ?? l.size ?? "medium", d = r != null;- return /* @__PURE__ */ (0, V.jsx)(Loe, {- ref: s,- className: ({ isFocusWithin: e, isHovered: t, isDisabled: n, isInvalid: r }) => xE(vk.field, d ? vk.fieldWithAddonSize[u] : vk.fieldSize[u], t && !e && !n && !r && "ring-border-button-hover", e && !n && !r && "ring-border-button-active", n && "bg-input-disabled-background text-input-disabled-foreground", r && "bg-background-tertiary-error text-foreground-icon-error", l.fieldClassName, i),- children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: vk.content,- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: vk.leftSection,- children: [d ? r : t ? /* @__PURE__ */ (0, V.jsx)(t, {- className: vk.icon,- "aria-hidden": !0- }) : null, /* @__PURE__ */ (0, V.jsx)(zoe, {- ref: o,- ...c,- className: xE(vk.input, l.inputClassName, a)- })]- }), n ? /* @__PURE__ */ (0, V.jsx)(n, {- className: vk.icon,- "aria-hidden": !0- }) : null]- })- });-}-yk.displayName = "InputBase";-function bk({ label: e, hint: t, tooltip: n, placeholder: r, leadingIcon: i, trailingIcon: a, leadingAddon: o, fieldClassName: s, ref: c, groupRef: l, className: u, ...d }) {- return /* @__PURE__ */ (0, V.jsx)(_k, {- ...d,- className: u,- "aria-label": d["aria-label"] ?? (!e && typeof r == "string" ? r : void 0),- children: ({ isRequired: u, isInvalid: d }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- e && /* @__PURE__ */ (0, V.jsx)(gce, {- isRequired: u,- isInvalid: d,- tooltip: n,- children: e- }),- /* @__PURE__ */ (0, V.jsx)(yk, {- ref: c,- groupRef: l,- placeholder: r,- leadingIcon: i,- trailingIcon: a,- leadingAddon: o,- fieldClassName: s- }),- t && /* @__PURE__ */ (0, V.jsx)(_ce, {- isInvalid: d,- children: t- })- ] })- });-}-bk.displayName = "Input";-//#endregion-//#region src/react/boardui/components/base/dropdown/menu-styles.ts-var xk = [- "max-w-[calc(100vw-32px)] overflow-y-auto",- "rounded-2xl border border-border-button-default bg-background-primary-default p-2.5 shadow-dropdown",- "transition duration-150 ease-out",- "data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:blur-[2px]",- "data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:blur-[2px]",- "data-[placement=bottom]:origin-top-left data-[placement=top]:origin-bottom-left",- "data-[placement=left]:origin-right data-[placement=right]:origin-left"-].join(" "), vce = "w-[266px]", yce = "flex w-full flex-col gap-1 outline-none", Sk = ["flex w-full cursor-pointer items-center gap-2 rounded-2lg p-2 text-left", "text-text-primary outline-none transition-colors"].join(" "), Ck = "hover:bg-dropdown-item-hover-background focus-visible:bg-dropdown-item-hover-background";-//#endregion-//#region src/react/boardui/components/foundations/icons/chevrons.tsx-function bce(e) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 16 16",- fill: "none",- "aria-hidden": !0,- ...e,- children: /* @__PURE__ */ (0, V.jsx)("path", {- d: "M4 7L7.29289 10.2929C7.68342 10.6834 8.31658 10.6834 8.70711 10.2929L12 7",- stroke: "currentColor",- strokeWidth: "2",- strokeLinecap: "round"- })- });-}-function xce(e) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- fill: "none",- "aria-hidden": !0,- ...e,- children: /* @__PURE__ */ (0, V.jsx)("path", {- d: "M12.7071 15.2929C12.3166 15.6834 11.6834 15.6834 11.2929 15.2929L7.70711 11.7071C7.07714 11.0771 7.52331 10 8.41421 10H15.5858C16.4767 10 16.9229 11.0771 16.2929 11.7071L12.7071 15.2929Z",- fill: "currentColor"- })- });-}-//#endregion-//#region src/react/boardui/utils/use-dismiss-on-outside-press.ts-function Sce(e, t, n) {- (0, B.useEffect)(() => {- if (!e) return;- let r = (e) => {- let r = e.target;- n.some((e) => e.current?.contains(r)) || t();- };- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);- }, [- e,- t,- n- ]);-}-function Cce(e, t) {- let n = (0, B.useRef)(!1);- return (0, B.useEffect)(() => {- if (!e) return;- let r = (e) => {- t.current?.contains(e.target) && (n.current = !0, setTimeout(() => {- n.current = !1;- }, 400));- };- return document.addEventListener("pointerdown", r, !0), () => document.removeEventListener("pointerdown", r, !0);- }, [e, t]), (e) => e && n.current ? (n.current = !1, !1) : !0;-}-//#endregion-//#region src/react/boardui/components/base/select/select.tsx-var wk = (0, B.createContext)("md");-function Tk({ className: e, triggerClassName: t, popoverClassName: n, size: r = "md", children: i, items: a, renderValue: o, ref: s, ...c }) {- let l = (0, B.useRef)(null), u = (0, B.useRef)(null), [d, f] = (0, B.useState)(!1);- Sce(d, () => f(!1), [l, u]);- let p = Cce(d, l);- return /* @__PURE__ */ (0, V.jsx)(Ese, {- ref: s,- ...c,- isOpen: d,- onOpenChange: (e) => p(e) && f(e),- className: xE("group flex flex-col", e),- children: ({ isOpen: e }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(QE, {- ref: l,- className: xE("flex w-full cursor-pointer items-center justify-between rounded-2lg", "border border-border-button-default bg-background-primary-default shadow-xs", "text-text-primary", "transition-[background-color,border-color,box-shadow,padding,font-size] duration-200 ease", "hover:bg-background-primary-hover hover:border-border-button-hover", "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring", "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:text-text-tertiary disabled:shadow-none", r === "sm" ? "gap-1 px-[7px] py-1 text-body-2-medium" : "gap-1.5 px-2.5 py-2 text-body-medium", t),- children: [/* @__PURE__ */ (0, V.jsx)(kse, {- className: xE("flex min-w-0 items-center truncate", r === "sm" ? "gap-1" : "gap-[5px]"),- children: o- }), /* @__PURE__ */ (0, V.jsx)(bce, { className: xE("shrink-0 text-text-secondary transition-transform duration-200 ease", r === "sm" ? "size-3.5" : "size-4", e && "rotate-180") })]- }), /* @__PURE__ */ (0, V.jsx)(yO, {- ref: u,- isNonModal: !0,- offset: 4,- className: xE(vce, xk, "p-2", n),- children: /* @__PURE__ */ (0, V.jsx)(qoe, {- items: a,- className: xE(yce, "max-h-[240px] overflow-auto"),- children: /* @__PURE__ */ (0, V.jsx)(wk.Provider, {- value: r,- children: i- })- })- })] })- });-}-function Ek({ className: e, children: t, ...n }) {- let r = (0, B.useContext)(wk);- return /* @__PURE__ */ (0, V.jsx)(Xoe, {- ...n,- className: (t) => xE(Sk, 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/boardui/components/application/settings/settings-rows.tsx-function Dk({ className: e, children: t }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- className: xE("flex w-full flex-col rounded-2xl bg-background-secondary-default pl-3", e),- children: t- });-}-function Ok({ className: e, children: t }) {- return /* @__PURE__ */ (0, V.jsx)("p", {- className: xE("w-full px-3 text-body-2-medium text-text-secondary", e),- children: t- });-}-function kk({ label: e, description: t, children: n }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: xE("flex min-h-[52px] w-full items-center justify-between gap-4 py-2.5 pr-2.5", "border-b border-separator-border last:border-b-0"),- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 flex-col",- children: [/* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-regular text-text-primary",- children: e- }), t && /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: t- })]- }), n]- });-}-//#endregion-//#region src/react/boardui/components/base/buttons/link-button.tsx-var Ak = SE({- base: [- "inline-flex items-center justify-center gap-1 whitespace-nowrap",- "font-sans select-none cursor-pointer rounded-sm",- "underline-offset-3 hover:underline",- "transition-colors duration-150 ease",- "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",- "disabled:cursor-not-allowed disabled:no-underline aria-disabled:cursor-not-allowed aria-disabled:no-underline"- ].join(" "),- size: {- medium: "text-body-medium",- small: "text-body-medium",- xs: "text-caption-1-semibold"- },- icon: {- medium: "size-5 shrink-0",- small: "size-[18px] shrink-0",- xs: "size-3.5 shrink-0"- },- variant: {- primary: ["text-accent-600 active:text-accent-800", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" "),- secondary: ["text-text-secondary active:text-text-primary", "disabled:text-text-tertiary aria-disabled:text-text-tertiary"].join(" ")}-});-function jk({ variant: e = "primary", size: t = "medium", leadingIcon: n, trailingIcon: r, children: i, className: a, disabled: o = !1, ...s }) {- let c = xE(Ak.base, Ak.size[t], Ak.variant[e], a), l = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- n ? /* @__PURE__ */ (0, V.jsx)(n, {- className: Ak.icon[t],- "aria-hidden": !0- }) : null,- i != null && /* @__PURE__ */ (0, V.jsx)("span", { children: i }),- r ? /* @__PURE__ */ (0, V.jsx)(r, {- className: Ak.icon[t],- "aria-hidden": !0- }) : null- ] });- if (s.href !== void 0) {- let { ref: e, href: t, ...n } = s;- return /* @__PURE__ */ (0, V.jsx)("a", {- ref: e,- href: o ? void 0 : t,- "aria-disabled": o || void 0,- className: c,- ...n,- children: l- });+ function Pu(e) {+ var t = e.flags;+ if (t & 2) {+ try {+ for (var n, r = e.return; r !== null;) {+ if (Ll(r)) {+ n = r;+ break;+ }+ r = r.return;+ }+ r = null;+ for (var a = e.return; a !== null;) {+ if (Pl(a)) {+ var o = a.stateNode;+ r === null ? r = [o] : r.push(o);+ }+ if (Nl(a)) break;+ a = a.return;+ }+ var s = r;+ if (n == null) throw Error(i(160));+ switch (n.tag) {+ case 27:+ var c = n.stateNode;+ Bl(e, Rl(e), c, s);+ break;+ case 5:+ var l = n.stateNode;+ n.flags & 32 && (cn(l, ""), n.flags &= -33), Bl(e, Rl(e), l, s);+ break;+ case 3:+ case 4:+ var u = n.stateNode.containerInfo;+ zl(e, Rl(e), u, s);+ break;+ default: throw Error(i(161));+ }+ } catch (t) {+ Sf(e, e.return, t);+ }+ e.flags &= -3;+ }+ t & 4096 && (e.flags &= -4097);}- let { ref: u, type: d = "button", ...f } = s;- return /* @__PURE__ */ (0, V.jsx)("button", {- ref: u,- type: d,- disabled: o,- className: c,- ...f,- children: l- });-}-//#endregion-//#region src/react/settings/section.tsx-function Mk({ title: e, id: t, aside: n, onSubmit: r, children: i }) {- let a = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex w-full flex-wrap items-center justify-between gap-2",- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(Ok, { children: e })- }), n]- }) : /* @__PURE__ */ (0, V.jsx)(Ok, { children: e }), /* @__PURE__ */ (0, V.jsx)(Dk, { children: i })] });- return r ? /* @__PURE__ */ (0, V.jsx)("form", {- id: t,- "aria-label": e,- noValidate: !0,- onSubmit: r,- className: "flex w-full flex-col gap-2",- children: a- }) : /* @__PURE__ */ (0, V.jsx)("section", {- id: t,- "aria-label": e,- className: "flex w-full flex-col gap-2",- children: a- });-}-function Nk({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col",- children: e- });-}-function Pk({ divided: e = !1, children: t }) {- return e ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col gap-4 border-t border-separator-border py-4 pr-3",- children: t- }) : /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col gap-4 py-4 pr-3",- children: t- });-}-function Fk({ status: e, children: t }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "-ml-3 flex flex-wrap items-center justify-end gap-3 rounded-b-2xl border-t border-separator-border bg-card-footer px-3 py-3",- children: [e ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "mr-auto min-w-0 text-body-2-regular text-text-secondary",- children: e- }) : null, t]- });-}-function Ik({ role: e, children: t }) {- return /* @__PURE__ */ (0, V.jsx)("p", {- role: e,- className: "text-body-2-regular text-text-secondary",- children: t- });-}-function Lk({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)("p", {- role: "alert",- className: "text-body-2-regular text-text-error-primary",- children: e- });-}-function Rk({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-medium text-text-primary",- children: e- });-}-function zk({ href: e, children: t, leadingIcon: n }) {- return /* @__PURE__ */ (0, V.jsx)(jk, {- href: e,- target: "_blank",- rel: "noopener noreferrer",- size: "small",- leadingIcon: n,- trailingIcon: xT,- className: "min-w-0 max-w-full",- children: /* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 whitespace-normal break-all",- children: t- })- });-}-function Bk({ children: e }) {- return /* @__PURE__ */ (0, V.jsx)("dl", {- className: "flex flex-col",- children: e- });-}-function Vk({ term: e, children: t }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-h-11 items-center justify-between gap-4 border-b border-separator-border py-2.5 pr-3 last:border-b-0",- children: [/* @__PURE__ */ (0, V.jsx)("dt", {- className: "flex shrink-0 items-center gap-2 text-body-regular text-text-secondary",- children: e- }), /* @__PURE__ */ (0, V.jsx)("dd", {- className: "flex min-w-0 flex-wrap items-center justify-end gap-2 text-right text-body-regular break-all text-text-primary",- children: t- })]- });-}-function Hk({ summary: e, defaultOpen: t = !1, children: n }) {- let r = (0, B.useId)(), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(t);- return /* @__PURE__ */ (0, V.jsxs)("details", {- ref: (e) => {- i.current = e, e && t && !o.current && (o.current = !0, e.open = !0);- },- children: [/* @__PURE__ */ (0, V.jsxs)("summary", {- "aria-expanded": s,- "aria-controls": r,- onClick: (e) => {- e.preventDefault(), !(!i.current || !a.current) && (We(i.current, a.current, !s), c(!s));- },- className: "flex w-fit cursor-pointer list-none items-center gap-1 rounded-sm text-body-2-medium text-text-secondary outline-none select-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: [/* @__PURE__ */ (0, V.jsx)(pT, {- "aria-hidden": !0,- className: s ? "size-4 shrink-0 rotate-90 transition-transform" : "size-4 shrink-0 transition-transform"- }), e]- }), /* @__PURE__ */ (0, V.jsx)("div", {- ref: a,- id: r,- inert: !s,- children: /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-col gap-2 pt-3",- children: n- })- })]- });-}-function wce({ name: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- className: "size-4 shrink-0 stroke-current stroke-2",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })- });-}-function Uk({ mark: e }) {- return e.startsWith("data:image/png;base64,") ? /* @__PURE__ */ (0, V.jsx)("img", {- src: e,- alt: "",- width: 16,- height: 16,- className: "size-4 shrink-0"- }) : /* @__PURE__ */ (0, V.jsx)(wce, { name: e });-}-//#endregion-//#region src/react/activity/tasks.ts-var Wk = "/api/tasks", Gk = ["tasks"], Tce = (e, t) => G(`${Wk}?${new URLSearchParams({- before_finished_at: e.finished_at || "",- before_id: String(e.id)-})}`, t);-function Kk(...e) {- let t = /* @__PURE__ */ new Map();- for (let n of e) for (let e of n) t.has(e.id) || t.set(e.id, e);- return [...t.values()].sort((e, t) => {- let n = e.finished_at || "", r = t.finished_at || "";- return n === r ? t.id - e.id : n < r ? 1 : -1;- });-}-var Ece = 2e3, Dce = 1e4, Oce = (e) => e?.running.length ? Ece : Dce, qk = (e) => G(Wk, e);-async function kce(e) {- await z.fetchQuery({- queryKey: Gk,- queryFn: () => qk(e)- });-}-var Jk = {- manual: "手动",- scheduled: "定时",- startup: "启动",- cli: "命令行"-}, Ace = {- pending: "排队中",- running: "进行中",- succeeded: "已完成",- failed: "失败",- cancelled: "已取消",- interrupted: "被打断"-}, jce = (e) => Ace[e] || e, Mce = {- checked: "已检查",- total: "总数",- scanned: "已扫描",- identified: "已识别",- candidates: "资料候选",- covers: "封面",- changed: "已改动",- operation: "操作",- ok: "取得",- miss: "未取得",- kept: "保留",- planned: "计划",- done: "已处理",- added: "新增",- written: "已写入",- removed: "已移除",- exit_code: "退出码",- issue_count: "问题",- followups: "派出后继",- followups_duplicate: "已在排队",- followups_truncated: "超上限未派",- followups_depth_exceeded: "超深度未派",- outcome: "结果",- name: "实体",- matched: "图库命中",- size: "尺寸",- source: "来源",- cover_network: "封面连不上图片主机"-};-function Nce(e) {- let t = /* @__PURE__ */ new Map();- for (let n of e) {- if (!n.followup_key || n.parent_run_id == null) continue;- let e = t.get(n.parent_run_id);- e ? e.push(n) : t.set(n.parent_run_id, [n]);+ function Fu(e) {+ if (e.subtreeFlags & 1024) for (e = e.child; e !== null;) {+ var t = e;+ Fu(t), t.tag === 5 && t.flags & 1024 && (t = t.stateNode, Th = !0, t.reset(), Th = !1), e = e.sibling;+ }}- return t;-}-function Pce(e, t) {- let n = [], r = /* @__PURE__ */ new Map();- for (let i of e) {- if (!t(i)) {- r = /* @__PURE__ */ new Map(), n.push({- run: i,- runs: [i]- });- continue;+ function Iu(e, t) {+ if (t.subtreeFlags & 9270) for (t = t.child; t !== null;) Lu(t, e), t = t.sibling;+ else ou(t, !1);+ }+ function Lu(e, t) {+ var n = e.alternate;+ if (n === null) Ql(e, !1);+ else switch (e.tag) {+ case 3:+ if (gu = pu = !1, Kl(), Iu(t, e), !pu && !hu) {+ if (e = Gl, e !== null) for (var r = 0; r < e.length; r += 3) {+ n = e[r];+ var i = e[r + 1];+ Ip(n, e[r + 2]), n = n.ownerDocument.documentElement, n !== null && n.animate({+ opacity: [0, 0],+ pointerEvents: ["none", "none"]+ }, {+ duration: 0,+ fill: "forwards",+ pseudoElement: "::view-transition-group(" + i + ")"+ });+ }+ e = t.containerInfo, e = e.nodeType === 9 ? e.documentElement : e.ownerDocument.documentElement, e !== null && e.style.viewTransitionName === "" && (e.style.viewTransitionName = "none", e.animate({+ opacity: [0, 0],+ pointerEvents: ["none", "none"]+ }, {+ duration: 0,+ fill: "forwards",+ pseudoElement: "::view-transition-group(root)"+ }), e.animate({+ width: [0, 0],+ height: [0, 0]+ }, {+ duration: 0,+ fill: "forwards",+ pseudoElement: "::view-transition"+ })), gu = !0;+ }+ Gl = null;+ break;+ case 5:+ Iu(t, e);+ break;+ case 4:+ r = pu, pu = !1, Iu(t, e), pu && (hu = !0), pu = r;+ break;+ case 22:+ e.memoizedState === null && (n.memoizedState === null ? Iu(t, e) : Ql(e, !1));+ break;+ case 30:+ r = pu, i = Kl(), pu = !1, Iu(t, e), pu && (e.flags |= 4);+ var a = e.memoizedProps, o = e.stateNode;+ t = hi(a, o), o = hi(n.memoizedProps, o);+ var s = _i(a.default, a.update);+ s === "none" ? t = !1 : (a = n.memoizedState, n.memoizedState = null, n = e.child, ql = 0, t = au(e, n, t, o, s, a, !0), ql !== (a === null ? 0 : a.length) && (e.flags |= 32)), e.flags & 4 && t ? (Vd(e, e.memoizedProps.onUpdate), Gl = i) : i !== null && (i.push.apply(i, Gl), Gl = i), pu = e.flags & 32 ? !0 : r;+ break;+ default: Iu(t, e);}- let e = r.get(i.task_key);- if (e) e.runs.push(i);- else {- let e = {- run: i,- runs: [i]- };- r.set(i.task_key, e), n.push(e);+ }+ function Ru(e, t) {+ if (t.subtreeFlags & 8772) for (t = t.child; t !== null;) yu(e, t.alternate, t), t = t.sibling;+ }+ function zu(e, t) {+ for (e = e.child; e !== null;) {+ var n = e, r = t;+ switch (n.tag) {+ case 0:+ case 11:+ case 14:+ case 15:+ Tl(4, n, n.return), zu(n, r);+ break;+ case 1:+ kl(n, n.return);+ var i = n.stateNode;+ typeof i.componentWillUnmount == "function" && Dl(n, n.return, i), zu(n, r);+ break;+ case 27: r & 2 && Em(n.stateNode, n.type, n.memoizedProps);+ case 5:+ kl(n, n.return), n.tag !== 5 && n.tag !== 27 || Ml(n), zu(n, r);+ break;+ case 6:+ Ml(n);+ break;+ case 26:+ kl(n, n.return), i = n.stateNode, n.memoizedState !== null || i === null || cu || i.parentNode.removeChild(i), zu(n, r);+ break;+ case 22:+ n.memoizedState === null && zu(n, r);+ break;+ case 30:+ kl(n, n.return), zu(n, r);+ break;+ case 7: kl(n, n.return);+ default: zu(n, r);+ }+ e = e.sibling;+ }+ }+ function Bu(e, t, n) {+ for (n = t.subtreeFlags & 8772 ? n : n & -2, t = t.child; t !== null;) {+ var r = t.alternate, i = e, a = t, o = a.flags, s = !!(n & 1);+ switch (a.tag) {+ case 0:+ case 11:+ case 15:+ Bu(i, a, n), wl(4, a);+ break;+ case 1:+ if (Bu(i, a, n), r = a, i = r.stateNode, typeof i.componentDidMount == "function") try {+ i.componentDidMount();+ } catch (e) {+ Sf(r, r.return, e);+ }+ if (r = a, i = r.updateQueue, i !== null) {+ var c = r.stateNode;+ try {+ var l = i.shared.hiddenCallbacks;+ if (l !== null) for (i.shared.hiddenCallbacks = null, i = 0; i < l.length; i++) Co(l[i], c);+ } catch (e) {+ Sf(r, r.return, e);+ }+ }+ s && o & 64 && El(a), Ol(a, a.return);+ break;+ case 27: n & 2 && Vl(a);+ case 5:+ a.tag !== 5 && a.tag !== 27 || jl(a), Bu(i, a, n), s && r === null && o & 4 && Fl(a), Ol(a, a.return);+ break;+ case 6:+ jl(a);+ break;+ case 26:+ c = a.stateNode, a.memoizedState !== null || c === null || su || nh(Am(c.ownerDocument), a.type, c), Bu(i, a, n), s && r === null && o & 4 && Fl(a), Ol(a, a.return);+ break;+ case 12:+ Bu(i, a, n);+ break;+ case 31:+ Bu(i, a, n), s && o & 4 && Ou(i, a);+ break;+ case 13:+ Bu(i, a, n), s && o & 4 && ku(i, a);+ break;+ case 22:+ a.memoizedState === null && Bu(i, a, n), Ol(a, a.return);+ break;+ case 30:+ Bu(i, a, n), Ol(a, a.return);+ break;+ case 7: Ol(a, a.return);+ default: Bu(i, a, n);+ }+ t = t.sibling;}}- return n;-}-var Fce = (e) => e.trigger === "scheduled" && e.status === "succeeded" && !e.error && !(Number(e.result_summary?.added) > 0) && !(Number(e.result_summary?.followups) > 0), Yk = (e) => e.status === "pending" || e.status === "running";-function Ice(e) {- let t = `${e.task_label}:`, n = e.progress_label || "", r = n.startsWith(t) ? n.slice(t.length) : n === e.task_label ? "" : n, i = e.progress_total || 0;- return [r, e.error || Qk(e.result_summary) || (Yk(e) && i > 0 ? `${e.progress_current || 0} / ${i} 项` : "")].filter(Boolean).join(" · ");-}-function Xk(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 Zk(e) {- if (!e) return "";- let t = new Date(e);- return Number.isNaN(t.getTime()) ? "" : t.toLocaleString(void 0, {- month: "2-digit",- day: "2-digit",- hour: "2-digit",- minute: "2-digit"- });-}-var Lce = /* @__PURE__ */ new Set([- "blocked_by",- "status",- "run_id",- "request_id",- "started_at",- "completed_at",- "finished_at"-]);-function Qk(e) {- return Object.entries(e || {}).filter(([e, t]) => !Lce.has(e) && (typeof t == "number" || typeof t == "string") && String(t) !== "").map(([e, t]) => `${Mce[e] || e} ${t}`).join(" · ");-}-//#endregion-//#region src/react/activity/resource-search.tsx-function Rce({ className: e }) {- return /* @__PURE__ */ (0, V.jsx)("span", {- className: e,- "aria-hidden": !0,- dangerouslySetInnerHTML: { __html: Ke("") }- });-}-function zce(e) {- return ["中字", "中文字幕"].includes(e?.trim() ?? "") ? "chinese" : ["无码", "无码破解"].includes(e?.trim() ?? "") ? "uncensored" : "quality";-}-function Bce({ initialCode: e, reason: t, choose: n }) {- let [r, i] = (0, B.useState)(e), [a, o] = (0, B.useState)(() => zce(t)), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(""), [h, g] = (0, B.useState)(""), _ = NE(), v = () => {- if (!r.trim() || _.busy) return;- let e = new URLSearchParams({- code: r.trim(),- goal: a- });- s && e.set("min_size", String(Math.round(Number(s) * 1024 ** 3))), l && e.set("max_size", String(Math.round(Number(l) * 1024 ** 3))), f(null), g("");- let t = r.trim();- _.run("search", (t) => G(`/api/resources/search?${e}`, t), (e) => {- f(e), m(t);- });- };- return /* @__PURE__ */ (0, V.jsxs)("section", {- "aria-label": "资源搜索",- "aria-busy": !!_.busy,- className: "flex min-w-0 flex-col gap-4",- children: [- t ? /* @__PURE__ */ (0, V.jsxs)(Ik, { children: [- "版本目标:",- t,- "。可在下方调整搜索优先项;完整度与水印需要逐条复核。"- ] }) : null,- /* @__PURE__ */ (0, V.jsx)(bk, {- label: "搜索资源",- value: r,- maxLength: 80,- placeholder: "输入番号,按回车搜索",- leadingIcon: _.busy ? Rce : kT,- isReadOnly: !!_.busy,- "aria-busy": !!_.busy,- onChange: i,- onKeyDown: (e) => {- e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), v());- }- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "优先寻找" }), /* @__PURE__ */ (0, V.jsxs)(Tk, {- "aria-label": "优先寻找",- selectedKey: a,- isDisabled: !!_.busy,- onSelectionChange: (e) => {- e !== null && o(String(e));- },- children: [- /* @__PURE__ */ (0, V.jsx)(Ek, {- id: "quality",- children: "高清"- }),- /* @__PURE__ */ (0, V.jsx)(Ek, {- id: "chinese",- children: "中字"- }),- /* @__PURE__ */ (0, V.jsx)(Ek, {- id: "uncensored",- children: "无码"- })- ]- })]- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex gap-3 max-sm:flex-col",- children: [/* @__PURE__ */ (0, V.jsx)(bk, {- label: "最小体积(GiB)",- inputMode: "decimal",- value: s,- onChange: c- }), /* @__PURE__ */ (0, V.jsx)(bk, {- label: "最大体积(GiB)",- inputMode: "decimal",- value: l,- onChange: u- })]- }),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "只查询已启用的自配索引器;最多显示 5 个有做种的候选。清晰度、字幕与无码标记取自来源标题。" }),- _.busy ? /* @__PURE__ */ (0, V.jsx)(Ik, {- role: "status",- children: "正在搜索资源"- }) : null,- _.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: _.error }) : null,- d?.error ? /* @__PURE__ */ (0, V.jsx)(Ik, {- role: "status",- children: d.error- }) : null,- d?.state === "ready" && !d.items.length ? /* @__PURE__ */ (0, V.jsx)(Ik, {- role: "status",- children: "没有符合条件的资源。"- }) : null,- d?.warnings.map((e) => /* @__PURE__ */ (0, V.jsx)(Ik, { children: e }, e)),- d?.items.length ? /* @__PURE__ */ (0, V.jsx)("ul", {- className: "flex min-w-0 flex-col gap-4",- children: d.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {- className: "flex min-w-0 flex-col gap-2 border-t border-separator-border pt-4",- children: [- /* @__PURE__ */ (0, V.jsx)("p", {- className: "break-words text-body-2-medium text-text-primary",- children: e.name- }),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: [- `${(e.size / 1024 ** 3).toFixed(2)} GiB`,- `${e.seeders} 个做种`,- e.resolution ? `${e.resolution}p` : "",- e.codec,- e.chinese ? "中字" : "",- e.uncensored ? "无码" : "",- e.origins.join("、"),- e.nature- ].filter(Boolean).join(" · ") }),- /* @__PURE__ */ (0, V.jsx)("div", { children: /* @__PURE__ */ (0, V.jsx)(J, {- type: "button",- variant: "secondary",- onClick: () => {- n(e.uri, p), g(e.id);- },- children: h === e.id ? "已填入磁力" : "选用此资源"- }) })- ]- }, e.id))- }) : null- ]- });-}-//#endregion-//#region src/react/activity/downloads-panel.tsx-var $k = "/api/downloads", eA = ["downloads"], Vce = "/api/downloads/cancel", Hce = (e) => e?.tasks.some((e) => e.cancellable) ? 5e3 : 3e4, Uce = {- ingested: "lime",- failed: "rose",- cancelled: "yellow",- stalled: "yellow"-}, Wce = {- submitted: "已提交,远端开始下载后这里会显示进度。",- adopted: "这个磁力已经有任务了,接着跟进那一条,没有重复提交。",- adopted_remote: "远端已经有同一个任务,已接管,没有再扣配额。",- refused: "这个资源被判为违规,不再提交。",- failed: "提交没有成功。"-}, Gce = (e) => e.title || e.display_name || e.remote_name || e.code || `磁力 ${e.info_hash?.slice(0, 8) ?? e.id}`, tA = (e) => e.failure_label ? [e.failure_label, e.failure_detail].filter(Boolean).join(":") : "";-function Kce({ prefill: e }) {- let t = ES({- queryKey: eA,- queryFn: ({ signal: e }) => G(`${$k}?limit=50`, e),- refetchInterval: (e) => Hce(e.state.data)- }), n = t.data;- if (!n) return t.error ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: W(t.error)- }) : null;- let r = n.providers.filter((e) => e.configured);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- t.error ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: W(t.error)- }) : null,- n.available ? r.length ? /* @__PURE__ */ (0, V.jsx)(qce, {- snapshot: n,- prefill: e- }) : /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- children: "还没有配置云下载。在配置页「媒体」分组填好 CloudDrive2 的地址与令牌,或登录 PikPak, 这里就能粘贴磁力提交离线下载。"- }) : /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- children: "云下载只在账本写入端可用。"- }),- n.tasks.length ? /* @__PURE__ */ (0, V.jsx)("ul", {- "aria-live": "polite",- className: "flex min-w-0 flex-col gap-3",- children: n.tasks.map((e) => /* @__PURE__ */ (0, V.jsx)(nA, {- task: e,- writable: n.available- }, e.id))- }) : null- ] });-}-function qce({ snapshot: e, prefill: t }) {- let n = uS(), r = e.providers.filter((e) => e.configured), [i, a] = (0, B.useState)(r[0].key), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(t?.code ?? ""), [u, d] = (0, B.useState)(r[0].target), [f, p] = (0, B.useState)(null), m = NE(), h = (0, B.useRef)(null);- (0, B.useEffect)(() => {- t && h.current?.focus();- }, [t]);- let g = r.find((e) => e.key === i) ?? r[0], _ = (e) => {- a(e), d(r.find((t) => t.key === e)?.target ?? "");- };- return /* @__PURE__ */ (0, V.jsx)("form", {- "aria-label": "提交磁力",- noValidate: !0,- onSubmit: (e) => {- e.preventDefault();- let r = {- magnet: o,- provider: i,- target: u,- code: c,- title: t?.title,- origin: t?.origin- };- p(null), m.run("submit", (e) => K($k, r, "POST", e), (e) => {- p(e), e.ok && s(""), n.invalidateQueries({ queryKey: eA });- });- },- children: /* @__PURE__ */ (0, V.jsxs)(Dk, { children: [- /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- /* @__PURE__ */ (0, V.jsx)(Bce, {- initialCode: t?.code ?? "",- reason: t?.searchReason,- choose: (e, t) => {- s(e), l(t), h.current?.focus();- }- }),- t?.title ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: `给「${t.title}」找来的资源,下载完由推送发现登记入库。` }) : null,- /* @__PURE__ */ (0, V.jsx)(bk, {- ref: h,- label: "磁力链接",- placeholder: "magnet:?xt=urn:btih:…",- autoComplete: "off",- maxLength: 4e3,- value: o,- onChange: s- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "下载到" }), /* @__PURE__ */ (0, V.jsx)(Tk, {- "aria-label": "下载到",- selectedKey: i,- onSelectionChange: (e) => {- e !== null && _(String(e));- },- children: r.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {- id: e.key,- children: e.label- }, e.key))- })]- }),- /* @__PURE__ */ (0, V.jsx)(bk, {- label: "目标目录",- placeholder: g.target || "/云下载",- autoComplete: "off",- maxLength: 300,- hint: "留空就用配置页填的目标目录。",- value: u,- onChange: d- }),- /* @__PURE__ */ (0, V.jsx)(bk, {- label: "番号",- placeholder: "可不填",- autoComplete: "off",- maxLength: 60,- value: c,- onChange: l- })- ] }),- f ? /* @__PURE__ */ (0, V.jsx)(Pk, {- divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Jce, { result: f })- }) : null,- m.error ? /* @__PURE__ */ (0, V.jsx)(Pk, {- divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Lk, { children: m.error })- }) : null,- /* @__PURE__ */ (0, V.jsx)(Fk, {- status: i === "115" ? "115 每提交一次扣一条离线配额,重新提交也算。" : void 0,- children: /* @__PURE__ */ (0, V.jsx)(J, {- type: "submit",- disabled: !o.trim(),- ...X(m.busy === "submit"),- children: "提交离线下载"- })- })- ] })- });-}-function Jce({ result: e }) {- let t = tA(e.task), n = Wce[e.outcome];- return e.outcome === "failed" ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: t ? `${n}${t}` : n }) : e.outcome === "refused" ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: n }) : /* @__PURE__ */ (0, V.jsx)(Ik, {- role: "status",- children: n- });-}-function nA({ task: e, writable: t }) {- let n = uS(), r = NE(), [i, a] = (0, B.useState)(!1), o = tA(e), s = e.state === "failed", c = [- e.provider_label,- e.code,- e.target,- Zk(e.submitted_at)- ].filter(Boolean).join(" · "), l = () => {- n.invalidateQueries({ queryKey: eA });- }, u = () => {- r.run("cancel", (t) => K(Vce, { id: e.id }, "POST", t), l);- }, d = () => {- let t = {- magnet: e.source_uri,- provider: e.provider,- target: e.target,- code: e.code,- title: e.title,- origin: e.origin- };- r.run("resubmit", (e) => K($k, t, "POST", e), l);- }, f = () => {- navigator.clipboard.writeText(e.source_uri).then(() => a(!0), () => a(!1));- };- return /* @__PURE__ */ (0, V.jsxs)("li", {- "data-download-state": e.state,- "data-download-id": e.id,- className: DE({- padding: "none",- bordered: "line",- className: s ? "flex flex-col border-border-error-default" : "flex flex-col"- }),- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)("strong", {- className: "min-w-0 break-words text-title-1-medium text-text-primary",- children: Gce(e)- }), /* @__PURE__ */ (0, V.jsx)(wE, {- color: Uce[e.state] ?? "neutral",- children: e.state_label- })]- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "min-w-0 break-words text-caption-1-regular text-text-secondary",- children: c- }),- e.state === "remote_running" && e.progress != null ? /* @__PURE__ */ (0, V.jsx)(ME, {- label: "远端下载进度",- value: Math.round(e.progress * 100),- max: 100- }) : null,- e.ledger_path ? /* @__PURE__ */ (0, V.jsx)("p", {- className: "min-w-0 break-all text-caption-1-regular text-text-secondary",- children: e.ledger_path- }) : null,- r.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: r.error }) : null,- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-wrap items-center gap-2 pt-1",- children: [- t && e.cancellable ? /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- size: "small",- ...X(r.busy === "cancel"),- onClick: u,- children: "取消"- }) : null,- t && e.resubmittable ? /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- size: "small",- ...X(r.busy === "resubmit"),- onClick: d,- children: "重新提交"- }) : null,- /* @__PURE__ */ (0, V.jsx)(J, {- variant: "ghost",- size: "small",- onClick: f,- children: i ? "已复制磁力" : "复制磁力"- })- ]- })- ]- }), o ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",- children: /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: o- })- }) : null]- });-}-//#endregion-//#region src/react/activity/activity-page.tsx-var Yce = {- succeeded: "lime",- failed: "rose",- cancelled: "yellow",- interrupted: "yellow"-};-function rA({ status: e }) {- return /* @__PURE__ */ (0, V.jsx)(wE, {- color: Yce[e] ?? "neutral",- children: jce(e)- });-}-function Xce({ rows: e }) {- return /* @__PURE__ */ (0, V.jsx)("ul", {- className: "flex min-w-0 flex-col",- children: e.map((e) => {- let t = Ice(e);- return /* @__PURE__ */ (0, V.jsxs)("li", {- "data-status": e.status,- "data-followup-key": e.followup_key,- className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1 border-t border-separator-border px-5 py-2.5",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 break-words text-caption-1-regular text-text-primary",- children: e.task_label- }),- /* @__PURE__ */ (0, V.jsx)(rA, { status: e.status }),- t ? /* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 break-words text-caption-1-regular text-text-secondary",- children: t- }) : null- ]- }, e.id);- })- });-}-function iA({ run: e, meta: t, children: n, footer: r, followups: i }) {- return /* @__PURE__ */ (0, V.jsxs)("li", {- "data-status": e.status,- "data-task-key": e.task_key,- "data-run-id": e.id,- className: DE({- padding: "none",- bordered: "line",- className: e.status === "failed" ? "flex flex-col border-border-error-default" : "flex flex-col"- }),- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1.5 px-5 pt-5 pb-4",- children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)("strong", {- className: "min-w-0 break-words text-title-1-medium text-text-primary",- children: e.task_label- }), /* @__PURE__ */ (0, V.jsx)(rA, { status: e.status })]- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: t- }),- n- ]- }),- i?.length ? /* @__PURE__ */ (0, V.jsx)(Xce, { rows: i }) : null,- r ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex min-h-14 flex-col justify-center rounded-b-2xl border-t border-separator-border bg-card-footer px-5 py-3",- children: /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: r- })- }) : null- ]- });-}-function Zce({ run: e, followups: t }) {- let n = e.progress_total || 0, r = e.progress_current || 0, i = e.progress_label || "正在进行", a = Xk(e.elapsed_seconds), o = [Jk[e.trigger] || e.trigger, a && `已跑 ${a}`].filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, V.jsx)(iA, {- run: e,- meta: o,- followups: t,- children: n > 0 ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, V.jsx)(ME, {- label: i,- value: r,- max: n- }), /* @__PURE__ */ (0, V.jsxs)("p", {- className: "text-caption-1-regular text-text-secondary",- children: [- i,- " · ",- r,- " / ",- n,- " 项"- ]- })]- }) : /* @__PURE__ */ (0, V.jsx)(kE, { label: i })- });-}-function aA({ run: e, followups: t, runs: n }) {- let r = Qk(e.result_summary), i = Xk(e.elapsed_seconds), a = n && n.length > 1 ? n[n.length - 1] : void 0, o = (a ? [- Jk[e.trigger] || e.trigger,- `近 ${n.length} 轮`,- `${Zk(a.finished_at)} – ${Zk(e.finished_at)}`- ] : [- Jk[e.trigger] || e.trigger,- Zk(e.finished_at),- i && `用时 ${i}`- ]).filter(Boolean).join(" · ");- return /* @__PURE__ */ (0, V.jsx)(iA, {- run: e,- meta: o,- footer: e.error,- followups: t,- children: r ? /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: r- }) : null- });-}-function oA({ title: e, children: t }) {- let n = (0, B.useId)();- return /* @__PURE__ */ (0, V.jsxs)("section", {- "aria-labelledby": n,- className: "flex min-w-0 flex-col gap-3",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- id: n,- className: "text-title-2-semibold text-text-primary",- children: e- }), t]- });-}-function sA({ live: e = !1, children: t }) {- return /* @__PURE__ */ (0, V.jsx)("ul", {- "aria-live": e ? "polite" : void 0,- className: "flex min-w-0 flex-col gap-3",- children: t- });-}-function Qce({ prefill: e }) {- let t = ES({- queryKey: Gk,- queryFn: ({ signal: e }) => qk(e),- refetchInterval: (e) => Oce(e.state.data)- }), n = t.data, r = n?.finished, [i, a] = (0, B.useState)([]), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(r);- r !== c && (l(r), i.length && c && a(Kk(i, c)));- let u = kS({- mutationFn: ({ oldest: e }) => Tce(e),- onSuccess: (e, { shown: t }) => {- a((n) => Kk(n, t, e.finished || [])), s(!!e.finished_has_more);+ function Vu(e, t) {+ var n = null;+ e !== null && e.memoizedState !== null && e.memoizedState.cachePool !== null && (n = e.memoizedState.cachePool.pool), e = null, t.memoizedState !== null && t.memoizedState.cachePool !== null && (e = t.memoizedState.cachePool.pool), e !== n && (e != null && e.refCount++, n != null && Ma(n));+ }+ function Hu(e, t) {+ e = null, t.alternate !== null && (e = t.alternate.memoizedState.cache), t = t.memoizedState.cache, t !== e && (t.refCount++, e != null && Ma(e));+ }+ function Uu(e, t, n, r) {+ var i = (n & 335544064) === n;+ if (t.subtreeFlags & (i ? 10262 : 10256)) for (t = t.child; t !== null;) Wu(e, t, n, r), t = t.sibling;+ else i && iu(t);+ }+ function Wu(e, t, n, r) {+ var i = (n & 335544064) === n;+ i && t.alternate === null && t.return !== null && t.return.alternate !== null && ru(t);+ var a = t.flags;+ switch (t.tag) {+ case 0:+ case 11:+ case 15:+ Uu(e, t, n, r), a & 2048 && wl(9, t);+ break;+ case 1:+ Uu(e, t, n, r);+ break;+ case 3:+ Uu(e, t, n, r), i && gu && (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 && Ma(a)));+ break;+ case 12:+ if (a & 2048) {+ Uu(e, t, n, r), a = t.stateNode;+ try {+ var o = t.memoizedProps, s = o.id, c = o.onPostCommit;+ typeof c == "function" && c(s, t.alternate === null ? "mount" : "update", a.passiveEffectDuration, -0);+ } catch (e) {+ Sf(t, t.return, e);+ }+ } else Uu(e, t, n, r);+ break;+ case 31:+ Uu(e, t, n, r);+ break;+ case 13:+ Uu(e, t, n, r);+ break;+ case 23: break;+ case 22:+ o = t.stateNode, s = t.alternate, t.memoizedState === null ? (i && s !== null && s.memoizedState !== null && ru(t), o._visibility & 2 ? Uu(e, t, n, r) : (o._visibility |= 2, Gu(e, t, n, r, !!(t.subtreeFlags & 10256) || !1))) : (i && s !== null && s.memoizedState === null && ru(s), o._visibility & 2 ? Uu(e, t, n, r) : Ku(e, t)), a & 2048 && Vu(s, t);+ break;+ case 24:+ Uu(e, t, n, r), a & 2048 && Hu(t.alternate, t);+ break;+ case 30:+ i && (a = t.alternate, a !== null && (Xl(a.child, !0), Xl(t.child, !0))), Uu(e, t, n, r);+ break;+ default: Uu(e, t, n, r);}- }), d = t.error ? W(t.error) : "";- if (!n) return /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: d || "读取任务中心失败"- }) });- let f = Kk(n.finished || [], i), p = [- ...n.running || [],- ...n.skipped || [],- ...f- ], m = Nce(p), h = new Set(p.map((e) => e.id)), g = (e) => e.filter((e) => !(e.followup_key && e.parent_run_id != null && h.has(e.parent_run_id))), _ = g(f), v = _[_.length - 1], y = !!v && (i.length ? o : !!n.finished_has_more), b = () => {- !u.isPending && v && u.mutate({- oldest: v,- shown: f- });- }, x = _.filter((e) => m.get(e.id)?.some(Yk)), S = g(n.running || []), C = g(n.skipped || []), w = _.filter((e) => !x.includes(e) && !C.some((t) => t.id === e.id)), T = Pce(w, (e) => Fce(e) && !m.get(e.id)?.length), E = !S.length && !x.length && !C.length && !w.length;- return /* @__PURE__ */ (0, V.jsxs)(AE, { children: [- d ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: d- }) : null,- n.available === !1 ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "warning",- children: n.message || "账本上还没有任务中心的表"- }) : null,- E ? /* @__PURE__ */ (0, V.jsx)(OE, {- shell: "plain",- icon: wT,- title: "还没有任务记录",- children: "扫描、追更检查、批量操作和命令行批处理跑起来之后,这里会显示它们的进度与结果。"- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(oA, {- title: "正在进行",- children: S.length || x.length ? /* @__PURE__ */ (0, V.jsxs)(sA, {- live: !0,- children: [S.map((e) => /* @__PURE__ */ (0, V.jsx)(Zce, {- run: e,- followups: m.get(e.id)- }, e.id)), x.map((e) => /* @__PURE__ */ (0, V.jsx)(aA, {- run: e,- followups: m.get(e.id)- }, e.id))]- }) : /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- children: "没有任务在跑。"- })- }),- C.length ? /* @__PURE__ */ (0, V.jsx)(oA, {- title: "被挡下的",- children: /* @__PURE__ */ (0, V.jsx)(sA, { children: C.map((e) => /* @__PURE__ */ (0, V.jsx)(aA, {- run: e,- followups: m.get(e.id)- }, e.id)) })- }) : null,- w.length || y ? /* @__PURE__ */ (0, V.jsxs)(oA, {- title: "最近完成",- children: [- w.length ? /* @__PURE__ */ (0, V.jsx)(sA, { children: T.map(({ run: e, runs: t }) => /* @__PURE__ */ (0, V.jsx)(aA, {- run: e,- runs: t,- followups: m.get(e.id)- }, e.id)) }) : null,- u.error ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: W(u.error)- }) : null,- y ? /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- size: "small",- leadingIcon: dT,- className: "self-start",- ...X(u.isPending),- onClick: b,- children: "加载更早"- }) : null- ]- }) : null- ] }),- /* @__PURE__ */ (0, V.jsx)(oA, {- title: "云下载",- children: /* @__PURE__ */ (0, V.jsx)(Kce, { prefill: e })- })- ] });-}-//#endregion-//#region src/react/components/use-stuck.ts-function cA(e) {- (0, B.useEffect)(() => {- let t = e.current;- if (!t) return;- let n = 0, r = () => {- n = 0;- let e = parseFloat(getComputedStyle(t).top), r = window.scrollY > 0 && Number.isFinite(e) && t.getBoundingClientRect().top <= e + 1;- t.toggleAttribute("data-stuck", r);- }, i = () => {- n ||= requestAnimationFrame(r);- };- return r(), addEventListener("scroll", i, { passive: !0 }), addEventListener("resize", i), () => {- cancelAnimationFrame(n), removeEventListener("scroll", i), removeEventListener("resize", i);- };- }, [e]);-}-//#endregion-//#region src/react/components/filter-glass.tsx-function $ce({ title: e, children: t }) {- let n = (0, B.useRef)(null);- return cA(n), /* @__PURE__ */ (0, V.jsxs)("div", {- ref: n,- role: "group",- "aria-label": e,- "data-filter-glass": !0,- "data-glass-pane": "",- className: "sticky top-topbar z-10 mb-5.5 flex flex-wrap items-center gap-x-2.5 gap-y-2 px-4 py-2.5",- children: [/* @__PURE__ */ (0, V.jsx)("h3", {- className: "mr-1 text-body-medium",- children: e- }), t]- });-}-function lA({ label: e, topLabel: t, top: n, bottom: r, className: i, topClassName: a, bottomClassName: o, panes: s, attrs: c, busy: l, bottomRef: u }) {- let d = (0, B.useRef)(null);- return cA(d), /* @__PURE__ */ (0, V.jsxs)("div", {- ref: d,- role: "group",- "aria-label": e,- "data-filter-glass": !0,- "data-glass-pane": "",- ...c,- className: xE("sticky top-topbar z-10 mb-5.5 flex flex-col", i),- children: [- s,- /* @__PURE__ */ (0, V.jsx)("div", {- role: "group",- "aria-label": t,- "data-filter-row": "top",- className: xE("flex h-12 min-w-0 items-center gap-1.75 overflow-x-auto overscroll-x-contain px-3 py-2", a),- children: n- }),- /* @__PURE__ */ (0, V.jsx)("div", {- ref: u,- "data-filter-row": "bottom",- "aria-busy": l || void 0,- className: xE("flex min-h-11.5 min-w-0 items-center gap-3 px-3 py-2", o),- children: r- })- ]- });-}-var ele = "flex h-7.5 flex-none cursor-pointer items-center gap-1.75 rounded-lg border border-dashed border-(--glass-low) bg-transparent px-2.5 text-body-2-regular leading-5 whitespace-nowrap text-inherit outline-none hover:border-solid focus-visible:ring-2 focus-visible:ring-border-focus-ring";-function uA({ children: e, pressed: t, onPress: n, className: r, ...i }) {- return /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- ...i,- "aria-pressed": t,- className: xE(ele, r),- onClick: n,- children: e- });-}-var tle = "h-7.5 cursor-pointer rounded-full border border-(--glass-low) bg-transparent px-3 text-body-2-regular leading-none whitespace-nowrap text-inherit outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-busy:cursor-wait aria-busy:opacity-55";-function dA({ children: e, onPress: t, busy: n = !1 }) {- return /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-glass-pill": "",- className: tle,- "aria-busy": n || void 0,- "aria-disabled": n || void 0,- onClick: () => {- n || t();+ }+ function Gu(e, t, n, r, i) {+ for (i &&= !!(t.subtreeFlags & 10256) || !1, t = t.child; t !== null;) {+ var a = e, o = t, s = n, c = r, l = o.flags;+ switch (o.tag) {+ case 0:+ case 11:+ case 15:+ Gu(a, o, s, c, i), wl(8, o);+ break;+ case 23: break;+ case 22:+ var u = o.stateNode;+ o.memoizedState === null ? (u._visibility |= 2, Gu(a, o, s, c, i)) : u._visibility & 2 ? Gu(a, o, s, c, i) : Ku(a, o), i && l & 2048 && Vu(o.alternate, o);+ break;+ case 24:+ Gu(a, o, s, c, i), i && l & 2048 && Hu(o.alternate, o);+ break;+ default: Gu(a, o, s, c, i);+ }+ t = t.sibling;+ }+ }+ function Ku(e, t) {+ if (t.subtreeFlags & 10256) for (t = t.child; t !== null;) {+ var n = e, r = t, i = r.flags;+ switch (r.tag) {+ case 22:+ Ku(n, r), i & 2048 && Vu(r.alternate, r);+ break;+ case 24:+ Ku(n, r), i & 2048 && Hu(r.alternate, r);+ break;+ default: Ku(n, r);+ }+ t = t.sibling;+ }+ }+ var qu = 8192;+ function Ju(e, t, n) {+ if (e.subtreeFlags & qu) for (e = e.child; e !== null;) Yu(e, t, n), e = e.sibling;+ }+ function Yu(e, t, n) {+ switch (e.tag) {+ case 26:+ Ju(e, t, n), e.flags & qu && (e.memoizedState === null ? (e = e.stateNode, (t & 335544128) === t && sh(n, e)) : ch(n, V, e.memoizedState, e.memoizedProps));+ break;+ case 5:+ Ju(e, t, n), e.flags & qu && (e = e.stateNode, (t & 335544128) === t && sh(n, e));+ break;+ case 3:+ case 4:+ var r = V;+ V = Am(e.stateNode.containerInfo), Ju(e, t, n), V = r;+ break;+ case 22:+ e.memoizedState === null && (r = e.alternate, r !== null && r.memoizedState !== null ? (r = qu, qu = 16777216, Ju(e, t, n), qu = r) : Ju(e, t, n));+ break;+ case 30:+ if ((e.flags & qu) !== 0 && (r = e.memoizedProps.name, r != null && r !== "auto")) {+ var i = e.stateNode;+ i.paired = null, Ul === null && (Ul = /* @__PURE__ */ new Map()), Ul.set(r, i);+ }+ Ju(e, t, n);+ break;+ default: Ju(e, t, n);+ }+ }+ function Xu(e) {+ var t = e.alternate;+ if (t !== null && (e = t.child, e !== null)) {+ t.child = null;+ do+ t = e.sibling, e.sibling = null, e = t;+ while (e !== null);+ }+ }+ function Zu(e) {+ var t = e.deletions;+ if (e.flags & 16) {+ if (t !== null) for (var n = 0; n < t.length; n++) {+ var r = t[n];+ fu = r, ed(r, e);+ }+ Xu(e);+ }+ if (e.subtreeFlags & 10256) for (e = e.child; e !== null;) Qu(e), e = e.sibling;+ }+ function Qu(e) {+ switch (e.tag) {+ case 0:+ case 11:+ case 15:+ Zu(e), e.flags & 2048 && Tl(9, e, e.return);+ break;+ case 3:+ Zu(e);+ break;+ case 12:+ Zu(e);+ break;+ case 22:+ var t = e.stateNode;+ e.memoizedState !== null && t._visibility & 2 && (e.return === null || e.return.tag !== 13) ? (t._visibility &= -3, $u(e)) : Zu(e);+ break;+ default: Zu(e);+ }+ }+ function $u(e) {+ var t = e.deletions;+ if (e.flags & 16) {+ if (t !== null) for (var n = 0; n < t.length; n++) {+ var r = t[n];+ fu = r, ed(r, e);+ }+ Xu(e);+ }+ for (e = e.child; e !== null;) {+ switch (t = e, t.tag) {+ case 0:+ case 11:+ case 15:+ Tl(8, t, t.return), $u(t);+ break;+ case 22:+ n = t.stateNode, n._visibility & 2 && (n._visibility &= -3, $u(t));+ break;+ default: $u(t);+ }+ e = e.sibling;+ }+ }+ function ed(e, t) {+ for (; fu !== null;) {+ var n = fu;+ switch (n.tag) {+ case 0:+ case 11:+ case 15:+ Tl(8, n, t);+ break;+ case 23:+ case 22:+ if (n.memoizedState !== null && n.memoizedState.cachePool !== null) {+ var r = n.memoizedState.cachePool.pool;+ r != null && r.refCount++;+ }+ break;+ case 24: Ma(n.memoizedState.cache);+ }+ if (r = n.child, r !== null) r.return = n, fu = r;+ else a: for (n = e; fu !== null;) {+ r = fu;+ var i = r.sibling, a = r.return;+ if (Cu(r), r === n) {+ fu = null;+ break a;+ }+ if (i !== null) {+ i.return = a, fu = i;+ break a;+ }+ fu = a;+ }+ }+ }+ var td = {+ getCacheForType: function(e) {+ var t = wa(Aa), n = t.data.get(e);+ return n === void 0 && (n = e(), t.data.set(e, n)), n;},- children: e- });-}-//#endregion-//#region src/react/components/use-view-glide.ts-function nle(e, t, n) {- if (!t.contains(e)) return null;- let r = 0, i = 0;- for (let n = e; n && n !== t; n = n.offsetParent) r += n.offsetLeft, i += n.offsetTop;- let a = e.getBoundingClientRect();- for (let o = e.parentElement; o && o !== t; o = o.parentElement) {- r -= o.scrollLeft, i -= o.scrollTop;- let e = () => o.getBoundingClientRect();- if (n === "x" && o.scrollWidth > o.clientWidth && getComputedStyle(o).overflowX !== "visible") {- let t = e();- if (a.right <= t.left || a.left >= t.right) return null;+ cacheSignal: function() {+ return wa(Aa).controller.signal;}- if (n === "y" && o.scrollHeight > o.clientHeight && getComputedStyle(o).overflowY !== "visible") {- let t = e();- if (a.bottom <= t.top || a.top >= t.bottom) return null;+ }, nd = typeof WeakMap == "function" ? WeakMap : Map, rd = 0, id = null, ad = null, od = 0, sd = 0, cd = null, ld = !1, ud = !1, dd = !1, fd = 0, pd = 0, md = 0, hd = 0, gd = 0, _d = 0, vd = 0, yd = null, bd = null, xd = !1, Sd = 0, Cd = 0, wd = Infinity, Td = null, Ed = null, Dd = 0, Od = null, kd = null, Ad = 0, jd = 0, Md = null, Nd = null, Pd = null, Fd = null, Id = null, Ld = 0, Rd = null;+ function zd() {+ return rd & 2 && od !== 0 ? od & -od : L.T === null ? ht() : Uf();+ }+ function Bd() {+ if (_d === 0) {+ if (!(od & 536870912) || ra) {+ var e = et;+ et <<= 1, !(et & 3932160) && (et = 262144), _d = e;+ } else _d = 536870912;}+ return e = Ao.current, e !== null && (e.flags |= 32), _d;}- return {- x: r,- y: i,- w: e.offsetWidth,- h: e.offsetHeight- };-}-function fA(e, t, n, r, { axis: i = "x" } = {}) {- let a = (0, B.useRef)(null), o = (0, B.useCallback)((r, o) => {- let s = e.current, c = t.current, l = s?.parentElement;- if (!s) return;- let u = c && c.offsetWidth ? r ?? c.querySelector(n) : null, d = u && l ? nle(u, l, i) : null;- if (!d || !d.w) {- s.hidden = !0;- return;+ function Vd(e, t) {+ if (t != null) {+ var n = e.stateNode, r = n.ref;+ r === null && (r = n.ref = Wp(hi(e.memoizedProps, n))), Fd === null && (Fd = []), Fd.push(t.bind(null, r));}- let f = s.hidden ? null : a.current;- s.hidden = !1, a.current = d, Fe(s, o ? f : null, d, i);- }, [- e,- t,- n,- i- ]), s = (0, B.useRef)(!1);- return (0, B.useLayoutEffect)(() => {- let t = e.current;- t && !s.current && (t.hidden = !0), o(null, s.current), s.current = !0;- }, [o, r]), (0, B.useEffect)(() => {- let t = e.current?.parentElement, n = 0, r = () => {- n ||= requestAnimationFrame(() => {- n = 0, o(null, !1);- });- };- return t?.addEventListener("scroll", r, {- capture: !0,- passive: !0- }), addEventListener("resize", r, { passive: !0 }), () => {- cancelAnimationFrame(n), t?.removeEventListener("scroll", r, { capture: !0 }), removeEventListener("resize", r);- };- }, [e, o]), {- hover: (0, B.useCallback)((e) => {- e.pointerType !== "touch" && o(e.currentTarget, !0);- }, [o]),- leave: (0, B.useCallback)((e) => {- e.pointerType !== "touch" && o(null, !0);- }, [o]),- sync: (0, B.useCallback)(() => {- e.current?.getAnimations().forEach((e) => e.cancel()), o(null, !1);- }, [e, o])- };-}-//#endregion-//#region src/react/components/use-moving-surface.ts-var rle = {- selection: {- type: ni,- duration: .16,- bounce: 0- },- hover: {- type: ni,- duration: .08,- bounce: 0}-};-function pA(e) {- let [t, n] = (0, B.useState)(null);- return (0, B.useLayoutEffect)(() => {- if (!t) return;- let n = document.createElement("span");- n.setAttribute("aria-hidden", "true"), n.dataset.movingSurface = e, n.hidden = !0, t.prepend(n), t.dataset.surfaceHost = e;- let r = matchMedia("(prefers-reduced-motion: reduce)"), i = matchMedia("(hover: hover) and (pointer: fine)"), a = !1, o = null, s = null, c = "", l, u = e === "selection" ? "[role=\"tab\"],label[data-rac]" : "[role=\"option\"],button", d = () => [...t.querySelectorAll(u)].filter((e) => e.getBoundingClientRect().width > 0), f = () => {- l?.cancel(), n.hidden = !0, s = null, c = "", delete t.dataset.surfaceReady;- }, p = (u = !1) => {- let p = d(), m = p.find((e) => e.hasAttribute("data-selected") || e.getAttribute("aria-selected") === "true"), h = e === "selection" ? m : o;- if (!h || !t.contains(h) || !p.includes(h) || e === "hover" && (!i.matches || !a || p.length > 8 || h.matches(":disabled,[aria-disabled=\"true\"],[data-disabled]"))) {- f();- return;+ function Hd(e, t, n) {+ (e === id && (sd === 2 || sd === 9) || e.cancelPendingCommit !== null) && (Yd(e, 0), Kd(e, od, _d, !1)), ct(e, n), (!(rd & 2) || e !== id) && (e === id && (!(rd & 2) && (hd |= n), pd === 4 && Kd(e, od, _d, !1)), Ff(e));+ }+ function Ud(e, t, n) {+ if (rd & 6) throw Error(i(327));+ var r = !n && !(t & 127) && (t & e.expiredLanes) === 0 || z(e, t), a = r ? rf(e, t) : tf(e, t, !0), o = r;+ do {+ if (a === 0) {+ ud && !r && Kd(e, t, 0, !1);+ break;+ }+ if (n = e.current.alternate, o && !Gd(n)) {+ a = tf(e, t, !1), o = !1;+ continue;+ }+ if (a === 2) {+ if (o = t, e.errorRecoveryDisabledLanes & o) var s = 0;+ else s = e.pendingLanes & -536870913, s = s === 0 ? s & 536870912 ? 536870912 : 0 : s;+ if (s !== 0) {+ t = s;+ a: {+ var c = e;+ a = yd;+ var l = c.current.memoizedState.isDehydrated;+ if (l && (Yd(c, s).flags |= 256), s = tf(c, s, !1), s !== 2 && s !== 6) {+ if (dd && !l) {+ c.errorRecoveryDisabledLanes |= o, hd |= o, a = 4;+ break a;+ }+ o = bd, bd = a, o !== null && (bd === null ? bd = o : bd.push.apply(bd, o));+ }+ a = s;+ }+ if (o = !1, a !== 2) continue;+ }+ }+ if (a === 1) {+ Yd(e, 0), Kd(e, t, 0, !0);+ break;+ }+ a: {+ switch (r = e, o = a, o) {+ case 0:+ case 1: throw Error(i(345));+ case 4: if ((t & 4194048) !== t && (t & 62914560) !== t) break;+ case 6:+ Kd(r, t, _d, !ld);+ break a;+ case 2:+ bd = null;+ break;+ case 3:+ case 5: break;+ default: throw Error(i(329));+ }+ if ((t & 62914560) === t && (a = Sd + 300 - Le(), 10 < a)) {+ if (Kd(r, t, _d, !ld), rt(r, 0, !0) !== 0) break a;+ Ad = t, r.timeoutHandle = Dp(Wd.bind(null, r, n, bd, Td, xd, t, _d, hd, vd, ld, o, "Throttled", -0, 0), a);+ break a;+ }+ Wd(r, n, bd, Td, xd, t, _d, hd, vd, ld, o, null, -0, 0);+ }+ break;+ } while (1);+ Ff(e);+ }+ function Wd(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 = {+ stylesheets: null,+ count: 0,+ imgCount: 0,+ imgBytes: 0,+ suspenseyImages: [],+ waitingForImages: !0,+ waitingForViewTransition: !1,+ unsuspend: gn+ }, Ul = null, Yu(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 = fh.bind(m), h.finished.then(m, m))), m = (a & 62914560) === a ? Sd - Le() : (a & 4194048) === a ? Cd - Le() : 0, m = uh(d, m), m !== null)) {+ Ad = a, e.cancelPendingCommit = m(df.bind(null, e, t, a, n, r, i, o, s, c, l, u, d, null, f, p)), Kd(e, a, o, !l);+ return;+ }+ df(e, t, a, n, r, i, o, s, c, l, u, d);+ }+ function Gd(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++) {+ var i = n[r], a = i.getSnapshot;+ i = i.value;+ try {+ if (!zr(a(), i)) return !1;+ } catch {+ return !1;+ }}- let g = h.getBoundingClientRect(), _ = t.getBoundingClientRect(), v = _.width / t.offsetWidth || 1, y = _.height / t.offsetHeight || 1, b = (g.left - _.left) / v + t.scrollLeft - t.clientLeft, x = (g.top - _.top) / y + t.scrollTop - t.clientTop, S = g.width / v, C = g.height / y, w = `${b},${x},${S},${C}`;- if (a && i.matches && !r.matches && s === h && c === w) return;- let T = n.hidden ? null : n.getBoundingClientRect();- l?.cancel(), n.hidden = !1, n.style.width = `${S}px`, n.style.height = `${C}px`;- let E = `translate(${b}px, ${x}px) scale(1, 1)`;- if (u && a && !r.matches && T && s !== h) {- let r = `translate(${(T.left - _.left) / v + t.scrollLeft - t.clientLeft}px, ${(T.top - _.top) / y + t.scrollTop - t.clientTop}px) scale(${T.width / v / S}, ${T.height / y / C})`;- l = Qf(n, { transform: [r, E] }, rle[e]);- } else n.style.transform = E;- s = h, c = w, t.dataset.surfaceReady = "";- }, m = (t) => {- if (a = t.pointerType === "mouse" && i.matches, e === "hover") {- let e = t.target instanceof Element ? t.target.closest(u) : null;- if (e === o && a) return;- o = e, p(!0);+ if (n = t.child, t.subtreeFlags & 16384 && n !== null) n.return = t, t = n;+ else {+ if (t === e) break;+ for (; t.sibling === null;) {+ if (t.return === null || t.return === e) return !0;+ t = t.return;+ }+ t.sibling.return = t.return, t = t.sibling;}- }, h = () => {- a = !1, e === "hover" ? f() : p();- }, g = () => {- o = null, e === "hover" && f();- }, _ = () => p(), v = new MutationObserver(() => p(!0)), y = new ResizeObserver(_), b = () => {- y.disconnect(), y.observe(t), d().forEach((e) => y.observe(e));- }, x = new MutationObserver(() => {- b(), p();- });- return v.observe(t, {- subtree: !0,- attributes: !0,- attributeFilter: [- "data-selected",- "aria-selected",- "data-disabled",- "aria-disabled"- ]- }), x.observe(t, {- childList: !0,- subtree: !0- }), b(), p(), t.addEventListener("pointerdown", m, !0), t.addEventListener("pointermove", m), t.addEventListener("pointerleave", g), t.addEventListener("keydown", h, !0), t.addEventListener("scroll", _, !0), r.addEventListener("change", _), i.addEventListener("change", _), () => {- l?.cancel(), v.disconnect(), x.disconnect(), y.disconnect(), t.removeEventListener("pointerdown", m, !0), t.removeEventListener("pointermove", m), t.removeEventListener("pointerleave", g), t.removeEventListener("keydown", h, !0), t.removeEventListener("scroll", _, !0), r.removeEventListener("change", _), i.removeEventListener("change", _), n.remove(), delete t.dataset.surfaceHost, delete t.dataset.surfaceReady;- };- }, [t, e]), n;-}-//#endregion-//#region src/react/components/segmented.tsx-function mA(e) {- let t = pA("selection");- return /* @__PURE__ */ (0, V.jsx)(pk, {- ...e,- ref: t- });-}-function hA(e) {- let t = pA("selection");- return /* @__PURE__ */ (0, V.jsx)(LO, {- ...e,- ref: t- });-}-var gA = "inline-flex w-max max-w-full items-center gap-0.5 overflow-x-auto overscroll-x-contain rounded-2lg bg-background-tertiary-default p-1", _A = "flex min-h-7 flex-none cursor-pointer items-center gap-1.5 rounded-md px-2.5 py-1 text-body-medium whitespace-nowrap text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", ile = "flex size-7 flex-none cursor-pointer items-center justify-center rounded-md text-text-secondary outline-none transition-colors hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring data-focus-visible:ring-2 data-focus-visible:ring-border-focus-ring data-selected:bg-background-primary-default data-selected:text-text-primary data-selected:shadow-card dark:data-selected:bg-background-primary-hover", vA = "inline-flex w-max max-w-full flex-none items-center gap-0.5 rounded-lg", yA = "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-lg text-(--glass-text)/62 outline-none transition-colors hover:text-(--glass-text) focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:text-(--glass-text)", ale = { "text-aa": 1.435 }, bA = /* @__PURE__ */ new Map();-function xA(e) {- let t = bA.get(e);- if (t) return t;- let n = ale[e], r = n ? ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {- "aria-hidden": !0,- viewBox: `0 0 ${(24 * n).toFixed(2)} 24`,- className: `shrink-0 fill-current ${t ?? "h-4 w-auto"}`,- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })- }) : ({ className: t }) => /* @__PURE__ */ (0, V.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- strokeLinecap: "round",- strokeLinejoin: "round",- className: `shrink-0 stroke-current stroke-2 ${t ?? "size-4"}`,- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })- });- return r.displayName = `SpriteGlyph(${e})`, bA.set(e, r), r;-}-//#endregion-//#region src/react/entity-filter/entity-filter.ts-var ole = (e) => e === "videos", SA = () => /* @__PURE__ */ (0, V.jsx)("span", {- "data-entity-sep": "",- "aria-hidden": "true"-});-function sle(e) {- let { view: t, views: n, state: r, states: i, tags: a, combo: o, actions: s, helpers: c } = e, l = ole(t), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = fA(u, f, "[data-entity-state][aria-pressed=\"true\"]", `${t}:${r}`), v = fA(d, p, "[data-media-view][aria-pressed=\"true\"]", `${t}:${!!n}`);- return (0, B.useEffect)(() => {- c.wireDrag(h.current), c.wireScroller(m.current), c.wireDrag(g.current);- }, [c]), /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(CA, {- items: o,- hidden: !l,- actions: s- }), /* @__PURE__ */ (0, V.jsx)(lA, {- label: "筛选与排序",- topLabel: "媒体与标签",- attrs: {- "data-filter-frame": "",- "data-entity-filter-glass": ""- },- topClassName: "gap-1.5 overflow-visible",- bottomClassName: "min-h-12",- bottomRef: g,- busy: e.busy,- panes: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {- ref: u,- "data-view-glide": "",- "aria-hidden": "true"- }), /* @__PURE__ */ (0, V.jsx)("span", {- ref: d,- "data-view-glide": "round",- "aria-hidden": "true"- })] }),- top: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [n ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(cle, {- keys: n,- view: t,- row: p,- glide: v,- onView: s.setView- }), l ? /* @__PURE__ */ (0, V.jsx)(SA, {}) : null] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {- ref: m,- "data-entity-scroll": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- ref: f,- role: "group",- "aria-label": "观看状态",- "data-entity-states": "",- hidden: !l,- onPointerLeave: _.leave,- children: [i.map((e) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-entity-state": e.k,- "data-entity-press": "",- "aria-pressed": r === e.k,- onPointerEnter: _.hover,- onClick: () => {- r !== e.k && s.setState(e.k);- },- children: e.label- }, e.k)), /* @__PURE__ */ (0, V.jsx)(SA, {})]- }), /* @__PURE__ */ (0, V.jsx)("div", {- ref: h,- "data-entity-tags": "",- children: l ? a.map((e) => /* @__PURE__ */ (0, V.jsxs)(uA, {- "data-entity-tag": e.k,- "data-entity-press": "",- pressed: e.selected,- onPress: () => s.toggleTag(e.k),- children: [e.label, /* @__PURE__ */ (0, V.jsx)("span", {- "data-count-badge": e.k,- children: e.n.toLocaleString()- })]- }, e.k)) : null- })]- })] }),- bottom: /* @__PURE__ */ (0, V.jsx)(lle, { ...e })- })] });-}-function cle({ keys: e, view: t, row: n, glide: r, onView: i }) {- let a = [];- return e.people && a.push({- value: "people",- text: e.people.label,- count: e.people.count,- symbol: e.people.icon,- kind: "people"- }), a.push({- value: "videos",- text: "视频",- count: e.videos.count,- symbol: "play",- kind: "video"- }), e.photos && a.push({- value: "photos",- text: "照片",- count: e.photos.count,- symbol: "pics",- kind: "image"- }), /* @__PURE__ */ (0, V.jsx)("div", {- ref: n,- role: "group",- "aria-label": e.label,- "data-entity-media": "",- onPointerLeave: r.leave,- children: a.map(({ value: e, text: n, count: a, symbol: o, kind: s }) => {- let c = `${n} ${Math.max(0, a || 0).toLocaleString()}`;- return /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-view": e,- "data-media-icon": s,- "aria-pressed": t === e,- "aria-label": c,- title: c,- onPointerEnter: r.hover,- onClick: () => i(e),- dangerouslySetInnerHTML: { __html: R(o) }- }, e);- })- });-}-function CA({ items: e, hidden: t, actions: n }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-entity-combo": "",- hidden: t,- children: e.length ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {- "data-combo-chip": "",- children: [e.label, /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "aria-label": `撤掉 ${e.label}`,- onClick: () => e.kind === "untag" ? n.toggleTag(e.key) : n.clearFilter(e.key),- children: "✕"- })]- }, `${e.kind}:${e.key}`)), /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-combo-clear": "",- onClick: n.clearAll,- children: "全部清除"- })] }) : null- });-}-function lle(e) {- let { view: t, readout: n, busy: r, video: i, photo: a, actions: o, helpers: s } = e;- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- t === "photos" && a?.back ? /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-photo-back": "",- onClick: o.photoBack,- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "contents",- dangerouslySetInnerHTML: { __html: R("chevron-left") }- }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部照片" })]- }) : null,- /* @__PURE__ */ (0, V.jsx)(ule, {- text: n,- busy: r- }),- t === "videos" && i ? /* @__PURE__ */ (0, V.jsx)(dle, {- head: i,- actions: o- }) : null,- t === "photos" && a ? /* @__PURE__ */ (0, V.jsx)(fle, {- head: a,- actions: o,- helpers: s- }) : null- ] });-}-function ule({ text: e, busy: t }) {- return /* @__PURE__ */ (0, V.jsx)("h3", {- "data-entity-readout": "",- children: t ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-skeleton": "count",- "aria-hidden": !0,- className: "relative inline-block h-3.5 w-24 rounded-md align-middle skeleton-sheen"- }) : e- });-}-function wA({ name: e, label: t, value: n, options: r, onChange: i }) {- return /* @__PURE__ */ (0, V.jsx)(LO, {- name: e,- "aria-label": t,- orientation: "horizontal",- value: n,- onChange: i,- "data-entity-layout": "",- className: vA,- children: r.map(([e, t, n]) => {- let r = xA(n);- return /* @__PURE__ */ (0, V.jsx)(RO, {- value: e,- "aria-label": t,- "data-glass-segment": "",- className: yA,- children: /* @__PURE__ */ (0, V.jsx)("span", {- title: t,- className: "contents",- children: /* @__PURE__ */ (0, V.jsx)(r, { className: "size-4" })- })- }, e);- })- });-}-function TA({ onPress: e, busy: t = !1 }) {- return /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-entity-batch": "",- title: "换一批",- "aria-label": "换一批",- "aria-busy": t || void 0,- "aria-disabled": t || void 0,- onClick: () => {- t || e();- },- dangerouslySetInnerHTML: { __html: t ? Ke("正在换一批") : R("shuffle") }- });-}-function dle({ head: e, actions: t }) {- return /* @__PURE__ */ (0, V.jsxs)("span", {- "data-entity-sorts": "",- children: [- /* @__PURE__ */ (0, V.jsx)(TA, { onPress: () => void t.reshuffle() }),- e.jav ? /* @__PURE__ */ (0, V.jsx)(wA, {- label: "JAV 卡片版式",- value: e.jav.layout,- options: e.jav.options,- onChange: t.setJavLayout- }) : null,- /* @__PURE__ */ (0, V.jsx)(EA, {- sorts: e.sorts,- onSort: t.setSort- })- ]- });-}-function EA({ sorts: e, onSort: t }) {- return /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: e.map((e) => {- let n = xA(e.dir === "asc" ? "arrow-up" : "arrow-down");- return /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-entity-sort": e.key,- "data-entity-press": "",- "aria-pressed": e.pressed,- "aria-label": e.ariaLabel || void 0,- onClick: () => t(e.key),- children: [e.label, e.pressed && e.dir ? /* @__PURE__ */ (0, V.jsx)(n, { className: "size-3.5" }) : null]- }, e.key);- }) });-}-function fle({ head: e, actions: t, helpers: n }) {- let [r, i] = (0, B.useState)(!1), a = (0, B.useRef)(null), o = e.back ? n.sourceToolsHtml(e.setId) : "";- return (0, B.useEffect)(() => {- a.current && o && n.wireSourceTools(a.current);- }, [n, o]), /* @__PURE__ */ (0, V.jsxs)("span", {- "data-entity-sorts": "",- children: [- e.shuffle ? /* @__PURE__ */ (0, V.jsx)(TA, {- onPress: () => {- i(!0), t.reshuffle().finally(() => i(!1));- },- busy: r- }) : null,- /* @__PURE__ */ (0, V.jsx)(wA, {- label: "图片布局",- value: e.layout,- options: e.layouts,- onChange: t.setPhotoLayout- }),- o ? /* @__PURE__ */ (0, V.jsx)("span", {- ref: a,- "data-entity-srctools": "",- dangerouslySetInnerHTML: { __html: o }- }) : null- ]- });-}-//#endregion-//#region src/react/catalog-filter/catalog-filter-page.tsx-var DA = "";-function ple(e) {- let t = !e.tiers, n = ble(e.comboHost);- return /* @__PURE__ */ (0, V.jsxs)("div", {- "data-catalog-root": "",- "data-loading": t || void 0,- "data-refreshing": e.refreshing || void 0,- className: "contents",- children: [- n ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(CA, {- items: e.combo,- hidden: e.comboHidden,- actions: e.actions- }), n) : null,- /* @__PURE__ */ (0, V.jsx)(gle, { ...e }),- e.offscreen ? null : /* @__PURE__ */ (0, V.jsx)(mle, { ...e })- ]- });-}-function mle(e) {- let { actions: t, helpers: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = fA(r, i, "[data-catalog-view][aria-pressed=\"true\"]", e.state);- (0, B.useEffect)(() => {- n.wireDrag(o.current), n.wireScroller(a.current), n.wireDrag(s.current);- }, [n]);- let l = !e.tiers, u = kA(o, e.tags, e.tiers?.key ?? "", e.tagFirst);- return (0, B.useLayoutEffect)(() => {- Le(o.current, "tagbar");- }, [u]), /* @__PURE__ */ (0, V.jsx)(lA, {- label: "筛选与排序",- topLabel: "视图与标签",- attrs: {- "data-filter-frame": "",- "data-catalog-frame": ""- },- className: "mx-4",- topClassName: "gap-1.5 overflow-visible",- bottomClassName: e.trash ? "hidden" : "min-h-12",- bottomRef: s,- busy: !e.count || e.refreshing,- panes: /* @__PURE__ */ (0, V.jsx)("span", {- ref: r,- "data-view-glide": "",- "aria-hidden": "true"- }),- top: /* @__PURE__ */ (0, V.jsxs)("div", {- ref: a,- "data-catalog-scroll": "",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- ref: i,- role: "group",- "aria-label": "视图",- "data-catalog-views": "",- onPointerLeave: c.leave,- children: [e.views.map((n) => /* @__PURE__ */ (0, V.jsx)("a", {- href: n.href,- "data-catalog-view": n.k,- "data-entity-press": "",- "aria-pressed": e.state === n.k,- onPointerEnter: c.hover,- onClick: (e) => {- e.preventDefault(), t.setView(n.k);- },- children: n.label- }, n.k)), /* @__PURE__ */ (0, V.jsx)("span", {- "data-entity-sep": "",- "aria-hidden": "true"- })]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- ref: o,- "data-catalog-tags": "",- children: [e.empty || l ? /* @__PURE__ */ (0, V.jsx)(OA, { kind: "tag" }) : null, u.map((e) => /* @__PURE__ */ (0, V.jsx)(hle, {- tag: e,- onPress: t.toggleTag- }, e.k))]- })]- }),- bottom: e.trash ? null : /* @__PURE__ */ (0, V.jsx)(vle, { ...e })- });-}-function hle({ tag: e, onPress: t }) {- return /* @__PURE__ */ (0, V.jsxs)(uA, {- "data-catalog-tag": e.k,- "data-entity-press": "",- pressed: e.selected,- onPress: () => t(e.k),- children: [e.label, e.n == null ? null : /* @__PURE__ */ (0, V.jsx)("span", {- "data-count-badge": e.k,- children: e.n.toLocaleString()- })]- });-}-function gle(e) {- let { actions: t, helpers: n } = e, r = e.tiers ?? {- key: "",- performers: [],- studios: []- }, i = e.empty || !e.tiers, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useCallback)((e) => () => t.moreTops(e), [t]), c = kA(a, r.performers, r.key, 24, i ? void 0 : s("performers")), l = kA(o, r.studios, r.key, 24, i ? void 0 : s("studios")), u = i || r.performers.length > 0, d = i || r.studios.length > 0;- return (0, B.useEffect)(() => {- n.wireDrag(a.current), n.wireDrag(o.current);- }, [- n,- u,- d- ]), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-catalog-tiers": "",- hidden: !u && !d,- children: [u ? /* @__PURE__ */ (0, V.jsx)("div", {- ref: a,- "data-catalog-tier": "performers",- children: i ? /* @__PURE__ */ (0, V.jsx)(OA, { kind: "performer" }) : c.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-tier-performer": "",- "data-entity-kind": "performer",- "data-entity-name": e.name,- onClick: () => t.openEntity("performer", e.name),- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-tier-ring": "",- dangerouslySetInnerHTML: { __html: e.ringHtml }- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-tier-name": "",- children: e.name- })]- }, e.name))- }) : null, d ? /* @__PURE__ */ (0, V.jsx)("div", {- ref: o,- "data-catalog-tier": "studios",- children: i ? /* @__PURE__ */ (0, V.jsx)(OA, { kind: "studio" }) : l.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-tier-studio": "",- "data-entity-kind": "studio",- "data-entity-name": e.name,- onClick: () => t.openEntity("studio", e.name),- children: [/* @__PURE__ */ (0, V.jsx)(_le, { studio: e }), e.name]- }, e.name))- }) : null]- });-}-function _le({ studio: e }) {- let [t, n] = (0, B.useState)(!1);- return /* @__PURE__ */ (0, V.jsx)("span", {- "data-tier-mark": "",- children: e.logo && !t ? /* @__PURE__ */ (0, V.jsx)("img", {- src: e.logo,- alt: "",- onError: () => n(!0),- onLoad: (e) => {- e.currentTarget.naturalWidth < 32 && n(!0);+ }+ return !0;+ }+ function Kd(e, t, n, r) {+ t = it(e, t), t &= ~gd, t &= ~hd, e.suspendedLanes |= t, e.pingedLanes &= ~t, r && (e.warmLanes |= t), r = e.expirationTimes;+ for (var i = t; 0 < i;) {+ var a = 31 - Ye(i), o = 1 << a;+ r[a] = -1, i &= ~o;+ }+ n !== 0 && ut(e, n, t);+ }+ function qd() {+ return rd & 6 ? !0 : (If(0, !1), !1);+ }+ function Jd() {+ if (ad !== null) {+ if (sd === 0) var e = ad.return;+ else e = ad, ga = ha = null, os(e), io = null, ao = 0, e = ad;+ for (; e !== null;) Cl(e.alternate, e), e = e.return;+ ad = null;+ }+ }+ function Yd(e, t) {+ var n = e.timeoutHandle;+ return n !== -1 && (e.timeoutHandle = -1, Op(n)), n = e.cancelPendingCommit, n !== null && (e.cancelPendingCommit = null, n()), Ad = 0, Jd(), id = e, ad = n = Mi(e.current, null), od = t, sd = 0, cd = null, ld = !1, ud = z(e, t), dd = !1, vd = _d = gd = hd = md = pd = 0, bd = yd = null, xd = !1, fd = it(e, t), Si(), n;+ }+ function Xd(e, t) {+ Ho = null, L.H = gc, t === Ja || t === Xa ? (t = no(), sd = 3) : t === Ya ? (t = no(), sd = 4) : sd = t === Pc ? 8 : typeof t == "object" && t && typeof t.then == "function" ? 6 : 1, cd = t, ad === null && (pd = 1, Oc(e, Bi(t, e.current)));+ }+ function Zd() {+ var e = Ao.current;+ return e === null ? !0 : (od & 4194048) === od ? jo === null : (od & 62914560) === od || od & 536870912 ? e === jo : !1;+ }+ function Qd() {+ var e = L.H;+ return L.H = gc, e === null ? gc : e;+ }+ function $d() {+ var e = L.A;+ return L.A = td, e;+ }+ function ef() {+ pd = 4, ld || (od & 4194048) !== od && Ao.current !== null || (ud = !0), !(md & 134217727) && !(hd & 134217727) || id === null || Kd(id, od, _d, !1);+ }+ function tf(e, t, n) {+ var r = rd;+ rd |= 2;+ var i = Qd(), a = $d();+ (id !== e || od !== t) && (Td = null, Yd(e, t)), t = !1;+ var o = pd;+ a: do+ try {+ if (sd !== 0 && ad !== null) {+ var s = ad, c = cd;+ switch (sd) {+ case 8:+ Jd(), o = 6;+ break a;+ case 3:+ case 2:+ case 9:+ case 6:+ Ao.current === null && (t = !0);+ var l = sd;+ if (sd = 0, cd = null, cf(e, s, c, l), n && ud) {+ o = 0;+ break a;+ }+ break;+ default: l = sd, sd = 0, cd = null, cf(e, s, c, l);+ }+ }+ nf(), o = pd;+ break;+ } catch (t) {+ Xd(e, t);}- }) : e.fallback- });-}-function OA({ kind: e }) {- let t = Array.from({ length: 64 }, (e, t) => t);- return e === "tag" ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-catalog-placeholder": "tag",- "aria-hidden": "true",- children: t.map((e) => /* @__PURE__ */ (0, V.jsx)("span", {}, e))- }) : /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: t.map((t) => e === "performer" ? /* @__PURE__ */ (0, V.jsxs)("span", {- "data-catalog-placeholder": "performer",- "aria-hidden": "true",- children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]- }, t) : /* @__PURE__ */ (0, V.jsxs)("span", {- "data-catalog-placeholder": "studio",- "aria-hidden": "true",- children: [/* @__PURE__ */ (0, V.jsx)("span", {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "\xA0" })]- }, t)) });-}-function vle({ count: e, refreshing: t, layout: n, sorts: r, actions: i }) {- let [a, o] = (0, B.useState)(!1);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(yle, { count: e }), /* @__PURE__ */ (0, V.jsxs)("span", {- "data-entity-sorts": "",- children: [- /* @__PURE__ */ (0, V.jsx)(TA, {- onPress: () => {- o(!0), i.reshuffle().finally(() => o(!1));- },- busy: a || t- }),- n ? /* @__PURE__ */ (0, V.jsx)(wA, {- name: n.name,- label: n.label,- value: n.value,- options: n.options,- onChange: i.setLayout- }, n.name) : null,- /* @__PURE__ */ (0, V.jsx)(EA, {- sorts: r,- onSort: i.setSort- })- ]- })] });-}-function yle({ count: e }) {- let t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = e ? `${e.total.toLocaleString()} 个符合 · 显示 ${e.shown}` : "";- return (0, B.useLayoutEffect)(() => {- if (!e) {- ke(n.current);+ while (1);+ return t && e.shellSuspendCounter++, ga = ha = null, rd = r, L.H = i, L.A = a, ad === null && (id = null, od = 0, Si()), o;+ }+ function nf() {+ for (; ad !== null;) of(ad);+ }+ function rf(e, t) {+ var n = rd;+ rd |= 2;+ var r = Qd(), a = $d();+ id !== e || od !== t ? (Td = null, wd = Le() + 500, Yd(e, t)) : ud = z(e, t);+ a: do+ try {+ if (sd !== 0 && ad !== null) {+ t = ad;+ var o = cd;+ b: switch (sd) {+ case 1:+ sd = 0, cd = null, cf(e, t, o, 1);+ break;+ case 2:+ case 9:+ if (Qa(o)) {+ sd = 0, cd = null, sf(t);+ break;+ }+ t = function() {+ sd !== 2 && sd !== 9 || id !== e || (sd = 7), Ff(e);+ }, o.then(t, t);+ break a;+ case 3:+ sd = 7;+ break a;+ case 4:+ sd = 5;+ break a;+ case 7:+ Qa(o) ? (sd = 0, cd = null, sf(t)) : (sd = 0, cd = null, cf(e, t, o, 7));+ break;+ case 5:+ var s = null;+ switch (ad.tag) {+ case 26: s = ad.memoizedState;+ case 5:+ case 27:+ var c = ad;+ if (s ? ah(s) : c.stateNode.complete) {+ sd = 0, cd = null;+ var l = c.sibling;+ if (l !== null) ad = l;+ else {+ var u = c.return;+ u === null ? ad = null : (ad = u, lf(u));+ }+ break b;+ }+ }+ sd = 0, cd = null, cf(e, t, o, 5);+ break;+ case 6:+ sd = 0, cd = null, cf(e, t, o, 6);+ break;+ case 8:+ Jd(), pd = 6;+ break a;+ default: throw Error(i(462));+ }+ }+ af();+ break;+ } catch (t) {+ Xd(e, t);+ }+ while (1);+ return ga = ha = null, L.H = r, L.A = a, rd = n, ad === null ? (id = null, od = 0, Si(), pd) : 0;+ }+ function af() {+ for (; ad !== null && !Fe();) of(ad);+ }+ function of(e) {+ var t = ml(e.alternate, e, fd);+ e.memoizedProps = e.pendingProps, t === null ? lf(e) : ad = t;+ }+ function sf(e) {+ var t = e, n = t.alternate;+ switch (t.tag) {+ case 15:+ case 0:+ t = Jc(n, t, t.pendingProps, t.type, void 0, od);+ break;+ case 11:+ t = Jc(n, t, t.pendingProps, t.type.render, t.ref, od);+ break;+ case 5:+ os(t);+ var r = t;+ r === ta && (ra ? (la(r), r.tag === 5 && r.stateNode != null && (na = r.stateNode)) : (la(r), ra = !0));+ default: Cl(n, t), t = ad = Ni(t, fd), t = ml(n, t, fd);+ }+ e.memoizedProps = e.pendingProps, t === null ? lf(e) : ad = t;+ }+ function cf(e, t, n, r) {+ ga = ha = null, os(t), io = null, ao = 0;+ var i = t.return;+ try {+ if (Nc(e, i, t, n, od)) {+ pd = 1, Oc(e, Bi(n, e.current)), ad = null;+ return;+ }+ } catch (t) {+ if (i !== null) throw ad = i, t;+ pd = 1, Oc(e, Bi(n, e.current)), ad = null;return;}- let i = t.current;- i && (DA && i.dataset.popCount === void 0 && (i.dataset.popCount = DA), DA = r, Re(i, r));- }, [e, r]), e ? /* @__PURE__ */ (0, V.jsx)("span", {- ref: t,- "data-catalog-readout": "",- "data-count-readout": "",- role: "status"- }, "readout") : /* @__PURE__ */ (0, V.jsx)("span", {- "data-catalog-readout": "",- children: /* @__PURE__ */ (0, V.jsx)("span", {- ref: n,- "data-skeleton": "count",- "aria-hidden": !0,- className: "relative inline-block h-3.5 w-37.5 rounded-md align-middle skeleton-sheen"- })- }, "skeleton");-}-function ble(e) {- let [t, n] = (0, B.useState)(null);- return (0, B.useLayoutEffect)(() => {- if (!e) return;- let t = e.ownerDocument.createElement("div");- return t.className = "peach-react", e.replaceChildren(t), n(t), () => {- t.remove(), n(null);- };- }, [e]), t;-}-function kA(e, t, n, r, i) {- let a = () => ({- key: n,- limit: r,- fetched: [],- drained: !i- }), [o, s] = (0, B.useState)(a), c = o.key === n ? o : a();- c !== o && s(c);- let l = (0, B.useMemo)(() => c.fetched.length ? t.concat(c.fetched) : t, [t, c.fetched]), u = (0, B.useRef)(null), d = (0, B.useRef)({- current: c,- all: l,- more: i- });- d.current = {- current: c,- all: l,- more: i- };- let f = (0, B.useCallback)(() => {- let t = e.current, { current: n, all: r, more: i } = d.current;- if (!(!t || !t.clientWidth || t.scrollLeft + t.clientWidth < t.scrollWidth - 320)) {- if (n.limit < r.length) {- s((e) => e.key === n.key ? {- ...e,- limit: e.limit + 12- } : e);+ t.flags & 32768 ? (ra || r === 1 ? e = !0 : ud || od & 536870912 ? e = !1 : (ld = e = !0, (r === 2 || r === 9 || r === 3 || r === 6) && (r = Ao.current, r !== null && r.tag === 13 && (r.flags |= 16384))), uf(t, e)) : lf(t);+ }+ function lf(e) {+ var t = e;+ do {+ if (t.flags & 32768) {+ uf(t, ld);return;}- n.drained || !i || u.current === n.key || (u.current = n.key, i().catch(() => []).then((e) => {- u.current === n.key && (u.current = null), s((t) => t.key === n.key ? e.length ? {- ...t,- fetched: t.fetched.concat(e)- } : {- ...t,- drained: !0- } : t);- }));+ e = t.return;+ var n = xl(t.alternate, t, fd);+ if (n !== null) {+ ad = n;+ return;+ }+ if (t = t.sibling, t !== null) {+ ad = t;+ return;+ }+ ad = t = e;+ } while (t !== null);+ pd === 0 && (pd = 5);+ }+ function uf(e, t) {+ do {+ var n = Sl(e.alternate, e);+ if (n !== null) {+ n.flags &= 32767, ad = n;+ return;+ }+ if (n = e.return, n !== null && (n.flags |= 32768, n.subtreeFlags = 0, n.deletions = null), !t && (e = e.sibling, e !== null)) {+ ad = e;+ return;+ }+ ad = e = n;+ } while (e !== null);+ pd = 6, ad = null;+ }+ function df(e, t, n, r, a, o, s, c, l, u, d, f) {+ e.cancelPendingCommit = null;+ do+ yf();+ while (Dd !== 0);+ if (rd & 6) throw Error(i(327));+ if (t !== null) {+ if (t === e.current) throw Error(i(177));+ e === id && (ad = id = null, od = 0), kd = t, Od = e, Ad = n, Md = a, Nd = r, ff(e, t, n, s, c, l, f);}- }, [e]);- return (0, B.useLayoutEffect)(f), (0, B.useEffect)(() => {- let t = e.current;- return t?.addEventListener("scroll", f, { passive: !0 }), () => t?.removeEventListener("scroll", f);- }), l.slice(0, c.limit);-}-//#endregion-//#region src/react/components/grid-reveal.tsx-function AA(e, t) {- let [n, r] = (0, B.useState)(e ? "skeleton" : "none"), [i] = (0, B.useState)(() => e ? t() : ""), a = (0, B.useRef)(null);- return (0, B.useLayoutEffect)(() => {- a.current && ke(a.current);- }, []), (0, B.useLayoutEffect)(() => {- if (e || n !== "skeleton") return;- let t = !!a.current && !a.current.querySelector(".skeleton-awaiting");- r(t ? "fade" : "none");- }, [e]), (0, B.useEffect)(() => {- if (n !== "fade") return;- let e = setTimeout(() => r("none"), 1e3);- return () => clearTimeout(e);- }, [n]), {- layer: n === "none" ? null : /* @__PURE__ */ (0, V.jsx)("div", {- ref: a,- "data-grid-fade": n === "fade" ? "" : void 0,- "aria-hidden": !e || void 0,- hidden: !e && n === "skeleton",- onAnimationEnd: (e) => {- e.target === e.currentTarget && r("none");- },- dangerouslySetInnerHTML: { __html: i }- }),- fading: n === "fade"- };-}-function jA({ message: e, onRetry: t }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-error": "",- onClick: (e) => {- e.target.closest("[data-note-action]") && t();- },- dangerouslySetInnerHTML: { __html: Ie(e, {- variant: "error",- actionLabel: "重试"- }) }- });-}-//#endregion-//#region src/react/components/art-slot.tsx-function MA({ artwork: e, identity: t = e.html, relayout: n }) {- let [r, i] = (0, B.useState)({- identity: t,- artwork: e- });- r.identity !== t && i({- identity: t,- artwork: e- });- let a = r.identity === t ? r.artwork : e, o = (0, B.useRef)(null), s = (0, B.useRef)(n);- return s.current = n, (0, B.useLayoutEffect)(() => {- o.current && s.current?.(o.current);- }, [e.html]), /* @__PURE__ */ (0, V.jsx)("span", {- ref: o,- "data-media-art": a.kind,- dangerouslySetInnerHTML: { __html: a.html }- });-}-//#endregion-//#region src/react/components/media-card.tsx-var xle = 9 / 16;-function NA({ name: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })- });-}-var Sle = {- image: "图片",- audio: "音频",- archive: "压缩包",- other: "其它文件"-};-function PA(e, t, n) {- return t === "short" ? xle : o(n);-}-function Cle(e) {- let { kind: t, name: n, coStarred: r, performers: i, refs: a, total: o } = E(e), s = i[0] || "", c = ee(e);- return {- avatar: r ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-avatars": "",- children: i.slice(0, 5).map((e, t) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-avatar": "",- "data-entity-kind": "performer",- "data-entity-name": e,- title: `打开${c}页:${e}`,- dangerouslySetInnerHTML: { __html: k(e, a[t] ?? null, "performer") }- }, `${e}:${t}`))- }) : t ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-avatar": "",- "data-entity-kind": t,- "data-entity-name": n,- title: `打开${t === "performer" ? c : "资料"}页`,- dangerouslySetInnerHTML: { __html: k(n, t === "performer" ? a[0] ?? null : e.creator_entity ?? null, t) }- }) : /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-avatar": "",- dangerouslySetInnerHTML: { __html: k(n, null, "") }- }),- who: r ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-who": "",- "data-entity-kind": "performer",- "data-entity-name": s,- children: s- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-who-more": "",- children: `等 ${o} 人`- })] }) : t ? /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-who": "",- "data-entity-kind": t,- "data-entity-name": n,- children: n- }) : /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-who": "",- "data-open-unowned": "",- children: n- })- };-}-function wle() {- return /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-media-preview": "",- "data-open": "",- title: "打开预览",- "aria-label": "打开预览",- children: [/* @__PURE__ */ (0, V.jsxs)("svg", {- viewBox: "-18 -18 36 36",- "aria-hidden": "true",- children: [/* @__PURE__ */ (0, V.jsx)("circle", { r: "17" }), /* @__PURE__ */ (0, V.jsx)("circle", { r: "17" })]- }), /* @__PURE__ */ (0, V.jsx)("svg", {- "data-media-ring-play": "",- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-play" })- })]- });-}-function Tle({ item: e, actions: t }) {- let [n, r] = (0, B.useState)(null), [i, a] = (0, B.useState)(!1), o = n?.id === e.id ? n.on : !!e.watch_later;- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-later": "",- children: /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-later": "",- "aria-pressed": o,- title: "稍后看",- "aria-label": "稍后看",- onClick: (n) => {- n.stopPropagation(), !i && (a(!0), t.watchLater(e, (t) => r({- id: e.id,- on: t- })).finally(() => a(!1)));- },- "aria-busy": i || void 0,- "aria-disabled": i || void 0,- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: o ? "check" : "bookmark-plus" })- })- });-}-function FA(e, t) {- let n = e?.querySelector("video.hv");- !n || !Number.isFinite(n.duration) || (n._hop &&= (clearInterval(n._hop), null), n.currentTime = Math.max(0, Math.min(n.duration, n.currentTime + t)));-}-function Ele({ item: e, variant: t, layout: n, selected: r, selectMode: i, seekSeconds: a, helpers: o, actions: s, onOpen: c }) {- let l = (0, B.useRef)(null), u = (0, B.useRef)(e);- u.current = e;- let d = (0, B.useCallback)((e) => {- let t = u.current;- l.current && l.current !== e && re(l.current), l.current = e, e && (!t.medium || t.medium === "video") && oe(e, t);- }, []), f = e.part_group || null, p = e.edition_group || null, m = !!(f || p), h = n.active && e.is_jav ? n.size : "small", g = T(e, h, !1, n.javImage), _ = h === "small" ? g.html : T(e, "small", !1, n.javImage).html, v = f?.title || e.name || "", y = o.displayName(e, v), b = f?.total_size ?? e.size, x = f?.total_duration ?? e.duration, S = !f && Number(e.play_seconds) > 0 && Number(e.duration) > 0 ? Math.min(Number(e.play_seconds) / Number(e.duration), 1) : 0, { avatar: C, who: w } = Cle(e), E = (e.follow_tags || e.tags || []).slice(0, 3), D = [- e.feedback === "dislike" && "dislike",- e.feedback === "seen" && "seen",- e.disposal === "trash" && "dispose",- e.watch_later && "later"- ].filter(Boolean), O = (t) => {- let n = t.target, r = l.current;- if (!r) return;- if (i || t.shiftKey || t.ctrlKey || t.metaKey) {- t.preventDefault(), s.toggleSelection(e.id, t.shiftKey);- return;+ }+ function ff(e, t, n, r, i, a, o) {+ var s = t.lanes | t.childLanes;+ if (jd = s, s |= xi, lt(e, n, s, r, i, a), Fd = null, (n & 335544064) === n ? (Id = Fa(e), r = 10262) : (Id = null, r = 10256), (t.subtreeFlags & r) !== 0 || (t.flags & r) !== 0 ? (e.callbackNode = null, e.callbackPriority = 0, Of(Ve, function() {+ return bf(), null;+ })) : (e.callbackNode = null, e.callbackPriority = 0), Hl = !1, r = !!(t.flags & 13878), t.subtreeFlags & 13878 || r) {+ r = L.T, L.T = null, i = de.p, de.p = 2, a = rd, rd |= 4;+ try {+ _u(e, t, n);+ } finally {+ rd = a, de.p = i, L.T = r;+ }+ }+ Dd = 1, Hl ? Pd = Hp(o, e.containerInfo, Id, hf, gf, mf, _f, bf, pf, null, null) : (hf(), gf(), _f());+ }+ function pf(e) {+ if (Dd !== 0) {+ var t = Od.onRecoverableError;+ t(e, { componentStack: null });}- if (n.closest("[data-open]")) {- c(e, r);- return;+ }+ function mf() {+ Dd === 3 && (Dd = 0, Lu(kd, Od), Dd = 4);+ }+ function hf() {+ if (Dd === 1) {+ Dd = 0;+ var e = Od, t = kd, n = Ad, r = !!(t.flags & 13878);+ if (t.subtreeFlags & 13878 || r) {+ r = L.T, L.T = null;+ var i = de.p;+ de.p = 2;+ var a = rd;+ rd |= 4;+ try {+ mu = hu = !1, Nu(t, e, n), n = yp;+ var o = Gr(e.containerInfo), s = n.focusedElem, c = n.selectionRange;+ if (o !== s && s && s.ownerDocument && Wr(s.ownerDocument.documentElement, s)) {+ if (c !== null && Kr(s)) {+ var l = c.start, u = c.end;+ if (u === void 0 && (u = l), "selectionStart" in s) s.selectionStart = l, s.selectionEnd = Math.min(u, s.value.length);+ else {+ var d = s.ownerDocument || document, f = d && d.defaultView || window;+ if (f.getSelection) {+ var p = f.getSelection(), m = s.textContent.length, h = Math.min(c.start, m), g = c.end === void 0 ? h : Math.min(c.end, m);+ !p.extend && h > g && (o = g, g = h, h = o);+ var _ = Ur(s, h), v = Ur(s, g);+ if (_ && v && (p.rangeCount !== 1 || p.anchorNode !== _.node || p.anchorOffset !== _.offset || p.focusNode !== v.node || p.focusOffset !== v.offset)) {+ var y = d.createRange();+ y.setStart(_.node, _.offset), p.removeAllRanges(), h > g ? (p.addRange(y), p.extend(v.node, v.offset)) : (y.setEnd(v.node, v.offset), p.addRange(y));+ }+ }+ }+ }+ for (d = [], p = s; p = p.parentNode;) p.nodeType === 1 && d.push({+ element: p,+ left: p.scrollLeft,+ top: p.scrollTop+ });+ for (typeof s.focus == "function" && s.focus(), s = 0; s < d.length; s++) {+ var b = d[s];+ b.element.scrollLeft = b.left, b.element.scrollTop = b.top;+ }+ }+ Th = !!vp, yp = vp = null;+ } finally {+ rd = a, de.p = i, L.T = r;+ }+ }+ e.current = t, Dd = 2;}- let a = n.closest("[data-entity-kind]");- if (a && r.contains(a)) {- s.openEntity(a.dataset.entityKind || "", a.dataset.entityName || "");- return;+ }+ function gf() {+ if (Dd === 2) {+ Dd = 0;+ var e = Od, t = kd, n = !!(t.flags & 8772);+ if (t.subtreeFlags & 8772 || n) {+ n = L.T, L.T = null;+ var r = de.p;+ de.p = 2;+ var i = rd;+ rd |= 4;+ try {+ yu(e, t.alternate, t);+ } finally {+ rd = i, de.p = r, L.T = n;+ }+ }+ Dd = 3;}- let o = n.closest("[data-open-unowned]");- if (o && r.contains(o)) {- s.openUnowned();- return;+ }+ function _f() {+ if (Dd === 4 || Dd === 3) {+ Dd = 0;+ var e = Pd;+ Pd = null, Ie();+ var t = Od, n = kd, r = Ad, i = Nd, a = (r & 335544064) === r ? 10262 : 10256;+ if ((n.subtreeFlags & a) !== 0 || (n.flags & a) !== 0 ? Dd = 5 : (Dd = 0, kd = Od = null, vf(t, t.pendingLanes)), a = t.pendingLanes, a === 0 && (Ed = null), mt(r), n = n.stateNode, qe && typeof qe.onCommitFiberRoot == "function") try {+ qe.onCommitFiberRoot(Ke, n, void 0, (n.current.flags & 128) == 128);+ } catch {}+ if (i !== null) {+ n = L.T, a = de.p, de.p = 2, L.T = null;+ try {+ for (var o = t.onRecoverableError, s = 0; s < i.length; s++) {+ var c = i[s];+ o(c.value, { componentStack: c.stack });+ }+ } finally {+ L.T = n, de.p = a;+ }+ }+ if (i = Fd, o = Id, Id = null, i !== null && (Fd = 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);+ Ad & 3 && yf(), Ff(t), a = t.pendingLanes, r & 261930 && a & 42 ? t === Rd ? Ld++ : (Ld = 0, Rd = t) : (Ld = 0, Rd = null), If(0, !1);}- let u = n.closest("[data-tag]");- if (u && r.contains(u)) {- s.toggleTag(u.dataset.tag || "");- return;+ }+ function vf(e, t) {+ (e.pooledCacheLanes &= t) === 0 && (t = e.pooledCache, t != null && (e.pooledCache = null, Ma(t)));+ }+ function yf() {+ return Pd !== null && (Pd.skipTransition(), Pd = null), hf(), gf(), _f(), bf();+ }+ function bf() {+ if (Dd !== 5) return !1;+ var e = Od, t = jd;+ jd = 0;+ var n = mt(Ad), r = L.T, a = de.p;+ try {+ de.p = 32 > n ? 32 : n, L.T = null, n = Md, Md = null;+ var o = Od, s = Ad;+ if (Dd = 0, kd = Od = null, Ad = 0, rd & 6) throw Error(i(331));+ var c = rd;+ if (rd |= 4, Qu(o.current), Wu(o, o.current, s, n), rd = c, If(0, !1), qe && typeof qe.onPostCommitFiberRoot == "function") try {+ qe.onPostCommitFiberRoot(Ke, o);+ } catch {}+ return !0;+ } finally {+ de.p = a, L.T = r, vf(e, t);}- c(e, r);- }, k = /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-pic": "",- style: { "--card-ratio": String(PA(e, t, n)) },- children: [- g.html ? /* @__PURE__ */ (0, V.jsx)(MA, {- artwork: g,- identity: _,- relayout: (e) => ne(e, h)- }) : /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-nopic": "",- children: "无预览"- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-badge": "",- dangerouslySetInnerHTML: { __html: o.badgeHtml(e.location || "", e.cost || "") }- }),- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-check": "",- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: "check" })- }),- /* @__PURE__ */ (0, V.jsxs)("span", {- "data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, V.jsx)(NA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]- }),- f ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-group": "",- children: `${f.count} 卷`- }) : null,- p ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-group": "",- title: p.editions.join(" · "),- children: `${p.count} 个版本`- }) : null,- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-duration": "",- children: fe(x)- }),- S > 0 ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-progress": "",- role: "progressbar",- "aria-label": "观看进度",- "aria-valuemin": 0,- "aria-valuemax": 100,- "aria-valuenow": Math.round(S * 100),- children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${(S * 100).toFixed(1)}%` } })- }) : e.leave_ratio == null ? null : /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-scrub": "",- children: /* @__PURE__ */ (0, V.jsx)("i", { style: { "--media-fill": `${Math.round(e.leave_ratio * 100)}%` } })- }),- /* @__PURE__ */ (0, V.jsx)(wle, {}),- /* @__PURE__ */ (0, V.jsx)(Tle, {- item: e,- actions: s- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-seek": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- onClick: (e) => {- e.stopPropagation(), FA(l.current, -a);- },- title: `后退 ${a} 秒`,- "aria-label": `后退 ${a} 秒`,- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: "rotate-ccw" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- onClick: (e) => {- e.stopPropagation(), FA(l.current, a);- },- title: `前进 ${a} 秒`,- "aria-label": `前进 ${a} 秒`,- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: "rotate-cw" })- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-open": "",- title: "打开详情",- "aria-label": "打开详情",- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: "expand" })- })- ]- })- ]- });- return /* @__PURE__ */ (0, V.jsxs)("article", {- ref: d,- "data-media-card": "",- "data-id": e.id,- "data-variant": t,- "data-part-seed": f ? f.seed_id : void 0,- "data-stacked": m ? "" : void 0,- "data-pending-delete": e.disposal === "trash" ? "" : void 0,- "data-selected": r ? "" : void 0,- onClick: O,- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-open": "",- "data-open": "",- "aria-label": `打开 ${y}${f ? "分卷" : p ? "版本" : "详情"}`- }),- m ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-stack": "",- children: k- }) : k,- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-meta": "",- children: [C, /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-text": "",- children: [- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-title": "",- "data-open": "",- dangerouslySetInnerHTML: { __html: o.titleHtml(e, v) }- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-byline": "",- children: [- w,- e.why ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-why": "",- children: e.why- }) : null,- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-size": "",- children: Number(b) > 0 ? pe(Number(b)) : "大小未知"- }),- e.play_count ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-watch-count": "",- children: `看过 ${e.play_count}`- }) : null,- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-flags": "",- children: D.map((e) => /* @__PURE__ */ (0, V.jsx)("i", { "data-flag": e }, e))- })- ]- }),- E.length ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-tags": "",- children: E.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-tag": "",- disabled: !!e.follow_item_id,- "data-tag": e.follow_item_id ? void 0 : t,- children: o.tagLabel(t)- }, t))- }) : null- ]- })]- })- ]- });-}-function Dle({ item: e, selected: t, selectMode: n, helpers: r, actions: i, onOpen: a }) {- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = e.medium === "image" && e.location !== "online", u = String(e.name || ""), d = u.toLowerCase().endsWith(".url") ? "网址快捷方式" : Sle[e.medium || ""] || "其它文件", f = l ? "pics" : d === "网址快捷方式" ? "globe" : "hard-drive", p = e.disposal === "trash" ? "restore" : "dispose", m = p === "restore" ? "还原" : "移入回收站", h = (t) => {- t.preventDefault(), t.stopPropagation(), !s && (c(!0), i.resourceOperation(e, p).catch(() => {}).finally(() => c(!1)));- }, g = (t) => {- if (o.current) {- if (n || t.shiftKey || t.ctrlKey || t.metaKey) {- t.preventDefault(), i.toggleSelection(e.id, t.shiftKey);- return;+ }+ function xf(e, t, n) {+ t = Bi(n, t), t = Ac(e.stateNode, t, 2), e = _o(e, t, 2), e !== null && (ct(e, 2), Ff(e));+ }+ function Sf(e, t, n) {+ if (e.tag === 3) xf(e, e, n);+ else for (; t !== null;) {+ if (t.tag === 3) {+ xf(t, e, n);+ break;}- a(e, o.current);+ if (t.tag === 1) {+ var r = t.stateNode;+ if (typeof t.type.getDerivedStateFromError == "function" || typeof r.componentDidCatch == "function" && (Ed === null || !Ed.has(r))) {+ e = Bi(n, e), n = jc(2), r = _o(t, n, 2), r !== null && (Mc(n, r, t, e), ct(r, 2), Ff(r));+ break;+ }+ }+ t = t.return;}- }, _ = p === "restore" ? "正在还原" : "正在处理";- return /* @__PURE__ */ (0, V.jsxs)("article", {- ref: o,- "data-media-card": "",- "data-id": e.id,- "data-variant": "resource",- "data-medium": e.medium || "other",- "data-pending-delete": e.disposal === "trash" ? "" : void 0,- "data-selected": t ? "" : void 0,- onClick: g,- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-pic": "",- style: { "--card-ratio": "1.7777777777777777" },- children: [- /* @__PURE__ */ (0, V.jsxs)("span", {- "data-media-glyph": "",- children: [/* @__PURE__ */ (0, V.jsx)(NA, { name: f }), /* @__PURE__ */ (0, V.jsx)("b", { children: d })]- }),- l ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-art": "thumb",- dangerouslySetInnerHTML: { __html: `<img class="poster" src="/photo-thumb?id=${e.id}" width="640" height="360" alt="" loading="lazy" data-drop="self">` }- }) : null,- /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-badge": "",- dangerouslySetInnerHTML: { __html: r.badgeHtml(e.location || "", e.cost || "") }- }),- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-check": "",- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: "check" })- }),- /* @__PURE__ */ (0, V.jsxs)("span", {- "data-media-trash-mark": "",- children: [/* @__PURE__ */ (0, V.jsx)(NA, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("b", { children: "回收站" })]- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-media-resource-action": p,- "aria-label": `${m} ${u}`,- title: m,- onClick: h,- "aria-busy": s || void 0,- "aria-disabled": s || void 0,- children: s ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: Ke(p === "restore" ? "正在还原" : "正在移入回收站") } }), /* @__PURE__ */ (0, V.jsx)("span", { children: _ })] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(NA, { name: p === "restore" ? "rotate-ccw" : "trash" }), /* @__PURE__ */ (0, V.jsx)("span", { children: m })] })- })- ]- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-meta": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-media-avatar": "",- "data-media-kind-glyph": "",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)(NA, { name: f })- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-text": "",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-media-title": "",- "data-middle-truncate": "",- title: u,- dangerouslySetInnerHTML: { __html: L(u || "未命名资源") }- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "data-media-byline": "",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-who": "",- children: d- }),- e.why ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-why": "",- children: e.why- }) : null,- /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-size": "",- children: Number(e.size) > 0 ? pe(Number(e.size)) : "大小未知"- })- ]- })]- })]- })]- });-}-function Ole(e) {- return e.variant === "resource" ? /* @__PURE__ */ (0, V.jsx)(Dle, { ...e }) : /* @__PURE__ */ (0, V.jsx)(Ele, { ...e });-}-var IA = (0, B.memo)(Ole), kle = 1100, Ale = 340, jle = 5e3;-function Mle(e, t, n) {- return new Promise((r) => {- let i = new Image();- n && (i.referrerPolicy = n);- let a = !1, o = (e) => {- a || (a = !0, clearTimeout(c), i.onload = null, i.onerror = null, t.cancels.delete(s), r(e));- }, s = () => o(!1), c = setTimeout(s, jle);- t.cancels.add(s), i.onerror = s, i.onload = () => {- if (!i.naturalWidth) {- o(!1);- return;+ }+ function Cf(e, t, n) {+ var r = e.pingCache;+ if (r === null) {+ r = e.pingCache = new nd();+ 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) || (dd = !0, i.add(n), e = wf.bind(null, e, t, n), t.then(e, e));+ }+ function wf(e, t, n) {+ var r = e.pingCache;+ r !== null && r.delete(t), e.pingedLanes |= e.suspendedLanes & n, e.warmLanes &= ~n, id === e && (od & n) === n && (pd === 4 || pd === 3 && (od & 62914560) === od && 300 > Le() - Sd ? rd & 2 ? gd |= n : Yd(e, 0) : gd |= n, vd === od && (vd = 0)), Ff(e);+ }+ function Tf(e, t) {+ t === 0 && (t = ot()), e = Ti(e, t), e !== null && (ct(e, t), Ff(e));+ }+ function Ef(e) {+ var t = e.memoizedState, n = 0;+ t !== null && (n = t.retryLane), Tf(e, n);+ }+ function Df(e, t) {+ var n = 0;+ switch (e.tag) {+ case 31:+ case 13:+ var r = e.stateNode, a = e.memoizedState;+ a !== null && (n = a.retryLane);+ break;+ case 19:+ r = e.stateNode;+ break;+ case 22:+ r = e.stateNode._retryCache;+ break;+ default: throw Error(i(314));+ }+ r !== null && r.delete(t), Tf(e, n);+ }+ function Of(e, t) {+ return Ne(e, t);+ }+ var kf = null, Af = null, jf = !1, Mf = !1, Nf = !1, Pf = 0;+ function Ff(e) {+ e !== Af && e.next === null && (Af === null ? kf = Af = e : Af = Af.next = e), Mf = !0, jf || (jf = !0, Hf());+ }+ function If(e, t) {+ if (!Nf && Mf) {+ Nf = !0;+ do+ for (var n = !1, r = kf; r !== null;) {+ if (!t) {+ if (e !== 0) {+ var i = r.pendingLanes;+ if (i === 0) var a = 0;+ else {+ var o = r.suspendedLanes, s = r.pingedLanes;+ a = (1 << 31 - Ye(42 | e) + 1) - 1, a &= i & ~(o & ~s), a = a & 201326741 ? a & 201326741 | 1 : a ? a | 2 : 0;+ }+ a !== 0 && (n = !0, Vf(r, a));+ } else a = od, a = rt(r, r === id ? a : 0, r.cancelPendingCommit !== null || r.timeoutHandle !== -1), !(a & 3) || z(r, a) || (n = !0, Vf(r, a));+ }+ r = r.next;+ }+ while (n);+ Nf = !1;+ }+ }+ function Lf() {+ Rf();+ }+ function Rf() {+ Mf = jf = !1;+ var e = 0;+ Pf !== 0 && Ep() && (e = Pf);+ for (var t = Le(), n = null, r = kf; r !== null;) {+ var i = r.next, a = zf(r, t);+ a === 0 ? (r.next = null, n === null ? kf = i : n.next = i, i === null && (Af = n)) : (n = r, (e !== 0 || a & 3) && (Mf = !0)), r = i;+ }+ Dd !== 0 && Dd !== 5 || If(e, !1), Pf !== 0 && (Pf = 0);+ }+ function zf(e, t) {+ for (var n = e.suspendedLanes, r = e.pingedLanes, i = e.expirationTimes, a = e.pendingLanes & -62914561; 0 < a;) {+ var o = 31 - Ye(a), s = 1 << o, c = i[o];+ c === -1 ? ((s & n) === 0 || (s & r) !== 0) && (i[o] = at(s, t)) : c <= t && (e.expiredLanes |= s), a &= ~s;+ }+ if (t = id, n = od, n = rt(e, e === t ? n : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r = e.callbackNode, n === 0 || e === t && (sd === 2 || sd === 9) || e.cancelPendingCommit !== null) return r !== null && r !== null && Pe(r), e.callbackNode = null, e.callbackPriority = 0;+ if (!(n & 3) || z(e, n)) {+ if (t = n & -n, t === e.callbackPriority) return t;+ switch (r !== null && Pe(r), mt(n)) {+ case 2:+ case 8:+ n = Be;+ break;+ case 32:+ n = Ve;+ break;+ case 268435456:+ n = Ue;+ break;+ default: n = Ve;+ }+ return r = Bf.bind(null, e), n = Ne(n, r), e.callbackPriority = t, e.callbackNode = n, t;+ }+ return r !== null && r !== null && Pe(r), e.callbackPriority = 2, e.callbackNode = null, 2;+ }+ function Bf(e, t) {+ if (Dd !== 0 && Dd !== 5) return e.callbackNode = null, e.callbackPriority = 0, null;+ var n = e.callbackNode;+ if (yf() && e.callbackNode !== n) return null;+ var r = od;+ return r = rt(e, e === id ? r : 0, e.cancelPendingCommit !== null || e.timeoutHandle !== -1), r === 0 ? null : (Ud(e, r, t), zf(e, Le()), e.callbackNode != null && e.callbackNode === n ? Bf.bind(null, e) : null);+ }+ function Vf(e, t) {+ if (yf()) return null;+ Ud(e, t, !0);+ }+ function Hf() {+ Ap(function() {+ rd & 6 ? Ne(ze, Lf) : Rf();+ });+ }+ function Uf() {+ if (Pf === 0) {+ var e = Ra;+ e === 0 && (e = $e, $e <<= 1, !($e & 261888) && ($e = 256)), Pf = e;+ }+ return Pf;+ }+ function Wf(e) {+ return e == null || typeof e == "symbol" || typeof e == "boolean" ? null : typeof e == "function" ? e : hn(e);+ }+ function Gf(e, t, n, r, i) {+ if (t === "submit" && n && n.stateNode === i) {+ var a = Wf((i[yt] || null).action), o = r.submitter;+ o && (t = (t = o[yt] || null) ? Wf(t.formAction) : o.getAttribute("formAction"), t !== null && (a = t, o = null));+ var s = new Ln("action", "action", null, r, i);+ e.push({+ event: s,+ listeners: [{+ instance: null,+ listener: function() {+ if (r.defaultPrevented) {+ if (Pf !== 0) {+ var e = new FormData(i, o);+ nc(n, {+ pending: !0,+ data: e,+ method: i.method,+ action: a+ }, null, e);+ }+ } else typeof a == "function" && (s.preventDefault(), e = new FormData(i, o), nc(n, {+ pending: !0,+ data: e,+ method: i.method,+ action: a+ }, a, e));+ },+ currentTarget: i+ }]+ });+ }+ }+ for (var Kf = 0; Kf < fi.length; Kf++) {+ var qf = fi[Kf];+ pi(qf.toLowerCase(), "on" + (qf[0].toUpperCase() + qf.slice(1)));+ }+ pi(ii, "onAnimationEnd"), pi(ai, "onAnimationIteration"), pi(oi, "onAnimationStart"), pi("dblclick", "onDoubleClick"), pi("focusin", "onFocus"), pi("focusout", "onBlur"), pi(si, "onTransitionRun"), pi(ci, "onTransitionStart"), pi(li, "onTransitionCancel"), pi(ui, "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",+ "keypress",+ "textInput",+ "paste"+ ]), Lt("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")), Lt("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));+ var Jf = "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(" "), Yf = new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jf));+ function Xf(e, t) {+ t = !!(t & 4);+ for (var n = 0; n < e.length; n++) {+ var r = e[n], i = r.event;+ r = r.listeners;+ a: {+ var a = void 0;+ if (t) for (var o = r.length - 1; 0 <= o; o--) {+ var s = r[o], c = s.instance, l = s.currentTarget;+ if (s = s.listener, c !== a && i.isPropagationStopped()) break a;+ a = s, i.currentTarget = l;+ try {+ a(i);+ } catch (e) {+ vi(e);+ }+ i.currentTarget = null, a = c;+ }+ else for (o = 0; o < r.length; o++) {+ if (s = r[o], c = s.instance, l = s.currentTarget, s = s.listener, c !== a && i.isPropagationStopped()) break a;+ a = s, i.currentTarget = l;+ try {+ a(i);+ } catch (e) {+ vi(e);+ }+ i.currentTarget = null, a = c;+ }}- typeof i.decode == "function" ? i.decode().then(() => o(!0), s) : o(!0);- }, i.src = e;- });-}-function LA({ load: e, canFlip: t, referrerPolicy: n }) {- let [r, i] = (0, B.useState)([]), [a, o] = (0, B.useState)(0), [s, c] = (0, B.useState)(null), l = (0, B.useRef)({- live: !1,- generation: 0,- timers: /* @__PURE__ */ new Set(),- cycle: null,- cancels: /* @__PURE__ */ new Set(),- armed: null,- count: 0,- at: 0- }), u = (0, B.useRef)({- load: e,- canFlip: t- });- u.current = {- load: e,- canFlip: t- };- let d = (0, B.useCallback)(() => {- let e = l.current;- e.live = !1, e.generation += 1, e.timers.forEach(clearTimeout), e.timers.clear(), e.armed = null, e.cycle !== null && clearInterval(e.cycle), e.cycle = null, e.cancels.forEach((e) => e()), e.count = 0, e.at = 0;- }, []), f = (e, t) => {- let n = setTimeout(() => {- l.current.timers.delete(n), t();- }, e);- return l.current.timers.add(n), n;- }, p = () => {- let e = l.current;- if (!e.live || e.count < 2) return;- let t = e.at;- e.at = (t + 1) % e.count, c(t), o(e.at), f(980, () => c((e) => e === t ? null : e));- }, m = async () => {- let e = l.current;- if (e.live || !u.current.canFlip()) return;- e.live = !0;- let t = ++e.generation, r = () => e.live && t === e.generation, a = [];- try {- a = (await u.current.load()).slice(0, 9);- } catch {- return;}- if (!r() || !u.current.canFlip() || a.length < 2) return;- let s = await Promise.all(a.map((t) => Mle(t, e, n)));- if (!r() || !u.current.canFlip()) return;- let d = a.filter((e, t) => s[t]);- d.length < 2 || (e.count = d.length, e.at = 0, i(d), o(0), c(null), f(420, () => {- p(), e.cycle = setInterval(p, kle);- }));- };- return (0, B.useEffect)(() => d, [d]), {- faces: r,- current: a,- leaving: s,- onPointerEnter: () => {- let e = l.current;- e.armed !== null && (clearTimeout(e.armed), e.timers.delete(e.armed)), e.armed = f(Ale, () => {- e.armed = null, m();+ }+ function Zf(e, t) {+ var n = t[xt];+ n === void 0 && (n = t[xt] = /* @__PURE__ */ new Set());+ var r = e + "__bubble";+ n.has(r) || (tp(t, e, 2, !1), n.add(r));+ }+ function Qf(e, t, n) {+ var r = 0;+ t && (r |= 4), tp(n, e, r, t);+ }+ var $f = "_reactListening" + Math.random().toString(36).slice(2);+ function ep(e) {+ if (!e[$f]) {+ e[$f] = !0, Ft.forEach(function(t) {+ t !== "selectionchange" && (Yf.has(t) || Qf(t, !1, e), Qf(t, !0, e));});- },- onPointerLeave: () => {- d(), i([]), o(0), c(null);+ var t = e.nodeType === 9 ? e : e.ownerDocument;+ t === null || t[$f] || (t[$f] = !0, Qf("selectionchange", !1, t));}- };-}-//#endregion-//#region src/react/components/mix-card.tsx-var RA = xA("play");-function Nle({ src: e }) {- let [t, n] = (0, B.useState)(!1);- return t ? null : /* @__PURE__ */ (0, V.jsx)("img", {- "data-mix-poster": "",- src: e,- width: 640,- height: 360,- alt: "",- loading: "lazy",- onError: () => n(!0),- className: "absolute inset-0 block size-full object-contain"- });-}-var zA = "relative inline-grid size-9.5 flex-none place-items-center overflow-hidden rounded-full bg-background-secondary-default text-body-2-regular text-text-secondary [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:object-cover";-function Ple({ faces: e, fallback: t, onOpenEntity: n }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-mix-avatars": "",- children: e.slice(0, 5).map((e) => /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- title: `打开资料页:${e.name}`,- "aria-label": `打开资料页:${e.name}`,- onClick: () => n(e.kind, e.name),- className: `${zA} cursor-pointer outline-none`,- dangerouslySetInnerHTML: { __html: w(e.name, e, ae(e.name), e.kind) }- }, `${e.kind}:${e.id}`))- }) : /* @__PURE__ */ (0, V.jsx)("span", {- "data-mix-initial": "",- "aria-hidden": !0,- className: `${zA} mt-0.5`,- children: t- });-}-function BA({ name: e, caption: t, count: n, poster: r, flipImages: i, canFlip: a, faces: o, onOpenEntity: s, onOpen: c, openLabel: l, menu: u, ratio: d, artwork: f, artworkIdentity: p, relayoutArt: m, faceHtml: h, badge: g, glyph: _, wholeCard: v, ...y }) {- let b = LA({- load: i,- canFlip: a- }), x = (0, B.useRef)(b.onPointerLeave);- x.current = b.onPointerLeave;- let S = (0, B.useRef)(null), C = (0, B.useCallback)((e) => {- S.current = e, e && (e._stopHover = () => x.current());- }, []), w = c ? () => {- S.current && c(S.current);- } : void 0, T = f !== void 0 || d !== void 0;- return /* @__PURE__ */ (0, V.jsxs)("article", {- ...y,- ref: C,- "data-mix-card": "",- onMouseEnter: b.onPointerEnter,- onMouseLeave: b.onPointerLeave,- onClick: v ? w : void 0,- className: "relative flex min-w-0 cursor-pointer flex-col gap-2",- children: [/* @__PURE__ */ (0, V.jsx)("div", {- "data-mix-stack": "",- className: "relative isolate rounded-surface",- children: /* @__PURE__ */ (0, V.jsxs)("div", {- "data-mix-cover": "",- "data-media-pic": T ? "" : void 0,- style: d === void 0 ? void 0 : { "--card-ratio": String(d) },- className: "relative z-1 flex aspect-video items-center justify-center overflow-hidden",- children: [- f?.html ? /* @__PURE__ */ (0, V.jsx)(MA, {- artwork: f,- identity: p,- relayout: m- }) : r ? /* @__PURE__ */ (0, V.jsx)(Nle, { src: r }, r) : /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular tracking-caps text-text-secondary uppercase",- children: "无预览"- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "data-mix-faces": "",- hidden: !b.faces.length,- children: b.faces.map((e, t) => /* @__PURE__ */ (0, V.jsx)("div", {- "data-mix-face": t === b.current ? "on" : t === b.leaving ? "off" : "",- children: h ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-media-art": "",- dangerouslySetInnerHTML: { __html: h(e) }- }) : /* @__PURE__ */ (0, V.jsx)("img", {- src: e,- alt: "",- loading: "eager"- })- }, e))- }),- /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- "data-mix-open": "",- "aria-label": l,- disabled: !c,- onClick: v ? void 0 : w,- className: "absolute inset-0 z-1 cursor-pointer rounded-surface outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-border-focus-ring disabled:cursor-default"- }),- /* @__PURE__ */ (0, V.jsxs)("span", {- "data-mix-badge": "",- className: "absolute right-2.25 bottom-2.25 z-6 flex min-h-7 items-center gap-1.5 rounded-2lg px-2.25 py-1 text-caption-1-semibold text-text-white",- children: [/* @__PURE__ */ (0, V.jsx)(RA, {- "aria-hidden": !0,- className: "size-3.75"- }), g ?? `${n} 个视频`]- })- ]- })- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 items-start gap-2.25",- children: [- _ ? /* @__PURE__ */ (0, V.jsx)("span", {- "data-mix-glyph": "",- "aria-hidden": !0,- children: /* @__PURE__ */ (0, V.jsx)(RA, {})- }) : /* @__PURE__ */ (0, V.jsx)(Ple, {- faces: o,- fallback: e.slice(0, 1),- onOpenEntity: s- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 flex-1 flex-col",- children: [/* @__PURE__ */ (0, V.jsx)("b", {- "data-mix-title": "",- className: "truncate text-body-bold text-text-primary",- children: e- }), /* @__PURE__ */ (0, V.jsx)("span", {- "data-mix-caption": "",- className: "mt-0.5 truncate text-caption-1-regular text-text-secondary",- children: t- })]- }),- u- ]- })]- });-}-//#endregion-//#region src/react/catalog-grid/catalog-grid-page.tsx-function VA(e) {- if (e.mode === "items") return /* @__PURE__ */ (0, V.jsx)(Ile, { ...e });- let t = e.mode === "entity" ? `entity:${e.entityKey || ""}:${e.revision}` : `catalog:${MC(e.filters || {}, !!e.excludeVertical)}:${e.batchSize || 60}:${e.revision}`;- return /* @__PURE__ */ (0, V.jsx)(Lle, { ...e }, t);-}-function Fle({ name: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 24 24",- "aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })- });-}-function Ile(e) {- let { actions: t } = e, n = (0, B.useCallback)((e, n) => t.open(e, n), [t]), r = e.variant === "next" ? "next" : "grid", i = (e.items || []).map((i) => /* @__PURE__ */ (0, V.jsx)(IA, {- item: i,- variant: r,- layout: e.layout,- selected: e.selected.has(i.id),- selectMode: e.selectMode,- seekSeconds: e.seekSeconds,- helpers: e.helpers,- actions: t,- onOpen: n- }, i.id));- return r === "next" ? /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-next-row": "",- children: i- }) : /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-grid": "",- "data-select-mode": e.selectMode ? "" : void 0,- children: i- });-}-function Lle(e) {- let { helpers: t, actions: n, layout: r } = e, i = e.mode === "entity", a = !i && e.filters?.state === "trash", o = i ? Mre(e) : NC(e), s = i && e.initial ? {- pages: [{- ...e.initial,- items: e.initial.items || [],- offset: 0- }],- pageParams: [0]- } : void 0, c = AS({- queryKey: o.queryKey,- queryFn: ({ pageParam: e, signal: t }) => o.queryFn({- pageParam: e,- signal: t- }),- initialPageParam: 0,- getNextPageParam: o.getNextPageParam,- initialData: s- }), l = (0, B.useRef)(!1);- (0, B.useEffect)(() => {- c.isPending || l.current || (l.current = !0, e.settled?.(e.revision));- }, [c.isPending]);- let { tiles: u, pageStarts: d } = (0, B.useMemo)(() => Ire(c.data?.pages || [], {- collapse: e.groupCollapse !== !1,- mix: !!e.mix && !a,- javImage: r.javImage- }), [- c.data,- e.groupCollapse,- e.mix,- a,- r.javImage- ]), f = u.reduce((e, t) => e + +(t.kind === "card"), 0), p = Number(c.data?.pages[0]?.total || 0), m = AA(c.isPending, e.skeletonHtml), h = (0, B.useRef)(null), g = Rle(e, c.data, u, d, h);- (0, B.useLayoutEffect)(() => {- if (!c.data) return;- let t = !0;- return queueMicrotask(() => {- t && e.onCount?.(p, f);- }), () => {- t = !1;+ }+ function tp(e, t, n, r) {+ switch (Mh(t)) {+ case 2:+ var i = Eh;+ break;+ case 8:+ i = Dh;+ break;+ default: i = Oh;+ }+ n = i.bind(null, t, n, e), i = void 0, !En || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (i = !0), r ? i === void 0 ? e.addEventListener(t, n, !0) : e.addEventListener(t, n, {+ capture: !0,+ passive: i+ }) : i === void 0 ? e.addEventListener(t, n, !1) : e.addEventListener(t, n, { passive: i });+ }+ function np(e, t, n, r, i) {+ var a = r;+ if (!(t & 1) && !(t & 2) && r !== null) a: for (;;) {+ if (r === null) return;+ var s = r.tag;+ if (s === 3 || s === 4) {+ var c = r.stateNode.containerInfo;+ if (c === i) break;+ if (s === 4) for (s = r.return; s !== null;) {+ var l = s.tag;+ if ((l === 3 || l === 4) && s.stateNode.containerInfo === i) return;+ s = s.return;+ }+ for (; c !== null;) {+ if (s = kt(c), s === null) return;+ if (l = s.tag, l === 5 || l === 6 || l === 26 || l === 27) {+ r = a = s;+ continue a;+ }+ c = c.parentNode;+ }+ }+ r = r.return;+ }+ Cn(function() {+ var r = a, i = vn(n), s = [];+ a: {+ var c = di.get(e);+ if (c !== void 0) {+ var l = Ln, u = e;+ switch (e) {+ case "keypress": if (Mn(n) === 0) break a;+ case "keydown":+ case "keyup":+ l = tr;+ break;+ case "focusin":+ u = "focus", l = Kn;+ break;+ case "focusout":+ u = "blur", l = Kn;+ break;+ case "beforeblur":+ case "afterblur":+ l = Kn;+ break;+ case "click": if (n.button === 2) break a;+ case "auxclick":+ case "dblclick":+ case "mousedown":+ case "mousemove":+ case "mouseup":+ case "mouseout":+ case "mouseover":+ case "contextmenu":+ l = Wn;+ break;+ case "drag":+ case "dragend":+ case "dragenter":+ case "dragexit":+ case "dragleave":+ case "dragover":+ case "dragstart":+ case "drop":+ l = Gn;+ break;+ case "touchcancel":+ case "touchend":+ case "touchmove":+ case "touchstart":+ l = ir;+ break;+ case ii:+ case ai:+ case oi:+ l = qn;+ break;+ case ui:+ l = ar;+ break;+ case "scroll":+ case "scrollend":+ l = zn;+ break;+ case "wheel":+ l = or;+ break;+ case "copy":+ case "cut":+ case "paste":+ l = Jn;+ break;+ case "gotpointercapture":+ case "lostpointercapture":+ case "pointercancel":+ case "pointerdown":+ case "pointermove":+ case "pointerout":+ case "pointerover":+ case "pointerup":+ l = nr;+ break;+ case "submit":+ l = rr;+ break;+ case "toggle":+ case "beforetoggle": l = sr;+ }+ var d = !!(t & 4), f = !d && (e === "scroll" || e === "scrollend"), p = d ? c === null ? null : c + "Capture" : c;+ 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 = wn(m, p), g != null && d.push(rp(m, g, h))), f) break;+ m = m.return;+ }+ 0 < d.length && (c = new l(c, u, null, n, i), s.push({+ event: c,+ listeners: d+ }));+ }+ }+ if (!(t & 7)) {+ a: {+ if (l = e === "mouseover" || e === "pointerover", c = e === "mouseout" || e === "pointerout", l && n !== _n && (u = n.relatedTarget || n.fromElement) && (kt(u) || u[bt])) break a;+ (c || l) && (u = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window, c ? (l = n.relatedTarget || n.toElement, c = r, l = l ? kt(l) : null, l !== null && (f = o(l), d = l.tag, l !== f || d !== 5 && d !== 27 && d !== 6) && (l = null)) : (c = null, l = r), c !== l && (d = Wn, g = "onMouseLeave", p = "onMouseEnter", m = "mouse", (e === "pointerout" || e === "pointerover") && (d = nr, g = "onPointerLeave", p = "onPointerEnter", m = "pointer"), f = c == null ? u : Mt(c), h = l == null ? u : Mt(l), u = new d(g, m + "leave", c, n, i), u.target = f, u.relatedTarget = h, g = null, kt(i) === r && (d = new d(p, m + "enter", l, n, i), d.target = h, d.relatedTarget = f, g = d), f = g, d = c && l ? C(c, l, ap) : null, c !== null && op(s, u, c, d, !1), l !== null && f !== null && op(s, f, l, d, !0)));+ }+ a: {+ if (c = r ? Mt(r) : window, l = c.nodeName && c.nodeName.toLowerCase(), l === "select" || l === "input" && c.type === "file") var _ = Dr;+ else if (xr(c)) {+ if (Or) _ = Lr;+ else {+ _ = Fr;+ var v = Pr;+ }+ } else l = c.nodeName, !l || l.toLowerCase() !== "input" || c.type !== "checkbox" && c.type !== "radio" ? r && fn(r.elementType) && (_ = Dr) : _ = Ir;+ if (_ &&= _(e, r)) {+ Sr(s, _, n, i);+ break a;+ }+ v && v(e, c, r);+ }+ switch (v = r ? Mt(r) : window, e) {+ case "focusin":+ (xr(v) || v.contentEditable === "true") && (Jr = v, Yr = r, Xr = null);+ break;+ case "focusout":+ Xr = Yr = Jr = null;+ break;+ case "mousedown":+ Zr = !0;+ break;+ case "contextmenu":+ case "mouseup":+ case "dragend":+ Zr = !1, Qr(s, n, i);+ break;+ case "selectionchange": if (qr) break;+ case "keydown":+ case "keyup": Qr(s, n, i);+ }+ var y;+ if (lr) b: {+ switch (e) {+ case "compositionstart":+ var b = "onCompositionStart";+ break b;+ case "compositionend":+ b = "onCompositionEnd";+ break b;+ case "compositionupdate":+ b = "onCompositionUpdate";+ break b;+ }+ b = void 0;+ }+ else _r ? hr(e, n) && (b = "onCompositionEnd") : e === "keydown" && n.keyCode === 229 && (b = "onCompositionStart");+ b && (fr && n.locale !== "ko" && (_r || b !== "onCompositionStart" ? b === "onCompositionEnd" && _r && (y = jn()) : (On = i, kn = "value" in On ? On.value : On.textContent, _r = !0)), v = ip(r, b), 0 < v.length && (b = new Yn(b, e, null, n, i), s.push({+ event: b,+ listeners: v+ }), y ? b.data = y : (y = gr(n), y !== null && (b.data = y)))), (y = dr ? vr(e, n) : yr(e, n)) && (b = ip(r, "onBeforeInput"), 0 < b.length && (v = new Yn("onBeforeInput", "beforeinput", null, n, i), s.push({+ event: v,+ listeners: b+ }), v.data = y)), Gf(s, e, r, n, i);+ }+ Xf(s, t);+ });+ }+ function rp(e, t, n) {+ return {+ instance: e,+ listener: t,+ currentTarget: n};- }, [- c.data,- p,- f- ]);- let _ = (0, B.useCallback)((e, t) => n.open(e, t), [n]), v = (0, B.useCallback)((e, t) => n.openResource(e, t), [n]), y = (0, B.useCallback)((e) => n.openShort(e), [n]), b = (0, B.useCallback)(async () => {- let e = await c.fetchNextPage({ cancelRefetch: !1 });- if (e.isFetchNextPageError) throw e.error;- }, [c.fetchNextPage]), x = (i) => i.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)(Ble, {- seed: i.seed,- layout: r,- helpers: t,- actions: n- }, `mix:${i.seed.id}`) : /* @__PURE__ */ (0, V.jsx)(IA, {- item: i.item,- variant: a && i.item.medium && i.item.medium !== "video" ? "resource" : "grid",- layout: r,- selected: e.selected.has(i.item.id),- selectMode: e.selectMode,- seekSeconds: e.seekSeconds,- helpers: t,- actions: n,- onOpen: a ? v : _- }, i.item.id);- return /* @__PURE__ */ (0, V.jsxs)("div", {- ref: h,- "data-media-body": "",- "data-grid-reveal": m.fading ? "" : void 0,- children: [m.layer, (() => {- if (c.isPending) return null;- if (!c.data) return /* @__PURE__ */ (0, V.jsx)(jA, {- message: ye(c.error),- onRetry: () => void c.refetch()- });- if (!u.length) {- let t = e.emptyHtml?.({- trash: a,- libraryEmpty: !!c.data.pages[0]?.libraryEmpty- }) || "";- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-media-empty": "",- dangerouslySetInnerHTML: { __html: t }- });+ }+ function ip(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 = wn(e, n), i != null && r.unshift(rp(e, i, a)), i = wn(e, t), i != null && r.push(rp(e, i, a))), e.tag === 3) return r;+ e = e.return;+ }+ return [];+ }+ function ap(e) {+ if (e === null) return null;+ do+ e = e.return;+ while (e && e.tag !== 5 && e.tag !== 27);+ return e || null;+ }+ function op(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 = wn(n, a), l != null && o.unshift(rp(n, l, c))) : i || (l = wn(n, a), l != null && o.push(rp(n, l, c)))), n = n.return;+ }+ o.length !== 0 && e.push({+ event: t,+ listeners: o+ });+ }+ var sp = /\r\n?/g, cp = /\u0000|\uFFFD/g;+ function lp(e) {+ return (typeof e == "string" ? e : "" + e).replace(sp, "\n").replace(cp, "");+ }+ function up(e, t) {+ return t = lp(t), lp(e) === t;+ }+ function dp(e, t, n, r, a, o) {+ switch (n) {+ case "children":+ if (typeof r == "string") t === "body" || t === "textarea" && r === "" || cn(e, r);+ else if (typeof r == "number" || typeof r == "bigint") t !== "body" && cn(e, "" + r);+ else return;+ break;+ case "className":+ Kt(e, "class", r);+ break;+ case "tabIndex":+ Kt(e, "tabindex", r);+ break;+ case "dir":+ case "role":+ case "viewBox":+ case "width":+ case "height":+ Kt(e, n, r);+ break;+ case "style":+ dn(e, r, o);+ return;+ case "data": if (t !== "object") {+ Kt(e, "data", r);+ break;}- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {- "data-media-sections": "",- "data-select-mode": e.selectMode ? "" : void 0,- children: zre(u, g).map((t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {- "data-media-grid": "",- children: t.tiles.map(x)- }), t.strip ? /* @__PURE__ */ (0, V.jsx)(zle, {- cut: t.strip,- props: e,- onOpen: y- }) : null] }, t.start))- }), c.hasNextPage ? /* @__PURE__ */ (0, V.jsx)(HA, {- entity: i,- load: b,- enabled: () => e.canLoadMore?.() !== !1- }, c.data.pages.length) : null] });- })()]- });-}-function HA({ entity: e, load: t, enabled: n, children: r }) {- let i = (0, B.useRef)(null), a = (0, B.useRef)(!1), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)({- busy: !1,- error: ""- }), l = (0, B.useRef)({- load: t,- enabled: n- });- l.current = {- load: t,- enabled: n- };- let u = (0, B.useCallback)(async (e) => {- let t = i.current;- if (!(a.current || !t?.isConnected || !e && o.current || !l.current.enabled())) {- a.current = !0, o.current = !1, c({- busy: !0,- error: ""- });- try {- await l.current.load(), i.current && c({- busy: !1,- error: ""- });- } catch (e) {- o.current = !0, i.current && c({- busy: !1,- error: ye(e)- });- } finally {- a.current = !1;+ case "src":+ case "href":+ if (r === "" && (t !== "a" || n !== "href")) {+ e.removeAttribute(n);+ break;+ }+ if (r == null || typeof r == "function" || typeof r == "symbol" || typeof r == "boolean") {+ e.removeAttribute(n);+ break;+ }+ r = hn(r), e.setAttribute(n, r);+ break;+ case "action":+ case "formAction":+ if (typeof r == "function") {+ 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" && dp(e, t, "name", a.name, a, null), dp(e, t, "formEncType", a.formEncType, a, null), dp(e, t, "formMethod", a.formMethod, a, null), dp(e, t, "formTarget", a.formTarget, a, null)) : (dp(e, t, "encType", a.encType, a, null), dp(e, t, "method", a.method, a, null), dp(e, t, "target", a.target, a, null))), r == null || typeof r == "symbol" || typeof r == "boolean") {+ e.removeAttribute(n);+ break;+ }+ r = hn(r), e.setAttribute(n, r);+ break;+ case "onClick":+ r != null && (e.onclick = gn);+ return;+ case "onScroll":+ r != null && Zf("scroll", e);+ return;+ case "onScrollEnd":+ r != null && Zf("scrollend", e);+ return;+ case "dangerouslySetInnerHTML":+ if (r != null) {+ if (typeof r != "object" || !("__html" in r)) throw Error(i(61));+ if (n = r.__html, n != null) {+ if (a.children != null) throw Error(i(60));+ o?.__html !== n && (e.innerHTML = n);+ }+ }+ break;+ case "multiple":+ e.multiple = r && typeof r != "function" && typeof r != "symbol";+ break;+ case "muted":+ e.muted = r && typeof r != "function" && typeof r != "symbol";+ break;+ case "suppressContentEditableWarning":+ case "suppressHydrationWarning":+ case "defaultValue":+ case "defaultChecked":+ case "innerHTML":+ case "ref": break;+ case "autoFocus": break;+ case "xlinkHref":+ if (r == null || typeof r == "function" || typeof r == "boolean" || typeof r == "symbol") {+ e.removeAttribute("xlink:href");+ break;+ }+ n = hn(r), e.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", n);+ break;+ case "contentEditable":+ case "spellCheck":+ case "draggable":+ case "value":+ case "autoReverse":+ case "externalResourcesRequired":+ case "focusable":+ case "preserveAlpha":+ r != null && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, r) : e.removeAttribute(n);+ break;+ case "inert":+ case "allowFullScreen":+ case "async":+ case "autoPlay":+ case "controls":+ case "credentialless":+ case "default":+ case "defer":+ case "disabled":+ case "disablePictureInPicture":+ case "disableRemotePlayback":+ case "formNoValidate":+ case "hidden":+ case "loop":+ case "noModule":+ case "noValidate":+ case "open":+ case "playsInline":+ case "readOnly":+ case "required":+ case "reversed":+ case "scoped":+ case "seamless":+ case "itemScope":+ r && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, "") : e.removeAttribute(n);+ break;+ case "capture":+ case "download":+ !0 === r ? e.setAttribute(n, "") : !1 !== r && r != null && typeof r != "function" && typeof r != "symbol" ? e.setAttribute(n, r) : e.removeAttribute(n);+ break;+ case "cols":+ case "rows":+ case "size":+ case "span":+ r != null && typeof r != "function" && typeof r != "symbol" && !isNaN(r) && 1 <= r ? e.setAttribute(n, r) : e.removeAttribute(n);+ break;+ case "rowSpan":+ case "start":+ r == null || typeof r == "function" || typeof r == "symbol" || isNaN(r) ? e.removeAttribute(n) : e.setAttribute(n, r);+ break;+ case "popover":+ Zf("beforetoggle", e), Zf("toggle", e), Gt(e, "popover", r);+ break;+ case "xlinkActuate":+ qt(e, "http://www.w3.org/1999/xlink", "xlink:actuate", r);+ break;+ case "xlinkArcrole":+ qt(e, "http://www.w3.org/1999/xlink", "xlink:arcrole", r);+ break;+ case "xlinkRole":+ qt(e, "http://www.w3.org/1999/xlink", "xlink:role", r);+ break;+ case "xlinkShow":+ qt(e, "http://www.w3.org/1999/xlink", "xlink:show", r);+ break;+ case "xlinkTitle":+ qt(e, "http://www.w3.org/1999/xlink", "xlink:title", r);+ break;+ case "xlinkType":+ qt(e, "http://www.w3.org/1999/xlink", "xlink:type", r);+ break;+ case "xmlBase":+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:base", r);+ break;+ case "xmlLang":+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:lang", r);+ break;+ case "xmlSpace":+ qt(e, "http://www.w3.org/XML/1998/namespace", "xml:space", r);+ break;+ case "is":+ Gt(e, "is", r);+ break;+ case "innerText":+ case "textContent": return;+ default: if (!(2 < n.length) || n[0] !== "o" && n[0] !== "O" || n[1] !== "n" && n[1] !== "N") n = pn.get(n) || n, Gt(e, n, r);+ else return;+ }+ Ut = !0;+ }+ function fp(e, t, n, r, a, o) {+ switch (n) {+ case "style":+ dn(e, r, o);+ return;+ case "dangerouslySetInnerHTML":+ if (r != null) {+ if (typeof r != "object" || !("__html" in r)) throw Error(i(61));+ if (n = r.__html, n != null) {+ if (a.children != null) throw Error(i(60));+ o?.__html !== n && (e.innerHTML = n);+ }+ }+ break;+ case "children":+ if (typeof r == "string") cn(e, r);+ else if (typeof r == "number" || typeof r == "bigint") cn(e, "" + r);+ else return;+ break;+ case "onScroll":+ r != null && Zf("scroll", e);+ return;+ case "onScrollEnd":+ r != null && Zf("scrollend", e);+ return;+ case "onClick":+ r != null && (e.onclick = gn);+ return;+ case "suppressContentEditableWarning":+ case "suppressHydrationWarning":+ case "innerHTML":+ case "ref": return;+ case "innerText":+ case "textContent": return;+ default:+ if (!It.hasOwnProperty(n)) a: {+ if (n[0] === "o" && n[1] === "n" && (a = n.endsWith("Capture"), o = n.slice(2, a ? n.length - 7 : void 0), t = e[yt] || null, t = t == null ? null : t[n], typeof t == "function" && e.removeEventListener(o, t, a), typeof r == "function")) {+ typeof t != "function" && t !== null && (n in e ? e[n] = null : e.hasAttribute(n) && e.removeAttribute(n)), e.addEventListener(o, r, a);+ break a;+ }+ Ut = !0, n in e ? e[n] = r : !0 === r ? e.setAttribute(n, "") : Gt(e, n, r);+ }+ return;+ }+ Ut = !0;+ }+ function pp(e, t, n) {+ switch (t) {+ case "div":+ case "span":+ case "svg":+ case "path":+ case "a":+ case "g":+ case "p":+ case "li": break;+ case "img":+ Zf("error", e), Zf("load", e);+ var r = !1, a = !1, o;+ for (o in n) if (n.hasOwnProperty(o)) {+ var s = n[o];+ if (s != null) switch (o) {+ case "src":+ r = !0;+ break;+ case "srcSet":+ a = !0;+ break;+ case "children":+ case "dangerouslySetInnerHTML": throw Error(i(137, t));+ default: dp(e, t, o, s, n, null);+ }+ }+ a && dp(e, t, "srcSet", n.srcSet, n, null), r && dp(e, t, "src", n.src, n, null);+ return;+ case "input":+ Zf("invalid", e);+ var c = o = s = a = null, l = null, u = null;+ for (r in n) if (n.hasOwnProperty(r)) {+ var d = n[r];+ if (d != null) switch (r) {+ case "name":+ a = d;+ break;+ case "type":+ s = d;+ break;+ case "checked":+ l = d;+ break;+ case "defaultChecked":+ u = d;+ break;+ case "value":+ o = d;+ break;+ case "defaultValue":+ c = d;+ break;+ case "children":+ case "dangerouslySetInnerHTML":+ if (d != null) throw Error(i(137, t));+ break;+ default: dp(e, t, r, d, n, null);+ }+ }+ nn(e, o, c, l, u, s, a, !1);+ return;+ case "select":+ for (a in Zf("invalid", e), r = s = o = null, n) if (n.hasOwnProperty(a) && (c = n[a], c != null)) switch (a) {+ case "value":+ o = c;+ break;+ case "defaultValue":+ s = c;+ break;+ case "multiple": r = c;+ default: dp(e, t, a, c, n, null);+ }+ t = o, n = s, e.multiple = !!r, t == null ? n != null && an(e, !!r, n, !0) : an(e, !!r, t, !1);+ return;+ case "textarea":+ for (s in Zf("invalid", e), o = a = r = null, n) if (n.hasOwnProperty(s) && (c = n[s], c != null)) switch (s) {+ case "value":+ r = c;+ break;+ case "defaultValue":+ a = c;+ break;+ case "children":+ o = c;+ break;+ case "dangerouslySetInnerHTML":+ if (c != null) throw Error(i(91));+ break;+ default: dp(e, t, s, c, n, null);+ }+ sn(e, r, a, o);+ return;+ case "option":+ for (l in n) if (n.hasOwnProperty(l) && (r = n[l], r != null)) switch (l) {+ case "selected":+ e.selected = r && typeof r != "function" && typeof r != "symbol";+ break;+ default: dp(e, t, l, r, n, null);+ }+ return;+ case "dialog":+ Zf("beforetoggle", e), Zf("toggle", e), Zf("cancel", e), Zf("close", e);+ break;+ case "iframe":+ case "object":+ Zf("load", e);+ break;+ case "video":+ case "audio":+ for (r = 0; r < Jf.length; r++) Zf(Jf[r], e);+ break;+ case "image":+ Zf("error", e), Zf("load", e);+ break;+ case "details":+ Zf("toggle", e);+ break;+ case "embed":+ case "source":+ case "link": Zf("error", e), Zf("load", e);+ case "area":+ case "base":+ case "br":+ case "col":+ case "hr":+ case "keygen":+ case "meta":+ case "param":+ case "track":+ case "wbr":+ case "menuitem":+ 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: dp(e, t, u, r, n, null);+ }+ return;+ default: if (fn(t)) {+ for (d in n) n.hasOwnProperty(d) && (r = n[d], r !== void 0 && fp(e, t, d, r, n, void 0));+ return;}}- }, []), d = (0, B.useCallback)((e) => {- i.current = e;- }, []);- (0, B.useEffect)(() => {- let e = i.current;- if (!e) return;- let t = new IntersectionObserver((e) => {- e.some((e) => e.isIntersecting) && u(!1);- }, { rootMargin: "320px" });- return t.observe(e), () => t.disconnect();- }, [u]);- let f = s.busy ? {- "aria-busy": !0,- "aria-disabled": !0- } : {};- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)("button", {- ref: d,- type: "button",- "data-entity-more": "",- ...f,- onClick: () => void u(!0),- children: r ?? "载入更多"- }) : /* @__PURE__ */ (0, V.jsx)("div", {- ref: d,- "data-load-more": "",- ...f,- onClick: () => void u(!0),- dangerouslySetInnerHTML: { __html: Pe("继续载入中…") }- }), s.error ? /* @__PURE__ */ (0, V.jsx)(jA, {- message: s.error,- onRetry: () => void u(!0)- }) : null] });-}-function Rle(e, t, n, r, i) {- let [a, o] = (0, B.useState)([]), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(0), u = (0, B.useRef)(0), d = (0, B.useRef)([]);- return (0, B.useEffect)(() => () => d.current.forEach((e) => e.abort()), []), (0, B.useEffect)(() => {- let n = t?.pages.length || 0;- if (!e.shorts || u.current >= n) return;- u.current = n;- let r = new AbortController();- d.current.push(r);- let i = n - 1;- G(`/api/items?${Rre(e.filters || {}, l.current)}`, r.signal).then((e) => {- let t = e.items || [];- if (!t.length) {- l.current = 0;+ for (c in n) n.hasOwnProperty(c) && (r = n[c], r != null && dp(e, t, c, r, n, null));+ }+ var mp = {};+ function hp(e, t, n, r) {+ switch (t) {+ case "div":+ case "span":+ case "svg":+ case "path":+ case "a":+ case "g":+ case "p":+ case "li": break;+ case "input":+ var a = null, o = null, s = null, c = null, l = null, u = null, d = null;+ for (m in n) {+ var f = n[m];+ if (n.hasOwnProperty(m) && f != null) switch (m) {+ case "checked": break;+ case "value": break;+ case "defaultValue": l = f;+ default: r.hasOwnProperty(m) || dp(e, t, m, null, r, f);+ }+ }+ for (var p in r) {+ var m = r[p];+ if (f = n[p], r.hasOwnProperty(p) && (m != null || f != null)) switch (p) {+ case "type":+ m !== f && (Ut = !0), o = m;+ break;+ case "name":+ m !== f && (Ut = !0), a = m;+ break;+ case "checked":+ m !== f && (Ut = !0), u = m;+ break;+ case "defaultChecked":+ m !== f && (Ut = !0), d = m;+ break;+ case "value":+ m !== f && (Ut = !0), s = m;+ break;+ case "defaultValue":+ m !== f && (Ut = !0), c = m;+ break;+ case "children":+ case "dangerouslySetInnerHTML":+ if (m != null) throw Error(i(137, t));+ break;+ default: m !== f && dp(e, t, p, m, r, f);+ }+ }+ tn(e, s, c, l, u, d, o, a);+ return;+ case "select":+ for (o in m = s = c = p = null, n) if (l = n[o], n.hasOwnProperty(o) && l != null) switch (o) {+ case "value": break;+ case "multiple": m = l;+ default: r.hasOwnProperty(o) || dp(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":+ o !== l && (Ut = !0), p = o;+ break;+ case "defaultValue":+ o !== l && (Ut = !0), c = o;+ break;+ case "multiple": o !== l && (Ut = !0), s = o;+ default: o !== l && dp(e, t, a, o, r, l);+ }+ t = c, n = s, r = m, p == null ? !!r != !!n && (t == null ? an(e, !!n, n ? [] : "", !1) : an(e, !!n, t, !0)) : an(e, !!n, p, !1);+ return;+ case "textarea":+ for (c in m = p = null, n) if (a = n[c], n.hasOwnProperty(c) && a != null && !r.hasOwnProperty(c)) switch (c) {+ case "value": break;+ case "children": break;+ default: dp(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":+ a !== o && (Ut = !0), p = a;+ break;+ case "defaultValue":+ a !== o && (Ut = !0), m = a;+ break;+ case "children": break;+ case "dangerouslySetInnerHTML":+ if (a != null) throw Error(i(91));+ break;+ default: a !== o && dp(e, t, s, a, r, o);+ }+ on(e, p, m);+ return;+ case "option":+ for (var h in n) if (p = n[h], n.hasOwnProperty(h) && p != null && !r.hasOwnProperty(h)) switch (h) {+ case "selected":+ e.selected = !1;+ break;+ default: dp(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 && (Ut = !0), e.selected = p && typeof p != "function" && typeof p != "symbol";+ break;+ default: dp(e, t, l, p, r, m);+ }+ return;+ case "img":+ case "link":+ case "area":+ case "base":+ case "br":+ case "col":+ case "embed":+ case "hr":+ case "keygen":+ case "meta":+ case "param":+ case "source":+ case "track":+ case "wbr":+ case "menuitem":+ for (var g in n) p = n[g], n.hasOwnProperty(g) && p != null && !r.hasOwnProperty(g) && dp(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: dp(e, t, u, p, r, m);+ }+ return;+ default: if (fn(t)) {+ for (var _ in n) p = n[_], n.hasOwnProperty(_) && p !== void 0 && !r.hasOwnProperty(_) && fp(e, t, _, void 0, r, p);+ for (d in r) p = r[d], m = n[d], !r.hasOwnProperty(d) || p === m || p === void 0 && m === void 0 || fp(e, t, d, p, r, m);return;}- c({- page: i,- total: Number(e.total || 0),- items: t,- more: e.has_more !== !1- });- }).catch(() => {});- }, [t]), (0, B.useLayoutEffect)(() => {- if (!s) return;- c(null);- let e = a.reduce((e, t) => Math.max(e, t.at), 0), t = i.current?.querySelectorAll("[data-media-sections] > [data-media-grid]"), u = t?.[t.length - 1], d = u ? Math.max(1, getComputedStyle(u).gridTemplateColumns.split(" ").length) : 1, f = Math.max(0, (r[s.page] ?? 0) - e), p = Lre(n.length - e, f, d);- if (!p.length) return;- let m = e + (p[Math.floor(Math.random() * p.length)] ?? 0);- l.current = s.more ? l.current + 18 : 0, o((e) => [...e, {- at: m,- total: s.total,- items: s.items- }]);- }, [s]), a;-}-function zle({ cut: e, props: t, onOpen: n }) {- let r = (0, B.useRef)(null), { wireDrag: i } = t;- return (0, B.useEffect)(() => {- r.current && i(r.current);- }, [i]), /* @__PURE__ */ (0, V.jsxs)("section", {- "data-shorts-strip": "",- children: [/* @__PURE__ */ (0, V.jsxs)("h2", { children: [- "竖屏 ",- /* @__PURE__ */ (0, V.jsx)("span", {- "data-shorts-count": "",- children: `${e.total.toLocaleString()} 个`- }),- /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- "data-shorts-enter": "",- onClick: () => t.actions.openShorts(),- children: [/* @__PURE__ */ (0, V.jsx)(Fle, { name: "gallery-vertical-end" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "进入沉浸模式" })]- })- ] }), /* @__PURE__ */ (0, V.jsx)("div", {- ref: r,- "data-shorts-row": "",- children: e.items.map((e) => /* @__PURE__ */ (0, V.jsx)(IA, {- item: e,- variant: "short",- layout: t.layout,- selected: t.selected.has(e.id),- selectMode: t.selectMode,- seekSeconds: t.seekSeconds,- helpers: t.helpers,- actions: t.actions,- onOpen: n- }, e.id))- })]- });-}-function UA(e, t, n) {- return N(e, t.active && e.is_jav ? t.size : "small", n, t.javImage);-}-function Ble({ seed: e, layout: t, helpers: n, actions: r }) {- let i = (0, B.useRef)(/* @__PURE__ */ new Map()), a = (0, B.useRef)(t);- a.current = t;- let o = P(e, n.tagLabel), s = (0, B.useCallback)(async () => {- let t = a.current, n = [e, ...await r.mixRelated(e.id)].filter((e) => PC(e, t.javImage)).slice(0, 9);- return i.current = new Map(n.map((e) => [String(e.id), UA(e, t, !0).html])), n.map((e) => String(e.id));- }, [e, r]), c = t.active && e.is_jav ? t.size : "small", l = UA(e, t, !1);- return /* @__PURE__ */ (0, V.jsx)(BA, {- "data-mix-seed": String(e.id),- name: `Mix · ${o}`,- caption: `${n.displayName(e, e.name || "")}及相似作品`,- count: 0,- badge: "Mix",- glyph: !0,- wholeCard: !0,- poster: null,- artwork: l,- artworkIdentity: c === "small" ? l.html : UA(e, {- ...t,- size: "small"- }, !1).html,- relayoutArt: (e) => ne(e, c),- ratio: PA(e, "grid", t),- flipImages: s,- faceHtml: (e) => i.current.get(e) || "",- canFlip: r.canFlip,- faces: [],- onOpenEntity: r.openEntity,- onOpen: (t) => r.openMix(e.id, t),- openLabel: `打开 Mix · ${o}`- });-}-//#endregion-//#region src/react/media-sources.ts-async function WA(e) {- await z.fetchQuery({- queryKey: et,- queryFn: () => nt(e)- });-}-var Vle = [- "local",- "115",- "pikpak"-], Hle = (e) => (e?.sources ?? []).filter((e) => ["115", "pikpak"].includes(e.location) && (e.roots === void 0 || e.roots.length > 0)).map((e) => e.location), Ule = "/api/duplicates?limit=120", GA = ["duplicates"], KA = "/api/batch", qA = (e) => G(Ule, e);-async function Wle(e) {- await Promise.all([z.fetchQuery({- queryKey: GA,- queryFn: () => qA(e)- }), WA(e)]);-}-var JA = {- largest: "最大的一个",- longest: "最长的一个",- 115: "115(没有则留最大)",- pikpak: "PikPak(没有则留最大)",- all: "零个文件"-}, Gle = (e, t) => t.filter((t) => e.some((e) => e.location === t)), YA = (e, t) => Gle(e, t).filter((t) => e.some((e) => e.location !== t)), Kle = (e, t) => t.filter((t) => e.some((e) => YA(e.files, [t]).length));-function qle(e, t) {- let n = [];- for (let r of e) {- if (t === "all") {- for (let e of r.files) n.push(e.id);- continue;}- let e;- if (t === "largest" || t === "longest") {- let n = t === "longest" ? "is_longest" : "is_largest";- e = r.files.find((e) => e[n]) ?? r.files[0];- } else {- let n = r.files.filter((e) => e.location === t), i = n.length ? n : r.files;- e = i.reduce((e, t) => (t.size || 0) > (e.size || 0) ? t : e, i[0]);+ for (var v in n) p = n[v], n.hasOwnProperty(v) && p != null && !r.hasOwnProperty(v) && dp(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 || dp(e, t, f, p, r, m);+ }+ function gp(e) {+ switch (e) {+ case "css":+ case "script":+ case "font":+ case "img":+ case "image":+ case "input":+ case "link": return !0;+ default: return !1;+ }+ }+ function _p() {+ if (typeof performance.getEntriesByType == "function") {+ for (var e = 0, t = 0, n = performance.getEntriesByType("resource"), r = 0; r < n.length; r++) {+ var i = n[r], a = i.transferSize, o = i.initiatorType, s = i.duration;+ if (a && s && gp(o)) {+ for (o = 0, s = i.responseEnd, r += 1; r < n.length; r++) {+ var c = n[r], l = c.startTime;+ if (l > s) break;+ var u = c.transferSize, d = c.initiatorType;+ u && gp(d) && (c = c.responseEnd, o += u * (c < s ? 1 : (s - l) / (c - l)));+ }+ if (--r, t += 8 * (a + o) / (i.duration / 1e3), e++, 10 < e) break;+ }+ }+ if (0 < e) return t / e / 1e6;+ }+ return navigator.connection && (e = navigator.connection.downlink, typeof e == "number") ? e : 5;+ }+ var vp = null, yp = null;+ function bp(e) {+ return e.nodeType === 9 ? e : e.ownerDocument;+ }+ function xp(e) {+ switch (e) {+ case "http://www.w3.org/2000/svg": return 1;+ case "http://www.w3.org/1998/Math/MathML": return 2;+ default: return 0;+ }+ }+ function Sp(e, t) {+ if (e === 0) switch (t) {+ case "svg": return 1;+ case "math": return 2;+ default: return 0;+ }+ return e === 1 && t === "foreignObject" ? 0 : e;+ }+ function Cp(e, t, n, r) {+ return n = bp(n).createElement(e), n[vt] = r, n[yt] = t, pp(n, e, t), Nt(n), n;+ }+ function wp(e, t) {+ return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.children == "bigint" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null;+ }+ var Tp = null;+ function Ep() {+ var e = window.event;+ return e && e.type === "popstate" ? e !== Tp && (Tp = e, !0) : (Tp = null, !1);+ }+ var Dp = typeof setTimeout == "function" ? setTimeout : void 0, Op = typeof clearTimeout == "function" ? clearTimeout : void 0, kp = typeof Promise == "function" ? Promise : void 0, H = typeof requestAnimationFrame == "function" ? requestAnimationFrame : Dp, Ap = typeof queueMicrotask == "function" ? queueMicrotask : kp === void 0 ? Dp : function(e) {+ return kp.resolve(null).then(e).catch(jp);+ };+ function jp(e) {+ setTimeout(function() {+ throw e;+ });+ }+ function Mp(e) {+ return e === "head";+ }+ function Np(e, t) {+ var n = t, r = 0;+ do {+ var i = n.nextSibling;+ if (e.removeChild(n), i && i.nodeType === 8) {+ if (n = i.data, n === "/$" || n === "/&") {+ if (r === 0) {+ e.removeChild(i), Zh(t);+ return;+ }+ r--;+ } else if (n === "$" || n === "$?" || n === "$~" || n === "$!" || n === "&") r++;+ else if (n === "html") Dm(e.ownerDocument.documentElement);+ else if (n === "head") {+ n = e.ownerDocument.head, Dm(n);+ for (var a = n.firstChild; a;) {+ var o = a.nextSibling, s = a.nodeName;+ a[Tt] || s === "SCRIPT" || s === "STYLE" || s === "LINK" && a.rel.toLowerCase() === "stylesheet" || n.removeChild(a), a = o;+ }+ } else n === "body" && Dm(e.ownerDocument.body);+ }+ n = i;+ } while (n);+ Zh(t);+ }+ function Pp(e, t) {+ var n = e;+ e = 0;+ do {+ var r = n.nextSibling;+ if (n.nodeType === 1 ? t ? (n._stashedDisplay = n.style.display, n.style.display = "none") : (n.style.display = n._stashedDisplay || "", n.getAttribute("style") === "" && n.removeAttribute("style")) : n.nodeType === 3 && (t ? (n._stashedText = n.nodeValue, n.nodeValue = "") : n.nodeValue = n._stashedText || ""), r && r.nodeType === 8) {+ if (n = r.data, n === "/$") {+ if (e === 0) break;+ e--;+ } else n !== "$" && n !== "$?" && n !== "$~" && n !== "$!" || e++;+ }+ n = r;+ } while (n);+ }+ function Fp(e, t, n) {+ if (t = CSS.escape(t) === t ? t : "r-" + btoa(t).replace(/=/g, ""), e.style.viewTransitionName = t, n != null && (e.style.viewTransitionClass = n), n = getComputedStyle(e), n.display === "inline") {+ if (t = e.getClientRects(), t.length === 1) var r = 1;+ else for (var i = r = 0; i < t.length; i++) {+ var a = t[i];+ 0 < a.width && 0 < a.height && r++;+ }+ r === 1 && (e = e.style, e.display = t.length === 1 ? "inline-block" : "block", e.marginTop = "-" + n.paddingTop, e.marginBottom = "-" + n.paddingBottom);+ }+ }+ function Ip(e, t) {+ e = e.style, t = t.style;+ var n = t == null ? null : t.hasOwnProperty("viewTransitionName") ? t.viewTransitionName : t.hasOwnProperty("view-transition-name") ? t["view-transition-name"] : null;+ e.viewTransitionName = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), n = t == null ? null : t.hasOwnProperty("viewTransitionClass") ? t.viewTransitionClass : t.hasOwnProperty("view-transition-class") ? t["view-transition-class"] : null, e.viewTransitionClass = n == null || typeof n == "boolean" ? "" : ("" + n).trim(), e.display === "inline-block" && (t == null ? e.display = e.margin = "" : (n = t.display, e.display = n == null || typeof n == "boolean" ? "" : n, n = t.margin, n == null ? (n = t.hasOwnProperty("marginTop") ? t.marginTop : t["margin-top"], e.marginTop = n == null || typeof n == "boolean" ? "" : n, t = t.hasOwnProperty("marginBottom") ? t.marginBottom : t["margin-bottom"], e.marginBottom = t == null || typeof t == "boolean" ? "" : t) : e.margin = n));+ }+ function Lp(e, t, n) {+ return n = n.ownerDocument.defaultView, {+ rect: e,+ abs: t.position === "absolute" || t.position === "fixed",+ clip: t.clipPath !== "none" || t.overflow !== "visible" || t.filter !== "none" || t.mask !== "none" || t.mask !== "none" || t.borderRadius !== "0px",+ view: 0 <= e.bottom && 0 <= e.right && e.top <= n.innerHeight && e.left <= n.innerWidth+ };+ }+ function Rp(e) {+ return Lp(e.getBoundingClientRect(), getComputedStyle(e), e);+ }+ function zp(e) {+ var t = e.getBoundingClientRect();+ t = new DOMRect(t.x + 2e4, t.y + 2e4, t.width, t.height);+ var n = getComputedStyle(e);+ return Lp(t, n, e);+ }+ function Bp(e) {+ return e.documentElement.clientHeight;+ }+ function Vp(e) {+ this.addEventListener("load", e), this.addEventListener("error", e);+ }+ function Hp(e, t, n, r, i, a, o, s, c) {+ var l = t.nodeType === 9 ? t : t.ownerDocument;+ try {+ var u = l.startViewTransition({+ update: function() {+ var t = l.defaultView, n = t.navigation && t.navigation.transition, o = l.fonts.status;+ r();+ var s = [];+ if (o === "loaded" && (Bp(l), l.fonts.status === "loading" && s.push(l.fonts.ready)), o = s.length, e !== null) for (var c = e.suspenseyImages, u = 0, d = 0; d < c.length; d++) {+ var f = c[d];+ if (!f.complete) {+ var p = f.getBoundingClientRect();+ if (0 < p.bottom && 0 < p.right && p.top < t.innerHeight && p.left < t.innerWidth) {+ if (u += oh(f), u > lh) {+ s.length = o;+ break;+ }+ f = new Promise(Vp.bind(f)), s.push(f);+ }+ }+ }+ if (0 < s.length) return t = Promise.race([Promise.all(s), new Promise(function(e) {+ return setTimeout(e, 500);+ })]).then(i, i), (n ? Promise.allSettled([n.finished, t]) : t).then(a, a);+ if (i(), n) return n.finished.then(a, a);+ a();+ },+ types: n+ });+ l.__reactViewTransition = u;+ var d = [];+ return u.ready.then(function() {+ for (var e = l.documentElement.getAnimations({ subtree: !0 }), t = 0; t < e.length; t++) {+ var n = e[t], r = n.effect, i = r.pseudoElement;+ if (i != null && i.startsWith("::view-transition")) {+ d.push(n), n = r.getKeyframes();+ for (var a = i = void 0, s = !0, c = 0; c < n.length; c++) {+ var u = n[c], f = u.width;+ if (i === void 0) i = f;+ else if (i !== f) {+ s = !1;+ break;+ }+ if (f = u.height, a === void 0) a = f;+ else if (a !== f) {+ s = !1;+ break;+ }+ delete u.width, delete u.height, u.transform === "none" && delete u.transform;+ }+ s && i !== void 0 && a !== void 0 && (r.setKeyframes(n), s = getComputedStyle(r.target, r.pseudoElement), s.width !== i || s.height !== a) && (s = n[0], s.width = i, s.height = a, s = n[n.length - 1], s.width = i, s.height = a, r.setKeyframes(n));+ }+ }+ o();+ }, function(e) {+ l.__reactViewTransition === u && (l.__reactViewTransition = null);+ try {+ if (typeof e == "object" && e) switch (e.name) {+ case "InvalidStateError": (e.message === "View transition was skipped because document visibility state is hidden." || e.message === "Skipping view transition because document visibility state has become hidden." || e.message === "Skipping view transition because viewport size changed." || e.message === "Transition was aborted because of invalid state") && (e = null);+ }+ e !== null && c(e);+ } finally {+ r(), i(), o();+ }+ }), u.finished.finally(function() {+ for (var e = 0; e < d.length; e++) d[e].cancel();+ l.__reactViewTransition === u && (l.__reactViewTransition = null), s();+ }), u;+ } catch {+ return r(), i(), o(), null;}- for (let t of r.files) t.id !== e?.id && n.push(t.id);- }- return n;-}-function Jle(e, t) {- let n = new Set(t);- return e.reduce((e, t) => e + t.files.reduce((e, t) => e + (n.has(t.id) && t.size || 0), 0), 0);-}-async function XA(e, t) {- for (let n = 0; n < e.length; n += 200) await K(KA, {- ids: e.slice(n, n + 200),- operation: t- });-}-//#endregion-//#region src/react/library-processing/library-processing.ts-var ZA = "/api/library-processing", QA = ["library-processing"], $A = (e) => G(ZA, e);-async function ej(e) {- await z.fetchQuery({- queryKey: QA,- queryFn: () => $A(e)- });-}-var Yle = 2e3, Xle = 1e4, tj = "连接中断,正在重新读取处理进度";-function Zle(e, t) {- return e?.status === "running" ? Yle : t ? Xle : !1;-}-var Qle = {- reading_local: "读取本地资料",- querying_metadata: "查询外部资料",- fetching_cover: "采集缺失封面",- writing_candidates: "保存资料候选"-}, nj = {- querying_metadata: "没有资料",- fetching_cover: "没有封面"-};-function $le(e) {- let t = Object.entries(e).filter(([e, t]) => nj[e] && t > 0).map(([e, t]) => `${nj[e]} ${t} 部`);- return t.length ? `外部来源${t.join("、")},7 天内不再问。` : "";-}-function rj(e) {- let t = Qle[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 eue(e) {- let t = e.issue_preview || [];- return t.length ? {- label: e.issues_truncated ? `问题清单:共 ${e.issue_count || 0} 项,展开查看前 ${t.length} 项` : `问题清单:共 ${e.issue_count || 0} 项`,- items: t.map((e, t) => ({- key: `${e.asset_id ?? "source"}-${t}`,- label: e.title || (e.asset_id ? `视频 ${e.asset_id}` : "媒体来源"),- href: e.asset_id ? `/item/${e.asset_id}` : "",- note: e.message,- hint: e.path || ""- })),- log: e.issues_log || ""- } : null;-}-var ij = "peach.library-processing.announced", tue = 120;-function nue(e, t, n) {- if (e.status !== "complete") return;- let r = !!e.job_id && !!e.completed_at && Date.now() / 1e3 - e.completed_at < tue;- if (!(!n && !r)) {- try {- if (e.job_id && localStorage.getItem(ij) === e.job_id) return;- e.job_id && localStorage.setItem(ij, e.job_id);- } catch {}- t(`扫描与资料采集已完成:识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条`);- }-}-//#endregion-//#region src/react/media-repair/media-repair.ts-var aj = "/api/media-repair", oj = ["media-repair"], sj = ["media-repair", "libraries"], rue = {- status: "idle",- library: "",- stage: "",- checked: 0,- total: 0,- found: 0,- repaired: 0,- failed: 0,- missing_tool: 0,- skipped: 0,- message: ""-}, cj = (e) => G(aj, e), lj = async (e) => (await G("/api/libraries", e)).libraries || [];-async function iue(e) {- await Promise.all([z.fetchQuery({- queryKey: oj,- queryFn: () => cj(e)- }), z.fetchQuery({- queryKey: sj,- queryFn: () => lj(e)- })]);-}-var uj = (e) => Number(e).toLocaleString();-function aue(e) {- if (e.status === "running") {- let t = e.total ? `${uj(e.checked)} / ${uj(e.total)}` : "准备中";- return e.stage === "修复" && e.message ? `修复 ${t} · ${e.message}` : `${e.stage || "扫描"} ${t}`;}- return e.status === "complete" && (e.repaired || e.failed) ? e.failed ? `修好 ${uj(e.repaired)} 部,${uj(e.failed)} 部修不了` : `修好 ${uj(e.repaired)} 部` : "";-}-var oue = (e) => `${uj(e.missing_tool)} 部缺索引的片子要装上 untrunc 才修得了,下载入口在配置页的「运行信息」里。`, sue = "/api/quality-goals?limit=200", dj = ["quality-goals"], fj = (e) => G(sue, e);-async function cue(e) {- await z.fetchQuery({- queryKey: dj,- queryFn: () => fj(e)- });-}-var lue = (e) => e.has_cover ? D(e) : `/poster?id=${e.id}&c=4`;-function pj(e, t, n = 1) {- let r = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);- if (n * 2 + 5 >= t) return r(1, t);- let i = Math.max(e - n, 1), a = Math.min(e + n, t), o = i > 2, s = a < t - 2;- return !o && s ? [- ...r(1, 3 + 2 * n),- "…",- t- ] : o && !s ? [- 1,- "…",- ...r(t - (2 + 2 * n), t)- ] : [- 1,- "…",- ...r(i, a),- "…",- t- ];-}-function mj(e, t) {- return Math.max(1, Math.ceil(e / t));-}-function hj(e, t) {- return Math.min(Math.max(1, Math.floor(e) || 1), t);-}-//#endregion-//#region src/selection.ts-function uue(e, t, n, r, i, a = i || !e.has(r)) {- let o = n === null ? -1 : t.indexOf(n), s = t.indexOf(r);- return i && o >= 0 && s >= 0 ? t.slice(Math.min(o, s), Math.max(o, s) + 1).forEach((t) => e.add(t)) : a ? e.add(r) : e.delete(r), r;-}-//#endregion-//#region src/react/time.ts-function gj(e) {- if (!e) return "";- let t = /[Zz]|[+-]\d\d:?\d\d$/.test(e) ? e : `${e}Z`, n = new Date(t);- if (Number.isNaN(n.getTime())) return String(e).replace("T", " ").slice(0, 16);- let r = (e) => String(e).padStart(2, "0");- return `${n.getFullYear()}-${r(n.getMonth() + 1)}-${r(n.getDate())} ${r(n.getHours())}:${r(n.getMinutes())}`;-}-//#endregion-//#region src/react/review/review.ts-var due = "/api/review", fue = "/api/review/decision", pue = "/api/review/genre", _j = ["review"], vj = {- metadata_fields: "元数据字段",- creator_tags: "创作者标签",- studio_logos: "厂牌 Logo",- performer_avatars: "女优头像",- western_identity: "西方身份回配",- code_creators: "番号目录存疑",- fc2_markings: "FC2 评论标记",- fc2_similarity: "FC2 跨号相似",- video_endcards: "片尾/出处证据"-}, mue = Object.keys(vj), hue = "metadata_fields", yj = (e) => typeof e == "string" && Object.hasOwn(vj, e), gue = {- creator_tags: "creator",- western_identity: "creator"-};-function _ue(e, t) {- let n = [["candidates", t ? "按候选数量" : "全部待复核"]];- return e.some((e) => e.source || e.candidates?.some((e) => e.source)) && n.push(["source", "按来源"]), e.some((e) => e.field) && n.push(["field", "按字段"]), n;-}-function bj(e, t) {- let n = /* @__PURE__ */ new Map();- for (let r of e) {- let e, i;- if (t === "field") e = r.field || "__unspecified_field", i = r.field_label || r.field || "未标注字段";- else if (t === "source") {- let t = [...new Set((r.candidates?.map((e) => e.source || "") || [r.source || ""]).filter(Boolean))].sort();- e = JSON.stringify(t), i = t.join(" / ") || "未标注来源";- } else e = r.candidates ? r.candidates.length === 1 ? "single" : "multiple" : "pending", i = e === "single" ? "单一候选" : e === "multiple" ? "需选择来源" : "待复核";- n.has(e) || n.set(e, {- key: e,- title: i,- rows: []- }), n.get(e).rows.push(r);+ function Up(e, t) {+ this._scope = document.documentElement, this._selector = "::view-transition-" + e + "(" + t + ")";}- return [...n.values()];-}-function vue(e, t, n) {- return n && bj(e, t).find((e) => e.key === n)?.rows || e;-}-function yue(e, t) {- let n = mj(e.length, 20), r = hj(t, n);- return {- page: r,- pages: n,- rows: e.slice((r - 1) * 20, r * 20)- };-}-function bue(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 xue(e, t, n, r, i, a) {- return uue(e, t, n, r, i, a);-}-function xj(e, t) {- return e === "metadata_fields" ? (t.candidates?.length || 0) > 0 : e !== "creator_tags" || String(t.status || "").trim() === "candidate";-}-function Sj(e, t) {- return String(e === "metadata_fields" ? t.query || t.code || "" : t.creator || t.studio || t.current_name || t.name || t.item_key);-}-var Cj = (e, t) => e === "metadata_fields" ? String(t.field_label || t.field || "").trim() : "";-function wj(e, t) {- let n = Sj(e, t), r = Cj(e, t);- return r ? `${n} · ${r}` : n;-}-var Sue = (e) => e.reason || e.evidence || e.note || e.decision_note || "", Cue = (e) => String(e.tags || "").split("|").filter(Boolean), wue = (e) => [...new Set((e.candidates || []).flatMap((e) => e.unmapped_genres || []))];-function Tue(e) {- let t = e.candidates || [];- return {- candidateKey: t.length === 1 ? t[0].candidate_key : "",- assets: (e.preview_assets || []).map((e) => e.id)- };-}-function Tj(e, t, n, r) {- let i = !!t.asset_path && t.asset_mutation_revision != null;- return {- category: e,- item_key: t.item_key,- status: n,- candidate_key: r.candidateKey,- creator: t.creator,- tags: t.tags,- studio: t.studio,- entity_id: t.entity_id,- avatar_url: t.avatar_url,- selected_ids: r.assets,- ...i ? { expected_revision: t.asset_mutation_revision } : {}+ Up.prototype.animate = function(e, t) {+ return t = typeof t == "number" ? { duration: t } : w({}, t), t.pseudoElement = this._selector, this._scope.animate(e, t);+ }, Up.prototype.getAnimations = function() {+ for (var e = this._scope, t = this._selector, n = e.getAnimations({ subtree: !0 }), r = [], i = 0; i < n.length; i++) {+ var a = n[i].effect;+ a !== null && a.target === e && a.pseudoElement === t && r.push(n[i]);+ }+ return r;+ }, Up.prototype.getComputedStyle = function() {+ return getComputedStyle(this._scope, this._selector);};-}-var Eue = (e) => e === "approved" ? "已通过候选" : e === "rejected" ? "已拒绝候选" : "已跳过候选", Ej = (e) => G(due, e), Dj = (e) => K(fue, e), Due = (e, t) => K(pue, {- genre: e,- tag: t-});-async function Oue(e) {- await z.fetchQuery({- queryKey: _j,- queryFn: () => Ej(e)- });-}-function Oj(e, t) {- let n = new Set(t);- n.size && z.setQueryData(_j, (t) => {- if (!t) return t;- let r = t.sections[e] || [], i = r.filter((e) => !n.has(String(e.item_key)));- return i.length === r.length ? t : {- ...t,- sections: {- ...t.sections,- [e]: i- },- counts: {- ...t.counts,- [e]: Math.max(0, (t.counts[e] ?? r.length) - (r.length - i.length))- }+ function Wp(e) {+ return {+ name: e,+ group: new Up("group", e),+ imagePair: new Up("image-pair", e),+ old: new Up("old", e),+ new: new Up("new", e)};- });-}-var kue = () => z.invalidateQueries({- queryKey: _j,- exact: !0-});-function Aue(e, t) {- return e?.state === "live" ? "正在显示写入端的实时复核队列" : e?.state === "cached" ? `写入端暂时不可达,显示 ${gj(e.fetched_at)} 的缓存` : e?.error || t;-}-//#endregion-//#region src/react/data-cleanup/links.ts-var jue = "/api/links", kj = "/api/links/check", Aj = "/api/links/prune", jj = ["links"], Mj = ["links", "check"], Nj = ["links", "prune"], Pj = {- official: "官网/事务所",- social: "社交账号",- catalog: "作品资料站",- source_reference: "资料出处"-};-async function Fj(e) {- let t = await e;- if (t.ok === !1) throw Error(t.error || "操作未完成,请重试");- return t;-}-var Ij = (e) => G(jue, e), Lj = (e) => K(kj, { status_only: !0 }, "POST", e), Mue = ({ retry: e, checkId: t }) => Fj(K(kj, e ? {- retry: e,- check_id: t-} : { restart: !0 })), Rj = (e) => G(Aj, e), Nue = (e) => Fj(K(Aj, {- confirm: !0,- check_id: e,- background: !0-})), zj = (e) => Number(e || 0).toLocaleString(), Pue = (e) => `已删除 ${zj(e.removed)} 条;${e.marked ? `已隐退女优的 ${zj(e.marked)} 条留作不可点的记录;` : ""}保留 ${zj(e.recovered)} 条未确认失效的链接。`;-function Fue(e) {- let t = e.scope === "retry";- return e.total ? `${t ? "已重验" : "已检查"} ${zj(e.checked)} / ${zj(e.total)} 条链接` : t ? "正在重验链接" : "正在检查链接";-}-//#endregion-//#region src/react/settings-panel/settings-data.ts-var Bj = "/api/settings", Vj = "/api/follow/schedule", Hj = "/api/thumbnail-jobs", Uj = ["settings"], Wj = ["follow-schedule"], Gj = ["thumbnail-jobs"], Iue = (e) => G(Bj, e), Kj = (e) => G(Vj, e), qj = (e) => G(Hj, e);-function Lue(e = z) {- return e.fetchQuery({- queryKey: Wj,- queryFn: ({ signal: e }) => Kj(e),- staleTime: 0- }).catch(() => null), e.fetchQuery({- queryKey: Gj,- queryFn: ({ signal: e }) => qj(e),- staleTime: 0- }).catch(() => null), e.fetchQuery({- queryKey: Uj,- queryFn: ({ signal: e }) => Iue(e),- staleTime: 0- }).catch(() => null);-}-function Jj() {- return kS({- mutationFn: (e) => K(Bj, e),- onSuccess: (e) => z.setQueryData(Uj, e)- });-}-function Rue() {- return kS({- mutationFn: (e) => K(Vj, {- enabled: e > 0,- interval_minutes: e || 60- }),- onSuccess: (e) => z.setQueryData(Wj, e)- });-}-function zue() {- return kS({- mutationFn: (e) => K(Hj, { mode: e }),- onSuccess: (e) => z.setQueryData(Gj, e)- });-}-function Bue(e) {- return e.available ? e.running ? "正在检查全部来源…" : e.last_error ? `上次失败:${e.last_error}` : e.last_finished_at ? `上次完成 ${gj(e.last_finished_at)} · 新增 ${e.last_added || 0}` : e.next_run_at ? `下次 ${gj(e.next_run_at)}` : e.enabled ? "等待首次运行" : "已关闭" : "只在账本写入端运行";-}-function Vue(e) {- return e.status === "running" ? "正在采集,进度在活动页查看。" : e.status === "failed" ? `上一轮采集停下了:${e.stopped || "原因未取得"}` : e.status === "complete" ? e.stopped ? "上一轮采集已按停。" : "上一轮采集已完成。" : e.mode === "off" ? "关闭时不采集;已经生成的图留在盘上,清理走数据管理页。" : "选定档位后从最近看过的片子开始采集。";-}-//#endregion-//#region src/react/data-cleanup/organize.ts-var Hue = "/api/organize", Uue = "/api/organize/preview", Wue = "/api/organize/apply", Gue = "/api/organize/rollback", Yj = ["organize"], Xj = (e) => G(Hue, e);-async function Kue(e) {- await z.fetchQuery({- queryKey: Yj,- queryFn: () => Xj(e)- });-}-var que = (e) => K(Uue, e), Jue = (e) => e.kind === "apply" ? K(Wue, {- ...e.request,- confirm: !0-}) : K(Gue, { confirm: !0 });-async function Yue(e) {- z.setQueryData(Yj, (t) => t && {- ...t,- templates: e- });- try {- await K(Bj, { organizeTemplates: e });- } catch {}-}-var Xue = (e, t) => e && {- ...e,- ...t-}, Zue = /目录模板|分隔符|盘符|`\.`/;-function Zj(e) {- let t = String(e || "");- return t.slice(Math.max(t.lastIndexOf("\\"), t.lastIndexOf("/")) + 1);-}-var Qj = (e) => Number(e || 0).toLocaleString();-function Que(e) {- let t = Object.entries(e.reasons || {}).sort((e, t) => t[1] - e[1]).map(([e, t]) => `${e} ${Qj(t)}`).join(" · ");- return Number(e.counts?.change || 0) ? `${Qj(e.counts.change)} 个文件会改名或移动,${Qj(e.counts.unchanged)} 个已经就是目标名字${t ? `;跳过 ${t}` : ""}。` : `没有要改的文件。${t ? `跳过:${t}。` : ""}`;-}-function $j(e) {- let t = e.restored !== void 0, n = Number(e.failed || 0), r = Number(t ? e.restored : e.moved || 0);- return {- text: t ? `已退回 ${Qj(r)} 个文件${n ? `,${Qj(n)} 行未能退回` : ""}。` : `已整理 ${Qj(r)} 个文件${n ? `,${Qj(n)} 行未能处理` : ""}。`,- failed: n,- rollback: t- };-}-//#endregion-//#region src/react/data-cleanup/resource-sync.ts-var eM = "/api/resource-sync/scan", tM = "/api/resource-sync/apply", nM = ["resource-sync", "scan"], rM = ["resource-sync", "apply"], iM = (e) => K(eM, {- background: !0,- status_only: !0-}, "POST", e), $ue = () => K(eM, {- background: !0,- restart: !0-}), aM = (e) => G(tM, e), ede = (e) => K(tM, {- confirm: !0,- clean_cache: !0,- scan_id: e,- background: !0-}), oM = (e) => (e?.sources ?? []).some((e) => Vle.includes(e.location) && Array.isArray(e.roots) && e.roots.length > 0);-async function tde(e) {- oM(z.getQueryData(tt)) && await Promise.all([z.fetchQuery({- queryKey: nM,- queryFn: () => iM(e)- }), z.fetchQuery({- queryKey: rM,- queryFn: () => aM(e)- })]);-}-var nde = (e) => !!(e?.missing || e?.empty || e?.cache?.files), rde = {- local: "本地磁盘",- 115: "115",- pikpak: "PikPak"-}, sM = (e) => Number(e || 0).toLocaleString(), ide = (e) => e.total_sources ? `已扫描 ${e.completed_sources || 0}/${e.total_sources} 个来源` : "正在扫描来源", cM = (e) => e.purge ?? Number(e.missing || 0) - Number(e.vanish || 0), lM = (e) => e.vanish ? `${sM(e.vanish)} 条带个人记录的标为已消失,记录留着,可在孤儿记录里接到新文件或彻底删除。` : "", uM = (e) => e.vanish ? "这几样不可撤销。" : "这一步不可撤销。", ade = (e) => `将永久删除文件已不在盘上的 ${sM(cM(e))} 条记录和 ${sM(e.empty)} 个空文件夹,并清理 ${sM(e.cache?.files)} 个闲置缓存。${uM(e)}${lM(e)}`, ode = (e) => `将永久删除文件已不在盘上的 ${sM(cM(e))} 条记录(含回收站里的)、${sM(e.empty)} 个空文件夹,并清理 ${sM(e.cache?.files)} 个闲置缓存。来源根目录保留。${uM(e)}${lM(e)}`, sde = (e) => e.online ? [- `找不到文件 · 共 ${sM(e.total)} 项`,- e.vanish ? `${sM(e.vanish)} 项带个人记录` : "",- e.empty ? `空文件夹 ${sM(e.empty)} 个` : "",- e.unreadable ? `${sM(e.unreadable)} 个目录读取失败,已跳过` : ""-].filter(Boolean).join(" · ") : `馆藏中有 ${sM(e.total)} 项`;-function dM(e) {- let t = e.blocked ?? [], n = Number(e.dir_errors || 0), r = e.cache_blocked ?? [], i = Number(e.purged || 0) + Number(e.vanished || 0) + Number(e.reattached || 0) + Number(e.dirs_removed || 0) + Number(e.cache_removed || 0), a = t.length + n + r.length, o = t.slice(0, 3).map((e) => `「${e.name}」`).join("、") + (t.length > 3 ? " 等" : "");- return {- done: i,- left: a,- rest: [- t.length ? `${sM(t.length)} 条记录没有删除(${o})` : "",- n ? `${sM(n)} 个文件夹没有删除` : "",- r.length ? `${sM(r.length)} 个缓存没有清理` : ""- ].filter(Boolean).join(",")- };-}-var cde = (e, t) => {- let { rest: n } = dM(e), r = `已永久删除 ${sM(e.purged)} 条失效记录和 ${sM(e.dirs_removed)} 个空文件夹,清理 ${sM(e.cache_removed)} 个缓存,释放 ${t(e.bytes_reclaimed || 0)}。` + (e.vanished ? `${sM(e.vanished)} 条带个人记录的已标为已消失,可在孤儿记录里处理。` : "") + (e.reattached ? `${sM(e.reattached)} 条的记录已接到库里的另一个版本。` : "");- return n ? `${r}${n},重新检查后可再试。` : r;-}, lde = "/api/review?counts=1", fM = ["review", "counts"], ude = "/api/ads?limit=1", pM = ["junk-summary"], mM = "/api/items?state=trash&limit=1", hM = ["trash-summary"], dde = [- ["video", "视频"],- ["image", "图片"],- ["archive", "压缩包"],- ["audio", "音频"],- ["url", "网址"],- ["other", "其它"]-], gM = (e) => G(lde, e), _M = (e) => G(ude, e), vM = (e) => {- let t = sessionStorage.getItem("peach.library");- return G(t ? `${mM}&library=${encodeURIComponent(t)}` : mM, e);-}, yM = (e) => Number(e || 0).toLocaleString();-function fde(e) {- let t = vj, n = Object.entries(e?.counts ?? {}).map(([e, n]) => [t[e] || e, Number(n) || 0]).filter(([, e]) => e > 0).sort((e, t) => t[1] - e[1]), r = n.reduce((e, [, t]) => e + t, 0), i = n.slice(0, 3).map(([e, t]) => `${e} ${t.toLocaleString()}`), a = n.slice(3).reduce((e, [, t]) => e + t, 0);- return a && i.push(`其余 ${a.toLocaleString()}`), {- figure: `${r.toLocaleString()} 条待复核`,- meta: i.join(" · ")- };-}-function pde(e) {- if (!e) return "";- let t = dde.filter(([t]) => Number(e.counts?.[t]) > 0).map(([t, n]) => `${n} ${yM(e.counts[t])}`);- return Number(e.dismissed_total) > 0 && t.push(`已忽略 ${yM(e.dismissed_total)}`), t.join(" · ");-}-var mde = [- [fM, ({ signal: e }) => gM(e)],- [dj, ({ signal: e }) => fj(e)],- [hM, ({ signal: e }) => vM(e)],- [jj, ({ signal: e }) => Ij(e)],- [Mj, ({ signal: e }) => Lj(e)],- [Nj, ({ signal: e }) => Rj(e)]-];-async function hde(e) {- let t = location.hash === "#resource-sync", n = mde.map(([n, r]) => {- if (t) return z.fetchQuery({- queryKey: n,- queryFn: () => r({ signal: e })- }).catch(() => void 0);- z.getQueryState(n) && z.prefetchQuery({- queryKey: n,- queryFn: r- });- });- await Promise.all([- ...n,- z.fetchQuery({- queryKey: pM,- queryFn: () => _M(e)- }),- z.fetchQuery({- queryKey: GA,- queryFn: () => qA(e)- }),- WA(e).then(() => tde(e)),- ej(e),- iue(e),- Kue(e)- ]);-}-//#endregion-//#region src/react/components/stat-card.tsx-var gde = [- "text-chart-6",- "text-chart-5",- "text-chart-7",- "text-chart-8"-], _de = [- "bg-chart-6/10",- "bg-chart-5/10",- "bg-chart-7/10",- "bg-chart-8/10"-];-function bM(e = {}) {- return `${DE({- ...e,- padding: "none"- })} flex flex-col overflow-hidden pt-4 text-left`;-}-var xM = "inline-grid w-full grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4", vde = "inline-grid w-full grid-cols-2 gap-3 sm:grid-cols-3 sm:gap-4 xl:grid-cols-6";-function SM({ interactive: e = !1 } = {}) {- return DE({- padding: "none",- radius: "plain",- interactive: e,- className: "flex min-h-33 flex-col gap-2 p-4 text-left"- });-}-var yde = "inline-grid w-full grid-cols-5 gap-4 max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1";-function CM({ label: e, icon: t, mark: n, aside: r, figure: i, meta: a, wrapMeta: o = !1 }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 items-center gap-2 text-body-medium text-text-secondary",- children: [- t || n ? /* @__PURE__ */ (0, V.jsx)("i", {- "aria-hidden": !0,- className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-background-primary-default text-text-primary",- children: t ? /* @__PURE__ */ (0, V.jsx)(t, {- "aria-hidden": !0,- className: "size-4"- }) : n- }) : null,- /* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 truncate",- children: e- }),- r ? /* @__PURE__ */ (0, V.jsx)("span", {- className: "ml-auto shrink-0 text-caption-1-regular",- children: r- }) : null- ]- }),- /* @__PURE__ */ (0, V.jsx)("strong", {- className: "block text-title-1-medium tabular-nums text-text-primary",- children: i- }),- /* @__PURE__ */ (0, V.jsx)("span", {- className: `block min-h-4 text-caption-1-regular text-text-tertiary ${o ? "" : "truncate"}`,- children: a- })- ] });-}-function wM({ label: e, icon: t, accent: n = 0, figure: r, footer: i }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 items-center gap-2 px-4 text-body-regular text-text-secondary max-sm:gap-1.5 max-sm:px-3",- children: [t ? /* @__PURE__ */ (0, V.jsx)("i", {- "aria-hidden": !0,- className: `flex size-7 shrink-0 items-center justify-center rounded-lg max-sm:size-6 ${gde[n % 4]} ${_de[n % 4]}`,- children: /* @__PURE__ */ (0, V.jsx)(t, {- "aria-hidden": !0,- className: "size-4"- })- }) : null, /* @__PURE__ */ (0, V.jsx)("span", {- className: "min-w-0 truncate",- children: e- })]- }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "px-4 pt-3 pb-4 text-title-1-medium tabular-nums text-text-primary max-sm:px-3 max-sm:pb-3",- children: r- }),- /* @__PURE__ */ (0, V.jsx)("small", {- className: "mt-auto block min-h-9.5 bg-card-footer px-4 py-2.5 text-caption-1-regular text-text-secondary max-sm:px-3 max-sm:py-2",- children: i- })- ] });-}-//#endregion-//#region src/react/components/menu-dialog.tsx-function TM(e) {- let t = pA("hover");- return /* @__PURE__ */ (0, V.jsx)(AO, {- ...e,- ref: t- });-}-({- medium: "h-9 rounded-2lg p-2 text-body-medium",- small: "h-8 rounded-lg px-2 py-1.5 text-body-medium"-}).medium;-//#endregion-//#region src/management.ts-var bde = "扫描媒体文件夹,导入已有资料,采集缺失信息。两段也可以分开跑:新盘刚接上时先只扫描,几万个文件登记完就能用;采集被网络拖住时只重跑采集,不必再扫一遍磁盘。", xde = "修缺时间戳表(播放卡顿)和缺索引(打不开)的 MP4。常看的片子先修。", Sde = DE({- padding: "none",- bordered: "line",- className: "overflow-hidden"-}), Cde = {- split: "min-w-0 p-6",- stack: "flex min-h-30 min-w-0 flex-1 flex-col px-5 pt-5 pb-4 max-cleanup-tight:min-h-0 max-cleanup-tight:p-4.5"-}, wde = {- split: "flex flex-wrap items-center justify-end gap-2 self-stretch p-6 max-[1001px]:justify-start max-[1001px]:pt-0",- stack: "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t border-border-button-default bg-card-footer px-5 py-3 max-cleanup-tight:px-4.5"-}, Tde = "flex min-h-14 flex-wrap items-center justify-end gap-2 border-t px-5 py-3", Ede = {- neutral: "border-border-button-default bg-card-footer",- error: "border-border-error-default bg-background-tertiary-error"-}, Dde = DE({- padding: "none",- radius: "surface",- bordered: "line",- className: "overflow-hidden"-}), EM = "border-t border-border-button-default p-4 first:border-t-0";-function DM({ tone: e = "neutral", status: t, children: n }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: `${Tde} ${Ede[e]}`,- children: [t ? /* @__PURE__ */ (0, V.jsx)("p", {- className: `mr-auto min-w-0 text-caption-1-regular ${e === "error" ? "text-text-error-primary" : "text-text-secondary"}`,- children: t- }) : null, n]- });-}-function OM({ id: e, children: t }) {- return /* @__PURE__ */ (0, V.jsx)("h2", {- id: e,- className: "text-title-2-medium! m-0! text-text-primary",- children: t- });-}-function kM({ id: e, gap: t = "none", children: n }) {- return /* @__PURE__ */ (0, V.jsx)("h3", {- id: e,- className: `text-title-2-medium text-text-primary ${t === "medium" ? "mb-3" : t === "small" ? "mb-2" : ""}`,- children: n- });-}-function AM({ layout: e, label: t, labelledBy: n, id: r, footer: i, children: a, attributes: o }) {- return /* @__PURE__ */ (0, V.jsxs)("section", {- id: r,- "aria-label": t,- "aria-labelledby": n,- ...o,- className: `${Sde} ${e === "split" ? "fieldset-split" : "flex flex-col"}`,- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: Cde[e],- children: a- }), i ? /* @__PURE__ */ (0, V.jsx)("footer", {- className: wde[e],- children: i- }) : null]- });-}-//#endregion-//#region src/react/components/overlay-scrollbar.ts-function jM() {- let e = (0, B.useRef)(null);- return (0, B.useEffect)(() => {- Ce(e.current);- }), e;-}-//#endregion-//#region src/react/boardui/components/base/buttons/icon-button.tsx-var MM = SE({- base: [- "relative inline-flex shrink-0 items-center justify-center overflow-visible rounded-2lg",- "bg-background-primary-default text-foreground-icon-primary",- "border border-border-button-default shadow-xs",- "select-none cursor-pointer",- "transition-[background-color,border-color,box-shadow,color] duration-150 ease",- "outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-border-focus-ring",- "hover:bg-background-primary-hover hover:border-border-button-hover",- "active:bg-background-primary-active active:border-border-button-active",- "disabled:cursor-not-allowed disabled:bg-background-primary-disabled disabled:border-border-button-default disabled:text-icon-button-disabled-foreground disabled:opacity-60 disabled:shadow-none"- ].join(" "),- size: {- medium: "size-9",- small: "size-8"- },- icon: {- medium: "size-5 shrink-0",- small: "size-4 shrink-0"}-});-function NM({ icon: e, size: t = "medium", className: n, type: r = "button", ref: i, ...a }) {- return /* @__PURE__ */ (0, V.jsx)("button", {- ref: i,- type: r,- className: xE(MM.base, MM.size[t], n),- ...a,- children: /* @__PURE__ */ (0, V.jsx)(e, {- className: MM.icon[t],- "aria-hidden": !0- })- });-}-//#endregion-//#region src/react/components/path-line.tsx-function Ode({ className: e }) {- return /* @__PURE__ */ (0, V.jsx)("svg", {- "aria-hidden": !0,- viewBox: "0 0 24 24",- fill: "none",- stroke: "currentColor",- strokeWidth: 2,- strokeLinecap: "round",- strokeLinejoin: "round",- className: e,- children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-open" })- });-}-var kde = "打开文件管理器失败,请重试";-function PM({ path: e, prefix: t, className: n, onRevealed: r }) {- let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(""), c = (0, B.useRef)(!0);- (0, B.useEffect)(() => () => {- c.current = !1;- }, []);- let l = async () => {- if (!i) {- a(!0), s("");- try {- await K("/api/reveal", { path: e }), r?.("已在资源管理器中显示");- } catch (e) {- c.current && s(e instanceof MS ? e.message : kde);- } finally {- c.current && a(!1);+ function Gp(e) {+ this._fragmentFiber = e, this._observers = this._eventListeners = null;+ }+ Gp.prototype.addEventListener = function(e, t, n) {+ var r = null, i = null;+ if (!(n != null && typeof n != "boolean" && (r = n.signal || null, r !== null && r.aborted))) {+ this._eventListeners === null && (this._eventListeners = []);+ var a = this._eventListeners;+ if (Xp(a, e, t, n) === -1) {+ var o = this, s = t;+ n != null && typeof n != "boolean" && !0 === n.once && (s = function(r) {+ o.removeEventListener(e, t, n), typeof t == "function" ? t.call(this, r) : t.handleEvent(r);+ }), r !== null && (i = o.removeEventListener.bind(o, e, t, n), r.addEventListener("abort", i, { once: !0 }), i = r.removeEventListener.bind(r, "abort", i)), r = Jp(n), a.push({+ type: e,+ listener: t,+ optionsOrUseCapture: n,+ attachedListener: s,+ cleanup: i+ }), f(this._fragmentFiber.child, !1, Kp, e, s, r);}+ this._eventListeners = a;}};- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex items-center justify-between gap-2",- children: [/* @__PURE__ */ (0, V.jsxs)("p", {- className: xE("min-w-0 break-all", n),- children: [t, e]- }), /* @__PURE__ */ (0, V.jsx)(NM, {- icon: Ode,- size: "small",- className: "shrink-0",- "aria-label": "在资源管理器中显示",- onClick: () => void l(),- ...X(i)- })]- }), o ? /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-error-primary",- children: o- }) : null]- });-}-//#endregion-//#region src/react/components/task-progress.tsx-function FM({ label: e, value: t = 0, total: n, embedded: r = !1 }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-task-progress": !0,- className: r ? "flex flex-col gap-1.5" : DE({- variant: "outlined",- padding: "none",- className: "flex flex-col gap-1.5 px-4 py-3.5"- }),- children: n && n > 0 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(ME, {- label: e,- value: t,- max: n- }), /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: e- })] }) : /* @__PURE__ */ (0, V.jsx)(kE, { label: e })- });-}-//#endregion-//#region src/react/library-processing/use-library-processing.ts-function IM({ toast: e, mode: t, monitor: n }) {- let r = t === "notice" || !!n, i = ES({- queryKey: QA,- queryFn: ({ signal: e }) => $A(e),- refetchInterval: (e) => Zle(e.state.data, r)- }), [a, o] = (0, B.useState)(null), s = (0, B.useRef)(void 0), c = i.data;- return (0, B.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") && nue(c, e, r);- }, [- c,- t,- e- ]), {- job: i,- settled: a,- forget: () => o(null)+ function Kp(e, t, n, r) {+ return _(e).addEventListener(t, n, r), !1;+ }+ Gp.prototype.removeEventListener = function(e, t, n) {+ var r = this._eventListeners;+ if (r !== null && (t = Xp(r, e, t, n), t !== -1)) {+ var i = r[t];+ n = i.attachedListener;+ var a = i.cleanup;+ i = Jp(i.optionsOrUseCapture), f(this._fragmentFiber.child, !1, qp, e, n, i), r.splice(t, 1), a !== null && a();+ }};-}-//#endregion-//#region src/react/library-processing/library-processing-card.tsx-var Ade = [- {- label: "扫描并补全资料",- icon: yT,- command: {}- },- {- label: "只扫描",- icon: CT,- command: { stage: "scan" }- },- {- label: "只采集",- icon: dae,- command: { stage: "collect" }+ function qp(e, t, n, r) {+ return _(e).removeEventListener(t, n, r), !1;}-], jde = xE(Sk, Ck, "text-body-2-medium"), Mde = "这一项耗时较长,暂时没有新进展。任务结束后可以重试未完成的部分。", Nde = (e) => {- let t = e.performer_aliases || 0, n = e.performer_avatars || 0, r = e.performer_profile_conflicts || 0, i = e.performer_profile_failed || 0;- if (!t && !n && !r && !i) return "";- let a = [`补齐女优资料:别名 ${t} 个,头像 ${n} 张`];- return r && a.push(`${r} 个同名冲突交回人工`), i && a.push(`${i} 张头像未取得`), `${a.join(",")}。`;-}, Pde = (e) => `已扫描 ${e.scanned || 0} 个文件,识别 ${e.identified || 0} 个番号,整理 ${e.candidates || 0} 组资料候选,自动落库 ${e.auto_applied || 0} 条。` + Nde(e);-function Fde({ busy: e, onRun: t }) {- let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1), a = (n) => {- e || (i(!1), t(n));+ function Jp(e) {+ return e != null && typeof e != "boolean" && (!0 === e.once || e.signal instanceof AbortSignal) ? {+ capture: e.capture,+ passive: e.passive+ } : e;+ }+ function Yp(e) {+ return e == null ? "c=0" : typeof e == "boolean" ? "c=" + (e ? "1" : "0") : "c=" + (e.capture ? "1" : "0");+ }+ function Xp(e, t, n, r) {+ if (e.length === 0) return -1;+ r = Yp(r);+ for (var i = 0; i < e.length; i++) {+ var a = e[i];+ if (a.type === t && a.listener === n && Yp(a.optionsOrUseCapture) === r) return i;+ }+ return -1;+ }+ Gp.prototype.dispatchEvent = function(e) {+ var t = p(this._fragmentFiber);+ if (t === null) return !0;+ t = _(t);+ var n = this._eventListeners;+ if (n !== null && 0 < n.length || !e.bubbles) {+ var r = t.nodeType === 9 ? t.createComment("") : document.createTextNode("");+ if (n) for (var i = 0; i < n.length; i++) {+ var a = n[i];+ r.addEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));+ }+ if (t.appendChild(r), e = r.dispatchEvent(e), n) for (i = 0; i < n.length; i++) a = n[i], r.removeEventListener(a.type, a.attachedListener, Jp(a.optionsOrUseCapture));+ return t.removeChild(r), e;+ }+ return t.dispatchEvent(e);+ }, Gp.prototype.focus = function(e) {+ f(this._fragmentFiber.child, !0, Zp, e, void 0, void 0);};- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("span", {- "data-button-group": !0,- "data-split-button": !0,- "data-variant": "primary",- children: [/* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: yT,- onClick: () => a({}),- ...X(e),- children: "扫描并补全资料"- }), /* @__PURE__ */ (0, V.jsx)(J, {- ref: n,- iconOnly: !0,- leadingIcon: dT,- "aria-label": "更多扫描与采集方式",- "aria-haspopup": "dialog",- "aria-expanded": r,- ...X(e),- onClick: () => {- e || i(!0);+ function Zp(e, t) {+ return e.tag !== 6 && (e = _(e), Cm(e, t));+ }+ Gp.prototype.focusLast = function(e) {+ var t = [];+ f(this._fragmentFiber.child, !0, Qp, t, void 0, void 0);+ for (var n = t.length - 1; 0 <= n && !Zp(t[n], e); n--);+ };+ function Qp(e, t) {+ return t.push(e), !1;+ }+ Gp.prototype.blur = function() {+ var e = p(this._fragmentFiber);+ e !== null && (e = _(e), e = bp(e).activeElement, e !== null && f(this._fragmentFiber.child, !1, $p, e, void 0, void 0));+ };+ function $p(e, t) {+ return e.tag !== 6 && (e = _(e), e === t || e.contains(t) ? (t.blur(), !0) : !1);+ }+ Gp.prototype.observeUsing = function(e) {+ this._observers === null && (this._observers = /* @__PURE__ */ new Set()), this._observers.add(e), f(this._fragmentFiber.child, !1, em, e, void 0, void 0);+ };+ function em(e, t) {+ return e.tag !== 6 && (e = _(e), t.observe(e), !1);+ }+ Gp.prototype.unobserveUsing = function(e) {+ var t = this._observers;+ if (t !== null && t.has(e)) {+ t.delete(e), f(this._fragmentFiber.child, !1, tm, e, void 0, void 0);+ for (var n = t = 0; n < nm.length; n++) {+ var r = nm[n];+ r.fragmentInstance === this && r.observer === e ? e.unobserve(r.instance) : nm[t++] = r;}- })]- }), /* @__PURE__ */ (0, V.jsx)(yO, {- triggerRef: n,- isOpen: r,- onOpenChange: i,- placement: "bottom end",- offset: 4,- className: xk,- children: /* @__PURE__ */ (0, V.jsx)(TM, {- "aria-label": "更多扫描与采集方式",- className: "flex w-52 flex-col gap-1 outline-none",- children: Ade.map(({ label: e, icon: t, command: n }) => /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- className: jde,- onClick: () => a(n),- children: [/* @__PURE__ */ (0, V.jsx)(t, {- "aria-hidden": !0,- className: "size-4 shrink-0"- }), e]- }, e))- })- })] });-}-function Ide({ state: e, problem: t, settled: n, onRetry: r, toast: i }) {- let a = eue(e), o = e.status === "failed" && !!e.retryable_asset_ids?.length, s = $le(e.notes || {}), c = jM();- return /* @__PURE__ */ (0, V.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-4 empty:hidden",- children: [- e.status === "running" && e.stalled ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "warning",- title: "处理较慢",- children: Mde- }) : null,- t || e.status === "failed" ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- action: o ? /* @__PURE__ */ (0, V.jsx)(J, {- variant: "primary",- size: "small",- onClick: r,- children: "重试未完成项"- }) : null,- extra: a ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "mt-1.5 border-t border-current/20 pt-1.5",- children: /* @__PURE__ */ (0, V.jsxs)(Hk, {- summary: a.label,- children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: "relative",- children: /* @__PURE__ */ (0, V.jsx)("ul", {- ref: c,- className: "max-h-96 overflow-y-auto pr-3",- children: a.items.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {- className: "flex flex-col gap-0.5 border-b border-current/15 py-2 first:pt-1 last:border-b-0 last:pb-1",- children: [- e.href ? /* @__PURE__ */ (0, V.jsx)("a", {- href: e.href,- className: "text-body-2-medium underline-offset-4 hover:underline",- children: e.label- }) : /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-body-2-medium",- children: e.label- }),- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular",- children: e.note- }),- e.hint ? /* @__PURE__ */ (0, V.jsx)("code", {- className: "text-caption-1-regular break-all",- children: e.hint- }) : null- ]- }, e.key))- })- }), a.log ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "mt-2 border-t border-current/20 pt-2 text-text-secondary",- children: /* @__PURE__ */ (0, V.jsx)(PM, {- path: a.log,- prefix: "完整记录:",- className: "text-caption-1-regular",- onRevealed: i- })- }) : null]- })- }) : null,- children: t || e.error || "处理未完成,请重试"- }) : null,- n?.status === "complete" ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "success",- title: "处理完成",- children: Pde(n)- }) : null,- e.status !== "running" && s ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- extra: e.issues_log ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "mt-1.5 border-t border-current/20 pt-1.5 text-text-secondary",- children: /* @__PURE__ */ (0, V.jsx)(PM, {- path: e.issues_log,- prefix: "完整记录:",- className: "text-caption-1-regular",- onRevealed: i- })- }) : null,- children: s- }) : null- ]- });-}-function LM(e) {- let { toast: t, onComplete: n } = e, { job: r, settled: i, forget: a } = IM(e), o = kS({- mutationFn: (e) => K(ZA, e),- onSuccess: (e) => {- a(), z.setQueryData(QA, e), z.invalidateQueries({ queryKey: QA });+ nm.length = t;+ }+ };+ function tm(e, t) {+ return e.tag !== 6 && (e = _(e), t.unobserve(e), !1);+ }+ var nm = [], rm = !1;+ function im(e, t, n) {+ nm.push({+ fragmentInstance: e,+ observer: t,+ instance: n+ }), rm || (rm = !0, wm(function() {+ rm = !1;+ var e = nm;+ nm = [];+ for (var t = 0; t < e.length; t++) {+ var n = e[t];+ n.observer.unobserve(n.instance);+ }+ }));+ }+ Gp.prototype.getClientRects = function() {+ var e = [];+ return f(this._fragmentFiber.child, !1, am, e, void 0, void 0), e;+ };+ function am(e, t) {+ if (e.tag === 6) {+ e = e.stateNode;+ var n = e.ownerDocument.createRange();+ n.selectNodeContents(e), t.push.apply(t, n.getClientRects());+ } else e = _(e), t.push.apply(t, e.getClientRects());+ return !1;+ }+ Gp.prototype.getRootNode = function(e) {+ var t = p(this._fragmentFiber);+ return t === null ? this : _(t).getRootNode(e);+ }, Gp.prototype.compareDocumentPosition = function(e) {+ var t = p(this._fragmentFiber);+ if (t === null) return Node.DOCUMENT_POSITION_DISCONNECTED;+ var n = [];+ f(this._fragmentFiber.child, !1, Qp, n, void 0, void 0);+ var r = _(t);+ if (n.length === 0) {+ if (n = r, m(this._fragmentFiber)) {+ a: {+ for (t = this._fragmentFiber.return; t !== null;) {+ if (t.tag === 4) {+ t = t.stateNode.containerInfo;+ break a;+ }+ if (t.tag === 3 || t.tag === 5 || t.tag === 27) break;+ t = t.return;+ }+ t = null;+ }+ t != null && (n = t);+ }+ t = this._fragmentFiber;+ var i = r = n.compareDocumentPosition(e);+ return n === e ? i = Node.DOCUMENT_POSITION_CONTAINS : r & Node.DOCUMENT_POSITION_CONTAINED_BY && (n = h(t)[1], n === null ? i = Node.DOCUMENT_POSITION_PRECEDING : (e = _(n).compareDocumentPosition(e), i = e === 0 || e & Node.DOCUMENT_POSITION_FOLLOWING ? Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_PRECEDING)), i |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;+ }+ t = _(n[0]), i = _(n[n.length - 1]);+ var a = m(this._fragmentFiber) ? t.parentElement : r;+ if (a == null) return Node.DOCUMENT_POSITION_DISCONNECTED;+ r = a.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_CONTAINED_BY, a = a.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY;+ var o = t.compareDocumentPosition(e), s = i.compareDocumentPosition(e), c = o & Node.DOCUMENT_POSITION_CONTAINED_BY || s & Node.DOCUMENT_POSITION_CONTAINED_BY;+ return s = r && a && o & Node.DOCUMENT_POSITION_FOLLOWING && s & Node.DOCUMENT_POSITION_PRECEDING, t = r && t === e || a && i === e || c || s ? Node.DOCUMENT_POSITION_CONTAINED_BY : !r && t === e || !a && i === e ? Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC : o, t & Node.DOCUMENT_POSITION_DISCONNECTED || t & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC || om(t, this._fragmentFiber, n[0], n[n.length - 1], e) ? t : Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;+ };+ function om(e, t, n, r, i) {+ var a = kt(i);+ if (e & Node.DOCUMENT_POSITION_CONTAINED_BY) {+ if (n = !!a) a: {+ for (; a !== null;) {+ if (a.tag === 7 && (a === t || a.alternate === t)) {+ n = !0;+ break a;+ }+ a = a.return;+ }+ n = !1;+ }+ return n;+ }+ if (e & Node.DOCUMENT_POSITION_CONTAINS) {+ if (a === null) return a = i.ownerDocument, i === a || i === a.documentElement || i === a.body;+ a: {+ for (a = t, t = p(t); a !== null;) {+ if (!(a.tag !== 5 && a.tag !== 3 && a.tag !== 27 || a !== t && a.alternate !== t)) {+ a = !0;+ break a;+ }+ a = a.return;+ }+ a = !1;+ }+ return a;+ }+ return e & Node.DOCUMENT_POSITION_PRECEDING ? ((t = !!a) && !(t = a === n) && (t = C(n, a, S), t === null ? t = !1 : (f(t, !0, b, a, n), a = v, v = null, t = a !== null)), t) : e & Node.DOCUMENT_POSITION_FOLLOWING ? ((t = !!a) && !(t = a === r) && (t = C(r, a, S), t === null ? t = !1 : (f(t, !0, x, a, r), a = v, y = v = null, t = a !== null)), t) : !1;+ }+ function sm(e, t) {+ var n = e.ownerDocument.createRange();+ n.selectNodeContents(e), e = n.getBoundingClientRect(), window.scrollTo(window.scrollX + e.left, t ? window.scrollY + e.top : window.scrollY + e.bottom - window.innerHeight);+ }+ Gp.prototype.scrollIntoView = function(e) {+ if (typeof e == "object") throw Error(i(566));+ var t = [];+ f(this._fragmentFiber.child, !1, Qp, t, void 0, void 0);+ var n = !1 !== e;+ if (t.length === 0) {+ var r = h(this._fragmentFiber);+ if (r = n ? r[1] || r[0] || p(this._fragmentFiber) : r[0] || r[1], r === null) return;+ if (r.tag === 6) {+ e = _(r), sm(e, n);+ return;+ }+ if (r = _(r), r.nodeType !== 9) {+ if (r.nodeType === 11) {+ n = "host" in r ? r.host : null, n !== null && n.scrollIntoView(e);+ return;+ }+ r.scrollIntoView(e);+ }+ }+ for (r = n ? t.length - 1 : 0; r !== (n ? -1 : t.length);) {+ var a = t[r];+ a.tag === 6 ? (a = _(a), sm(a, n)) : _(a).scrollIntoView(e), r += n ? -1 : 1;+ }+ };+ function cm(e, t) {+ return e = _(e), lm(e, t), !1;+ }+ function lm(e, t) {+ e.reactFragments ??= /* @__PURE__ */ new Set(), e.reactFragments.add(t);+ }+ function um(e, t) {+ var n = t._eventListeners;+ if (n !== null) for (var r = 0; r < n.length; r++) {+ var i = n[r];+ e.addEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));+ }+ e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {+ for (var r = 0, i = 0; i < nm.length; i++) {+ var a = nm[i];+ (a.fragmentInstance !== t || a.observer !== n || a.instance !== e) && (nm[r++] = a);+ }+ nm.length = r, n.observe(e);+ }), lm(e, t));+ }+ function dm(e, t) {+ var n = t._eventListeners;+ if (n !== null) for (var r = 0; r < n.length; r++) {+ var i = n[r];+ e.removeEventListener(i.type, i.attachedListener, Jp(i.optionsOrUseCapture));+ }+ e.nodeType !== 3 && (n = t._observers, n !== null && n.forEach(function(n) {+ typeof n.rootMargin == "string" ? im(t, n, e) : n.unobserve(e);+ }), e.reactFragments != null && e.reactFragments.delete(t));+ }+ function fm(e) {+ var t = e.firstChild;+ for (t && t.nodeType === 10 && (t = t.nextSibling); t;) {+ var n = t;+ switch (t = t.nextSibling, n.nodeName) {+ case "HTML":+ case "HEAD":+ case "BODY":+ fm(n), Dt(n);+ continue;+ case "SCRIPT":+ case "STYLE": continue;+ case "LINK": if (n.rel.toLowerCase() === "stylesheet") continue;+ }+ e.removeChild(n);+ }+ }+ function pm(e, t, n, r) {+ for (; e.nodeType === 1;) {+ var i = n;+ if (e.nodeName.toLowerCase() !== t.toLowerCase()) {+ if (!r && (e.nodeName !== "INPUT" || e.type !== "hidden")) break;+ } else if (!r) {+ if (t === "input" && e.type === "hidden") {+ var a = i.name == null ? null : "" + i.name;+ if (i.type === "hidden" && e.getAttribute("name") === a) return e;+ } else return e;+ } else if (!e[Tt]) switch (t) {+ case "meta":+ if (!e.hasAttribute("itemprop")) break;+ return e;+ case "link":+ if (a = e.getAttribute("rel"), a === "stylesheet" && e.hasAttribute("data-precedence") || a !== i.rel || e.getAttribute("href") !== (i.href == null || i.href === "" ? null : i.href) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin) || e.getAttribute("title") !== (i.title == null ? null : i.title)) break;+ return e;+ case "style":+ if (e.hasAttribute("data-precedence")) break;+ return e;+ case "script":+ if (a = e.getAttribute("src"), (a !== (i.src == null ? null : i.src) || e.getAttribute("type") !== (i.type == null ? null : i.type) || e.getAttribute("crossorigin") !== (i.crossOrigin == null ? null : i.crossOrigin)) && a && e.hasAttribute("async") && !e.hasAttribute("itemprop")) break;+ return e;+ default: return e;+ }+ if (e = ym(e.nextSibling), e === null) break;}- });- (0, B.useEffect)(() => {- i && n?.();- }, [i, n]);- let s = r.data ?? { status: "idle" }, c = o.error ? W(o.error) : r.isError ? r.data ? tj : W(r.error) : "", l = o.isPending || s.status === "running", u = rj(s), d = (e) => {- l || (o.reset(), o.mutate(e));- };- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, V.jsx)(AM, {- layout: "stack",- label: "扫描与采集",- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(jk, {- href: "/scraping",- size: "small",- trailingIcon: fT,- children: "来源和凭证"- }),- s.candidates ? /* @__PURE__ */ (0, V.jsx)(jk, {- href: "/review",- size: "small",- trailingIcon: fT,- children: "复核资料"- }) : null,- /* @__PURE__ */ (0, V.jsx)(Fde, {- busy: l,- onRun: d- })- ] }),- children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-2",- children: [- /* @__PURE__ */ (0, V.jsx)(kM, { children: "扫描与采集" }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: bde- }),- s.status === "running" ? /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: u,- value: s.checked,- total: s.total- }) : null- ]- })- }), /* @__PURE__ */ (0, V.jsx)(Ide, {- state: s,- problem: c,- settled: i,- onRetry: () => {- !s.job_id || !s.retryable_asset_ids?.length || d({- job_id: s.job_id,- retry: s.retryable_asset_ids- });- },- toast: t- })]- });-}-//#endregion-//#region src/react/background-job.ts-var RM = 2e3, Lde = (e) => e, Rde = (e, t) => t;-function zM(e) {- let { queryKey: t, jobOf: n = Lde, withJob: r = Rde, idlePollMs: i } = e, [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(null), l = (0, B.useRef)(e);- (0, B.useEffect)(() => {- l.current = e;- });- let u = ES({- queryKey: t,- queryFn: ({ signal: e }) => l.current.queryFn({ signal: e }),- refetchInterval: (e) => {- let t = e.state.data;- return t !== void 0 && n(t)?.status === "running" ? RM : i ?? !1;+ return null;+ }+ function mm(e, t, n) {+ if (t === "") return null;+ for (; e.nodeType !== 3;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !n || (e = ym(e.nextSibling), e === null)) return null;+ return e;+ }+ function hm(e, t) {+ for (; e.nodeType !== 8;) if ((e.nodeType !== 1 || e.nodeName !== "INPUT" || e.type !== "hidden") && !t || (e = ym(e.nextSibling), e === null)) return null;+ return e;+ }+ function gm(e) {+ return e.data === "$?" || e.data === "$~";+ }+ function _m(e) {+ return e.data === "$!" || e.data === "$?" && e.ownerDocument.readyState !== "loading";+ }+ function vm(e, t) {+ var n = e.ownerDocument;+ if (e.data === "$~") e._reactRetry = t;+ else if (e.data !== "$?" || n.readyState !== "loading") t();+ else {+ var r = function() {+ t(), n.removeEventListener("DOMContentLoaded", r);+ };+ n.addEventListener("DOMContentLoaded", r), e._reactRetry = r;}- }), d = kS({- mutationFn: (e) => l.current.start(e),- onSuccess: (e) => {- o(!0), c(null), l.current.onStarted?.(e), z.setQueryData(t, (t) => r(t, e)), z.invalidateQueries({- queryKey: t,- exact: !0- });- },- onError: (e) => l.current.onError?.(e)- }), f = u.data === void 0 ? void 0 : n(u.data), p = f?.status === "running";- return (0, B.useEffect)(() => {- if (f) {- if (f.status === "running") {- a || o(!0);- return;+ }+ function ym(e) {+ for (; e != null; e = e.nextSibling) {+ var t = e.nodeType;+ if (t === 1 || t === 3) break;+ if (t === 8) {+ if (t = e.data, t === "$" || t === "$!" || t === "$?" || t === "$~" || t === "&" || t === "F!" || t === "F") break;+ if (t === "/$" || t === "/&") return null;}- a && (o(!1), c(f), l.current.onFinish?.(f));}- }, [f, a]), {- query: u,- job: f,- running: p,- outcome: s,- start: d,- dismiss: () => c(null)- };-}-//#endregion-//#region src/react/media-repair/media-repair-card.tsx-var zde = (e) => Se[e] || e, BM = (e) => z.setQueryData(oj, e);-function Bde() {- let e = ES({- queryKey: oj,- queryFn: ({ signal: e }) => cj(e),- refetchInterval: (e) => e.state.data?.status === "running" && RM- }), t = ES({- queryKey: sj,- queryFn: ({ signal: e }) => lj(e)- }), [n, r] = (0, B.useState)(""), i = NE(), a = e.data ?? rue, o = t.data ?? [], s = a.status === "running", c = o.find((e) => e.id === (s ? a.library : n)) ?? o.find((e) => e.id === a.library) ?? o[0], l = () => {- c && Te({- title: `修复媒体库「${c.name}」`,- body: "缺时间戳表的片子另存一份修好的头,原文件不动;缺索引的片子重建后替换原文件,坏原件改名成同目录的隐藏文件(.文件名.peach-original)留着。" + (c.metered ? "这个库在计费来源上,每修一部都要把片子完整拉一遍。" : ""),- confirmLabel: "修复媒体库",- onConfirm: async () => BM(await K(aj, {- library: c.id,- restart: !0- }))- });- }, u = () => void i.run("stop", (e) => K(aj, { stop: !0 }, "POST", e), BM), d = aue(a), f = a.status === "complete", p = i.error || a.error || (e.error ? "读不到媒体修复的状态" : "");- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-4",- children: [/* @__PURE__ */ (0, V.jsx)(AM, {- layout: "split",- label: "媒体修复",- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Tk, {- "aria-label": "媒体库",- className: "w-48",- selectedKey: c?.id ?? null,- isDisabled: s || !o.length,- onSelectionChange: (e) => {- e !== null && r(String(e));- },- children: o.map((e) => /* @__PURE__ */ (0, V.jsxs)(Ek, {- id: e.id,- textValue: e.name,- children: [/* @__PURE__ */ (0, V.jsx)(Uk, { mark: zde(e.icon) }), e.name]- }, e.id))- }), s ? /* @__PURE__ */ (0, V.jsx)(J, {- onClick: u,- ...X(i.busy === "stop"),- children: "停止"- }) : /* @__PURE__ */ (0, V.jsx)(J, {- onClick: l,- disabled: !c,- children: "开始修复"- })] }),- children: /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-2",- children: [- /* @__PURE__ */ (0, V.jsx)(kM, { children: "媒体修复" }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-2-regular text-text-secondary",- children: xde- }),- s && a.total ? /* @__PURE__ */ (0, V.jsx)(ME, {- label: "修复进度",- value: a.checked,- max: a.total- }) : null,- d ? /* @__PURE__ */ (0, V.jsx)("p", {- role: "status",- className: "text-caption-1-regular text-text-secondary",- children: d- }) : null- ]- })- }), /* @__PURE__ */ (0, V.jsxs)("div", {- "aria-live": "polite",- className: "flex flex-col gap-4 empty:hidden",- children: [- f && !a.repaired && !a.failed ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "info",- title: "没有要修的",- children: "这个库里的片子都能直接播。"- }) : null,- f && a.missing_tool ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "warning",- title: "缺少 untrunc",- children: oue(a)- }) : null,- p ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- children: p- }) : null- ]- })]- });-}-//#endregion-//#region src/react/boardui/components/base/checkbox/checkbox-glyph.tsx-var VM = {- md: {- box: "size-4",- glyph: "size-4",- label: "text-body-medium",- gap: "gap-2"- },- sm: {- box: "size-3.5",- glyph: "size-3.5",- label: "text-body-2-medium",- gap: "gap-1.5"+ return e;}-};-function HM({ state: e, size: t = "md" }) {- let { isSelected: n, isIndeterminate: r, isFocusVisible: i, isDisabled: a, isHovered: o } = e, s = VM[t], c = n || r, l = o && !a;- return /* @__PURE__ */ (0, V.jsx)("span", {- "aria-hidden": !0,- className: xE("flex shrink-0 items-center justify-center rounded-sm", "transition-[background-color,border-color,box-shadow] duration-150 ease", s.box, c ? xE("bg-linear-to-b shadow-checkbox-selected", l ? "from-accent-400 to-accent-500" : "from-accent-500 to-accent-600") : xE("border bg-background-primary-default shadow-xs", l ? "border-border-checkbox-hover" : "border-border-checkbox-default"), a && "opacity-50", i && "ring-2 ring-border-focus-ring ring-offset-2"),- children: /* @__PURE__ */ (0, V.jsx)("svg", {- viewBox: "0 0 16 16",- fill: "none",- className: s.glyph,- children: r ? /* @__PURE__ */ (0, V.jsx)("path", {- d: "M4.5 8H8H11.5",- stroke: "white",- strokeWidth: "2",- strokeLinecap: "round"- }) : n ? /* @__PURE__ */ (0, V.jsx)("path", {- d: "M4 7.7002L6.64645 10.3466C6.84171 10.5419 7.15829 10.5419 7.35355 10.3466L12 5.7002",- stroke: "white",- strokeWidth: "2",- strokeLinecap: "round",- strokeLinejoin: "round",- pathLength: 1,- className: "animate-check-draw"- }) : null- })- });-}-//#endregion-//#region src/react/boardui/components/base/checkbox/checkbox.tsx-function UM({ className: e, children: t, size: n = "md", ref: r, ...i }) {- let a = VM[n];- return /* @__PURE__ */ (0, V.jsx)(Foe, {- ref: r,- ...i,- className: (t) => xE("group inline-flex items-center select-none", a.gap, t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),- children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(HM, {- state: e,- size: n- }), t != null && /* @__PURE__ */ (0, V.jsx)("span", {- className: xE(a.label, "text-text-primary"),- children: t- })] })- });-}-//#endregion-//#region src/react/boardui/components/base/table/table.tsx-function WM({ size: e = "md", className: t, containerClassName: n, ref: r, ...i }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- className: xE("w-full overflow-x-auto", n),- children: /* @__PURE__ */ (0, V.jsx)(Use, {- ref: r,- ...i,- className: xE("bui-table", e === "sm" && "bui-table-sm", t)- })- });-}-//#endregion-//#region src/react/components/row-click.ts-var Vde = [- "a",- "button",- "input",- "select",- "textarea",- "label",- "[role=\"checkbox\"]",- "[role=\"switch\"]",- "[role=\"button\"]",- "[role=\"link\"]",- "[role=\"menu\"]"-].join(",");-function GM(e, t) {- let n = e.target;- if (!(n instanceof Element) || !t.contains(n)) return !1;- let r = n.closest(Vde);- return !r || !t.contains(r) || r === t;-}-//#endregion-//#region src/react/components/data-table-frame.tsx-function KM({ children: e, follow: t = !1, onRowClick: n }) {- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-board-data-table": !0,- "data-follow-table": t || void 0,- onClick: n ? (e) => {- let t = e.target;- if (!(t instanceof Element)) return;- let r = t.closest("[role=\"row\"][data-key]");- r && GM(e, r) && n(r.dataset.key);- } : void 0,- children: e- });-}-//#endregion-//#region src/react/data-cleanup/link-manager.tsx-var Hde = xA("unlink"), qM = xA("rotate-cw"), Ude = "站点返回 404 或 410,确认这个地址不存在。", Wde = "站点拒绝程序访问或一次临时故障都会落在这里。链接保留,可勾选后单独重试。", Gde = "删除前会逐条重验一次;此操作不可撤销。", Kde = "暂时无法读取进度,正在重新连接…", JM = (e) => Number(e || 0).toLocaleString();-function YM({ label: e, value: t, note: n }) {- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex min-w-0 flex-col gap-0.5",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular leading-5 text-text-secondary",- children: e- }),- /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-title-2-semibold font-bold leading-5 tabular-nums text-text-primary",- children: t- }),- n ? /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular leading-5 text-text-secondary",- children: n- }) : null- ]- });-}-function XM({ title: e, items: t, hint: n, picked: r, onPick: i, children: a }) {- if (!t.length) return null;- let o = r ?? [], s = o.length > 0 && o.length === t.length;- return /* @__PURE__ */ (0, V.jsxs)("div", {- className: EM,- children: [- /* @__PURE__ */ (0, V.jsxs)("h4", {- className: "mb-1 text-body-semibold text-text-primary",- children: [e, /* @__PURE__ */ (0, V.jsx)("b", {- className: "ml-1.5 font-semibold tabular-nums text-text-secondary",- children: t.length- })]- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "mb-3 text-caption-1-regular text-text-secondary",- children: n- }),- /* @__PURE__ */ (0, V.jsx)(KM, { children: /* @__PURE__ */ (0, V.jsxs)(WM, {- "aria-label": e,- size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(ek, { children: [- i ? /* @__PURE__ */ (0, V.jsx)(tk, {- id: "pick",- children: /* @__PURE__ */ (0, V.jsx)(UM, {- slot: null,- "aria-label": "全选本次未访问成功的链接",- isSelected: s,- isIndeterminate: o.length > 0 && !s,- onChange: (e) => i(e ? t.map((e) => e.id) : [])- })- }) : null,- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "entity",- isRowHeader: !0,- children: "所属"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "kind",- children: "类型"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "label",- children: "标签"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "note",- children: "结果"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "url",- children: "地址"- })- ] }), /* @__PURE__ */ (0, V.jsx)(rk, { children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(ok, {- id: e.id,- children: [- i ? /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)(UM, {- slot: null,- "aria-label": `选择 ${e.entity} 的${e.label || e.url}`,- isSelected: o.includes(e.id),- onChange: (t) => i(t ? [...o, e.id] : o.filter((t) => t !== e.id))- }) }) : null,- /* @__PURE__ */ (0, V.jsx)(ck, { children: e.entity }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: Pj[e.link_kind] || e.link_kind }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: e.label || "" }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)("span", {- className: "tabular-nums text-text-error-primary",- children: e.note- }) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsxs)("a", {- href: e.url,- target: "_blank",- rel: "noreferrer",- title: e.url,- className: "flex max-w-90 min-w-0 items-center gap-1 text-text-secondary hover:text-text-primary",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- "data-middle-truncate": !0,- className: "min-w-0 truncate",- children: e.url- }), /* @__PURE__ */ (0, V.jsx)(xT, {- "aria-hidden": !0,- className: "size-3.5 shrink-0"- })]- }) })- ]- }, e.id)) })]- }) }),- a- ]- });-}-function qde() {- let e = ES({- queryKey: jj,- queryFn: ({ signal: e }) => Ij(e)- }), [t, n] = (0, B.useState)([]), r = zM({- queryKey: Nj,- queryFn: ({ signal: e }) => Rj(e),- start: Nue,- onFinish: () => {- z.invalidateQueries({- queryKey: jj,- exact: !0- }), z.invalidateQueries({- queryKey: Mj,- exact: !0+ var bm = null;+ function xm(e) {+ e = e.nextSibling;+ for (var t = 0; e;) {+ if (e.nodeType === 8) {+ var n = e.data;+ if (n === "/$" || n === "/&") {+ if (t === 0) return ym(e.nextSibling);+ t--;+ } else n !== "$" && n !== "$!" && n !== "$?" && n !== "$~" && n !== "&" || t++;+ }+ e = e.nextSibling;+ }+ return null;+ }+ function Sm(e) {+ e = e.previousSibling;+ for (var t = 0; e;) {+ if (e.nodeType === 8) {+ var n = e.data;+ if (n === "$" || n === "$!" || n === "$?" || n === "$~" || n === "&") {+ if (t === 0) return e;+ t--;+ } else n !== "/$" && n !== "/&" || t++;+ }+ e = e.previousSibling;+ }+ return null;+ }+ function Cm(e, t) {+ function n() {+ r = !0;+ }+ if (e.ownerDocument.activeElement === e) return !0;+ var r = !1;+ try {+ e.ownerDocument.addEventListener("focus", n, !0), (e.focus || HTMLElement.prototype.focus).call(e, t);+ } finally {+ e.ownerDocument.removeEventListener("focus", n, !0);+ }+ return r;+ }+ function wm(e) {+ H(function() {+ H(function(t) {+ return e(t);});+ });+ }+ function Tm(e, t, n) {+ switch (t = bp(n), e) {+ case "html":+ if (e = t.documentElement, !e) throw Error(i(452));+ return e;+ case "head":+ if (e = t.head, !e) throw Error(i(453));+ return e;+ case "body":+ if (e = t.body, !e) throw Error(i(454));+ return e;+ default: throw Error(i(451));+ }+ }+ function Em(e, t, n) {+ for (var r in n) {+ var i = n[r];+ n.hasOwnProperty(r) && i != null && dp(e, t, r, null, mp, i);+ }+ n.dangerouslySetInnerHTML != null && (e.textContent = ""), e.onclick === gn && (e.onclick = null), Dt(e);+ }+ function Dm(e) {+ for (var t = e.attributes; t.length;) e.removeAttributeNode(t[0]);+ Dt(e);+ }+ var Om = /* @__PURE__ */ new Map(), km = /* @__PURE__ */ new Set();+ function Am(e) {+ if (typeof e.getRootNode == "function") {+ var t = e.getRootNode();+ if (t.nodeType === 9 || t.nodeType === 11) return t;+ }+ return e.nodeType === 9 ? e : e.ownerDocument;+ }+ var jm = de.d;+ de.d = {+ f: Mm,+ r: Nm,+ D: Im,+ C: Lm,+ L: Rm,+ m: zm,+ X: Vm,+ S: Bm,+ M: Hm+ };+ function Mm() {+ var e = jm.f(), t = qd();+ return e || t;+ }+ function Nm(e) {+ var t = jt(e);+ t !== null && t.tag === 5 && t.type === "form" ? ic(t) : jm.r(e);+ }+ var Pm = typeof document > "u" ? null : document;+ function Fm(e, t, n) {+ var r = Pm;+ if (r && typeof t == "string" && t) {+ var i = en(t);+ i = "link[rel=\"" + e + "\"][href=\"" + i + "\"]", typeof n == "string" && (i += "[crossorigin=\"" + n + "\"]"), km.has(i) || (km.add(i), e = {+ rel: e,+ crossOrigin: n,+ href: t+ }, r.querySelector(i) === null && (t = r.createElement("link"), pp(t, "link", e), Nt(t), r.head.appendChild(t)));+ }+ }+ function Im(e) {+ jm.D(e), Fm("dns-prefetch", e, null);+ }+ function Lm(e, t) {+ jm.C(e, t), Fm("preconnect", e, t);+ }+ function Rm(e, t, n) {+ jm.L(e, t, n);+ var r = Pm;+ if (r && e && t) {+ var i = "link[rel=\"preload\"][as=\"" + en(t) + "\"]";+ t === "image" && n && n.imageSrcSet ? (i += "[imagesrcset=\"" + en(n.imageSrcSet) + "\"]", typeof n.imageSizes == "string" && (i += "[imagesizes=\"" + en(n.imageSizes) + "\"]")) : i += "[href=\"" + en(e) + "\"]";+ var a = i;+ switch (t) {+ case "style":+ a = Wm(e);+ break;+ case "script": a = Jm(e);+ }+ if (!(Om.has(a) || (e = w({+ rel: "preload",+ href: t === "image" && n && n.imageSrcSet ? void 0 : e,+ as: t+ }, n), Om.set(a, e), r.querySelector(i) !== null || t === "style" && r.querySelector(Gm(a)) || t === "script" && r.querySelector(Ym(a))))) {+ var o = r.createElement("link");+ pp(o, "link", e), t === "style" && (o[Et] = !0, o.onload = o.onerror = function() {+ Pt(o);+ }), Nt(o), r.head.appendChild(o);+ }}- }), i = zM({- queryKey: Mj,- queryFn: ({ signal: e }) => Lj(e),- start: Mue,- onStarted: () => {- r.dismiss(), n([]);+ }+ function zm(e, t) {+ jm.m(e, t);+ var n = Pm;+ if (n && e) {+ var r = t && typeof t.as == "string" ? t.as : "script", i = "link[rel=\"modulepreload\"][as=\"" + en(r) + "\"][href=\"" + en(e) + "\"]", a = i;+ switch (r) {+ case "audioworklet":+ case "paintworklet":+ case "serviceworker":+ case "sharedworker":+ case "worker":+ case "script": a = Jm(e);+ }+ if (!Om.has(a) && (e = w({+ rel: "modulepreload",+ href: e+ }, t), Om.set(a, e), n.querySelector(i) === null)) {+ switch (r) {+ case "audioworklet":+ case "paintworklet":+ case "serviceworker":+ case "sharedworker":+ case "worker":+ case "script": if (n.querySelector(Ym(a))) return;+ }+ r = n.createElement("link"), pp(r, "link", e), Nt(r), n.head.appendChild(r);+ }}- }), a = i.job, o = a?.check_id ?? "";- (0, B.useEffect)(() => {- n([]);- }, [o]);- let s = i.running || i.start.isPending, c = r.running || r.start.isPending, l = a?.status === "complete", u = a?.gone ?? [], d = a?.unclear ?? [], f = l ? d : [], p = e.data, m = (p?.top_hosts ?? []).slice(0, 3).map(([e, t]) => `${e} ${t}`).join(" · "), h = (e) => {- s || e && !e.length || i.start.mutate(e ? {- retry: e,- checkId: o- } : {});- }, g = () => {- c || !u.length || Te({- title: "删除失效链接",- body: `将删除 ${u.length} 条失效链接。删除前会再次检查,删除后无法恢复。`,- confirmLabel: "删除失效链接",- danger: !0,- onConfirm: () => r.start.mutateAsync(o)+ }+ function Bm(e, t, n) {+ jm.S(e, t, n);+ var r = Pm;+ if (r && e) {+ var i = B(r).hoistableStyles, a = Wm(e);+ t ||= "default";+ var o = i.get(a);+ if (!o) {+ var s = {+ loading: 0,+ preload: null+ };+ if (o = r.querySelector(Gm(a))) s.loading = 5;+ else {+ e = w({+ rel: "stylesheet",+ href: e,+ "data-precedence": t+ }, n), (n = Om.get(a)) && Qm(e, n);+ var c = o = r.createElement("link");+ Nt(c), pp(c, "link", e), c._p = new Promise(function(e, t) {+ c.onload = e, c.onerror = t;+ }), c.addEventListener("load", function() {+ s.loading |= 1;+ }), c.addEventListener("error", function() {+ s.loading |= 2;+ }), s.loading |= 4, Zm(o, t, r);+ }+ o = {+ type: "stylesheet",+ instance: o,+ count: 1,+ state: s+ }, i.set(a, o);+ }+ }+ }+ function Vm(e, t) {+ jm.X(e, t);+ var n = Pm;+ if (n && e) {+ var r = B(n).hoistableScripts, i = Jm(e), a = r.get(i);+ a || (a = n.querySelector(Ym(i)), a || (e = w({+ src: e,+ async: !0+ }, t), (t = Om.get(i)) && $m(e, t), a = n.createElement("script"), Nt(a), pp(a, "link", e), n.head.appendChild(a)), a = {+ type: "script",+ instance: a,+ count: 1,+ state: null+ }, r.set(i, a));+ }+ }+ function Hm(e, t) {+ jm.M(e, t);+ var n = Pm;+ if (n && e) {+ var r = B(n).hoistableScripts, i = Jm(e), a = r.get(i);+ a || (a = n.querySelector(Ym(i)), a || (e = w({+ src: e,+ async: !0,+ type: "module"+ }, t), (t = Om.get(i)) && $m(e, t), a = n.createElement("script"), Nt(a), pp(a, "link", e), n.head.appendChild(a)), a = {+ type: "script",+ instance: a,+ count: 1,+ state: null+ }, r.set(i, a));+ }+ }+ function Um(e, t, n, r) {+ var a = (a = ye.current) ? Am(a) : null;+ if (!a) throw Error(i(446));+ switch (e) {+ case "meta":+ case "title": return null;+ case "style": return typeof n.precedence == "string" && typeof n.href == "string" ? (n = Wm(n.href), t = B(a).hoistableStyles, r = t.get(n), r || (r = {+ type: "style",+ instance: null,+ count: 0,+ state: null+ }, t.set(n, r)), r) : {+ type: "void",+ instance: null,+ count: 0,+ state: null+ };+ case "link":+ if (n.rel === "stylesheet" && typeof n.href == "string" && typeof n.precedence == "string") {+ e = Wm(n.href);+ var o = B(a).hoistableStyles, s = o.get(e);+ if (s || (a = a.ownerDocument || a, s = {+ type: "stylesheet",+ instance: null,+ count: 0,+ state: {+ loading: 0,+ preload: null+ }+ }, o.set(e, s), (o = a.querySelector(Gm(e))) ? o._p || (s.instance = o, s.state.loading = 5) : (o = Om.get(e), o || (o = {+ rel: "preload",+ as: "style",+ href: n.href,+ crossOrigin: n.crossOrigin,+ integrity: n.integrity,+ media: n.media,+ hrefLang: n.hrefLang,+ referrerPolicy: n.referrerPolicy+ }, Om.set(e, o)), qm(a, e, o, s.state))), t && r === null) throw Error(i(528, ""));+ return s;+ }+ if (t && r !== null) throw Error(i(529, ""));+ return null;+ case "script": return t = n.async, n = n.src, typeof n == "string" && t && typeof t != "function" && typeof t != "symbol" ? (n = Jm(n), t = B(a).hoistableScripts, r = t.get(n), r || (r = {+ type: "script",+ instance: null,+ count: 0,+ state: null+ }, t.set(n, r)), r) : {+ type: "void",+ instance: null,+ count: 0,+ state: null+ };+ default: throw Error(i(444, e));+ }+ }+ function Wm(e) {+ return "href=\"" + en(e) + "\"";+ }+ function Gm(e) {+ return "link[rel=\"stylesheet\"][" + e + "]";+ }+ function Km(e) {+ return w({}, e, {+ "data-precedence": e.precedence,+ precedence: null});- }, _ = r.outcome, v = i.start.error ?? r.start.error, y = null, b = null;- if (_?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "链接清理未完成",- children: _.error || "请查看任务记录,核对已处理的链接。"- });- else if (_) b = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "success",- title: "完成",- children: Pue(_)- });- else if (v) b = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "检查失败",- children: W(v)- });- else if (i.query.isError && a) b = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- title: "任务状态",- children: Kde- });- else if (a?.status === "failed") b = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "检查失败",- children: a.error || "检查失败"- });- else if (a && a.status !== "idle") {- y = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [a.status === "running" ? /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: Fue(a),- value: a.checked,- total: a.total- }) : null, c ? /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: r.job?.message || "正在重验并删除失效链接…",- value: r.job?.checked,- total: r.job?.total- }) : null] });- let e = t.length ? `重试选中的 ${t.length} 条` : "重试选中的链接";- b = l || u.length || d.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: Dde,- children: [- /* @__PURE__ */ (0, V.jsx)(XM, {- title: "地址已失效",- items: u,- hint: Ude- }),- /* @__PURE__ */ (0, V.jsx)(XM, {- title: "本次未访问成功",- items: d,- hint: Wde,- picked: f.length ? t : void 0,- onPick: f.length ? n : void 0,- children: f.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "-mx-4 mt-3 -mb-4",- children: /* @__PURE__ */ (0, V.jsxs)(DM, { children: [/* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: qM,- disabled: !t.length,- ...X(s),- onClick: () => h(t),- children: e- }), /* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: qM,- ...X(s),- onClick: () => h(f.map((e) => e.id)),- children: `全部重试(${f.length})`- })] })- }) : null- }),- l && u.length ? /* @__PURE__ */ (0, V.jsx)(DM, {- tone: "error",- status: Gde,- children: /* @__PURE__ */ (0, V.jsx)(J, {- variant: "danger",- ...X(c),- onClick: g,- children: `删除 ${u.length} 条失效链接`- })- }) : null,- l && !u.length && !d.length ? /* @__PURE__ */ (0, V.jsx)("p", {- className: `${EM} text-body-regular text-notification-success-foreground`,- children: "全部链接均可访问。"- }) : null- ]- }) : null;}- return /* @__PURE__ */ (0, V.jsxs)("section", {- id: "link-manager",- "aria-labelledby": "link-manager-title",- className: "flex scroll-mt-20 flex-col gap-4",- children: [- /* @__PURE__ */ (0, V.jsx)(OM, {- id: "link-manager-title",- children: "链接管理"- }),- /* @__PURE__ */ (0, V.jsxs)(AM, {- layout: "stack",- labelledBy: "link-manager-box",- footer: /* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: Hde,- ...X(s),- onClick: () => h(),- children: s ? "检查中" : l ? "重新检查" : "检查死链"- }),- children: [- /* @__PURE__ */ (0, V.jsx)(kM, {- id: "link-manager-box",- gap: "small",- children: "站外链接"- }),- e.isError ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "链接统计读取失败",- children: W(e.error)- }) : p ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: "link-stat-grid mt-4 gap-x-8 gap-y-3",- children: [/* @__PURE__ */ (0, V.jsx)(YM, {- label: "链接总数",- value: JM(p.total),- note: `分布在 ${JM(p.entities)} 个女优、厂牌与系列`- }), Object.entries(p.by_kind ?? {}).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(YM, {- label: Pj[e] || e,- value: JM(t)- }, e))]- }), m ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: "mt-4 flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- className: "text-caption-1-regular text-text-secondary",- children: "主要站点"- }), /* @__PURE__ */ (0, V.jsx)("b", {- className: "text-body-2-medium break-words text-text-primary",- children: m- })]- }) : null] }) : null,- /* @__PURE__ */ (0, V.jsx)("div", {- "aria-live": "polite",- className: "mt-4 flex flex-col gap-3 empty:hidden",- children: y- })- ]- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "aria-live": "polite",- className: "empty:hidden",- children: b- })- ]- });-}-//#endregion-//#region src/react/data-cleanup/organize-card.tsx-var Jde = (e) => `将按这两份模板改动「${e}」上的文件名与目录,目标已存在的行会整行跳过。这一批可以从「回滚上一批」整批退回。`, Yde = "将把上一批整理动过的文件退回整理前的名字与位置,账本路径跟着退回。退回后这一批不再出现在这里。", Xde = 8;-function Zde({ plan: e }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ol", {- className: "mt-2 flex min-w-0 flex-col gap-1",- children: e.rows.slice(0, Xde).map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {- className: "flex min-w-0 items-center gap-2 text-caption-1-regular text-text-secondary",- children: [- /* @__PURE__ */ (0, V.jsx)("span", {- "data-middle-truncate": !0,- title: e.current_path,- className: "min-w-0 truncate",- children: Zj(e.current_path)- }),- /* @__PURE__ */ (0, V.jsx)("span", {- "aria-hidden": !0,- children: "→"- }),- /* @__PURE__ */ (0, V.jsx)("span", {- "data-middle-truncate": !0,- title: e.target_path,- className: "min-w-0 truncate text-text-primary",- children: Zj(e.target_path)- })- ]- }, e.current_path))- }), e.truncated ? /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular text-text-secondary",- children: "只列出前 8 行,完整计划在计划 CSV 里。"- }) : null] });-}-function Qde({ toast: e, failure: t }) {- let n = ES({- queryKey: Yj,- queryFn: ({ signal: e }) => Xj(e)- }), r = n.data, i = r?.locations ?? [], [a, o] = (0, B.useState)(""), s = i.some((e) => e.location === a) ? a : i[0]?.location ?? "", c = r?.templates?.[s], [l, u] = (0, B.useState)(null), d = l?.location === s ? l : {- location: s,- file: c?.file ?? "",- dir: c?.dir ?? ""- }, f = (e) => u({- ...d,- ...e- }), [p, m] = (0, B.useState)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = () => ({- location: s,- file_template: d.file.trim(),- dir_template: d.dir.trim()- }), v = kS({- mutationFn: que,- onSuccess: (e, t) => void Yue({- ...r?.templates ?? {},- [t.location]: {- file: t.file_template,- dir: t.dir_template+ function qm(e, t, n, r) {+ if (t = e.querySelector("link[rel=\"preload\"][as=\"style\"][" + t + "]")) {+ if (!0 !== t[Et]) {+ r.loading = 1;+ return;+ }+ } else t = e.createElement("link"), t[Et] = !0, t.onload = t.onerror = Pt.bind(null, t), pp(t, "link", n), Nt(t), e.head.appendChild(t);+ r.preload = t, t.addEventListener("load", function() {+ return r.loading |= 1;+ }), t.addEventListener("error", function() {+ return r.loading |= 2;+ });+ }+ function Jm(e) {+ return "[src=\"" + en(e) + "\"]";+ }+ function Ym(e) {+ return "script[async]" + e;+ }+ function Xm(e, t, n) {+ if (t.count++, t.instance === null) switch (t.type) {+ case "style":+ var r = e.querySelector("style[data-href~=\"" + en(n.href) + "\"]");+ if (r) return t.instance = r, Nt(r), r;+ var a = w({}, n, {+ "data-href": n.href,+ "data-precedence": n.precedence,+ href: null,+ precedence: null+ });+ return r = (e.ownerDocument || e).createElement("style"), Nt(r), pp(r, "style", a), Zm(r, n.precedence, e), t.instance = r;+ case "stylesheet":+ a = Wm(n.href);+ var o = e.querySelector(Gm(a));+ if (o) return t.state.loading |= 4, t.instance = o, Nt(o), o;+ r = Km(n), (a = Om.get(a)) && Qm(r, a), o = (e.ownerDocument || e).createElement("link"), Nt(o);+ var s = o;+ return s._p = new Promise(function(e, t) {+ s.onload = e, s.onerror = t;+ }), pp(o, "link", r), t.state.loading |= 4, Zm(o, n.precedence, e), t.instance = o;+ case "script": return o = Jm(n.src), (a = e.querySelector(Ym(o))) ? (t.instance = a, Nt(a), a) : (r = n, (a = Om.get(o)) && (r = w({}, n), $m(r, a)), e = e.ownerDocument || e, a = e.createElement("script"), Nt(a), pp(a, "link", r), e.head.appendChild(a), t.instance = a);+ case "void": return null;+ default: throw Error(i(443, t.type));+ }+ else t.type === "stylesheet" && !(t.state.loading & 4) && (r = t.instance, t.state.loading |= 4, Zm(r, n.precedence, e));+ return t.instance;+ }+ function Zm(e, t, n) {+ for (var r = n.querySelectorAll("link[rel=\"stylesheet\"][data-precedence],style[data-precedence]"), i = r.length ? r[r.length - 1] : null, a = i, o = 0; o < r.length; o++) {+ var s = r[o];+ if (s.dataset.precedence === t) a = s;+ else if (a !== i) break;+ }+ a ? a.parentNode.insertBefore(e, a.nextSibling) : (t = n.nodeType === 9 ? n.head : n, t.insertBefore(e, t.firstChild));+ }+ function Qm(e, t) {+ e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.title ??= t.title;+ }+ function $m(e, t) {+ e.crossOrigin ??= t.crossOrigin, e.referrerPolicy ??= t.referrerPolicy, e.integrity ??= t.integrity;+ }+ var eh = null;+ function th(e, t, n) {+ if (eh === null) {+ var r = /* @__PURE__ */ new Map(), i = eh = /* @__PURE__ */ new Map();+ i.set(n, r);+ } else i = eh, r = i.get(n), r || (r = /* @__PURE__ */ new Map(), i.set(n, r));+ if (r.has(e)) return r;+ for (r.set(e, null), n = n.getElementsByTagName(e), i = 0; i < n.length; i++) {+ var a = n[i];+ if (!(a[Tt] || a[vt] || e === "link" && a.getAttribute("rel") === "stylesheet") && a.namespaceURI !== "http://www.w3.org/2000/svg") {+ var o = a.getAttribute(t) || "";+ o = e + o;+ var s = r.get(o);+ s ? s.push(a) : r.set(o, [a]);+ }+ }+ return r;+ }+ function nh(e, t, n) {+ e = e.ownerDocument || e, e.head.insertBefore(n, t === "title" ? e.querySelector("head > title") : null);+ }+ function rh(e, t, n) {+ if (n === 1 || t.itemProp != null) return !1;+ switch (e) {+ case "meta":+ case "title": return !0;+ case "style":+ if (typeof t.precedence != "string" || typeof t.href != "string" || t.href === "") break;+ return !0;+ case "link":+ if (typeof t.rel != "string" || typeof t.href != "string" || t.href === "" || t.onLoad || t.onError) break;+ switch (t.rel) {+ case "stylesheet": return e = t.disabled, typeof t.precedence == "string" && e == null;+ default: return !0;+ }+ case "script": if (t.async && typeof t.async != "function" && typeof t.async != "symbol" && !t.onLoad && !t.onError && t.src && typeof t.src == "string") return !0;+ }+ return !1;+ }+ function ih(e, t) {+ return e === "img" && t.src != null && t.src !== "" && t.onLoad == null && t.loading !== "lazy";+ }+ function ah(e) {+ return !(e.type === "stylesheet" && !(e.state.loading & 3));+ }+ function oh(e) {+ return (e.width || 100) * (e.height || 100) * (typeof devicePixelRatio == "number" ? devicePixelRatio : 1) * .25;+ }+ function sh(e, t) {+ typeof t.decode == "function" && (e.imgCount++, t.complete || (e.imgBytes += oh(t), e.suspenseyImages.push(t)), e = ph.bind(e), t.decode().then(e, e));+ }+ function ch(e, t, n, r) {+ if (n.type === "stylesheet" && (typeof r.media != "string" || !1 !== matchMedia(r.media).matches) && !(n.state.loading & 4)) {+ if (n.instance === null) {+ var i = Wm(r.href), a = t.querySelector(Gm(i));+ if (a) {+ t = a._p, typeof t == "object" && t && typeof t.then == "function" && (e.count++, e = fh.bind(e), t.then(e, e)), n.state.loading |= 4, n.instance = a, Nt(a);+ return;+ }+ a = t.ownerDocument || t, r = Km(r), (i = Om.get(i)) && Qm(r, i), a = a.createElement("link"), Nt(a);+ var o = a;+ o._p = new Promise(function(e, t) {+ o.onload = e, o.onerror = t;+ }), pp(a, "link", r), n.instance = a;+ }+ e.stylesheets === null && (e.stylesheets = /* @__PURE__ */ new Map()), e.stylesheets.set(n, t), (t = n.state.preload) && !(n.state.loading & 3) && (e.count++, n = fh.bind(e), t.addEventListener("load", n), t.addEventListener("error", n));+ }+ }+ var lh = 0;+ function uh(e, t) {+ return e.stylesheets && e.count === 0 && hh(e, e.stylesheets), 0 < e.count || 0 < e.imgCount ? function(n) {+ var r = setTimeout(function() {+ if (e.stylesheets && hh(e, e.stylesheets), e.unsuspend) {+ var t = e.unsuspend;+ e.unsuspend = null, t();+ }+ }, 6e4 + t);+ 0 < e.imgBytes && lh === 0 && (lh = 62500 * _p());+ var i = setTimeout(function() {+ if (e.waitingForImages = !1, e.count === 0 && (e.stylesheets && hh(e, e.stylesheets), e.unsuspend)) {+ var t = e.unsuspend;+ e.unsuspend = null, t();+ }+ }, (e.imgBytes > lh ? 50 : 800) + t);+ return e.unsuspend = n, function() {+ e.unsuspend = null, clearTimeout(r), clearTimeout(i);+ };+ } : null;+ }+ function dh(e) {+ if (e.count === 0 && (e.imgCount === 0 || !e.waitingForImages)) {+ if (e.stylesheets) hh(e, e.stylesheets);+ else if (e.unsuspend) {+ var t = e.unsuspend;+ e.unsuspend = null, t();}- }),- onError: (e) => {- let t = Zue.test(W(e)) ? "dir" : "file";- m(t), (t === "dir" ? g : h).current?.focus();- }- }), y = zM({- queryKey: Yj,- queryFn: ({ signal: e }) => Xj(e),- start: Jue,- jobOf: (e) => e,- withJob: Xue,- onStarted: () => v.reset(),- onFinish: (n) => {- if (z.invalidateQueries({- queryKey: Yj,- exact: !0- }), n.status !== "complete") return;- let { text: r, failed: i } = $j(n);- i ? t("按模板整理", /* @__PURE__ */ Error(`${i} 行未能处理`)) : e(r.replace(/。$/, ""));}- }), b = y.running || y.start.isPending, x = v.data, S = Number(x?.counts?.change || 0), C = se[s] || s, w = (r?.placeholders ?? []).map((e) => `{${e.key}} ${e.label}`).join(" · "), T = () => {- v.isPending || !s || (m(null), v.mutate(_()));- }, E = () => void Te({- title: "按模板整理文件",- body: Jde(C),- confirmLabel: "整理文件",- onConfirm: () => y.start.mutateAsync({- kind: "apply",- request: _()- })- }), D = () => void Te({- title: "回滚上一批整理",- body: Yde,- confirmLabel: "回滚整理",- onConfirm: () => y.start.mutateAsync({ kind: "rollback" })- }), O = null, k = y.job, A = y.outcome;- if (k?.status === "running") {- let e = k.message || k.stage || "正在整理文件…";- O = /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: e,- value: k.checked,- total: k.total- });- } else if (A?.status === "failed") O = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "文件整理未完成",- children: A.error || "请查看任务记录,核对已处理的文件。"- });- else if (A) {- let { text: e, failed: t } = $j(A);- O = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: t ? "warning" : "success",- title: t ? "部分完成" : "整理结果",- children: e- });- } else y.start.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "整理失败",- children: W(y.start.error)- }) : v.isPending ? O = /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: "正在按模板算计划…"- }) : v.isError ? O = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "模板不可用",- children: W(v.error)- }) : x && (O = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- title: "预览结果",- children: Que(x)- }), S ? /* @__PURE__ */ (0, V.jsx)(Zde, { plan: x }) : null] }));- return /* @__PURE__ */ (0, V.jsxs)(AM, {- layout: "stack",- id: "organize",- labelledBy: "cleanup-organize-title",- attributes: { "data-cleanup-organize": "" },- footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(J, {- disabled: !i.length,- ...X(v.isPending),- onClick: T,- children: "预览"- }),- S && !b && !y.outcome ? /* @__PURE__ */ (0, V.jsx)(J, {- onClick: E,- children: "执行整理"- }) : null,- r?.last_batch ? /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- ...X(b),- onClick: D,- children: "回滚上一批"- }) : null- ] }),- children: [- /* @__PURE__ */ (0, V.jsx)(kM, {- id: "cleanup-organize-title",- gap: "medium",- children: "整理"- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-body-regular text-text-secondary",- children: "按模板给文件改名并归入目录。先预览,确认后执行;执行过的一批可以整批退回。"- }),- n.isError ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "mt-3",- children: /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "整理配置读取失败",- children: W(n.error)- })- }) : null,- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "mt-3 flex flex-col gap-3",- children: [- i.length ? /* @__PURE__ */ (0, V.jsx)(Tk, {- "aria-label": "整理哪个来源",- className: "w-fit min-w-25",- selectedKey: s || null,- onSelectionChange: (e) => {- e !== null && (o(String(e)), m(null), v.reset());- },- children: i.map((e) => /* @__PURE__ */ (0, V.jsxs)(Ek, {- id: e.location,- textValue: se[e.location] || e.location,- children: [/* @__PURE__ */ (0, V.jsx)(Uk, { mark: Se[e.location] || "database" }), se[e.location] || e.location]- }, e.location))- }) : null,- /* @__PURE__ */ (0, V.jsx)(bk, {- label: "文件名模板",- placeholder: "{number}[ {title}]",- value: d.file,- ref: h,- spellCheck: "false",- isInvalid: p === "file",- onChange: (e) => {- f({ file: e }), m(null);- }- }),- /* @__PURE__ */ (0, V.jsx)(bk, {- label: "目录模板",- placeholder: "留空表示原地改名",- value: d.dir,- ref: g,- spellCheck: "false",- isInvalid: p === "dir",- onChange: (e) => {- f({ dir: e }), m(null);- }- }),- r?.presets?.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-wrap gap-2",- children: r.presets.map((e) => /* @__PURE__ */ (0, V.jsx)(J, {- variant: "secondary",- onClick: () => {- f({- file: e.file,- dir: e.dir- }), m(null);- },- children: e.label- }, e.label))- }) : null,- /* @__PURE__ */ (0, V.jsx)("p", {- className: "text-caption-1-regular leading-4.5 text-text-secondary",- children: `${w};方括号里的内容在字段为空时整段省略。`- })- ]- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "aria-live": "polite",- className: "mt-3 flex flex-col gap-2 empty:hidden",- children: O- })- ]- });-}-//#endregion-//#region src/react/data-cleanup/orphan-records.ts-var $de = "/api/orphan-records", efe = "/api/orphan-records/attach", ZM = ["orphan-records"], tfe = [- ["asset_preference", "喜欢与理由"],- ["watch_queue", "稍后看"],- ["playlist_item", "播放列表"],- ["asset_quality_goal", "寻找更好版本"],- ["activity_event", "观看历史"],- ["asset_tag_preference", "隐藏标签"]-], nfe = (e) => G($de, e), rfe = (e, t) => K(efe, {- id: e,- target: t-}), ife = (e) => K(KA, {- ids: [e],- operation: "delete"-}), afe = (e) => [- e.rating ? `评分 ${e.rating}` : "",- e.play_count ? `播放 ${Number(e.play_count).toLocaleString()} 次` : e.last_played ? "播放过" : "",- e.o_count ? `高潮 ${Number(e.o_count).toLocaleString()} 次` : ""-], QM = (e) => [...tfe.filter(([t]) => e[t]).map(([t, n]) => `${n} ${Number(e[t]).toLocaleString()}`), ...afe(e)].filter(Boolean).join(" · "), ofe = (e) => e ? `${Math.round(e / 60)} 分钟` : "", $M = (e) => [e.name, ofe(e.duration)].filter(Boolean).join(" · "), sfe = xA("play"), eN = () => z.invalidateQueries({- queryKey: ZM,- exact: !0-});-function cfe({ item: e, toast: t }) {- let [n, r] = (0, B.useState)(e.candidates[0]?.id ?? null), i = kS({- mutationFn: () => rfe(e.id, Number(n)),- onSuccess: (e) => {- t(`记录已接到新文件,批次 ${e.batch}`), eN();- },- onError: (e) => t(W(e))- }), a = kS({- mutationFn: () => ife(e.id),- onSuccess: (n) => {- t(n.blocked.length ? `${e.name} 的文件又回到盘上,没有删除;下一次扫描会把它接回在库` : `已彻底删除 ${e.name}`), eN();+ }+ function fh() {+ this.count--, dh(this);+ }+ function ph() {+ this.imgCount--, dh(this);+ }+ var mh = null;+ function hh(e, t) {+ e.stylesheets = null, e.unsuspend !== null && (e.count++, mh = /* @__PURE__ */ new Map(), t.forEach(gh, e), mh = null, fh.call(e));+ }+ function gh(e, t) {+ if (!(t.state.loading & 4)) {+ var n = mh.get(e);+ if (n) var r = n.get(null);+ else {+ n = /* @__PURE__ */ new Map(), mh.set(e, n);+ for (var i = e.querySelectorAll("link[data-precedence],style[data-precedence]"), a = 0; a < i.length; a++) {+ var o = i[a];+ (o.nodeName === "LINK" || o.getAttribute("media") !== "not all") && (n.set(o.dataset.precedence, o), r = o);+ }+ r && n.set(null, r);+ }+ i = t.instance, o = i.getAttribute("data-precedence"), a = n.get(o) || r, a === r && n.set(null, i), n.set(o, i), this.count++, r = fh.bind(this), i.addEventListener("load", r), i.addEventListener("error", r), a ? a.parentNode.insertBefore(i, a.nextSibling) : (e = e.nodeType === 9 ? e.head : e, e.insertBefore(i, e.firstChild)), t.state.loading |= 4;}- }), o = () => {- Te({- title: "彻底删除",- body: `将删除「${e.name}」这一条和它带的记录(${QM(e.records)})。此操作不可撤销。`,- confirmLabel: "彻底删除",- danger: !0,- onConfirm: () => a.mutateAsync()- });- }, s = i.isPending || a.isPending;- return /* @__PURE__ */ (0, V.jsxs)(ok, {- id: e.id,- children: [- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 items-center gap-3",- children: [/* @__PURE__ */ (0, V.jsxs)("span", {- className: "relative inline-grid aspect-16/10 w-24 flex-none place-items-center max-cleanup-tight:hidden overflow-hidden rounded-lg border border-separator-border bg-background-tertiary-default text-text-tertiary",- children: [/* @__PURE__ */ (0, V.jsx)(sfe, {- "aria-hidden": !0,- className: "size-5"- }), e.has_thumb ? /* @__PURE__ */ (0, V.jsx)("img", {- src: `/thumb?id=${e.id}&c=4`,- alt: "",- loading: "lazy",- onError: (e) => e.currentTarget.remove(),- className: "absolute inset-0 size-full object-contain"- }) : null]- }), /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, V.jsx)("span", {- title: e.name,- className: "max-w-72 truncate text-body-regular text-text-primary",- children: e.name- }), /* @__PURE__ */ (0, V.jsx)("small", {- className: "text-caption-1-regular text-text-secondary",- children: [e.code, se[e.location] || e.location].filter(Boolean).join(" · ")- })]- })]- }) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)("span", {- className: "block min-w-44",- children: QM(e.records)- }) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(Tk, {- "aria-label": `把 ${e.name} 的记录接到哪个文件`,- className: "w-64",- selectedKey: n,- onSelectionChange: (e) => {- e !== null && r(Number(e));- },- children: e.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {- id: e.id,- textValue: $M(e),- children: $M(e)- }, e.id))- }) : /* @__PURE__ */ (0, V.jsx)("span", {- className: "text-text-secondary",- children: "没有番号或文件名对得上的文件"- }) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsxs)("span", {- className: "flex flex-wrap gap-2",- children: [e.candidates.length ? /* @__PURE__ */ (0, V.jsx)(J, {- size: "small",- disabled: s || n === null,- ...X(i.isPending),- onClick: () => i.mutate(),- children: "接到这个文件"- }) : null, /* @__PURE__ */ (0, V.jsx)(J, {- variant: "danger",- size: "small",- disabled: s,- ...X(a.isPending),- onClick: o,- children: "彻底删除"- })]- }) })- ]- });-}-function lfe({ toast: e }) {- let t = ES({- queryKey: ZM,- queryFn: ({ signal: e }) => nfe(e)- }), n = t.data?.items ?? [];- return !t.isError && !n.length ? null : /* @__PURE__ */ (0, V.jsxs)("section", {- id: "orphan-records",- "aria-labelledby": "orphan-records-title",- className: "flex scroll-mt-20 flex-col gap-4",- children: [/* @__PURE__ */ (0, V.jsx)(OM, {- id: "orphan-records-title",- children: "孤儿记录"- }), /* @__PURE__ */ (0, V.jsxs)(AM, {- layout: "stack",- labelledBy: "orphan-records-box",- children: [- /* @__PURE__ */ (0, V.jsx)(kM, {- id: "orphan-records-box",- gap: "small",- children: "文件已消失的作品"- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "mb-3 text-body-regular text-text-secondary",- children: "这些作品的文件已不在盘上,喜欢、稍后看、播放列表与观看历史都还留着。接到新文件后记录跟过去,旧的这一条删掉。"- }),- t.isError ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "孤儿记录读取失败",- children: W(t.error)- }) : /* @__PURE__ */ (0, V.jsx)(KM, { children: /* @__PURE__ */ (0, V.jsxs)(WM, {- "aria-label": "文件已消失的作品",- size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(ek, { children: [- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "item",- isRowHeader: !0,- children: "作品"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "records",- children: "带的记录"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "target",- children: "接到"- }),- /* @__PURE__ */ (0, V.jsx)(tk, {- id: "actions",- children: "操作"- })- ] }), /* @__PURE__ */ (0, V.jsx)(rk, { children: n.map((t) => /* @__PURE__ */ (0, V.jsx)(cfe, {- item: t,- toast: e- }, t.id)) })]- }) })- ]- })]- });-}-//#endregion-//#region src/react/data-cleanup/resource-sync-card.tsx-var ufe = xA("git-compare"), dfe = xA("rotate-cw"), ffe = "暂时无法读取进度,正在重新连接…", tN = "清理失效条目", nN = "inline-grid w-full grid-flow-col auto-cols-fr gap-4 max-plain-stat-pair:grid-flow-row max-plain-stat-pair:grid-cols-2 max-plain-stat-single:grid-cols-1", rN = (e) => Number(e || 0).toLocaleString();-function pfe({ scan: e }) {- let t = e.cache ?? {- files: 0,- bytes: 0+ }+ var _h = {+ $$typeof: M,+ Provider: null,+ Consumer: null,+ _currentValue: fe,+ _currentValue2: fe,+ _threadCount: 0};- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: nN,- children: (e.sources ?? []).map((e) => /* @__PURE__ */ (0, V.jsx)("article", {- className: SM(),- children: /* @__PURE__ */ (0, V.jsx)(CM, {- label: rde[e.location] || "媒体来源",- mark: /* @__PURE__ */ (0, V.jsx)(Uk, { mark: Se[e.location] ?? "database" }),- aside: /* @__PURE__ */ (0, V.jsx)("span", {- className: e.online ? "text-notification-success-foreground" : "text-text-error-primary",- children: e.online ? "可访问" : "离线,已跳过"- }),- figure: e.online ? `${rN(e.missing)} 项` : "—",- meta: sde(e),- wrapMeta: !0- })- }, e.location))- }), /* @__PURE__ */ (0, V.jsxs)("div", {- className: nN,- children: [- /* @__PURE__ */ (0, V.jsx)("article", {- className: SM(),- children: /* @__PURE__ */ (0, V.jsx)(CM, {- label: "待永久删除",- figure: `${rN(cM(e))} 项`,- meta: "文件已不在盘上,含回收站"- })- }),- /* @__PURE__ */ (0, V.jsx)("article", {- className: SM(),- children: /* @__PURE__ */ (0, V.jsx)(CM, {- label: "将标为已消失",- figure: `${rN(e.vanish)} 项`,- meta: "带个人记录,记录留着"- })- }),- /* @__PURE__ */ (0, V.jsx)("article", {- className: SM(),- children: /* @__PURE__ */ (0, V.jsx)(CM, {- label: "空文件夹",- figure: `${rN(e.empty)} 个`,- meta: "保留来源根目录"- })- }),- /* @__PURE__ */ (0, V.jsx)("article", {- className: SM(),- children: /* @__PURE__ */ (0, V.jsx)(CM, {- label: "可清理的缓存",- figure: `${rN(t.files)} 个`,- meta: t.files ? pe(t.bytes) : ""- })- })- ]- })] });-}-function mfe({ toast: e }) {- let t = zM({- queryKey: rM,- queryFn: ({ signal: e }) => aM(e),- start: ede,- onFinish: (t) => {- if (z.invalidateQueries({- queryKey: hM,- exact: !0- }), z.invalidateQueries({- queryKey: nM,- exact: !0- }), t.status !== "complete") return;- let { done: n, left: r } = dM(t);- r ? e(`已完成 ${rN(n)} 项,${rN(r)} 项没有处理`, { warning: !0 }) : e("已清理失效条目");+ function U(e, t, n, r, i, a, o, s, c) {+ this.tag = 1, this.containerInfo = e, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = st(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = st(0), this.hiddenUpdates = st(null), this.identifierPrefix = r, this.onUncaughtError = i, this.onCaughtError = a, this.onRecoverableError = o, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = c, this.transitionTypes = null, this.incompleteTransitions = /* @__PURE__ */ new Map();+ }+ function vh(e, t, n, r, i, a, o, s, c, l, u, d) {+ return e = new U(e, t, n, o, c, l, u, d, s), t = 1, !0 === a && (t |= 24), a = Ai(3, null, null, t), e.current = a, a.stateNode = e, t = ja(), t.refCount++, e.pooledCache = t, t.refCount++, a.memoizedState = {+ element: r,+ isDehydrated: n,+ cache: t+ }, mo(a), e;+ }+ function yh(e) {+ return e ? (e = Oi, e) : Oi;+ }+ function bh(e, t, n, r, i, a) {+ i = yh(i), r.context === null ? r.context = i : r.pendingContext = i, r = go(t), r.payload = { element: n }, a = a === void 0 ? null : a, a !== null && (r.callback = a), n = _o(e, r, t), n !== null && (Hd(n, e, t), vo(n, e, t));+ }+ function xh(e, t) {+ if (e = e.memoizedState, e !== null && e.dehydrated !== null) {+ var n = e.retryLane;+ e.retryLane = n !== 0 && n < t ? n : t;+ }+ }+ function Sh(e, t) {+ xh(e, t), (e = e.alternate) && xh(e, t);+ }+ function Ch(e) {+ if (e.tag === 13 || e.tag === 31) {+ var t = Ti(e, 67108864);+ t !== null && Hd(t, e, 67108864), Sh(e, 67108864);+ }+ }+ function wh(e) {+ if (e.tag === 13 || e.tag === 31) {+ var t = zd();+ t = pt(t);+ var n = Ti(e, t);+ n !== null && Hd(n, e, t), Sh(e, t);+ }+ }+ var Th = !0;+ function Eh(e, t, n, r) {+ var i = L.T;+ L.T = null;+ var a = de.p;+ try {+ de.p = 2, Oh(e, t, n, r);+ } finally {+ de.p = a, L.T = i;+ }+ }+ function Dh(e, t, n, r) {+ var i = L.T;+ L.T = null;+ var a = de.p;+ try {+ de.p = 8, Oh(e, t, n, r);+ } finally {+ de.p = a, L.T = i;+ }+ }+ function Oh(e, t, n, r) {+ if (Th) {+ var i = kh(r);+ if (i === null) np(e, t, r, Ah, n), Vh(e, r);+ else if (Uh(i, e, t, n, r)) r.stopPropagation();+ else if (Vh(e, r), t & 4 && -1 < Bh.indexOf(e)) {+ for (; i !== null;) {+ var a = jt(i);+ if (a !== null) switch (a.tag) {+ case 3:+ if (a = a.stateNode, a.current.memoizedState.isDehydrated) {+ var o = nt(a.pendingLanes);+ if (o !== 0) {+ var s = a;+ for (s.pendingLanes |= 2, s.entangledLanes |= 2; o;) {+ var c = 1 << 31 - Ye(o);+ s.entanglements[1] |= c, o &= ~c;+ }+ Ff(a), !(rd & 6) && (wd = Le() + 500, If(0, !1));+ }+ }+ break;+ case 31:+ case 13: s = Ti(a, 2), s !== null && Hd(s, a, 2), qd(), Sh(a, 2);+ }+ if (a = kh(r), a === null && np(e, t, r, Ah, n), a === i) break;+ i = a;+ }+ i !== null && r.stopPropagation();+ } else np(e, t, r, null, n);+ }+ }+ function kh(e) {+ return e = vn(e), jh(e);+ }+ var Ah = null;+ function jh(e) {+ if (Ah = null, e = kt(e), e !== null) {+ var t = o(e);+ if (t === null) e = null;+ else {+ var n = t.tag;+ if (n === 13) {+ if (e = s(t), e !== null) return e;+ e = null;+ } else if (n === 31) {+ if (e = c(t), e !== null) return e;+ e = null;+ } else if (n === 3) {+ if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null;+ e = null;+ } else t !== e && (e = null);+ }+ }+ return Ah = e, null;+ }+ function Mh(e) {+ switch (e) {+ case "beforetoggle":+ case "cancel":+ case "click":+ case "close":+ case "contextmenu":+ case "copy":+ case "cut":+ case "auxclick":+ case "dblclick":+ case "dragend":+ case "dragstart":+ case "drop":+ case "focusin":+ case "focusout":+ case "input":+ case "invalid":+ case "keydown":+ case "keypress":+ case "keyup":+ case "mousedown":+ case "mouseup":+ case "paste":+ case "pause":+ case "play":+ case "pointercancel":+ case "pointerdown":+ case "pointerup":+ case "ratechange":+ case "reset":+ case "seeked":+ case "submit":+ case "toggle":+ case "touchcancel":+ case "touchend":+ case "touchstart":+ case "volumechange":+ case "change":+ case "selectionchange":+ case "textInput":+ case "compositionstart":+ case "compositionend":+ case "compositionupdate":+ case "beforeblur":+ case "afterblur":+ case "beforeinput":+ case "blur":+ case "fullscreenchange":+ case "fullscreenerror":+ case "focus":+ case "hashchange":+ case "popstate":+ case "select":+ case "selectstart": return 2;+ case "drag":+ case "dragenter":+ case "dragexit":+ case "dragleave":+ case "dragover":+ case "mousemove":+ case "mouseout":+ case "mouseover":+ case "pointermove":+ case "pointerout":+ case "pointerover":+ case "resize":+ case "scroll":+ case "touchmove":+ case "wheel":+ case "mouseenter":+ case "mouseleave":+ case "pointerenter":+ case "pointerleave": return 8;+ case "message": switch (Re()) {+ case ze: return 2;+ case Be: return 8;+ case Ve:+ case He: return 32;+ case Ue: return 268435456;+ default: return 32;+ }+ default: return 32;}- }), n = zM({- queryKey: nM,- queryFn: ({ signal: e }) => iM(e),- start: $ue,- onStarted: () => t.dismiss()- }), r = n.job, i = n.running || n.start.isPending, a = t.running || t.start.isPending, o = r?.status === "complete" || r?.status === "failed", s = i ? "扫描中" : o ? "重新扫描" : "检查文件", c = (e) => void Te({- title: tN,- body: ode(e),- confirmLabel: tN,- danger: !0,- onConfirm: () => t.start.mutateAsync(e.scan_id || "")- }), l = t.outcome, u = (e) => {- let t = dM(e).left > 0;- return /* @__PURE__ */ (0, V.jsx)(Y, {- tone: t ? "warning" : "success",- title: t ? "部分完成" : "清理结果",- children: cde(e, pe)- });- }, d = null, f = null;- if (l?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "资源清理未完成",- children: l.error || "请查看任务记录,核对已处理的文件。"- });- else if (l) f = u(l);- else if (t.running) d = /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: t.job?.message || "正在复核并清理失效条目…"- });- else if (n.start.isError) f = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "扫描失败",- children: W(n.start.error)- });- else if (n.query.isError && r) f = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- title: "任务状态",- children: ffe- });- else if (r?.status === "running") {- let e = ide(r);- d = /* @__PURE__ */ (0, V.jsx)(FM, {- embedded: !0,- label: e,- value: r.completed_sources,- total: r.total_sources- });- } else if (r?.status === "failed") f = /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "扫描失败",- children: r.error || "后台扫描失败"- });- else if (r?.status === "complete" && r.applied) f = t.job?.status === "complete" ? u(t.job) : /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- title: "清理结果",- children: "这次检查的结果已经清理,重新扫描可再核对。"- });- else if (r?.status === "complete") {- let e = nde(r);- f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(pfe, { scan: r }),- e ? /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "neutral",- title: "清理内容",- children: ade(r)- }) : null,- /* @__PURE__ */ (0, V.jsx)("div", {- className: "flex flex-wrap items-center justify-end gap-2",- children: e ? /* @__PURE__ */ (0, V.jsx)(J, {- variant: "danger",- ...X(a),- onClick: () => c(r),- children: a ? "正在复核并清理…" : tN- }) : /* @__PURE__ */ (0, V.jsx)("p", {- className: "mr-auto text-body-regular text-notification-success-foreground",- children: "已检查可访问的来源,没有待清理的记录、空文件夹或缓存。"- })- })- ] });}- return t.start.isError && !l && (f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [f, /* @__PURE__ */ (0, V.jsx)(Y, {- tone: "error",- title: "清理失败",- children: W(t.start.error)- })] })), /* @__PURE__ */ (0, V.jsxs)("section", {- id: "resource-sync",- "aria-labelledby": "resource-sync-title",- className: "flex scroll-mt-20 flex-col gap-4",- children: [- /* @__PURE__ */ (0, V.jsx)(OM, {- id: "resource-sync-title",- children: "资源同步"- }),- /* @__PURE__ */ (0, V.jsxs)(AM, {- layout: "split",- labelledBy: "resource-sync-box",- footer: /* @__PURE__ */ (0, V.jsx)(J, {- "data-resource-scan": !0,- leadingIcon: o && !i ? dfe : ufe,- ...X(i),- onClick: () => {- i || n.start.mutate();- },- children: s- }),- children: [- /* @__PURE__ */ (0, V.jsx)(kM, {- id: "resource-sync-box",- gap: "small",- children: "文件与记录核对"- }),- /* @__PURE__ */ (0, V.jsx)("p", {- className: "max-w-190 text-body-2-regular leading-5 text-text-secondary",- children: "按馆藏记录逐条查找本地磁盘与网盘上的文件,列出文件已不存在的记录、空文件夹,以及不再被引用的缓存。"- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "aria-live": "polite",- className: "mt-4 empty:hidden",- children: d- })- ]- }),- /* @__PURE__ */ (0, V.jsx)("div", {- "aria-live": "polite",- className: "flex flex-col gap-4 empty:hidden",- children: f- })- ]- });-}-//#endregion-//#region src/react/data-cleanup/data-cleanup-page.tsx-function iN(e, t) {- return e.data === void 0 ? { figure: e.isError ? "读取失败" : "—" } : t(e.data);-}-function aN({ section: e, label: t, icon: n, value: r, open: i }) {- return /* @__PURE__ */ (0, V.jsx)("button", {- type: "button",- className: SM({ interactive: !0 }),- "data-cleanup-go": e,- onClick: () => i(e),- children: /* @__PURE__ */ (0, V.jsx)(CM, {- label: t,- icon: n,- figure: r.figure,- meta: r.meta- })- });-}-var hfe = xA("square-check-big"), gfe = xA("sparkles"), _fe = xA("file-stack"), vfe = xA("file-archive"), yfe = xA("trash"), bfe = [- fM,- dj,- GA-], xfe = () => {- for (let e of bfe) z.invalidateQueries({- queryKey: e,- exact: !0- });-};-function Sfe({ toast: e, failure: t, open: n }) {- let r = ES({- queryKey: fM,- queryFn: ({ signal: e }) => gM(e)- }), i = ES({- queryKey: dj,- queryFn: ({ signal: e }) => fj(e)- }), a = ES({- queryKey: GA,- queryFn: ({ signal: e }) => qA(e)- }), o = ES({- queryKey: pM,- queryFn: ({ signal: e }) => _M(e)- }), s = ES({- queryKey: hM,- queryFn: ({ signal: e }) => vM(e)- }), c = ES({- queryKey: tt,- queryFn: ({ signal: e }) => rt(e)- }), l = (t) => e(t);- return /* @__PURE__ */ (0, V.jsxs)(AE, { children: [- /* @__PURE__ */ (0, V.jsxs)("div", {- className: yde,- children: [- /* @__PURE__ */ (0, V.jsx)(aN, {- section: "review",- label: "人工复核",- icon: hfe,- open: n,- value: iN(r, fde)- }),- /* @__PURE__ */ (0, V.jsx)(aN, {- section: "quality",- label: "高清版",- icon: gfe,- open: n,- value: iN(i, (e) => ({ figure: `${Number(e.total || 0).toLocaleString()} 个待升级` }))- }),- /* @__PURE__ */ (0, V.jsx)(aN, {- section: "duplicates",- label: "重复文件",- icon: _fe,- open: n,- value: iN(a, (e) => Number(e.total || 0) ? {- figure: `${Number(e.total).toLocaleString()} 组 · ${Number(e.files || 0).toLocaleString()} 个文件`,- meta: `可回收 ${pe(e.reclaimable || 0)}`- } : { figure: "没有重复内容" })- }),- /* @__PURE__ */ (0, V.jsx)(aN, {- section: "ads",- label: "垃圾文件",- icon: vfe,- open: n,- value: iN(o, (e) => ({- figure: `${Number(e.pending_total || 0).toLocaleString()} 个待判断`,- meta: pde(e)- }))- }),- /* @__PURE__ */ (0, V.jsx)(aN, {- section: "trash",- label: "回收站",- icon: yfe,- open: n,- value: iN(s, (e) => ({- figure: `${Number(e.total || 0).toLocaleString()} 项在回收站`,- meta: e.total ? `占用 ${pe(e.bytes || 0)}` : ""- }))- })- ]- }),- /* @__PURE__ */ (0, V.jsxs)("div", {- className: "flex flex-col gap-4 max-cleanup-tight:gap-3",- children: [- /* @__PURE__ */ (0, V.jsx)("div", {- id: "libraryProcessing",- className: "scroll-mt-20",- children: /* @__PURE__ */ (0, V.jsx)(LM, {- toast: l,- monitor: !0,- onComplete: xfe- })- }),- /* @__PURE__ */ (0, V.jsx)("div", {- id: "mediaRepair",- children: /* @__PURE__ */ (0, V.jsx)(Bde, {})- }),- /* @__PURE__ */ (0, V.jsx)(Qde, {- toast: l,- failure: t- })- ]- }),- /* @__PURE__ */ (0, V.jsx)(qde, {}),- /* @__PURE__ */ (0, V.jsx)(lfe, { toast: l }),- oM(c.data) ? /* @__PURE__ */ (0, V.jsx)(mfe, { toast: e }) : null- ] });-}-//#endregion-//#region src/react/feed-new/feed-new.ts-var oN = (e) => ["feed-new", e ?? "home"], Cfe = 8, wfe = 1500;-function Tfe(e, t, n) {- let r = document.createElement("template");- r.innerHTML = e;- let i = [...r.content.querySelectorAll("img[src]")].slice(0, t).map((e) => {- let t = new Image();- return t.referrerPolicy = e.getAttribute("referrerpolicy") || "", t.src = e.getAttribute("src") || "", t.decode().catch(() => {});- });- return Promise.race([Promise.all(i), new Promise((e) => {- setTimeout(e, n);- })]);-}-async function Efe(e, t, n) {- let r = new URLSearchParams({ limit: "12" });- e && r.set("entity", String(e));- let i = await ce(`/api/feeds/discoveries?${r}`).catch(() => null), a = i && !i.error ? i : null, o = a?.items || [], s = t(a);- return n && o.length && await Tfe(s, Cfe, wfe), {- items: o,- html: s- };-}-var sN = (e, t, n = !1) => ({- queryKey: oN(e),- queryFn: () => Efe(e, t, n),- staleTime: Infinity-}), cN = (e, t) => ce("/api/feeds/discovery", {- method: "POST",- body: JSON.stringify({- action: t,- ids: [e]- })-}).then(() => void 0, () => void 0);-async function Dfe(e) {- z.removeQueries({ queryKey: oN(null) }), await z.fetchQuery(sN(null, e.helpers.feedRowHtml, e.host.getAttribute("aria-busy") === "true"));-}-//#endregion-//#region src/react/entity-page/entity-page.ts-var Ofe = [- "loc",- "creator",- "tag",- "state",- "dur_min",- "dur_max",- "orient",- "sort",- "dir"-], lN = {- media: "videos",- set: 0-}, uN = (e, t) => [- "entity",- e,- t-], kfe = (e, t, n, r) => [- "entity-items",- e,- t,- n,- r-], dN = (e, t, n, r) => [- "entity-photos",- e,- t,- n,- r-], fN = (e) => String(e || "").split(",").filter(Boolean), Afe = (e, t) => fN(e).includes(t);-function pN(e, t, n, r, i = 0) {- let a = new URLSearchParams();- a.set(e, t), a.set("limit", "48"), a.set("offset", String(i)), a.set("sort", n.sort || "new"), n.dir && a.set("dir", n.dir), n.sort === "seed" && a.set("seed", r.seed), i && a.set("count", "0");- for (let t of Ofe) n[t] && t !== e && t !== "sort" && a.set(t, n[t]);- return r.jav && a.set("jav", "1"), a;-}-async function mN(e, t, n, r, i, a) {- return await ce(`/api/items?${pN(e, t, n, r, i)}`, a ? { signal: a } : {});-}-var hN = (e) => {- let t = {- jav: e.jav,- seed: e.seed- }, n = pN(e.kind, e.name, e.filters, t).toString();- return {- queryKey: kfe(e.kind, e.name, n, e.revision),- queryFn: ({ signal: n }) => mN(e.kind, e.name, e.filters, t, 0, n),- staleTime: Infinity- };-}, gN = (e, t) => ({- queryKey: uN(e, t),- queryFn: ({ signal: n }) => ce(`/api/entity?kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`, { signal: n }),- staleTime: Infinity-});-function jfe(e, t, n, r, i, a) {- let o = `kind=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`;- if (i) {- let e = `&limit=120&offset=${i}${a ? `&seed=${encodeURIComponent(a)}` : ""}`;- return n ? `/api/photo-set?id=${n}${e}` : `/api/photos?${o}${e}`;+ var Nh = !1, Ph = null, Fh = null, Ih = null, Lh = /* @__PURE__ */ new Map(), Rh = /* @__PURE__ */ new Map(), zh = [], Bh = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");+ function Vh(e, t) {+ switch (e) {+ case "focusin":+ case "focusout":+ Ph = null;+ break;+ case "dragenter":+ case "dragleave":+ Fh = null;+ break;+ case "mouseover":+ case "mouseout":+ Ih = null;+ break;+ case "pointerover":+ case "pointerout":+ Lh.delete(t.pointerId);+ break;+ case "gotpointercapture":+ case "lostpointercapture": Rh.delete(t.pointerId);+ }}- let s = r ? `&seed=${encodeURIComponent(r)}` : "";- return n ? `/api/photo-set?id=${n}&limit=120${s}` : r ? `/api/photos?${o}&limit=120${s}` : `/api/photos?${o}`;-}-var _N = (e, t, n, r) => ({- queryKey: dN(e, t, n, r),- queryFn: async ({ pageParam: i }) => {- let a = await ce(jfe(e, t, n, r, i?.offset || 0, i?.seed || "")).catch((e) => {- if (i) throw e;- return { error: String(e) };- });- if (i && a.error) throw Error(a.error);- return a;- },- initialPageParam: null,- getNextPageParam: (e, t) => e.has_more && !e.error ? {- offset: t.reduce((e, t) => e + (t.items || []).length, 0),- seed: t[0]?.seed || ""- } : void 0,- staleTime: Infinity-}), vN = (e) => e && !e.error ? (e.sets || []).filter((e) => e.kind === "code") : [];-async function Mfe(e) {- let { kind: t, name: n } = e;- for (let e of [- "entity",- "entity-items",- "entity-photos"- ]) z.removeQueries({ queryKey: [- e,- t,- n- ] });- await Promise.all([- z.fetchQuery(gN(t, n)).then((t) => !t || t.error || !t.id ? null : (z.removeQueries({ queryKey: oN(Number(t.id)) }), z.fetchQuery(sN(Number(t.id), e.helpers.feedRowHtml, !0)))),- z.fetchQuery(hN(e)),- z.fetchInfiniteQuery(_N(t, n, 0, "")),- e.media.media === "photos" && e.media.set ? z.fetchInfiniteQuery(_N(t, n, e.media.set, "")) : null- ]);-}-//#endregion-//#region src/react/follow/online-vocab.ts-var Nfe = "/api/follow/authors", Pfe = "/api/follow/tags", Ffe = (e) => [- "follow",- "authors",- e-], Ife = (e, t) => [- "follow",- "tags",- e,- t-];-function Lfe(e, t, n) {- let r = new URLSearchParams({- limit: String(t),- offset: String(n)- });- return e && r.set("q", e), `${Nfe}?${r}`;-}-function Rfe(e, t, n, r) {- let i = new URLSearchParams({- types: "all",- limit: String(n),- offset: String(r)- });- return t && t !== "all" && i.set("type", t), e && i.set("q", e), `${Pfe}?${i}`;-}-var zfe = (e, t, n, r) => G(Lfe(e, t, n), r), Bfe = (e, t, n, r, i) => G(Rfe(e, t, n, r), i), Vfe = "/api/index", yN = {- performers: "艺人",- creators: "卖家",- studios: "厂牌",- agencies: "事务所",- tags: "标签"-}, Hfe = {- performers: "performer",- creators: "creator",- studios: "studio",- agencies: "agency"-}, bN = [- ["all", "全部"],- ["meta", "影片属性"],- ["relationship", "人物关系"],- ["role", "角色设定"],- ["appearance", "外貌身材"],- ["scene", "情境场所"],- ["story", "故事剧情"],- ["position", "性交体位"],- ["general", "其他内容"]-], xN = [- ["all", "全部"],- ["general", "通用"],- ["artist", "创作者"],- ["character", "角色"],- ["copyright", "作品"],- ["metadata", "元数据"]-], SN = {- performers: [- ["all", "全部"],- ["japanese_av", "女优"],- ["amateur", "素人"],- ["western", "西方"],- ["blogger", "网黄博主"],- ["animation", "动画作者"]- ],- creators: [["all", "全部"]]-}, CN = {- people: 120,- tags: 180-}, wN = (e) => e !== "tags", TN = (e) => e === "studios" || e === "agencies";-function EN(e) {- if (e.kind === "creators" && e.category === "animation") return EN({- ...e,- kind: "performers",- scope: "local"- });- let t = e.kind === "tags" || e.kind === "performers" ? e.scope : "local", n = e.kind === "tags" ? t === "online" ? xN : bN : e.kind === "performers" || e.kind === "creators" ? SN[e.kind] : [], r = t === "local" && (e.kind === "creators" || e.kind === "performers"), i = n.some(([t]) => t === e.category);- return {- ...e,- scope: t,- category: (e.kind === "tags" || r) && i ? e.category : "all"+ function Hh(e, t, n, r, i, a) {+ return e === null || e.nativeEvent !== a ? (e = {+ blockedOn: t,+ domEventName: n,+ eventSystemFlags: r,+ nativeEvent: a,+ targetContainers: [i]+ }, t !== null && (t = jt(t), t !== null && Ch(t)), e) : (e.eventSystemFlags |= r, t = e.targetContainers, i !== null && t.indexOf(i) === -1 && t.push(i), e);+ }+ function Uh(e, t, n, r, i) {+ switch (t) {+ case "focusin": return Ph = Hh(Ph, e, t, n, r, i), !0;+ case "dragenter": return Fh = Hh(Fh, e, t, n, r, i), !0;+ case "mouseover": return Ih = Hh(Ih, e, t, n, r, i), !0;+ case "pointerover":+ var a = i.pointerId;+ return Lh.set(a, Hh(Lh.get(a) || null, e, t, n, r, i)), !0;+ case "gotpointercapture": return a = i.pointerId, Rh.set(a, Hh(Rh.get(a) || null, e, t, n, r, i)), !0;+ }+ return !1;+ }+ function Wh(e) {+ var t = kt(e.target);+ if (t !== null) {+ var n = o(t);+ if (n !== null) {+ if (t = n.tag, t === 13) {+ if (t = s(n), t !== null) {+ e.blockedOn = t, gt(e.priority, function() {+ wh(n);+ });+ return;+ }+ } else if (t === 31) {+ if (t = c(n), t !== null) {+ e.blockedOn = t, gt(e.priority, function() {+ wh(n);+ });+ return;+ }+ } else if (t === 3 && n.stateNode.current.memoizedState.isDehydrated) {+ e.blockedOn = n.tag === 3 ? n.stateNode.containerInfo : null;+ return;+ }+ }+ }+ e.blockedOn = null;+ }+ function Gh(e) {+ if (e.blockedOn !== null) return !1;+ for (var t = e.targetContainers; 0 < t.length;) {+ var n = kh(e.nativeEvent);+ if (n === null) {+ n = e.nativeEvent;+ var r = new n.constructor(n.type, n);+ _n = r, n.target.dispatchEvent(r), _n = null;+ } else return t = jt(n), t !== null && Ch(t), e.blockedOn = n, !1;+ t.shift();+ }+ return !0;+ }+ function Kh(e, t, n) {+ Gh(e) && n.delete(t);+ }+ function qh() {+ Nh = !1, Ph !== null && Gh(Ph) && (Ph = null), Fh !== null && Gh(Fh) && (Fh = null), Ih !== null && Gh(Ih) && (Ih = null), Lh.forEach(Kh), Rh.forEach(Kh);+ }+ function Jh(e, n) {+ e.blockedOn === n && (e.blockedOn = null, Nh || (Nh = !0, t.unstable_scheduleCallback(t.unstable_NormalPriority, qh)));+ }+ var Yh = null;+ function Xh(e) {+ Yh !== e && (Yh = e, t.unstable_scheduleCallback(t.unstable_NormalPriority, function() {+ Yh === e && (Yh = null);+ for (var t = 0; t < e.length; t += 3) {+ var n = e[t], r = e[t + 1], i = e[t + 2];+ if (typeof r != "function") {+ if (jh(r || n) === null) continue;+ break;+ }+ var a = jt(n);+ a !== null && (e.splice(t, 3), t -= 3, nc(a, {+ pending: !0,+ data: i,+ method: n.method,+ action: r+ }, r, i));+ }+ }));+ }+ function Zh(e) {+ function t(t) {+ return Jh(t, e);+ }+ Ph !== null && Jh(Ph, e), Fh !== null && Jh(Fh, e), Ih !== null && Jh(Ih, e), Lh.forEach(t), Rh.forEach(t);+ for (var n = 0; n < zh.length; n++) {+ var r = zh[n];+ r.blockedOn === e && (r.blockedOn = null);+ }+ for (; 0 < zh.length && (n = zh[0], n.blockedOn === null);) Wh(n), n.blockedOn === null && zh.shift();+ if (n = (e.ownerDocument || e).$$reactFormReplay, n != null) for (r = 0; r < n.length; r += 3) {+ var i = n[r], a = n[r + 1], o = i[yt] || null;+ if (typeof a == "function") o || Xh(n);+ else if (o) {+ var s = null;+ if (a && a.hasAttribute("formAction")) {+ if (i = a, o = a[yt] || null) s = o.formAction;+ else if (jh(i) !== null) continue;+ } else s = o.action;+ typeof s == "function" ? n[r + 1] = s : (n.splice(r, 3), r -= 3), Xh(n);+ }+ }+ }+ function Qh() {+ function e(e) {+ e.canIntercept && e.info === "react-transition" && e.intercept({+ handler: function() {+ return new Promise(function(e) {+ return i = e;+ });+ },+ focusReset: "manual",+ scroll: "manual"+ });+ }+ function t() {+ i !== null && (i(), i = null), r || setTimeout(n, 20);+ }+ function n() {+ if (!r && !navigation.transition) {+ var e = navigation.currentEntry;+ e && e.url != null && navigation.navigate(e.url, {+ state: e.getState(),+ info: "react-transition",+ history: "replace"+ });+ }+ }+ if (typeof navigation == "object") {+ var r = !1, i = null;+ return navigation.addEventListener("navigate", e), navigation.addEventListener("navigatesuccess", t), navigation.addEventListener("navigateerror", t), setTimeout(n, 100), function() {+ r = !0, navigation.removeEventListener("navigate", e), navigation.removeEventListener("navigatesuccess", t), navigation.removeEventListener("navigateerror", t), i !== null && (i(), i = null);+ };+ }+ }+ function $h(e) {+ this._internalRoot = e;+ }+ eg.prototype.render = $h.prototype.render = function(e) {+ var t = this._internalRoot;+ if (t === null) throw Error(i(409));+ var n = t.current;+ bh(n, zd(), e, t, null, null);+ }, eg.prototype.unmount = $h.prototype.unmount = function() {+ var e = this._internalRoot;+ if (e !== null) {+ this._internalRoot = null;+ var t = e.containerInfo;+ bh(e.current, 2, null, e, null, null), qd(), t[bt] = null;+ }};-}-function DN(e) {- let { kind: t, q: n, scope: r, category: i } = e;- return t === "tags" ? r === "online" ? {- what: "online-tags",- q: n,- category: i- } : {- what: "tags",- q: n,- category: i- } : t === "performers" && r === "online" ? {- what: "online-authors",- q: n- } : {- what: "people",- kind: t,- q: n,- ...i && i !== "all" ? { category: i } : {}+ function eg(e) {+ this._internalRoot = e;+ }+ eg.prototype.unstable_scheduleHydration = function(e) {+ if (e) {+ var t = ht();+ e = {+ blockedOn: null,+ target: e,+ priority: t+ };+ for (var n = 0; n < zh.length && t !== 0 && t < zh[n].priority; n++);+ zh.splice(n, 0, e), n === 0 && Wh(e);+ }};-}-var ON = (e, t, n = "all") => [- "index",- e,- t,- ...e === "tags" || n !== "all" ? [n] : []-];-function kN(e, t, n, r, i) {- let a = new URLSearchParams({- kind: e,- limit: String(r),- offset: String(i)- });- return t && a.set("q", t), n !== "all" && a.set("category", n), `${Vfe}?${a}`;-}-function AN(e) {- let t = e.what === "people" || e.what === "online-authors" ? CN.people : CN.tags, n = {- initialPageParam: 0,- getNextPageParam: (e, t) => e.has_more ? t.reduce((e, t) => e + t.items.length, 0) : void 0+ var tg = n.version;+ if (tg !== "19.3.0") throw Error(i(527, tg, "19.3.0"));+ de.findDOMNode = function(e) {+ var t = e._reactInternals;+ if (t === void 0) throw typeof e.render == "function" ? Error(i(188)) : (e = Object.keys(e).join(","), Error(i(268, e)));+ return e = u(t), e = e === null ? null : d(e), e = e === null ? null : e.stateNode, e;};- switch (e.what) {- case "people": return {- ...n,- queryKey: ON(e.kind, e.q, e.category || "all"),- queryFn: ({ pageParam: n, signal: r }) => G(kN(e.kind, e.q, e.category || "all", t, n), r)- };- case "tags": return {- ...n,- queryKey: ON("tags", e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => G(kN("tags", e.q, e.category, t, n), r)- };- case "online-authors": return {- ...n,- queryKey: Ffe(e.q),- queryFn: ({ pageParam: n, signal: r }) => zfe(e.q, t, n, r)- };- case "online-tags": return {- ...n,- queryKey: Ife(e.q, e.category),- queryFn: ({ pageParam: n, signal: r }) => Bfe(e.q, e.category, t, n, r)- };+ var ng = {+ bundleType: 0,+ version: "19.3.0",+ rendererPackageName: "react-dom",+ currentDispatcherRef: L,+ reconcilerVersion: "19.3.0"+ };+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {+ var rg = __REACT_DEVTOOLS_GLOBAL_HOOK__;+ if (!rg.isDisabled && rg.supportsFiber) try {+ Ke = rg.inject(ng), qe = rg;+ } catch {}}-}-async function Ufe(e, t) {- let n = AN(DN(EN(e)));- z.removeQueries({- queryKey: n.queryKey,- exact: !0- }), await z.fetchInfiniteQuery({- queryKey: n.queryKey,- queryFn: ({ pageParam: e }) => n.queryFn({- pageParam: e,- signal: t- }),- initialPageParam: 0,- getNextPageParam: n.getNextPageParam- });-}-var Wfe = (e) => e ? e.pages.flatMap((e) => e.items) : [], Gfe = (e, t) => `${e}${t ? "+" : ""} 项`, jN = (e, t) => e ? `r34-${t || "unknown"}` : t || "general", Kfe = (e, t) => e === "agencies" ? `${(t.members || 0).toLocaleString()} 人` : t.n.toLocaleString(), qfe = {- numeric: !0,- sensitivity: "base"-};-function Jfe(e, t) {- let n = /* @__PURE__ */ new Map();- for (let r of [...e].sort((e, t) => e.k.localeCompare(t.k, "zh-CN", qfe))) {- let e = t(r.k).normalize("NFKC").trim().charAt(0).toUpperCase(), i = /[A-Z]/.test(e) ? e : /[0-9]/.test(e) ? "#" : /[㐀-鿿]/.test(e) ? "中文" : "其他", a = n.get(i);- a ? a.push(r) : n.set(i, [r]);+ e.createRoot = function(e, t) {+ if (!a(e)) throw Error(i(299));+ var n = !1, r = "", o = Tc, s = Ec, c = Dc;+ return t != null && (!0 === t.unstable_strictMode && (n = !0), t.identifierPrefix !== void 0 && (r = t.identifierPrefix), t.onUncaughtError !== void 0 && (o = t.onUncaughtError), t.onCaughtError !== void 0 && (s = t.onCaughtError), t.onRecoverableError !== void 0 && (c = t.onRecoverableError)), t = vh(e, 1, !1, null, null, n, r, null, o, s, c, Qh), e[bt] = t.current, ep(e), new $h(t);+ };+})), MN = (/* @__PURE__ */ xt(((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);+ } catch (e) {+ console.error(e);+ }}- return [...n].sort(([e], [t]) => e.localeCompare(t, "zh-CN"));-}-//#endregion-//#region src/react/index/index-people.tsx-function MN({ html: e, face: t, company: n, big: r }) {- let i = (0, B.useRef)(null);- return (0, B.useLayoutEffect)(() => {- t ? i.current?.style.setProperty("--face", t) : i.current?.style.removeProperty("--face");- }, [t]), /* @__PURE__ */ (0, V.jsx)("span", {- ref: i,- "data-person-ring": "",- "data-fit-native": n ? "mark" : "portrait",- className: `relative inline-grid flex-none place-items-center self-center overflow-hidden text-title-1-regular ${r ? n ? "aspect-square w-full rounded-2lg" : "aspect-3/4 w-full rounded-2lg" : "size-17.5 rounded-full"} [&_img]:absolute [&_img]:inset-0 [&_img]:block [&_img]:size-full [&_img]:max-w-none [&_img]:object-cover [&_img]:object-(--face)`,- dangerouslySetInnerHTML: { __html: e }- });-}-var Yfe = "flex cursor-pointer flex-col gap-2 p-3 text-inherit";-function NN({ name: e, readout: t, big: n, children: r, onPress: i, ...a }) {- return /* @__PURE__ */ (0, V.jsxs)("button", {- type: "button",- ...a,- "data-index-cell": "",- onClick: i,- className: DE({- radius: "plain",- padding: "none",- interactive: !0,- className: `${Yfe} ${n ? "items-stretch text-left" : "items-center text-center"}`- }),- children: [- r,- /* @__PURE__ */ (0, V.jsx)("span", {- "data-index-name": "",- className: "text-body-medium break-all text-text-primary",- children: e- }),- /* @__PURE__ */ (0, V.jsx)("span", {- "data-index-readout": "",- className: "text-caption-1-regular",- children: t- })- ]- });-}-function PN({ kind: e, items: t, layout: n, props: r }) {- let i = TN(e), a = n === "big";- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-index-grid": "",- "data-layout": n,- "data-cells": i ? "company" : "people",- className: `${i ? "index-grid-company" : "index-grid-person"} gap-3`,- children: t.map((t) => {- let n = t.entity_kind || Hfe[e], o = r.personAvatar(t, n, a);- return /* @__PURE__ */ (0, V.jsx)(NN, {- "data-k": t.k,- "data-kind": n,- name: t.k,- readout: `${Kfe(e, t)}${t.identity_labels?.length ? " · " + t.identity_labels.join(" / ") : ""}`,- big: a,- onPress: () => r.openEntity(n, t.k),- children: /* @__PURE__ */ (0, V.jsx)(MN, {- html: o.html,- face: o.face,- company: i,- big: a- })- }, `${n}:${t.entity_id || t.k}`);- })- });-}-function Xfe({ items: e, layout: t, props: n }) {- let r = t === "big";- return /* @__PURE__ */ (0, V.jsx)("div", {- "data-index-grid": "",- "data-layout": t,- "data-cells": "people",- className: "index-grid-person gap-3",- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(NN, {- "data-follow-author": e.key,- "data-kind": "performer",- name: e.k,- readout: `${e.n.toLocaleString()} 项更新`,- big: r,- onPress: () => n.openFollowAuthor(e.key),- children: /* @__PURE__ */ (0, V.jsx)(MN, {- html: n.authorAvatar(e),- company: !1,- big: r- })- }, e.key))- });-}-//#endregion-//#region src/board-controls.ts+ n(), t.exports = Xfe();+})))();function Zfe(e) {let t = Number(e.min) || 0, n = Number(e.max) || 100, r = Number(e.value), i = n > t ? Math.max(0, Math.min(100, (r - t) / (n - t) * 100)) : 0;e.style.setProperty("--board-range-value", `${i}%`);}//#endregion//#region src/react/photo-lightbox/photo-lightbox.ts-var FN = "/vendor/swiper/14.2.0/", IN = null, Qfe = () => IN ??= Promise.all([new Promise((e, t) => {- let n = `${FN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);+var NN = "/vendor/swiper/14.2.0/", PN = null, Qfe = () => PN ??= Promise.all([new Promise((e, t) => {+ let n = `${NN}swiper-bundle.min.css`, r = document.querySelector(`link[href="${n}"]`);if (r?.sheet) {e();return;@@ -37805,9 +37796,9 @@ var FN = "/vendor/swiper/14.2.0/", IN = null, Qfe = () => IN ??= Promise.all([nereturn;}let r = document.createElement("script");- r.src = `${FN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);+ r.src = `${NN}swiper-bundle.min.js`, r.onload = () => e(window.Swiper), r.onerror = () => t(/* @__PURE__ */ Error("swiper unavailable")), document.head.append(r);})]).then(([, e]) => e).catch((e) => {- throw IN = null, e;+ throw PN = null, e;});function $fe(e, t, n) {let r = "fit", i = () => t.slides?.[t.activeIndex]?.querySelector("img"), a = () => {@@ -37830,28 +37821,28 @@ function $fe(e, t, n) {}};}-var LN = (e) => {+var FN = (e) => {let t = Number(e) || 0;return t ? (t < 1048576 ? `${Math.max(1, Math.round(t / 1024))} KB` : pe(t)).replace(" ", "\xA0") : "大小未知";}, epe = (e) => e.asset?.name || e.name || "未命名图片";function tpe(e, t) {let n = e.asset;- if (n) return [se[n.location ?? ""] || n.location || "来源未知", LN(n.size)].join(" · ");+ if (n) return [se[n.location ?? ""] || n.location || "来源未知", FN(n.size)].join(" · ");let r = (e.total ?? 0) > 1 ? `第 ${e.position} / ${e.total} 张` : "", i = t?.[0] && t[1] ? `${t[0]} × ${t[1]}` : "";return [e.source || "在线图片",r,i,- e.size ? LN(e.size) : ""+ e.size ? FN(e.size) : ""].filter(Boolean).join(" · ");}//#endregion//#region src/react/photo-lightbox/photo-lightbox-dialog.tsx-var RN = null, zN = null, npe = 0;+var IN = null, LN = null, npe = 0;function rpe() {- return (!zN || !RN?.isConnected) && (zN?.unmount(), RN = document.createElement("div"), RN.className = "peach-react", RN.dataset.photoLightboxHost = "", document.body.append(RN), zN = (0, cS.createRoot)(RN)), zN;+ return (!LN || !IN?.isConnected) && (LN?.unmount(), IN = document.createElement("div"), IN.className = "peach-react", IN.dataset.photoLightboxHost = "", document.body.append(IN), LN = (0, MN.createRoot)(IN)), LN;}-async function BN(e, t, n) {+async function RN(e, t, n) {if (!t.length || e < 0 || e >= t.length) return;let r;try {@@ -37868,8 +37859,8 @@ async function BN(e, t, n) {host: n ?? null}, ++npe)));}-function VN() {- zN && (0, $f.flushSync)(() => zN.render(null));+function zN() {+ LN && (0, $f.flushSync)(() => LN.render(null));}function ipe({ slides: e, index: t, Swiper: n, host: r }) {let i = e.length > 1, a = (0, B.useId)(), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (0, B.useRef)(null), [_, v] = (0, B.useState)(t), [y, b] = (0, B.useState)(100), [x, S] = (0, B.useState)({}), [C, w] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [T, E] = (0, B.useState)(!1), [D, O] = (0, B.useState)({@@ -37931,7 +37922,7 @@ function ipe({ slides: e, index: t, Swiper: n, host: r }) {});y.observe(e);let x = (e) => {- e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : VN());+ e.key === "Escape" && (e.preventDefault(), e.stopImmediatePropagation(), g.current?.isOpen() ? g.current.dismiss(!0) : zN());};return document.addEventListener("keydown", x, !0), () => {document.removeEventListener("keydown", x, !0), _(), y.disconnect(), a.destroy(!0, !0), r.destroy(!0, !0), h.current = null, g.current = null, e.close(), document.body.classList.remove("photolight-open");@@ -37968,18 +37959,18 @@ function ipe({ slides: e, index: t, Swiper: n, host: r }) {"data-photo-lightbox": "","data-has-strip": i ? "" : void 0,onCancel: (e) => {- e.preventDefault(), VN();+ e.preventDefault(), zN();},onClick: (e) => {let t = e.target;- g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && VN();+ g.current?.dismissOutside(t) || (t === o.current || t.classList.contains("swiper-zoom-container")) && zN();},children: [/* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-photo-close": "","aria-label": "关闭",- onClick: VN,+ onClick: zN,dangerouslySetInnerHTML: { __html: R("x") }}),/* @__PURE__ */ (0, V.jsxs)("div", {@@ -38168,7 +38159,7 @@ function ope({ roster: e, props: t }) {personAvatar: n.personAvatar,openEntity: r.openEntity}), [n, r]);- return /* @__PURE__ */ (0, V.jsx)(PN, {+ return /* @__PURE__ */ (0, V.jsx)(jN, {kind: e.kind,items: e.people,layout: e.layout,@@ -38176,11 +38167,11 @@ function ope({ roster: e, props: t }) {});}function spe(e) {- let t = AA(!e.items, e.skeletonHtml);+ let t = DA(!e.items, e.skeletonHtml);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-grid": "","data-grid-reveal": t.fading ? "" : void 0,- children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(VA, {+ children: [t.layer, e.items ? /* @__PURE__ */ (0, V.jsx)(RA, {mode: "entity",entityKey: `${e.kind}:${e.name}`,revision: e.revision,@@ -38206,9 +38197,9 @@ var cpe = (e) => Array.from({ length: e.n }, (t, n) => ({total: e.n,name: `${e.code} 样张 ${n + 1}`,source: e.site_label || "官方样张"-})), HN = (e) => e.sample === !0, UN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, WN = (e) => HN(e) ? `/sample-thumb?${UN(e)}` : `/photo-thumb?id=${e.id}`, lpe = (e) => HN(e) ? {- src: `/sample-image?${UN(e)}`,- thumb: WN(e),+})), BN = (e) => e.sample === !0, VN = (e) => `code=${encodeURIComponent(e.code)}&n=${e.position}`, HN = (e) => BN(e) ? `/sample-thumb?${VN(e)}` : `/photo-thumb?id=${e.id}`, lpe = (e) => BN(e) ? {+ src: `/sample-image?${VN(e)}`,+ thumb: HN(e),name: e.name,asset: null,source: e.source,@@ -38216,7 +38207,7 @@ var cpe = (e) => Array.from({ length: e.n }, (t, n) => ({total: e.total} : {src: `/photo?id=${e.id}`,- thumb: WN(e),+ thumb: HN(e),name: e.name || "",asset: e};@@ -38226,7 +38217,7 @@ function upe({ photos: e, props: t }) {let n = new Set(t);return n.add(e), n;}), []), u = (0, B.useCallback)((e) => {- BN(e, o.map(lpe), { revealSource: i.revealSource });+ RN(e, o.map(lpe), { revealSource: i.revealSource });}, [i, o]), d = (e, t) => /* @__PURE__ */ (0, V.jsx)(dpe, {item: e,index: t,@@ -38245,7 +38236,7 @@ function upe({ photos: e, props: t }) {};}), h = p;return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(GN, {+ m.map(({ set: e, from: t }) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(UN, {label: e.code,title: e.name,meta: [@@ -38257,7 +38248,7 @@ function upe({ photos: e, props: t }) {...f,children: o.slice(t, t + e.n).map((e, n) => d(e, t + n))})] }, e.code)),- m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(GN, {+ m.length && e.total ? /* @__PURE__ */ (0, V.jsx)(UN, {label: "本地图片",meta: `${e.total.toLocaleString()} 张`}) : null,@@ -38266,14 +38257,14 @@ function upe({ photos: e, props: t }) {"data-local-wall": "",children: e.items.map((e, t) => s.has(h + t) ? null : d(e, h + t))}),- e.hasMore ? /* @__PURE__ */ (0, V.jsx)(HA, {+ e.hasMore ? /* @__PURE__ */ (0, V.jsx)(zA, {entity: !0,load: i.loadMorePhotos,enabled: () => a?.() !== !1}, e.items.length) : null] });}-function GN({ label: e, title: t, meta: n }) {+function UN({ label: e, title: t, meta: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-photo-group": "",children: [@@ -38299,7 +38290,7 @@ function dpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {title: a,onClick: () => i(t),children: n ? null : /* @__PURE__ */ (0, V.jsx)("img", {- src: WN(e),+ src: HN(e),alt: a,loading: "lazy",decoding: "async",@@ -38308,7 +38299,7 @@ function dpe({ item: e, index: t, lost: n, onLose: r, onOpen: i }) {})});}-function KN(e) {+function WN(e) {return {x0: 0,y0: 0,@@ -38316,7 +38307,7 @@ function KN(e) {y1: e.height};}-function qN(e) {+function GN(e) {return {x0: Math.round(e.x0),y0: Math.round(e.y0),@@ -38324,21 +38315,21 @@ function qN(e) {y1: Math.round(e.y1)};}-function JN(e) {+function KN(e) {return !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;}-function YN(e, t) {- if (!JN(e)) return {+function qN(e, t) {+ if (!KN(e)) return {x0: 0,y0: 0,x1: 0,y1: 0};- if (t == null || !(t > 0)) return KN(e);+ if (t == null || !(t > 0)) return WN(e);let n = e.width, r = n / t;r > e.height && (r = e.height, n = r * t);let i = (e.width - n) / 2, a = (e.height - r) / 2;- return qN({+ return GN({x0: i,y0: a,x1: i + n,@@ -38346,9 +38337,9 @@ function YN(e, t) {});}function fpe(e, t) {- if (!JN(e) || !(t > 0)) return KN(e);+ if (!KN(e) || !(t > 0)) return WN(e);let n = Math.min(e.width, e.height * t);- return qN({+ return GN({x0: e.width - n,y0: 0,x1: e.width,@@ -38356,8 +38347,8 @@ function fpe(e, t) {});}function ppe(e, t, n) {- if (!JN(t) || !(n > 0)) return KN(t);- let r = XN(e, t), i = YN({+ if (!KN(t) || !(n > 0)) return WN(t);+ let r = JN(e, t), i = qN({width: r.x1 - r.x0,height: r.y1 - r.y0}, n);@@ -38368,8 +38359,8 @@ function ppe(e, t, n) {y1: r.y0 + i.y1};}-function XN(e, t, n = null, r = "width") {- if (!JN(t)) return {+function JN(e, t, n = null, r = "width") {+ if (!KN(t)) return {x0: 0,y0: 0,x1: 0,@@ -38378,26 +38369,26 @@ function XN(e, t, n = null, r = "width") {let i = Math.min(16, t.width, t.height), a = Math.max(i, Math.min(e.x1 - e.x0, t.width)), o = Math.max(i, Math.min(e.y1 - e.y0, t.height));n != null && n > 0 && (r === "width" ? (o = a / n, o > t.height && (o = t.height, a = o * n)) : (a = o * n, a > t.width && (a = t.width, o = a / n)), a > t.width && (a = t.width, o = a / n));let s = Math.max(0, Math.min(e.x0, t.width - a)), c = Math.max(0, Math.min(e.y0, t.height - o));- return qN({+ return GN({x0: s,y0: c,x1: s + a,y1: c + o});}-function ZN(e, t, n, r) {+function YN(e, t, n, r) {let i = e.x1 - e.x0, a = e.y1 - e.y0, o = Math.max(0, Math.min(e.x0 + t, r.width - i)), s = Math.max(0, Math.min(e.y0 + n, r.height - a));- return qN({+ return GN({x0: o,y0: s,x1: o + i,y1: s + a});}-function QN(e, t, n, r = null) {- if (!JN(n) || !(t > 0)) return e;+function XN(e, t, n, r = null) {+ if (!KN(n) || !(t > 0)) return e;let i = (e.x0 + e.x1) / 2, a = (e.y0 + e.y1) / 2, o = (e.x1 - e.x0) * t, s = (e.y1 - e.y0) * t;- return XN({+ return JN({x0: i - o / 2,y0: a - s / 2,x1: i + o / 2,@@ -38411,10 +38402,10 @@ function mpe(e, t, n, r, i = null) {x1: Math.max(e.x0 + 1, t),y1: Math.max(e.y0 + 1, n)};- return XN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");+ return JN(a, r, i, (a.x1 - a.x0) / Math.max(1, a.y1 - a.y0) > (i ?? 1) ? "height" : "width");}function hpe(e, t) {- return JN(t) ? {+ return KN(t) ? {left: e.x0 / t.width * 100,top: e.y0 / t.height * 100,width: (e.x1 - e.x0) / t.width * 100,@@ -38427,7 +38418,7 @@ function hpe(e, t) {};}function gpe(e, t) {- if (!JN(t)) return {+ if (!KN(t)) return {size: "cover",position: "50% 50%"};@@ -38446,29 +38437,29 @@ function _pe(e, t) {height: `${t.height / r * 100}%`};}-function $N(e, t, n) {+function ZN(e, t, n) {return t > 0 ? e * n / t : 0;}//#endregion//#region src/react/components/modal-frame.tsx-var eP = {+var vpe = {"avatar-picker": "max-w-avatar-picker","cover-crop": "max-w-cover-crop",form: "max-w-form-modal"};-function tP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {+function QN({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {let { isFocusVisible: a } = Zm();- return /* @__PURE__ */ (0, V.jsx)(PO, {+ return /* @__PURE__ */ (0, V.jsx)(AO, {isOpen: e,onOpenChange: t,isDismissable: !0,"data-modal-motion": "","data-motion-instant": a || void 0,className: "fixed inset-0 z-dialog flex items-center justify-center bg-scrim p-4",- children: /* @__PURE__ */ (0, V.jsx)(mse, {+ children: /* @__PURE__ */ (0, V.jsx)(fse, {"data-modal-surface": "",- className: `flex max-h-full w-full ${eP[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,- children: /* @__PURE__ */ (0, V.jsx)(AO, {+ className: `flex max-h-full w-full ${vpe[n]} flex-col overflow-hidden rounded-2-5xl border border-separator-border bg-background-full shadow-dropdown`,+ children: /* @__PURE__ */ (0, V.jsx)(EO, {"aria-label": r,className: "flex min-h-0 flex-col outline-none",children: i@@ -38476,7 +38467,7 @@ function tP({ isOpen: e, onOpenChange: t, width: n, label: r, children: i }) {})});}-function nP({ children: e }) {+function $N({ children: e }) {return /* @__PURE__ */ (0, V.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",@@ -38485,8 +38476,8 @@ function nP({ children: e }) {}//#endregion//#region src/react/crop/crop-frame.tsx-var vpe = .02, rP = 1.08;-function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {+var eP = .02, tP = 1.08;+function nP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o }) {let s = (0, B.useRef)(null), c = (0, B.useRef)(null), [l, u] = (0, B.useState)(!1);(0, B.useEffect)(() => {u(!1);@@ -38497,8 +38488,8 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odx: 0,dy: 0} : {- dx: $N(e, n.clientWidth, r.width),- dy: $N(t, n.clientHeight, r.height)+ dx: ZN(e, n.clientWidth, r.width),+ dy: ZN(t, n.clientHeight, r.height)};}, [r]);function f(e) {@@ -38516,7 +38507,7 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oif (!n || !a || !r) return;let o = d(e.clientX - n.x, e.clientY - n.y);if (n.mode === "move") {- i(ZN(n.box, o.dx, o.dy, r));+ i(YN(n.box, o.dx, o.dy, r));return;}i(mpe(n.box, n.box.x0 + (n.box.x1 - n.box.x0) + o.dx, n.box.y0 + (n.box.y1 - n.box.y0) + o.dy, r, t));@@ -38526,19 +38517,19 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o}function h(e) {if (!n || !r) return;- let a = Math.max(1, (n.x1 - n.x0) * vpe), o = {+ let a = Math.max(1, (n.x1 - n.x0) * eP), o = {ArrowLeft: [-a, 0],ArrowRight: [a, 0],ArrowUp: [0, -a],ArrowDown: [0, a]};if (o[e.key]) {- e.preventDefault(), i(ZN(n, o[e.key][0], o[e.key][1], r));+ e.preventDefault(), i(YN(n, o[e.key][0], o[e.key][1], r));return;}- (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(QN(n, e.key === "-" ? 1 / rP : rP, r, t)));+ (e.key === "+" || e.key === "=" || e.key === "-") && (e.preventDefault(), i(XN(n, e.key === "-" ? 1 / tP : tP, r, t)));}- let g = n && r ? hpe(XN(n, r, t), r) : null, _ = g ? {+ let g = n && r ? hpe(JN(n, r, t), r) : null, _ = g ? {"--crop-l": `${g.left}%`,"--crop-t": `${g.top}%`,"--crop-w": `${g.width}%`,@@ -38557,7 +38548,7 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: odraggable: !1,onLoad: (e) => {let t = e.currentTarget;- JN({+ KN({width: t.naturalWidth,height: t.naturalHeight}) && a({@@ -38596,7 +38587,7 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: oonPointerCancel: m,onKeyDown: h,onWheel: (e) => {- !n || !r || i(QN(n, e.deltaY > 0 ? rP : 1 / rP, r, t));+ !n || !r || i(XN(n, e.deltaY > 0 ? tP : 1 / tP, r, t));},className: "absolute left-(--crop-l) top-(--crop-t) h-(--crop-h) w-(--crop-w) cursor-move touch-none outline-none ring-2 ring-border-focus-ring ring-inset focus-visible:ring-4",children: /* @__PURE__ */ (0, V.jsx)("span", {@@ -38618,61 +38609,61 @@ function iP({ src: e, aspect: t, box: n, size: r, onBox: i, onSize: a, label: o}//#endregion//#region src/react/avatar-picker/avatar-picker.ts-var ype = "/api/avatar-choices", aP = "/api/avatar-pick", bpe = "/api/avatar-code-cover", xpe = "/avatar-choice", oP = (e, t) => [+var rP = "/api/avatar-choices", iP = "/api/avatar-pick", ype = "/api/avatar-code-cover", bpe = "/avatar-choice", aP = (e, t) => ["avatar-choices",e,t-], sP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, cP = (e, t, n, r = "") => `${xpe}${sP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), lP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", Spe = (e, t, n) => G(ype + sP(e, t), n), Cpe = (e) => K(bpe, { code: e });-function uP(e, t, n) {+], oP = (e, t) => `?kind=${encodeURIComponent(e)}&id=${t}`, sP = (e, t, n, r = "") => `${bpe}${oP(e, t)}&ref=${encodeURIComponent(n)}` + (r ? `&v=${encodeURIComponent(r)}` : ""), cP = (e, t) => t.startsWith("cover:") || t.endsWith(":cover") ? e.version : "", xpe = (e, t, n) => G(rP + oP(e, t), n), Spe = (e) => K(ype, { code: e });+function lP(e, t, n) {let r = t.width === e.width && t.height === e.height;- return e.focus && r ? ppe(e.focus, t, n) : YN(t, n);+ return e.focus && r ? ppe(e.focus, t, n) : qN(t, n);}-var wpe = (e) => e.crop && JN({+var Cpe = (e) => e.crop && KN({width: e.width,height: e.height});-async function Tpe(e, t, n) {+async function wpe(e, t, n) {if (!("file" in n)) {- await K(aP, {+ await K(iP, {kind: e,id: t,...n});return;}- let r = n.file, i = await fetch(`${aP}${sP(e, t)}&name=${encodeURIComponent(r.name)}`, {+ let r = n.file, i = await fetch(`${iP}${oP(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 MS(a?.error || `请求失败(${i.status})`, i.status, a);+ throw new jS(a?.error || `请求失败(${i.status})`, i.status, a);}-function Epe(e, t) {+function Tpe(e, t) {if (!t) return e;let n = t.matched_names.filter((t) => t !== e);return n.length ? `${e}:图库里按「${n.join("」「")}」找到的。` : t.choices.length ? `${e}:换上的那张留在本机,随时能换回来。` : `${e}:图库里没有这个名字,用下面两种方式换。`;}-var Dpe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;-function Ope(e) {- return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Dpe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;+var Epe = (e) => e < 48 ? `${Math.max(1, Math.round(e))} 小时` : `${Math.floor(e / 24)} 天`;+function Dpe(e) {+ return !e || !e.index_stale || e.choices.some((e) => e.source === "gfriends") ? "" : e.index_age_hours === null ? "图库索引还没取过,只能从用过的图里选。" : `图库索引 ${Epe(e.index_age_hours)}没更新,新收的人像这里还查不到。`;}-var dP = (e) => e.cast > 1, kpe = (e) => dP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, Ape = {+var uP = (e) => e.cast > 1, Ope = (e) => uP(e) ? `${e.label}:${e.cast} 人合演,先找到她自己的脸,再拖动方框选一块。` : `${e.label}:拖动方框选一块,滚轮或角上那枚方块改大小。`, kpe = {gfriends: "图库",history: "用过的",asset: "作品画面",code: "番号封面"};-function jpe(e) {+function Ape(e) {if (e.startsWith("cover:")) return "封面";let t = e.split(":")[2] || "";if (t === "cover") return "封面";let n = Number(t.replace("cell", ""));return Number.isFinite(n) ? `第 ${n + 1} 格` : t;}-var Mpe = (e) => `${Ape[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (dP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Npe = 8, Ppe = 3 / 4;-function Fpe({ kind: e, entityId: t, name: n, onPicked: r }) {+var jpe = (e) => `${kpe[e.source] || e.source} · ${e.label}` + (e.width ? ` · ${e.width}×${e.height}` : "") + (uP(e) ? ` · ${e.cast} 人合演` : "") + (e.found_by ? ` · 按「${e.found_by}」找到` : ""), Mpe = 8, Npe = 3 / 4;+function Ppe({ kind: e, entityId: t, name: n, onPicked: r }) {let [i, a] = (0, B.useState)(!1);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {className: "absolute right-1 bottom-1 z-10",@@ -38682,17 +38673,17 @@ function Fpe({ kind: e, entityId: t, name: n, onPicked: r }) {"aria-label": `更换${n}的头像`,onClick: () => a(!0),className: "flex size-7 cursor-pointer items-center justify-center rounded-full border border-border-button-default bg-background-primary-default text-foreground-icon-primary shadow-xs outline-none ring-2 ring-background-full transition-colors hover:border-border-button-hover hover:bg-background-primary-hover/60 dark:hover:bg-background-primary-hover focus-visible:ring-border-focus-ring active:bg-background-primary-active",- children: /* @__PURE__ */ (0, V.jsx)(eae, {+ children: /* @__PURE__ */ (0, V.jsx)(Qie, {"aria-hidden": !0,className: "size-4"})})- }), /* @__PURE__ */ (0, V.jsx)(tP, {+ }), /* @__PURE__ */ (0, V.jsx)(QN, {isOpen: i,onOpenChange: a,width: "avatar-picker",label: "更换头像",- children: /* @__PURE__ */ (0, V.jsx)(Ipe, {+ children: /* @__PURE__ */ (0, V.jsx)(Fpe, {kind: e,entityId: t,name: n,@@ -38701,50 +38692,50 @@ function Fpe({ kind: e, entityId: t, name: n, onPicked: r }) {})})] });}-function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {- let a = (0, B.useRef)(null), o = jM(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = oP(e, t), g = (0, B.useRef)(!1), _ = ES({+function Fpe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {+ let a = (0, B.useRef)(null), o = OM(), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(null), h = aP(e, t), g = (0, B.useRef)(!1), _ = TS({queryKey: h,- queryFn: ({ signal: n }) => Spe(e, t, n),+ queryFn: ({ signal: n }) => xpe(e, t, n),retryOnMount: !0});(0, B.useEffect)(() => () => {- g.current && z.removeQueries({ queryKey: oP(e, t) });+ g.current && z.removeQueries({ queryKey: aP(e, t) });}, [e, t]);- let v = kS({- mutationFn: (n) => Tpe(e, t, n),+ let v = OS({+ mutationFn: (n) => wpe(e, t, n),onSuccess: () => {g.current = !0, i(), r();}- }), y = kS({- mutationFn: (e) => Cpe(e),+ }), y = OS({+ mutationFn: (e) => Spe(e),onSuccess: (e) => m(e)});function b(e) {let t = e.currentTarget, n = t.files?.[0];t.value = "", f(""), n && v.mutate({ file: n });}- let x = _.data, S = x?.choices ?? [], C = d || (v.error ? W(v.error) : "") || (!p && y.error ? W(y.error) : "") || (_.error ? W(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Ope(x);+ let x = _.data, S = x?.choices ?? [], C = d || (v.error ? W(v.error) : "") || (!p && y.error ? W(y.error) : "") || (_.error ? W(_.error) : ""), w = v.isPending || y.isPending, T = p ? "" : Dpe(x);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, V.jsx)(nP, { children: /* @__PURE__ */ (0, V.jsx)(jT, { className: "size-6" }) }),+ /* @__PURE__ */ (0, V.jsx)($N, { children: /* @__PURE__ */ (0, V.jsx)(DT, { className: "size-6" }) }),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(eD, {+ children: [/* @__PURE__ */ (0, V.jsx)(XE, {slot: "title",className: "text-title-3-semibold text-text-primary",children: p ? "框出头像那一块" : "更换头像"- }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(wE, {+ }), !p && S.length ? /* @__PURE__ */ (0, V.jsxs)(bE, {color: "soft",children: [S.length, " 张可选"]}) : null]}),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: p ? kpe(p) : Epe(n, x)+ children: p ? Ope(p) : Tpe(n, x)}),T ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",@@ -38756,14 +38747,14 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}) : null]}),- /* @__PURE__ */ (0, V.jsx)(NM, {- icon: gT,+ /* @__PURE__ */ (0, V.jsx)(AM, {+ icon: fT,size: "small","aria-label": "关闭",onClick: i})]- }), p ? /* @__PURE__ */ (0, V.jsx)(Rpe, {+ }), p ? /* @__PURE__ */ (0, V.jsx)(Lpe, {kind: e,entityId: t,choice: p,@@ -38787,7 +38778,7 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {"aria-busy": _.isPending || void 0,"data-skeleton": _.isPending ? "avatar-choices" : void 0,className: "inline-grid grid-cols-3 content-start gap-2 sm:grid-cols-4",- children: _.isPending ? Array.from({ length: Npe }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {+ children: _.isPending ? Array.from({ length: Mpe }, (e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {"aria-hidden": !0,"data-avatar-skeleton": !0,className: "flex flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-caption-1-regular",@@ -38800,15 +38791,15 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {role: "option","data-avatar-choice": !0,"aria-selected": n.current,- title: Mpe(n),+ title: jpe(n),...X(w),onClick: () => {w || (n.crop ? m(n) : v.mutate({ ref: n.ref }));},className: "relative flex cursor-pointer flex-col gap-1 overflow-hidden rounded-2lg border border-separator-border bg-background-secondary-default pb-1 text-center text-caption-1-regular text-text-secondary outline-none hover:border-border-button-hover hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-selected:border-border-focus-ring aria-selected:bg-background-tertiary-default aria-selected:text-text-primary aria-disabled:cursor-progress aria-disabled:opacity-60",children: [- /* @__PURE__ */ (0, V.jsx)(Lpe, {- src: cP(e, t, n.ref, lP(n, n.ref)),+ /* @__PURE__ */ (0, V.jsx)(Ipe, {+ src: sP(e, t, n.ref, cP(n, n.ref)),choice: n}),/* @__PURE__ */ (0, V.jsx)("span", {@@ -38817,15 +38808,15 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {}),n.current ? /* @__PURE__ */ (0, V.jsx)("span", {className: "absolute top-1 left-1",- children: /* @__PURE__ */ (0, V.jsx)(wE, {+ children: /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "gray",children: "在用"})}) : null,- dP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {+ uP(n) ? /* @__PURE__ */ (0, V.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, V.jsxs)(wE, {+ children: /* @__PURE__ */ (0, V.jsxs)(bE, {variant: "caption",color: "gray",children: [n.cast, " 人"]@@ -38844,7 +38835,7 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {},children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(bk, {+ children: /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "番号",placeholder: "番号,如 ABW-232",value: l,@@ -38879,7 +38870,7 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {className: "flex min-w-0 flex-1 items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(bk, {+ children: /* @__PURE__ */ (0, V.jsx)(_k, {type: "url","aria-label": "图片地址",placeholder: "https://…",@@ -38899,7 +38890,7 @@ function Ipe({ kind: e, entityId: t, name: n, onPicked: r, close: i }) {})]})] })] });}-function Lpe({ src: e, choice: t }) {+function Ipe({ src: e, choice: t }) {let n = (0, B.useRef)(null), [r, i] = (0, B.useState)(!1);(0, B.useEffect)(() => {n.current?.complete && n.current.naturalWidth && i(!0);@@ -38907,7 +38898,7 @@ function Lpe({ src: e, choice: t }) {let a = {width: t.width,height: t.height- }, o = wpe(t) ? _pe(uP(t, a, Ppe), a) : null, s = r ? !0 : void 0;+ }, o = Cpe(t) ? _pe(lP(t, a, Npe), a) : null, s = r ? !0 : void 0;return /* @__PURE__ */ (0, V.jsxs)("span", {className: "relative block w-full aspect-avatar-choice overflow-hidden",children: [/* @__PURE__ */ (0, V.jsx)("img", {@@ -38932,8 +38923,8 @@ function Lpe({ src: e, choice: t }) {})]});}-function Rpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {- let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, B.useState)(o[0]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = lP(n, s), m = cP(e, t, s, p), h = jM();+function Lpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a }) {+ let o = n.bases.length ? n.bases : [n.ref], [s, c] = (0, B.useState)(o[0]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = cP(n, s), m = sP(e, t, s, p), h = OM();function g(e) {c(e), u(null), f(null);}@@ -38941,14 +38932,14 @@ function Rpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {ref: h,className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: [/* @__PURE__ */ (0, V.jsx)(iP, {+ children: [/* @__PURE__ */ (0, V.jsx)(nP, {src: m,aspect: 1,box: d,size: l,label: `${n.label} 的头像取景框`,onSize: (e) => {- u(e), JN(e) && f(s === n.ref ? uP(n, e, 1) : YN(e, 1));+ u(e), KN(e) && f(s === n.ref ? lP(n, e, 1) : qN(e, 1));},onBox: f}), o.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {@@ -38962,7 +38953,7 @@ function Rpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })"data-crop-base": !0,onClick: () => g(e),className: "cursor-pointer rounded-lg px-2 py-1 text-caption-1-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring aria-checked:bg-background-tertiary-default aria-checked:text-text-primary",- children: jpe(e)+ children: Ape(e)}, e))}) : null]}), /* @__PURE__ */ (0, V.jsxs)("div", {@@ -38996,7 +38987,7 @@ function Rpe({ kind: e, entityId: t, choice: n, busy: r, back: i, confirm: a })}//#endregion//#region src/react/feed-new/feed-new-row.tsx-function fP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {+function dP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {let a = (0, B.useRef)(null), o = e?.items.length ? e.html : "";(0, B.useLayoutEffect)(() => {t.removeAttribute("aria-busy"), t.hidden = !o, e && i?.(!!o);@@ -39030,12 +39021,12 @@ function fP({ feedNew: e, host: t, wire: n, act: r, settled: i }) {}//#endregion//#region src/react/entity-hero/glyph.tsx-var zpe = {+var Rpe = {"text-aa": 1.435,"mark-javdb": 326 / 111};-function pP({ name: e }) {- let t = zpe[e];+function fP({ name: e }) {+ let t = Rpe[e];return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: t ? `0 0 ${(24 * t).toFixed(2)} 24` : "0 0 24 24","aria-hidden": "true",@@ -39045,19 +39036,19 @@ function pP({ name: e }) {}//#endregion//#region src/react/entity-hero/hero-pop.tsx-function mP(e, t) {+function pP(e, t) {let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();t.style.left = `${Math.max(8, Math.min(innerWidth - r.width - 8, n.left))}px`;let i = n.bottom + 8;t.style.top = `${i + r.height <= innerHeight - 8 ? i : Math.max(8, n.top - r.height - 8)}px`;}-var hP = (e) => !!e?.isConnected && e.matches(":popover-open");-function gP(e, t, n, r) {+var mP = (e) => !!e?.isConnected && e.matches(":popover-open");+function hP(e, t, n, r) {let i = (0, B.useRef)(r);i.current = r, (0, B.useEffect)(() => {if (!e) return;let r = () => {- t.current && hP(n.current) ? mP(t.current, n.current) : i.current();+ t.current && mP(n.current) ? pP(t.current, n.current) : i.current();};return addEventListener("scroll", r, {capture: !0,@@ -39071,17 +39062,17 @@ function gP(e, t, n, r) {n]);}-function _P({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {+function gP({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(!1), u = (0, B.useRef)(!1), d = (0, B.useRef)(0), f = () => {- clearTimeout(d.current), u.current = !1, hP(s.current) && s.current.hidePopover(), l(!1);+ clearTimeout(d.current), u.current = !1, mP(s.current) && s.current.hidePopover(), l(!1);}, p = () => {- clearTimeout(d.current), !(!s.current || !o.current || hP(s.current)) && (s.current.showPopover(), mP(o.current, s.current), l(!0));+ clearTimeout(d.current), !(!s.current || !o.current || mP(s.current)) && (s.current.showPopover(), pP(o.current, s.current), l(!0));}, m = () => {clearTimeout(d.current), d.current = window.setTimeout(() => {!u.current && !o.current?.matches(":hover,:focus-visible") && !s.current?.matches(":hover") && f();}, 150);};- return gP(c, o, s, f), (0, B.useEffect)(() => {+ return hP(c, o, s, f), (0, B.useEffect)(() => {if (!c) return;let e = (e) => {let t = e.target;@@ -39107,7 +39098,7 @@ function _P({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {u.current ? f() : (p(), u.current = !0);},onKeyDown: (e) => {- e.key === "Escape" && hP(s.current) && (e.preventDefault(), f());+ e.key === "Escape" && mP(s.current) && (e.preventDefault(), f());},children: ["+", t]}), /* @__PURE__ */ (0, V.jsxs)("div", {@@ -39125,16 +39116,16 @@ function _P({ id: e, rest: t, label: n, heading: r, hook: i, children: a }) {}), a]})] });}-function Bpe({ following: e, busy: t, onToggle: n, tip: r }) {+function zpe({ following: e, busy: t, onToggle: n, tip: r }) {let i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), [s, c] = (0, B.useState)(!1), l = (0, B.useRef)(!1), u = () => {- hP(o.current) && o.current.hidePopover(), c(!1);+ mP(o.current) && o.current.hidePopover(), c(!1);}, d = () => {- l.current || !o.current || !i.current || hP(o.current) || (o.current.showPopover(), mP(i.current, o.current), c(!0));+ l.current || !o.current || !i.current || mP(o.current) || (o.current.showPopover(), pP(i.current, o.current), c(!0));}, f = () => {l.current = !1, u();};- return gP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {- i.current && hP(o.current) && mP(i.current, o.current);+ return hP(s, i, o, () => c(!1)), (0, B.useEffect)(() => {+ i.current && mP(o.current) && pP(i.current, o.current);}, [r]), /* @__PURE__ */ (0, V.jsxs)("label", {ref: i,"data-entry-feed": "",@@ -39143,7 +39134,7 @@ function Bpe({ following: e, busy: t, onToggle: n, tip: r }) {a.current?.matches(":focus-visible") || f();},children: [- /* @__PURE__ */ (0, V.jsx)(pP, { name: "rss" }),+ /* @__PURE__ */ (0, V.jsx)(fP, { name: "rss" }),/* @__PURE__ */ (0, V.jsx)("input", {ref: a,type: "checkbox",@@ -39178,29 +39169,29 @@ function Bpe({ following: e, busy: t, onToggle: n, tip: r }) {}//#endregion//#region src/react/entity-hero/name-picker.tsx-function Vpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {+function Bpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);return (0, B.useEffect)(() => {o.current?.setAttribute("title", "名字与别名");- }, []), /* @__PURE__ */ (0, V.jsxs)(ose, {+ }, []), /* @__PURE__ */ (0, V.jsxs)(ise, {isOpen: i,onOpenChange: a,- children: [/* @__PURE__ */ (0, V.jsx)(QE, {+ children: [/* @__PURE__ */ (0, V.jsx)(JE, {ref: o,"data-namepick-toggle": "","aria-label": "名字与别名",- children: /* @__PURE__ */ (0, V.jsx)(pP, { name: "chevron-down" })- }), /* @__PURE__ */ (0, V.jsx)(yO, {+ children: /* @__PURE__ */ (0, V.jsx)(fP, { name: "chevron-down" })+ }), /* @__PURE__ */ (0, V.jsx)(hO, {placement: "bottom start",offset: 8,containerPadding: 8,- className: xk,+ className: vk,"data-namepick-menu": "",- children: /* @__PURE__ */ (0, V.jsxs)(cse, {+ children: /* @__PURE__ */ (0, V.jsxs)(ose, {"aria-label": "名字与别名","data-namepick-list": "",children: [- /* @__PURE__ */ (0, V.jsx)(EO, {+ /* @__PURE__ */ (0, V.jsx)(SO, {selectionMode: "single",disallowEmptySelection: !0,selectedKeys: [e],@@ -39208,31 +39199,31 @@ function Vpe({ current: e, choices: t, onChoose: n, onAddAlias: r }) {let r = [...t][0];r && r !== e && n(r);},- children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(OO, {+ children: t.map((e) => /* @__PURE__ */ (0, V.jsxs)(wO, {id: e,textValue: e,"data-namepick-name": e,- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]}, e))}),- /* @__PURE__ */ (0, V.jsx)(Hoe, { "data-namepick-rule": "" }),- /* @__PURE__ */ (0, V.jsx)(EO, { children: /* @__PURE__ */ (0, V.jsxs)(OO, {+ /* @__PURE__ */ (0, V.jsx)(Boe, { "data-namepick-rule": "" }),+ /* @__PURE__ */ (0, V.jsx)(SO, { children: /* @__PURE__ */ (0, V.jsxs)(wO, {id: "alias",textValue: "添加别名","data-namepick-alias": "",onAction: r,- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "plus" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "添加别名…" })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "plus" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "添加别名…" })]}) })]})})]});}-var Hpe = (e) => e === "studio" || e === "agency", vP = (e) => e === "performer" || e === "creator", Upe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";-function Wpe(e) {+var Vpe = (e) => e === "studio" || e === "agency", _P = (e) => e === "performer" || e === "creator", Hpe = (e) => e ? "已订阅新作,点击取消订阅" : "订阅新作";+function Upe(e) {return [e.canonical_name, ...e.aliases || []].filter((e, t, n) => e && n.indexOf(e) === t);}-function yP(e) {+function vP(e) {if (e.agency) return {name: e.agency.canonical_name,linked: !0@@ -39243,13 +39234,13 @@ function yP(e) {linked: !1} : null;}-function bP(e, t) {+function yP(e, t) {let n = _e(e, "performer"), r = me(t);return r && [e.label, n].map(me).some((e) => e && (r.includes(e) || e.includes(r))) ? `${t} 官方资料` : n || e.label || "";}-var xP = (e) => ({ site: he(e) });-function Gpe(e, t) {- let n = yP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({+var bP = (e) => ({ site: he(e) });+function Wpe(e, t) {+ let n = vP(e)?.name || "", r = (e.entry_links || []).filter((e) => e.slot === "pill").map((e) => ({type: "icon",url: e.url,title: e.label,@@ -39259,7 +39250,7 @@ function Gpe(e, t) {let t = e.retired_year ? `已于 ${e.retired_year} 年隐退` : "链接已失效";return {type: "gone",- title: `${bP(e, n)} · ${t}`+ title: `${yP(e, n)} · ${t}`};}let r = e.url || "";@@ -39267,11 +39258,11 @@ function Gpe(e, t) {type: "private",label: e.label || e.hostname || "已记录"};- if (vP(t) && e.link_kind !== "social") return {+ if (_P(t) && e.link_kind !== "social") return {type: "icon",url: r,- title: bP(e, n),- mark: xP(e)+ title: yP(e, n),+ mark: bP(e)};if (e.link_kind === "social") {let t = le(r);@@ -39279,7 +39270,7 @@ function Gpe(e, t) {type: "icon",url: r,title: e.label || "",- mark: t ? { brand: t } : xP(e)+ mark: t ? { brand: t } : bP(e)};}return {@@ -39287,13 +39278,13 @@ function Gpe(e, t) {url: r,title: e.label || "",text: _e(e, t, i),- mark: xP(e)+ mark: bP(e)};});return [...r, ...a];}-var SP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");-function Kpe(e) {+var xP = (e) => (e.entry_links || []).filter((e) => e.slot === "mark");+function Gpe(e) {return [["legal_name",@@ -39349,7 +39340,7 @@ function Kpe(e) {}]}] : []);}-function qpe(e) {+function Kpe(e) {if (!e) return [];let t = [];e.birth_date && t.push({@@ -39406,14 +39397,14 @@ function qpe(e) {tags: e.tags}), t;}-function Jpe(e) {+function qpe(e) {let t = e.length > 5 ? 4 : e.length;return {shown: e.slice(0, t),rest: e.length - t};}-function Ype(e) {+function Jpe(e) {if (!e) return null;let t = e.shown || [], n = [e.reading || "", ...t].filter(Boolean), r = (e.total || 0) - t.length;return n.length || r > 0 ? {@@ -39424,7 +39415,7 @@ function Ype(e) {}//#endregion//#region src/react/entity-hero/entity-hero-page.tsx-function Xpe(e) {+function Ype(e) {return A({id: e.id,hasImage: e.has_image,@@ -39434,8 +39425,8 @@ function Xpe(e) {focus: e.avatar_focus});}-function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {- let s = vP(e), c = Hpe(e), l = s ? qpe(n.profile) : c ? Kpe(n.company_profile) : [], u = Gpe(n, e), d = SP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);+function Xpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a, helpers: o }) {+ let s = _P(e), c = Vpe(e), l = s ? Kpe(n.profile) : c ? Gpe(n.company_profile) : [], u = Wpe(n, e), d = xP(n), f = e === "agency" ? [] : n.related_performers || [], p = (0, B.useRef)(null), m = (0, B.useRef)(null);return (0, B.useEffect)(() => {o.wireScroller(p.current);}, [o, u.length]), (0, B.useEffect)(() => {@@ -39448,7 +39439,7 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-portrait-wrap": "",- children: [/* @__PURE__ */ (0, V.jsx)(Qpe, {+ children: [/* @__PURE__ */ (0, V.jsx)(Zpe, {kind: e,name: t,helpers: o,@@ -39456,7 +39447,7 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,company: c}), s && n.id ? /* @__PURE__ */ (0, V.jsx)("span", {"data-avatar-picker": "",- children: /* @__PURE__ */ (0, V.jsx)(Fpe, {+ children: /* @__PURE__ */ (0, V.jsx)(Ppe, {kind: e,entityId: Number(n.id),name: n.canonical_name || t,@@ -39469,14 +39460,14 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,children: [/* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-title": "",- children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Vpe, {+ children: [/* @__PURE__ */ (0, V.jsx)("h2", { children: n.canonical_name }), /* @__PURE__ */ (0, V.jsx)(Bpe, {current: n.canonical_name,- choices: Wpe(n),+ choices: Upe(n),onChoose: a.chooseName,onAddAlias: a.addAlias})]}),- /* @__PURE__ */ (0, V.jsx)($pe, {+ /* @__PURE__ */ (0, V.jsx)(Qpe, {kind: e,entity: n,actions: a@@ -39497,9 +39488,9 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,u.length ? /* @__PURE__ */ (0, V.jsx)("div", {ref: p,"data-entity-links": "",- children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(rme, { link: e }, t))+ children: u.map((e, t) => /* @__PURE__ */ (0, V.jsx)(nme, { link: e }, t))}) : null,- d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(ime, {+ d.length || n.feed ? /* @__PURE__ */ (0, V.jsx)(rme, {entity: n,actions: a,helpers: o@@ -39508,11 +39499,11 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}),l.length ? /* @__PURE__ */ (0, V.jsx)("dl", {"data-entity-facts": "",- children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(tme, {+ children: l.map((e) => /* @__PURE__ */ (0, V.jsx)(eme, {glyph: e.glyph,label: e.label,clip: e.clip,- children: e.tags ? /* @__PURE__ */ (0, V.jsx)(nme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {+ children: e.tags ? /* @__PURE__ */ (0, V.jsx)(tme, { tags: e.tags }) : e.parts.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", {"data-fact-tone": e.tone === "plain" ? void 0 : e.tone,children: [t ? " " : "", e.text]}, t))@@ -39531,7 +39522,7 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,onClick: () => a.openEntity("performer", e.k),children: [/* @__PURE__ */ (0, V.jsx)("span", {"data-hero-ring": "",- dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${Xpe(e)}` }+ dangerouslySetInnerHTML: { __html: `<span>${L(e.k.slice(0, 1))}</span>${Ype(e)}` }}), /* @__PURE__ */ (0, V.jsx)("span", {"data-hero-costar-name": "",children: e.k@@ -39539,14 +39530,14 @@ function Zpe({ kind: e, name: t, entity: n, feedNew: r, feedHost: i, actions: a,}, e.k))})}) : null]- }), i ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(fP, {+ }), i ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(dP, {feedNew: r,host: i,wire: o.wireFeedRow,act: (e, t) => a.feedAction(e, t)}), i) : null] });}-function Qpe({ kind: e, name: t, helpers: n, people: r, company: i }) {+function Zpe({ kind: e, name: t, helpers: n, people: r, company: i }) {let [a] = (0, B.useState)(() => `${n.portraitImg()}<span>${L(t.slice(0, 1))}</span>`);return /* @__PURE__ */ (0, V.jsx)("div", {"data-entity-portrait": r ? "round" : "square",@@ -39555,8 +39546,8 @@ function Qpe({ kind: e, name: t, helpers: n, people: r, company: i }) {dangerouslySetInnerHTML: { __html: a }});}-function $pe({ kind: e, entity: t, actions: n }) {- let r = yP(t), i = (e, t) => (r) => {+function Qpe({ kind: e, entity: t, actions: n }) {+ let r = vP(t), i = (e, t) => (r) => {r.preventDefault(), n.openEntity(e, t);}, a = r ? r.linked ? /* @__PURE__ */ (0, V.jsx)("a", {href: ue("agency", r.name),@@ -39565,37 +39556,37 @@ function $pe({ kind: e, entity: t, actions: n }) {children: r.name}) : r.name : null, o = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("b", { children: t.asset_count.toLocaleString() }), " 个视频"] });if (e === "performer" || e === "creator") {- let e = Ype(t.name_groups);+ let e = Jpe(t.name_groups);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-alias": "meta",children: [- /* @__PURE__ */ (0, V.jsx)(CP, { entity: t }),+ /* @__PURE__ */ (0, V.jsx)(SP, { entity: t }),/* @__PURE__ */ (0, V.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "film" }), /* @__PURE__ */ (0, V.jsx)("span", { children: o })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "film" }), /* @__PURE__ */ (0, V.jsx)("span", { children: o })]}),a ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]}) : null,e ? /* @__PURE__ */ (0, V.jsxs)("div", {"data-meta-item": "names",children: [- /* @__PURE__ */ (0, V.jsx)(pP, { name: "id-card" }),+ /* @__PURE__ */ (0, V.jsx)(fP, { name: "id-card" }),/* @__PURE__ */ (0, V.jsx)("span", {"data-alias-names": "",title: "别名",children: e.names.map((e, t) => /* @__PURE__ */ (0, V.jsx)("span", { children: e }, t))}),- e.rest > 0 ? /* @__PURE__ */ (0, V.jsx)(_P, {+ e.rest > 0 ? /* @__PURE__ */ (0, V.jsx)(gP, {id: "entityAliasPop",hook: "alias",rest: e.rest,label: `另外 ${e.rest} 个别名`,heading: `${e.total} 个别名`,- children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)(eme, {+ children: /* @__PURE__ */ (0, V.jsx)("dl", { children: (t.name_groups?.groups || []).map((e, t) => /* @__PURE__ */ (0, V.jsx)($pe, {label: e.label,names: e.names}, t)) })@@ -39617,21 +39608,21 @@ function $pe({ kind: e, entity: t, actions: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-entity-alias": "meta",children: [- e === "creator" ? /* @__PURE__ */ (0, V.jsx)(CP, { entity: t }) : null,+ e === "creator" ? /* @__PURE__ */ (0, V.jsx)(SP, { entity: t }) : null,/* @__PURE__ */ (0, V.jsxs)("span", {"data-meta-item": "",title: "视频",- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "film" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [o, c] })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "film" }), /* @__PURE__ */ (0, V.jsxs)("span", { children: [o, c] })]}),a ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-meta-item": "",title: "事务所",- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "briefcase" }), /* @__PURE__ */ (0, V.jsx)("span", { children: a })]}) : null,l ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-meta-item": "",title: "片商",- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "clapperboard" }), /* @__PURE__ */ (0, V.jsx)("a", {+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "clapperboard" }), /* @__PURE__ */ (0, V.jsx)("a", {href: ue("studio", l.name),"data-studio-link": l.name,onClick: i("studio", l.name),@@ -39641,7 +39632,7 @@ function $pe({ kind: e, entity: t, actions: n }) {s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {"data-meta-item": "names","data-company-names": e === "studio" || e === "agency" ? "" : void 0,- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "id-card" }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "id-card" }), /* @__PURE__ */ (0, V.jsx)("span", {"data-alias-names": "",title: "别名",children: s.map((e, t) => /* @__PURE__ */ (0, V.jsx)("span", { children: e }, t))@@ -39650,32 +39641,32 @@ function $pe({ kind: e, entity: t, actions: n }) {]});}-function CP({ entity: e }) {+function SP({ entity: e }) {return e.identity_labels?.length ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-meta-item": "classification","data-identity-classification": "",- children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]+ children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: "user-round" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e.identity_labels.join(" · ") })]}) : null;}-function eme({ label: e, names: t }) {+function $pe({ label: e, names: t }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)("dt", { children: e }) : null, /* @__PURE__ */ (0, V.jsx)("dd", {"data-wide": e ? void 0 : "",children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("span", { children: [e.name, e.reading ? /* @__PURE__ */ (0, V.jsx)("small", { children: e.reading }) : null] }, t))})] });}-function tme({ glyph: e, label: t, clip: n, children: r }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("dt", { children: [/* @__PURE__ */ (0, V.jsx)(pP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {+function eme({ glyph: e, label: t, clip: n, children: r }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("dt", { children: [/* @__PURE__ */ (0, V.jsx)(fP, { name: e }), t] }), /* @__PURE__ */ (0, V.jsx)("dd", {"data-fact": e === "tags" ? "tags" : n ? "clip" : e === "calendar-range" ? "num" : void 0,title: n,children: r})] });}-function nme({ tags: e }) {- let { shown: t, rest: n } = Jpe(e);+function tme({ tags: e }) {+ let { shown: t, rest: n } = qpe(e);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t.map((e) => /* @__PURE__ */ (0, V.jsx)("span", {"data-fact-tag": "",children: e- }, e)), n ? /* @__PURE__ */ (0, V.jsx)(_P, {+ }, e)), n ? /* @__PURE__ */ (0, V.jsx)(gP, {id: "entityTagPop",hook: "fact",rest: n,@@ -39690,10 +39681,10 @@ function nme({ tags: e }) {})}) : null] });}-function wP({ mark: e }) {+function CP({ mark: e }) {if ("brand" in e) return /* @__PURE__ */ (0, V.jsx)("span", {"data-link-icon": "brand",- children: /* @__PURE__ */ (0, V.jsx)(pP, { name: e.brand })+ children: /* @__PURE__ */ (0, V.jsx)(fP, { name: e.brand })});let t = R("globe") + ("site" in e ? `<img src="${L(e.site)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="self">` : "");return /* @__PURE__ */ (0, V.jsx)("span", {@@ -39701,7 +39692,7 @@ function wP({ mark: e }) {dangerouslySetInnerHTML: { __html: t }});}-function rme({ link: e }) {+function nme({ link: e }) {switch (e.type) {case "icon": return /* @__PURE__ */ (0, V.jsx)("a", {"data-link": "icon",@@ -39710,19 +39701,19 @@ function rme({ link: e }) {rel: "noreferrer",title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, V.jsx)(wP, { mark: e.mark })+ children: /* @__PURE__ */ (0, V.jsx)(CP, { mark: e.mark })});case "gone": return /* @__PURE__ */ (0, V.jsx)("span", {"data-link": "gone",tabIndex: 0,title: e.title,"aria-label": e.title,- children: /* @__PURE__ */ (0, V.jsx)(wP, { mark: { globe: !0 } })+ children: /* @__PURE__ */ (0, V.jsx)(CP, { mark: { globe: !0 } })});case "private": return /* @__PURE__ */ (0, V.jsxs)("span", {"data-link": "private",title: e.label,- children: [/* @__PURE__ */ (0, V.jsx)(wP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, V.jsxs)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(CP, { mark: { globe: !0 } }), /* @__PURE__ */ (0, V.jsxs)("span", {"data-link-label": "",children: ["来源 · ", e.label]})]@@ -39733,14 +39724,14 @@ function rme({ link: e }) {target: "_blank",rel: "noreferrer",title: e.title,- children: [/* @__PURE__ */ (0, V.jsx)(wP, { mark: e.mark }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(CP, { mark: e.mark }), /* @__PURE__ */ (0, V.jsx)("span", {"data-link-label": "",children: e.text})]});}}-function ime({ entity: e, actions: t, helpers: n }) {+function rme({ entity: e, actions: t, helpers: n }) {let [r, i] = (0, B.useState)(!!e.feed?.following), [a, o] = (0, B.useState)(!1), s = (0, B.useRef)(!1), c = async (e) => {if (s.current) return !1;s.current = !0, o(!0);@@ -39758,34 +39749,34 @@ function ime({ entity: e, actions: t, helpers: n }) {};return /* @__PURE__ */ (0, V.jsxs)("div", {"data-entry-marks": "",- children: [SP(e).map((e, t) => /* @__PURE__ */ (0, V.jsxs)("a", {+ children: [xP(e).map((e, t) => /* @__PURE__ */ (0, V.jsxs)("a", {"data-entry-mark": "",href: e.url,target: "_blank",rel: "noreferrer",title: e.label,"aria-label": e.label,- children: [e.mark ? /* @__PURE__ */ (0, V.jsx)(pP, { name: e.mark }) : /* @__PURE__ */ (0, V.jsxs)("span", {+ children: [e.mark ? /* @__PURE__ */ (0, V.jsx)(fP, { name: e.mark }) : /* @__PURE__ */ (0, V.jsxs)("span", {"data-missav-mark": "",children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "MISS" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "AV" })]}), e.ordinal ? /* @__PURE__ */ (0, V.jsx)("span", {"data-entry-ordinal": "",children: e.ordinal}) : null]- }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(Bpe, {+ }, t)), e.feed ? /* @__PURE__ */ (0, V.jsx)(zpe, {following: r,busy: a,onToggle: (e) => {l(e);},- tip: Upe(r)+ tip: Hpe(r)}) : null]});}//#endregion//#region src/react/entity-page/entity-page-view.tsx-function ame(e) {- let { kind: t, name: n } = e, r = ES(gN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;+function ime(e) {+ let { kind: t, name: n } = e, r = TS(pN(t, n)), i = !!r.data?.error, a = r.data?.redirect, { actions: o } = e;return (0, B.useLayoutEffect)(() => {i && o.missing();}, [o, i]), (0, B.useLayoutEffect)(() => {@@ -39800,17 +39791,17 @@ function ame(e) {o,a?.kind,a?.name- ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(jA, {+ ]), r.isError ? /* @__PURE__ */ (0, V.jsx)(OA, {message: W(r.error),onRetry: () => {r.refetch();}- }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(cme, {+ }) : !r.data || i || a ? null : /* @__PURE__ */ (0, V.jsx)(sme, {...e,entity: r.data});}-function TP(e) {+function wP(e) {let [t, n] = (0, B.useState)({key: e,n: 1@@ -39822,14 +39813,14 @@ function TP(e) {};return n(r), r.n;}-var ome = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);-function sme(e, t) {+var ame = () => String(((Date.now() ^ (Math.random() * 1e9 | 0)) >>> 0) % 99991);+function ome(e, t) {return `照片 · ${[e.total || !t ? `${(e.total || 0).toLocaleString()} 张` : "", t ? `样张 ${(e.sample_total || 0).toLocaleString()} 张 · ${t} 部作品` : ""].filter(Boolean).join(" · ")}`;}-function cme(e) {- let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = AS(_N(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || vN(p).length > 0, g = a.media === "photos" && h ? a : lN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);+function sme(e) {+ let { kind: t, name: n, entity: r, filters: i, media: a, helpers: o, actions: s, hosts: c } = e, l = t === "agency" || t === "studio", u = t === "agency" ? r.related_performers || [] : t === "studio" && r.labels || [], d = Number(r.id) || 0, f = kS(mN(t, n, 0, "")).data?.pages[0], p = f && !f.error ? f : null, m = p ? (p.total || 0) + (p.sample_total || 0) : 0, h = (p?.total || 0) > 0 || hN(p).length > 0, g = a.media === "photos" && h ? a : oN, [_, v] = (0, B.useState)("people"), y = new URLSearchParams(Object.entries(i).filter(([, e]) => e)).toString(), [b, x] = (0, B.useState)(y);b !== y && (x(y), v("videos"));- let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = hN(e), E = ES(T), D = TP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));+ let S = l && _ === "people" && u.length ? "people" : g.media, [C, w] = (0, B.useState)(0), T = fN(e), E = TS(T), D = wP(JSON.stringify([T.queryKey, C])), [O] = (0, B.useState)(() => (t === "performer" || t === "studio") && (e.jav || (E.data?.items || []).some((e) => e.is_jav)));(0, B.useLayoutEffect)(() => {s.javContext(O);}, [s, O]);@@ -39839,26 +39830,26 @@ function cme(e) {}, [e.layout, O]), A = {jav: e.jav,seed: e.seed- }, j = (0, B.useCallback)((e, r) => mN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = AS({- ..._N(t, n, P, ee),+ }, j = (0, B.useCallback)((e, r) => dN(t, n, i, A, e, r), [D]), [M, N] = (0, B.useState)({}), P = g.set, ee = M[P] || "", F = kS({+ ...mN(t, n, P, ee),enabled: S === "photos"- }), I = F.data?.pages[0], te = TP(JSON.stringify(dN(t, n, P, ee))), ne = (0, B.useMemo)(() => {+ }), I = F.data?.pages[0], te = wP(JSON.stringify(cN(t, n, P, ee))), ne = (0, B.useMemo)(() => {let e = F.data?.pages;if (!e?.[0] || e[0].error) return null;let t = e[0];return {revision: te,- codeSets: t.id ? [] : vN(t),+ codeSets: t.id ? [] : hN(t),items: e.flatMap((e) => e.items || []),total: t.total || 0,hasMore: !!e[e.length - 1]?.has_more};- }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = ES({- ...sN(d, o.feedRowHtml),+ }, [F.data, te]), re = F.refetch, ie = F.fetchNextPage, ae = TS({+ ...iN(d, o.feedRowHtml),enabled: !!d}), oe = (0, B.useRef)(e.feedRevision);(0, B.useEffect)(() => {- oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: oN(d) }));+ oe.current !== e.feedRevision && (oe.current = e.feedRevision, z.invalidateQueries({ queryKey: rN(d) }));}, [d, e.feedRevision]);let se = !!E.data;(0, B.useEffect)(() => {@@ -39875,12 +39866,12 @@ function cme(e) {le.current = !1;}, []);let ue = (0, B.useCallback)(async () => {- await z.invalidateQueries({ queryKey: uN(t, n) }), await z.invalidateQueries({ queryKey: [+ await z.invalidateQueries({ queryKey: sN(t, n) }), await z.invalidateQueries({ queryKey: ["entity-items",t,n] });- }, [t, n]), L = kS({+ }, [t, n]), L = OS({mutationFn: (e) => ce("/api/entity-alias", {method: "POST",body: JSON.stringify({@@ -39890,14 +39881,14 @@ function cme(e) {})}),onSuccess: () => ue()- }), de = kS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {+ }), de = OS({ mutationFn: ({ from: e, to: n }) => ce("/api/entity-name", {method: "POST",body: JSON.stringify({kind: t,name: e,canonical: n})- }) }), fe = kS({+ }) }), fe = OS({mutationFn: (e) => ce("/api/feeds/source", {method: "POST",body: JSON.stringify({@@ -39906,7 +39897,7 @@ function cme(e) {enabled: e})}),- onSuccess: (e, r) => z.setQueryData(uN(t, n), (e) => e && {+ onSuccess: (e, r) => z.setQueryData(sN(t, n), (e) => e && {...e,feed: {...e.feed,@@ -39954,10 +39945,10 @@ function cme(e) {let e = await ce("/api/feeds/check").catch(() => null);if (!e || e.status !== "running") break;}- le.current && await z.invalidateQueries({ queryKey: oN(d) });+ le.current && await z.invalidateQueries({ queryKey: rN(d) });})();},- feedAction: cN,+ feedAction: aN,avatarPicked: () => {s.avatarChanged(), ue().then(() => {le.current && w((e) => e + 1);@@ -39988,19 +39979,19 @@ function cme(e) {e === S && !g.set || (v(e === "people" ? "people" : "videos"), s.route(i, e === "photos" ? {media: "photos",set: 0- } : lN));+ } : oN));},setState: (e) => s.route({...i,state: e- }, lN),+ }, oN),toggleTag: s.toggleTag,clearFilter: s.clearFilter,clearAll: s.clearAll,setSort: s.setSort,reshuffle: async () => {if (S !== "photos") {- let r = s.reshuffleVideos(), a = hN({+ let r = s.reshuffleVideos(), a = fN({kind: t,name: n,filters: {@@ -40014,7 +40005,7 @@ function cme(e) {await z.fetchQuery(a).catch(() => null);return;}- let r = ome(), a = await z.fetchInfiniteQuery(_N(t, n, P, r)).catch(() => null);+ let r = ame(), a = await z.fetchInfiniteQuery(mN(t, n, P, r)).catch(() => null);!le.current || !a?.pages[0] || a.pages[0].error || N((e) => ({...e,[P]: r@@ -40047,7 +40038,7 @@ function cme(e) {k: e.k,label: ot(e.k),n: e.n,- selected: Afe(i.tag, e.k)+ selected: Dfe(i.tag, e.k)})), _e = m || u.length ? {label: u.length ? "页面视图" : "媒体类型",people: u.length ? {@@ -40073,9 +40064,9 @@ function cme(e) {if (S === "people") xe = `${t === "studio" ? "厂牌" : "艺人"} · ${u.length.toLocaleString()}`;else if (S === "videos") {Se = !E.data;- let e = fN(i.tag).map((e) => ot(e));+ let e = lN(i.tag).map((e) => ot(e));xe = `视频 · ${(E.data?.work_total ?? E.data?.total ?? 0).toLocaleString()}${e.length ? ` · ${e.join(" · ")}` : ""}`;- } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : sme(I, vN(I).length) : Se = F.isPending;+ } else I && !I.error ? xe = ye ? `${I.title} · ${(I.total || 0).toLocaleString()} 张` : ome(I, hN(I).length) : Se = F.isPending;let Ce = (0, B.useMemo)(() => ({...e.card.actions,loadMorePhotos: async () => {@@ -40092,7 +40083,7 @@ function cme(e) {u]);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(Zpe, {+ /* @__PURE__ */ (0, V.jsx)(Xpe, {kind: t,name: n,entity: r,@@ -40102,7 +40093,7 @@ function cme(e) {actions: pe,helpers: me}, C),- (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(sle, {+ (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(ile, {kind: t,name: n,view: S,@@ -40118,7 +40109,7 @@ function cme(e) {actions: R,helpers: he}), c.filter),- (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(jA, {+ (0, $f.createPortal)(S === "videos" && E.isError ? /* @__PURE__ */ (0, V.jsx)(OA, {message: W(E.error),onRetry: () => {E.refetch();@@ -40149,7 +40140,7 @@ function cme(e) {}//#endregion//#region src/react/components/collection-summary.tsx-function EP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {+function TP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !1 }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-collection-summary": "",className: `${i ? "" : "mb-5 "}flex items-end justify-between gap-4 rounded-surface bg-background-secondary-default px-6 py-5@@ -40176,29 +40167,29 @@ function EP({ label: e, figure: t, detail: n = "", pending: r = !1, flush: i = !}//#endregion//#region src/react/duplicates/duplicates-page.tsx-var lme = xA("play"), ume = xA("file-stack"), dme = DE({+var cme = vA("play"), lme = vA("file-stack"), ume = CE({padding: "none",radius: "surface",className: "mb-6 overflow-hidden dark:bg-background-primary-default"-}), DP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", OP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", kP = "font-mono text-caption-1-regular leading-5 text-text-secondary", AP = () => {+}), EP = "rounded-sm px-1.5 py-px text-caption-1-regular leading-5", DP = "rounded-sm px-2 py-0.5 text-caption-1-regular leading-5", OP = "font-mono text-caption-1-regular leading-5 text-text-secondary", kP = () => {z.invalidateQueries({- queryKey: GA,+ queryKey: HA,exact: !0}), z.invalidateQueries({- queryKey: hM,+ queryKey: fM,exact: !0});};-function fme(e) {+function dme(e) {return e.identical ? /* @__PURE__ */ (0, V.jsx)("span", {- className: `${OP} text-(--keep)`,+ className: `${DP} text-(--keep)`,children: "sha1 一致"}) : /* @__PURE__ */ (0, V.jsx)("span", {- className: `${OP} text-text-secondary`,+ className: `${DP} text-text-secondary`,children: e.evidence === "same_code_short_copy" ? "同番号短版本" : "时长推断"});}-function pme({ file: e, openItem: t }) {+function fme({ file: e, openItem: t }) {let n = () => t(e.id);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "duplicate-row items-center gap-3 border-t border-separator-border px-5 py-4 max-compact:p-4",@@ -40208,7 +40199,7 @@ function pme({ file: e, openItem: t }) {onClick: n,"aria-label": `预览 ${e.name}`,className: "relative row-span-2 inline-grid aspect-16/10 w-full cursor-pointer place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)(lme, {+ children: [/* @__PURE__ */ (0, V.jsx)(cme, {"aria-hidden": !0,className: "size-6"}), /* @__PURE__ */ (0, V.jsx)("img", {@@ -40232,55 +40223,55 @@ function pme({ file: e, openItem: t }) {}), e.is_largest || e.is_longest ? /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex flex-none gap-1",children: [e.is_largest ? /* @__PURE__ */ (0, V.jsx)("i", {- className: `${DP} not-italic bg-background-primary-hover text-text-secondary`,+ className: `${EP} not-italic bg-background-primary-hover text-text-secondary`,children: "最大"}) : null, e.is_longest ? /* @__PURE__ */ (0, V.jsx)("i", {- className: `${DP} not-italic bg-(--keep)/22 text-(--keep)`,+ className: `${EP} not-italic bg-(--keep)/22 text-(--keep)`,children: "最长"}) : null]}) : null]}),/* @__PURE__ */ (0, V.jsxs)("span", {- className: `${kP} flex min-w-0 items-center gap-1.5`,- children: [/* @__PURE__ */ (0, V.jsx)(Uk, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {+ className: `${OP} flex min-w-0 items-center gap-1.5`,+ children: [/* @__PURE__ */ (0, V.jsx)(Bk, { mark: Se[e.location] || "database" }), /* @__PURE__ */ (0, V.jsx)("span", {className: "whitespace-nowrap",children: se[e.location] || e.location || e.drive})]}),/* @__PURE__ */ (0, V.jsx)("span", {- className: kP,+ className: OP,children: pe(e.size || 0)}),/* @__PURE__ */ (0, V.jsx)("span", {- className: kP,+ className: OP,children: fe(e.duration)}),/* @__PURE__ */ (0, V.jsx)("span", {"data-middle-truncate": !0,title: e.path ?? "",- className: `${kP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,+ className: `${OP} col-start-2 -col-end-1 min-w-0 truncate pt-0.5 max-duplicate-narrow:col-span-full`,children: e.path ?? ""})]});}-function mme({ openItem: e, toast: t, failure: n }) {- let r = ES({- queryKey: GA,- queryFn: ({ signal: e }) => qA(e)- }), i = ES({+function pme({ openItem: e, toast: t, failure: n }) {+ let r = TS({+ queryKey: HA,+ queryFn: ({ signal: e }) => WA(e)+ }), i = TS({queryKey: tt,queryFn: ({ signal: e }) => rt(e)- }), [a, o] = (0, B.useState)(""), s = kS({- mutationFn: (e) => XA(e, "dispose"),+ }), [a, o] = (0, B.useState)(""), s = OS({+ mutationFn: (e) => qA(e, "dispose"),onSuccess: (e, r) => {- AP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {+ kP(), t(`已把 ${r.length} 项移入回收站`, { undo: async () => {try {- await XA(r, "restore");+ await qA(r, "restore");} catch (e) {n("撤销移入回收站", e);} finally {- AP();+ kP();}} });},@@ -40294,12 +40285,12 @@ function mme({ openItem: e, toast: t, failure: n }) {children: r.error ? W(r.error) : "未取得重复文件列表,请刷新页面重试。"})});- let l = c.groups ?? [], u = Hle(i.data), d = ({ groups: e, keep: t, key: n }) => {+ let l = c.groups ?? [], u = zle(i.data), d = ({ groups: e, keep: t, key: n }) => {if (s.isPending) return;- let r = qle(e, t);+ let r = Wle(e, t);r.length && Te({title: "移入回收站",- body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${JA[t] ?? JA.largest}。文件共 ${pe(Jle(e, r))},记录可从回收站还原。`,+ body: `将把 ${r.length} 个重复文件的馆藏记录移入回收站,每组保留${GA[t] ?? GA.largest}。文件共 ${pe(Gle(e, r))},记录可从回收站还原。`,confirmLabel: "移入回收站",onConfirm: () => (o(n), s.mutateAsync(r))});@@ -40307,15 +40298,15 @@ function mme({ openItem: e, toast: t, failure: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "mx-auto w-full max-w-board pb-10.5",children: [- /* @__PURE__ */ (0, V.jsx)(EP, {+ /* @__PURE__ */ (0, V.jsx)(TP, {label: "重复内容",figure: `${Number(c.total || 0).toLocaleString()} 组`,detail: `${c.files} 个文件 · 可回收 ${pe(c.reclaimable)}`}),- l.length ? /* @__PURE__ */ (0, V.jsxs)($ce, {+ l.length ? /* @__PURE__ */ (0, V.jsxs)(Xce, {title: "批量保留",children: [- /* @__PURE__ */ (0, V.jsx)(dA, {+ /* @__PURE__ */ (0, V.jsx)(cA, {busy: a === "all:largest",onPress: () => d({groups: l,@@ -40324,7 +40315,7 @@ function mme({ openItem: e, toast: t, failure: n }) {}),children: "全部保留最大"}),- /* @__PURE__ */ (0, V.jsx)(dA, {+ /* @__PURE__ */ (0, V.jsx)(cA, {busy: a === "all:longest",onPress: () => d({groups: l,@@ -40333,7 +40324,7 @@ function mme({ openItem: e, toast: t, failure: n }) {}),children: "全部保留最长"}),- Kle(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(dA, {+ Ule(l, u).map((e) => /* @__PURE__ */ (0, V.jsx)(cA, {busy: a === `all:${e}`,onPress: () => d({groups: l,@@ -40356,7 +40347,7 @@ function mme({ openItem: e, toast: t, failure: n }) {let r = [t], i = (e) => `${n}:${e}`;return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": t.code,- className: dme,+ className: ume,children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-3 bg-background-tertiary-default p-5 max-compact:p-4 dark:bg-background-secondary-default",children: [@@ -40368,9 +40359,9 @@ function mme({ openItem: e, toast: t, failure: n }) {className: "font-mono text-caption-1-regular leading-5 text-text-primary",children: `${t.count} 个 · 可回收 ${pe(t.reclaimable)}`}),- fme(t),+ dme(t),t.cross_drive ? /* @__PURE__ */ (0, V.jsx)("span", {- className: `${OP} text-text-secondary`,+ className: `${DP} text-text-secondary`,children: `跨盘 ${t.drives.join(" ")}`}) : null,/* @__PURE__ */ (0, V.jsxs)("span", {@@ -40398,7 +40389,7 @@ function mme({ openItem: e, toast: t, failure: n }) {}),children: "留最长"}),- YA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {+ KA(t.files, u).map((e) => /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",...f(i(e)),@@ -40423,13 +40414,13 @@ function mme({ openItem: e, toast: t, failure: n }) {]})]- }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(pme, {+ }), /* @__PURE__ */ (0, V.jsx)("div", { children: t.files.map((t) => /* @__PURE__ */ (0, V.jsx)(fme, {file: t,openItem: e}, t.id)) })]}, `${t.code}-${n}`);- }) : /* @__PURE__ */ (0, V.jsx)(OE, {- icon: ume,+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: lme,title: "没有找到重复文件",children: "所有来源之间没有检测到内容相同的文件。扫描新来源后,这里会自动更新。"})@@ -40438,23 +40429,23 @@ function mme({ openItem: e, toast: t, failure: n }) {}//#endregion//#region src/react/diagnostics/diagnostics.ts-var jP = ["diagnostics"], MP = (e) => G("/api/diagnostics", e);-async function hme(e) {+var AP = ["diagnostics"], jP = (e) => G("/api/diagnostics", e);+async function mme(e) {await z.fetchQuery({- queryKey: jP,- queryFn: () => MP(e),+ queryKey: AP,+ queryFn: () => jP(e),staleTime: 1e4});}//#endregion//#region src/react/diagnostics/diagnostics-page.tsx-var NP = {+var MP = {ok: "正常",warning: "需检查",failed: "需处理",unknown: "未取得",disabled: "未配置"-}, gme = [+}, hme = [["媒体库与挂载", ["media_mounts", "data_root"]],["数据库与迁移", ["database", "schema"]],["工具", ["ffmpeg"]],@@ -40465,8 +40456,8 @@ var NP = {"version"]],["后台任务", ["tasks"]]-], PP = (e) => new Date(e).toLocaleString();-function _me({ name: e, check: t, navigate: n, configure: r }) {+], NP = (e) => new Date(e).toLocaleString();+function gme({ name: e, check: t, navigate: n, configure: r }) {let i = e === "security" ? "网络与访问" : e === "configured" ? "通用" : "媒体";return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border py-4 pr-3 last:border-b-0",@@ -40478,7 +40469,7 @@ function _me({ name: e, check: t, navigate: n, configure: r }) {children: t.label}), /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: NP[t.status] ?? "未取得"+ children: MP[t.status] ?? "未取得"})]}),/* @__PURE__ */ (0, V.jsx)("p", {@@ -40498,14 +40489,14 @@ function _me({ name: e, check: t, navigate: n, configure: r }) {]});}-function vme({ group: e, openItem: t, receipt: n }) {- let r = NE(), i = jM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");- return /* @__PURE__ */ (0, V.jsx)(Hk, {+function _me({ group: e, openItem: t, receipt: n }) {+ let r = kE(), i = OM(), a = e.items.map((e) => e.code || `作品 #${e.id}`).join("\n");+ return /* @__PURE__ */ (0, V.jsx)(zk, {summary: `${e.label} · ${e.count === null ? "未取得" : `${e.count} 项`}`,children: e.count === null ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "neutral",children: "清单未取得,请重新检查。"- }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [+ }) : e.items.length ? /* @__PURE__ */ (0, V.jsxs)(jk, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center justify-between gap-2",children: [e.truncated ? /* @__PURE__ */ (0, V.jsxs)("span", {@@ -40540,20 +40531,20 @@ function vme({ group: e, openItem: t, receipt: n }) {}) }, e.id))})})- ] }) : /* @__PURE__ */ (0, V.jsx)(OE, {- icon: lae,+ ] }) : /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: sae,title: "清单为空",shell: "plain",children: "没有需要处理的作品。"})});}-function yme(e) {- let t = ES({- queryKey: jP,- queryFn: ({ signal: e }) => MP(e),+function vme(e) {+ let t = TS({+ queryKey: AP,+ queryFn: ({ signal: e }) => jP(e),staleTime: 1e4- }), n = NE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {+ }), n = kE(), [r, i] = (0, B.useState)(""), a = () => void n.run("refresh", async () => {let e = await t.refetch();if (e.error) throw e.error;return e.data;@@ -40574,27 +40565,27 @@ function yme(e) {tone: "error",children: r}) : null,- /* @__PURE__ */ (0, V.jsx)(Mk, {+ /* @__PURE__ */ (0, V.jsx)(kk, {title: "库健康",- children: /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {+ children: /* @__PURE__ */ (0, V.jsxs)(jk, { children: [o.library.issue_at ? /* @__PURE__ */ (0, V.jsxs)("p", {className: "text-body-2-regular text-text-secondary",- children: ["处理记录 · ", PP(o.library.issue_at)]- }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(vme, {+ children: ["处理记录 · ", NP(o.library.issue_at)]+ }) : null, Object.entries(o.library.groups).map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(_me, {group: n,...e}, t))] })}),- gme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(Mk, {+ hme.map(([t, n]) => /* @__PURE__ */ (0, V.jsx)(kk, {title: t,- children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(_me, {+ children: n.map((t) => o.checks[t] ? /* @__PURE__ */ (0, V.jsx)(gme, {name: t,check: o.checks[t],...e}, t) : null)}, t)),- /* @__PURE__ */ (0, V.jsx)(Mk, {+ /* @__PURE__ */ (0, V.jsx)(kk, {title: "来源会话",- children: /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {+ children: /* @__PURE__ */ (0, V.jsxs)(jk, { children: [o.sources.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("h3", {@@ -40602,19 +40593,19 @@ function yme(e) {children: [e.label," · ",- NP[e.status]+ MP[e.status]]}),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-regular text-text-primary",children: e.reason}),- /* @__PURE__ */ (0, V.jsxs)(Bk, { children: [/* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsxs)(Lk, { children: [/* @__PURE__ */ (0, V.jsx)(Rk, {term: "上次解析成功",- children: e.last_success_at ? PP(e.last_success_at) : "未取得"- }), /* @__PURE__ */ (0, V.jsx)(Vk, {+ children: e.last_success_at ? NP(e.last_success_at) : "未取得"+ }), /* @__PURE__ */ (0, V.jsx)(Rk, {term: "冷却截止",- children: e.cooldown_until ? PP(e.cooldown_until) : "未在冷却"+ children: e.cooldown_until ? NP(e.cooldown_until) : "未在冷却"})] })]}, e.source)), /* @__PURE__ */ (0, V.jsx)("div", { children: /* @__PURE__ */ (0, V.jsx)(J, {@@ -40642,21 +40633,21 @@ function yme(e) {}//#endregion//#region src/react/feed-new/feed-new-page.tsx-function bme({ host: e, revision: t, helpers: n, actions: r }) {- let i = ES(sN(null, n.feedRowHtml)), a = (0, B.useRef)(t);+function yme({ host: e, revision: t, helpers: n, actions: r }) {+ let i = TS(iN(null, n.feedRowHtml)), a = (0, B.useRef)(t);return (0, B.useEffect)(() => {- a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: oN(null) }));- }, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(fP, {+ a.current !== t && (a.current = t, z.invalidateQueries({ queryKey: rN(null) }));+ }, [t]), (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(dP, {feedNew: i.data ?? null,host: e,wire: n.wireFeedRow,- act: cN,+ act: aN,settled: r.settled}), e);}//#endregion//#region src/follow-sort.ts-var FP = [+var PP = [["checked", "检查时间"],["added", "添加时间"],["name", "创作者名称"],@@ -40664,7 +40655,7 @@ var FP = [["source", "来源名称"],["provider", "站点"],["status", "状态"]-], xme = "checked", IP = {+], bme = "checked", FP = {checked: "desc",added: "desc",name: "asc",@@ -40672,32 +40663,32 @@ var FP = [source: "asc",provider: "asc",status: "asc"-}, Sme = (e) => FP.some(([t]) => t === e);-function LP(e, t) {- let n = Sme(e) ? e : xme;+}, xme = (e) => PP.some(([t]) => t === e);+function IP(e, t) {+ let n = xme(e) ? e : bme;return {sort: n,- dir: t === "asc" || t === "desc" ? t : IP[n]+ dir: t === "asc" || t === "desc" ? t : FP[n]};}//#endregion//#region src/react/follow-manage/follow-manage.ts-var RP = "/api/follow", zP = "/api/follow/credentials", BP = "/api/follow/check", VP = "/api/follow/source", HP = "/api/follow/resolve", Cme = "/api/follow/suggest", UP = "/api/follow/author-alias", wme = "/api/follow/credential", WP = "/api/follow/status", Tme = "/api/feeds", GP = "/api/feeds/source", Eme = "/api/feeds/check", Dme = "/api/feeds/lookup", KP = ["follow-manage"], qP = ["follow-manage", "credentials"], Ome = ["follow-manage", "check"], kme = ["follow-manage", "resolve"], JP = ["follow-manage", "feeds"], Ame = (e) => [+var LP = "/api/follow", RP = "/api/follow/credentials", zP = "/api/follow/check", BP = "/api/follow/source", VP = "/api/follow/resolve", Sme = "/api/follow/suggest", HP = "/api/follow/author-alias", Cme = "/api/follow/credential", UP = "/api/follow/status", wme = "/api/feeds", WP = "/api/feeds/source", Tme = "/api/feeds/check", Eme = "/api/feeds/lookup", GP = ["follow-manage"], KP = ["follow-manage", "credentials"], Dme = ["follow-manage", "check"], Ome = ["follow-manage", "resolve"], qP = ["follow-manage", "feeds"], kme = (e) => ["follow-manage","suggest",e-], YP = [["default", "默认视图"], ["table", "表格视图"]], XP = [+], JP = [["default", "默认视图"], ["table", "表格视图"]], YP = [10,20,50,100-], jme = Object.fromEntries(FP), ZP = {+], Ame = Object.fromEntries(PP), XP = {author: "name",source: "source",provider: "provider",status: "status",checked: "checked"-}, Mme = (e) => YP.some(([t]) => t === e), Nme = (e) => XP.includes(Number(e)) ? Number(e) : 20, Pme = {+}, jme = (e) => JP.some(([t]) => t === e), Mme = (e) => YP.includes(Number(e)) ? Number(e) : 20, Nme = {checked: ["从近到远", "从远到近"],added: ["从近到远", "从远到近"],name: ["倒序", "正序"],@@ -40705,25 +40696,25 @@ var RP = "/api/follow", zP = "/api/follow/credentials", BP = "/api/follow/check"source: ["倒序", "正序"],provider: ["倒序", "正序"],status: ["倒序", "正序"]-}, Fme = (e, t) => `按${jme[e]}${Pme[e][t === "asc" ? 0 : 1]}排序`;-function QP(e) {+}, Pme = (e, t) => `按${Ame[e]}${Nme[e][t === "asc" ? 0 : 1]}排序`;+function ZP(e) {let t = e.last_status;return t === "error" || t === "unauthorized" ? 0 : e.enabled ? t === "ok" ? 3 : 2 : 1;}-function Ime(e) {+function Fme(e) {return e.history_exhausted ? "没有更多" : e.enabled ? e.last_status === "ok" ? "正常" : e.last_status === "error" || e.last_status === "unauthorized" ? "检查失败" : "未检查" : "已暂停";}-var $P = (e) => e.last_status === "error" || e.last_status === "unauthorized", eF = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), tF = {- source: eF,- provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || eF(e, t),- status: (e, t) => QP(e) - QP(t) || eF(e, t)-}, nF = (e) => Date.parse(e || "") || 0, rF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();-function iF(e, t = []) {+var QP = (e) => e.last_status === "error" || e.last_status === "unauthorized", $P = (e, t) => String(e.label || "").localeCompare(String(t.label || ""), "zh-CN", { numeric: !0 }), eF = {+ source: $P,+ provider: (e, t) => String(e.provider_label || "").localeCompare(String(t.provider_label || ""), "zh-CN") || $P(e, t),+ status: (e, t) => ZP(e) - ZP(t) || $P(e, t)+}, tF = (e) => Date.parse(e || "") || 0, nF = (e) => String(e || "").replace(/\s*[·|]\s*[A-Za-z0-9_-]+\s*$/, "").replace(/\s+collections?\s*$/i, "").trim();+function rF(e, t = []) {if (!e.length) return "";- let n = (e) => String(e.author_name || "").trim() || rF(e.label), r = e.find((e) => e.entity_name);+ let n = (e) => String(e.author_name || "").trim() || nF(e.label), r = e.find((e) => e.entity_name);if (r) return r.entity_name;let i = t.find((t) => `name:${t.canonical_key}` === e[0]?.author_key);- if (i) return rF(i.canonical_name);+ if (i) return nF(i.canonical_name);let a = e.find((e) => e.official_avatar_url);if (a && n(a)) return n(a);let o = e.map(n).filter(Boolean);@@ -40731,18 +40722,18 @@ function iF(e, t = []) {let s = (e) => (e.match(/[A-Z]/g) || []).length;return o.reduce((e, t) => s(t) > s(e) ? t : e, o[0]);}-function aF(e) {+function iF(e) {let t = e.trim().match(/[A-Za-z0-9]/);return (t ? t[0] : Array.from(e.trim())[0] || "?").toUpperCase();}-function oF(e) {+function aF(e) {let t = e.find((e) => e.official_avatar_url), n = e.find((e) => e.avatar_url), r = t?.official_avatar_url || n?.avatar_url || "";return {src: r,fallback: t && n && n.avatar_url !== r && n.avatar_url || ""};}-function sF(e) {+function oF(e) {let t = [], n = /* @__PURE__ */ new Map();for (let r of e) {let e = r.author_key || `source:${r.id}`;@@ -40750,32 +40741,32 @@ function sF(e) {}return t.map((e) => n.get(e));}-function Lme(e, t, n, r = []) {- let i = sF(e), a = n === IP[t] ? 1 : -1, o = (e) => iF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = tF[t];+function Ime(e, t, n, r = []) {+ let i = oF(e), a = n === FP[t] ? 1 : -1, o = (e) => rF(e, r), s = (e, t) => o(e).localeCompare(o(t), "zh-CN", { numeric: !0 }), c = eF[t];if (c) {for (let e of i) e.sort((e, t) => a * c(e, t));return i.sort((e, t) => a * c(e[0], t[0]) || s(e, t));}- let l = (e) => Math.max(...e.map((e) => nF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => nF(e.created_at)));+ let l = (e) => Math.max(...e.map((e) => tF(e.last_checked_at))), u = (e) => Math.max(...e.map((e) => tF(e.created_at)));return i.sort((e, n) => t === "name" ? a * s(e, n) : t === "sources" ? a * (n.length - e.length) || s(e, n) : t === "added" ? a * (u(n) - u(e)) || s(e, n) : a * (l(n) - l(e)) || s(e, n));}-function Rme(e, t, n, r = []) {+function Lme(e, t, n, r = []) {let i = e.flatMap((e) => {- let t = iF(e, r);+ let t = rF(e, r);return e.map((n) => ({source: n,group: e,author: t}));- }), a = tF[t];+ }), a = eF[t];if (a) {- let e = n === IP[t] ? 1 : -1;+ let e = n === FP[t] ? 1 : -1;i.sort((t, n) => e * a(t.source, n.source));}return i;}-function cF(e, t, n) {- let r = mj(e, t), i = hj(n, r), a = (i - 1) * t;+function sF(e, t, n) {+ let r = dj(e, t), i = fj(n, r), a = (i - 1) * t;return {page: i,pages: r,@@ -40784,91 +40775,91 @@ function cF(e, t, n) {end: Math.min(a + t, e)};}-function zme(e, t) {+function Rme(e, t) {let n = new Set(t.map((e) => e.id));return new Set([...e].filter((e) => n.has(e)));}-function lF(e, t) {+function cF(e, t) {let n = t.filter((t) => e.has(t)).length;return {all: t.length > 0 && n === t.length,some: n > 0 && n < t.length};}-function uF(e, t, n) {+function lF(e, t, n) {let r = new Set(e);for (let e of t) n ? r.add(e) : r.delete(e);return r;}-var dF = (e) => G(`${RP}?summary=1`, e), fF = (e) => G(zP, e), Bme = (e) => G(BP, e), Vme = (e) => G(HP, e), Hme = (e, t) => G(`${Cme}?q=${encodeURIComponent(e)}`, t), pF = (e) => K(BP, {+var uF = (e) => G(`${LP}?summary=1`, e), dF = (e) => G(RP, e), zme = (e) => G(zP, e), Bme = (e) => G(VP, e), Vme = (e, t) => G(`${Sme}?q=${encodeURIComponent(e)}`, t), fF = (e) => K(zP, {...e?.length ? { sources: e } : {},background: !0-}), Ume = (e) => K(HP, {+}), Hme = (e) => K(VP, {lines: e,background: !0-}), mF = (e, t) => K(VP, {+}), pF = (e, t) => K(BP, {action: "enabled",id: e,enabled: t-}), hF = (e) => K(VP, {+}), mF = (e) => K(BP, {action: "remove",id: e-}), Wme = (e) => K(VP, {+}), Ume = (e) => K(BP, {action: "add",url: e.url,label: e.label,author: e.author || "",aliases: e.aliases || [],defer_check: !0-}), gF = (e, t) => K(UP, {+}), hF = (e, t) => K(HP, {action: "add",canonical: e,alias: t-}), Gme = (e) => K(UP, {+}), Wme = (e) => K(HP, {action: "remove",alias: e-}), Kme = (e, t) => K(wme, {+}), Gme = (e, t) => K(Cme, {provider: e,values: t-}), qme = (e, t) => K(WP, {+}), Kme = (e, t) => K(UP, {item: e,to: t-}), Jme = () => G(`${RP}?status=new&limit=1000`);-async function _F(e) {- let t = await G(Tme, e);+}), qme = () => G(`${LP}?status=new&limit=1000`);+async function gF(e) {+ let t = await G(wme, e);if (!Array.isArray(t?.sources)) throw Error("没有读到订阅源");return t;}-var vF = (e, t, n) => K(GP, {+var _F = (e, t, n) => K(WP, {action: "enabled",id: e,enabled: t-}, "POST", n), yF = (e, t) => K(GP, {+}, "POST", n), vF = (e, t) => K(WP, {action: "remove",id: e-}, "POST", t), bF = (e, t) => K(Eme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Yme = (e, t) => G(`${Dme}?q=${encodeURIComponent(e)}`, t), Xme = (e, t, n) => K(GP, {+}, "POST", t), yF = (e, t) => K(Tme, t?.length ? { sources: t } : { all: !0 }, "POST", e), Jme = (e, t) => G(`${Eme}?q=${encodeURIComponent(e)}`, t), Yme = (e, t, n) => K(WP, {action: "follow-name",name: e,ids: t}, "POST", n);-async function Zme(e, t = "") {+async function Xme(e, t = "") {await Promise.all([z.fetchQuery({- queryKey: KP,- queryFn: () => dF(e)+ queryKey: GP,+ queryFn: () => uF(e)}),z.fetchQuery({- queryKey: qP,- queryFn: () => fF(e)+ queryKey: KP,+ queryFn: () => dF(e)}),t === "feeds" ? z.fetchQuery({- queryKey: JP,- queryFn: () => _F(e)+ queryKey: qP,+ queryFn: () => gF(e)}) : null]);}-function xF(e, t) {- z.setQueryData(KP, (n) => n && {+function bF(e, t) {+ z.setQueryData(GP, (n) => n && {...n,sources: n.sources.map((n) => n.id === e ? {...n,@@ -40876,24 +40867,24 @@ function xF(e, t) {} : n)});}-function SF(e) {+function xF(e) {let t = new Set(e);- z.setQueryData(KP, (e) => e && {+ z.setQueryData(GP, (e) => e && {...e,sources: e.sources.filter((e) => !t.has(e.id))});}-var CF = () => z.invalidateQueries({- queryKey: KP,+var SF = () => z.invalidateQueries({+ queryKey: GP,exact: !0});-function Qme(e) {+function Zme(e) {let t = e.results || [], n = (e) => t.reduce((t, n) => t + (e(n) || 0), 0), r = n((e) => e.added), i = n((e) => e.updated), a = n((e) => e.skipped_compilations), o = n((e) => e.skipped) - a, s = n((e) => e.history_skipped), c = n((e) => e.probed), l = t.filter((e) => e.ok && !e.added && !e.updated).length, u = t.filter((e) => !e.ok).length, d = [];r && d.push(`新增 ${r} 条`), i && d.push(`更新 ${i} 条`), o && d.push(`跳过 ${o} 条无资源`), a && d.push(`排除 ${a} 个超大合集`), s && d.push(`跳过 ${s} 条超出首次采集范围的历史内容`), c && d.push(`回查 ${c} 条`), l && d.push(`${l} 个来源没有更新`), d.length || d.push("没有任何更新");let f = t.filter((e) => e.exhausted).length;return f && d.push(`${f} 个没有更多内容`), u && d.push(`${u} 个失败`), `检查了 ${t.length} 个来源:${d.join(" · ")}`;}-var $me = (e) => (e?.results || []).filter((e) => !e.ok), ehe = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", wF = (e) => e.last_checked_at ? gj(e.last_checked_at) : "未检查", the = /* @__PURE__ */ new Set([+var Qme = (e) => (e?.results || []).filter((e) => !e.ok), $me = (e) => (e?.results || []).find((e) => e.evidence_error)?.evidence_error || "", CF = (e) => e.last_checked_at ? pj(e.last_checked_at) : "未检查", ehe = /* @__PURE__ */ new Set(["fanbox","patreon","subscribestar",@@ -40906,50 +40897,50 @@ var $me = (e) => (e?.results || []).filter((e) => !e.ok), ehe = (e) => (e?.resul"gofile","f95zone","simpcity"-]), TF = (e) => the.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", nhe = {+]), wF = (e) => ehe.has(e) ? `/source-icon?provider=${encodeURIComponent(e)}` : "", the = {required: "需要",optional: "可选",none: "不需要",blocked: "接不进来"-}, EF = (e) => !!e.present && !e.missing.length, rhe = [+}, TF = (e) => !!e.present && !e.missing.length, nhe = [["", "全部"],["new", "未看"],["saved", "已保存"],["ignored", "已忽略"]-], ihe = [+], rhe = [["new", "更新时间"],["hot", "热度"],["dur", "时长"]-], DF = {+], EF = {new: ["从新到旧", "从旧到新"],hot: ["从高到低", "从低到高"],dur: ["从长到短", "从短到长"]};-function OF(e, t) {+function DF(e, t) {let n = (e) => encodeURIComponent(e.join(","));return `/api/follow?limit=300&offset=${t}` + (e.status ? `&status=${e.status}` : "") + (e.author ? `&author=${n([e.author])}` : "") + (e.provider ? `&provider=${n([e.provider])}` : "") + (e.tags.length ? `&tag=${n(e.tags)}` : "") + (e.work ? `&work=${n([e.work])}` : "") + (e.sort === "new" ? "" : `&sort=${e.sort}`) + (e.sort === "rand" ? `&seed=${e.seed}` : "") + (e.dir === "desc" ? "" : `&dir=${e.dir}`);}-function kF(e, t) {+function OF(e, t) {return {queryKey: ["follow-feed",- OF(e, 0),+ DF(e, 0),t],- queryFn: ({ pageParam: t, signal: n }) => G(OF(e, t), n),+ queryFn: ({ pageParam: t, signal: n }) => G(DF(e, t), n),initialPageParam: 0,getNextPageParam: (e) => e.has_more ? (e.offset || 0) + 300 : void 0,- placeholderData: jS.keepPreviousData+ placeholderData: AS.keepPreviousData};}-var AF = ["follow-feed", "credentials"], jF = (e) => G(zP, e).catch(() => ({ providers: [] }));-async function ahe(e, t) {- let n = kF(e.view, e.revision);+var kF = ["follow-feed", "credentials"], AF = (e) => G(RP, e).catch(() => ({ providers: [] }));+async function ihe(e, t) {+ let n = OF(e.view, e.revision);z.removeQueries({queryKey: n.queryKey,exact: !0}), z.removeQueries({- queryKey: AF,+ queryKey: kF,exact: !0}), await Promise.all([z.fetchInfiniteQuery({queryKey: n.queryKey,@@ -40960,11 +40951,11 @@ async function ahe(e, t) {initialPageParam: 0,getNextPageParam: n.getNextPageParam}), z.fetchQuery({- queryKey: AF,- queryFn: () => jF(t)+ queryKey: kF,+ queryFn: () => AF(t)})]);}-function MF(e) {+function jF(e) {if (!e?.pages.length) return null;let t = e.pages, n = t[t.length - 1];return {@@ -40973,10 +40964,10 @@ function MF(e) {groups: t.flatMap((e) => e.groups || [])};}-function NF(e, t, n) {+function MF(e, t, n) {return [...e].sort((e, r) => be(n, t(e)) - be(n, t(r)) || String(t(e)).localeCompare(String(t(r))));}-function PF(e) {+function NF(e) {let t = /* @__PURE__ */ new Set();return [e.primary,@@ -40984,14 +40975,14 @@ function PF(e) {...e.duplicates].filter((e) => !e || t.has(e.id) ? !1 : (t.add(e.id), !0));}-function ohe(e) {+function ahe(e) {let t = z.getQueryCache().findAll({ queryKey: ["follow-feed"] }).sort((e, t) => t.state.dataUpdatedAt - e.state.dataUpdatedAt);for (let n of t) {let t = n.state.data;if (!Array.isArray(t?.pages) || !t.pages.length) continue;let r = t.pages[t.pages.length - 1];for (let n of t.pages) for (let t of n.groups || []) {- let n = PF(t).find((t) => t.id === e);+ let n = NF(t).find((t) => t.id === e);if (n) return {item: n,group: t,@@ -41002,7 +40993,7 @@ function ohe(e) {}return null;}-function she(e) {+function ohe(e) {z.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)@@ -41012,7 +41003,7 @@ function she(e) {...t,groups: (t.groups || []).map((t) => {let n = (t) => t.id === e.id ? e : t;- return PF(t).some((t) => t.id === e.id) ? {+ return NF(t).some((t) => t.id === e.id) ? {...t,primary: n(t.primary),variants: t.variants.map(n),@@ -41022,39 +41013,39 @@ function she(e) {}))});}-function che(e, t) {+function she(e, t) {z.setQueriesData({queryKey: ["follow-feed"],predicate: (e) => Array.isArray(e.state.data?.pages)- }, (n) => n && HF(n, null, e, t));+ }, (n) => n && VF(n, null, e, t));}-function FF(e) {- return PF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));+function PF(e) {+ return NF(e).sort((e, t) => (Date.parse(t.published_at || "") || 0) - (Date.parse(e.published_at || "") || 0) || (+t.id || 0) - (+e.id || 0));}-function IF(e) {+function FF(e) {let t = /* @__PURE__ */ new Set(), n = e.media_items || [];return n.length ? n.forEach((e) => {(e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind);}) : (e.media_kind === "image" || e.media_kind === "video") && t.add(e.media_kind), t;}-function LF(e) {+function IF(e) {let t = /* @__PURE__ */ new Set();- return PF(e).forEach((e) => IF(e).forEach((e) => t.add(e))), t;+ return NF(e).forEach((e) => FF(e).forEach((e) => t.add(e))), t;}-function RF(e, t) {+function LF(e, t) {let n = t === "images" ? "image" : "video";- return FF(e).find((e) => IF(e).has(n)) || e.primary;+ return PF(e).find((e) => FF(e).has(n)) || e.primary;}-function zF(e) {- return FF(e).filter((e) => e.playable && e.media_kind === "video");+function RF(e) {+ return PF(e).filter((e) => e.playable && e.media_kind === "video");}-var BF = {+var zF = {video: "个视频",image: "张图片",mixed: "个媒体"};-function lhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {- let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${BF[s] || BF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];+function che({ cover: e = "", coverFace: t = null, stack: n = null, imageView: r = !1, limit: i = 9 } = {}) {+ let a = n?.media || 0, o = n?.copies || 0, s = n?.kind || "", c = a > 1 ? `${a} ${zF[s] || zF.mixed}` : o > 1 ? `${o} 个来源` : "", l = s === "image" || s !== "video" && r ? "pics" : "play", u = /* @__PURE__ */ new Set([t ?? e]), d = e ? [e] : [];for (let t of n?.faces || []) r && t.media_kind !== "image" || !t.thumb_url || t.thumb_url === e || u.has(t.face) || (u.add(t.face), d.push(t.thumb_url));return {isMix: !!c,@@ -41063,14 +41054,14 @@ function lhe({ cover: e = "", coverFace: t = null, stack: n = null, imageView: rfaces: d.length > 1 ? d.slice(0, i) : []};}-function uhe(e) {+function lhe(e) {let t = e.filter((e) => e.can_backfill).map((e) => (e.backfill_page || 0) + 1);if (!t.length) return "";let n = Math.max(...t), r = Math.min(...t);return n <= 1 ? "每个来源都只抓了第 1 页" : r === n ? `每个来源都抓到第 ${n} 页` : `已抓到第 ${r}–${n} 页`;}-function VF(e, t, n) {- return e === t ? DF[e] ? {+function BF(e, t, n) {+ return e === t ? EF[e] ? {sort: e,dir: n === "asc" ? "desc" : "asc"} : null : {@@ -41078,13 +41069,13 @@ function VF(e, t, n) {dir: "desc"};}-function dhe(e, t, n, r) {- let i = VF(e, n, r);+function uhe(e, t, n, r) {+ let i = BF(e, n, r);if (!i) return "";- let a = DF[i.sort];+ let a = EF[i.sort];return `按${t}${a ? a[+(i.dir === "asc")] : ""}排序`;}-function HF(e, t, n, r) {+function VF(e, t, n, r) {let i = "", a = e.pages.map((e) => ({...e,groups: (e.groups || []).flatMap((e) => {@@ -41114,7 +41105,7 @@ function HF(e, t, n, r) {})};}-function fhe(e, t) {+function dhe(e, t) {let n = [];return e.author && n.push({kind: "创作者",@@ -41134,7 +41125,7 @@ function fhe(e, t) {label: e})), n;}-function phe(e, t) {+function fhe(e, t) {return t.kind === "创作者" ? {...e,author: ""@@ -41149,7 +41140,7 @@ function phe(e, t) {tags: e.tags.filter((e) => e !== t.key)};}-function mhe(e, t) {+function phe(e, t) {for (let n of e) {let e = n.primary?.tag_types?.[t];if (e) return e;@@ -41158,7 +41149,7 @@ function mhe(e, t) {}//#endregion//#region src/sidebar.ts-var hhe = [+var mhe = ["","follow","jav",@@ -41167,7 +41158,7 @@ var hhe = ["studios","flagged","manage"-], ghe = [+], hhe = ["playlists","immerse","stats",@@ -41177,77 +41168,77 @@ var hhe = ["follow-manage","quality"];-[...hhe, ...ghe];-function _he(e) {+[...mhe, ...hhe];+function ghe(e) {let t = /* @__PURE__ */ new Map();for (let n of e) for (let e of new Set(n.tags || [])) t.set(e, (t.get(e) || 0) + 1);return [...t].sort((e, t) => t[1] - e[1]).slice(0, 30);}//#endregion//#region src/react/follow-feed/follow-marks.ts-var UF = (e) => typeof e == "string" ? e : "", WF = (e) => e.aliases;-function GF(e, t = "") {- let n = TF(e);+var HF = (e) => typeof e == "string" ? e : "", UF = (e) => e.aliases;+function WF(e, t = "") {+ let n = wF(e);return n ? `<img data-follow-site-icon="" src="${n}" alt="${L(t)}"${t ? ` title="${L(t)}"` : ""} loading="lazy" data-drop="self">` : "";}-var KF = (e, t) => iF(e, WF(t));-function qF(e, t) {- let { src: n, fallback: r } = oF(e), i = aF(t);+var GF = (e, t) => rF(e, UF(t));+function KF(e, t) {+ let { src: n, fallback: r } = aF(e), i = iF(t);if (!n) return `<span class="favatar none" title="没有可用头像">${L(i)}</span>`;let a = r ? ` data-fallbacks="${L(r)}"` : "";return `<img class="favatar" src="${L(n)}" alt="" loading="lazy" referrerpolicy="no-referrer" data-drop="initial"${a} data-initial="${L(i)}" data-drop-class="favatar none">`;}-function JF(e, t, n) {- let r = WF(n), i = e.credit, a = i?.poster;+function qF(e, t, n) {+ let r = UF(n), i = e.credit, a = i?.poster;if (!a) {- let n = iF(t, r);+ let n = rF(t, r);return {- author: n || UF(e.author) || UF(e.source_label) || "创作者未取得",- avatar: qF(t, n),+ author: n || HF(e.author) || HF(e.source_label) || "创作者未取得",+ avatar: KF(t, n),credited: ""};}- let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && iF(c, r) || a;+ let o = (e) => String(e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), s = n.sources.find((e) => o(e.ref) === o(a)), c = s?.author_key ? n.sources.filter((e) => e.author_key === s.author_key) : s ? [s] : [], l = c.length && rF(c, r) || a;return {author: l,- avatar: qF(c, l),+ avatar: KF(c, l),credited: i.credited || ""};}-function YF(e, t = e.primary) {+function JF(e, t = e.primary) {let n = [], r = (e, t) => `<small class="javedition" data-follow-edition="${e}">${t}</small>`;e.primary.variant_kind === "wip" ? n.push(r("wip", "WIP")) : e.has_wip && n.push(r("has-wip", "含 WIP"));- let i = UF(e.primary.version);+ let i = HF(e.primary.version);i && n.push(r("version", L(i)));- let a = UF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";+ let a = HF(t.audio), o = a === "voiced" ? "配音版" : a === "silent" ? "无声版" : "";return o && n.push(r(a, o)), n.join("");}-function XF(e, t = e.primary) {+function YF(e, t = e.primary) {let n = new Map([e.primary,...e.variants,...e.duplicates].filter((e) => e.provider !== t.provider).map((e) => [e.provider, e.provider_label || e.provider]));if (!n.size) return "";- let r = [...n].map(([e, t]) => GF(e, t) || `<span>${L(t)}</span>`).join("");+ let r = [...n].map(([e, t]) => WF(e, t) || `<span>${L(t)}</span>`).join("");return `<span data-follow-seealso="" title="另见 ${L([...n.values()].join("、"))}">另见 ${r}</span>`;}-function ZF(e, t) {- let n = UF(e.media_error);+function XF(e, t) {+ let n = HF(e.media_error);return n ? `媒体未取得:${n}` : e.media_needs_credential && !t.credentials.has(e.provider) ? e.playable ? "部分媒体未取得:需要 F95 登录会话解析" : "媒体未取得:需要 F95 登录会话解析" : "";}-var QF = (e) => e.published_at ? gj(e.published_at) : "时间未取得", $F = /* @__PURE__ */ new Set(), eI = [], tI = null;-function nI() {- if (tI = null, !eI.length) return;- let e = eI.splice(0, 200);+var ZF = (e) => e.published_at ? pj(e.published_at) : "时间未取得", QF = /* @__PURE__ */ new Set(), $F = [], eI = null;+function tI() {+ if (eI = null, !$F.length) return;+ let e = $F.splice(0, 200);ce("/api/follow/image-dims", {method: "POST",body: JSON.stringify({ entries: e })- }).catch(() => {}), eI.length && (tI = setTimeout(nI, 800));+ }).catch(() => {}), $F.length && (eI = setTimeout(tI, 800));}-function vhe(e, t, n, r) {+function _he(e, t, n, r) {let i = `${e}:${t ?? ""}`;- $F.has(i) || ($F.add(i), eI.push(t === null ? {+ QF.has(i) || (QF.add(i), $F.push(t === null ? {item: e,width: n,height: r@@ -41256,15 +41247,15 @@ function vhe(e, t, n, r) {width: n,height: r,media: t- }), tI ||= setTimeout(nI, 800));+ }), eI ||= setTimeout(tI, 800));}//#endregion//#region src/react/follow-feed/follow-card.tsx-var yhe = (e) => Number(e) > 0;-function bhe(e) {+var vhe = (e) => Number(e) > 0;+function yhe(e) {return /^\d{4}-/.test(e) ? e.startsWith(String((/* @__PURE__ */ new Date()).getFullYear())) ? e.slice(5, 10) : e.slice(0, 10) : e;}-function xhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {+function bhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {let [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1);return a ? null : /* @__PURE__ */ (0, V.jsx)("img", {src: s ? t : e,@@ -41282,8 +41273,8 @@ function xhe({ src: e, fallback: t, width: n, height: r, onLearn: i }) {} : void 0});}-function She(e) {- let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = RF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => vhe(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? zF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = lhe({+function xhe(e) {+ let { group: t, authorSources: n, media: r, context: i, selected: a, selectMode: o, busy: s, failure: c, actions: l } = e, u = LF(t, r), d = r === "images", f = d ? (u.media_items || []).find((e) => e.media_kind === "image") : void 0, p = f?.thumb_url || u.thumb_url || "", m = d && u.playable ? `/follow-stream?id=${u.id}${f ? `&media=${f.index}` : ""}` : void 0, h = f && f.thumb_url === p ? f : null, g = !h || p === u.thumb_url, _ = d ? [h, g ? u : null].find((e) => Number(e?.width) > 0 && Number(e?.height) > 0) : null, v = d && !_ && p ? (e, t) => _he(u.id, h ? h.index : null, e, t) : void 0, y = r === "videos" ? RF(t) : [], b = (u.media_items || []).length > 1 ? u.id : y[0]?.id || u.id, x = che({cover: p,coverFace: (f?.thumb_url ? f : u).face,stack: t.stack,@@ -41291,7 +41282,7 @@ function She(e) {limit: 9}), S = (0, B.useRef)(x.faces);S.current = x.faces;- let C = LA({+ let C = PA({load: async () => S.current,canFlip: () => S.current.length > 1 && l.canFlip(),referrerPolicy: "no-referrer"@@ -41299,7 +41290,7 @@ function She(e) {w.current = C.onPointerLeave;let T = (0, B.useCallback)((e) => {e && (e._stopHover = () => w.current());- }, []), E = JF(u, n, i), D = QF(u), O = (u.tags || []).slice(0, 3), k = ZF(u, i), A = XF(t, u), j = u.status === "saved", M = (e) => {+ }, []), E = qF(u, n, i), D = ZF(u), O = (u.tags || []).slice(0, 3), k = XF(u, i), A = YF(t, u), j = u.status === "saved", M = (e) => {if (!e.target.closest("[data-media-tag]")) {if (o || e.shiftKey || e.ctrlKey || e.metaKey) {e.preventDefault(), l.toggleSelection(u.id, e.shiftKey);@@ -41332,7 +41323,7 @@ function She(e) {}), /* @__PURE__ */ (0, V.jsxs)("div", {"data-media-pic": "",children: [- p ? /* @__PURE__ */ (0, V.jsx)(xhe, {+ p ? /* @__PURE__ */ (0, V.jsx)(bhe, {src: p,fallback: m,width: _?.width,@@ -41340,7 +41331,7 @@ function She(e) {onLearn: v}, p) : /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-nothumb": "",- dangerouslySetInnerHTML: { __html: GF(u.resource_provider || u.provider) }+ dangerouslySetInnerHTML: { __html: WF(u.resource_provider || u.provider) }}),x.faces.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {"data-mix-faces": "",@@ -41359,7 +41350,7 @@ function She(e) {"data-media-badge": "",title: u.provider_label,"aria-label": `来源:${u.provider_label || ""}`,- dangerouslySetInnerHTML: { __html: GF(u.provider) }+ dangerouslySetInnerHTML: { __html: WF(u.provider) }}),/* @__PURE__ */ (0, V.jsx)("span", {"data-media-check": "",@@ -41368,7 +41359,7 @@ function She(e) {},dangerouslySetInnerHTML: { __html: R("check") }}),- yhe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {+ vhe(u.duration) ? /* @__PURE__ */ (0, V.jsx)("span", {"data-media-duration": "",children: fe(u.duration)}) : null,@@ -41450,7 +41441,7 @@ function She(e) {/* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-media-title": "",- dangerouslySetInnerHTML: { __html: YF(t, u) + L(u.title) }+ dangerouslySetInnerHTML: { __html: JF(t, u) + L(u.title) }}),/* @__PURE__ */ (0, V.jsxs)("div", {"data-follow-byline": "",@@ -41461,7 +41452,7 @@ function She(e) {}), /* @__PURE__ */ (0, V.jsx)("time", {dateTime: u.published_at || "",title: D,- children: bhe(D)+ children: yhe(D)})]}),E.credited ? /* @__PURE__ */ (0, V.jsx)("div", {@@ -41497,10 +41488,10 @@ function She(e) {]});}-var Che = (0, B.memo)(She), rI = () => /* @__PURE__ */ (0, V.jsx)("span", {+var She = (0, B.memo)(xhe), nI = () => /* @__PURE__ */ (0, V.jsx)("span", {"data-entity-sep": "","aria-hidden": "true"-}), whe = xA("settings"), The = xA("chevron-down"), Ehe = xA("history"), Dhe = [[+}), Che = vA("settings"), whe = vA("chevron-down"), The = vA("history"), Ehe = [["fixed","固定比例","layout-grid"@@ -41509,19 +41500,19 @@ var Che = (0, B.memo)(She), rI = () => /* @__PURE__ */ (0, V.jsx)("span", {"瀑布流","columns-2"]];-function Ohe(e, t, n) {+function Dhe(e, t, n) {return (0, B.useMemo)(() => {let r = e?.groups || [], i = e?.counts || {}, a = e?.sources || [], o = e?.facets || {}, s = new Set(o.authors || []), c = new Map(a.map((e) => [e.provider, e.provider_label || e.provider])), l = new Map((o.providers || []).map((e) => [e, c.get(e) || e])), u = new Map(o.tags || []), d = /* @__PURE__ */ new Map();a.forEach((e) => {e.author_key && (d.has(e.author_key) || d.set(e.author_key, []), d.get(e.author_key).push(e));});- let f = NF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = NF(o.works || [], (e) => e[0], n).slice(0, 24);+ let f = MF([...d.keys()].filter((e) => s.has(e)), (e) => e, n), p = MF(o.works || [], (e) => e[0], n).slice(0, 24);t.work && !p.some((e) => e[0] === t.work) && p.push([t.work,t.work,0]);- let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = NF([...u], (e) => e[0], n).slice(0, 20);+ let m = Object.values(i).reduce((e, t) => e + (Number(t) || 0), 0), h = MF([...u], (e) => e[0], n).slice(0, 20);t.tags.forEach((e) => {h.some(([t]) => t === e) || h.push([e, u.get(e) || m]);});@@ -41529,7 +41520,7 @@ function Ohe(e, t, n) {videos: 0,images: 0};- r.forEach((e) => LF(e).forEach((e) => {+ r.forEach((e) => IF(e).forEach((e) => {g[e === "image" ? "images" : "videos"] += 1;}));let _ = t.media === "images" ? "image" : "video";@@ -41544,7 +41535,7 @@ function Ohe(e, t, n) {workRows: p,allCount: m,mediaCounts: g,- visible: r.filter((e) => LF(e).has(_)),+ visible: r.filter((e) => IF(e).has(_)),author: d.has(t.author) && s.has(t.author) ? t.author : "",provider: l.has(t.provider) ? t.provider : "",workNames: new Map((o.works || []).map((e) => [e[0], e[1]])),@@ -41557,15 +41548,15 @@ function Ohe(e, t, n) {n]);}-function khe(e) {- let { view: t, seed: n, revision: r, actions: i } = e, a = kF(t, r), o = AS(a), s = ES({- queryKey: AF,- queryFn: ({ signal: e }) => jF(e)- }), c = (0, B.useMemo)(() => MF(o.data), [o.data]), l = (0, B.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, B.useMemo)(() => ({+function Ohe(e) {+ let { view: t, seed: n, revision: r, actions: i } = e, a = OF(t, r), o = kS(a), s = TS({+ queryKey: kF,+ queryFn: ({ signal: e }) => AF(e)+ }), c = (0, B.useMemo)(() => jF(o.data), [o.data]), l = (0, B.useMemo)(() => new Set((s.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [s.data]), u = (0, B.useMemo)(() => ({sources: c?.sources || [],aliases: c?.author_aliases || [],credentials: l- }), [c, l]), d = Ohe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => _he(d.visible.flatMap(PF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);+ }), [c, l]), d = Dhe(c, t, n), f = o.isPending || o.isPlaceholderData, p = !f && !!c, m = (0, B.useMemo)(() => ghe(d.visible.flatMap(NF).map((e) => ({ tags: e.tags || [] }))), [d.visible]);(0, B.useEffect)(() => {p && i.loaded(m);}, [@@ -41573,20 +41564,20 @@ function khe(e) {m,i]);- let h = Ahe(e, !!c);- if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(jA, {+ let h = khe(e, !!c);+ if (!c) return o.isError ? /* @__PURE__ */ (0, V.jsx)(OA, {message: ye(o.error),onRetry: () => void o.refetch()}) : null;let g = (e) => i.route({...t,...e- }), _ = fhe({+ }), _ = dhe({...t,author: d.author,provider: d.provider}, {- authors: new Map([...d.authorSources].map(([e, t]) => [e, KF(t, u)])),+ authors: new Map([...d.authorSources].map(([e, t]) => [e, GF(t, u)])),providers: d.providers,works: d.workNames}), v = t.status ? d.counts[t.status] || 0 : d.allCount, y = d.sources.some((e) => e.can_backfill);@@ -41606,7 +41597,7 @@ function khe(e) {"data-follow-head-actions": "",children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",- leadingIcon: whe,+ leadingIcon: Che,"data-follow-manage": "",onClick: i.openManage,children: "管理关注"@@ -41623,20 +41614,20 @@ function khe(e) {}) : null]})]}),- /* @__PURE__ */ (0, V.jsx)(jhe, {+ /* @__PURE__ */ (0, V.jsx)(Ahe, {facets: d,pressed: d.author,context: u,props: e,onPick: (e) => g({ author: d.author === e ? "" : e })}),- /* @__PURE__ */ (0, V.jsx)(Mhe, {+ /* @__PURE__ */ (0, V.jsx)(jhe, {rows: d.workRows,pressed: t.work,props: e,onPick: (e) => g({ work: t.work === e ? "" : e })}),- /* @__PURE__ */ (0, V.jsx)(Nhe, {+ /* @__PURE__ */ (0, V.jsx)(Mhe, {facets: d,view: t,total: v,@@ -41644,9 +41635,9 @@ function khe(e) {props: e,route: g}),- /* @__PURE__ */ (0, V.jsx)(Phe, {+ /* @__PURE__ */ (0, V.jsx)(Nhe, {conditions: _,- onDrop: (e) => i.route(phe(t, e)),+ onDrop: (e) => i.route(fhe(t, e)),onClear: () => g({author: "",provider: "",@@ -41654,11 +41645,11 @@ function khe(e) {tags: []})}),- d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Fhe, {+ d.broken.length ? /* @__PURE__ */ (0, V.jsx)(Phe, {count: d.broken.length,onManage: i.openManage}) : null,- /* @__PURE__ */ (0, V.jsx)(Ihe, {+ /* @__PURE__ */ (0, V.jsx)(Fhe, {pending: f,facets: d,data: c,@@ -41669,19 +41660,19 @@ function khe(e) {"data-follow-pagination": "",children: [c.has_more ? /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-page-action": "",- children: /* @__PURE__ */ (0, V.jsxs)(HA, {+ children: /* @__PURE__ */ (0, V.jsxs)(zA, {entity: !0,enabled: () => !h.busyRef.current,load: async () => {await o.fetchNextPage({ throwOnError: !0 });},- children: [/* @__PURE__ */ (0, V.jsx)(The, { className: "size-3.5" }), "加载更多"]+ children: [/* @__PURE__ */ (0, V.jsx)(whe, { className: "size-3.5" }), "加载更多"]}, o.data?.pages.length)}) : null, y ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-follow-page-action": "",children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",- leadingIcon: h.olderBusy ? void 0 : Ehe,+ leadingIcon: h.olderBusy ? void 0 : The,"data-follow-older": "","aria-busy": h.busy || void 0,onClick: () => void h.start(!0),@@ -41691,14 +41682,14 @@ function khe(e) {}), /* @__PURE__ */ (0, V.jsx)("span", { children: "抓取中…" })] }) : "抓更早的一页"}), /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-backfill": "",- children: uhe(d.sources)+ children: lhe(d.sources)})]}) : null]}) : null]})] });}-function Ahe(e, t) {+function khe(e, t) {let { helpers: n, actions: r } = e, [i, a] = (0, B.useState)(0), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), f = (0, B.useRef)(!1), p = (0, B.useRef)(null), m = (0, B.useRef)({helpers: n,actions: r@@ -41713,7 +41704,7 @@ function Ahe(e, t) {return m.current.helpers.jobProgress({host: e,active: () => t,- read: (e) => G(BP, e),+ read: (e) => G(zP, e),busy: (e) => {t && (f.current = e, s(e));},@@ -41738,7 +41729,7 @@ function Ahe(e, t) {f.current = !0, l(e ? "older" : "check");let t = !1;try {- let n = await K(BP, e ? {+ let n = await K(zP, e ? {older: !0,background: !0} : { background: !0 });@@ -41756,7 +41747,7 @@ function Ahe(e, t) {olderBusy: c === "older" || u && o};}-function jhe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {+function Ahe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {let a = (0, B.useRef)(null);return (0, B.useEffect)(() => {r.helpers.wireDrag(a.current);@@ -41773,16 +41764,16 @@ function jhe({ facets: e, pressed: t, context: n, props: r, onPick: i }) {onClick: () => i(r),children: [/* @__PURE__ */ (0, V.jsx)("span", {"data-follow-ring": "",- dangerouslySetInnerHTML: { __html: qF(a, KF(a, n)) }+ dangerouslySetInnerHTML: { __html: KF(a, GF(a, n)) }}), /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-name": "",- children: KF(a, n)+ children: GF(a, n)})]}, r);})}) : null;}-function Mhe({ rows: e, pressed: t, props: n, onPick: r }) {+function jhe({ rows: e, pressed: t, props: n, onPick: r }) {let i = (0, B.useRef)(null);return (0, B.useEffect)(() => {n.helpers.wireDrag(i.current);@@ -41803,13 +41794,13 @@ function Mhe({ rows: e, pressed: t, props: n, onPick: r }) {}, e[0]))}) : null;}-function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {- let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = fA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = fA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);+function Mhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {+ let { helpers: o, actions: s } = i, c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = (0, B.useRef)(null), d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = !!e.mediaCounts.images || t.media === "images", h = lA(c, u, "[data-follow-filter][aria-pressed=\"true\"]", t.status), g = lA(l, d, "[data-media-view][aria-pressed=\"true\"]", `${t.media}:${m}`);(0, B.useEffect)(() => {o.wireDrag(f.current), o.wireDrag(p.current), o.wireScroller(p.current);}, [o]);let _ = [...e.providers], v = _.length + e.tagRows.length > 0, y = t.media === "images";- return /* @__PURE__ */ (0, V.jsx)(lA, {+ return /* @__PURE__ */ (0, V.jsx)(oA, {label: "筛选与排序",topLabel: m ? "媒体与关注筛选" : "关注筛选",attrs: {@@ -41861,7 +41852,7 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: R(i) }}, e);})- }), /* @__PURE__ */ (0, V.jsx)(rI, {})] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {+ }), /* @__PURE__ */ (0, V.jsx)(nI, {})] }) : null, /* @__PURE__ */ (0, V.jsxs)("div", {ref: f,"data-entity-scroll": "",children: [/* @__PURE__ */ (0, V.jsxs)("div", {@@ -41870,7 +41861,7 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {"aria-label": "状态","data-entity-states": "",onPointerLeave: h.leave,- children: [rhe.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {+ children: [nhe.map(([e, n]) => /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-entity-state": e,"data-follow-filter": e,@@ -41881,7 +41872,7 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {t.status !== e && a({ status: e });},children: n- }, e)), v ? /* @__PURE__ */ (0, V.jsx)(rI, {}) : null]+ }, e)), v ? /* @__PURE__ */ (0, V.jsx)(nI, {}) : null]}), /* @__PURE__ */ (0, V.jsxs)("div", {ref: p,"data-entity-tags": "",@@ -41894,13 +41885,13 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {title: n,"aria-label": `来源:${n}`,onClick: () => a({ provider: e.provider === t ? "" : t }),- dangerouslySetInnerHTML: { __html: GF(t) }+ dangerouslySetInnerHTML: { __html: WF(t) }}, t)),- _.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(rI, {}) : null,- e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(uA, {+ _.length && e.tagRows.length ? /* @__PURE__ */ (0, V.jsx)(nI, {}) : null,+ e.tagRows.map(([n, r]) => /* @__PURE__ */ (0, V.jsxs)(sA, {"data-follow-tag": n,"data-entity-press": "",- "data-tag-cat": `r34-${mhe(e.groups, n)}`,+ "data-tag-cat": `r34-${phe(e.groups, n)}`,pressed: t.tags.includes(n),onPress: () => a({ tags: t.tags.includes(n) ? t.tags.filter((e) => e !== n) : [...t.tags, n] }),children: [ot(n), r ? /* @__PURE__ */ (0, V.jsx)("span", {@@ -41918,11 +41909,11 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {}), /* @__PURE__ */ (0, V.jsxs)("span", {"data-entity-sorts": "",children: [- /* @__PURE__ */ (0, V.jsx)(TA, { onPress: s.shuffle }),- y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(wA, {+ /* @__PURE__ */ (0, V.jsx)(SA, { onPress: s.shuffle }),+ y ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(xA, {label: "图片布局",value: i.photoLayout,- options: Dhe,+ options: Ehe,onChange: (e) => s.setPhotoLayout(e === "fixed" ? "fixed" : "masonry")}), /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",@@ -41939,17 +41930,17 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {dangerouslySetInnerHTML: { __html: R("captions-off") }})]})] }) : null,- ihe.map(([e, n]) => {- let r = t.sort === e, i = xA(t.dir === "asc" ? "arrow-up" : "arrow-down");+ rhe.map(([e, n]) => {+ let r = t.sort === e, i = vA(t.dir === "asc" ? "arrow-up" : "arrow-down");return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-entity-sort": e,"data-follow-sort": e,"data-entity-press": "","aria-pressed": r,- "aria-label": dhe(e, n, t.sort, t.dir) || void 0,+ "aria-label": uhe(e, n, t.sort, t.dir) || void 0,onClick: () => {- let n = VF(e, t.sort, t.dir);+ let n = BF(e, t.sort, t.dir);n && a(n);},children: [n, r ? /* @__PURE__ */ (0, V.jsx)(i, { className: "size-3.5" }) : null]@@ -41959,7 +41950,7 @@ function Nhe({ facets: e, view: t, total: n, busy: r, props: i, route: a }) {})] })});}-function Phe({ conditions: e, onDrop: t, onClear: n }) {+function Nhe({ conditions: e, onDrop: t, onClear: n }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-entity-combo": "","data-follow-combo": "",@@ -41984,7 +41975,7 @@ function Phe({ conditions: e, onDrop: t, onClear: n }) {})] }) : null});}-function Fhe({ count: e, onManage: t }) {+function Phe({ count: e, onManage: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-broken": "",onClick: (e) => {@@ -41993,12 +41984,12 @@ function Fhe({ count: e, onManage: t }) {dangerouslySetInnerHTML: { __html: `<div class="geist-note geist-note-error fwarn" role="alert">${R("alert")}<span>${e} 个来源上次检查失败,去<button type="button" class="flink" data-follow-manage>管理关注</button>看原因。</span></div>` }});}-function Ihe({ pending: e, facets: t, data: n, context: r, props: i }) {- let { view: a, helpers: o } = i, s = a.media === "images", c = AA(e, () => o.listSkeletonHtml(a.media));+function Fhe({ pending: e, facets: t, data: n, context: r, props: i }) {+ let { view: a, helpers: o } = i, s = a.media === "images", c = DA(e, () => o.listSkeletonHtml(a.media));return /* @__PURE__ */ (0, V.jsxs)("div", {"data-follow-list-body": "","data-grid-reveal": c.fading ? "" : void 0,- children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Lhe, {+ children: [c.layer, e ? null : /* @__PURE__ */ (0, V.jsx)(Ihe, {facets: t,data: n,context: r,@@ -42007,38 +41998,38 @@ function Ihe({ pending: e, facets: t, data: n, context: r, props: i }) {})]});}-function Lhe({ facets: e, data: t, context: n, props: r, images: i }) {- let { view: a, actions: o } = r, s = Bhe(r), c = i ? {+function Ihe({ facets: e, data: t, context: n, props: r, images: i }) {+ let { view: a, actions: o } = r, s = zhe(r), c = i ? {"data-size": r.photoSize,"data-layout": r.photoLayout,"data-images-only": String(r.imagesOnly)} : {}, l;return l = e.visible.length ? e.visible.map((t) => {let i = e.byId.get(t.primary?.source_id), c = i?.author_key && e.authorSources.get(i.author_key) || [], l = t.primary.id;- return /* @__PURE__ */ (0, V.jsx)(Che, {+ return /* @__PURE__ */ (0, V.jsx)(She, {group: t,authorSources: c,media: a.media,context: n,- selected: r.selected.has(iI(t, a)),+ selected: r.selected.has(rI(t, a)),selectMode: r.selectMode,- busy: s.busy.get(iI(t, a)) || "",- failure: s.failures.get(iI(t, a)) || "",+ busy: s.busy.get(rI(t, a)) || "",+ failure: s.failures.get(rI(t, a)) || "",actions: o,onStatus: s.status,onSave: s.save}, `${l}:${a.media}`);- }) : /* @__PURE__ */ (0, V.jsx)(Rhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {+ }) : /* @__PURE__ */ (0, V.jsx)(Lhe, { data: t }), /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-list": "","data-follow-wall": i ? "" : void 0,...c,children: l});}-function iI(e, t) {- return RF(e, t.media).id;+function rI(e, t) {+ return LF(e, t.media).id;}-function Rhe({ data: e }) {+function Lhe({ data: e }) {let t = (e.groups || []).length ? Oe("search-x", "当前筛选下没有更新", "切换媒体类型、创作者、来源或标签后再试。") : (e.sources || []).length ? Oe("rss", "没有符合条件的更新", "切换状态或来源筛选后再试。") : Oe("rss", "还没有关注任何来源", "添加创作者或订阅来源后,更新会集中显示在这里。", { actions: "<a class=\"geist-button primary\" href=\"/follow-manage?tab=add\">添加关注</a>" });return /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-empty": "",@@ -42046,36 +42037,36 @@ function Rhe({ data: e }) {dangerouslySetInnerHTML: { __html: t }});}-var zhe = {+var Rhe = {new: "已恢复未看",seen: "已标记已看",ignored: "已忽略"};-function Bhe(e) {- let { view: t, revision: n, actions: r } = e, [i, a] = (0, B.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, B.useState)(() => /* @__PURE__ */ new Map()), c = kF(t, n).queryKey, l = (e, t, n) => n((n) => {+function zhe(e) {+ let { view: t, revision: n, actions: r } = e, [i, a] = (0, B.useState)(() => /* @__PURE__ */ new Map()), [o, s] = (0, B.useState)(() => /* @__PURE__ */ new Map()), c = OF(t, n).queryKey, l = (e, t, n) => n((n) => {let r = new Map(n);return t ? r.set(e, t) : r.delete(e), r;}), u = (e, n) => {- z.setQueryData(c, (r) => r && HF(r, t, e, n));+ z.setQueryData(c, (r) => r && VF(r, t, e, n));}, d = () => void z.invalidateQueries({queryKey: c,exact: !0}), f = (e) => {- let t = MF(z.getQueryData(c));+ let t = jF(z.getQueryData(c));for (let n of t?.groups || []) for (let t of [n.primary,...n.variants,...n.duplicates]) if (t.id === e) return t.status;return "new";- }, p = kS({- mutationFn: ({ id: e, to: t }) => K(WP, {+ }, p = OS({+ mutationFn: ({ id: e, to: t }) => K(UP, {item: e,to: t}),onSuccess: (e, { id: t, to: n, was: i }) => {- u(t, n), d(), r.toast(zhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {- await K(WP, {+ u(t, n), d(), r.toast(Rhe[n] || "已更新关注状态", { undo: i === "saved" ? void 0 : async () => {+ await K(UP, {item: t,to: i}), u(t, i), d();@@ -42085,7 +42076,7 @@ function Bhe(e) {l(t, ye(e), s), r.failure("更新关注状态", e);},onSettled: (e, t, { id: n }) => l(n, "", a)- }), m = kS({+ }), m = OS({mutationFn: (e) => K("/api/follow/save", { item: e }),onSuccess: (e, t) => {u(t, "saved"), d(), r.toast("已保存到账本");@@ -42120,8 +42111,8 @@ function Bhe(e) {}//#endregion//#region src/react/follow-manage/source-view.tsx-function aI({ provider: e, label: t }) {- let n = TF(e), [r, i] = (0, B.useState)(!1);+function iI({ provider: e, label: t }) {+ let n = wF(e), [r, i] = (0, B.useState)(!1);return !n || r ? t ? /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: t }) : null : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("img", {src: n,alt: "",@@ -42132,8 +42123,8 @@ function aI({ provider: e, label: t }) {className: "size-3.5 shrink-0 rounded-sm object-contain"}), t ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : null] });}-function oI({ group: e, name: t }) {- let { src: n, fallback: r } = oF(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];+function aI({ group: e, name: t }) {+ let { src: n, fallback: r } = aF(e), [i, a] = (0, B.useState)(0), o = [n, r].filter(Boolean)[i];return o ? /* @__PURE__ */ (0, V.jsx)("img", {src: o,alt: "",@@ -42146,18 +42137,18 @@ function oI({ group: e, name: t }) {}) : /* @__PURE__ */ (0, V.jsx)("span", {title: "没有可用头像",className: "inline-grid size-8 shrink-0 place-items-center rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary",- children: aF(t)+ children: iF(t)});}-function sI({ source: e }) {- let t = $P(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";- return /* @__PURE__ */ (0, V.jsx)(wE, {+function oI({ source: e }) {+ let t = QP(e) ? "rose" : e.enabled && e.last_status === "ok" ? "lime" : e.enabled ? "yellow" : "neutral";+ return /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: t,- children: Ime(e)+ children: Fme(e)});}-function cI({ source: e }) {+function sI({ source: e }) {return /* @__PURE__ */ (0, V.jsxs)("a", {href: e.url,target: "_blank",@@ -42172,11 +42163,11 @@ function cI({ source: e }) {}//#endregion//#region src/react/follow-manage/add-source.tsx-var lI = xE(Sk, Ck, "text-body-2-medium"), Vhe = "粘贴来源链接,或输入创作者名、id…", Hhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Uhe = "识别中…", Whe = "站内没有查到来源", uI = (e, t) => `${e}:${t.url}`;-function Ghe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {+var cI = _E(yk, bk, "text-body-2-medium"), Bhe = "粘贴来源链接,或输入创作者名、id…", Vhe = "查找中…(首次按名字查要下载创作者索引,可能几十秒)", Hhe = "识别中…", Uhe = "站内没有查到来源", lI = (e, t) => `${e}:${t.url}`;+function Whe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onClose: o }) {return (0, B.useEffect)(() => {t.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView({ block: "nearest" });- }, [t, r]), /* @__PURE__ */ (0, V.jsxs)(yO, {+ }, [t, r]), /* @__PURE__ */ (0, V.jsxs)(hO, {ref: t,triggerRef: e,isOpen: !0,@@ -42188,17 +42179,17 @@ function Ghe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onCplacement: "bottom start",offset: 4,"aria-label": "来源建议",- className: xE(xk, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),+ className: _E(vk, "flex w-(--trigger-width) flex-col gap-1 overscroll-contain"),children: [i && !n.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "px-2 py-1.5",- children: /* @__PURE__ */ (0, V.jsx)(kE, { label: "正在查找建议" })+ children: /* @__PURE__ */ (0, V.jsx)(TE, { label: "正在查找建议" })}) : null, n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(B.Fragment, { children: [e.group === n[t - 1]?.group ? null : /* @__PURE__ */ (0, V.jsx)("div", {className: "px-2 pt-1 text-caption-1-regular text-text-tertiary",children: e.group}), /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","aria-current": t === r ? "true" : void 0,- className: t === r ? xE(lI, "bg-background-secondary-default") : lI,+ className: t === r ? _E(cI, "bg-background-secondary-default") : cI,onMouseDown: (e) => e.preventDefault(),onClick: () => a(e.value),children: [@@ -42218,7 +42209,7 @@ function Ghe({ field: e, menu: t, options: n, active: r, busy: i, onPick: a, onC})] }, `${e.group}-${e.value}`))]});}-function Khe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {+function Ghe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), s = (e.providers || []).filter((e) => e.followable), c = s.filter((e) => !t.has(e.provider_label)).length, l = c === s.length ? "全部来源" : `${c}/${s.length} 个来源`, u = (e, r) => {let i = new Set(t);r ? i.delete(e) : i.add(e), n(i);@@ -42226,20 +42217,20 @@ function Khe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {ref: i,variant: "secondary",- leadingIcon: uae,+ leadingIcon: cae,"aria-haspopup": "dialog","aria-expanded": a,"aria-label": l,onClick: () => o(!0),children: l- }), /* @__PURE__ */ (0, V.jsx)(yO, {+ }), /* @__PURE__ */ (0, V.jsx)(hO, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom end",offset: 4,- className: xk,- children: /* @__PURE__ */ (0, V.jsxs)(AO, {+ className: vk,+ children: /* @__PURE__ */ (0, V.jsxs)(EO, {"aria-label": "来源筛选",className: "flex w-64 flex-col gap-1 outline-none",children: [s.length ? /* @__PURE__ */ (0, V.jsxs)("div", {@@ -42255,16 +42246,16 @@ function Khe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {onClick: () => n(new Set(s.map((e) => e.provider_label))),children: "全不选"})]- }) : /* @__PURE__ */ (0, V.jsx)(Ik, { children: "暂无可用来源" }), s.map((e) => {+ }) : /* @__PURE__ */ (0, V.jsx)(Nk, { children: "暂无可用来源" }), s.map((e) => {let n = e.requirement === "required" && (!e.present || (e.missing || []).length > 0);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(UM, {+ children: [/* @__PURE__ */ (0, V.jsx)(BM, {isSelected: !t.has(e.provider_label),onChange: (t) => u(e.provider_label, t),children: /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-1.5",- children: [/* @__PURE__ */ (0, V.jsx)(aI, { provider: e.provider }), e.provider_label]+ children: [/* @__PURE__ */ (0, V.jsx)(iI, { provider: e.provider }), e.provider_label]})}), n ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "ghost",@@ -42280,7 +42271,7 @@ function Khe({ credentials: e, hidden: t, onHidden: n, openCredentials: r }) {})})] });}-function qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {+function Khe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {if (e.kind === "error") return /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: e.line,@@ -42288,7 +42279,7 @@ function qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {});let a = (e.candidates || []).filter((e) => !n.has(e.provider_label || "")), o = Object.entries(e.failures || {});return /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({variant: "outlined",padding: "none",className: "flex flex-col gap-2 p-4"@@ -42299,15 +42290,15 @@ function qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {children: e.line}),a.length ? a.map((e) => {- let n = uI(t, e);- return /* @__PURE__ */ (0, V.jsx)(UM, {+ let n = lI(t, e);+ return /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: !e.known && !r.has(n),isDisabled: e.known,onChange: (e) => i(n, e),children: /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 flex-wrap items-center gap-1.5",children: [- /* @__PURE__ */ (0, V.jsx)(aI, { provider: e.provider }),+ /* @__PURE__ */ (0, V.jsx)(iI, { provider: e.provider }),/* @__PURE__ */ (0, V.jsx)("b", {className: "text-body-medium",children: e.provider_label@@ -42323,22 +42314,22 @@ function qhe({ row: e, at: t, hidden: n, unpicked: r, onPick: i }) {]})}, n);- }) : /* @__PURE__ */ (0, V.jsx)(Ik, { children: Whe }),+ }) : /* @__PURE__ */ (0, V.jsx)(Nk, { children: Uhe }),(e.external_searches || []).map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)("small", {className: "text-caption-1-regular text-text-secondary",children: e.evidence- }), /* @__PURE__ */ (0, V.jsx)(zk, {+ }), /* @__PURE__ */ (0, V.jsx)(Ik, {href: e.url,children: `${e.label}:${e.query}`})]}, e.url)),- o.length ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null+ o.length ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: o.map(([e, t]) => `${e}:${t}`).join(";") }) : null]});}-function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {+function qhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials: i }) {let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(!1), [p, m] = (0, B.useState)(null), [h, g] = (0, B.useState)(-1), _ = (0, B.useRef)(null), v = (0, B.useRef)(null), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), [C, w] = (0, B.useState)(""), [T, E] = (0, B.useState)(0);(0, B.useEffect)(() => {let e = a.trim();@@ -42349,19 +42340,19 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = setTimeout(() => u(e), 250);return () => clearTimeout(t);}, [a]);- let D = ES({- queryKey: Ame(l),- queryFn: ({ signal: e }) => Hme(l, e),+ let D = TS({+ queryKey: kme(l),+ queryFn: ({ signal: e }) => Vme(l, e),enabled: l.length > 0 && d}), O = (0, B.useMemo)(() => (D.data?.groups || []).flatMap((e) => e.items.map((t) => ({value: t.value,matched: t.matched || "",n: t.n || 0,group: e.label- }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = zM({- queryKey: kme,- queryFn: ({ signal: e }) => Vme(e),- start: (e) => Ume([e]),+ }))), [D.data]), { job: k, running: A, outcome: j, start: M, dismiss: N } = IM({+ queryKey: Ome,+ queryFn: ({ signal: e }) => Bme(e),+ start: (e) => Hme([e]),onStarted: () => S(/* @__PURE__ */ new Set()),onError: (e) => w(W(e)),onFinish: (e) => {@@ -42395,14 +42386,14 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}}, ne = j?.results || [], re = ne.flatMap((e, t) => (e.candidates || []).filter((e) => !e.known && !y.has(e.provider_label || "")).map((e) => ({candidate: e,- key: uI(t, e)- })).filter((e) => !x.has(e.key))), ie = kS({+ key: lI(t, e)+ })).filter((e) => !x.has(e.key))), ie = OS({mutationFn: async (e) => {let t = [], n = [];E(0);for (let r of e) {try {- let e = await Wme(r.candidate);+ let e = await Ume(r.candidate);n.push(e.source);} catch (e) {t.push(`${r.candidate.label}:${W(e)}`);@@ -42410,7 +42401,7 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:E((e) => e + 1);}if (n.length) try {- await pF(n);+ await fF(n);} catch (e) {t.push(W(e));}@@ -42420,7 +42411,7 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:};},onSuccess: (e) => {- if (CF(), e.failures.length) {+ if (SF(), e.failures.length) {w(e.failures.join(";"));return;}@@ -42429,7 +42420,7 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onError: (e) => w(W(e))}), ae = e.suggestions || [], oe = !s.includes("/");return /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42449,15 +42440,15 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:let t = e.relatedTarget;!e.currentTarget.contains(t) && !v.current?.contains(t) && f(!1);},- children: [/* @__PURE__ */ (0, V.jsx)(bk, {+ children: [/* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "来源链接、名字或 id",- placeholder: Vhe,+ placeholder: Bhe,value: a,- leadingIcon: kT,+ leadingIcon: TT,isDisabled: n,onChange: o,onKeyDown: te- }), F ? /* @__PURE__ */ (0, V.jsx)(Ghe, {+ }), F ? /* @__PURE__ */ (0, V.jsx)(Whe, {field: _,menu: v,options: O,@@ -42467,7 +42458,7 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:onClose: I}) : null]}),- /* @__PURE__ */ (0, V.jsx)(Khe, {+ /* @__PURE__ */ (0, V.jsx)(Ghe, {credentials: t,hidden: y,onHidden: b,@@ -42485,9 +42476,9 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:/* @__PURE__ */ (0, V.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",- children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(FM, {+ children: [A || M.isPending ? /* @__PURE__ */ (0, V.jsx)(MM, {embedded: !0,- label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Hhe : Uhe),+ label: k?.message || (k?.total ? `查找中:${k.checked || 0}/${k.total}` : oe ? Vhe : Hhe),value: k?.checked,total: k?.total}) : null, C ? /* @__PURE__ */ (0, V.jsx)(Y, {@@ -42499,8 +42490,8 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:ne.length ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "查找结果" }),- ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(qhe, {+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "查找结果" }),+ ne.map((e, t) => /* @__PURE__ */ (0, V.jsx)(Khe, {row: e,at: t,hidden: y,@@ -42555,16 +42546,16 @@ function Jhe({ data: e, credentials: t, readOnly: n, toast: r, openCredentials:}//#endregion//#region src/react/follow-manage/alias-manager.tsx-var Yhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, dI = (e) => e.alias;-function Xhe(e, t, n) {+var Jhe = (e) => `将移除别名「${e}」,对应来源恢复为独立创作者组。`, uI = (e) => e.alias;+function Yhe(e, t, n) {let r = n ? `name:${n}` : "", i = r ? e.find((e) => e.author_key === r) : e.find((e) => e.author_name === t || e.entity_name === t);return i ? e.filter((e) => e.author_key === i.author_key) : [];}-function fI({ sources: e, name: t, canonicalKey: n }) {+function dI({ sources: e, name: t, canonicalKey: n }) {return /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(oI, {- group: Xhe(e, t, n),+ children: [/* @__PURE__ */ (0, V.jsx)(aI, {+ group: Yhe(e, t, n),name: t}), /* @__PURE__ */ (0, V.jsx)("b", {className: "text-body-medium",@@ -42572,15 +42563,15 @@ function fI({ sources: e, name: t, canonicalKey: n }) {})]});}-function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {- let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = kS({+function Xhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i }) {+ let [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), p = OS({mutationFn: async (e) => {let t = 0;for (let n of e) {try {- await gF(n.canonical, n.alias);+ await hF(n.canonical, n.alias);} catch (n) {- throw t && CF(), Error(`${W(n)}(还有 ${e.length - t} 组没有合并)`);+ throw t && SF(), Error(`${W(n)}(还有 ${e.length - t} 组没有合并)`);}t += 1;}@@ -42590,19 +42581,19 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i};},onSuccess: (e) => {- c(""), o(/* @__PURE__ */ new Set()), CF(), i(`已合并 ${e.done} 组创作者别名`);+ c(""), o(/* @__PURE__ */ new Set()), SF(), i(`已合并 ${e.done} 组创作者别名`);},onError: (e) => c(W(e))- }), m = kS({- mutationFn: (e) => gF(e.canonical, e.alias),+ }), m = OS({+ mutationFn: (e) => hF(e.canonical, e.alias),onSuccess: () => {- c(""), u(""), f(""), CF(), i("已保存创作者别名");+ c(""), u(""), f(""), SF(), i("已保存创作者别名");},onError: (e) => c(W(e))- }), h = kS({- mutationFn: (e) => Gme(e),+ }), h = OS({+ mutationFn: (e) => Wme(e),onSuccess: () => {- c(""), CF(), i("已移除创作者别名");+ c(""), SF(), i("已移除创作者别名");},onError: (e) => c(W(e))}), g = (e, t) => {@@ -42612,9 +42603,9 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iconfirmLabel: t ? "合并全部别名" : "合并所选别名",onConfirm: () => p.mutateAsync(e)});- }, _ = t.filter((e) => a.has(dI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);+ }, _ = t.filter((e) => a.has(uI(e))), v = t.length > 0 && _.length === t.length, y = X(p.isPending);return /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42625,10 +42616,10 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "手动添加别名" }), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "规范创作者名",placeholder: "规范创作者名",value: l,@@ -42636,7 +42627,7 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iisDisabled: r,className: "w-56"}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "平台别名",placeholder: "平台别名",value: d,@@ -42657,13 +42648,13 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i]})]}),- s ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: s }) : null,+ s ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: s }) : null,t.length ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "待合并" }),+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "待合并" }),/* @__PURE__ */ (0, V.jsx)("span", {className: "mr-auto text-body-2-regular text-text-secondary",children: `${t.length} 组`@@ -42685,44 +42676,44 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ichildren: `全部合并(${t.length})`})]- }), /* @__PURE__ */ (0, V.jsx)(KM, { children: /* @__PURE__ */ (0, V.jsxs)(WM, {+ }), /* @__PURE__ */ (0, V.jsx)(UM, { children: /* @__PURE__ */ (0, V.jsxs)(VM, {"aria-label": "待合并创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(ek, { children: [- /* @__PURE__ */ (0, V.jsx)(tk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(XO, { children: [+ /* @__PURE__ */ (0, V.jsx)(ZO, {id: "select",- children: /* @__PURE__ */ (0, V.jsx)(UM, {+ children: /* @__PURE__ */ (0, V.jsx)(BM, {slot: null,isSelected: v,isIndeterminate: _.length > 0 && !v,"aria-label": "全选待合并别名",- onChange: (e) => o(e ? new Set(t.map(dI)) : /* @__PURE__ */ new Set())+ onChange: (e) => o(e ? new Set(t.map(uI)) : /* @__PURE__ */ new Set())})}),- /* @__PURE__ */ (0, V.jsx)(tk, {+ /* @__PURE__ */ (0, V.jsx)(ZO, {id: "canonical",children: "规范创作者"}),- /* @__PURE__ */ (0, V.jsx)(tk, {+ /* @__PURE__ */ (0, V.jsx)(ZO, {id: "alias",isRowHeader: !0,children: "平台别名"}),- /* @__PURE__ */ (0, V.jsx)(tk, {+ /* @__PURE__ */ (0, V.jsx)(ZO, {id: "evidence",children: "依据"}),- /* @__PURE__ */ (0, V.jsx)(tk, {+ /* @__PURE__ */ (0, V.jsx)(ZO, {id: "actions",children: "操作"})- ] }), /* @__PURE__ */ (0, V.jsx)(rk, { children: t.map((e) => {- let t = dI(e);- return /* @__PURE__ */ (0, V.jsxs)(ok, {+ ] }), /* @__PURE__ */ (0, V.jsx)($O, { children: t.map((e) => {+ let t = uI(e);+ return /* @__PURE__ */ (0, V.jsxs)(nk, {id: t,"data-board-selected": a.has(t) || void 0,children: [- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)(UM, {+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)(BM, {slot: null,isSelected: a.has(t),"aria-label": `选择别名 ${e.alias},归入 ${e.canonical}`,@@ -42731,16 +42722,16 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ie ? n.add(t) : n.delete(t), o(n);}}) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)(fI, {+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)(dI, {sources: n,name: e.canonical}) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: e.alias }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ /* @__PURE__ */ (0, V.jsx)(ik, { children: e.alias }),+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: e.evidence}) }),- /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",disabled: r,@@ -42757,27 +42748,27 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: iclassName: "flex flex-col gap-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "已保存别名" }), /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",children: `${e.length} 组`})]- }), e.length ? /* @__PURE__ */ (0, V.jsx)(KM, { children: /* @__PURE__ */ (0, V.jsxs)(WM, {+ }), e.length ? /* @__PURE__ */ (0, V.jsx)(UM, { children: /* @__PURE__ */ (0, V.jsxs)(VM, {"aria-label": "已保存创作者别名",size: "sm",- children: [/* @__PURE__ */ (0, V.jsxs)(ek, { children: [/* @__PURE__ */ (0, V.jsx)(tk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(XO, { children: [/* @__PURE__ */ (0, V.jsx)(ZO, {id: "canonical",isRowHeader: !0,children: "规范创作者"- }), /* @__PURE__ */ (0, V.jsx)(tk, {+ }), /* @__PURE__ */ (0, V.jsx)(ZO, {id: "aliases",children: "平台别名"- })] }), /* @__PURE__ */ (0, V.jsx)(rk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(ok, {+ })] }), /* @__PURE__ */ (0, V.jsx)($O, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(nk, {id: e.canonical_key,- children: [/* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)(fI, {+ children: [/* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)(dI, {sources: n,name: e.canonical_name,canonicalKey: e.canonical_key- }) }), /* @__PURE__ */ (0, V.jsx)(ck, { children: /* @__PURE__ */ (0, V.jsx)("span", {+ }) }), /* @__PURE__ */ (0, V.jsx)(ik, { children: /* @__PURE__ */ (0, V.jsx)("span", {className: "flex flex-wrap items-center gap-1.5",children: e.aliases.map((e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "inline-flex items-center gap-1 rounded-md bg-background-secondary-default px-1.5 py-1 text-caption-1-medium text-text-secondary",@@ -42785,13 +42776,13 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: ivariant: "ghost",size: "xs",iconOnly: !0,- leadingIcon: gT,+ leadingIcon: fT,"aria-label": `移除别名 ${e.name}`,disabled: r,...X(h.isPending),onClick: () => void Te({title: "移除创作者别名",- body: Yhe(e.name),+ body: Jhe(e.name),confirmLabel: "移除创作者别名",onConfirm: () => h.mutateAsync(e.name)})@@ -42799,9 +42790,9 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}, e.key))}) })]}, e.canonical_key)) })]- }) }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: jT,+ icon: DT,title: "还没有保存创作者别名",children: "填写规范创作者名和平台别名以添加。"})]@@ -42811,33 +42802,33 @@ function Zhe({ groups: e, suggestions: t, sources: n = [], readOnly: r, toast: i}//#endregion//#region src/react/follow-manage/credentials.tsx-var Qhe = "这些账号信息存在哪里", $he = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", ege = "将清除这个来源在本机和共享副本中的登录凭据。", tge = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";-function nge(e, t) {+var Zhe = "这些账号信息存在哪里", Qhe = "存成运行 Peach 那台电脑上的一个文件。在 Windows 上它不额外加锁,能登录那台电脑的人都能打开。", $he = "将清除这个来源在本机和共享副本中的登录凭据。", ege = "文件权限过宽。在运行 Peach 的 POSIX 主机上收紧为 0600。";+function tge(e, t) {return (e.shared_fields || []).includes(t) ? "来自共享,留空表示不改" : e.fields.includes(t) ? "已保存,留空表示不改" : "未填写";}-function rge({ row: e }) {- if (EF(e)) return /* @__PURE__ */ (0, V.jsx)(wE, {+function nge({ row: e }) {+ if (TF(e)) return /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "lime",children: "已配置"});let t = e.requirement === "required" ? "yellow" : e.requirement === "blocked" ? "rose" : "neutral";- return /* @__PURE__ */ (0, V.jsx)(wE, {+ return /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: t,- children: nhe[e.requirement] || ""+ children: the[e.requirement] || ""});}-function ige({ row: e, readOnly: t, toast: n }) {- let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = EF(e), c = kS({- mutationFn: (t) => Kme(e.provider, t),+function rge({ row: e, readOnly: t, toast: n }) {+ let [r, i] = (0, B.useState)({}), [a, o] = (0, B.useState)(""), s = TF(e), c = OS({+ mutationFn: (t) => Gme(e.provider, t),onSuccess: (e, t) => {if (e.note) {o(e.note);return;}o(""), i({}), z.invalidateQueries({- queryKey: qP,+ queryKey: KP,exact: !0}), n(Object.keys(t).length ? "已保存来源凭据" : "已清除来源凭据");},@@ -42853,17 +42844,17 @@ function ige({ row: e, readOnly: t, toast: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsxs)(Ik, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(zk, {+ /* @__PURE__ */ (0, V.jsxs)(Nk, { children: [e.why, e.where ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)(Ik, {href: e.where,children: "去取"})] }) : null] }),- e.howto ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: e.howto }) : null,+ e.howto ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: e.howto }) : null,/* @__PURE__ */ (0, V.jsx)("div", {className: "flex w-full flex-col gap-3",- children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(bk, {+ children: (e.needs || []).map((n) => /* @__PURE__ */ (0, V.jsx)(_k, {type: "password",label: n,- placeholder: nge(e, n),+ placeholder: tge(e, n),autoComplete: "off",spellCheck: "false",isDisabled: t,@@ -42891,7 +42882,7 @@ function ige({ row: e, readOnly: t, toast: n }) {...X(c.isPending),onClick: () => void Te({title: "清除来源凭据",- body: ege,+ body: $he,confirmLabel: "清除来源凭据",danger: !0,onConfirm: () => c.mutateAsync({})@@ -42899,9 +42890,9 @@ function ige({ row: e, readOnly: t, toast: n }) {children: "清除"}) : null]}),- a ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: a }) : null,- (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,- e.path ? /* @__PURE__ */ (0, V.jsx)(PM, {+ a ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: a }) : null,+ (e.shared_fields || []).length ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: `${e.shared_fields.join("、")} 是从共享副本回填的,本机没有单独存。清除会把两边一起删。` }) : null,+ e.path ? /* @__PURE__ */ (0, V.jsx)(jM, {path: e.path,className: "font-mono text-caption-1-regular text-text-tertiary",onRevealed: n@@ -42909,18 +42900,18 @@ function ige({ row: e, readOnly: t, toast: n }) {e.world_readable ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "凭据文件权限过宽",- children: tge+ children: ege}) : null]});}-function age({ row: e, readOnly: t, toast: n }) {+function ige({ row: e, readOnly: t, toast: n }) {let r = /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-2",children: [/* @__PURE__ */ (0, V.jsx)("span", {className: "inline-flex size-3.5 shrink-0 items-center justify-center",- children: /* @__PURE__ */ (0, V.jsx)(aI, { provider: e.provider })+ children: /* @__PURE__ */ (0, V.jsx)(iI, { provider: e.provider })}),/* @__PURE__ */ (0, V.jsx)("b", {className: "text-body-medium text-text-primary",@@ -42930,8 +42921,8 @@ function age({ row: e, readOnly: t, toast: n }) {className: "text-caption-1-regular text-text-secondary",children: e.nature}) : null,- /* @__PURE__ */ (0, V.jsx)(rge, { row: e }),- e.missing.length ? /* @__PURE__ */ (0, V.jsx)(wE, {+ /* @__PURE__ */ (0, V.jsx)(nge, { row: e }),+ e.missing.length ? /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "rose",children: `缺 ${e.missing.join("、")}`@@ -42940,13 +42931,13 @@ function age({ row: e, readOnly: t, toast: n }) {});return e.requirement === "none" || e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-3 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: e.why }) : null]+ children: [r, e.requirement === "blocked" ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: e.why }) : null]}) : /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2 border-b border-separator-border px-6 py-5 last:border-b-0 max-sm:px-4",- children: [r, /* @__PURE__ */ (0, V.jsx)(Hk, {- summary: EF(e) ? "修改凭据" : "填写凭据",- defaultOpen: e.requirement === "required" && !EF(e),- children: /* @__PURE__ */ (0, V.jsx)(ige, {+ children: [r, /* @__PURE__ */ (0, V.jsx)(zk, {+ summary: TF(e) ? "修改凭据" : "填写凭据",+ defaultOpen: e.requirement === "required" && !TF(e),+ children: /* @__PURE__ */ (0, V.jsx)(rge, {row: e,readOnly: t,toast: n@@ -42954,10 +42945,10 @@ function age({ row: e, readOnly: t, toast: n }) {})]});}-function oge({ data: e, readOnly: t, toast: n }) {- let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !EF(e));+function age({ data: e, readOnly: t, toast: n }) {+ let r = e.providers || [], i = r.filter((e) => e.requirement === "required" && !TF(e));return r.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -42992,12 +42983,12 @@ function oge({ data: e, readOnly: t, toast: n }) {className: "text-body-medium text-text-secondary",children: e.title}), /* @__PURE__ */ (0, V.jsx)("div", {- className: DE({+ className: CE({variant: "outlined",padding: "none",className: "flex flex-col overflow-hidden"}),- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(age, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(ige, {row: e,readOnly: t,toast: n@@ -43009,13 +43000,13 @@ function oge({ data: e, readOnly: t, toast: n }) {children: [/* @__PURE__ */ (0, V.jsx)("b", {className: "text-body-medium text-text-primary",- children: Qhe+ children: Zhe}),/* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",- children: $he+ children: Qhe}),- /* @__PURE__ */ (0, V.jsx)(PM, {+ /* @__PURE__ */ (0, V.jsx)(jM, {path: e.root,prefix: "凭据文件在 ",className: "text-body-2-regular text-text-secondary",@@ -43024,16 +43015,16 @@ function oge({ data: e, readOnly: t, toast: n }) {]})]- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: hae,+ icon: pae,title: "没有可配置的来源",children: "已接入的站点及其凭据状态会显示在这里。"});}//#endregion//#region node_modules/@tanstack/table-core/build/lib/index.mjs-function pI() {+function fI() {return {accessor: (e, t) => typeof e == "function" ? {...t,@@ -43046,24 +43037,24 @@ function pI() {group: (e) => e};}-function mI(e, t) {+function pI(e, t) {return typeof e == "function" ? e(t) : e;}-function hI(e, t) {+function mI(e, t) {return (n) => {t.setState((t) => ({...t,- [e]: mI(n, t[e])+ [e]: pI(n, t[e])}));};}-function gI(e) {+function hI(e) {return e instanceof Function;}-function sge(e) {+function oge(e) {return Array.isArray(e) && e.every((e) => typeof e == "number");}-function cge(e, t) {+function sge(e, t) {let n = [], r = (e) => {e.forEach((e) => {n.push(e);@@ -43073,7 +43064,7 @@ function cge(e, t) {};return r(e), n;}-function _I(e, t, n) {+function gI(e, t, n) {let r = [], i;return (a) => {let o;@@ -43095,21 +43086,21 @@ function _I(e, t, n) {return i;};}-function vI(e, t, n, r) {+function _I(e, t, n, r) {return {debug: () => e?.debugAll ?? e[t],key: !1,onChange: r};}-function lge(e, t, n, r) {+function cge(e, t, n, r) {let i = {id: `${t.id}_${n.id}`,row: t,column: n,getValue: () => t.getValue(r),renderValue: () => i.getValue() ?? e.options.renderFallbackValue,- getContext: _I(() => [+ getContext: gI(() => [e,n,t,@@ -43121,13 +43112,13 @@ function lge(e, t, n, r) {cell: r,getValue: r.getValue,renderValue: r.renderValue- }), vI(e.options, "debugCells", "cell.getContext"))+ }), _I(e.options, "debugCells", "cell.getContext"))};return e._features.forEach((r) => {r.createCell == null || r.createCell(i, n, t, e);}, {}), i;}-function uge(e, t, n, r) {+function lge(e, t, n, r) {let i = {...e._getDefaultColumnDef(),...t@@ -43144,17 +43135,17 @@ function uge(e, t, n, r) {depth: n,columnDef: i,columns: [],- getFlatColumns: _I(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], vI(e.options, "debugColumns", "column.getFlatColumns")),- getLeafColumns: _I(() => [e._getOrderColumnsFn()], (e) => {+ getFlatColumns: gI(() => [!0], () => [c, ...c.columns?.flatMap((e) => e.getFlatColumns())], _I(e.options, "debugColumns", "column.getFlatColumns")),+ getLeafColumns: gI(() => [e._getOrderColumnsFn()], (e) => {var t;return (t = c.columns) != null && t.length ? e(c.columns.flatMap((e) => e.getLeafColumns())) : [c];- }, vI(e.options, "debugColumns", "column.getLeafColumns"))+ }, _I(e.options, "debugColumns", "column.getLeafColumns"))};for (let t of e._features) t.createColumn == null || t.createColumn(c, e);return c;}-var yI = "debugHeaders";-function bI(e, t, n) {+var vI = "debugHeaders";+function yI(e, t, n) {let r = {id: n.id ?? t.id,column: t,@@ -43182,42 +43173,42 @@ function bI(e, t, n) {t.createHeader == null || t.createHeader(r, e);}), r;}-var dge = { createTable: (e) => {- e.getHeaderGroups = _I(() => [+var uge = { createTable: (e) => {+ e.getHeaderGroups = gI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right], (t, n, r, i) => {let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));- return xI(t, [+ return bI(t, [...a,...s,...o], e);- }, vI(e.options, yI, "getHeaderGroups")), e.getCenterHeaderGroups = _I(() => [+ }, _I(e.options, vI, "getHeaderGroups")), e.getCenterHeaderGroups = gI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), xI(t, n, e, "center")), vI(e.options, yI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = _I(() => [+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), bI(t, n, e, "center")), _I(e.options, vI, "getCenterHeaderGroups")), e.getLeftHeaderGroups = gI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left- ], (t, n, r) => xI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), vI(e.options, yI, "getLeftHeaderGroups")), e.getRightHeaderGroups = _I(() => [+ ], (t, n, r) => bI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), _I(e.options, vI, "getLeftHeaderGroups")), e.getRightHeaderGroups = gI(() => [e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right- ], (t, n, r) => xI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), vI(e.options, yI, "getRightHeaderGroups")), e.getFooterGroups = _I(() => [e.getHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getFooterGroups")), e.getLeftFooterGroups = _I(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getLeftFooterGroups")), e.getCenterFooterGroups = _I(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getCenterFooterGroups")), e.getRightFooterGroups = _I(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), vI(e.options, yI, "getRightFooterGroups")), e.getFlatHeaders = _I(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getFlatHeaders")), e.getLeftFlatHeaders = _I(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = _I(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getCenterFlatHeaders")), e.getRightFlatHeaders = _I(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), vI(e.options, yI, "getRightFlatHeaders")), e.getCenterLeafHeaders = _I(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {+ ], (t, n, r) => bI(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), _I(e.options, vI, "getRightHeaderGroups")), e.getFooterGroups = gI(() => [e.getHeaderGroups()], (e) => [...e].reverse(), _I(e.options, vI, "getFooterGroups")), e.getLeftFooterGroups = gI(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), _I(e.options, vI, "getLeftFooterGroups")), e.getCenterFooterGroups = gI(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), _I(e.options, vI, "getCenterFooterGroups")), e.getRightFooterGroups = gI(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), _I(e.options, vI, "getRightFooterGroups")), e.getFlatHeaders = gI(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), _I(e.options, vI, "getFlatHeaders")), e.getLeftFlatHeaders = gI(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), _I(e.options, vI, "getLeftFlatHeaders")), e.getCenterFlatHeaders = gI(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), _I(e.options, vI, "getCenterFlatHeaders")), e.getRightFlatHeaders = gI(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), _I(e.options, vI, "getRightFlatHeaders")), e.getCenterLeafHeaders = gI(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), vI(e.options, yI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = _I(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {+ }), _I(e.options, vI, "getCenterLeafHeaders")), e.getLeftLeafHeaders = gI(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), vI(e.options, yI, "getLeftLeafHeaders")), e.getRightLeafHeaders = _I(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {+ }), _I(e.options, vI, "getLeftLeafHeaders")), e.getRightLeafHeaders = gI(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {var t;return !((t = e.subHeaders) != null && t.length);- }), vI(e.options, yI, "getRightLeafHeaders")), e.getLeafHeaders = _I(() => [+ }), _I(e.options, vI, "getRightLeafHeaders")), e.getLeafHeaders = gI(() => [e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()@@ -43225,9 +43216,9 @@ var dge = { createTable: (e) => {...e[0]?.headers ?? [],...t[0]?.headers ?? [],...n[0]?.headers ?? []- ].map((e) => e.getLeafHeaders()).flat(), vI(e.options, yI, "getLeafHeaders"));+ ].map((e) => e.getLeafHeaders()).flat(), _I(e.options, vI, "getLeafHeaders"));} };-function xI(e, t, n, r) {+function bI(e, t, n, r) {let i = 0, a = function(e, t) {t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {var n;@@ -43245,7 +43236,7 @@ function xI(e, t, n, r) {let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);else {- let i = bI(n, c, {+ let i = yI(n, c, {id: [r,t,@@ -43262,7 +43253,7 @@ function xI(e, t, n, r) {i.headers.push(e), e.headerGroup = i;}), o.push(i), t > 0 && s(a, t - 1);};- s(t.map((e, t) => bI(n, e, {+ s(t.map((e, t) => yI(n, e, {depth: i,index: t})), i - 1), o.reverse();@@ -43280,7 +43271,7 @@ function xI(e, t, n, r) {});return c(o[0]?.headers ?? []), o;}-var fge = (e, t, n, r, i, a, o) => {+var dge = (e, t, n, r, i, a, o) => {let s = {id: t,index: r,@@ -43301,7 +43292,7 @@ var fge = (e, t, n, r, i, a, o) => {},renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,subRows: a ?? [],- getLeafRows: () => cge(s.subRows, (e) => e.subRows),+ getLeafRows: () => sge(s.subRows, (e) => e.subRows),getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,getParentRows: () => {let e = [], t = s;@@ -43312,95 +43303,95 @@ var fge = (e, t, n, r, i, a, o) => {}return e.reverse();},- getAllCells: _I(() => [e.getAllLeafColumns()], (t) => t.map((t) => lge(e, s, t, t.id)), vI(e.options, "debugRows", "getAllCells")),- _getAllCellsByColumnId: _I(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), vI(e.options, "debugRows", "getAllCellsByColumnId"))+ getAllCells: gI(() => [e.getAllLeafColumns()], (t) => t.map((t) => cge(e, s, t, t.id)), _I(e.options, "debugRows", "getAllCells")),+ _getAllCellsByColumnId: gI(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), _I(e.options, "debugRows", "getAllCellsByColumnId"))};for (let t = 0; t < e._features.length; t++) {let n = e._features[t];n == null || n.createRow == null || n.createRow(s, e);}return s;-}, pge = { createColumn: (e, t) => {+}, fge = { createColumn: (e, t) => {e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();};-} }, SI = (e, t, n) => {+} }, xI = (e, t, n) => {var r, i;let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));};-SI.autoRemove = (e) => MI(e);-var CI = (e, t, n) => {+xI.autoRemove = (e) => jI(e);+var SI = (e, t, n) => {var r;return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));};-CI.autoRemove = (e) => MI(e);-var wI = (e, t, n) => {+SI.autoRemove = (e) => jI(e);+var CI = (e, t, n) => {var r;return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();};-wI.autoRemove = (e) => MI(e);-var TI = (e, t, n) => e.getValue(t)?.includes(n);-TI.autoRemove = (e) => MI(e);-var EI = (e, t, n) => !n.some((n) => {+CI.autoRemove = (e) => jI(e);+var wI = (e, t, n) => e.getValue(t)?.includes(n);+wI.autoRemove = (e) => jI(e);+var TI = (e, t, n) => !n.some((n) => {var r;return !((r = e.getValue(t)) != null && r.includes(n));});-EI.autoRemove = (e) => MI(e) || !(e != null && e.length);-var DI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));-DI.autoRemove = (e) => MI(e) || !(e != null && e.length);-var OI = (e, t, n) => e.getValue(t) === n;-OI.autoRemove = (e) => MI(e);-var kI = (e, t, n) => e.getValue(t) == n;-kI.autoRemove = (e) => MI(e);-var AI = (e, t, n) => {+TI.autoRemove = (e) => jI(e) || !(e != null && e.length);+var EI = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));+EI.autoRemove = (e) => jI(e) || !(e != null && e.length);+var DI = (e, t, n) => e.getValue(t) === n;+DI.autoRemove = (e) => jI(e);+var OI = (e, t, n) => e.getValue(t) == n;+OI.autoRemove = (e) => jI(e);+var kI = (e, t, n) => {let [r, i] = n, a = e.getValue(t);return a >= r && a <= i;};-AI.resolveFilterValue = (e) => {+kI.resolveFilterValue = (e) => {let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;if (a > o) {let e = a;a = o, o = e;}return [a, o];-}, AI.autoRemove = (e) => MI(e) || MI(e[0]) && MI(e[1]);-var jI = {- includesString: SI,- includesStringSensitive: CI,- equalsString: wI,- arrIncludes: TI,- arrIncludesAll: EI,- arrIncludesSome: DI,- equals: OI,- weakEquals: kI,- inNumberRange: AI+}, kI.autoRemove = (e) => jI(e) || jI(e[0]) && jI(e[1]);+var AI = {+ includesString: xI,+ includesStringSensitive: SI,+ equalsString: CI,+ arrIncludes: wI,+ arrIncludesAll: TI,+ arrIncludesSome: EI,+ equals: DI,+ weakEquals: OI,+ inNumberRange: kI};-function MI(e) {+function jI(e) {return e == null || e === "";}-var mge = {+var pge = {getDefaultColumnDef: () => ({ filterFn: "auto" }),getInitialState: (e) => ({columnFilters: [],...e}),getDefaultOptions: (e) => ({- onColumnFiltersChange: hI("columnFilters", e),+ onColumnFiltersChange: mI("columnFilters", e),filterFromLeafRows: !1,maxLeafRowFilterDepth: 100}),createColumn: (e, t) => {e.getAutoFilterFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- return typeof n == "string" ? jI.includesString : typeof n == "number" ? jI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? jI.equals : Array.isArray(n) ? jI.arrIncludes : jI.weakEquals;- }, e.getFilterFn = () => gI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? jI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {+ return typeof n == "string" ? AI.includesString : typeof n == "number" ? AI.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? AI.equals : Array.isArray(n) ? AI.arrIncludes : AI.weakEquals;+ }, e.getFilterFn = () => hI(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? AI[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {var n;return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {t.setColumnFilters((t) => {- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = mI(n, i ? i.value : void 0);- if (NI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = pI(n, i ? i.value : void 0);+ if (MI(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];let o = {id: e.id,value: a@@ -43415,19 +43406,19 @@ var mge = {createTable: (e) => {e.setColumnFilters = (t) => {let n = e.getAllLeafColumns();- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => mI(t, e)?.filter((e) => {+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => pI(t, e)?.filter((e) => {let t = n.find((t) => t.id === e.id);- return !(t && NI(t.getFilterFn(), e.value, t));+ return !(t && MI(t.getFilterFn(), e.value, t));}));}, e.resetColumnFilters = (t) => {e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());}};-function NI(e, t, n) {+function MI(e, t, n) {return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;}-var PI = {+var NI = {sum: (e, t, n) => n.reduce((t, n) => {let r = n.getValue(e);return t + (typeof r == "number" ? r : 0);@@ -43463,7 +43454,7 @@ var PI = {median: (e, t) => {if (!t.length) return;let n = t.map((t) => t.getValue(e));- if (!sge(n)) return;+ if (!oge(n)) return;if (n.length === 1) return n[0];let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];@@ -43471,7 +43462,7 @@ var PI = {unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,count: (e, t) => t.length-}, hge = {+}, mge = {getDefaultColumnDef: () => ({aggregatedCell: (e) => {var t;@@ -43484,7 +43475,7 @@ var PI = {...e}),getDefaultOptions: (e) => ({- onGroupingChange: hI("grouping", e),+ onGroupingChange: mI("grouping", e),groupedColumnMode: "reorder"}),createColumn: (e, t) => {@@ -43497,11 +43488,11 @@ var PI = {};}, e.getAutoAggregationFn = () => {let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);- if (typeof n == "number") return PI.sum;- if (Object.prototype.toString.call(n) === "[object Date]") return PI.extent;+ if (typeof n == "number") return NI.sum;+ if (Object.prototype.toString.call(n) === "[object Date]") return NI.extent;}, e.getAggregationFn = () => {if (!e) throw Error();- return gI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? PI[e.columnDef.aggregationFn];+ return hI(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? NI[e.columnDef.aggregationFn];};},createTable: (e) => {@@ -43523,27 +43514,27 @@ var PI = {};}};-function gge(e, t, n) {+function hge(e, t, n) {if (!(t != null && t.length) || !n) return e;let r = e.filter((e) => !t.includes(e.id));return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];}-var _ge = {+var gge = {getInitialState: (e) => ({columnOrder: [],...e}),- getDefaultOptions: (e) => ({ onColumnOrderChange: hI("columnOrder", e) }),+ getDefaultOptions: (e) => ({ onColumnOrderChange: mI("columnOrder", e) }),createColumn: (e, t) => {- e.getIndex = _I((e) => [BI(t, e)], (t) => t.findIndex((t) => t.id === e.id), vI(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => BI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {- let r = BI(t, n);+ e.getIndex = gI((e) => [zI(t, e)], (t) => t.findIndex((t) => t.id === e.id), _I(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => zI(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {+ let r = zI(t, n);return r[r.length - 1]?.id === e.id;};},createTable: (e) => {e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);- }, e._getOrderColumnsFn = _I(() => [+ }, e._getOrderColumnsFn = gI(() => [e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode@@ -43558,18 +43549,18 @@ var _ge = {}i = [...i, ...n];}- return gge(i, t, n);- }, vI(e.options, "debugTable", "_getOrderColumnsFn"));+ return hge(i, t, n);+ }, _I(e.options, "debugTable", "_getOrderColumnsFn"));}-}, FI = () => ({+}, PI = () => ({left: [],right: []-}), vge = {+}), _ge = {getInitialState: (e) => ({- columnPinning: FI(),+ columnPinning: PI(),...e}),- getDefaultOptions: (e) => ({ onColumnPinningChange: hI("columnPinning", e) }),+ getDefaultOptions: (e) => ({ onColumnPinningChange: mI("columnPinning", e) }),createColumn: (e, t) => {e.pin = (n) => {let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);@@ -43593,75 +43584,75 @@ var _ge = {};},createRow: (e, t) => {- e.getCenterVisibleCells = _I(() => [+ e.getCenterVisibleCells = gI(() => [e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right], (e, t, n) => {let r = [...t ?? [], ...n ?? []];return e.filter((e) => !r.includes(e.column.id));- }, vI(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = _I(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({+ }, _I(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = gI(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({...e,position: "left"- })), vI(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = _I(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({+ })), _I(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = gI(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({...e,position: "right"- })), vI(t.options, "debugRows", "getRightVisibleCells"));+ })), _I(t.options, "debugRows", "getRightVisibleCells"));},createTable: (e) => {- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? FI() : e.initialState?.columnPinning ?? FI()), e.getIsSomeColumnsPinned = (t) => {+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? PI() : e.initialState?.columnPinning ?? PI()), e.getIsSomeColumnsPinned = (t) => {let n = e.getState().columnPinning;return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);- }, e.getLeftLeafColumns = _I(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), vI(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = _I(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), vI(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = _I(() => [+ }, e.getLeftLeafColumns = gI(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), _I(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = gI(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), _I(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = gI(() => [e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right], (e, t, n) => {let r = [...t ?? [], ...n ?? []];return e.filter((e) => !r.includes(e.id));- }, vI(e.options, "debugColumns", "getCenterLeafColumns"));+ }, _I(e.options, "debugColumns", "getCenterLeafColumns"));}};-function yge(e) {+function vge(e) {return e || (typeof document < "u" ? document : null);}-var II = {+var FI = {size: 150,minSize: 20,maxSize: 2 ** 53 - 1-}, LI = () => ({+}, II = () => ({startOffset: null,startSize: null,deltaOffset: null,deltaPercentage: null,isResizingColumn: !1,columnSizingStart: []-}), bge = {- getDefaultColumnDef: () => II,+}), yge = {+ getDefaultColumnDef: () => FI,getInitialState: (e) => ({columnSizing: {},- columnSizingInfo: LI(),+ columnSizingInfo: II(),...e}),getDefaultOptions: (e) => ({columnResizeMode: "onEnd",columnResizeDirection: "ltr",- onColumnSizingChange: hI("columnSizing", e),- onColumnSizingInfoChange: hI("columnSizingInfo", e)+ onColumnSizingChange: mI("columnSizing", e),+ onColumnSizingInfoChange: mI("columnSizingInfo", e)}),createColumn: (e, t) => {e.getSize = () => {let n = t.getState().columnSizing[e.id];- return Math.min(Math.max(e.columnDef.minSize ?? II.minSize, n ?? e.columnDef.size ?? II.size), e.columnDef.maxSize ?? II.maxSize);- }, e.getStart = _I((e) => [+ return Math.min(Math.max(e.columnDef.minSize ?? FI.minSize, n ?? e.columnDef.size ?? FI.size), e.columnDef.maxSize ?? FI.maxSize);+ }, e.getStart = gI((e) => [e,- BI(t, e),+ zI(t, e),t.getState().columnSizing- ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), vI(t.options, "debugColumns", "getStart")), e.getAfter = _I((e) => [+ ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), _I(t.options, "debugColumns", "getStart")), e.getAfter = gI((e) => [e,- BI(t, e),+ zI(t, e),t.getState().columnSizing- ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), vI(t.options, "debugColumns", "getAfter")), e.resetSize = () => {+ ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), _I(t.options, "debugColumns", "getAfter")), e.resetSize = () => {t.setColumnSizing((t) => {let { [e.id]: n, ...r } = t;return r;@@ -43683,8 +43674,8 @@ var II = {}, e.getResizeHandler = (n) => {let r = t.getColumn(e.column.id), i = r?.getCanResize();return (a) => {- if (!r || !i || (a.persist == null || a.persist(), zI(a) && a.touches && a.touches.length > 1)) return;- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = zI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {+ if (!r || !i || (a.persist == null || a.persist(), RI(a) && a.touches && a.touches.length > 1)) return;+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = RI(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {typeof n == "number" && (t.setColumnSizingInfo((e) => {let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);return e.columnSizingStart.forEach((e) => {@@ -43709,7 +43700,7 @@ var II = {deltaPercentage: null,columnSizingStart: []}));- }, p = yge(n), m = {+ }, p = vge(n), m = {moveHandler: (e) => d(e.clientX),upHandler: (e) => {p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);@@ -43719,8 +43710,8 @@ var II = {upHandler: (e) => {p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);}- }, g = xge() ? { passive: !1 } : !1;- zI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({+ }, g = bge() ? { passive: !1 } : !1;+ RI(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({...e,startOffset: c,startSize: o,@@ -43736,12 +43727,12 @@ var II = {e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});}, e.resetHeaderSizeInfo = (t) => {- e.setColumnSizingInfo(t ? LI() : e.initialState.columnSizingInfo ?? LI());+ e.setColumnSizingInfo(t ? II() : e.initialState.columnSizingInfo ?? II());}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;}-}, RI = null;-function xge() {- if (typeof RI == "boolean") return RI;+}, LI = null;+function bge() {+ if (typeof LI == "boolean") return LI;let e = !1;try {let t = { get passive() {@@ -43751,17 +43742,17 @@ function xge() {} catch {e = !1;}- return RI = e, RI;+ return LI = e, LI;}-function zI(e) {+function RI(e) {return e.type === "touchstart";}-var Sge = {+var xge = {getInitialState: (e) => ({columnVisibility: {},...e}),- getDefaultOptions: (e) => ({ onColumnVisibilityChange: hI("columnVisibility", e) }),+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: mI("columnVisibility", e) }),createColumn: (e, t) => {e.toggleVisibility = (n) => {e.getCanHide() && t.setColumnVisibility((t) => ({@@ -43776,7 +43767,7 @@ var Sge = {};},createRow: (e, t) => {- e._getAllVisibleCells = _I(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), vI(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = _I(() => [+ e._getAllVisibleCells = gI(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), _I(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = gI(() => [e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()@@ -43784,10 +43775,10 @@ var Sge = {...e,...t,...n- ], vI(t.options, "debugRows", "getVisibleCells"));+ ], _I(t.options, "debugRows", "getVisibleCells"));},createTable: (e) => {- let t = (t, n) => _I(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), vI(e.options, "debugColumns", t));+ let t = (t, n) => gI(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), _I(e.options, "debugColumns", t));e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});}, e.toggleAllColumnsVisible = (t) => {@@ -43800,20 +43791,20 @@ var Sge = {};}};-function BI(e, t) {+function zI(e, t) {return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();}-var Cge = { createTable: (e) => {+var Sge = { createTable: (e) => {e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();};-} }, wge = {+} }, Cge = {getInitialState: (e) => ({globalFilter: void 0,...e}),getDefaultOptions: (e) => ({- onGlobalFilterChange: hI("globalFilter", e),+ onGlobalFilterChange: mI("globalFilter", e),globalFilterFn: "auto",getColumnCanGlobalFilter: (t) => {var n;@@ -43825,22 +43816,22 @@ var Cge = { createTable: (e) => {e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;},createTable: (e) => {- e.getGlobalAutoFilterFn = () => jI.includesString, e.getGlobalFilterFn = () => {+ e.getGlobalAutoFilterFn = () => AI.includesString, e.getGlobalFilterFn = () => {let { globalFilterFn: t } = e.options;- return gI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? jI[t];+ return hI(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? AI[t];}, e.setGlobalFilter = (t) => {e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);}, e.resetGlobalFilter = (t) => {e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);};}-}, Tge = {+}, wge = {getInitialState: (e) => ({expanded: {},...e}),getDefaultOptions: (e) => ({- onExpandedChange: hI("expanded", e),+ onExpandedChange: mI("expanded", e),paginateExpandedRows: !0}),createTable: (e) => {@@ -43911,18 +43902,18 @@ var Cge = { createTable: (e) => {};};}-}, VI = 0, HI = 10, UI = () => ({- pageIndex: VI,- pageSize: HI-}), Ege = {+}, BI = 0, VI = 10, HI = () => ({+ pageIndex: BI,+ pageSize: VI+}), Tge = {getInitialState: (e) => ({...e,pagination: {- ...UI(),+ ...HI(),...e?.pagination}}),- getDefaultOptions: (e) => ({ onPaginationChange: hI("pagination", e) }),+ getDefaultOptions: (e) => ({ onPaginationChange: mI("pagination", e) }),createTable: (e) => {let t = !1, n = !1;e._autoResetPageIndex = () => {@@ -43938,11 +43929,11 @@ var Cge = { createTable: (e) => {e.resetPageIndex(), n = !1;});}- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => mI(t, e)), e.resetPagination = (t) => {- e.setPagination(t ? UI() : e.initialState.pagination ?? UI());+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => pI(t, e)), e.resetPagination = (t) => {+ e.setPagination(t ? HI() : e.initialState.pagination ?? HI());}, e.setPageIndex = (t) => {e.setPagination((n) => {- let r = mI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;+ let r = pI(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;return r = Math.max(0, Math.min(r, i)), {...n,pageIndex: r@@ -43950,13 +43941,13 @@ var Cge = { createTable: (e) => {});}, e.resetPageIndex = (t) => {var n;- e.setPageIndex(t ? VI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? VI);+ e.setPageIndex(t ? BI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? BI);}, e.resetPageSize = (t) => {var n;- e.setPageSize(t ? HI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? HI);+ e.setPageSize(t ? VI : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? VI);}, e.setPageSize = (t) => {e.setPagination((e) => {- let n = Math.max(1, mI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);+ let n = Math.max(1, pI(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);return {...e,pageIndex: i,@@ -43964,28 +43955,28 @@ var Cge = { createTable: (e) => {};});}, e.setPageCount = (t) => e.setPagination((n) => {- let r = mI(t, e.options.pageCount ?? -1);+ let r = pI(t, e.options.pageCount ?? -1);return typeof r == "number" && (r = Math.max(-1, r)), {...n,pageCount: r};- }), e.getPageOptions = _I(() => [e.getPageCount()], (e) => {+ }), e.getPageOptions = gI(() => [e.getPageCount()], (e) => {let t = [];return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;- }, vI(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {+ }, _I(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();return n === -1 || n !== 0 && t < n - 1;}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;}-}, WI = () => ({+}, UI = () => ({top: [],bottom: []-}), Dge = {+}), Ege = {getInitialState: (e) => ({- rowPinning: WI(),+ rowPinning: UI(),...e}),- getDefaultOptions: (e) => ({ onRowPinningChange: hI("rowPinning", e) }),+ getDefaultOptions: (e) => ({ onRowPinningChange: mI("rowPinning", e) }),createRow: (e, t) => {e.pin = (n, r, i) => {let a = r ? e.getLeafRows().map((e) => {@@ -44024,7 +44015,7 @@ var Cge = { createTable: (e) => {};},createTable: (e) => {- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? WI() : e.initialState?.rowPinning ?? WI()), e.getIsSomeRowsPinned = (t) => {+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? UI() : e.initialState?.rowPinning ?? UI()), e.getIsSomeRowsPinned = (t) => {let n = e.getState().rowPinning;return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {@@ -44033,22 +44024,22 @@ var Cge = { createTable: (e) => {}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({...e,position: r- })), e.getTopRows = _I(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), vI(e.options, "debugRows", "getTopRows")), e.getBottomRows = _I(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), vI(e.options, "debugRows", "getBottomRows")), e.getCenterRows = _I(() => [+ })), e.getTopRows = gI(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), _I(e.options, "debugRows", "getTopRows")), e.getBottomRows = gI(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), _I(e.options, "debugRows", "getBottomRows")), e.getCenterRows = gI(() => [e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom], (e, t, n) => {let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);return e.filter((e) => !r.has(e.id));- }, vI(e.options, "debugRows", "getCenterRows"));+ }, _I(e.options, "debugRows", "getCenterRows"));}-}, Oge = {+}, Dge = {getInitialState: (e) => ({rowSelection: {},...e}),getDefaultOptions: (e) => ({- onRowSelectionChange: hI("rowSelection", e),+ onRowSelectionChange: mI("rowSelection", e),enableRowSelection: !0,enableMultiRowSelection: !0,enableSubRowSelection: !0@@ -44067,21 +44058,21 @@ var Cge = { createTable: (e) => {}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };return e.getRowModel().rows.forEach((t) => {- GI(i, t.id, r, !0, e);+ WI(i, t.id, r, !0, e);}), i;- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = _I(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = gI(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? GI(e, n) : {rows: [],flatRows: [],rowsById: {}- }, vI(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = _I(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {+ }, _I(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = gI(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? GI(e, n) : {rows: [],flatRows: [],rowsById: {}- }, vI(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = _I(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? KI(e, n) : {+ }, _I(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = gI(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? GI(e, n) : {rows: [],flatRows: [],rowsById: {}- }, vI(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {+ }, _I(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;}, e.getIsAllPageRowsSelected = () => {@@ -44105,17 +44096,17 @@ var Cge = { createTable: (e) => {t.setRowSelection((a) => {if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;let o = { ...a };- return GI(o, e.id, n, r?.selectChildren ?? !0, t), o;+ return WI(o, e.id, n, r?.selectChildren ?? !0, t), o;});}, e.getIsSelected = () => {let { rowSelection: n } = t.getState();- return qI(e, n);+ return KI(e, n);}, e.getIsSomeSelected = () => {let { rowSelection: n } = t.getState();- return JI(e, n) === "some";+ return qI(e, n) === "some";}, e.getIsAllSubRowsSelected = () => {let { rowSelection: n } = t.getState();- return JI(e, n) === "all";+ return qI(e, n) === "all";}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {let t = e.getCanSelect();return (n) => {@@ -44123,16 +44114,16 @@ var Cge = { createTable: (e) => {};};}-}, GI = (e, t, n, r, i) => {+}, WI = (e, t, n, r, i) => {var a;let o = i.getRow(t, !0);- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => GI(e, t.id, n, r, i));+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => WI(e, t.id, n, r, i));};-function KI(e, t) {+function GI(e, t) {let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {return e.map((e) => {var t;- let o = qI(e, n);+ let o = KI(e, n);if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {...e,subRows: a(e.subRows)@@ -44145,32 +44136,32 @@ function KI(e, t) {rowsById: i};}-function qI(e, t) {+function KI(e, t) {return t[e.id] ?? !1;}-function JI(e, t, n) {+function qI(e, t, n) {var r;if (!((r = e.subRows) != null && r.length)) return !1;let i = !0, a = !1;return e.subRows.forEach((e) => {- if (!(a && !i) && (e.getCanSelect() && (qI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {- let n = JI(e, t);+ if (!(a && !i) && (e.getCanSelect() && (KI(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {+ let n = qI(e, t);n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);}}), i ? "all" : a ? "some" : !1;}-var YI = /([0-9]+)/gm, kge = (e, t, n) => QI(ZI(e.getValue(n)).toLowerCase(), ZI(t.getValue(n)).toLowerCase()), Age = (e, t, n) => QI(ZI(e.getValue(n)), ZI(t.getValue(n))), jge = (e, t, n) => XI(ZI(e.getValue(n)).toLowerCase(), ZI(t.getValue(n)).toLowerCase()), Mge = (e, t, n) => XI(ZI(e.getValue(n)), ZI(t.getValue(n))), Nge = (e, t, n) => {+var JI = /([0-9]+)/gm, Oge = (e, t, n) => ZI(XI(e.getValue(n)).toLowerCase(), XI(t.getValue(n)).toLowerCase()), kge = (e, t, n) => ZI(XI(e.getValue(n)), XI(t.getValue(n))), Age = (e, t, n) => YI(XI(e.getValue(n)).toLowerCase(), XI(t.getValue(n)).toLowerCase()), jge = (e, t, n) => YI(XI(e.getValue(n)), XI(t.getValue(n))), Mge = (e, t, n) => {let r = e.getValue(n), i = t.getValue(n);return r > i ? 1 : r < i ? -1 : 0;-}, Pge = (e, t, n) => XI(e.getValue(n), t.getValue(n));-function XI(e, t) {+}, Nge = (e, t, n) => YI(e.getValue(n), t.getValue(n));+function YI(e, t) {return e === t ? 0 : e > t ? 1 : -1;}-function ZI(e) {+function XI(e) {return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";}-function QI(e, t) {- let n = e.split(YI).filter(Boolean), r = t.split(YI).filter(Boolean);+function ZI(e, t) {+ let n = e.split(JI).filter(Boolean), r = t.split(JI).filter(Boolean);for (; n.length && r.length;) {let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();if (isNaN(o[0])) {@@ -44184,22 +44175,22 @@ function QI(e, t) {}return n.length - r.length;}-var $I = {- alphanumeric: kge,- alphanumericCaseSensitive: Age,- text: jge,- textCaseSensitive: Mge,- datetime: Nge,- basic: Pge-}, Fge = [- dge,- Sge,+var QI = {+ alphanumeric: Oge,+ alphanumericCaseSensitive: kge,+ text: Age,+ textCaseSensitive: jge,+ datetime: Mge,+ basic: Nge+}, Pge = [+ uge,+ xge,+ gge,_ge,- vge,+ fge,pge,- mge,+ Sge,Cge,- wge,{getInitialState: (e) => ({sorting: [],@@ -44210,7 +44201,7 @@ var $I = {sortUndefined: 1}),getDefaultOptions: (e) => ({- onSortingChange: hI("sorting", e),+ onSortingChange: mI("sorting", e),isMultiSortEvent: (e) => e.shiftKey}),createColumn: (e, t) => {@@ -44218,13 +44209,13 @@ var $I = {let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;for (let t of n) {let n = t?.getValue(e.id);- if (Object.prototype.toString.call(n) === "[object Date]") return $I.datetime;- if (typeof n == "string" && (r = !0, n.split(YI).length > 1)) return $I.alphanumeric;+ if (Object.prototype.toString.call(n) === "[object Date]") return QI.datetime;+ if (typeof n == "string" && (r = !0, n.split(JI).length > 1)) return QI.alphanumeric;}- return r ? $I.text : $I.basic;+ return r ? QI.text : QI.basic;}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {if (!e) throw Error();- return gI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? $I[e.columnDef.sortingFn];+ return hI(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? QI[e.columnDef.sortingFn];}, e.toggleSorting = (n, r) => {let i = e.getNextSortingOrder(), a = n != null;t.setSorting((o) => {@@ -44261,15 +44252,15 @@ var $I = {}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());}},- hge,+ mge,+ wge,Tge,Ege,Dge,- Oge,- bge+ yge];-function Ige(e) {- let t = [...Fge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {+function Fge(e) {+ let t = [...Pge, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {...r,...e}, a = { ...e.initialState ?? {} };@@ -44295,7 +44286,7 @@ function Ige(e) {n.setState(n.initialState);},setOptions: (e) => {- let t = mI(e, n.options);+ let t = pI(e, n.options);n.options = i(t);},getState: () => n.options.state,@@ -44310,7 +44301,7 @@ function Ige(e) {if (!r && (r = n.getCoreRowModel().rowsById[e], !r)) throw Error();return r;},- _getDefaultColumnDef: _I(() => [n.options.defaultColumn], (e) => (e ??= {}, {+ _getDefaultColumnDef: gI(() => [n.options.defaultColumn], (e) => (e ??= {}, {header: (e) => {let t = e.header.column.columnDef;return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;@@ -44321,20 +44312,20 @@ function Ige(e) {},...n._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),...e- }), vI(e, "debugColumns", "_getDefaultColumnDef")),+ }), _I(e, "debugColumns", "_getDefaultColumnDef")),_getColumnDefs: () => n.options.columns,- getAllColumns: _I(() => [n._getColumnDefs()], (e) => {+ getAllColumns: gI(() => [n._getColumnDefs()], (e) => {let t = function(e, r, i) {return i === void 0 && (i = 0), e.map((e) => {- let a = uge(n, e, i, r), o = e;+ let a = lge(n, e, i, r), o = e;return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;});};return t(e);- }, vI(e, "debugColumns", "getAllColumns")),- getAllFlatColumns: _I(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), vI(e, "debugColumns", "getAllFlatColumns")),- _getAllFlatColumnsById: _I(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), vI(e, "debugColumns", "getAllFlatColumnsById")),- getAllLeafColumns: _I(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), vI(e, "debugColumns", "getAllLeafColumns")),+ }, _I(e, "debugColumns", "getAllColumns")),+ getAllFlatColumns: gI(() => [n.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), _I(e, "debugColumns", "getAllFlatColumns")),+ _getAllFlatColumnsById: gI(() => [n.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), _I(e, "debugColumns", "getAllFlatColumnsById")),+ getAllLeafColumns: gI(() => [n.getAllColumns(), n._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), _I(e, "debugColumns", "getAllLeafColumns")),getColumn: (e) => n._getAllFlatColumnsById()[e]};Object.assign(n, c);@@ -44344,8 +44335,8 @@ function Ige(e) {}return n;}-function eL() {- return (e) => _I(() => [e.options.data], (t) => {+function $I() {+ return (e) => gI(() => [e.options.data], (t) => {let n = {rows: [],flatRows: [],@@ -44354,7 +44345,7 @@ function eL() {i === void 0 && (i = 0);let o = [];for (let c = 0; c < t.length; c++) {- let l = fge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);+ let l = dge(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {var s;l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));@@ -44363,9 +44354,9 @@ function eL() {return o;};return n.rows = r(t), n;- }, vI(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));+ }, _I(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));}-function Lge(e) {+function Ige(e) {let t = [], n = (e) => {var r;t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);@@ -44376,8 +44367,8 @@ function Lge(e) {rowsById: e.rowsById};}-function tL(e) {- return (e) => _I(() => [+function eL(e) {+ return (e) => gI(() => [e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows ? void 0 : e.getState().expanded@@ -44390,7 +44381,7 @@ function tL(e) {rows: a,flatRows: o,rowsById: s- } : Lge({+ } : Ige({rows: a,flatRows: o,rowsById: s@@ -44399,32 +44390,32 @@ function tL(e) {u.flatRows.push(e), e.subRows.length && e.subRows.forEach(d);};return u.rows.forEach(d), u;- }, vI(e.options, "debugTable", "getPaginationRowModel"));+ }, _I(e.options, "debugTable", "getPaginationRowModel"));}//#endregion//#region node_modules/@tanstack/react-table/build/lib/index.mjs-function nL(e, t) {- return e ? Rge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;+function tL(e, t) {+ return e ? Lge(e) ? /*#__PURE__*/ B.createElement(e, t) : e : null;}-function Rge(e) {- return zge(e) || typeof e == "function" || Bge(e);+function Lge(e) {+ return Rge(e) || typeof e == "function" || zge(e);}-function zge(e) {+function Rge(e) {return typeof e == "function" && (() => {let t = Object.getPrototypeOf(e);return t.prototype && t.prototype.isReactComponent;})();}-function Bge(e) {+function zge(e) {return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);}-function rL(e) {+function nL(e) {let t = {state: {},onStateChange: () => {},renderFallbackValue: null,...e- }, [n] = B.useState(() => ({ current: Ige(t) })), [r, i] = B.useState(() => n.current.initialState);+ }, [n] = B.useState(() => ({ current: Fge(t) })), [r, i] = B.useState(() => n.current.initialState);return n.current.setOptions((t) => ({...t,...e,@@ -44439,7 +44430,7 @@ function rL(e) {}//#endregion//#region src/react/boardui/components/base/switch/switch.tsx-var Vge = SE({+var Bge = vE({sm: {track: "h-4 w-7",trackRadius: {@@ -44501,23 +44492,23 @@ var Vge = SE({}}});-function Hge({ state: e, size: t = "md", shape: n = "pill" }) {- let r = Vge[t];+function Vge({ state: e, size: t = "md", shape: n = "pill" }) {+ let r = Bge[t];return /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,- className: xE("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? xE("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: _E("relative shrink-0 transition-colors duration-200 ease", r.track, r.trackRadius[n], e.isSelected ? _E("bg-linear-to-b from-accent-500 to-accent-600", r.onShadow) : "bg-background-tertiary-default", e.isDisabled && "opacity-50", e.isFocusVisible && "ring-2 ring-border-focus-ring ring-offset-2"),children: /* @__PURE__ */ (0, V.jsx)("span", {- className: xE("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),- children: /* @__PURE__ */ (0, V.jsx)("span", { className: xE("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: _E("absolute flex items-center justify-center", "bg-linear-to-b from-control-indicator-background from-[43.837%] to-control-indicator-background-subtle", "shadow-[0_3px_3px_0_rgb(0_0_0/0.03),0_0.75px_0_0_rgb(0_0_0/0.05)]", "transition-transform duration-200 ease", r.thumb, r.thumbRadius[n], r.offset, e.isSelected && r.travel),+ children: /* @__PURE__ */ (0, V.jsx)("span", { className: _E("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 iL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {- return /* @__PURE__ */ (0, V.jsx)(jse, {+function rL({ className: e, children: t, size: n = "md", shape: r = "pill", ref: i, ...a }) {+ return /* @__PURE__ */ (0, V.jsx)(kse, {ref: i,...a,- className: (t) => xE("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),- children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Hge, {+ className: (t) => _E("group inline-flex items-center gap-2 select-none", t.isDisabled ? "cursor-not-allowed" : "cursor-pointer", typeof e == "function" ? e(t) : e),+ children: (e) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Vge, {state: e,size: n,shape: r@@ -44529,8 +44520,8 @@ function iL({ className: e, children: t, size: n = "md", shape: r = "pill", ref:}//#endregion//#region src/react/components/legacy-avatar.ts-var aL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Uge = "输入女优名,到 JavDB 找她的演员页";-function Wge(e, t) {+var iL = "[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:max-w-none [&_img]:max-h-none [&_img]:object-cover", Hge = "输入女优名,到 JavDB 找她的演员页";+function Uge(e, t) {let n = /* @__PURE__ */ new Map();for (let r of e.candidates) t.has(r.id) && r.held_by && n.set(r.held_by.id, r.held_by.name);if (n.size > 1) return {@@ -44549,10 +44540,10 @@ function Wge(e, t) {blocked: !1};}-function Gge({ card: e, picked: t, onPick: n }) {+function Wge({ card: e, picked: t, onPick: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(UM, {+ children: [/* @__PURE__ */ (0, V.jsx)(BM, {isSelected: t,onChange: n,children: /* @__PURE__ */ (0, V.jsxs)("span", {@@ -44562,7 +44553,7 @@ function Gge({ card: e, picked: t, onPick: n }) {className: "min-w-0 break-words",children: e.names.join("、")}),- e.record ? /* @__PURE__ */ (0, V.jsx)(wE, {+ e.record ? /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "neutral",children: e.record@@ -44573,16 +44564,16 @@ function Gge({ card: e, picked: t, onPick: n }) {}) : null]})- }), /* @__PURE__ */ (0, V.jsx)(zk, {+ }), /* @__PURE__ */ (0, V.jsx)(Ik, {href: e.url,children: e.id})]});}-function Kge({ readOnly: e, toast: t, onAdded: n }) {- let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = NE(), u = () => {+function Gge({ readOnly: e, toast: t, onAdded: n }) {+ let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(/* @__PURE__ */ new Set()), l = kE(), u = () => {let t = r.trim();- !t || e || l.run("lookup", (e) => Yme(t, e), (e) => {+ !t || e || l.run("lookup", (e) => Jme(t, e), (e) => {o(e), c(new Set(e.suggested));});}, d = (e) => {@@ -44590,12 +44581,12 @@ function Kge({ readOnly: e, toast: t, onAdded: n }) {}, f = () => {o(null), c(/* @__PURE__ */ new Set()), l.setError("");}, p = () => {- a && l.run("follow", (e) => Xme(a.q, [...s], e), (e) => {+ a && l.run("follow", (e) => Yme(a.q, [...s], e), (e) => {t(e.created ? `已新建「${e.entity_name}」并订阅她的新作` : `已订阅「${e.entity_name}」的新作`), i(""), f(), n();});- }, m = a ? Wge(a, s) : null;+ }, m = a ? Uge(a, s) : null;return /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -44608,11 +44599,11 @@ function Kge({ readOnly: e, toast: t, onAdded: n }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-64 grow",- children: /* @__PURE__ */ (0, V.jsx)(bk, {+ children: /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "女优名",- placeholder: Uge,+ placeholder: Hge,value: r,- leadingIcon: kT,+ leadingIcon: TT,isDisabled: e,onChange: i,onKeyDown: d@@ -44633,16 +44624,16 @@ function Kge({ readOnly: e, toast: t, onAdded: n }) {a ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "JavDB 上的演员卡" }),- a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Gge, {+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "JavDB 上的演员卡" }),+ a.candidates.length ? a.candidates.map((e) => /* @__PURE__ */ (0, V.jsx)(Wge, {card: e,picked: s.has(e.id),onPick: (t) => c((n) => {let r = new Set(n);return t ? r.add(e.id) : r.delete(e.id), r;})- }, e.id)) : /* @__PURE__ */ (0, V.jsx)(Ik, { children: "JavDB 上没有搜到这个名字。" }),- a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(Ik, {+ }, e.id)) : /* @__PURE__ */ (0, V.jsx)(Nk, { children: "JavDB 上没有搜到这个名字。" }),+ a.candidates.length ? /* @__PURE__ */ (0, V.jsx)(Nk, {role: "status",children: s.size ? m.text : "勾选她的演员卡;有碼与無碼两条记录都是她的话,两张都勾。"}) : null,@@ -44669,19 +44660,19 @@ function Kge({ readOnly: e, toast: t, onAdded: n }) {}//#endregion//#region src/react/follow-manage/source-list.tsx-var qge = Object.fromEntries(Object.entries(ZP).map(([e, t]) => [t, e])), oL = 740;-function Jge() {+var Kge = Object.fromEntries(Object.entries(XP).map(([e, t]) => [t, e])), aL = 740;+function qge() {let [e, t] = (0, B.useState)(!1), n = (0, B.useRef)(null), r = (0, B.useCallback)((e) => {if (n.current?.disconnect(), !e) {n.current = null;return;}- let r = new ResizeObserver(() => t(e.clientWidth < oL));- r.observe(e), n.current = r, t(e.clientWidth < oL);+ let r = new ResizeObserver(() => t(e.clientWidth < aL));+ r.observe(e), n.current = r, t(e.clientWidth < aL);}, []);return (0, B.useEffect)(() => () => n.current?.disconnect(), []), [r, e];}-var Yge = {+var Jge = {select: "选择",author: "创作者",source: "来源",@@ -44690,7 +44681,7 @@ var Yge = {checked: "上次检查",actions: "操作"};-function sL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {+function oL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {"aria-label": r,className: "flex flex-wrap items-center justify-center gap-2",@@ -44704,7 +44695,7 @@ function sL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {}),/* @__PURE__ */ (0, V.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: pj(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: uj(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -44727,22 +44718,22 @@ function sL({ page: e, pages: t, onPage: n, label: r = "关注列表分页" }) {]});}-function Xge({ source: e, selected: t, onToggle: n, handlers: r }) {+function Yge({ source: e, selected: t, onToggle: n, handlers: r }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-selected": t || void 0,className: "flex min-h-16 flex-wrap items-center gap-3 px-2 py-3",onClick: (e) => {- GM(e, e.currentTarget) && n(!t);+ HM(e, e.currentTarget) && n(!t);},children: [- /* @__PURE__ */ (0, V.jsx)(UM, {+ /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: t,onChange: n,"aria-label": `选择 ${e.label}`}),/* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 grow flex-col gap-0.5",- children: [/* @__PURE__ */ (0, V.jsx)(cI, { source: e }), e.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {+ children: [/* @__PURE__ */ (0, V.jsx)(sI, { source: e }), e.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {className: "text-caption-1-regular text-text-error-primary",children: e.last_error}) : null]@@ -44750,17 +44741,17 @@ function Xge({ source: e, selected: t, onToggle: n, handlers: r }) {/* @__PURE__ */ (0, V.jsx)("span", {className: "flex shrink-0 items-center gap-1.5 text-body-2-regular text-text-secondary",title: e.provider_label,- children: /* @__PURE__ */ (0, V.jsx)(aI, {+ children: /* @__PURE__ */ (0, V.jsx)(iI, {provider: e.provider,label: e.provider_label})}),- /* @__PURE__ */ (0, V.jsx)(sI, { source: e }),+ /* @__PURE__ */ (0, V.jsx)(oI, { source: e }),/* @__PURE__ */ (0, V.jsx)("span", {className: "shrink-0 text-body-2-regular whitespace-nowrap text-text-secondary",- children: wF(e)+ children: CF(e)}),- /* @__PURE__ */ (0, V.jsx)(iL, {+ /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": `启用 ${e.label}`,isSelected: e.enabled,isDisabled: r.readOnly,@@ -44772,7 +44763,7 @@ function Xge({ source: e, selected: t, onToggle: n, handlers: r }) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: DT,+ leadingIcon: CT,"aria-label": `检查 ${e.label} 的更新`,disabled: !e.enabled || r.readOnly,...X(r.busy),@@ -44781,7 +44772,7 @@ function Xge({ source: e, selected: t, onToggle: n, handlers: r }) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: bT,+ leadingIcon: gT,"aria-label": `移除 ${e.label}`,disabled: r.readOnly,onClick: () => r.remove(e)@@ -44790,11 +44781,11 @@ function Xge({ source: e, selected: t, onToggle: n, handlers: r }) {]});}-function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {- let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter($P).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = lF(r, c);+function Xge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a, onToggleGroup: o, onToggle: s }) {+ let c = e.map((e) => e.id), l = e.filter((e) => e.enabled).map((e) => e.id), u = e.filter(QP).length, d = [...new Set(e.map((e) => e.provider_label || e.provider))].join("、"), f = `follow-author-${e[0].id}`, p = cF(r, c);return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": `${t} 的关注来源`,- className: DE({+ className: CE({variant: "raised",padding: "none",className: "flex flex-col overflow-hidden p-2"@@ -44804,7 +44795,7 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,"data-open": n || void 0,className: "flex flex-wrap items-center gap-3 px-2 py-2.5",children: [- /* @__PURE__ */ (0, V.jsx)(oI, {+ /* @__PURE__ */ (0, V.jsx)(aI, {group: e,name: t}),@@ -44816,7 +44807,7 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: DT,+ leadingIcon: CT,"aria-label": `检查 ${t} 的全部来源`,disabled: !l.length || i.readOnly,...X(i.busy),@@ -44825,7 +44816,7 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,/* @__PURE__ */ (0, V.jsxs)("span", {className: "flex shrink-0 items-center gap-1",title: d,- children: [e.map((e) => /* @__PURE__ */ (0, V.jsx)(aI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, V.jsx)(H_, { children: `来源:${d}` })]+ children: [e.map((e) => /* @__PURE__ */ (0, V.jsx)(iI, { provider: e.provider }, e.id)), /* @__PURE__ */ (0, V.jsx)(H_, { children: `来源:${d}` })]}),u ? /* @__PURE__ */ (0, V.jsx)("span", {className: "shrink-0 text-body-2-regular text-text-error-primary",@@ -44834,7 +44825,7 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: hT,+ leadingIcon: dT,"aria-pressed": p.all ? "true" : p.some ? "mixed" : "false","aria-label": `${p.all ? "取消全选" : "全选"} ${t} 的来源`,onClick: () => o(!p.all),@@ -44845,7 +44836,7 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,size: "small","aria-expanded": n,"aria-controls": f,- leadingIcon: n ? mT : dT,+ leadingIcon: n ? uT : sT,"aria-label": `${n ? "收起" : "展开"} ${t} 的来源`,onClick: () => a(!n),children: n ? "收起" : "展开"@@ -44855,7 +44846,7 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,id: f,hidden: !n,"data-source-divider": !0,- children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(Xge, {+ children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(Yge, {source: e,handlers: i,selected: r.has(e.id),@@ -44864,37 +44855,37 @@ function Zge({ group: e, name: t, open: n, selected: r, handlers: i, onOpen: a,})]});}-function Qge(e) {- let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = Jge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Lme(g, n, r, _), [+function Zge(e) {+ let { data: t, sort: n, dir: r, page: i, layout: a, pageSize: o, selected: s, readOnly: c, onSort: l, onPage: u, onLayout: d, onPageSize: f, onSelected: p, toast: m, openFollow: h } = e, g = t.sources, _ = (0, B.useMemo)(() => t.author_aliases || [], [t.author_aliases]), v = t.counts || {}, [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = qge(), [C, w] = (0, B.useState)(""), T = (0, B.useMemo)(() => Ime(g, n, r, _), [g,n,r,_- ]), E = (0, B.useMemo)(() => Rme(T, n, r, _), [+ ]), E = (0, B.useMemo)(() => Lme(T, n, r, _), [T,n,r,_- ]), { job: D, running: O, outcome: k, start: A } = zM({- queryKey: Ome,- queryFn: ({ signal: e }) => Bme(e),- start: (e) => pF(e),+ ]), { job: D, running: O, outcome: k, start: A } = IM({+ queryKey: Dme,+ queryFn: ({ signal: e }) => zme(e),+ start: (e) => fF(e),onError: (e) => w(W(e)),onFinish: (e) => {- CF(), m(e.status === "failed" ? e.error || "检查失败" : Qme(e));+ SF(), m(e.status === "failed" ? e.error || "检查失败" : Zme(e));}}), j = (e) => {O || A.isPending || (w(""), A.mutate(e));- }, M = (e, t) => p(uF(s, [e], t)), N = (e, t) => p(uF(s, e, t)), P = kS({- mutationFn: (e) => hF(e),+ }, M = (e, t) => p(lF(s, [e], t)), N = (e, t) => p(lF(s, e, t)), P = OS({+ mutationFn: (e) => mF(e),onSuccess: (e, t) => {- SF([t]), p(uF(s, [t], !1)), m("已取消关注来源");+ xF([t]), p(lF(s, [t], !1)), m("已取消关注来源");},onError: (e) => w(W(e))- }), ee = kS({- mutationFn: (e) => mF(e.id, e.enabled),+ }), ee = OS({+ mutationFn: (e) => pF(e.id, e.enabled),onSuccess: (e, t) => {- xF(t.id, { enabled: t.enabled }), w("");+ bF(t.id, { enabled: t.enabled }), w("");},onError: (e) => w(W(e))}), F = (e) => void Te({@@ -44903,10 +44894,10 @@ function Qge(e) {confirmLabel: "取消关注来源",danger: !0,onConfirm: () => P.mutateAsync(e.id)- }), I = kS({+ }), I = OS({mutationFn: async (e) => {let t = await ge(e.ids, 4, async (t) => {- e.action === "remove" ? await hF(t) : await mF(t, e.action === "enabled");+ e.action === "remove" ? await mF(t) : await pF(t, e.action === "enabled");});return {...e,@@ -44915,9 +44906,9 @@ function Qge(e) {};},onSuccess: (e) => {- if (e.action === "remove") SF(e.done);- else for (let t of e.done) xF(t, { enabled: e.action === "enabled" });- p(uF(s, e.done, !1));+ if (e.action === "remove") xF(e.done);+ else for (let t of e.done) bF(t, { enabled: e.action === "enabled" });+ p(lF(s, e.done, !1));let t = e.results.filter((e) => !e.ok);if (t.length) {w(`${t.length}/${e.ids.length} 个来源未更新:${W(t[0]?.error)}`);@@ -44928,20 +44919,20 @@ function Qge(e) {m(`已${n} ${e.done.length} 个关注来源`);},onError: (e) => w(W(e))- }), te = kS({+ }), te = OS({mutationFn: async (e) => {- let t = ((await Jme()).groups || []).flatMap((e) => [+ let t = ((await qme()).groups || []).flatMap((e) => [e.primary,...e.variants,...e.duplicates]).filter((e) => e.status === "new").map((e) => e.id);return {ids: t,- failed: (await ge(t, 6, (t) => qme(t, e))).filter((e) => !e.ok)+ failed: (await ge(t, 6, (t) => Kme(t, e))).filter((e) => !e.ok)};},onSuccess: (e) => {- if (CF(), e.failed.length) {+ if (SF(), e.failed.length) {w(`批量更新 ${e.failed.length}/${e.ids.length} 项未完成`);return;}@@ -44966,12 +44957,12 @@ function Qge(e) {readOnly: c};let ie = re.current, ae = (0, B.useMemo)(() => {- let e = pI(), t = (e) => () => Yge[e] || e;+ let e = fI(), t = (e) => () => Jge[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(UM, {+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(BM, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),@@ -44983,7 +44974,7 @@ function Qge(e) {header: t("author"),cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(oI, {+ children: [/* @__PURE__ */ (0, V.jsx)(aI, {group: e.row.original.group,name: e.row.original.author}), /* @__PURE__ */ (0, V.jsx)("span", {@@ -44997,7 +44988,7 @@ function Qge(e) {header: t("source"),cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 flex-col gap-0.5",- children: [/* @__PURE__ */ (0, V.jsx)(cI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {+ children: [/* @__PURE__ */ (0, V.jsx)(sI, { source: e.row.original.source }), e.row.original.source.last_error ? /* @__PURE__ */ (0, V.jsx)("small", {className: "text-caption-1-regular text-text-error-primary",children: e.row.original.source.last_error}) : null]@@ -45008,18 +44999,18 @@ function Qge(e) {header: t("provider"),cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-1.5",- children: [/* @__PURE__ */ (0, V.jsx)(aI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]+ children: [/* @__PURE__ */ (0, V.jsx)(iI, { provider: e.row.original.source.provider }), e.row.original.source.provider_label]})}),e.display({id: "status",header: t("status"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(sI, { source: e.row.original.source })+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(oI, { source: e.row.original.source })}),e.accessor((e) => e.source.last_checked_at || "", {id: "checked",header: t("checked"),- cell: (e) => wF(e.row.original.source)+ cell: (e) => CF(e.row.original.source)}),e.display({id: "actions",@@ -45027,7 +45018,7 @@ function Qge(e) {cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-1",children: [- /* @__PURE__ */ (0, V.jsx)(iL, {+ /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": `启用 ${e.row.original.source.label}`,isSelected: e.row.original.source.enabled,isDisabled: ie.readOnly,@@ -45037,7 +45028,7 @@ function Qge(e) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: DT,+ leadingIcon: CT,"aria-label": `检查 ${e.row.original.source.label} 的更新`,disabled: !e.row.original.source.enabled || ie.readOnly,...X(ie.busy),@@ -45047,7 +45038,7 @@ function Qge(e) {variant: "secondary",size: "small",iconOnly: !0,- leadingIcon: bT,+ leadingIcon: gT,"aria-label": `移除 ${e.row.original.source.label}`,disabled: ie.readOnly,onClick: () => re.current.remove(e.row.original.source)@@ -45057,12 +45048,12 @@ function Qge(e) {})];}, [ie]), oe = (0, B.useMemo)(() => {- let e = qge[n];+ let e = Kge[n];return e ? [{id: e,desc: r === "desc"}] : [];- }, [n, r]), se = (0, B.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ce = a === "table", le = cF(ce ? E.length : T.length, o, i), ue = rL({+ }, [n, r]), se = (0, B.useMemo)(() => Object.fromEntries([...s].map((e) => [String(e), !0])), [s]), ce = a === "table", le = sF(ce ? E.length : T.length, o, i), ue = nL({data: E,columns: ae,getRowId: (e) => String(e.source.id),@@ -45079,7 +45070,7 @@ function Qge(e) {onSortingChange: (e) => {let t = (typeof e == "function" ? e(oe) : e)[0];if (!t) return;- let n = ZP[t.id];+ let n = XP[t.id];n && l(n, t.desc ? "desc" : "asc");},onRowSelectionChange: (e) => {@@ -45093,11 +45084,11 @@ function Qge(e) {}, n = typeof e == "function" ? e(t) : e;n.pageSize === o ? n.pageIndex !== t.pageIndex && u(n.pageIndex + 1) : f(n.pageSize);},- getCoreRowModel: eL(),- getPaginationRowModel: tL()- }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = lF(s, de), pe = [...s], me = $me(k), R = ehe(k), he = T.length > 0 && y.size >= T.length;+ getCoreRowModel: $I(),+ getPaginationRowModel: eL()+ }), L = ue.getRowModel().rows, de = ce ? L.map((e) => e.original.source.id) : T.slice(le.start, le.end).flatMap((e) => e.map((e) => e.id)), fe = cF(s, de), pe = [...s], me = Qme(k), R = $me(k), he = T.length > 0 && y.size >= T.length;return g.length ? /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -45116,7 +45107,7 @@ function Qge(e) {}),/* @__PURE__ */ (0, V.jsx)(J, {variant: "primary",- leadingIcon: DT,+ leadingIcon: CT,disabled: c,"aria-label": "检查全部",iconOnly: S,@@ -45131,28 +45122,28 @@ function Qge(e) {children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "ghost",iconOnly: !0,- leadingIcon: gae,- "aria-label": YP[0][1],+ leadingIcon: mae,+ "aria-label": JP[0][1],"aria-pressed": !ce,onClick: () => d("default")}), /* @__PURE__ */ (0, V.jsx)(J, {variant: "ghost",iconOnly: !0,- leadingIcon: yae,- "aria-label": YP[1][1],+ leadingIcon: _ae,+ "aria-label": JP[1][1],"aria-pressed": ce,onClick: () => d("table")})]}),- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "关注列表排序",selectedKey: n,onSelectionChange: (e) => {if (e === null) return;let t = String(e);- l(t, IP[t]);+ l(t, FP[t]);},- children: FP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: PP.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: t}, e))@@ -45160,14 +45151,14 @@ function Qge(e) {/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",iconOnly: !0,- leadingIcon: r === "asc" ? nae : tae,- "aria-label": Fme(n, r),+ leadingIcon: r === "asc" ? eae : $ie,+ "aria-label": Pme(n, r),onClick: () => l(n, r === "asc" ? "desc" : "asc")}),ce ? null : /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",iconOnly: S,- leadingIcon: he ? dT : mT,+ leadingIcon: he ? sT : uT,"aria-label": he ? "全部展开" : "全部收起",onClick: () => b(he ? /* @__PURE__ */ new Set() : new Set(T.map((e) => String(e[0].author_key || e[0].id)))),children: he ? "全部展开" : "全部收起"@@ -45178,7 +45169,7 @@ function Qge(e) {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",children: [- O ? /* @__PURE__ */ (0, V.jsx)(FM, {+ O ? /* @__PURE__ */ (0, V.jsx)(MM, {embedded: !0,label: D?.message || (D?.total ? `${D.older ? "抓取历史" : "检查更新"}:已完成 ${D.checked || 0}/${D.total} 个来源` : "正在准备检查任务"),value: D?.checked,@@ -45264,10 +45255,10 @@ function Qge(e) {})]}),- ce ? /* @__PURE__ */ (0, V.jsx)(KM, {+ ce ? /* @__PURE__ */ (0, V.jsx)(UM, {follow: !0,onRowClick: (e) => M(Number(e), !s.has(Number(e))),- children: /* @__PURE__ */ (0, V.jsxs)(WM, {+ children: /* @__PURE__ */ (0, V.jsxs)(VM, {"aria-label": "关注来源",size: "sm",sortDescriptor: oe[0] ? {@@ -45278,9 +45269,9 @@ function Qge(e) {id: String(e.column),desc: e.direction === "descending"}]),- children: [/* @__PURE__ */ (0, V.jsx)(ek, { children: ue.getHeaderGroups()[0].headers.map((e) => {- let t = e.column.id in ZP, n = nL(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, V.jsx)(tk, {+ children: [/* @__PURE__ */ (0, V.jsx)(XO, { children: ue.getHeaderGroups()[0].headers.map((e) => {+ let t = e.column.id in XP, n = tL(e.column.columnDef.header, e.getContext());+ return /* @__PURE__ */ (0, V.jsx)(ZO, {id: e.id,allowsSorting: t,isRowHeader: e.column.id === "source",@@ -45289,20 +45280,20 @@ function Qge(e) {children: [n, /* @__PURE__ */ (0, V.jsx)("span", {"data-sort-indicator": !0,"data-direction": e || void 0,- children: /* @__PURE__ */ (0, V.jsx)(xce, {})+ children: /* @__PURE__ */ (0, V.jsx)(vce, {})})]}) : /* @__PURE__ */ (0, V.jsx)(H_, { children: n })}, e.id);- }) }), /* @__PURE__ */ (0, V.jsx)(rk, {+ }) }), /* @__PURE__ */ (0, V.jsx)($O, {renderEmptyState: () => "这一页没有来源",- children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(ok, {+ children: L.map((e) => /* @__PURE__ */ (0, V.jsx)(nk, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(ck, { children: nL(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(ik, { children: tL(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id))})]})- }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(UM, {+ }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(BM, {isSelected: fe.all,isIndeterminate: fe.some,onChange: (e) => N(de, e),@@ -45312,9 +45303,9 @@ function Qge(e) {className: "flex flex-col gap-3",children: T.slice(le.start, le.end).map((e) => {let t = String(e[0].author_key || e[0].id);- return /* @__PURE__ */ (0, V.jsx)(Zge, {+ return /* @__PURE__ */ (0, V.jsx)(Xge, {group: e,- name: iF(e, _),+ name: rF(e, _),handlers: ie,selected: s,open: !y.has(t),@@ -45334,19 +45325,19 @@ function Qge(e) {className: "text-body-2-regular text-text-secondary",children: `${le.start + 1}–${le.end} / ${le.total} ${ce ? "个来源" : "位创作者"}`}),- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(o),onSelectionChange: (e) => {e !== null && ue.setPageSize(Number(e));},- children: XP.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: YP.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: String(e),children: `每页 ${e} ${ce ? "条" : "位"}`}, e))}),- /* @__PURE__ */ (0, V.jsx)(sL, {+ /* @__PURE__ */ (0, V.jsx)(oL, {page: le.page,pages: le.pages,onPage: (e) => ue.setPageIndex(e - 1)@@ -45395,11 +45386,11 @@ function Qge(e) {]}) : null]- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: OT,+ icon: wT,title: "还没有关注来源",- actions: /* @__PURE__ */ (0, V.jsx)(EE, {+ actions: /* @__PURE__ */ (0, V.jsx)(SE, {variant: "primary",size: "small",href: "/follow-manage?tab=add",@@ -45410,7 +45401,7 @@ function Qge(e) {}//#endregion//#region src/react/follow-manage/feed-sources.tsx-var $ge = {+var Qge = {select: "选择",name: "名称",kind: "类型",@@ -45420,33 +45411,33 @@ var $ge = {fetched: "上次拉取",fresh: "上次新增",actions: "操作"-}, e_e = /* @__PURE__ */ new Set(["select", "actions"]), cL = () => z.invalidateQueries({- queryKey: JP,+}, $ge = /* @__PURE__ */ new Set(["select", "actions"]), sL = () => z.invalidateQueries({+ queryKey: qP,exact: !0-}), lL = (e) => e.name || e.url, t_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;-function n_e(e) {+}), cL = (e) => e.name || e.url, e_e = (e) => e >= 60 ? `每 ${Math.round(e / 60)} 小时` : `每 ${e} 分钟`;+function t_e(e) {try {return new URL(e).hostname.replace(/^www\./, "");} catch {return e;}}-function r_e({ source: e }) {- return e.last_error ? /* @__PURE__ */ (0, V.jsx)(wE, {+function n_e({ source: e }) {+ return e.last_error ? /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "rose",children: "拉取失败"- }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(wE, {+ }) : e.enabled ? /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "lime",children: "正常"- }) : /* @__PURE__ */ (0, V.jsx)(wE, {+ }) : /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "neutral",children: "已暂停"});}-function i_e({ source: e }) {+function r_e({ source: e }) {let t = e.entity_id ? {id: e.entity_id,has_image: !!e.has_image,@@ -45455,31 +45446,31 @@ function i_e({ source: e }) {} : null;return /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${aL}`,- dangerouslySetInnerHTML: { __html: w(lL(e), t, null, "performer") }+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-semibold text-text-secondary ${iL}`,+ dangerouslySetInnerHTML: { __html: w(cL(e), t, null, "performer") }});}-var a_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";-function o_e(e) {+var i_e = (e, t) => e.entity_id !== null && t.has(e.entity_id) && e.page_name && e.page_name !== e.name ? e.page_name : "";+function a_e(e) {let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();for (let { entity_id: r } of e) r !== null && (t.has(r) ? n.add(r) : t.add(r));return n;}-function uL(e, t) {+function lL(e, t) {let n = e.length === 1 ? e[0] : null;return Te({title: n ? "移除订阅源" : `移除 ${e.length} 条订阅源`,- body: n ? `将移除订阅源「${lL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",+ body: n ? `将移除订阅源「${cL(n)}」,之后不再拉取它的新作;已经拉到的新作保留。` : "将移除所选订阅源,之后不再拉取它们的新作;已经拉到的新作保留。",confirmLabel: n ? "移除订阅源" : "移除所选订阅源",danger: !0,onConfirm: t});}-function s_e({ readOnly: e, toast: t }) {- let n = ES({- queryKey: JP,- queryFn: ({ signal: e }) => _F(e)- }), r = NE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = cF(a.length, u, c);+function o_e({ readOnly: e, toast: t }) {+ let n = TS({+ queryKey: qP,+ queryFn: ({ signal: e }) => gF(e)+ }), r = kE(), i = n.data, a = (0, B.useMemo)(() => i?.sources ?? [], [i]), [o, s] = (0, B.useState)(/* @__PURE__ */ new Set()), [c, l] = (0, B.useState)(1), [u, d] = (0, B.useState)(20), f = sF(a.length, u, c);(0, B.useEffect)(() => {l((e) => Math.min(e, f.pages));}, [f.pages]), (0, B.useEffect)(() => {@@ -45488,10 +45479,10 @@ function s_e({ readOnly: e, toast: t }) {return n.size === e.size ? e : n;});}, [a]);- let p = kS({+ let p = OS({mutationFn: async (e) => {let t = await ge(e.ids, 4, async (t) => {- e.action === "remove" ? await yF(t) : await vF(t, e.action === "enabled");+ e.action === "remove" ? await vF(t) : await _F(t, e.action === "enabled");});return {...e,@@ -45500,13 +45491,13 @@ function s_e({ readOnly: e, toast: t }) {},onSuccess: (e) => {let n = e.results.filter((e) => !e.ok), i = e.ids.length - n.length;- if (s(/* @__PURE__ */ new Set()), cL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {+ if (s(/* @__PURE__ */ new Set()), sL(), e.action === "remove" && i && t(`已移除 ${i} 条订阅源`), n.length) {let e = n[0];r.setError(`${n.length} 条没有写入:${e.ok ? "" : W(e.error)}`);}},onError: (e) => r.setError(W(e))- }), m = (0, B.useMemo)(() => o_e(a), [a]), h = (0, B.useRef)({+ }), m = (0, B.useMemo)(() => a_e(a), [a]), h = (0, B.useRef)({readOnly: e,shared: m,busy: null,@@ -45518,34 +45509,34 @@ function s_e({ readOnly: e, toast: t }) {readOnly: e,shared: m,busy: r.busy,- toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => vF(e.id, t, n), () => void cL()),- fetch: (e) => void r.run(`check-${e.id}`, (t) => bF(t, [e.id]), () => void cL()),- remove: (e) => void uL([e], async () => {- await yF(e.id), t(`已移除订阅源「${lL(e)}」`), cL();+ toggle: (e, t) => void r.run(`enabled-${e.id}`, (n) => _F(e.id, t, n), () => void sL()),+ fetch: (e) => void r.run(`check-${e.id}`, (t) => yF(t, [e.id]), () => void sL()),+ remove: (e) => void lL([e], async () => {+ await vF(e.id), t(`已移除订阅源「${cL(e)}」`), sL();})};let g = (0, B.useMemo)(() => {- let e = pI(), t = (e) => () => $ge[e] || e;+ let e = fI(), t = (e) => () => Qge[e] || e;return [e.display({id: "select",header: t("select"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(UM, {+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(BM, {slot: null,isSelected: e.row.getIsSelected(),onChange: (t) => e.row.toggleSelected(t),- "aria-label": `选择 ${lL(e.row.original)}`+ "aria-label": `选择 ${cL(e.row.original)}`})}),- e.accessor(lL, {+ e.accessor(cL, {id: "name",header: t("name"),cell: (e) => {- let t = a_e(e.row.original, h.current.shared);+ let t = i_e(e.row.original, h.current.shared);return /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-2 whitespace-nowrap text-body-medium text-text-primary",children: [- /* @__PURE__ */ (0, V.jsx)(i_e, { source: e.row.original }),+ /* @__PURE__ */ (0, V.jsx)(r_e, { source: e.row.original }),e.getValue(),t ? /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -45573,15 +45564,15 @@ function s_e({ readOnly: e, toast: t }) {rel: "noreferrer noopener",title: "打开来源页面",className: "text-text-primary underline-offset-2 hover:underline",- children: n_e(e.getValue())+ children: t_e(e.getValue())})}),e.display({id: "status",header: t("status"),- cell: (e) => /* @__PURE__ */ (0, V.jsx)(r_e, { source: e.row.original })+ cell: (e) => /* @__PURE__ */ (0, V.jsx)(n_e, { source: e.row.original })}),- e.accessor((e) => t_e(e.interval_minutes), {+ e.accessor((e) => e_e(e.interval_minutes), {id: "interval",header: t("interval"),cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {@@ -45589,7 +45580,7 @@ function s_e({ readOnly: e, toast: t }) {children: e.getValue()})}),- e.accessor((e) => e.last_fetched_at ? gj(e.last_fetched_at) : "还没拉过", {+ e.accessor((e) => e.last_fetched_at ? pj(e.last_fetched_at) : "还没拉过", {id: "fetched",header: t("fetched"),cell: (e) => /* @__PURE__ */ (0, V.jsx)("span", {@@ -45611,8 +45602,8 @@ function s_e({ readOnly: e, toast: t }) {cell: (e) => /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex items-center gap-1",children: [- /* @__PURE__ */ (0, V.jsx)(iL, {- "aria-label": `启用 ${lL(e.row.original)}`,+ /* @__PURE__ */ (0, V.jsx)(rL, {+ "aria-label": `启用 ${cL(e.row.original)}`,isSelected: e.row.original.enabled,isDisabled: h.current.readOnly,onChange: (t) => h.current.toggle(e.row.original, t)@@ -45621,8 +45612,8 @@ function s_e({ readOnly: e, toast: t }) {variant: "secondary",size: "xs",iconOnly: !0,- leadingIcon: DT,- "aria-label": `拉取 ${lL(e.row.original)}`,+ leadingIcon: CT,+ "aria-label": `拉取 ${cL(e.row.original)}`,disabled: h.current.readOnly,...X(h.current.busy === `check-${e.row.original.id}`),onClick: () => h.current.fetch(e.row.original)@@ -45631,8 +45622,8 @@ function s_e({ readOnly: e, toast: t }) {variant: "secondary",size: "xs",iconOnly: !0,- leadingIcon: bT,- "aria-label": `移除 ${lL(e.row.original)}`,+ leadingIcon: gT,+ "aria-label": `移除 ${cL(e.row.original)}`,disabled: h.current.readOnly,onClick: () => h.current.remove(e.row.original)})@@ -45640,7 +45631,7 @@ function s_e({ readOnly: e, toast: t }) {})})];- }, []), _ = (0, B.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = rL({+ }, []), _ = (0, B.useMemo)(() => Object.fromEntries([...o].map((e) => [String(e), !0])), [o]), v = nL({data: a,columns: g,getRowId: (e) => String(e.id),@@ -45656,27 +45647,27 @@ function s_e({ readOnly: e, toast: t }) {let t = typeof e == "function" ? e(_) : e;s(new Set(Object.entries(t).filter(([, e]) => e).map(([e]) => Number(e))));},- getCoreRowModel: eL(),- getPaginationRowModel: tL()+ getCoreRowModel: $I(),+ getPaginationRowModel: eL()});if (!i) return n.error ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "打不开订阅源",children: W(n.error)- }) : /* @__PURE__ */ (0, V.jsx)(Ik, { children: "正在读订阅源。" });- let y = () => void r.run("check", (e) => bF(e), () => void cL()), b = (e) => s((t) => {+ }) : /* @__PURE__ */ (0, V.jsx)(Nk, { children: "正在读订阅源。" });+ let y = () => void r.run("check", (e) => yF(e), () => void sL()), b = (e) => s((t) => {let n = new Set(t);return n.has(e) ? n.delete(e) : n.add(e), n;}), x = a.filter((e) => o.has(e.id)), S = a.filter((e) => e.last_error);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",- children: [/* @__PURE__ */ (0, V.jsx)(Kge, {+ children: [/* @__PURE__ */ (0, V.jsx)(Gge, {readOnly: e,toast: t,- onAdded: () => void cL()+ onAdded: () => void sL()}), /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": "JAV 订阅列表",- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -45704,9 +45695,9 @@ function s_e({ readOnly: e, toast: t }) {className: "flex flex-col gap-3",children: [S.map((e) => /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",- title: `${lL(e)} 拉取失败`,+ title: `${cL(e)} 拉取失败`,children: e.last_error- }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: r.error }) : null]+ }, e.id)), r.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: r.error }) : null]}) : null,/* @__PURE__ */ (0, V.jsxs)(tS, {visible: x.length > 0,@@ -45740,7 +45731,7 @@ function s_e({ readOnly: e, toast: t }) {size: "small",disabled: e,...X(p.isPending),- onClick: () => void uL(x, () => p.mutateAsync({+ onClick: () => void lL(x, () => p.mutateAsync({ids: x.map((e) => e.id),action: "remove"})),@@ -45754,26 +45745,26 @@ function s_e({ readOnly: e, toast: t }) {})]}),- a.length ? /* @__PURE__ */ (0, V.jsx)(KM, {+ a.length ? /* @__PURE__ */ (0, V.jsx)(UM, {onRowClick: (e) => b(Number(e)),- children: /* @__PURE__ */ (0, V.jsxs)(WM, {+ children: /* @__PURE__ */ (0, V.jsxs)(VM, {"aria-label": "JAV 订阅源",size: "sm",- children: [/* @__PURE__ */ (0, V.jsx)(ek, { children: v.getHeaderGroups()[0].headers.map((e) => {- let t = nL(e.column.columnDef.header, e.getContext());- return /* @__PURE__ */ (0, V.jsx)(tk, {+ children: [/* @__PURE__ */ (0, V.jsx)(XO, { children: v.getHeaderGroups()[0].headers.map((e) => {+ let t = tL(e.column.columnDef.header, e.getContext());+ return /* @__PURE__ */ (0, V.jsx)(ZO, {id: e.id,isRowHeader: e.column.id === "name",- children: e_e.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t+ children: $ge.has(e.column.id) ? /* @__PURE__ */ (0, V.jsx)(H_, { children: t }) : t}, e.id);- }) }), /* @__PURE__ */ (0, V.jsx)(rk, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(ok, {+ }) }), /* @__PURE__ */ (0, V.jsx)($O, { children: v.getRowModel().rows.map((e) => /* @__PURE__ */ (0, V.jsx)(nk, {id: e.id,"data-follow-selected": e.getIsSelected() || void 0,- children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(ck, { children: nL(e.column.columnDef.cell, e.getContext()) }, e.id))+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ (0, V.jsx)(ik, { children: tL(e.column.columnDef.cell, e.getContext()) }, e.id))}, e.id)) })]})- }) : /* @__PURE__ */ (0, V.jsx)(OE, {- icon: OT,+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: wT,title: "还没有订阅源",shell: "plain",children: "在上面按女优名添加,或在人物页点「订阅新作」。"@@ -45785,19 +45776,19 @@ function s_e({ readOnly: e, toast: t }) {className: "text-body-2-regular text-text-secondary",children: `${f.start + 1}–${f.end} / ${f.total} 个订阅源`}),- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "每页显示数量",size: "sm",selectedKey: String(u),onSelectionChange: (e) => {e !== null && (d(Number(e)), l(1));},- children: XP.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: YP.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: String(e),children: `每页 ${e} 条`}, e))}),- /* @__PURE__ */ (0, V.jsx)(sL, {+ /* @__PURE__ */ (0, V.jsx)(oL, {label: "JAV 订阅分页",page: f.page,pages: f.pages,@@ -45819,29 +45810,29 @@ function s_e({ readOnly: e, toast: t }) {}//#endregion//#region src/react/wants/resource-cache.ts-var dL = "peach.want-resources.v1", fL = 864e5;-function pL(e, t = Date.now()) {+var uL = "peach.want-resources.v1", dL = 864e5;+function fL(e, t = Date.now()) {let n = Date.parse(e || ""), r = new Date(t), i = new Date(Date.UTC(r.getFullYear(), r.getMonth(), r.getDate())), a = i.getUTCDate();i.setUTCHours(0, 0, 0, 0), i.setUTCDate(1), i.setUTCMonth(i.getUTCMonth() - 3);let o = new Date(Date.UTC(i.getUTCFullYear(), i.getUTCMonth() + 1, 0)).getUTCDate();- return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * fL : 7 * fL;+ return i.setUTCDate(Math.min(a, o)), Number.isFinite(n) && n < i.getTime() ? 365 * dL : 7 * dL;}-function mL() {+function pL() {try {- let e = JSON.parse(localStorage.getItem(dL) || "[]");+ let e = JSON.parse(localStorage.getItem(uL) || "[]");return Array.isArray(e) ? e.filter((e) => typeof e?.code == "string" && Number.isFinite(e.saved) && e.result?.state === "ready" && Array.isArray(e.result.items)) : [];} catch {return [];}}-function c_e(e, t) {- let n = mL().find((t) => t.code === e);- return n && Date.now() - n.saved < pL(t) ? n : void 0;+function s_e(e, t) {+ let n = pL().find((t) => t.code === e);+ return n && Date.now() - n.saved < fL(t) ? n : void 0;}-function l_e(e, t) {+function c_e(e, t) {if (t.state === "ready") try {- let n = mL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");- localStorage.setItem(dL, JSON.stringify([{+ let n = pL().filter((t) => t.code !== e), r = Date.parse(t.checked_at || "");+ localStorage.setItem(uL, JSON.stringify([{code: e,saved: Number.isFinite(r) ? r : Date.now(),result: t@@ -45850,7 +45841,7 @@ function l_e(e, t) {}//#endregion//#region src/react/wants/want-magnets.tsx-function hL({ icon: e, children: t }) {+function mL({ icon: e, children: t }) {return /* @__PURE__ */ (0, V.jsxs)("span", {className: "inline-flex items-center gap-1",children: [/* @__PURE__ */ (0, V.jsx)(e, {@@ -45859,8 +45850,8 @@ function hL({ icon: e, children: t }) {}), t]});}-function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = NE(), f = uS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => c_e(e.code || "", e.release_date), [e.code, e.release_date]);+function l_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSource: a }) {+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(typeof IntersectionObserver > "u"), [l, u] = (0, B.useState)([]), d = kE(), f = lS(), p = (0, B.useRef)(!1), m = (0, B.useMemo)(() => s_e(e.code || "", e.release_date), [e.code, e.release_date]);(0, B.useEffect)(() => {if (!o.current || s) return;let e = new IntersectionObserver((t) => {@@ -45868,7 +45859,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}, { rootMargin: "100px" });return e.observe(o.current), () => e.disconnect();}, [s]);- let h = ES({+ let h = TS({queryKey: ["want-magnets",e.id,@@ -45876,15 +45867,15 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour],queryFn: async ({ signal: t }) => {let n = p.current, r = await G(`/api/wants/magnets?id=${e.id}${n ? "&refresh=1" : ""}`, t);- return p.current = n && r.state === "busy", l_e(e.code || "", r), r;+ return p.current = n && r.state === "busy", c_e(e.code || "", r), r;},initialData: m?.result,initialDataUpdatedAt: m?.saved,enabled: s,retry: !1,- staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : pL(e.release_date)) ? Infinity : 0,+ staleTime: (t) => Date.now() - t.state.dataUpdatedAt < (t.state.data?.state === "error" ? 6e4 : fL(e.release_date)) ? Infinity : 0,gcTime: 864e5,- refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : pL(e.release_date)) && "always",+ refetchOnMount: (t) => Date.now() - t.state.dataUpdatedAt >= (t.state.data?.state === "error" ? 6e4 : fL(e.release_date)) && "always",refetchOnWindowFocus: !1,refetchInterval: (e) => e.state.data?.state === "busy" && 3e3});@@ -45893,7 +45884,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}, [h.data?.source_url, a]);let g = n?.providers.find((e) => e.key === r && e.configured), _ = (r) => {t || !n?.available || !g || r.protocol !== "magnet" || d.run(r.id, async (t) => {- let n = await K($k, {+ let n = await K(Xk, {magnet: r.uri,provider: g.key,target: g.target,@@ -45904,7 +45895,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourif (!n.ok) throw Error(n.task.failure_detail || n.task.failure_label || "添加下载失败");return n;}, (e) => {- u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: eA });+ u((e) => [...e, r.id]), i(e.outcome === "submitted" ? `已添加下载:${r.name}` : `已关联现有下载:${r.name}`), f.invalidateQueries({ queryKey: Zk });});}, v = (e) => {d.run(`copy:${e.id}`, () => navigator.clipboard.writeText(e.uri), () => i("已复制链接"));@@ -45922,7 +45913,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: DT,+ leadingIcon: CT,...X(y),onClick: () => {y || (p.current = !0, h.refetch());@@ -45930,7 +45921,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourchildren: "重新查询"})]}),- y ? /* @__PURE__ */ (0, V.jsx)(kE, { label: "正在查找资源链接…" }) : null,+ y ? /* @__PURE__ */ (0, V.jsx)(TE, { label: "正在查找资源链接…" }) : null,b ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "资源链接未取得",@@ -45959,18 +45950,18 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourclassName: "flex min-w-0 flex-1 flex-col gap-1",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-wrap items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(wE, {+ children: [/* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: e.protocol === "magnet" ? "blue" : e.protocol === "ed2k" ? "purple" : "neutral",children: /* @__PURE__ */ (0, V.jsxs)("span", {className: "inline-flex items-center gap-1",- children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(Cae, {+ children: [e.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(xae, {"aria-hidden": !0,className: "size-3.5"- }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(sae, {+ }) : e.protocol === "ed2k" ? /* @__PURE__ */ (0, V.jsx)(aae, {"aria-hidden": !0,className: "size-3.5"- }) : /* @__PURE__ */ (0, V.jsx)(TT, {+ }) : /* @__PURE__ */ (0, V.jsx)(xT, {"aria-hidden": !0,className: "size-3.5"}), e.protocol === "magnet" ? "磁链" : e.protocol === "ed2k" ? "ed2k" : "网页链接"]@@ -45982,24 +45973,24 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap gap-x-3 gap-y-1 break-words text-caption-1-regular text-text-secondary",children: [- /* @__PURE__ */ (0, V.jsx)(hL, {- icon: TT,+ /* @__PURE__ */ (0, V.jsx)(mL, {+ icon: xT,children: e.source}),- /* @__PURE__ */ (0, V.jsx)(hL, {- icon: CT,+ /* @__PURE__ */ (0, V.jsx)(mL, {+ icon: yT,children: e.size || "大小未知"}),- e.files ? /* @__PURE__ */ (0, V.jsx)(hL, {- icon: cae,+ e.files ? /* @__PURE__ */ (0, V.jsx)(mL, {+ icon: oae,children: e.files.replaceAll("個", "个")}) : null,- /* @__PURE__ */ (0, V.jsx)(hL, {- icon: rae,+ /* @__PURE__ */ (0, V.jsx)(mL, {+ icon: tae,children: e.date ? `${e.source === "JavDB 评论" ? "评论" : "收录"} ${e.date}` : "日期未知"}),- e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(hL, {- icon: ET,+ e.attributes.map((e) => /* @__PURE__ */ (0, V.jsx)(mL, {+ icon: ST,children: e}, e))]@@ -46007,11 +45998,11 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 flex-wrap gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(EE, {+ /* @__PURE__ */ (0, V.jsx)(SE, {"data-button-link": "",variant: "secondary",size: "small",- trailingIcon: xT,+ trailingIcon: _T,href: e.source_url,target: "_blank",rel: "noopener noreferrer",@@ -46020,7 +46011,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: oae,+ leadingIcon: iae,...X(d.busy === `copy:${e.id}`),onClick: () => v(e),children: "复制链接"@@ -46028,7 +46019,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSoure.protocol === "magnet" ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "primary",size: "small",- leadingIcon: _T,+ leadingIcon: pT,disabled: t || !n?.available || !g || r,...X(d.busy === e.id),onClick: () => _(e),@@ -46041,7 +46032,7 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSourreturn /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",children: e.slice(0, 3)- }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(Hk, {+ }), e.length > 3 ? /* @__PURE__ */ (0, V.jsx)(zk, {summary: `更多资源(${e.length - 3} 条)`,children: /* @__PURE__ */ (0, V.jsx)("ul", {className: "flex min-w-0 flex-col gap-4",@@ -46054,41 +46045,41 @@ function u_e({ want: e, readOnly: t, downloads: n, provider: r, toast: i, onSour}//#endregion//#region src/react/wants/wants.ts-var gL = "/api/wants", _L = ["wants"], d_e = (e) => [+var hL = "/api/wants", gL = ["wants"], u_e = (e) => ["wants","follow",e-], f_e = [+], d_e = [["searching", "待找"],["unreleased", "未发售"],["given_up", "暂时放弃"],["acquired", "已入库"]-], p_e = (e) => G(gL, e), m_e = (e, t) => G(`${gL}?follow=${encodeURIComponent(e)}`, t), vL = (e, t) => K(gL, {+], f_e = (e) => G(hL, e), p_e = (e, t) => G(`${hL}?follow=${encodeURIComponent(e)}`, t), _L = (e, t) => K(hL, {action: "add",...e-}, "POST", t), yL = (e, t) => K(gL, {+}, "POST", t), vL = (e, t) => K(hL, {action: "remove",ids: e-}, "POST", t), h_e = (e, t) => K(gL, {+}, "POST", t), m_e = (e, t) => K(hL, {action: "reset",ids: e-}, "POST", t), bL = () => z.invalidateQueries({ queryKey: _L }), xL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;-function g_e(e) {+}, "POST", t), yL = () => z.invalidateQueries({ queryKey: gL }), bL = (e) => e.code || e.title || `关注条目 ${e.follow_item_id ?? e.id}`;+function h_e(e) {return e.phase === "acquired" ? e.acquired_at ? `入库于 ${e.acquired_at.slice(0, 10)}` : "已入库" : e.phase === "unreleased" ? e.release_date ? `${e.release_date} 发售` : "还没发售" : e.phase === "given_up" ? `查过 ${e.search_count} 次都没找到` : e.fresh ? "新片:查不到也一直留在待找" : e.search_count ? `查过 ${e.search_count} 次` : "还没查过";}//#endregion//#region src/react/wants/want-list.tsx-var __e = {+var g_e = {code: "手动添加",feed: "Feed 新作",follow: "关注"-}, SL = (e) => [+}, xL = (e) => [e.release_date,e.studio,e.performers,- __e[e.origin]+ g_e[e.origin]].filter(Boolean).join(" · ");-function v_e({ want: e }) {+function __e({ want: e }) {return /* @__PURE__ */ (0, V.jsxs)("span", {className: "relative inline-grid w-card-cover shrink-0 aspect-card-cover place-items-center overflow-hidden rounded-2lg bg-background-tertiary-default max-sm:w-24",children: [/* @__PURE__ */ (0, V.jsx)("span", {@@ -46104,37 +46095,37 @@ function v_e({ want: e }) {}) : null]});}-function y_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {+function v_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDownload: a, downloads: o, provider: s, toast: c }) {let [l, u] = (0, B.useState)(""), d = e.link || l || (e.code ? `https://javdb.com/search?q=${encodeURIComponent(e.code)}&f=all` : "");return /* @__PURE__ */ (0, V.jsxs)("li", {"data-want-id": e.id,- className: DE({+ className: CE({bordered: "soft",className: "flex flex-col gap-4 max-sm:p-4"}),children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-start gap-4 max-sm:gap-3",- children: [/* @__PURE__ */ (0, V.jsx)(v_e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {+ children: [/* @__PURE__ */ (0, V.jsx)(__e, { want: e }), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-1",children: [/* @__PURE__ */ (0, V.jsxs)("p", {className: "flex min-w-0 flex-wrap items-baseline gap-x-2",children: [/* @__PURE__ */ (0, V.jsx)("b", {className: "text-headline-medium text-text-primary",- children: xL(e)+ children: bL(e)}), e.code && e.title ? /* @__PURE__ */ (0, V.jsx)("span", {className: "min-w-0 truncate text-body-2-regular text-text-secondary",children: e.title}) : null]}),- SL(e) ? /* @__PURE__ */ (0, V.jsx)("p", {+ xL(e) ? /* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",- children: SL(e)+ children: xL(e)}) : null,!e.code || e.phase === "unreleased" || e.phase === "acquired" ? /* @__PURE__ */ (0, V.jsx)("p", {"data-want-note": "",className: "text-caption-1-regular text-text-secondary",- children: g_e(e)+ children: h_e(e)}) : null,e.scrape_error ? /* @__PURE__ */ (0, V.jsxs)("p", {className: "text-caption-1-regular text-text-secondary",@@ -46143,11 +46134,11 @@ function y_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo/* @__PURE__ */ (0, V.jsxs)("div", {className: "mt-1 flex flex-wrap items-center gap-2",children: [- d ? /* @__PURE__ */ (0, V.jsx)(EE, {+ d ? /* @__PURE__ */ (0, V.jsx)(SE, {"data-button-link": "",variant: "secondary",size: "small",- trailingIcon: xT,+ trailingIcon: _T,href: d,target: "_blank",rel: "noopener noreferrer",@@ -46156,7 +46147,7 @@ function y_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDoe.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: _T,+ leadingIcon: pT,disabled: t,onClick: a,children: "云下载"@@ -46172,7 +46163,7 @@ function y_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: bT,+ leadingIcon: gT,disabled: t,...X(n === `remove:${e.id}`),onClick: i,@@ -46182,7 +46173,7 @@ function y_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo})]})]- }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(u_e, {+ }), e.code && (e.phase === "searching" || e.phase === "given_up") ? /* @__PURE__ */ (0, V.jsx)(l_e, {want: e,readOnly: t,downloads: o,@@ -46192,36 +46183,36 @@ function y_e({ want: e, readOnly: t, busy: n, onReset: r, onRemove: i, onCloudDo}) : null]});}-function b_e({ readOnly: e, toast: t, cloudDownload: n }) {- let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(""), s = NE(), c = ES({- queryKey: _L,- queryFn: ({ signal: e }) => p_e(e),+function y_e({ readOnly: e, toast: t, cloudDownload: n }) {+ let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(""), s = kE(), c = TS({+ queryKey: gL,+ queryFn: ({ signal: e }) => f_e(e),refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1}), l = () => {let n = r.trim();- !n || e || s.run("add", (e) => vL({ code: n }, e), (e) => {- t(e.created ? `已加入想要:${xL(e.want)}` : `${xL(e.want)} 已经在想要里`), i(""), bL();+ !n || e || s.run("add", (e) => _L({ code: n }, e), (e) => {+ t(e.created ? `已加入想要:${bL(e.want)}` : `${bL(e.want)} 已经在想要里`), i(""), yL();});}, u = (e) => {e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), l());}, d = (e) => {- s.run(`remove:${e.id}`, (t) => yL([e.id], t), () => {- t(`已移除:${xL(e)}`), bL();+ s.run(`remove:${e.id}`, (t) => vL([e.id], t), () => {+ t(`已移除:${bL(e)}`), yL();});}, f = (e) => {- s.run(`reset:${e.id}`, (t) => h_e([e.id], t), () => {- t(`${xL(e)} 回到待找`), bL();+ s.run(`reset:${e.id}`, (t) => m_e([e.id], t), () => {+ t(`${bL(e)} 回到待找`), yL();});- }, p = c.data, m = p?.items || [], h = ES({- queryKey: eA,- queryFn: ({ signal: e }) => G(`${$k}?limit=100`, e),+ }, p = c.data, m = p?.items || [], h = TS({+ queryKey: Zk,+ queryFn: ({ signal: e }) => G(`${Xk}?limit=100`, e),enabled: m.some((e) => e.code && (e.phase === "searching" || e.phase === "given_up"))}), g = h.data?.providers.filter((e) => e.configured) || [], _ = g.find((e) => e.key === a)?.key || g[0]?.key || "";return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-8",children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-4 px-6 py-5 max-sm:px-4"}),@@ -46234,7 +46225,7 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-64 grow max-sm:min-w-0",- children: /* @__PURE__ */ (0, V.jsx)(bk, {+ children: /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "番号",placeholder: "输入番号,例如 SSIS-950",value: r,@@ -46250,7 +46241,7 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {children: "添加"})]}),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),s.error ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "这一次没有完成",@@ -46263,7 +46254,7 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {title: "想要清单读取失败",children: W(c.error)}) : null,- p?.scraping ? /* @__PURE__ */ (0, V.jsx)(Ik, {+ p?.scraping ? /* @__PURE__ */ (0, V.jsx)(Nk, {role: "status",children: "正在给刚加入的番号取资料与封面。"}) : null,@@ -46274,16 +46265,16 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {className: "text-body-medium text-text-primary",children: "下载到"}),- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "下载到",selectedKey: _,onSelectionChange: (e) => o(String(e)),- children: g.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: g.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e.key,children: e.label}, e.key))}),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: g.find((e) => e.key === _)?.target || "使用已配置的目标目录" })]}) : null,h.error ? /* @__PURE__ */ (0, V.jsx)(Y, {@@ -46299,13 +46290,13 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {tone: "neutral",children: "云下载只在账本写入端可用。"}) : null,- p && !m.length ? /* @__PURE__ */ (0, V.jsx)(OE, {+ p && !m.length ? /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: vae,+ icon: gae,title: "还没有想要的作品",children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"}) : null,- f_e.map(([r, i]) => {+ d_e.map(([r, i]) => {let a = m.filter((e) => e.phase === r);return a.length ? /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": i,@@ -46319,7 +46310,7 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {})]}), /* @__PURE__ */ (0, V.jsx)("ul", {className: "flex flex-col gap-4",- children: a.map((r) => /* @__PURE__ */ (0, V.jsx)(y_e, {+ children: a.map((r) => /* @__PURE__ */ (0, V.jsx)(v_e, {want: r,readOnly: e,busy: s.busy,@@ -46342,16 +46333,16 @@ function b_e({ readOnly: e, toast: t, cloudDownload: n }) {}//#endregion//#region src/react/follow-manage/follow-manage-page.tsx-var CL = [+var SL = [["list", "关注列表"],["add", "添加关注"],["feeds", "JAV 订阅源"],["wants", "JAV 入库"],["source", "来源和凭证"]-], wL = (e) => CL.some(([t]) => t === e);-function TL({ term: e, figure: t, unit: n }) {+], CL = (e) => SL.some(([t]) => t === e);+function wL({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {- className: DE({+ className: CE({padding: "none",className: "flex flex-col gap-3 px-6 py-5 max-sm:gap-2 max-sm:p-4"}),@@ -46367,23 +46358,23 @@ function TL({ term: e, figure: t, unit: n }) {})]});}-function x_e(e) {- let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, B.useState)(wL(e.tab) ? e.tab : "list"), [d, f] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, B.useState)(() => LP(e.sort, e.dir).sort), [h, g] = (0, B.useState)(() => LP(e.sort, e.dir).dir), [_, v] = (0, B.useState)(Mme(e.layout) ? e.layout : "default"), [y, b] = (0, B.useState)(Nme(e.pageSize)), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), C = ES({+function b_e(e) {+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, B.useState)(CL(e.tab) ? e.tab : "list"), [d, f] = (0, B.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, B.useState)(() => IP(e.sort, e.dir).sort), [h, g] = (0, B.useState)(() => IP(e.sort, e.dir).dir), [_, v] = (0, B.useState)(jme(e.layout) ? e.layout : "default"), [y, b] = (0, B.useState)(Mme(e.pageSize)), [x, S] = (0, B.useState)(/* @__PURE__ */ new Set()), C = TS({+ queryKey: GP,+ queryFn: ({ signal: e }) => uF(e)+ }), w = TS({queryKey: KP,queryFn: ({ signal: e }) => dF(e)- }), w = ES({+ }), T = TS({queryKey: qP,- queryFn: ({ signal: e }) => fF(e)- }), T = ES({- queryKey: JP,- queryFn: ({ signal: e }) => _F(e)+ queryFn: ({ signal: e }) => gF(e)}), E = C.data || { sources: [] }, D = w.data || {root: "",providers: []}, O = E.sources;(0, B.useEffect)(() => {S((e) => {- let t = zme(e, O);+ let t = Rme(e, O);return t.size === e.size ? e : t;});}, [O]);@@ -46393,10 +46384,10 @@ function x_e(e) {tab: e.tab ?? l,page: e.page ?? d,sort: n === "checked" ? "" : n,- dir: r === IP[n] ? "" : r+ dir: r === FP[n] ? "" : r});- }, A = sF(O), j = O.filter($P).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !EF(e)).length, P = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;- return /* @__PURE__ */ (0, V.jsxs)(AE, { children: [+ }, A = oF(O), j = O.filter(QP).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !TF(e)).length, P = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;+ return /* @__PURE__ */ (0, V.jsxs)(EE, { children: [o ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "warning",title: "本机只能浏览",@@ -46411,64 +46402,64 @@ function x_e(e) {children: s}) : null,/* @__PURE__ */ (0, V.jsxs)("div", {- className: vde,+ className: hde,"aria-label": "关注概览",children: [- /* @__PURE__ */ (0, V.jsx)(TL, {+ /* @__PURE__ */ (0, V.jsx)(wL, {term: "关注创作者",figure: A.length,unit: "位"}),- /* @__PURE__ */ (0, V.jsx)(TL, {+ /* @__PURE__ */ (0, V.jsx)(wL, {term: "启用来源",figure: M,unit: `/ ${O.length}`}),- /* @__PURE__ */ (0, V.jsx)(TL, {+ /* @__PURE__ */ (0, V.jsx)(wL, {term: "检查失败",figure: j,unit: "个来源"}),- /* @__PURE__ */ (0, V.jsx)(TL, {+ /* @__PURE__ */ (0, V.jsx)(wL, {term: "未看更新",figure: E.counts?.new || 0,unit: "条"}),- /* @__PURE__ */ (0, V.jsx)(TL, {+ /* @__PURE__ */ (0, V.jsx)(wL, {term: "JAV 订阅",figure: P,unit: "位"}),- /* @__PURE__ */ (0, V.jsx)(TL, {+ /* @__PURE__ */ (0, V.jsx)(wL, {term: "未看新作",figure: T.data?.unread || 0,unit: "条"})]}),- /* @__PURE__ */ (0, V.jsxs)(fk, {+ /* @__PURE__ */ (0, V.jsxs)(ck, {selectedKey: l,onSelectionChange: (e) => {let t = String(e);- wL(t) && (u(t), k({ tab: t }));+ CL(t) && (u(t), k({ tab: t }));},className: "flex flex-col gap-6",children: [- /* @__PURE__ */ (0, V.jsx)(pk, {+ /* @__PURE__ */ (0, V.jsx)(lk, {"aria-label": "关注管理区域","data-section-nav": !0,"data-section-items": !0,className: "flex max-w-full flex-nowrap overflow-x-auto",- children: CL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(mk, {+ children: SL.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(uk, {id: e,className: "cursor-pointer whitespace-nowrap",children: e === "source" && N ? `${t}(${N})` : t}, e))}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "list",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(Qge, {+ children: /* @__PURE__ */ (0, V.jsx)(Zge, {data: E,sort: p,dir: h,@@ -46498,10 +46489,10 @@ function x_e(e) {}})}),- /* @__PURE__ */ (0, V.jsxs)(hk, {+ /* @__PURE__ */ (0, V.jsxs)(dk, {id: "add",className: "flex flex-col gap-8",- children: [/* @__PURE__ */ (0, V.jsx)(Jhe, {+ children: [/* @__PURE__ */ (0, V.jsx)(qhe, {data: E,credentials: D,readOnly: o,@@ -46509,7 +46500,7 @@ function x_e(e) {openCredentials: () => {u("source"), k({ tab: "source" });}- }), /* @__PURE__ */ (0, V.jsx)(Zhe, {+ }), /* @__PURE__ */ (0, V.jsx)(Xhe, {groups: E.author_aliases || [],readOnly: o,toast: r,@@ -46517,27 +46508,27 @@ function x_e(e) {sources: E.sources})]}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "feeds",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(s_e, {+ children: /* @__PURE__ */ (0, V.jsx)(o_e, {readOnly: o,toast: r})}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "wants",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(b_e, {+ children: /* @__PURE__ */ (0, V.jsx)(y_e, {readOnly: o,toast: r,cloudDownload: a})}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "source",className: "flex flex-col gap-4",- children: /* @__PURE__ */ (0, V.jsx)(oge, {+ children: /* @__PURE__ */ (0, V.jsx)(age, {data: D,readOnly: o,toast: r@@ -46549,15 +46540,15 @@ function x_e(e) {}//#endregion//#region src/react/components/board-tabs.tsx-function EL({ value: e }) {+function TL({ value: e }) {return /* @__PURE__ */ (0, V.jsx)("span", {"data-tab-count": "",className: "ml-1.5 inline-block rounded-sm bg-text-primary/10 px-1 py-px text-caption-1-medium text-text-primary opacity-50",children: e.toLocaleString()});}-var S_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";-function DL({ tabs: e, value: t, label: n, onChange: r }) {+var x_e = "relative z-1 flex flex-none cursor-pointer items-center whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-body-regular text-text-secondary outline-none focus-visible:outline-2 focus-visible:-outline-offset-3 focus-visible:outline-border-focus-ring aria-selected:font-medium aria-selected:text-border-focus-ring max-board-narrow:px-2.25 max-board-narrow:text-body-2-regular";+function EL({ tabs: e, value: t, label: n, onChange: r }) {let i = (0, B.useRef)(null), a = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {let e = i.current;@@ -46585,14 +46576,14 @@ function DL({ tabs: e, value: t, label: n, onChange: r }) {},className: "relative mb-5.5 flex flex-none gap-1 overflow-x-auto border-b border-border-button-default max-board-narrow:gap-0",children: [e.map((e) => {- let n = e.symbol ? xA(e.symbol) : null, i = e.value === t;+ let n = e.symbol ? vA(e.symbol) : null, i = e.value === t;return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",role: "tab","data-tab": e.value,"aria-selected": i,tabIndex: i ? 0 : -1,- className: S_e,+ className: x_e,onClick: () => {i || r(e.value);},@@ -46608,23 +46599,23 @@ function DL({ tabs: e, value: t, label: n, onChange: r }) {}//#endregion//#region src/react/index/index-tags.tsx-var OL = () => /* @__PURE__ */ (0, V.jsx)("span", {+var DL = () => /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,"data-tag-dot": "",className: "size-1.75 flex-none rounded-full"});-function C_e({ tag: e, actions: t }) {+function S_e({ tag: e, actions: t }) {let n = t.picked.has(e.k);return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-alpha-tag": "","data-k": e.k,- "data-tag-cat": jN(t.online, e.cat),+ "data-tag-cat": ON(t.online, e.cat),"aria-pressed": n,onClick: () => t.press(e.k),className: "flex h-9 min-w-0 cursor-pointer items-center gap-2.25 rounded-lg px-2.5 text-left text-body-regular text-text-secondary outline-none hover:text-text-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: [- /* @__PURE__ */ (0, V.jsx)(OL, {}),+ /* @__PURE__ */ (0, V.jsx)(DL, {}),/* @__PURE__ */ (0, V.jsx)("span", {className: "min-w-0 flex-1 truncate",children: e.label@@ -46636,23 +46627,23 @@ function C_e({ tag: e, actions: t }) {]});}-function w_e({ groups: e, actions: t }) {+function C_e({ groups: e, actions: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-alphabet": "",className: "flex flex-col gap-4",children: e.map(([e, n], r) => /* @__PURE__ */ (0, V.jsxs)("section", {"data-alpha-group": r,- className: DE({+ className: CE({radius: "plain",padding: "none",className: "px-5 pt-4 pb-3"}),children: [/* @__PURE__ */ (0, V.jsxs)("h3", {className: "mb-2 flex items-center text-title-2-medium text-text-primary",- children: [e, /* @__PURE__ */ (0, V.jsx)(EL, { value: n.length })]+ children: [e, /* @__PURE__ */ (0, V.jsx)(TL, { value: n.length })]}), /* @__PURE__ */ (0, V.jsx)("div", {className: "index-tag-list gap-x-4 gap-y-0.5",- children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(C_e, {+ children: n.map((e) => /* @__PURE__ */ (0, V.jsx)(S_e, {tag: e,actions: t}, e.k))@@ -46660,8 +46651,8 @@ function w_e({ groups: e, actions: t }) {}, e))});}-var T_e = "\xA0";-function E_e({ tags: e, actions: t }) {+var w_e = "\xA0";+function T_e({ tags: e, actions: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {"data-tag-cloud": "",className: "flex flex-wrap gap-1.75",@@ -46669,11 +46660,11 @@ function E_e({ tags: e, actions: t }) {type: "button","data-tag-chip": "","data-k": e.k,- "data-tag-cat": jN(t.online, e.cat),+ "data-tag-cat": ON(t.online, e.cat),"aria-pressed": t.picked.has(e.k),onClick: () => t.press(e.k),className: "inline-flex cursor-pointer items-center rounded-lg border px-3 py-1.25 text-body-2-regular text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: [e.label + T_e, /* @__PURE__ */ (0, V.jsx)("span", {+ children: [e.label + w_e, /* @__PURE__ */ (0, V.jsx)("span", {"data-tag-n": "",className: "text-caption-1-regular opacity-60",children: e.n.toLocaleString()@@ -46681,7 +46672,7 @@ function E_e({ tags: e, actions: t }) {}, e.k))});}-var D_e = [[+var E_e = [["cloud","标签云","tags"@@ -46690,16 +46681,16 @@ var D_e = [["字母表","text-aa"]];-function O_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {- return /* @__PURE__ */ (0, V.jsx)(lA, {+function D_e({ categories: e, category: t, online: n, readout: r, letters: i, view: a, onCategory: o, onJump: s, onView: c }) {+ return /* @__PURE__ */ (0, V.jsx)(oA, {label: "标签筛选",topLabel: "标签类型",- top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(uA, {+ top: e.map(([e, r]) => /* @__PURE__ */ (0, V.jsxs)(sA, {"data-tag-pill": "",- "data-tag-cat": e === "all" ? "all" : jN(n, e),+ "data-tag-cat": e === "all" ? "all" : ON(n, e),pressed: t === e,onPress: () => o(e),- children: [/* @__PURE__ */ (0, V.jsx)(OL, {}), r]+ children: [/* @__PURE__ */ (0, V.jsx)(DL, {}), r]}, e)),bottom: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", {@@ -46718,19 +46709,19 @@ function O_e({ categories: e, category: t, online: n, readout: r, letters: i, vichildren: e}, e))}) : null,- /* @__PURE__ */ (0, V.jsx)(LO, {+ /* @__PURE__ */ (0, V.jsx)(NO, {"aria-label": "标签视图",orientation: "horizontal",value: a,onChange: (e) => c(e),- className: `ml-auto ${vA}`,- children: D_e.map(([e, t, n]) => {- let r = xA(n);- return /* @__PURE__ */ (0, V.jsx)(RO, {+ className: `ml-auto ${hA}`,+ children: E_e.map(([e, t, n]) => {+ let r = vA(n);+ return /* @__PURE__ */ (0, V.jsx)(PO, {value: e,"aria-label": t,"data-glass-segment": "",- className: yA,+ className: gA,children: /* @__PURE__ */ (0, V.jsx)("span", {title: t,className: "contents",@@ -46742,13 +46733,13 @@ function O_e({ categories: e, category: t, online: n, readout: r, letters: i, vi] })});}-function k_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {+function O_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {return /* @__PURE__ */ (0, V.jsxs)(tS, {visible: e > 0,label: "所选标签操作",count: `已选 ${e} 个标签`,children: [- /* @__PURE__ */ (0, V.jsx)(UM, {+ /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: t === "any",onChange: (e) => n(e ? "any" : "all"),children: /* @__PURE__ */ (0, V.jsxs)("span", {@@ -46780,7 +46771,7 @@ function k_e({ count: e, match: t, onMatch: n, onClear: r, onApply: i }) {}//#endregion//#region src/react/index/index-page.tsx-var A_e = [{+var k_e = [{value: "studios",label: "厂牌",symbol: "clapperboard"@@ -46788,7 +46779,7 @@ var A_e = [{value: "agencies",label: "事务所",symbol: "briefcase"-}], j_e = [{+}], A_e = [{value: "local",label: "本地",symbol: "hard-drive"@@ -46796,7 +46787,7 @@ var A_e = [{value: "online",label: "在线",symbol: "rss"-}], M_e = [+}], j_e = [{value: "performers",label: "艺人",@@ -46812,7 +46803,7 @@ var A_e = [{label: "在线",symbol: "rss"}-], N_e = {+], M_e = {people: [["big","大图 · 竖幅头像",@@ -46832,20 +46823,20 @@ var A_e = [{"layout-grid"]]};-function P_e({ kind: e, layout: t, onChange: n }) {- return /* @__PURE__ */ (0, V.jsx)(hA, {- "aria-label": `${yN[e]}索引版式`,+function N_e({ kind: e, layout: t, onChange: n }) {+ return /* @__PURE__ */ (0, V.jsx)(fA, {+ "aria-label": `${gN[e]}索引版式`,orientation: "horizontal",value: t,onChange: (e) => n(e),"data-index-layout": "",- className: `flex-none max-board-narrow:order-3 ${gA}`,- children: N_e[TN(e) ? "company" : "people"].map(([e, t, n]) => {- let r = xA(n);- return /* @__PURE__ */ (0, V.jsx)(RO, {+ className: `flex-none max-board-narrow:order-3 ${pA}`,+ children: M_e[SN(e) ? "company" : "people"].map(([e, t, n]) => {+ let r = vA(n);+ return /* @__PURE__ */ (0, V.jsx)(PO, {value: e,"aria-label": t,- className: ile,+ className: tle,children: /* @__PURE__ */ (0, V.jsx)("span", {title: t,className: "contents",@@ -46855,8 +46846,8 @@ function P_e({ kind: e, layout: t, onChange: n }) {})});}-var F_e = xA("search");-function I_e({ label: e, value: t, onQuery: n }) {+var P_e = vA("search");+function F_e({ label: e, value: t, onQuery: n }) {let [r, i] = (0, B.useState)(t), a = (0, B.useRef)(!1), o = (0, B.useRef)(void 0);(0, B.useEffect)(() => () => clearTimeout(o.current), []);let s = (e) => {@@ -46871,15 +46862,15 @@ function I_e({ label: e, value: t, onQuery: n }) {onCompositionEnd: (e) => {a.current = !1, s(e.target.value);},- children: /* @__PURE__ */ (0, V.jsx)(_k, {+ children: /* @__PURE__ */ (0, V.jsx)(mk, {"aria-label": e,value: r,onChange: (e) => {i(e), a.current || s(e);},- children: /* @__PURE__ */ (0, V.jsx)(yk, {+ children: /* @__PURE__ */ (0, V.jsx)(gk, {type: "search",- leadingIcon: F_e,+ leadingIcon: P_e,spellCheck: !1,autoComplete: "off",onKeyDown: (e) => {@@ -46889,14 +46880,14 @@ function I_e({ label: e, value: t, onQuery: n }) {})});}-function L_e(e) {- let [t, n] = (0, B.useState)(() => EN({+function I_e(e) {+ let [t, n] = (0, B.useState)(() => CN({kind: e.kind,q: e.q,scope: e.scope,view: e.view,category: e.category- })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = yN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";+ })), [r, i] = (0, B.useState)(e.layout), [a, o] = (0, B.useState)(/* @__PURE__ */ new Set()), [s, c] = (0, B.useState)("any"), l = (0, B.useRef)(null), { kind: u, q: d, scope: f, view: p, category: m } = t, h = gN[u], g = u === "tags" && f === "online", _ = u === "performers" && f === "online";(0, B.useEffect)(() => {e.selectMode || o(/* @__PURE__ */ new Set());}, [e.selectMode]);@@ -46906,7 +46897,7 @@ function L_e(e) {...r};y(Object.keys(r).every((e) => e === "q")), n(a), e.route(a, { replace: i });- }, x = AN(DN(t)), S = AS({+ }, x = DN(wN(t)), S = kS({queryKey: x.queryKey,queryFn: ({ pageParam: e, signal: t }) => x.queryFn({pageParam: e,@@ -46914,22 +46905,22 @@ function L_e(e) {}),initialPageParam: 0,getNextPageParam: x.getNextPageParam,- placeholderData: v ? jS.keepPreviousData : void 0- }), C = Wfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Gfe(C.length, !!S.hasNextPage);+ placeholderData: v ? AS.keepPreviousData : void 0+ }), C = Vfe(S.data), w = !!S.hasNextPage && !S.isPlaceholderData, T = Hfe(C.length, !!S.hasNextPage);(0, B.useLayoutEffect)(() => {l.current && te(l.current);}, [r]);let E = (0, B.useMemo)(() => u === "tags" ? C.map((t) => ({...t,label: e.tagLabel(t.k)- })) : [], [C, u]), D = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Jfe(E, (t) => e.tagLabel(t)) : [], [+ })) : [], [C, u]), D = (0, B.useMemo)(() => u === "tags" && p === "alphabet" ? Gfe(E, (t) => e.tagLabel(t)) : [], [E,p,u]), O = (t) => {i(t), e.savePreference({ layout: t });- }, k = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(DL, {- tabs: j_e,+ }, k = u === "tags" ? /* @__PURE__ */ (0, V.jsx)(EL, {+ tabs: A_e,value: f,label: "词表",onChange: (e) => {@@ -46939,8 +46930,8 @@ function L_e(e) {view: e === "online" ? "alphabet" : p});}- }) : TN(u) ? /* @__PURE__ */ (0, V.jsx)(DL, {- tabs: A_e,+ }) : SN(u) ? /* @__PURE__ */ (0, V.jsx)(EL, {+ tabs: k_e,value: u,label: "公司类型",onChange: (e) => b({ kind: e })@@ -46957,7 +46948,7 @@ function L_e(e) {let n = new Set(e);return n.delete(t) || n.add(t), n;});- }, j = (g ? xN : bN).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);+ }, j = (g ? vN : _N).filter(([e]) => e === "all" || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0);return /* @__PURE__ */ (0, V.jsxs)("div", {ref: l,"data-index-page": u,@@ -46972,12 +46963,12 @@ function L_e(e) {className: "flex items-center text-display-4-medium whitespace-nowrap text-text-primary max-board-narrow:text-title-1-medium",children: h}),- wN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {+ xN(u) ? /* @__PURE__ */ (0, V.jsx)("span", {"data-index-count": "",className: "text-caption-1-regular leading-5 whitespace-nowrap text-text-secondary tabular-nums",children: S.isPending ? "" : T}) : null,- wN(u) ? /* @__PURE__ */ (0, V.jsx)(P_e, {+ xN(u) ? /* @__PURE__ */ (0, V.jsx)(N_e, {kind: u,layout: r,onChange: O@@ -46986,7 +46977,7 @@ function L_e(e) {"aria-hidden": !0,className: "hidden h-0 basis-full max-board-narrow:order-2 max-board-narrow:block"}),- /* @__PURE__ */ (0, V.jsx)(I_e, {+ /* @__PURE__ */ (0, V.jsx)(F_e, {label: `过滤${h}`,value: d,onQuery: (e) => {@@ -46995,8 +46986,8 @@ function L_e(e) {})]}),- u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(DL, {- tabs: M_e,+ u === "performers" || u === "creators" ? /* @__PURE__ */ (0, V.jsx)(EL, {+ tabs: j_e,value: _ ? "online" : u,label: "人物名册",onChange: (t) => {@@ -47011,7 +47002,7 @@ function L_e(e) {u === "performers" && f === "local" ? /* @__PURE__ */ (0, V.jsx)("div", {"aria-label": "身份分类",className: "mb-4 flex flex-wrap gap-2",- children: SN[u].filter(([e]) => e === "all" || e === m || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {+ children: yN[u].filter(([e]) => e === "all" || e === m || Number(S.data?.pages[0]?.categories?.[e] || 0) > 0).map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(J, {variant: m === e ? "primary" : "secondary",size: "small","aria-pressed": m === e,@@ -47019,7 +47010,7 @@ function L_e(e) {children: t}, e))}) : null,- u === "tags" ? /* @__PURE__ */ (0, V.jsx)(O_e, {+ u === "tags" ? /* @__PURE__ */ (0, V.jsx)(D_e, {categories: j,category: m,online: g,@@ -47044,8 +47035,8 @@ function L_e(e) {mode: p}) }});- if (S.isError) return /* @__PURE__ */ (0, V.jsx)(OE, {- icon: xA("search"),+ if (S.isError) return /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: vA("search"),title: `没能读取${h}`,actions: /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",@@ -47054,18 +47045,18 @@ function L_e(e) {}),children: ye(S.error)});- if (!C.length) return /* @__PURE__ */ (0, V.jsx)(z_e, {+ if (!C.length) return /* @__PURE__ */ (0, V.jsx)(R_e, {kind: u,filtered: !!d || m !== "all",online: g || _,configurable: e.configurable});- if (_) return /* @__PURE__ */ (0, V.jsx)(Xfe, {+ if (_) return /* @__PURE__ */ (0, V.jsx)(qfe, {items: C,layout: r,props: e});- if (wN(u)) return /* @__PURE__ */ (0, V.jsx)(PN, {+ if (xN(u)) return /* @__PURE__ */ (0, V.jsx)(jN, {kind: u,items: C,layout: r,@@ -47076,10 +47067,10 @@ function L_e(e) {picked: a,press: A};- return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(w_e, {+ return p === "alphabet" ? /* @__PURE__ */ (0, V.jsx)(C_e, {groups: D,actions: t- }) : /* @__PURE__ */ (0, V.jsx)(E_e, {+ }) : /* @__PURE__ */ (0, V.jsx)(T_e, {tags: E,actions: t});@@ -47094,13 +47085,13 @@ function L_e(e) {disabled: S.isFetchingNextPage,"aria-busy": S.isFetchingNextPage || void 0,onClick: () => void S.fetchNextPage(),- children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(kE, {+ children: S.isFetchingNextPage ? /* @__PURE__ */ (0, V.jsx)(TE, {inline: !0,label: "继续载入中…"}) : "载入更多"})}) : null,- u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(k_e, {+ u === "tags" && !g && e.selectMode ? /* @__PURE__ */ (0, V.jsx)(O_e, {count: a.size,match: s,onMatch: c,@@ -47113,31 +47104,31 @@ function L_e(e) {]});}-var R_e = {+var L_e = {tags: "标签",performers: "艺人",creators: "卖家",studios: "厂牌",agencies: "事务所"};-function z_e({ kind: e, filtered: t, online: n, configurable: r }) {- if (t) return /* @__PURE__ */ (0, V.jsx)(OE, {- icon: xA("search"),+function R_e({ kind: e, filtered: t, online: n, configurable: r }) {+ if (t) return /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: vA("search"),title: "没有符合条件的内容",- actions: /* @__PURE__ */ (0, V.jsx)(EE, {+ actions: /* @__PURE__ */ (0, V.jsx)(SE, {variant: "primary",href: "/?loc=&thumb=0",children: "查看全部内容"}),children: "清除筛选或搜索条件后查看全部内容。"});- let i = n && e === "performers" ? "创作者" : R_e[e], a = /* @__PURE__ */ (0, V.jsx)(EE, {+ let i = n && e === "performers" ? "创作者" : L_e[e], a = /* @__PURE__ */ (0, V.jsx)(SE, {variant: !r || n ? "primary" : "secondary",href: "/follow-manage?tab=add",children: "添加关注"});- return /* @__PURE__ */ (0, V.jsx)(OE, {- icon: xA(e === "tags" ? "tags" : "user-round"),+ return /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: vA(e === "tags" ? "tags" : "user-round"),title: `还没有${i}`,actions: n ? a : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "primary",@@ -47147,15 +47138,15 @@ function z_e({ kind: e, filtered: t, online: n, configurable: r }) {children: n ? `添加关注来源并获取内容后,这里会显示来源上的${i}。` : "添加内容并补充资料后,这里会显示对应信息。"});}-var kL = {+var OL = {video: ["视频", "play"],image: ["图片", "pics"],archive: ["压缩包", "file-archive"],audio: ["音频", "file-audio"],url: ["网址快捷方式", "globe"],other: ["其它文件", "hard-drive"]-}, B_e = (e) => kL[e.junk_kind || "other"] || kL.other;-function V_e(e) {+}, z_e = (e) => OL[e.junk_kind || "other"] || OL.other;+function B_e(e) {return e === "dismissed" ? {operation: "reconsider-junk",label: "重新判断",@@ -47166,21 +47157,21 @@ function V_e(e) {glyph: "check"};}-var AL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), H_e = (e, t) => [+var kL = (e, t) => Number((t ? e.counts?.[t] : e.all_total) || 0), V_e = (e, t) => ["junk-queue",e.view,e.kind,t];-function U_e({ kind: e, view: t }) {+function H_e({ kind: e, view: t }) {let n = new URLSearchParams({limit: "200",status: t});return e && n.set("kind", e), n.toString();}-async function W_e(e, t) {- let n = await G(`/api/ads?${U_e(e)}`, t);+async function U_e(e, t) {+ let n = await G(`/api/ads?${H_e(e)}`, t);return {...n,items: n.items || []@@ -47188,19 +47179,19 @@ async function W_e(e, t) {}//#endregion//#region src/react/junk-queue/junk-card.tsx-function jL({ name: e }) {+function AL({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});}-var ML = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;-function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {- let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = B_e(e), m = String(e.name || ""), h = V_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {- t.target.closest("[data-junk-actions]") || ML(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));+var jL = (e, t) => e || t.shiftKey || t.ctrlKey || t.metaKey;+function W_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions: a }) {+ let o = (0, B.useRef)(null), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = e.junk_kind || "other", [f, p] = z_e(e), m = String(e.name || ""), h = B_e(t), g = d === "video" ? `/thumb?id=${e.id}&c=4` : d === "image" ? `/photo-thumb?id=${e.id}` : "", _ = d === "video" || d === "image", v = (t) => {+ t.target.closest("[data-junk-actions]") || jL(r, t) && (t.preventDefault(), a.toggleSelection(e.id, t.shiftKey));}, y = (t) => {- if (t.stopPropagation(), ML(r, t)) {+ if (t.stopPropagation(), jL(r, t)) {t.preventDefault(), a.toggleSelection(e.id, t.shiftKey);return;}@@ -47242,7 +47233,7 @@ function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actionschildren: [/* @__PURE__ */ (0, V.jsxs)("span", {"data-media-glyph": "",- children: [/* @__PURE__ */ (0, V.jsx)(jL, { name: p }), /* @__PURE__ */ (0, V.jsx)("b", { children: f })]+ children: [/* @__PURE__ */ (0, V.jsx)(AL, { name: p }), /* @__PURE__ */ (0, V.jsx)("b", { children: f })]}),g ? /* @__PURE__ */ (0, V.jsx)("span", {"data-media-art": "thumb",@@ -47254,7 +47245,7 @@ function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions}),/* @__PURE__ */ (0, V.jsx)("span", {"data-media-check": "",- children: /* @__PURE__ */ (0, V.jsx)(jL, { name: "check" })+ children: /* @__PURE__ */ (0, V.jsx)(AL, { name: "check" })})]}),@@ -47291,7 +47282,7 @@ function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actionschildren: [s === "reveal" ? /* @__PURE__ */ (0, V.jsx)("span", {"data-junk-spinner": "",dangerouslySetInnerHTML: { __html: Ke("正在定位") }- }) : /* @__PURE__ */ (0, V.jsx)(jL, { name: "folder-open" }), /* @__PURE__ */ (0, V.jsx)("span", {+ }) : /* @__PURE__ */ (0, V.jsx)(AL, { name: "folder-open" }), /* @__PURE__ */ (0, V.jsx)("span", {"data-junk-label": "",children: "打开位置"})]@@ -47303,7 +47294,7 @@ function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions"aria-label": h.label,...S(h.operation),onClick: x(h.operation),- children: [/* @__PURE__ */ (0, V.jsx)(jL, { name: h.glyph }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(AL, { name: h.glyph }), /* @__PURE__ */ (0, V.jsx)("span", {"data-junk-label": "",children: h.label})]@@ -47315,7 +47306,7 @@ function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions"aria-label": "移入回收站",...S("dispose"),onClick: x("dispose"),- children: [/* @__PURE__ */ (0, V.jsx)(jL, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [/* @__PURE__ */ (0, V.jsx)(AL, { name: "trash" }), /* @__PURE__ */ (0, V.jsx)("span", {"data-junk-label": "",children: "移入回收站"})]@@ -47330,7 +47321,7 @@ function G_e({ item: e, view: t, selected: n, selectMode: r, helpers: i, actions]});}-var K_e = (0, B.memo)(G_e), NL = [+var G_e = (0, B.memo)(W_e), ML = [["","全部",@@ -47367,53 +47358,53 @@ var K_e = (0, B.memo)(G_e), NL = ["hard-drive"]];-function PL(e = "", t = "pending") {+function NL(e = "", t = "pending") {let n = new URLSearchParams();e && n.set("type", e), t === "dismissed" && n.set("view", "dismissed");let r = n.toString();return `/junk-files${r ? `?${r}` : ""}`;}-function q_e(e) {+function K_e(e) {return e === "dismissed" ? {view: "pending",label: "返回待判断",glyph: "rotate-ccw",- href: PL("", "pending")+ href: NL("", "pending")} : {view: "dismissed",label: "已排除",glyph: "eye-off",- href: PL("", "dismissed")+ href: NL("", "dismissed")};}-var J_e = (e) => e === "dismissed" ? "已排除" : "待判断";+var q_e = (e) => e === "dismissed" ? "已排除" : "待判断";//#endregion//#region src/react/junk-queue/junk-count.tsx-function FL({ name: e }) {+function PL({ name: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});}-function IL({ scope: e, count: t }) {+function FL({ scope: e, count: t }) {return t ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [" ", /* @__PURE__ */ (0, V.jsx)("span", {"data-count-badge": `junk:${e}`,children: t.toLocaleString()})] }) : null;}-function Y_e({ route: e, page: t, failed: n, onNavigate: r }) {- let i = jM(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = fA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? NL.map(([e]) => AL(t, e)).join(",") : ""}`), l = q_e(s), u = (e) => {+function J_e({ route: e, page: t, failed: n, onNavigate: r }) {+ let i = OM(), a = (0, B.useRef)(null), { kind: o, view: s } = e, c = lA(a, i, "[data-junk-kind-link][aria-current=\"page\"]", `${s}:${o}:${t ? ML.map(([e]) => kL(t, e)).join(",") : ""}`), l = K_e(s), u = (e) => {let t = e.target.closest("a");- !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || PL()));+ !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), r(t.getAttribute("href") || NL()));}, d = t ? `${Number(t.total || 0).toLocaleString()} 个` : n ? "—" : "";return /* @__PURE__ */ (0, V.jsxs)("div", {"data-junk-count": "",children: [/* @__PURE__ */ (0, V.jsx)("div", {"data-junk-summary": "","aria-live": "polite",- children: /* @__PURE__ */ (0, V.jsx)(EP, {- label: J_e(s),+ children: /* @__PURE__ */ (0, V.jsx)(TP, {+ label: q_e(s),figure: d,pending: !t && !n,flush: !0@@ -47433,17 +47424,17 @@ function Y_e({ route: e, page: t, failed: n, onNavigate: r }) {onClick: u,onPointerLeave: c.leave,children: [- NL.map(([e, n, r]) => /* @__PURE__ */ (0, V.jsxs)("a", {- href: PL(e, s),+ ML.map(([e, n, r]) => /* @__PURE__ */ (0, V.jsxs)("a", {+ href: NL(e, s),"data-junk-kind-link": e,"aria-current": e === o ? "page" : void 0,onPointerEnter: c.hover,children: [- /* @__PURE__ */ (0, V.jsx)(FL, { name: r }),+ /* @__PURE__ */ (0, V.jsx)(PL, { name: r }),n,- /* @__PURE__ */ (0, V.jsx)(IL, {+ /* @__PURE__ */ (0, V.jsx)(FL, {scope: e,- count: t ? AL(t, e) : 0+ count: t ? kL(t, e) : 0})]}, e || "all")),@@ -47457,9 +47448,9 @@ function Y_e({ route: e, page: t, failed: n, onNavigate: r }) {"aria-current": s === "dismissed" ? "page" : void 0,onPointerEnter: s === "dismissed" ? void 0 : c.hover,children: [- /* @__PURE__ */ (0, V.jsx)(FL, { name: l.glyph }),+ /* @__PURE__ */ (0, V.jsx)(PL, { name: l.glyph }),l.label,- /* @__PURE__ */ (0, V.jsx)(IL, {+ /* @__PURE__ */ (0, V.jsx)(FL, {scope: "dismissed",count: Number(t?.dismissed_total || 0)})@@ -47472,33 +47463,33 @@ function Y_e({ route: e, page: t, failed: n, onNavigate: r }) {}//#endregion//#region src/react/junk-queue/junk-queue-page.tsx-var X_e = xA("check"), Z_e = (e, t) => e[1] === t.view && e[2] === t.kind;-function Q_e(e) {+var Y_e = vA("check"), X_e = (e, t) => e[1] === t.view && e[2] === t.kind;+function Z_e(e) {let t = {kind: e.kind,view: e.view- }, n = ES({- queryKey: H_e(t, e.revision),- queryFn: ({ signal: e }) => W_e(t, e),- placeholderData: (e, n) => n && Z_e(n.queryKey, t) ? e : void 0+ }, n = TS({+ queryKey: V_e(t, e.revision),+ queryFn: ({ signal: e }) => U_e(t, e),+ placeholderData: (e, n) => n && X_e(n.queryKey, t) ? e : void 0});(0, B.useEffect)(() => {n.isFetching || e.settled?.(e.revision);}, [n.isFetching, e.revision]);- let r = $_e(e.countRow), i = n.isPending;+ let r = Q_e(e.countRow), i = n.isPending;(0, B.useLayoutEffect)(() => {let t = e.countRow;t && (i ? t.setAttribute("aria-busy", "true") : t.removeAttribute("aria-busy"));}, [e.countRow, i]), (0, B.useLayoutEffect)(() => {r && n.data && Le(r, "junk");}, [r, n.data]);- let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(Y_e, {+ let { navigate: a } = e.actions, o = r ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)(J_e, {route: t,page: n.data,failed: n.isError && !n.data,onNavigate: a}), r) : null;- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)(eve, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [o, /* @__PURE__ */ (0, V.jsx)($_e, {props: e,data: n.data,pending: i,@@ -47506,7 +47497,7 @@ function Q_e(e) {retry: () => void n.refetch()}, `${t.view}:${t.kind}`)] });}-function $_e(e) {+function Q_e(e) {let [t, n] = (0, B.useState)(null);return (0, B.useLayoutEffect)(() => {if (!e) return;@@ -47516,8 +47507,8 @@ function $_e(e) {};}, [e]), t;}-function eve({ props: e, data: t, pending: n, error: r, retry: i }) {- let a = AA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {+function $_e({ props: e, data: t, pending: n, error: r, retry: i }) {+ let a = DA(n, e.skeletonHtml), o = Math.max(1, e.batchSize || 60), [s, c] = (0, B.useState)(1), l = t?.items || [], u = l.slice(0, s * o), { canLoadMore: d } = e, f = (0, B.useCallback)(() => {d?.() !== !1 && c((e) => e + 1);}, [d]);return /* @__PURE__ */ (0, V.jsxs)("div", {@@ -47525,14 +47516,14 @@ function eve({ props: e, data: t, pending: n, error: r, retry: i }) {"data-grid-reveal": a.fading ? "" : void 0,children: [a.layer, (() => {if (n) return null;- if (!t) return /* @__PURE__ */ (0, V.jsx)(jA, {+ if (!t) return /* @__PURE__ */ (0, V.jsx)(OA, {message: ye(r),onRetry: i});if (!l.length) {let t = e.view === "dismissed";- return /* @__PURE__ */ (0, V.jsx)(OE, {- icon: X_e,+ return /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: Y_e,title: t ? "没有已排除的文件" : "没有待判断的垃圾文件",children: t ? "点“不是垃圾”的资源会保留在这里,可随时重新判断。" : "当前分类没有候选文件。"});@@ -47541,7 +47532,7 @@ function eve({ props: e, data: t, pending: n, error: r, retry: i }) {"data-media-grid": "","data-junk-grid": "","data-select-mode": e.selectMode ? "" : void 0,- children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(K_e, {+ children: u.map((t) => /* @__PURE__ */ (0, V.jsx)(G_e, {item: t,view: e.view,selected: e.selected.has(t.id),@@ -47549,11 +47540,11 @@ function eve({ props: e, data: t, pending: n, error: r, retry: i }) {helpers: e.helpers,actions: e.actions}, t.id))- }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(tve, { onMore: f }, s) : null] });+ }), u.length < l.length ? /* @__PURE__ */ (0, V.jsx)(eve, { onMore: f }, s) : null] });})()]});}-function tve({ onMore: e }) {+function eve({ onMore: e }) {let t = (0, B.useRef)(null);return (0, B.useEffect)(() => {let n = t.current;@@ -47571,12 +47562,12 @@ function tve({ onMore: e }) {}//#endregion//#region src/react/library-processing/library-processing-notice.tsx-var LL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", nve = {- gray: `${LL} border-separator-border bg-background-secondary-default text-text-secondary`,- warning: `${LL} border-current/35 bg-status-yellow-background text-status-yellow-text`,- error: `${LL} border-current/35 bg-background-tertiary-error text-text-error-primary`+var IL = "flex min-h-10 flex-wrap items-center justify-center gap-x-4 gap-y-2 border-y px-6 py-2 max-sm:justify-start", tve = {+ gray: `${IL} border-separator-border bg-background-secondary-default text-text-secondary`,+ warning: `${IL} border-current/35 bg-status-yellow-background text-status-yellow-text`,+ error: `${IL} border-current/35 bg-background-tertiary-error text-text-error-primary`};-function rve({ value: e, max: t }) {+function nve({ value: e, max: t }) {let n = Math.max(0, Math.min(100, e / t * 100));return /* @__PURE__ */ (0, V.jsxs)("svg", {role: "progressbar",@@ -47604,16 +47595,16 @@ function rve({ value: e, max: t }) {})]});}-function ive(e) {- let { job: t } = IM(e), n = t.data, r = t.isError ? n ? tj : W(t.error) : "", i = n?.status ?? "idle", a = i === "failed", o = i === "running";+function rve(e) {+ let { job: t } = NM(e), n = t.data, r = t.isError ? n ? QA : W(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 ? "扫描与资料采集未完成" : rj(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? mae : aae;+ let s = a ? "error" : r || n?.stalled ? "warning" : "gray", c = n?.checked || 0, l = n?.total || 0, u = r || (a ? "扫描与资料采集未完成" : ej(n) + (l ? ` · ${c} / ${l}` : "")), d = s === "gray" ? fae : rae;return /* @__PURE__ */ (0, V.jsxs)("aside", {role: a ? "alert" : "status",- className: nve[s],+ className: tve[s],children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-center gap-3",- children: [o && l ? /* @__PURE__ */ (0, V.jsx)(rve, {+ children: [o && l ? /* @__PURE__ */ (0, V.jsx)(nve, {value: c,max: l}) : /* @__PURE__ */ (0, V.jsx)(d, {@@ -47623,42 +47614,42 @@ function ive(e) {className: "min-w-0 text-body-2-regular",children: u})]- }), /* @__PURE__ */ (0, V.jsx)(jk, {+ }), /* @__PURE__ */ (0, V.jsx)(Ok, {href: "/data-cleanup#libraryProcessing",size: "small",- trailingIcon: fT,+ trailingIcon: cT,children: r || a ? "查看并处理" : "查看进度"})]});}//#endregion//#region src/react/playlists/playlists.ts-var ave = "/api/playlists", RL = "/api/playlist", zL = ["playlists"], BL = (e) => G(ave, e);-async function ove(e) {+var ive = "/api/playlists", LL = "/api/playlist", RL = ["playlists"], zL = (e) => G(ive, e);+async function ave(e) {await z.fetchQuery({- queryKey: zL,- queryFn: () => BL(e),+ queryKey: RL,+ queryFn: () => zL(e),staleTime: 0});}-var VL = () => z.invalidateQueries({- queryKey: zL,+var BL = () => z.invalidateQueries({+ queryKey: RL,exact: !0-}), sve = (e) => e.current_asset_id || e.preview_asset_id || null, HL = (e) => `/poster?id=${e}&c=4`, cve = (e) => K(RL, {+}), ove = (e) => e.current_asset_id || e.preview_asset_id || null, VL = (e) => `/poster?id=${e}&c=4`, sve = (e) => K(LL, {action: "create",name: e,asset_ids: []-}), UL = (e, t) => K(RL, {+}), HL = (e, t) => K(LL, {action: "rename",id: e,name: t-}), WL = (e) => K(RL, {+}), UL = (e) => K(LL, {action: "delete",id: e-}), lve = (e) => G(`${RL}?id=${e}`).catch(() => null);-function uve(e) {+}), cve = (e) => G(`${LL}?id=${e}`).catch(() => null);+function lve(e) {let t = (e.items || []).map((e) => e.id), n = e.source_seed_asset_id;- return K(RL, {+ return K(LL, {action: "create",name: e.name,asset_ids: t,@@ -47668,18 +47659,18 @@ function uve(e) {}//#endregion//#region src/react/playlists/playlists-page.tsx-var dve = xA("ellipsis"), fve = xA("pencil"), pve = xA("trash"), mve = xA("playlist"), GL = xE(Sk, Ck, "text-body-2-medium"), KL = "播放列表名称不能为空", qL = (e) => async () => {+var uve = vA("ellipsis"), dve = vA("pencil"), fve = vA("trash"), pve = vA("playlist"), WL = _E(yk, bk, "text-body-2-medium"), GL = "播放列表名称不能为空", KL = (e) => async () => {try {await e();} finally {- VL();+ BL();}};-function hve({ toast: e }) {- let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = kS({- mutationFn: (e) => cve(e),+function mve({ toast: e }) {+ let [t, n] = (0, B.useState)(""), [r, i] = (0, B.useState)(""), a = OS({+ mutationFn: (e) => sve(e),onSuccess: (t) => {- n(""), i(""), VL(), e("已新建播放列表", { undo: qL(() => WL(t.playlist.id)) });+ n(""), i(""), BL(), e("已新建播放列表", { undo: KL(() => UL(t.playlist.id)) });},onError: (e) => i(W(e) || "新建失败")});@@ -47689,7 +47680,7 @@ function hve({ toast: e }) {onSubmit: (e) => {if (e.preventDefault(), !a.isPending) {if (!t.trim()) {- i(KL);+ i(GL);return;}a.mutate(t);@@ -47698,7 +47689,7 @@ function hve({ toast: e }) {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-50 max-w-80 flex-1 basis-50 max-board-narrow:min-w-0 max-board-narrow:max-w-none",- children: /* @__PURE__ */ (0, V.jsx)(bk, {+ children: /* @__PURE__ */ (0, V.jsx)(_k, {label: "新播放列表",placeholder: "输入名称",maxLength: 80,@@ -47717,7 +47708,7 @@ function hve({ toast: e }) {})]});}-function gve({ target: e, close: t, toast: n }) {+function hve({ target: e, close: t, toast: n }) {let [r, i] = (0, B.useState)(""), [a, o] = (0, B.useState)(""), s = (0, B.useRef)(null);(0, B.useEffect)(() => {if (!e) return;@@ -47727,14 +47718,14 @@ function gve({ target: e, close: t, toast: n }) {});return () => cancelAnimationFrame(t);}, [e]);- let c = kS({- mutationFn: ({ row: e, value: t }) => UL(e.id, t),+ let c = OS({+ mutationFn: ({ row: e, value: t }) => HL(e.id, t),onSuccess: (e, { row: r }) => {- t(), VL(), n("已重命名播放列表", { undo: qL(() => UL(r.id, r.name)) });+ t(), BL(), n("已重命名播放列表", { undo: KL(() => HL(r.id, r.name)) });},onError: (e) => o(W(e))});- return /* @__PURE__ */ (0, V.jsx)(tP, {+ return /* @__PURE__ */ (0, V.jsx)(QN, {isOpen: !!e,onOpenChange: (e) => {e || t();@@ -47746,7 +47737,7 @@ function gve({ target: e, close: t, toast: n }) {if (t.preventDefault(), !e || c.isPending) return;let n = r.trim();if (!n) {- o(KL);+ o(GL);return;}c.mutate({@@ -47757,11 +47748,11 @@ function gve({ target: e, close: t, toast: n }) {className: "flex min-h-0 flex-col",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-4 p-5",- children: [/* @__PURE__ */ (0, V.jsx)(eD, {+ children: [/* @__PURE__ */ (0, V.jsx)(XE, {slot: "title",className: "text-title-2-semibold text-text-primary",children: "编辑名称"- }), /* @__PURE__ */ (0, V.jsx)(bk, {+ }), /* @__PURE__ */ (0, V.jsx)(_k, {ref: s,label: "名称",placeholder: "输入名称",@@ -47789,7 +47780,7 @@ function gve({ target: e, close: t, toast: n }) {})});}-function _ve({ name: e, onRename: t, onDelete: n }) {+function gve({ name: e, onRename: t, onDelete: n }) {let r = (0, B.useRef)(null), [i, a] = (0, B.useState)(!1), o = (e) => {a(!1), e();};@@ -47803,33 +47794,33 @@ function _ve({ name: e, onRename: t, onDelete: n }) {"data-playlist-menu": "",onClick: () => a(!0),className: "flex size-7.5 flex-none cursor-pointer items-center justify-center rounded-2lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary aria-expanded:bg-background-primary-hover aria-expanded:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",- children: /* @__PURE__ */ (0, V.jsx)(dve, {+ children: /* @__PURE__ */ (0, V.jsx)(uve, {"aria-hidden": !0,className: "size-4.5"})- }), /* @__PURE__ */ (0, V.jsx)(yO, {+ }), /* @__PURE__ */ (0, V.jsx)(hO, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: xk,- children: /* @__PURE__ */ (0, V.jsxs)(TM, {+ className: vk,+ children: /* @__PURE__ */ (0, V.jsxs)(SM, {"aria-label": `播放列表操作:${e}`,className: "flex w-37.5 flex-col gap-0.5 outline-none",children: [/* @__PURE__ */ (0, V.jsxs)("button", {type: "button",- className: GL,+ className: WL,onClick: () => o(t),- children: [/* @__PURE__ */ (0, V.jsx)(fve, {+ children: [/* @__PURE__ */ (0, V.jsx)(dve, {"aria-hidden": !0,className: "size-4 shrink-0"}), "编辑名称"]}), /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",- className: GL,+ className: WL,onClick: () => o(n),- children: [/* @__PURE__ */ (0, V.jsx)(pve, {+ children: [/* @__PURE__ */ (0, V.jsx)(fve, {"aria-hidden": !0,className: "size-4 shrink-0"}), "删除播放列表"]@@ -47837,13 +47828,13 @@ function _ve({ name: e, onRename: t, onDelete: n }) {})})] });}-function vve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {- let a = ES({- queryKey: zL,- queryFn: ({ signal: e }) => BL(e)+function _ve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i }) {+ let a = TS({+ queryKey: RL,+ queryFn: ({ signal: e }) => zL(e)}), [o, s] = (0, B.useState)(null), c = (0, B.useRef)(i);(0, B.useEffect)(() => {- c.current !== i && (c.current = i, VL());+ c.current !== i && (c.current = i, BL());}, [i]);let l = a.data;if (!l) return /* @__PURE__ */ (0, V.jsx)("div", {@@ -47861,8 +47852,8 @@ function vve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: iconfirmLabel: "删除播放列表",danger: !0,onConfirm: async () => {- let t = await lve(e.id);- await WL(e.id), VL(), r("已删除播放列表", t ? { undo: qL(() => uve(t)) } : void 0);+ let t = await cve(e.id);+ await UL(e.id), BL(), r("已删除播放列表", t ? { undo: KL(() => lve(t)) } : void 0);}});};@@ -47877,38 +47868,38 @@ function vve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i}), /* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "保存 Mix,按自己的顺序继续播放。"- })] }), /* @__PURE__ */ (0, V.jsx)(hve, { toast: r })]+ })] }), /* @__PURE__ */ (0, V.jsx)(mve, { toast: r })]}),u.length ? /* @__PURE__ */ (0, V.jsx)("div", {"data-playlist-grid": "",className: "card-grid-cover gap-4.5",children: u.map((r) => {- let i = sve(r);- return /* @__PURE__ */ (0, V.jsx)(BA, {+ let i = ove(r);+ return /* @__PURE__ */ (0, V.jsx)(LA, {"data-playlist-card": String(r.id),name: r.name,caption: r.source_kind === "mix" ? "由 Mix 保存" : "手动播放列表",count: r.item_count,- poster: r.preview_asset_id ? HL(r.preview_asset_id) : null,- flipImages: async () => (r.preview_ids || []).map(HL),+ poster: r.preview_asset_id ? VL(r.preview_asset_id) : null,+ flipImages: async () => (r.preview_ids || []).map(VL),canFlip: n,faces: r.faces || [],onOpenEntity: t,...i ? { onOpen: () => e(r.id, i) } : {},openLabel: `打开播放列表 ${r.name}`,- menu: /* @__PURE__ */ (0, V.jsx)(_ve, {+ menu: /* @__PURE__ */ (0, V.jsx)(gve, {name: r.name,onRename: () => s(r),onDelete: () => d(r)})}, r.id);})- }) : /* @__PURE__ */ (0, V.jsx)(OE, {- icon: mve,+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: pve,title: "还没有播放列表",children: "保存 Mix 或新建列表后,会在这里按自己的顺序继续播放。"}),- /* @__PURE__ */ (0, V.jsx)(gve, {+ /* @__PURE__ */ (0, V.jsx)(hve, {target: o,close: () => s(null),toast: r@@ -47918,11 +47909,11 @@ function vve({ openPlaylist: e, openEntity: t, canFlip: n, toast: r, revision: i}//#endregion//#region src/react/quality-goals/quality-goals-page.tsx-function yve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {+function vve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisplayName: i, srcBadge: a }) {let o = () => t(e.id);return /* @__PURE__ */ (0, V.jsxs)("li", {"data-goal-id": e.id,- className: DE({+ className: CE({padding: "none",bordered: "soft",className: "flex flex-col gap-3 p-3"@@ -47938,7 +47929,7 @@ function yve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDisclassName: "text-caption-1-regular text-text-secondary",children: "暂无预览"}), /* @__PURE__ */ (0, V.jsx)("img", {- src: lue(e),+ src: oue(e),alt: "",loading: "lazy",onError: (e) => e.currentTarget.remove(),@@ -47996,38 +47987,38 @@ function yve({ item: e, openItem: t, searchResources: n, javTitleHtml: r, javDis})]});}-function bve(e) {- let t = ES({- queryKey: dj,- queryFn: ({ signal: e }) => fj(e)+function yve(e) {+ let t = TS({+ queryKey: cj,+ queryFn: ({ signal: e }) => lj(e)}), n = t.data;- if (!n) return /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ if (!n) return /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "高清版目标读取失败",children: t.error ? W(t.error) : "未取得高清版目标,请刷新页面重试。"}) });let r = n.items || [];- return r.length ? /* @__PURE__ */ (0, V.jsxs)(AE, { children: [/* @__PURE__ */ (0, V.jsx)(EP, {+ return r.length ? /* @__PURE__ */ (0, V.jsxs)(EE, { children: [/* @__PURE__ */ (0, V.jsx)(TP, {label: "待升级",figure: `${n.total} 部作品`,flush: !0}), /* @__PURE__ */ (0, V.jsx)("ul", {className: "card-grid-cover gap-5",- children: r.map((t) => /* @__PURE__ */ (0, V.jsx)(yve, {+ children: r.map((t) => /* @__PURE__ */ (0, V.jsx)(vve, {item: t,...e}, t.id))- })] }) : /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsx)(OE, {+ })] }) : /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: wae,+ icon: Sae,title: "没有标记中的高清版目标",children: "现有版本都已满足条件,或还没有加入追踪。"}) });}//#endregion//#region src/react/review/bulk-toolbar.tsx-function xve(e) {- let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = bue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";+function bve(e) {+ let { groupOptions: t, groupBy: n, onGroupBy: r, groups: i, filter: a, onFilter: o, pageKeys: s, selected: c, onSelected: l, selectedRows: u, metadata: d, approvable: f, busy: p, feedback: m, onUnifySource: h, onRun: g } = e, _ = s.filter((e) => c.has(e)), v = _.length > 0 && _.length === s.length, y = _ue(u), b = d && u.some((e) => (e.candidates?.length || 0) > 1), x = y.length ? "统一选择来源" : "所选项目无共同来源";return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {role: "group","aria-label": "复核筛选",@@ -48035,29 +48026,29 @@ function xve(e) {"data-glass-pane": "",className: "sticky top-topbar z-10 flex flex-wrap items-center gap-2 p-3",children: [- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "筛选分组方式",size: "sm",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: t.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: t}, e))}),- i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(Tk, {+ i.length > 1 ? /* @__PURE__ */ (0, V.jsxs)(Sk, {"aria-label": n === "field" ? "筛选字段分类" : "筛选当前分类",size: "sm",selectedKey: a || "*",onSelectionChange: (e) => {e !== null && o(String(e) === "*" ? "" : String(e));},- children: [/* @__PURE__ */ (0, V.jsx)(Ek, {+ children: [/* @__PURE__ */ (0, V.jsx)(Ck, {id: "*",children: "全部分类"- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e.key,children: `${e.title} · ${e.rows.length}`}, e.key))]@@ -48065,7 +48056,7 @@ function xve(e) {/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: hT,+ leadingIcon: dT,"aria-pressed": v,disabled: p || !s.length,onClick: () => {@@ -48081,7 +48072,7 @@ function xve(e) {visible: c.size > 0,count: `已选 ${c.size} 项`,children: [- b ? /* @__PURE__ */ (0, V.jsxs)(Tk, {+ b ? /* @__PURE__ */ (0, V.jsxs)(Sk, {"aria-label": "统一选择来源",size: "sm",selectedKey: "",@@ -48089,10 +48080,10 @@ function xve(e) {onSelectionChange: (e) => {e !== null && e !== "" && h(String(e));},- children: [/* @__PURE__ */ (0, V.jsx)(Ek, {+ children: [/* @__PURE__ */ (0, V.jsx)(Ck, {id: "",children: x- }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ }), y.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: e}, e))]@@ -48128,7 +48119,7 @@ function xve(e) {}//#endregion//#region src/react/review/candidate-form.tsx-var Sve = {+var xve = {title: "标题",original_title: "原标题",runtime: "来源时长",@@ -48138,14 +48129,14 @@ var Sve = {cover_url: "封面",screenshot_urls: "截图",trailer_url: "预告片"-}, JL = "reviewgenretags";-function Cve({ tags: e }) {+}, qL = "reviewgenretags";+function Sve({ tags: e }) {return e.length ? /* @__PURE__ */ (0, V.jsx)("datalist", {- id: JL,+ id: qL,children: e.map((e) => /* @__PURE__ */ (0, V.jsx)("option", { value: e }, e))}) : null;}-function YL({ candidate: e, selectable: t = !1 }) {+function JL({ candidate: e, selectable: t = !1 }) {let n = Object.entries(e.catalog_evidence || {}).filter(([, e]) => e && e.display_value), r = e.content_id || e.provider_id;return /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 flex-1 flex-col",@@ -48182,7 +48173,7 @@ function YL({ candidate: e, selectable: t = !1 }) {children: [/* @__PURE__ */ (0, V.jsx)("dt", {className: "text-body-2-regular text-text-secondary",- children: Sve[e] || e+ children: xve[e] || e}),/* @__PURE__ */ (0, V.jsx)("dd", {className: "min-w-0 text-body-2-regular break-words text-text-primary",@@ -48197,36 +48188,36 @@ function YL({ candidate: e, selectable: t = !1 }) {}) : null]});}-function wve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {+function Cve({ row: e, fieldName: t, value: n, onChange: r, locked: i }) {let a = e.candidates || [];return a.length ? a.length === 1 ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default",- children: /* @__PURE__ */ (0, V.jsx)(YL, { candidate: a[0] })- }) : /* @__PURE__ */ (0, V.jsx)(LO, {+ children: /* @__PURE__ */ (0, V.jsx)(JL, { candidate: a[0] })+ }) : /* @__PURE__ */ (0, V.jsx)(NO, {"aria-label": `${t || "候选"}的来源`,value: n,isDisabled: i,onChange: r,className: "flex flex-col gap-2",- children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(RO, {+ children: a.map((e) => /* @__PURE__ */ (0, V.jsx)(PO, {value: e.candidate_key,className: "group flex cursor-pointer items-center gap-2 overflow-hidden rounded-surface border border-separator-border bg-background-secondary-default outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring data-selected:border-border-button-active data-disabled:cursor-not-allowed",- children: /* @__PURE__ */ (0, V.jsx)(YL, {+ children: /* @__PURE__ */ (0, V.jsx)(JL, {candidate: e,selectable: !0})}, e.candidate_key))}) : null;}-function Tve({ genre: e, tags: t, locked: n, toast: r }) {- let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = kS({- mutationFn: (t) => Due(e, t),+function wve({ genre: e, tags: t, locked: n, toast: r }) {+ let [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), c = OS({+ mutationFn: (t) => wue(e, t),onSuccess: async (t, n) => {if (!t.ok) {s(t.error || "服务端拒绝了这次收录");return;}- r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await kue();+ r(n ? `已把「${e}」收录为标签「${n}」` : `已把「${e}」判为非内容标签`), await Eue();},onError: (e) => s(W(e))}), l = () => {@@ -48245,16 +48236,16 @@ function Tve({ genre: e, tags: t, locked: n, toast: r }) {className: "text-body-medium text-text-primary",children: e}),- /* @__PURE__ */ (0, V.jsx)(_k, {+ /* @__PURE__ */ (0, V.jsx)(mk, {"aria-label": `「${e}」收录成的中文标签`,value: i,onChange: a,maxLength: 40,isDisabled: n || c.isPending,className: "min-w-40 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(yk, {+ children: /* @__PURE__ */ (0, V.jsx)(gk, {size: "small",- list: t.length ? JL : void 0,+ list: t.length ? qL : void 0,autoComplete: "off",placeholder: "中文标签",onKeyDown: (e) => {@@ -48286,8 +48277,8 @@ function Tve({ genre: e, tags: t, locked: n, toast: r }) {]});}-function Eve({ row: e, tags: t, locked: n, toast: r }) {- let i = wue(e);+function Tve({ row: e, tags: t, locked: n, toast: r }) {+ let i = Sue(e);return i.length ? /* @__PURE__ */ (0, V.jsxs)("div", {role: "group","aria-label": "未收录 genre",@@ -48295,7 +48286,7 @@ function Eve({ row: e, tags: t, locked: n, toast: r }) {children: [/* @__PURE__ */ (0, V.jsx)("h5", {className: "text-body-2-medium text-text-secondary",children: `未收录 genre · ${i.length}`- }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(Tve, {+ }), i.map((e) => /* @__PURE__ */ (0, V.jsx)(wve, {genre: e,tags: t,locked: n,@@ -48305,9 +48296,9 @@ function Eve({ row: e, tags: t, locked: n, toast: r }) {}//#endregion//#region src/react/review/review-evidence.tsx-var XL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Dve = (e = "") => XL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");-function ZL({ url: e }) {- let t = Dve(e || ""), [n, r] = (0, B.useState)(!1);+var YL = (e = "") => /^https?:\/\//i.test(e) ? e : "", Eve = (e = "") => YL(e) || (e.startsWith("/") && !e.startsWith("//") ? e : "");+function XL({ url: e }) {+ let t = Eve(e || ""), [n, r] = (0, B.useState)(!1);return /* @__PURE__ */ (0, V.jsx)("div", {className: "flex h-review-image items-center justify-center overflow-hidden rounded-surface bg-background-secondary-default",children: t && !n ? /* @__PURE__ */ (0, V.jsx)("img", {@@ -48322,7 +48313,7 @@ function ZL({ url: e }) {})});}-function QL({ asset: e, openItem: t }) {+function ZL({ asset: e, openItem: t }) {let n = e.name || "";return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-center gap-2.5 rounded-surface bg-background-secondary-default p-2",@@ -48348,21 +48339,21 @@ function QL({ asset: e, openItem: t }) {}), /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",size: "small",- leadingIcon: _ae,+ leadingIcon: hae,onClick: () => t(e.id),children: "打开原视频"})]})]});}-function Ove({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {+function Dve({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 items-center gap-3",children: [/* @__PURE__ */ (0, V.jsx)("button", {type: "button","aria-label": `打开创作者页:${t}`,onClick: () => i(e, t),- className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${aL}`,+ className: `relative inline-grid size-11 shrink-0 cursor-pointer place-items-center overflow-hidden rounded-full bg-background-secondary-default text-caption-1-medium text-text-secondary outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring ${iL}`,dangerouslySetInnerHTML: { __html: r }}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-col items-start",@@ -48378,8 +48369,8 @@ function Ove({ kind: e, name: t, works: n, avatar: r, openEntity: i }) {})]});}-function kve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {- let o = XL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));+function Ove({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, note: a }) {+ let o = YL(e.profile_url || ""), s = (e.preview_assets || []).slice(0, 6), c = Math.max(0, Number(e.video_count || e.videos || 0));return /* @__PURE__ */ (0, V.jsxs)("section", {className: "flex flex-col gap-3",children: [@@ -48389,10 +48380,10 @@ function kve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",- children: [o ? /* @__PURE__ */ (0, V.jsx)(EE, {+ children: [o ? /* @__PURE__ */ (0, V.jsx)(SE, {variant: "secondary",size: "small",- trailingIcon: xT,+ trailingIcon: _T,href: o,target: "_blank",rel: "noopener noreferrer",@@ -48404,7 +48395,7 @@ function kve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, nochildren: `查看全部 ${c.toLocaleString()} 部作品`})]}),- /* @__PURE__ */ (0, V.jsx)(ZL, { url: e.preview_url }),+ /* @__PURE__ */ (0, V.jsx)(XL, { url: e.preview_url }),/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "通过后记录身份判断。"@@ -48447,7 +48438,7 @@ function kve({ row: e, openItem: t, openEntity: n, onReveal: r, revealing: i, no]});}-function Ave({ assets: e, picked: t, onPicked: n, locked: r }) {+function kve({ assets: e, picked: t, onPicked: n, locked: r }) {let [i, a] = (0, B.useState)(null), o = new Set(t), s = (t, s) => {if (r) return;let c = new Set(o);@@ -48503,7 +48494,7 @@ function Ave({ assets: e, picked: t, onPicked: n, locked: r }) {}),/* @__PURE__ */ (0, V.jsx)("span", {className: "absolute top-1 right-1",- children: /* @__PURE__ */ (0, V.jsx)(HM, {+ children: /* @__PURE__ */ (0, V.jsx)(zM, {size: "sm",state: {isSelected: n,@@ -48523,19 +48514,19 @@ function Ave({ assets: e, picked: t, onPicked: n, locked: r }) {}//#endregion//#region src/react/review/review-card.tsx-var jve = DE({+var Ave = CE({variant: "outlined",padding: "none",className: "flex flex-col gap-4 px-5 pt-4"-}), $L = "flex min-h-6 min-w-0 items-center", Mve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";-function Nve(e) {- let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = jM(), h = jM(), g = t === "metadata_fields", _ = gue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = wj(t, n), x = Cj(t, n), S = Sj(t, n), C = Sue(n), T = Cue(n), E = xj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {+}), QL = "flex min-h-6 min-w-0 items-center", jve = (e) => e === "western_identity" ? "h-review-card-tall" : "h-review-card";+function Mve(e) {+ let { category: t, row: n, choice: r, onChoice: i, selected: a, onSelect: o, locked: s, busy: c, problem: l, genreTags: u, onDecide: d, handlers: f } = e, p = (0, B.useRef)(!1), m = OM(), h = OM(), g = t === "metadata_fields", _ = pue[t] || "", v = String(n.creator || "").trim(), y = !!_ && !!v, b = yue(t, n), x = bj(t, n), S = yj(t, n), C = bue(n), T = xue(n), E = vj(t, n), D = n.comparison_assets || [], O = n.preview_assets || [], k = String(n.decision || "pending") !== "pending", A = D.length > 1 ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col gap-3",- children: D.map((e) => /* @__PURE__ */ (0, V.jsx)(QL, {+ children: D.map((e) => /* @__PURE__ */ (0, V.jsx)(ZL, {asset: e,openItem: f.openItem}, e.id))- }) : y ? /* @__PURE__ */ (0, V.jsx)(Ove, {+ }) : y ? /* @__PURE__ */ (0, V.jsx)(Dve, {kind: _,name: v,works: Number(n.video_count || n.videos || 0),@@ -48546,14 +48537,14 @@ function Nve(e) {image_version: n.image_version,avatar_focus: n.avatar_focus} : null, null, _)- }) : n.asset_id ? /* @__PURE__ */ (0, V.jsx)(QL, {+ }) : n.asset_id ? /* @__PURE__ */ (0, V.jsx)(ZL, {openItem: f.openItem,asset: {id: n.asset_id,name: n.asset_name,preview_url: n.asset_preview_url}- }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(wve, {+ }) : null, j = g ? /* @__PURE__ */ (0, V.jsx)(Cve, {row: n,fieldName: x,value: r.candidateKey,@@ -48562,7 +48553,7 @@ function Nve(e) {candidateKey: e}),locked: s- }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(Ave, {+ }) : t === "creator_tags" ? O.length ? /* @__PURE__ */ (0, V.jsx)(kve, {assets: O,picked: r.assets,locked: s,@@ -48570,21 +48561,21 @@ function Nve(e) {...r,assets: e})- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "inset",- icon: fae,+ icon: uae,title: "这批作品尚未抽帧",children: `${n.video_count || ""} 条作品还没有可用预览;批准后仍会按候选写入标签。`- }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(kve, {+ }) : t === "fc2_similarity" ? null : t === "western_identity" ? /* @__PURE__ */ (0, V.jsx)(Ove, {row: n,openItem: f.openItem,openEntity: f.openEntity,onReveal: f.onReveal,revealing: f.revealing,note: f.revealNote- }) : /* @__PURE__ */ (0, V.jsx)(ZL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {- className: `${$L} flex-wrap gap-2`,- children: [/* @__PURE__ */ (0, V.jsx)(wE, {+ }) : /* @__PURE__ */ (0, V.jsx)(XL, { url: n.preview_url }), M = y ? A : x ? /* @__PURE__ */ (0, V.jsxs)("h4", {+ className: `${QL} flex-wrap gap-2`,+ children: [/* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "blue",children: x@@ -48594,7 +48585,7 @@ function Nve(e) {children: S})]}) : /* @__PURE__ */ (0, V.jsx)("h4", {- className: $L,+ className: QL,children: /* @__PURE__ */ (0, V.jsx)("span", {title: b,className: "min-w-0 truncate text-body-medium text-text-primary",@@ -48604,20 +48595,20 @@ function Nve(e) {return /* @__PURE__ */ (0, V.jsxs)("section", {"aria-label": b,"data-review-key": n.item_key,- className: `${jve} ${Mve(t)} overflow-hidden`,+ className: `${Ave} ${jve(t)} overflow-hidden`,children: [/* @__PURE__ */ (0, V.jsxs)("header", {className: "flex min-w-0 shrink-0 items-start gap-2",children: [s ? null : /* @__PURE__ */ (0, V.jsx)("span", {- className: `${$L} shrink-0`,+ className: `${QL} shrink-0`,onPointerDownCapture: (e) => {p.current = e.shiftKey;},onKeyDownCapture: (e) => {p.current = e.shiftKey;},- children: /* @__PURE__ */ (0, V.jsx)(UM, {+ children: /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: a,"aria-label": `选择 ${b}`,onChange: (e) => o(p.current, e)@@ -48627,7 +48618,7 @@ function Nve(e) {className: "min-w-0 flex-1",children: M}),- k ? /* @__PURE__ */ (0, V.jsx)(wE, {+ k ? /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "neutral",children: n.decision@@ -48651,7 +48642,7 @@ function Nve(e) {!y && A ? A : null,T.length || t === "creator_tags" ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-wrap gap-1",- children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(wE, {+ children: T.length ? T.map((e) => /* @__PURE__ */ (0, V.jsx)(bE, {variant: "caption",color: "soft",children: e@@ -48661,7 +48652,7 @@ function Nve(e) {})}) : null,j,- /* @__PURE__ */ (0, V.jsx)(Eve, {+ /* @__PURE__ */ (0, V.jsx)(Tve, {row: n,tags: u,locked: s,@@ -48723,8 +48714,8 @@ function Nve(e) {}//#endregion//#region src/react/review/review-page.tsx-var Pve = "flex cursor-pointer items-center justify-between gap-2";-function Fve({ page: e, pages: t, onPage: n }) {+var Nve = "flex cursor-pointer items-center justify-between gap-2";+function Pve({ page: e, pages: t, onPage: n }) {return t <= 1 ? null : /* @__PURE__ */ (0, V.jsxs)("nav", {"aria-label": "复核分页",className: "flex w-full flex-wrap items-center justify-between gap-2",@@ -48738,7 +48729,7 @@ function Fve({ page: e, pages: t, onPage: n }) {}),/* @__PURE__ */ (0, V.jsx)("ul", {className: "flex flex-wrap items-center gap-1",- children: pj(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {+ children: uj(e, t).map((t, r) => /* @__PURE__ */ (0, V.jsx)("li", { children: t === "…" ? /* @__PURE__ */ (0, V.jsx)("span", {"aria-hidden": !0,className: "px-1 text-body-2-regular text-text-tertiary",children: "…"@@ -48761,48 +48752,48 @@ function Fve({ page: e, pages: t, onPage: n }) {]});}-function Ive(e) {+function Fve(e) {let [t, n] = (0, B.useState)(() => matchMedia("(max-width:900px)").matches);(0, B.useEffect)(() => {let e = matchMedia("(max-width:900px)"), t = () => n(e.matches);return e.addEventListener("change", t), () => e.removeEventListener("change", t);}, []);- let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(yj(e.category) ? e.category : hue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);+ let { route: r, openItem: i, openEntity: a, revealSource: o, toast: s, readOnly: c, readOnlyMessage: l, writerUrl: u } = e, [d, f] = (0, B.useState)(gj(e.category) ? e.category : fue), [p, m] = (0, B.useState)("candidates"), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(1), [y, b] = (0, B.useState)(/* @__PURE__ */ new Set()), [x, S] = (0, B.useState)(/* @__PURE__ */ new Map()), [C, w] = (0, B.useState)(/* @__PURE__ */ new Map()), [T, E] = (0, B.useState)(""), D = (0, B.useRef)(null), [O, k] = (0, B.useState)(0), [A, j] = (0, B.useState)(""), M = (0, B.useRef)(!0);(0, B.useEffect)(() => () => {M.current = !1;}, []);- let N = ES({- queryKey: _j,- queryFn: ({ signal: e }) => Ej(e)+ let N = TS({+ queryKey: mj,+ queryFn: ({ signal: e }) => Cj(e)}).data || {sections: {},counts: {}- }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = _ue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = bj(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = yue(vue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({+ }, P = N.sections[d] || [], ee = d === "metadata_fields", F = c, I = mue(P, ee), te = I.some(([e]) => e === p) ? p : "candidates", ne = _j(P, te), re = ne.some((e) => e.key === h) ? h : "", ie = gue(hue(P, te, re), _), ae = ie.rows.map((e) => e.item_key), oe = new Set(ae), se = ne.map((e) => ({...e,rows: e.rows.filter((e) => oe.has(e.item_key))- })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || Tue(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {+ })).filter((e) => e.rows.length), ce = (e) => x.get(e.item_key) || Cue(e), le = P.filter((e) => y.has(e.item_key)), ue = (e) => {let t = new Set(e);b((e) => new Set([...e].filter((e) => !t.has(e)))), S((e) => new Map([...e].filter(([e]) => !t.has(e)))), w((e) => new Map([...e].filter(([e]) => !t.has(e))));}, L = (e, t) => w((n) => new Map(n).set(e, t)), de = (e) => {f(e), m("candidates"), g(""), v(1), b(/* @__PURE__ */ new Set()), S(/* @__PURE__ */ new Map()), w(/* @__PURE__ */ new Map()), E(""), D.current = null, r({ category: e === "metadata_fields" ? "" : e });- }, fe = kS({- mutationFn: ({ row: e, status: t }) => Dj(Tj(d, e, t, ce(e))),+ }, fe = OS({+ mutationFn: ({ row: e, status: t }) => wj(xj(d, e, t, ce(e))),onSuccess: (e, { row: t, status: n }) => {if (!e.ok) {L(t.item_key, e.error || "服务端拒绝了这次判定");return;}- Oj(d, [t.item_key]), ue([t.item_key]), s(Eue(n));+ Tj(d, [t.item_key]), ue([t.item_key]), s(Sj(n));},onError: (e, { row: t }) => L(t.item_key, W(e))- }), pe = kS({+ }), pe = OS({mutationFn: async (e) => {let t = le, n = [], r = [];for (let [i, a] of t.entries()) {if (!M.current) break;E(`正在处理 ${i} / ${t.length}`);try {- let t = await Dj(Tj(d, a, e, ce(a)));+ let t = await wj(xj(d, a, e, ce(a)));if (!t.ok) throw Error(t.error || "服务端未采用该项");n.push(a.item_key);} catch (e) {@@ -48816,7 +48807,7 @@ function Ive(e) {};},onSuccess: ({ status: e, done: t, failures: n }) => {- Oj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));+ Tj(d, t), ue(t), n.forEach(([e, t]) => L(e, t)), E(""), s(`已${e === "approved" ? "通过" : "拒绝"} ${t.length} 项` + (n.length ? `,${n.length} 项未完成` : ""));},onError: (e) => {E(W(e));@@ -48846,7 +48837,7 @@ function Ive(e) {k(e), j("");let t = await o(e);M.current && (k(0), j(t));- }, ge = Aue(N.mirror, l), _e = N.genre_tags || [], ve = {+ }, ge = Due(N.mirror, l), _e = N.genre_tags || [], ve = {openItem: i,openEntity: a,onReveal: he,@@ -48854,7 +48845,7 @@ function Ive(e) {revealNote: A,toast: s};- return /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {+ return /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-5 pb-10",children: [F ? /* @__PURE__ */ (0, V.jsx)(Y, {@@ -48870,13 +48861,13 @@ function Ive(e) {}) : void 0,children: ge}) : null,- /* @__PURE__ */ (0, V.jsx)(Cve, { tags: _e }),- /* @__PURE__ */ (0, V.jsxs)(fk, {+ /* @__PURE__ */ (0, V.jsx)(Sve, { tags: _e }),+ /* @__PURE__ */ (0, V.jsxs)(ck, {orientation: t ? "horizontal" : "vertical",selectedKey: d,onSelectionChange: (e) => {let t = String(e);- yj(t) && de(t);+ gj(t) && de(t);},className: "flex flex-col gap-5 review-split:flex-row-reverse review-split:items-start review-split:gap-6",children: [/* @__PURE__ */ (0, V.jsxs)("div", {@@ -48885,27 +48876,27 @@ function Ive(e) {children: [/* @__PURE__ */ (0, V.jsx)("h2", {id: "reviewcategories",children: "复核分类"- }), /* @__PURE__ */ (0, V.jsx)(pk, {+ }), /* @__PURE__ */ (0, V.jsx)(lk, {"aria-labelledby": "reviewcategories","data-section-items": !0,className: "flex review-split:flex-col review-split:items-stretch",- children: mue.map((e) => {+ children: due.map((e) => {let t = Number(N.counts[e] || 0);- return /* @__PURE__ */ (0, V.jsxs)(mk, {+ return /* @__PURE__ */ (0, V.jsxs)(uk, {id: e,- className: Pve,- children: [vj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {+ className: Nve,+ children: [hj[e], t ? /* @__PURE__ */ (0, V.jsx)("span", {className: "tabular-nums text-caption-1-medium text-text-secondary",children: t.toLocaleString()}) : null]}, e);})})]- }), /* @__PURE__ */ (0, V.jsxs)(hk, {+ }), /* @__PURE__ */ (0, V.jsxs)(dk, {id: d,className: "flex min-w-0 flex-1 flex-col gap-5",children: [- P.length && !F ? /* @__PURE__ */ (0, V.jsx)(xve, {+ P.length && !F ? /* @__PURE__ */ (0, V.jsx)(bve, {groupOptions: I,groupBy: te,onGroupBy: (e) => {@@ -48921,7 +48912,7 @@ function Ive(e) {onSelected: b,selectedRows: le,metadata: ee,- approvable: le.every((e) => xj(d, e)),+ approvable: le.every((e) => vj(d, e)),busy: pe.isPending,feedback: T,onUnifySource: R,@@ -48946,7 +48937,7 @@ function Ive(e) {})]}) : null, /* @__PURE__ */ (0, V.jsx)("div", {className: "review-grid gap-5",- children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Nve, {+ children: e.rows.map((e) => /* @__PURE__ */ (0, V.jsx)(Mve, {category: d,row: e,choice: ce(e),@@ -48954,7 +48945,7 @@ function Ive(e) {selected: y.has(e.item_key),onSelect: (t, n) => b((r) => {let i = new Set(r);- return D.current = xue(i, ae, D.current, e.item_key, t, n), i;+ return D.current = vue(i, ae, D.current, e.item_key, t, n), i;}),locked: F,busy: fe.isPending && fe.variables?.row.item_key === e.item_key,@@ -48969,12 +48960,12 @@ function Ive(e) {handlers: ve}, e.item_key))})]- }, e.key)) : /* @__PURE__ */ (0, V.jsx)(OE, {- icon: iae,+ }, e.key)) : /* @__PURE__ */ (0, V.jsx)(wE, {+ icon: nae,title: "此分类没有待复核项目",children: "可切换分类查看其他候选。"}),- /* @__PURE__ */ (0, V.jsx)(Fve, {+ /* @__PURE__ */ (0, V.jsx)(Pve, {page: ie.page,pages: ie.pages,onPage: v@@ -48987,9 +48978,13 @@ function Ive(e) {}//#endregion//#region src/react/scraping/scraping.ts-var Lve = "/api/scraping", Rve = "/api/scraping/settings", zve = "/api/scraping/check", eR = "/api/scraping/cover", Bve = "/api/scraping/amane-bridge", Vve = "/api/scraping/amane-bridge/check", Hve = "/api/scraping/amane-bridge/rebuild", tR = ["scraping"], nR = ["scraping", "cover"], rR = ["scraping", "amane-bridge"], iR = (e) => G(Lve, e), aR = (e) => G(eR, e), oR = (e) => G(Bve, e);-async function Uve(e) {+var Ive = "/api/scraping", Lve = "/api/scraping/settings", Rve = "/api/scraping/check", $L = "/api/scraping/cover", zve = "/api/scraping/amane-bridge", Bve = "/api/scraping/amane-bridge/check", Vve = "/api/scraping/amane-bridge/rebuild", eR = ["scraping"], tR = ["scraping", "cover"], nR = ["scraping", "amane-bridge"], rR = (e) => G(Ive, e), iR = (e) => G($L, e), aR = (e) => G(zve, e);+async function Hve(e) {await Promise.all([+ z.fetchQuery({+ queryKey: eR,+ queryFn: () => rR(e)+ }),z.fetchQuery({queryKey: tR,queryFn: () => iR(e)@@ -48997,20 +48992,16 @@ async function Uve(e) {z.fetchQuery({queryKey: nR,queryFn: () => aR(e)- }),- z.fetchQuery({- queryKey: rR,- queryFn: () => oR(e)})]);}-function Wve(e, t) {+function Uve(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 Gve = [["peach", "Peach 代理"], ["direct", "直接连接"]], sR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];-function cR({ source: e }) {+var Wve = [["peach", "Peach 代理"], ["direct", "直接连接"]], oR = [["paste", "粘贴 Cookie"], ["file", "导入文件"]];+function sR({ source: e }) {let t = ["javten","fc2ppvdb",@@ -49028,16 +49019,16 @@ function cR({ source: e }) {className: "size-4 shrink-0 rounded-sm object-contain"});}-function Kve() {- return /* @__PURE__ */ (0, V.jsx)(cR, { source: "github" });+function Gve() {+ return /* @__PURE__ */ (0, V.jsx)(sR, { source: "github" });}-function qve({ source: e, toast: t }) {- let [n, r] = (0, B.useState)(e.network), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(sR[0][0]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = (0, B.useRef)(null);+function Kve({ source: e, toast: t }) {+ let [n, r] = (0, B.useState)(e.network), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(oR[0][0]), [u, d] = (0, B.useState)(""), [f, p] = (0, B.useState)(""), m = (0, B.useRef)(null);function h() {a(""), s(""), d(""), p(""), m.current && (m.current.value = "");}- let g = kS({- mutationFn: (t) => K(Rve, {+ let g = OS({+ mutationFn: (t) => K(Lve, {source: e.source,network: n,cookie: i,@@ -49045,12 +49036,12 @@ function qve({ source: e, toast: t }) {revoke: t}),onSuccess: (e, n) => {- z.setQueryData(tR, (t) => t && {+ z.setQueryData(eR, (t) => t && {...t,sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)}), h(), t(n ? "Cookie 已撤销" : "来源设置已保存");}- }), _ = kS({ mutationFn: () => K(zve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {+ }), _ = OS({ mutationFn: () => K(Rve, { source: e.source }) }), v = g.isPending || _.isPending, y = (e) => {e.preventDefault(), !v && (_.reset(), g.mutate(!1));}, b = () => {v || (_.reset(), g.mutate(!0));@@ -49075,43 +49066,43 @@ function qve({ source: e, toast: t }) {}}let C = f || (g.error ? W(g.error) : "") || (_.error ? W(_.error) : ""), w = _.data?.results ?? [], T = n === "peach" || e.accepts_cookie || e.browser || !!C || w.length > 0;- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: e.label,onSubmit: y,aside: /* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 items-center gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(cR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(zk, {+ children: [/* @__PURE__ */ (0, V.jsx)(sR, { source: e.source }), /* @__PURE__ */ (0, V.jsx)(Ik, {href: e.login,children: e.login})]}),children: [- /* @__PURE__ */ (0, V.jsxs)(Nk, { children: [/* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsxs)(Ak, { children: [/* @__PURE__ */ (0, V.jsx)(Ek, {label: "来源性质",children: e.nature || "公开页面"- }), /* @__PURE__ */ (0, V.jsx)(kk, {+ }), /* @__PURE__ */ (0, V.jsx)(Ek, {label: "连接方式",- children: /* @__PURE__ */ (0, V.jsx)(Tk, {+ children: /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "连接方式",selectedKey: n,onSelectionChange: (e) => {e !== null && r(String(e));},- children: Gve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: Wve.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: t}, e))})})] }),- T ? /* @__PURE__ */ (0, V.jsxs)(Pk, {+ T ? /* @__PURE__ */ (0, V.jsxs)(jk, {divided: !0,children: [n === "peach" ? /* @__PURE__ */ (0, V.jsx)("span", {className: "self-start",- children: /* @__PURE__ */ (0, V.jsx)(jk, {+ children: /* @__PURE__ */ (0, V.jsx)(Ok, {href: "/configuration#peachProxy",size: "small",- trailingIcon: fT,+ trailingIcon: cT,children: "配置 Peach 代理"})}) : null,@@ -49124,20 +49115,20 @@ function qve({ source: e, toast: t }) {className: "text-body-2-regular text-text-secondary",children: e.cookie_saved ? "Cookie 已保存;登录是否有效要到抓取时才知道。" : "需要登录时,任选一种方式提供 Cookie。"}),- /* @__PURE__ */ (0, V.jsx)(hA, {+ /* @__PURE__ */ (0, V.jsx)(fA, {"aria-label": "提供 Cookie 的方式(二选一)",value: c,onChange: (e) => {l(e), h();},- className: gA,- children: sR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(RO, {+ className: pA,+ children: oR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(PO, {value: e,- className: _A,+ className: mA,children: t}, e))}),- c === "paste" ? /* @__PURE__ */ (0, V.jsx)(bk, {+ c === "paste" ? /* @__PURE__ */ (0, V.jsx)(_k, {type: "password",label: "Cookie",autoComplete: "off",@@ -49146,7 +49137,7 @@ function qve({ source: e, toast: t }) {}) : /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "Netscape Cookie 文件(.txt)" }),+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "Netscape Cookie 文件(.txt)" }),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-3",children: [/* @__PURE__ */ (0, V.jsx)(J, {@@ -49172,14 +49163,14 @@ function qve({ source: e, toast: t }) {]})] }) : null,- C ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: C }) : null,+ C ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: C }) : null,w.map((t) => /* @__PURE__ */ (0, V.jsx)(Y, {tone: t.ok ? "success" : "error",- children: Wve(t, e.label)+ children: Uve(t, e.label)}, t.label))]}) : null,- /* @__PURE__ */ (0, V.jsxs)(Fk, { children: [+ /* @__PURE__ */ (0, V.jsxs)(Mk, { children: [e.accepts_cookie && e.cookie_saved ? /* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",onClick: b,@@ -49201,26 +49192,26 @@ function qve({ source: e, toast: t }) {]});}-function Jve({ toast: e }) {- let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = zM({- queryKey: nR,- queryFn: ({ signal: e }) => aR(e),- start: () => K(eR, { code: t }),+function qve({ toast: e }) {+ let [t, n] = (0, B.useState)(""), { running: r, outcome: i, start: a } = IM({+ queryKey: tR,+ queryFn: ({ signal: e }) => iR(e),+ start: () => K($L, { code: t }),onFinish: (t) => {t.status === "complete" && e(t.result || "封面采集完成");}}), o = (e) => {e.preventDefault(), !(r || a.isPending || !t.trim()) && a.mutate();}, s = a.error ? W(a.error) : i?.status === "failed" ? i.error || "采集未取得" : "";- return /* @__PURE__ */ (0, V.jsx)(Mk, {+ return /* @__PURE__ */ (0, V.jsx)(kk, {title: "高清封面",onSubmit: o,- children: /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [+ children: /* @__PURE__ */ (0, V.jsxs)(jk, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-end gap-2",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 flex-1",- children: /* @__PURE__ */ (0, V.jsx)(bk, {+ children: /* @__PURE__ */ (0, V.jsx)(_k, {"aria-label": "馆藏番号",isRequired: !0,isDisabled: r,@@ -49235,7 +49226,7 @@ function Jve({ toast: e }) {children: "抓取封面"})]}),- r ? /* @__PURE__ */ (0, V.jsx)(kE, { label: "正在抓取封面" }) : null,+ r ? /* @__PURE__ */ (0, V.jsx)(TE, { label: "正在抓取封面" }) : null,s ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: s@@ -49247,11 +49238,11 @@ function Jve({ toast: e }) {] })});}-function Yve({ toast: e }) {- let { query: t, running: n, outcome: r, start: i } = zM({- queryKey: rR,- queryFn: ({ signal: e }) => oR(e),- start: () => K(Hve, {}),+function Jve({ toast: e }) {+ let { query: t, running: n, outcome: r, start: i } = IM({+ queryKey: nR,+ queryFn: ({ signal: e }) => aR(e),+ start: () => K(Vve, {}),jobOf: (e) => e.job,withJob: (e, t) => e && {...e,@@ -49260,45 +49251,45 @@ function Yve({ toast: e }) {onFinish: (t) => {t.status === "complete" && e(t.result || "amane 桥已重建");}- }), a = kS({ mutationFn: () => K(Vve, {}) }), o = t.data;- if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(Mk, {+ }), a = OS({ mutationFn: () => K(Bve, {}) }), o = t.data;+ if (!o) return t.error ? /* @__PURE__ */ (0, V.jsx)(kk, {title: "amane",- children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ children: /* @__PURE__ */ (0, V.jsx)(jk, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: W(t.error)}) })}) : null;let s = n || i.isPending || a.isPending, c = i.error ? W(i.error) : a.error ? W(a.error) : r?.status === "failed" ? r.error || "重建未完成" : "";- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "amane",- aside: /* @__PURE__ */ (0, V.jsx)(zk, {+ aside: /* @__PURE__ */ (0, V.jsx)(Ik, {href: o.repository,- leadingIcon: Kve,+ leadingIcon: Gve,children: o.repository}),children: [- /* @__PURE__ */ (0, V.jsxs)(Bk, { children: [- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "已安装版本",children: o.installed_version || "未安装"}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "上游最新版本",children: a.data?.latest ?? "尚未检查"}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "运行环境",children: o.installed ? "已安装" : "未安装"}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "内置站点",children: o.sites.map((e) => e.label).join("、")})] }),- /* @__PURE__ */ (0, V.jsxs)(Pk, {+ /* @__PURE__ */ (0, V.jsxs)(jk, {divided: !0,children: [- /* @__PURE__ */ (0, V.jsxs)(Ik, { children: [+ /* @__PURE__ */ (0, V.jsxs)(Nk, { children: ["已安装版本:",o.installed_version || "未安装","。amane(",@@ -49307,7 +49298,7 @@ function Yve({ toast: e }) {o.version," 版本,不随上游自动升级。"] }),- n ? /* @__PURE__ */ (0, V.jsx)(kE, { label: "正在重建运行环境" }) : null,+ n ? /* @__PURE__ */ (0, V.jsx)(TE, { label: "正在重建运行环境" }) : null,c ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: c@@ -49318,7 +49309,7 @@ function Yve({ toast: e }) {}) : null]}),- /* @__PURE__ */ (0, V.jsxs)(Fk, { children: [/* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsxs)(Mk, { children: [/* @__PURE__ */ (0, V.jsx)(J, {variant: "secondary",onClick: () => {s || a.mutate();@@ -49335,23 +49326,23 @@ function Yve({ toast: e }) {]});}-function Xve({ toast: e }) {- let t = ES({- queryKey: tR,- queryFn: ({ signal: e }) => iR(e)+function Yve({ toast: e }) {+ let t = TS({+ queryKey: eR,+ queryFn: ({ signal: e }) => rR(e)}), n = t.data;- return n ? /* @__PURE__ */ (0, V.jsxs)(AE, { children: [+ return n ? /* @__PURE__ */ (0, V.jsxs)(EE, { children: [/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-2-regular text-text-secondary",children: "高清图片可能要经代理才能下载,先检查连接。"}),- /* @__PURE__ */ (0, V.jsx)(Jve, { toast: e }),- (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(qve, {+ /* @__PURE__ */ (0, V.jsx)(qve, { toast: e }),+ (n.sources || []).map((t) => /* @__PURE__ */ (0, V.jsx)(Kve, {source: t,toast: e}, t.source)),- /* @__PURE__ */ (0, V.jsx)(Yve, { toast: e })- ] }) : /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ /* @__PURE__ */ (0, V.jsx)(Jve, { toast: e })+ ] }) : /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "采集来源读取失败",children: t.error ? W(t.error) : "读取采集来源失败"@@ -49359,21 +49350,21 @@ function Xve({ toast: e }) {}//#endregion//#region src/react/search/search.ts-var lR = /* @__PURE__ */ new Set([+var cR = /* @__PURE__ */ new Set(["performer","creator","studio","agency","series"-]), uR = /* @__PURE__ */ new Set(["asset"]), dR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();-function Zve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {+]), lR = /* @__PURE__ */ new Set(["asset"]), uR = (e) => String(e ?? "").normalize("NFKC").trim().toLocaleLowerCase();+function Xve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: a, kind: o }) {let s = 0, c = [], l = (e) => {let t = {...e,index: s++};return c.push(t), t;- }, u = t.filter((t) => !e || dR(t).includes(dR(e)));+ }, u = t.filter((t) => !e || uR(t).includes(uR(e)));if (!e) {let e = u.length ? {label: "搜索记录",@@ -49411,7 +49402,7 @@ function Zve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: akind: e.kind,item: t}))- }), h = p.filter((e) => !uR.has(e.kind)).map(m), g = p.filter((e) => uR.has(e.kind)).map(m);+ }), h = p.filter((e) => !lR.has(e.kind)).map(m), g = p.filter((e) => lR.has(e.kind)).map(m);return {tabs: d && a.length > 1 ? [...a] : null,recent: f,@@ -49420,17 +49411,17 @@ function Zve({ query: e, history: t, picks: n, suggestFor: r, groups: i, tabs: aoptions: c};}-function Qve(e, t, n = Math.random) {+function Zve(e, t, n = Math.random) {let r = [...e];for (let e = r.length - 1; e > 0; --e) {let t = Math.floor(n() * (e + 1));[r[e], r[t]] = [r[t], r[e]];}- return r.filter((e) => !t.some((t) => dR(t) === dR(e))).slice(0, 5);+ return r.filter((e) => !t.some((t) => uR(t) === uR(e))).slice(0, 5);}//#endregion//#region src/react/search/search-page.tsx-var $ve = () => ({+var Qve = () => ({history: [],pool: [],poolRequest: 0,@@ -49445,7 +49436,7 @@ var $ve = () => ({active: -1,reveal: !1,rewind: !1-}), fR = (e) => Zve({+}), dR = (e) => Xve({query: e.query,history: e.history,picks: e.picks,@@ -49453,18 +49444,18 @@ var $ve = () => ({groups: e.groups,tabs: e.tabs,kind: e.kind-}), eye = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), pR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {+}), $ve = (e) => !!(e.tabs || e.recent || e.left.length || e.right.length), fR = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })});-function tye(e) {+function eye(e) {let t = (0, B.useRef)(e);t.current = e;let n = (0, B.useRef)(null);- n.current ??= $ve();+ n.current ??= Qve();let r = n.current, i = (0, B.useRef)(null), [, a] = (0, B.useReducer)((e) => e + 1, 0), o = (0, B.useRef)(null);- o.current ??= nye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);+ o.current ??= tye(() => t.current, r, () => i.current?.closest("[data-search-menu]") ?? null, a);let s = o.current;(0, B.useLayoutEffect)(() => {let { input: e } = t.current, n = (e) => s.input(e), i = () => t.current.helpers.composing(), a = (e) => s.key(e), o = () => s.focus();@@ -49477,7 +49468,7 @@ function tye(e) {let e = i.current?.closest("[data-search-menu]");r.rewind && e && (e.scrollTop = 0), r.rewind = !1, r.reveal && i.current?.querySelector("[data-search-option][data-active]")?.scrollIntoView({ block: "nearest" }), r.reveal = !1;});- let c = fR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(iye, {+ let c = dR(r), l = e.historyLimit, u = (t) => /* @__PURE__ */ (0, V.jsx)(rye, {entry: t,active: t.index === r.active,helpers: e.helpers,@@ -49497,7 +49488,7 @@ function tye(e) {"data-search-root": "","data-history-limit": l,children: [- c.tabs ? /* @__PURE__ */ (0, V.jsx)(rye, {+ c.tabs ? /* @__PURE__ */ (0, V.jsx)(nye, {tabs: c.tabs,kind: r.kind,onPick: s.pickKind,@@ -49518,7 +49509,7 @@ function tye(e) {]});}-function nye(e, t, n, r) {+function tye(e, t, n, r) {let i = () => e().input, a = () => document.activeElement === i(), o = () => t.history.slice(0, e().historyLimit), s = (n) => {t.history = n.slice(0, e().historyLimit);}, c = async () => {@@ -49532,7 +49523,7 @@ function nye(e, t, n, r) {t.history = Array.isArray(e.items) ? e.items.map(String) : [];} catch {}}, l = (t) => {- !t || !e().historyLimit || (s([t, ...o().filter((e) => dR(e) !== dR(t))]), K("/api/search-history", { query: t }).catch(() => null));+ !t || !e().historyLimit || (s([t, ...o().filter((e) => uR(e) !== uR(t))]), K("/api/search-history", { query: t }).catch(() => null));}, u = async () => {let n = ++t.poolRequest;t.pool = [];@@ -49565,9 +49556,9 @@ function nye(e, t, n, r) {let i = n();i && e().helpers.dismiss(i), t.active = -1, r();}, m = () => {- t.query = i().value.trim(), t.picks = t.query ? [] : Qve(t.pool, o()), t.active = -1;+ t.query = i().value.trim(), t.picks = t.query ? [] : Zve(t.pool, o()), t.active = -1;let a = n();- a && (eye(fR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();+ a && ($ve(dR(t)) ? e().helpers.present(a) : e().helpers.dismiss(a)), r();}, h = () => {t.active = -1, t.kind = "", clearTimeout(t.timer);let e = i().value.trim();@@ -49579,7 +49570,7 @@ function nye(e, t, n, r) {!n || e === t.kind || (t.kind = e, clearTimeout(t.timer), m(), t.rewind = !0, d(n, e).then(() => {a() && t.kind === e && m();}));- }, _ = () => f() ? fR(t).options : [], v = (e) => {+ }, _ = () => f() ? dR(t).options : [], v = (e) => {let n = _();return n.length ? (t.active = (t.active + e + n.length) % n.length, t.reveal = !0, r(), !0) : !1;}, y = (t, n) => {@@ -49592,7 +49583,7 @@ function nye(e, t, n, r) {i().blur(), e().actions.openItem(t.item.id);return;}- if (t.type === "suggest" && lR.has(t.kind)) {+ if (t.type === "suggest" && cR.has(t.kind)) {b(t.kind, t.value);return;}@@ -49644,12 +49635,12 @@ function nye(e, t, n, r) {await K("/api/search-history", {operation: "remove",query: e- }).catch(() => null), s(o().filter((t) => dR(t) !== dR(e))), t.active = -1, r();+ }).catch(() => null), s(o().filter((t) => uR(t) !== uR(e))), t.active = -1, r();},pickKind: g};}-function rye({ tabs: e, kind: t, onPick: n, wire: r }) {+function nye({ tabs: e, kind: t, onPick: n, wire: r }) {let i = (0, B.useRef)(null);(0, B.useLayoutEffect)(() => {r(i.current);@@ -49661,7 +49652,7 @@ function rye({ tabs: e, kind: t, onPick: n, wire: r }) {"aria-selected": t === e,onMouseDown: (e) => e.preventDefault(),onClick: () => n(e),- children: [r, i ? /* @__PURE__ */ (0, V.jsx)(EL, { value: i }) : null]+ children: [r, i ? /* @__PURE__ */ (0, V.jsx)(TL, { value: i }) : null]}, e || "all");return /* @__PURE__ */ (0, V.jsxs)("div", {ref: i,@@ -49671,8 +49662,8 @@ function rye({ tabs: e, kind: t, onPick: n, wire: r }) {children: [a("", "全部"), e.map((e) => a(e.kind, e.label, e.total))]});}-var mR = (e) => e.preventDefault();-function iye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {+var pR = (e) => e.preventDefault();+function rye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove: a }) {let o = {"data-search-value": e.value,"data-active": t ? "" : void 0,@@ -49684,28 +49675,28 @@ function iye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:"data-search-option": "",...o,children: [- /* @__PURE__ */ (0, V.jsx)(pR, { name: e.type === "history" ? "history" : "sparkles" }),+ /* @__PURE__ */ (0, V.jsx)(fR, { name: e.type === "history" ? "history" : "sparkles" }),/* @__PURE__ */ (0, V.jsx)("span", { children: e.value }),e.type === "history" ? /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-remove-history": e.value,"aria-label": `删除历史 ${e.value}`,- onMouseDown: mR,+ onMouseDown: pR,onClick: (t) => {t.stopPropagation(), a(e.value);},- children: /* @__PURE__ */ (0, V.jsx)(pR, { name: "x" })+ children: /* @__PURE__ */ (0, V.jsx)(fR, { name: "x" })}) : null]});- let { item: s, kind: c } = e, l = lR.has(c) ? c : void 0;+ let { item: s, kind: c } = e, l = cR.has(c) ? c : void 0;if (c === "asset") {let e = [s.who, s.code ? s.title : ""].filter(Boolean).join(" · ");return /* @__PURE__ */ (0, V.jsxs)("div", {"data-search-option": "work","data-open-item": s.id,...o,- children: [/* @__PURE__ */ (0, V.jsx)(hR, {+ children: [/* @__PURE__ */ (0, V.jsx)(mR, {card: s.card,helpers: n}), /* @__PURE__ */ (0, V.jsxs)("span", {@@ -49731,7 +49722,7 @@ function iye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:"data-open-entity": l,...o,children: [- /* @__PURE__ */ (0, V.jsx)(gR, {+ /* @__PURE__ */ (0, V.jsx)(hR, {item: s,kind: c}),@@ -49751,11 +49742,11 @@ function iye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:type: "button","data-open-work": e.id,"aria-label": `打开 ${e.code || s.value}`,- onMouseDown: mR,+ onMouseDown: pR,onClick: (t) => {t.stopPropagation(), i(e);},- children: /* @__PURE__ */ (0, V.jsx)(hR, {+ children: /* @__PURE__ */ (0, V.jsx)(mR, {card: e,helpers: n})@@ -49769,7 +49760,7 @@ function iye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:"data-open-entity": l,...o,children: [- c === "studio" || c === "agency" ? /* @__PURE__ */ (0, V.jsx)(gR, {+ c === "studio" || c === "agency" ? /* @__PURE__ */ (0, V.jsx)(hR, {item: s,kind: c}) : null,@@ -49782,13 +49773,13 @@ function iye({ entry: e, active: t, helpers: n, onPick: r, onPeek: i, onRemove:]});}-function hR({ card: e, helpers: t }) {+function mR({ card: e, helpers: t }) {return /* @__PURE__ */ (0, V.jsx)("span", {"data-search-pic": "",dangerouslySetInnerHTML: { __html: t.coverHtml(e) }});}-function gR({ item: e, kind: t }) {+function hR({ item: e, kind: t }) {let n = {id: e.entity_id,has_image: e.has_image,@@ -49803,51 +49794,51 @@ function gR({ item: e, kind: t }) {}//#endregion//#region src/configuration-endpoints.ts-var _R = "/api/configuration", aye = "/api/pick-folder", vR = ["configuration"], yR = (e) => G(_R, e);-async function bR(e) {+var gR = "/api/configuration", iye = "/api/pick-folder", _R = ["configuration"], vR = (e) => G(gR, e);+async function yR(e) {await z.fetchQuery({- queryKey: vR,- queryFn: () => yR(e)+ queryKey: _R,+ queryFn: () => vR(e)});}//#endregion//#region src/react/settings/indexer-settings.tsx-var xR = "/api/configuration/indexers";-function oye({ receipt: e }) {- let t = ES({+var bR = "/api/configuration/indexers";+function aye({ receipt: e }) {+ let t = TS({queryKey: ["indexers"],- queryFn: ({ signal: e }) => G(xR, e)+ queryFn: ({ signal: e }) => G(bR, e)});- return t.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(sye, {+ return t.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: W(t.error) }) : t.data ? /* @__PURE__ */ (0, V.jsx)(oye, {initial: t.data,receipt: e}) : null;}-function sye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.indexers), i = NE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+function oye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.indexers), i = kE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "资源索引器",onSubmit: (e) => {- e.preventDefault(), i.run("save", (e) => K(xR, { indexers: n }, "POST", e), (e) => {+ e.preventDefault(), i.run("save", (e) => K(bR, { indexers: n }, "POST", e), (e) => {r(e.indexers), t("已保存索引器");});},- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "接入 Prowlarr 或 Jackett 后,活动页「云下载」可以按番号搜磁力。 Prowlarr 的 Torznab 地址在索引器列表里每个索引器的详情中复制,API key 在 Settings → General。" }),+ children: [/* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "接入 Prowlarr 或 Jackett 后,活动页「云下载」可以按番号搜磁力。 Prowlarr 的 Torznab 地址在索引器列表里每个索引器的详情中复制,API key 在 Settings → General。" }),n.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-col gap-4 border-t border-separator-border pt-4",children: [- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: `索引器 ${t + 1} 名称`,value: e.name,maxLength: 80,isDisabled: !!i.busy,onChange: (t) => a(e.key, { name: t })}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: `索引器 ${t + 1} Torznab 地址`,value: e.url,type: "url",@@ -49856,7 +49847,7 @@ function sye({ initial: e, receipt: t }) {isDisabled: !!i.busy,onChange: (t) => a(e.key, { url: t })}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: `索引器 ${t + 1} API key`,type: "password",autoComplete: "new-password",@@ -49865,13 +49856,13 @@ function sye({ initial: e, receipt: t }) {isDisabled: !!i.busy,onChange: (t) => a(e.key, { api_key: t })}),- /* @__PURE__ */ (0, V.jsx)(UM, {+ /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: e.enabled,isDisabled: !!i.busy,onChange: (t) => a(e.key, { enabled: t }),children: "启用"}),- e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(UM, {+ e.api_key_set ? /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: !!e.clear_api_key,isDisabled: !!i.busy,onChange: (t) => a(e.key, { clear_api_key: t }),@@ -49885,8 +49876,8 @@ function sye({ initial: e, receipt: t }) {}) })]}, e.key)),- i.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, V.jsxs)(Fk, { children: [/* @__PURE__ */ (0, V.jsx)(J, {+ i.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, V.jsxs)(Mk, { children: [/* @__PURE__ */ (0, V.jsx)(J, {type: "button",disabled: !!i.busy || n.length >= e.max_indexers,onClick: () => r([...n, {@@ -49906,24 +49897,24 @@ function sye({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/download-settings.tsx-var cye = "/api/configuration/downloads", SR = "/api/configuration/downloads/check", lye = "/api/configuration/downloads/folder", uye = "/api/configuration/downloads/pikpak/login", dye = "/api/configuration/downloads/pikpak/logout", CR = "/api/configuration/downloads/pikpak/browser-login", wR = 2e3;-function fye({ initial: e, receipt: t }) {+var sye = "/api/configuration/downloads", xR = "/api/configuration/downloads/check", cye = "/api/configuration/downloads/folder", lye = "/api/configuration/downloads/pikpak/login", uye = "/api/configuration/downloads/pikpak/logout", SR = "/api/configuration/downloads/pikpak/browser-login", CR = 2e3;+function dye({ initial: e, receipt: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-6",- children: [/* @__PURE__ */ (0, V.jsx)(pye, {+ children: [/* @__PURE__ */ (0, V.jsx)(fye, {initial: e,receipt: t- }), /* @__PURE__ */ (0, V.jsx)(oye, { receipt: t })]+ }), /* @__PURE__ */ (0, V.jsx)(aye, { receipt: t })]});}-function pye({ initial: e, receipt: t }) {+function fye({ initial: e, receipt: t }) {let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), o = n.pikpak.logged_in || !!i.trim();- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(mye, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(pye, {state: n,settle: r,receipt: t,pikpakAccount: o- }), /* @__PURE__ */ (0, V.jsx)(gye, {+ }), /* @__PURE__ */ (0, V.jsx)(hye, {state: n,settle: r,receipt: t,@@ -49931,8 +49922,8 @@ function pye({ initial: e, receipt: t }) {setUsername: a})] });}-function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {- let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(TR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = NE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({+function pye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {+ let [i, a] = (0, B.useState)(e.config), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(String(e.config.wait_hours)), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(""), [m, h] = (0, B.useState)(wR), [g, _] = (0, B.useState)(""), [v, y] = (0, B.useState)(!1), b = kE(), x = (e) => i.targets[e] ?? "", S = (e, t) => a({...i,targets: {...i.targets,@@ -49961,8 +49952,8 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {target: !e.config.targets[115],root: !e.config.pikpak_root};- b.run("auto", (e) => G(SR, e), (e) => w(e, t), (e) => _(W(e)));- }, []), /* @__PURE__ */ (0, V.jsxs)(Mk, {+ b.run("auto", (e) => G(xR, e), (e) => w(e, t), (e) => _(W(e)));+ }, []), /* @__PURE__ */ (0, V.jsxs)(kk, {title: "云下载",onSubmit: (e) => {if (e.preventDefault(), C) {@@ -49975,19 +49966,19 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {token: o,pikpak_account: r};- b.run("save", (e) => K(cye, f, "POST", e), (e) => {+ b.run("save", (e) => K(sye, f, "POST", e), (e) => {let { report: r, ...i } = e;t(i), a(i.config), l(String(i.config.wait_hours)), s(""), r ? w(r, {address: !i.config.clouddrive_address,target: u,root: !i.config.pikpak_root- }, i.config.targets[115] ?? "") : (d(null), p(""), h(TR), y(!1), _("")), n("已保存配置");+ }, i.config.targets[115] ?? "") : (d(null), p(""), h(wR), y(!1), _("")), n("已保存配置");}, (e) => _(W(e)));},children: [- /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "把磁力交给 115 或 PikPak 离线下载,下完由推送发现自动入库。" }),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "把磁力交给 115 或 PikPak 离线下载,下完由推送发现自动入库。" }),+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "CloudDrive2 地址",placeholder: "留空自动探测本机 19798 / 29798",autoComplete: "off",@@ -49999,7 +49990,7 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {clouddrive_address: e})}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "CloudDrive2 API 令牌",type: "password",autoComplete: "off",@@ -50010,7 +50001,7 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {isDisabled: !e.available,onChange: s}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "115 目标目录",placeholder: "留空时按推送发现自动填写",autoComplete: "off",@@ -50022,7 +50013,7 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {isDisabled: !e.available,onChange: (e) => S("115", e)}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "PikPak 目标目录",placeholder: "以 / 开头的网盘路径",autoComplete: "off",@@ -50034,7 +50025,7 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(Tk, {+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "PikPak 根目录对应的媒体文件夹" }), e.pikpak_roots.length ? /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "PikPak 根目录对应的媒体文件夹",selectedKey: i.pikpak_root || null,isDisabled: !e.available,@@ -50043,13 +50034,13 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {...i,pikpak_root: e === null ? "" : String(e)}),- children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: e.pikpak_roots.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: e}, e))- }) : /* @__PURE__ */ (0, V.jsx)(Ik, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]+ }) : /* @__PURE__ */ (0, V.jsx)(Nk, { children: "媒体文件夹里还没有「CloudDrive · PikPak」来源。在上方添加 PikPak 的挂载目录后,这里才能选。" })]}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "等待上限(小时)",type: "number",inputMode: "numeric",@@ -50060,11 +50051,11 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {onChange: l})] }),- b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ b.busy === "auto" ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(kE, { label: "正在检查 CloudDrive2" })+ children: /* @__PURE__ */ (0, V.jsx)(TE, { label: "正在检查 CloudDrive2" })}) : null,- u ? /* @__PURE__ */ (0, V.jsx)(hye, {+ u ? /* @__PURE__ */ (0, V.jsx)(mye, {report: u,detected: f,suggested: m,@@ -50076,7 +50067,7 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("folder", (e) => K(lye, t, "POST", e), (t) => {+ b.run("folder", (e) => K(cye, t, "POST", e), (t) => {d(t), h((t) => ({...t,target: {@@ -50088,11 +50079,11 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {} : void 0,creating: b.busy === "folder"}) : null,- g || b.error ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ g || b.error ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Lk, { children: g || b.error })+ children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: g || b.error })}) : null,- /* @__PURE__ */ (0, V.jsxs)(Fk, {+ /* @__PURE__ */ (0, V.jsxs)(Mk, {status: e.available ? void 0 : "云下载只在账本写入端可用。",children: [/* @__PURE__ */ (0, V.jsx)(J, {onClick: () => {@@ -50107,7 +50098,7 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {pikpak_root: i.pikpak_root,pikpak_account: r};- b.run("check", (e) => K(SR, t, "POST", e), (t) => w(t, e), (e) => _(W(e)));+ b.run("check", (e) => K(xR, t, "POST", e), (t) => w(t, e), (e) => _(W(e)));},disabled: !e.available,...X(b.busy === "check"),@@ -50122,25 +50113,25 @@ function mye({ state: e, settle: t, receipt: n, pikpakAccount: r }) {]});}-var TR = {+var wR = {target: null,root: "",saved: !1};-function hye({ report: e, detected: t, suggested: n, create: r, creating: i }) {+function mye({ report: e, detected: t, suggested: n, create: r, creating: i }) {let a = n.target;- return /* @__PURE__ */ (0, V.jsxs)(Pk, {+ return /* @__PURE__ */ (0, V.jsxs)(jk, {divided: !0,- children: [/* @__PURE__ */ (0, V.jsxs)(Bk, { children: [- t ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(Lk, { children: [+ t ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "CloudDrive2 地址",children: `探测到 ${t},保存配置后生效`}) : null,- a?.exists ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ a?.exists ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "115 目标目录",children: n.saved ? `已按推送发现填入 ${a.path}` : `按推送发现填入 ${a.path},保存配置后生效`}) : null,- a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(Vk, {+ a && !a.exists ? /* @__PURE__ */ (0, V.jsxs)(Rk, {term: "115 目标目录",children: [`${a.path} 不存在`, r ? /* @__PURE__ */ (0, V.jsx)(J, {size: "small",@@ -50149,49 +50140,49 @@ function hye({ report: e, detected: t, suggested: n, create: r, creating: i }) {children: "新建这个目录"}) : null]}) : null,- n.root ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ n.root ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "PikPak 根目录",children: `按推送发现填入 ${n.root},保存配置后生效`}) : null,- e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ e.permissions.length ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "离线权限",children: e.missing.length ? `缺少:${e.missing.join("、")}` : "齐全"}) : null,- e.folder ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ e.folder ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "目标目录",children: e.folder.can_offline ? `${e.folder.path} 可以离线下载` : `${e.folder.path} 不支持离线下载`}) : null,- e.quota ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ e.quota ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "115 离线配额",children: `本月还剩 ${e.quota.left} 条,共 ${e.quota.total} 条`}) : null- ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(Lk, { children: e }, e))]+ ] }), e.problems.map((e) => /* @__PURE__ */ (0, V.jsx)(Pk, { children: e }, e))]});}-function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {- let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = NE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";+function hye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {+ let [a, o] = (0, B.useState)(""), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(""), h = kE(), g = e.pikpak, _ = e.pikpak_browser, v = _.state === "waiting";(0, B.useEffect)(() => {if (!v) return;let e = new AbortController(), r, i = async () => {try {- let r = await G(CR, e.signal);+ let r = await G(SR, e.signal);if (e.signal.aborted || (t(r), r.pikpak_browser.state === "done" ? n("已登录 PikPak") : r.pikpak_browser.state !== "waiting" && m(r.pikpak_browser.message), r.pikpak_browser.state !== "waiting")) return;} catch (t) {if (e.signal.aborted) return;f(W(t));}- r = setTimeout(i, wR);+ r = setTimeout(i, CR);};- return r = setTimeout(i, wR), () => {+ return r = setTimeout(i, CR), () => {e.abort(), clearTimeout(r);};}, [v]);let y = () => {- m(""), h.run("browser", (e) => K(CR, {}, "POST", e), (e) => {+ m(""), h.run("browser", (e) => K(SR, {}, "POST", e), (e) => {t(e), f("");}, (e) => f(W(e)));}, b = () => {- h.run("cancel", (e) => K(`${CR}/cancel`, {}, "POST", e), (e) => {+ h.run("cancel", (e) => K(`${SR}/cancel`, {}, "POST", e), (e) => {t(e), f(""), m(e.pikpak_browser.message);}, (e) => f(W(e)));}, x = (e) => {@@ -50201,7 +50192,7 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {password: a,remember: s};- h.run("login", (e) => K(uye, i, "POST", e), (e) => {+ h.run("login", (e) => K(lye, i, "POST", e), (e) => {if (t(e.settings), f(""), !e.ok) {u(e.captcha_url ?? "");return;@@ -50209,11 +50200,11 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {u(""), o(""), n("已登录 PikPak");}, (e) => f(W(e)));}, S = () => {- h.run("logout", (e) => K(dye, {}, "POST", e), (e) => {+ h.run("logout", (e) => K(uye, {}, "POST", e), (e) => {t(e), f(""), n("已登出 PikPak");}, (e) => f(W(e)));}, C = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "账号",placeholder: "邮箱或手机号",autoComplete: "username",@@ -50222,7 +50213,7 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {isDisabled: !e.available,onChange: i}),- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "密码",type: "password",autoComplete: "current-password",@@ -50231,7 +50222,7 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {isDisabled: !e.available,onChange: o}),- /* @__PURE__ */ (0, V.jsx)(UM, {+ /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: s,isDisabled: !e.available,onChange: c,@@ -50242,7 +50233,7 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {title: "需要人机验证",extra: /* @__PURE__ */ (0, V.jsx)("div", {className: "pt-2",- children: /* @__PURE__ */ (0, V.jsx)(zk, {+ children: /* @__PURE__ */ (0, V.jsx)(Ik, {href: l,children: "打开 PikPak 验证页"})@@ -50255,31 +50246,31 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {...X(h.busy === "login"),children: "登录"}), T = _.state === "timeout" || _.state === "failed";- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "PikPak 账号",onSubmit: x,children: [- g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(Bk, { children: [/* @__PURE__ */ (0, V.jsx)(Vk, {+ g.logged_in ? /* @__PURE__ */ (0, V.jsxs)(Lk, { children: [/* @__PURE__ */ (0, V.jsx)(Rk, {term: "账号",children: g.username || "已登录"- }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ }), g.method === "browser" ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "登录方式",children: "浏览器登录,由 Peach 续期"- }) : /* @__PURE__ */ (0, V.jsx)(Vk, {+ }) : /* @__PURE__ */ (0, V.jsx)(Rk, {term: "密码",children: g.remember ? "已保存,登录过期时自动重新登录" : "未保存,登录过期后需要回到这里重新登录"- })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),- p ? T ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: p }) : /* @__PURE__ */ (0, V.jsx)(Ik, {+ })] }) : _.available ? /* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "在弹出的浏览器窗口里登录 PikPak,之后由 Peach 自动续期。" }),+ p ? T ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: p }) : /* @__PURE__ */ (0, V.jsx)(Nk, {role: "status",children: p}) : null,- /* @__PURE__ */ (0, V.jsx)(Hk, {+ /* @__PURE__ */ (0, V.jsx)(zk, {summary: "用账号密码登录",children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }),C,/* @__PURE__ */ (0, V.jsx)("div", {className: "flex justify-end",@@ -50288,13 +50279,13 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {]})})- ] }) : /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [/* @__PURE__ */ (0, V.jsx)(Ik, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),- d || h.error ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ ] }) : /* @__PURE__ */ (0, V.jsxs)(jk, { children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: "账号密码只用来换登录令牌,令牌存在这台电脑上。" }), C] }),+ d || h.error ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Lk, { children: d || h.error })+ children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: d || h.error })}) : null,- /* @__PURE__ */ (0, V.jsx)(Fk, {- status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(kE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,+ /* @__PURE__ */ (0, V.jsx)(Mk, {+ status: !g.logged_in && v ? /* @__PURE__ */ (0, V.jsx)(TE, { label: _.message || "等你在浏览器窗口里登录 PikPak" }) : null,children: g.logged_in ? /* @__PURE__ */ (0, V.jsx)(J, {onClick: S,disabled: !e.available,@@ -50318,90 +50309,90 @@ function gye({ state: e, settle: t, receipt: n, username: r, setUsername: i }) {}//#endregion//#region src/react/settings/maintenance-settings.tsx-var _ye = [+var gye = [["6", "每 6 小时"],["24", "每天"],["168", "每周"]];-function vye({ data: e, receipt: t, reopenTutorial: n }) {+function _ye({ data: e, receipt: t, reopenTutorial: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-6",children: [- /* @__PURE__ */ (0, V.jsx)(xye, { facts: e.facts }),- /* @__PURE__ */ (0, V.jsx)(yye, {+ /* @__PURE__ */ (0, V.jsx)(bye, { facts: e.facts }),+ /* @__PURE__ */ (0, V.jsx)(vye, {receipt: t,reopenTutorial: n}),- e.uninstall ? /* @__PURE__ */ (0, V.jsx)(Sye, {+ e.uninstall ? /* @__PURE__ */ (0, V.jsx)(xye, {uninstall: e.uninstall,receipt: t}) : null]});}-function yye({ receipt: e, reopenTutorial: t }) {- let n = NE();- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+function vye({ receipt: e, reopenTutorial: t }) {+ let n = kE();+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "安装教程",- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [/* @__PURE__ */ (0, V.jsx)(Ik, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ children: [/* @__PURE__ */ (0, V.jsxs)(jk, { children: [/* @__PURE__ */ (0, V.jsx)(Nk, { children: "重新显示已关闭或跳过的安装步骤,保留已完成的记录。" }), n.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: n.error }) : null] }), /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {onClick: () => void n.run("reopen", () => t(), () => e("已重新打开安装教程")),...X(n.busy === "reopen"),children: "重新打开教程"}) })]});}-function bye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = NE(e.error), s = (r) => {+function yye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.mode), [i, a] = (0, B.useState)(e.interval_hours), o = kE(e.error), s = (r) => {r.preventDefault(), e.available && o.run("save", (e) => K("/api/configuration/automatic-updates", {mode: n,interval_hours: i}, "POST", e), () => t("已保存配置"));}, c = e.available ? e.download_available ? "下载完成后在这里确认重启安装。" : void 0 : "自动更新需要由托盘管理的服务。";- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "自动更新",onSubmit: s,children: [- /* @__PURE__ */ (0, V.jsxs)(Nk, { children: [- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsxs)(Ak, { children: [+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "自动检查新版本",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "自动检查新版本",isSelected: n !== "off",isDisabled: !e.available,onChange: (e) => r(e ? "check" : "off")})}),- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "自动下载更新",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "自动下载更新",isSelected: n === "download",isDisabled: !e.available || !e.download_available || n === "off",onChange: (e) => r(e ? "download" : "check")})}),- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "检查频率",description: c,- children: /* @__PURE__ */ (0, V.jsx)(Tk, {+ children: /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "检查频率",selectedKey: String(i),isDisabled: !e.available,onSelectionChange: (e) => {e !== null && a(Number(e));},- children: _ye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: gye.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: t}, e))})})] }),- o.error ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ o.error ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Lk, { children: o.error })+ children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: o.error })}) : null,- /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",disabled: !e.available,...X(o.busy === "save"),@@ -50410,22 +50401,22 @@ function bye({ initial: e, receipt: t }) {]});}-function xye({ facts: e }) {- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+function bye({ facts: e }) {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "运行信息",- children: [/* @__PURE__ */ (0, V.jsx)(Bk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Vk, {+ children: [/* @__PURE__ */ (0, V.jsx)(Lk, { children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)(Rk, {term: e.term,- children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(zk, {+ children: [e.value, e.download_url ? /* @__PURE__ */ (0, V.jsx)(Ik, {href: e.download_url,children: e.download_label}) : null]- }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(jk, {+ }, e.term)) }), /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(Ok, {href: "/diagnostics",children: "打开系统诊断"}) })]});}-function Sye({ uninstall: e, receipt: t }) {+function xye({ uninstall: e, receipt: t }) {let [n, r] = (0, B.useState)(!1), [i, a] = (0, B.useState)(""), o = () => void Te({title: "卸载 Peach",danger: !0,@@ -50439,26 +50430,26 @@ function Sye({ uninstall: e, receipt: t }) {a(e.message);}}), s = i || e.message, c = [.../* @__PURE__ */ new Set([e.data_root, ...e.directories])];- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {id: "uninstallPeach",title: "卸载 Peach",- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- e.available ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,- /* @__PURE__ */ (0, V.jsx)(UM, {+ children: [/* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ e.available ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: "卸载移除 Peach 程序本身,原始媒体文件保留。" }) : null,+ /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: n,isDisabled: !e.full_available || !!i,onChange: r,children: "完全卸载:同时删除设置、本地数据库、观看记录、凭据和缓存"}),- /* @__PURE__ */ (0, V.jsx)(Hk, {+ /* @__PURE__ */ (0, V.jsx)(zk, {summary: "数据目录",- children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(PM, {+ children: c.map((e) => /* @__PURE__ */ (0, V.jsx)(jM, {path: e,className: "text-body-2-regular text-text-secondary",onRevealed: t}, e))})- ] }), /* @__PURE__ */ (0, V.jsx)(Fk, {+ ] }), /* @__PURE__ */ (0, V.jsx)(Mk, {status: s ? /* @__PURE__ */ (0, V.jsx)("p", {role: i ? "status" : void 0,children: s@@ -50474,23 +50465,23 @@ function Sye({ uninstall: e, receipt: t }) {}//#endregion//#region src/react/settings/release-updates.tsx-var ER = /* @__PURE__ */ new Set([+var TR = /* @__PURE__ */ new Set(["downloading","verifying","extracting","preparing","restarting","installing"-]), Cye = [+]), Sye = [65,67,90-], DR = 120;-function wye({ initial: e, initialJob: t }) {+], ER = 120;+function Cye({ initial: e, initialJob: t }) {let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(t || {state: "idle",progress: 0- }), [o, s] = (0, B.useState)(""), c = NE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = ER.has(i.state);+ }), [o, s] = (0, B.useState)(""), c = kE(), l = (0, B.useRef)(!1), u = (0, B.useRef)(!0), d = TR.has(i.state);(0, B.useEffect)(() => (u.current = !0, () => {u.current = !1;}), []);@@ -50507,7 +50498,7 @@ function wye({ initial: e, initialJob: t }) {(0, B.useEffect)(() => {i.state !== "ready" || l.current || (l.current = !0, p());}, [i.state]), (0, B.useEffect)(() => {- let e = new AbortController(), t = ER.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {+ let e = new AbortController(), t = TR.has(i.state) ? 1e3 : 3e4, n, o = 0, c = async () => {try {let t = await G("/api/configuration/update-status", e.signal);if (e.signal.aborted) return;@@ -50520,9 +50511,9 @@ function wye({ initial: e, initialJob: t }) {let n = await G("/api/configuration/automatic-updates", e.signal);!e.signal.aborted && n.result && r(n.result);} catch {- o += 1, o >= DR && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");+ o += 1, o >= ER && !e.signal.aborted && s("尚未连接到 Peach,请检查托盘后刷新页面。");}- !e.signal.aborted && o < DR && (n = setTimeout(c, t));+ !e.signal.aborted && o < ER && (n = setTimeout(c, t));};return n = setTimeout(c, t), () => {e.abort(), clearTimeout(n);@@ -50536,57 +50527,57 @@ function wye({ initial: e, initialJob: t }) {state: "error"}), c.setError(W(t));}), g = c.error || o, _ = i.state === "downloading" && i.total ? `${((i.downloaded || 0) / 1048576).toFixed(1)} / ${(i.total / 1048576).toFixed(1)} MB` : `${i.progress}%`;- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "检查更新",children: [- /* @__PURE__ */ (0, V.jsxs)(Bk, { children: [- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "当前版本",children: n.current_version}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "安装方式",children: n.installation}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "更新通道",children: n.channel}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "最新版本",children: n.latest_version || (n.state === "unchecked" ? "尚未检查" : "未取得")})] }),- n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(Pk, {+ n.state === "unchecked" && !n.checked_at && !g && i.state === "idle" ? null : /* @__PURE__ */ (0, V.jsxs)(jk, {divided: !0,children: [- n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(Ik, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,+ n.checked_at ? /* @__PURE__ */ (0, V.jsxs)(Nk, { children: ["检查于 ", (/* @__PURE__ */ new Date(n.checked_at * 1e3)).toLocaleString()] }) : null,n.state === "available" && !g ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "info",title: "有可用更新",children: n.message- }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(Ik, {+ }) : g || n.state === "error" ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: g || n.message }) : n.state === "unchecked" ? null : /* @__PURE__ */ (0, V.jsx)(Nk, {role: "status",children: n.message}),- i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: i.message }) : null,+ i.state === "error" ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: i.message }) : null,i.state !== "idle" && i.state !== "error" ? /* @__PURE__ */ (0, V.jsxs)("div", {"aria-live": "polite",className: "flex flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(ME, {+ /* @__PURE__ */ (0, V.jsx)(OE, {label: "更新准备进度",value: i.progress,- stops: Cye+ stops: Sye}),- /* @__PURE__ */ (0, V.jsxs)(Ik, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: _ })+ /* @__PURE__ */ (0, V.jsxs)(Nk, { children: ["下载 → 校验 → 解压 → 准备安装 · ", i.message] }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: _ })]}) : null]}),- /* @__PURE__ */ (0, V.jsxs)(Fk, {- status: /* @__PURE__ */ (0, V.jsx)(zk, {+ /* @__PURE__ */ (0, V.jsxs)(Mk, {+ status: /* @__PURE__ */ (0, V.jsx)(Ik, {href: n.release_url,children: "查看发布页"}),@@ -50613,28 +50604,28 @@ function wye({ initial: e, initialJob: t }) {}//#endregion//#region src/react/settings/general-settings.tsx-function Tye({ data: e, receipt: t }) {+function wye({ data: e, receipt: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.startup ? /* @__PURE__ */ (0, V.jsx)(Eye, {+ e.startup ? /* @__PURE__ */ (0, V.jsx)(Tye, {startup: e.startup,receipt: t}) : null,- e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(bye, {+ e.automatic_updates ? /* @__PURE__ */ (0, V.jsx)(yye, {initial: e.automatic_updates,receipt: t}) : null,- e.updates ? /* @__PURE__ */ (0, V.jsx)(wye, {+ e.updates ? /* @__PURE__ */ (0, V.jsx)(Cye, {initial: e.updates,initialJob: e.update_job}) : null]});}-function Eye({ startup: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = NE(), l = e.available && !e.desktop_message;- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+function Tye({ startup: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.enabled), [i, a] = (0, B.useState)(e.silent), [o, s] = (0, B.useState)(e.desktop), c = kE(), l = e.available && !e.desktop_message;+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "开机自启",onSubmit: (r) => {r.preventDefault(), e.available && c.run("save", (e) => K("/api/configuration/startup", {@@ -50644,30 +50635,30 @@ function Eye({ startup: e, receipt: t }) {}, "POST", e), () => t("已保存配置"));},children: [- /* @__PURE__ */ (0, V.jsxs)(Nk, { children: [- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsxs)(Ak, { children: [+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "开机后启动 Peach",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "开机后启动 Peach",isSelected: n,isDisabled: !e.available,onChange: r})}),- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "静默启动",description: "开机后只显示托盘图标,不打开网页。",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "静默启动",isSelected: i,isDisabled: !e.available || !n,onChange: a})}),- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "在桌面创建快捷方式",description: e.desktop_message || "双击图标打开 Peach 网页。",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "在桌面创建快捷方式",isSelected: o,isDisabled: !l,@@ -50675,11 +50666,11 @@ function Eye({ startup: e, receipt: t }) {})})] }),- e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(Pk, {+ e.message || c.error ? /* @__PURE__ */ (0, V.jsxs)(jk, {divided: !0,- children: [e.message ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: c.error }) : null]+ children: [e.message ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: e.message }) : null, c.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",disabled: !e.available,...X(c.busy === "save"),@@ -50690,7 +50681,7 @@ function Eye({ startup: e, receipt: t }) {}//#endregion//#region src/react/restart-redirect.ts-var Dye = 8e3, Oye = [+var Eye = 8e3, Dye = [{name: "机械硬盘,或内存 8 GB 以内",cache: "10–20 GiB",@@ -50709,33 +50700,33 @@ var Dye = 8e3, Oye = [read: "256 / 128 KB",task: "2 个起步"}-], kye = [+], Oye = [["cache", "缓存上限"],["read", "读取长度(默认 / 最小)"],["task", "同时处理视频"]];-function Aye() {+function kye() {return /* @__PURE__ */ (0, V.jsx)("div", {className: "@container flex flex-col gap-3",- children: /* @__PURE__ */ (0, V.jsxs)(Hk, {+ children: /* @__PURE__ */ (0, V.jsxs)(zk, {summary: "CloudDrive 设置帮助",children: [- /* @__PURE__ */ (0, V.jsxs)(Ik, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(zk, {+ /* @__PURE__ */ (0, V.jsxs)(Nk, { children: ["先在 CloudDrive 登录网盘并挂载,开启「启动时自动挂载」。", /* @__PURE__ */ (0, V.jsx)(Ik, {href: "https://www.clouddrive2.com/help.html",children: "挂载帮助"})] }),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "缓存按所在硬盘和可用内存选起步值,再根据播放表现调整。" }),/* @__PURE__ */ (0, V.jsx)("ul", {"aria-label": "按缓存所在硬盘分档",className: "flex flex-col gap-2",- children: Oye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {+ children: Dye.map((e) => /* @__PURE__ */ (0, V.jsxs)("li", {className: "flex flex-col gap-2 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, V.jsx)("p", {className: "text-body-medium text-text-primary",children: e.name}), /* @__PURE__ */ (0, V.jsx)("dl", {className: "inline-grid grid-cols-1 gap-2 @md:grid-cols-3",- children: kye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {+ children: Oye.map(([t, n]) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col",children: [/* @__PURE__ */ (0, V.jsx)("dt", {className: "text-caption-1-regular text-text-secondary",@@ -50756,9 +50747,9 @@ function Aye() {/* @__PURE__ */ (0, V.jsx)("li", { children: "Buffer Cache 占内存,磁盘缓存和文件夹缓存占硬盘,改一个管不住另外两个。" })]}),- /* @__PURE__ */ (0, V.jsxs)(Ik, { children: [+ /* @__PURE__ */ (0, V.jsxs)(Nk, { children: ["三处缓存的分工、往上调的方法和这些起步值的来源在",- /* @__PURE__ */ (0, V.jsx)(zk, {+ /* @__PURE__ */ (0, V.jsx)(Ik, {href: "https://github.com/longmeidao/peach/blob/master/docs/CLOUDDRIVE.md",children: "CloudDrive 配置与调优"}),@@ -50770,7 +50761,7 @@ function Aye() {}//#endregion//#region src/react/settings/folder-rows.tsx-function jye({ className: e }) {+function Aye({ className: e }) {return /* @__PURE__ */ (0, V.jsx)("svg", {"aria-hidden": !0,viewBox: "0 0 24 24",@@ -50783,12 +50774,12 @@ function jye({ className: e }) {children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-folder-search" })});}-var OR = [+var DR = [["local", "本地磁盘"],["115", "CloudDrive · 115"],["pikpak", "CloudDrive · PikPak"]-], kR = (e) => Se[e] || "database", Mye = (e) => e === "115" || e === "pikpak";-function Nye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {+], OR = (e) => Se[e] || "database", jye = (e) => e === "115" || e === "pikpak";+function Mye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick: i = !1 }) {let [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)([]), [l, u] = (0, B.useState)(null), [d, f] = (0, B.useState)(null), p = (0, B.useRef)(!1), m = (0, B.useRef)([]);(0, B.useLayoutEffect)(() => {l !== null && (m.current[l]?.focus(), u(null));@@ -50831,14 +50822,14 @@ function Nye({ initial: e, blank: t, pickFolder: n, describe: r, focusAfterPick:}};}-function Pye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {+function Nye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a, onPick: o, onRemove: s, status: c, children: l }) {return /* @__PURE__ */ (0, V.jsxs)("div", {"data-folder-row": !0,className: "@container flex flex-col gap-3 rounded-2lg border border-separator-border bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {className: "min-w-0 flex-1","aria-label": e,placeholder: "本机文件夹路径",@@ -50853,14 +50844,14 @@ function Pye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,className: "flex h-10 shrink-0 items-center",children: c}) : null,- /* @__PURE__ */ (0, V.jsx)(NM, {- icon: jye,+ /* @__PURE__ */ (0, V.jsx)(AM, {+ icon: Aye,"aria-label": "选择文件夹",onClick: o,...X(a)}),- s ? /* @__PURE__ */ (0, V.jsx)(NM, {- icon: gT,+ s ? /* @__PURE__ */ (0, V.jsx)(AM, {+ icon: fT,"aria-label": "移除这个文件夹",onClick: s}) : null@@ -50871,25 +50862,25 @@ function Pye({ label: e, path: t, onPath: n, error: r, inputRef: i, picking: a,})]});}-function Fye({ index: e, value: t, onChange: n, options: r = OR }) {+function Pye({ index: e, value: t, onChange: n, options: r = DR }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "媒体来源" }), /* @__PURE__ */ (0, V.jsx)(Tk, {+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "媒体来源" }), /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": `媒体来源 ${e + 1}`,selectedKey: t,onSelectionChange: (e) => {e !== null && n(String(e));},- children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(Ek, {+ children: r.map(([e, t]) => /* @__PURE__ */ (0, V.jsxs)(Ck, {id: e,textValue: t,- children: [/* @__PURE__ */ (0, V.jsx)(Uk, { mark: kR(e) }), t]+ children: [/* @__PURE__ */ (0, V.jsx)(Bk, { mark: OR(e) }), t]}, e))})]});}-function Iye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {- return /* @__PURE__ */ (0, V.jsx)(bk, {+function Fye({ value: e, onChange: t, label: n = "Windows 中的对应路径", placeholder: r = "例如 B:\\" }) {+ return /* @__PURE__ */ (0, V.jsx)(_k, {label: n,placeholder: r,value: e,@@ -50898,7 +50889,7 @@ function Iye({ value: e, onChange: t, label: n = "Windows 中的对应路径", p}//#endregion//#region src/react/settings/library-icon-picker.tsx-var AR = [+var kR = [["", "自动识别"],["hard-drive", "磁盘"],["database", "资料库"],@@ -50942,13 +50933,13 @@ var AR = [["star", "收藏"],["tags", "主题"]];-function Lye(e) {+function Iye(e) {let t = e === "local" ? "" : Se[e];return t ? [t, "自动识别"] : ["hard-drive", "默认"];}-var jR = "auto";-function Rye({ value: e, label: t, kind: n = "local", onChange: r }) {- let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Lye(n);+var AR = "auto";+function Lye({ value: e, label: t, kind: n = "local", onChange: r }) {+ let i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(e), [l, u] = Iye(n);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(J, {ref: i,variant: "secondary",@@ -50962,35 +50953,35 @@ function Rye({ value: e, label: t, kind: n = "local", onChange: r }) {children: /* @__PURE__ */ (0, V.jsxs)("span", {"data-icon-choice": !0,className: "flex items-center gap-2",- children: [/* @__PURE__ */ (0, V.jsx)(Uk, { mark: e || l }), ((e) => e && AR.find(([t]) => t === e)?.[1] || u)(e)]+ children: [/* @__PURE__ */ (0, V.jsx)(Bk, { mark: e || l }), ((e) => e && kR.find(([t]) => t === e)?.[1] || u)(e)]})- }), /* @__PURE__ */ (0, V.jsx)(yO, {+ }), /* @__PURE__ */ (0, V.jsx)(hO, {triggerRef: i,isOpen: a,onOpenChange: o,placement: "bottom start",offset: 4,- className: xk,- children: /* @__PURE__ */ (0, V.jsxs)(AO, {+ className: vk,+ children: /* @__PURE__ */ (0, V.jsxs)(EO, {"aria-label": `${t}候选`,className: "flex w-72 flex-col gap-3 outline-none",children: [- /* @__PURE__ */ (0, V.jsx)(eD, {+ /* @__PURE__ */ (0, V.jsx)(XE, {slot: "title",className: "px-1 text-body-medium text-text-primary",children: "选择媒体库图标"}),- /* @__PURE__ */ (0, V.jsx)(LO, {+ /* @__PURE__ */ (0, V.jsx)(NO, {"aria-label": "候选图标",- value: s || jR,- onChange: (e) => c(e === jR ? "" : e),+ value: s || AR,+ onChange: (e) => c(e === AR ? "" : e),className: "inline-grid grid-cols-7 gap-1",- children: AR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(RO, {- value: e || jR,+ children: kR.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(PO, {+ value: e || AR,"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, V.jsx)(Uk, { mark: e || l })- }, e || jR))+ children: /* @__PURE__ */ (0, V.jsx)(Bk, { mark: e || l })+ }, e || AR))}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex justify-end gap-2 border-t border-separator-border pt-2.5",@@ -51012,15 +51003,15 @@ function Rye({ value: e, label: t, kind: n = "local", onChange: r }) {}//#endregion//#region src/react/settings/push-discovery-settings.tsx-var zye = "/api/configuration/push-discovery", Bye = "/api/configuration/push-discovery/secret";-function Vye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = NE(), l = jM(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {+var Rye = "/api/configuration/push-discovery", zye = "/api/configuration/push-discovery/secret";+function Bye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.prefixes), [o, s] = (0, B.useState)(""), c = kE(), l = OM(), u = n.media_roots, [d, f] = (0, B.useState)(e), p = (e, n) => {r(e), f(e), a(e.prefixes), s(""), t(n);}, m = (e, t) => a((n) => n.map((n, r) => r === e ? {...n,...t} : n));- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "推送发现",onSubmit: (e) => {e.preventDefault();@@ -51030,13 +51021,13 @@ function Vye({ initial: e, receipt: t }) {cloud: n.cloud,prefixes: i};- c.run("save", (e) => K(zye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));+ c.run("save", (e) => K(Rye, t, "POST", e), (e) => p(e, "已保存配置"), (e) => s(W(e)));},children: [- /* @__PURE__ */ (0, V.jsxs)(Nk, { children: [- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsxs)(Ak, { children: [+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "新文件落地就入库",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "新文件落地就入库",isSelected: n.enabled,isDisabled: !n.available,@@ -51046,10 +51037,10 @@ function Vye({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "监视本机文件夹",description: "只监视本地磁盘,网盘由下面的 CloudDrive2 通知负责。",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "监视本机文件夹",isSelected: n.watch_local,isDisabled: !n.available || !n.enabled,@@ -51059,10 +51050,10 @@ function Vye({ initial: e, receipt: t }) {})})}),- /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ek, {label: "接收 CloudDrive2 通知",description: "网盘里有新文件时由 CloudDrive2 通知 Peach。",- children: /* @__PURE__ */ (0, V.jsx)(iL, {+ children: /* @__PURE__ */ (0, V.jsx)(rL, {"aria-label": "接收 CloudDrive2 通知",isSelected: n.cloud,isDisabled: !n.available || !n.enabled,@@ -51073,30 +51064,30 @@ function Vye({ initial: e, receipt: t }) {})})] }),- d.enabled ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ d.enabled ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsxs)(Bk, { children: [d.watch_local ? /* @__PURE__ */ (0, V.jsx)(Vk, {+ children: /* @__PURE__ */ (0, V.jsxs)(Lk, { children: [d.watch_local ? /* @__PURE__ */ (0, V.jsx)(Rk, {term: "本机文件夹监视",children: d.local_running ? d.local_roots.join("、") : d.local_message || "没有运行"- }) : null, /* @__PURE__ */ (0, V.jsx)(Vk, {+ }) : null, /* @__PURE__ */ (0, V.jsx)(Rk, {term: "已入库",children: `${d.queue.ingested} 个文件,队列里还有 ${d.queue.pending} 条`})] })}) : null,- d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "CloudDrive2 配置内容" }),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "在 CloudDrive2「设置 → Webhooks」里新建一条,粘贴这段配置。Webhook 需要 CloudDrive2 会员。" }),+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "CloudDrive2 配置内容" }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "在 CloudDrive2「设置 → Webhooks」里新建一条,粘贴这段配置。Webhook 需要 CloudDrive2 会员。" }),d.config_toml ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", { children: /* @__PURE__ */ (0, V.jsx)(J, {size: "small",onClick: () => {navigator.clipboard.writeText(d.config_toml).then(() => t("已复制 CloudDrive2 配置"), () => s("浏览器没让这一页写剪贴板,展开「查看这段配置」选中自己复制。"));},children: "复制配置"- }) }), /* @__PURE__ */ (0, V.jsxs)(Hk, {+ }) }), /* @__PURE__ */ (0, V.jsxs)(zk, {summary: "查看这段配置",children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "relative",@@ -51106,18 +51097,18 @@ function Vye({ initial: e, receipt: t }) {className: "overflow-x-auto rounded-2xl bg-background-tertiary-default p-3 text-caption-1-regular whitespace-pre text-text-primary",children: d.config_toml})- }), /* @__PURE__ */ (0, V.jsx)(Ik, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]- })] }) : /* @__PURE__ */ (0, V.jsx)(Ik, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })+ }), /* @__PURE__ */ (0, V.jsx)(Nk, { children: "Windows 桌面版粘贴后显示「无效」时,把这段存成 .toml 文件,放进 %LOCALAPPDATA%\\CloudDrive.WinUI\\webhooks\\ 目录。" })]+ })] }) : /* @__PURE__ */ (0, V.jsx)(Nk, { children: d.origin ? "尚未生成共享密钥,请保存配置后复制。" : "请先配置 CloudDrive2 能访问的 HTTPS 地址,再生成通知配置。HTTP 地址不接受通知写入,也不会自动转发。" })]})}) : null,- n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ n.enabled && n.cloud ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "云端路径前缀" }),- /* @__PURE__ */ (0, V.jsx)(Ik, { children: "左边填 CloudDrive2 里的目录,右边选它对应的媒体文件夹。" }),+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "云端路径前缀" }),+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: "左边填 CloudDrive2 里的目录,右边选它对应的媒体文件夹。" }),/* @__PURE__ */ (0, V.jsx)("div", {role: "group","aria-label": "云端路径前缀",@@ -51125,7 +51116,7 @@ function Vye({ initial: e, receipt: t }) {children: i.map((e, t) => /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex items-start gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {className: "min-w-0 flex-1","aria-label": `云端路径前缀 ${t + 1}`,placeholder: "/115",@@ -51134,19 +51125,19 @@ function Vye({ initial: e, receipt: t }) {value: e.prefix,onChange: (e) => m(t, { prefix: e })}),- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": `前缀 ${t + 1} 对应的媒体根`,selectedKey: e.root,onSelectionChange: (e) => {e !== null && m(t, { root: String(e) });},- children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: u.map((e) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: e}, e))}),- /* @__PURE__ */ (0, V.jsx)(NM, {- icon: gT,+ /* @__PURE__ */ (0, V.jsx)(AM, {+ icon: fT,"aria-label": "移除这一条",onClick: () => a((e) => e.filter((e, n) => n !== t))})@@ -51164,15 +51155,15 @@ function Vye({ initial: e, receipt: t }) {]})}) : null,- o || c.error ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ o || c.error ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Lk, { children: o || c.error })+ children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: o || c.error })}) : null,- /* @__PURE__ */ (0, V.jsxs)(Fk, {+ /* @__PURE__ */ (0, V.jsxs)(Mk, {status: d.enabled && d.cloud ? "更换密钥后要在 CloudDrive2 重新粘贴配置。" : void 0,children: [d.enabled && d.cloud ? /* @__PURE__ */ (0, V.jsx)(J, {onClick: () => {- c.run("secret", (e) => K(Bye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));+ c.run("secret", (e) => K(zye, {}, "POST", e), (e) => p(e, "已更换共享密钥"), (e) => s(W(e)));},disabled: !n.available,...X(c.busy === "secret"),@@ -51189,29 +51180,29 @@ function Vye({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/media-settings.tsx-var Hye = (e) => OR.find(([t]) => t === e)?.[1] ?? e, Uye = async (e) => (await K(aye, { initial: e })).path, MR = (e = "") => ({+var Vye = (e) => DR.find(([t]) => t === e)?.[1] ?? e, Hye = async (e) => (await K(iye, { initial: e })).path, jR = (e = "") => ({path: e,location: "local",root: "",library: "",library_icon: ""});-function Wye(e) {- let t = e.media_sources?.filter((e) => OR.some(([t]) => t === e.location));+function Uye(e) {+ let t = e.media_sources?.filter((e) => DR.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) => MR(e));+ })) : (e.media_dirs.length ? e.media_dirs : [""]).map((e) => jR(e));}-var Gye = (e) => !(e instanceof MS) || e.status !== 400 ? null : e.body?.errors ?? null;-function Kye({ data: e, receipt: t }) {+var Wye = (e) => !(e instanceof jS) || e.status !== 400 ? null : e.body?.errors ?? null;+function Gye({ data: e, receipt: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.editable ? /* @__PURE__ */ (0, V.jsx)(qye, {+ e.editable ? /* @__PURE__ */ (0, V.jsx)(Kye, {data: e,receipt: t}) : /* @__PURE__ */ (0, V.jsx)(Y, {@@ -51219,28 +51210,28 @@ function Kye({ data: e, receipt: t }) {title: "只读",children: e.notice}),- e.editable ? null : /* @__PURE__ */ (0, V.jsx)(Jye, { data: e }),- e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Vye, {+ e.editable ? null : /* @__PURE__ */ (0, V.jsx)(qye, { data: e }),+ e.push_discovery ? /* @__PURE__ */ (0, V.jsx)(Bye, {initial: e.push_discovery,receipt: t}) : null]});}-function qye({ data: e, receipt: t }) {- let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Nye({- initial: () => Wye(e),- blank: () => MR(),- pickFolder: Uye,+function Kye({ data: e, receipt: t }) {+ let { rows: n, edit: r, add: i, remove: a, errors: o, setErrors: s, picking: c, pick: l, inputRef: u } = Mye({+ initial: () => Uye(e),+ blank: () => jR(),+ pickFolder: Hye,describe: W- }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = NE();+ }), [d, f] = (0, B.useState)(String(e.port)), [p, m] = (0, B.useState)(!1), [h, g] = (0, B.useState)(""), [_, v] = (0, B.useState)(""), [y, b] = (0, B.useState)(null), x = (0, B.useRef)(e.revision), S = kE();(0, B.useEffect)(() => {if (!y) return;- let e = setTimeout(() => location.assign(y.url), Dye);+ let e = setTimeout(() => location.assign(y.url), Eye);return () => clearTimeout(e);}, [y]);let C = (r) => {- r.preventDefault(), v(""), S.run("save", (t) => K(_R, {+ r.preventDefault(), v(""), S.run("save", (t) => K(gR, {revision: x.current,media_dirs: n.map((e) => e.path),...e.media_sources ? { media_sources: n } : {},@@ -51249,18 +51240,18 @@ function qye({ data: e, receipt: t }) {}, "POST", t), (e) => {x.current = e.revision, s([]), g(""), t("已保存配置"), b(e);}, (e) => {- let t = Gye(e);+ let t = Wye(e);s(t?.media_dirs ?? []), g(t?.port ?? ""), t || v(W(e));});};- if (y) return /* @__PURE__ */ (0, V.jsx)(Mk, {+ if (y) return /* @__PURE__ */ (0, V.jsx)(kk, {title: "这台电脑",- children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {+ children: /* @__PURE__ */ (0, V.jsx)(jk, { children: /* @__PURE__ */ (0, V.jsxs)(Y, {tone: "success",title: "配置已保存",children: ["Peach 正在重新启动。稍后自动跳转,或点击",- /* @__PURE__ */ (0, V.jsx)(jk, {+ /* @__PURE__ */ (0, V.jsx)(Ok, {href: y.url,size: "small",children: "进入馆藏"@@ -51269,20 +51260,20 @@ function qye({ data: e, receipt: t }) {]}) })});- let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => Mye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ let w = (t) => t ? e.media_sources?.find((e) => e.path === t) : void 0, T = n.some((e) => jye(e.location)), E = T ? (e.mount_dependencies ?? []).filter((e) => !e.available) : [];+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "这台电脑",onSubmit: C,- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [+ children: [/* @__PURE__ */ (0, V.jsxs)(jk, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-3",children: [- /* @__PURE__ */ (0, V.jsx)(Rk, { children: "媒体文件夹" }),+ /* @__PURE__ */ (0, V.jsx)(Fk, { children: "媒体文件夹" }),/* @__PURE__ */ (0, V.jsx)("div", {role: "group","aria-label": "媒体文件夹",className: "flex flex-col gap-3",- children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Pye, {+ children: n.map((t, i) => /* @__PURE__ */ (0, V.jsxs)(Nye, {label: `媒体文件夹 ${i + 1}`,path: t.path,onPath: (e) => r(i, { path: e }),@@ -51291,9 +51282,9 @@ function qye({ data: e, receipt: t }) {picking: c === i,onPick: () => void l(i),onRemove: n.length > 1 ? () => a(i) : void 0,- status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(NR, { online: w(t.path)?.online }) : null,+ status: w(t.path) ? /* @__PURE__ */ (0, V.jsx)(MR, { online: w(t.path)?.online }) : null,children: [- /* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(_k, {label: "媒体库名称",maxLength: 80,placeholder: "同名文件夹归入同一个媒体库",@@ -51302,19 +51293,19 @@ function qye({ data: e, receipt: t }) {}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1.5",- children: [/* @__PURE__ */ (0, V.jsx)(Rk, { children: "媒体库图标" }), /* @__PURE__ */ (0, V.jsx)(Rye, {+ children: [/* @__PURE__ */ (0, V.jsx)(Fk, { children: "媒体库图标" }), /* @__PURE__ */ (0, V.jsx)(Lye, {label: `媒体库图标 ${i + 1}`,value: t.library_icon,kind: t.location,onChange: (e) => r(i, { library_icon: e })})]}),- /* @__PURE__ */ (0, V.jsx)(Fye, {+ /* @__PURE__ */ (0, V.jsx)(Pye, {index: i,value: t.location,onChange: (e) => r(i, { location: e })}),- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Iye, {+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Fye, {value: t.root,onChange: (e) => r(i, { root: e })}) : null@@ -51328,18 +51319,18 @@ function qye({ data: e, receipt: t }) {})]}),- T ? /* @__PURE__ */ (0, V.jsx)(Aye, {}) : null,- E.map((e) => /* @__PURE__ */ (0, V.jsxs)(Ik, { children: [+ T ? /* @__PURE__ */ (0, V.jsx)(kye, {}) : null,+ E.map((e) => /* @__PURE__ */ (0, V.jsxs)(Nk, { children: ["未检测到 ",e.name,"。",- /* @__PURE__ */ (0, V.jsxs)(zk, {+ /* @__PURE__ */ (0, V.jsxs)(Ik, {href: e.download_url,children: ["下载 ", e.name]})] }, e.name)),- e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,- e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(bk, {+ e.windows === !1 ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: "本机文件夹是这台电脑读取媒体的位置。Windows 中的对应路径用于匹配馆藏中已有的路径,例如 B:\\ 对应本机挂载文件夹。" }) : null,+ e.port_editable === !1 ? null : /* @__PURE__ */ (0, V.jsx)(_k, {id: "configPort",label: "本机访问端口",inputMode: "numeric",@@ -51349,7 +51340,7 @@ function qye({ data: e, receipt: t }) {isInvalid: !!h,hint: h || "浏览器地址里冒号后面的数字,一般不用改。"}),- /* @__PURE__ */ (0, V.jsx)(UM, {+ /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: p,onChange: m,children: "保存后扫描并补全资料"@@ -51359,7 +51350,7 @@ function qye({ data: e, receipt: t }) {title: "没有保存",children: _}) : null- ] }), /* @__PURE__ */ (0, V.jsx)(Fk, {+ ] }), /* @__PURE__ */ (0, V.jsx)(Mk, {status: e.port_editable === !1 ? void 0 : "保存后 Peach 会重新启动,端口改了就用新地址打开。",children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",@@ -51369,7 +51360,7 @@ function qye({ data: e, receipt: t }) {})]});}-function NR({ online: e }) {+function MR({ online: e }) {return e === !0 ? /* @__PURE__ */ (0, V.jsxs)("span", {"data-mount": "online",className: "inline-flex items-center gap-1.5 text-body-2-medium text-notification-success-foreground",@@ -51393,21 +51384,21 @@ function NR({ online: e }) {}), "未检测"]});}-function Jye({ data: e }) {- let t = e.media_sources, n = NE();- return t ? /* @__PURE__ */ (0, V.jsxs)(Mk, {+function qye({ data: e }) {+ let t = e.media_sources, n = kE();+ return t ? /* @__PURE__ */ (0, V.jsxs)(kk, {title: "挂载状态",children: [- /* @__PURE__ */ (0, V.jsx)(Bk, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(Vk, {- term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Uk, { mark: kR(e.location) }), Hye(e.location)] }),- children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(NR, { online: e.online })]+ /* @__PURE__ */ (0, V.jsx)(Lk, { children: t.map((e, t) => /* @__PURE__ */ (0, V.jsxs)(Rk, {+ term: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(Bk, { mark: OR(e.location) }), Vye(e.location)] }),+ children: [e.path || "未配置挂载点", /* @__PURE__ */ (0, V.jsx)(MR, { online: e.online })]}, t)) }),- n.error ? /* @__PURE__ */ (0, V.jsx)(Pk, {+ n.error ? /* @__PURE__ */ (0, V.jsx)(jk, {divided: !0,- children: /* @__PURE__ */ (0, V.jsx)(Lk, { children: n.error })+ children: /* @__PURE__ */ (0, V.jsx)(Pk, { children: n.error })}) : null,- /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {- onClick: () => void n.run("refresh", (e) => yR(e), (e) => z.setQueryData(vR, e)),+ /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ onClick: () => void n.run("refresh", (e) => vR(e), (e) => z.setQueryData(_R, e)),...X(n.busy === "refresh"),children: "刷新挂载状态"}) })@@ -51416,8 +51407,8 @@ function Jye({ data: e }) {}//#endregion//#region src/react/settings/password-pair.tsx-function Yye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(bk, {+function Jye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmation: i, disabled: a = !1, passwordError: o, passwordHint: s, confirmationError: c, confirmationInvalid: l = !1 }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(_k, {id: "access-password",type: "password",label: e,@@ -51430,7 +51421,7 @@ function Yye({ label: e, password: t, confirmation: n, onPassword: r, onConfirmavalidationBehavior: "aria",isInvalid: !a && !!o,hint: a ? s : o || s- }), /* @__PURE__ */ (0, V.jsx)(bk, {+ }), /* @__PURE__ */ (0, V.jsx)(_k, {id: "access-confirm",type: "password",label: "确认访问密码",@@ -51447,13 +51438,13 @@ function Yye({ label: e, password: t, confirmation: n, onPassword: r, onConfirma}//#endregion//#region src/react/settings/access-settings.tsx-var Xye = {+var Yye = {legacy: "当前使用系统生成的访问口令。改设自己的密码,或关闭登录要求。",locked: "访问设置无法读取,请在本机检查配置文件。",password: "已设置密码。新设备需要登录,登录时勾选「保持登录」可保持 30 天。"};-function Zye({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = NE(), g = (e) => {+function Xye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(""), [o, s] = (0, B.useState)(""), [c, l] = (0, B.useState)(""), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)({}), m = (0, B.useRef)(null), h = kE(), 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) {@@ -51470,28 +51461,28 @@ function Zye({ initial: e, receipt: t }) {}, "POST", e), (e) => {r(e), a(""), s(""), l(""), d(!1), p({}), t(e.mode === "open" ? "已关闭访问密码" : "已保存配置");}, (e) => {- let t = e instanceof MS ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;n ? p(n) : h.setError(W(e));});- }, _ = Xye[n.mode], v = n.mode !== "locked";- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ }, _ = Yye[n.mode], v = n.mode !== "locked";+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "访问密码",onSubmit: g,children: [/* @__PURE__ */ (0, V.jsx)("div", {ref: m,- children: /* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- _ ? /* @__PURE__ */ (0, V.jsx)(Ik, { children: _ }) : null,+ children: /* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ _ ? /* @__PURE__ */ (0, V.jsx)(Nk, { children: _ }) : null,n.mode === "open" ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "warning",title: "未设置访问密码",children: "能连接到 Peach 的设备打开地址就能看馆藏,不需要登录。"}) : null,- n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(UM, {+ n.mode === "password" || n.mode === "legacy" ? /* @__PURE__ */ (0, V.jsx)(BM, {isSelected: u,onChange: d,children: "关闭访问密码"}) : null,- n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(bk, {+ n.mode === "password" ? /* @__PURE__ */ (0, V.jsx)(_k, {id: "access-current",type: "password",label: "当前访问密码",@@ -51504,7 +51495,7 @@ function Zye({ initial: e, receipt: t }) {isInvalid: !!f.current_password,hint: f.current_password}) : null,- v ? /* @__PURE__ */ (0, V.jsx)(Yye, {+ v ? /* @__PURE__ */ (0, V.jsx)(Jye, {label: n.mode === "password" ? "新访问密码" : "设置访问密码",password: o,confirmation: c,@@ -51520,9 +51511,9 @@ function Zye({ initial: e, receipt: t }) {title: "访问范围",children: "保存后,能连接到 Peach 的设备将直接访问馆藏。"}) : null,- h.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: h.error }) : null+ h.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: h.error }) : null] })- }), v ? /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ }), v ? /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",...X(h.busy === "save"),children: "保存配置"@@ -51531,15 +51522,15 @@ function Zye({ initial: e, receipt: t }) {}//#endregion//#region src/configuration-copy.ts-var Qye = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", $ye = "只填域名,留空用默认地址";+var Zye = "JavDB 或 MISSAV 打不开时,填一个能打开的镜像域名。", Qye = "只填域名,留空用默认地址";//#endregion//#region src/react/settings/entry-links-settings.tsx-function ebe({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e.sites), i = NE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {+function $ye({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e.sites), i = kE(), a = (e, t) => r((n) => n.map((n) => n.key === e ? {...n,host: t} : n));- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "外部入口",onSubmit: (e) => {e.preventDefault();@@ -51548,9 +51539,9 @@ function ebe({ initial: e, receipt: t }) {r(e.sites), t("已保存配置");});},- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- /* @__PURE__ */ (0, V.jsx)(Ik, { children: Qye }),- n.map((e) => /* @__PURE__ */ (0, V.jsx)(bk, {+ children: [/* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: Zye }),+ n.map((e) => /* @__PURE__ */ (0, V.jsx)(_k, {id: `entry-link-${e.key}`,label: `${e.label} 地址`,autoComplete: "off",@@ -51559,10 +51550,10 @@ function ebe({ initial: e, receipt: t }) {placeholder: e.default_host,onChange: (t) => a(e.key, t),validationBehavior: "aria",- hint: $ye+ hint: Qye}, e.key)),- i.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: i.error }) : null- ] }), /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ i.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: i.error }) : null+ ] }), /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",...X(i.busy === "save"),children: "保存配置"@@ -51571,19 +51562,19 @@ function ebe({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/tunnel-settings.tsx-var tbe = 2e3, nbe = [["quick", "临时链接"], ["named", "命名隧道"]], rbe = {+var ebe = 2e3, tbe = [["quick", "临时链接"], ["named", "命名隧道"]], nbe = {quick: "临时预览用,地址随机,重启后会变。启动前要先设置访问密码。",named: "使用你在 Cloudflare 绑定的固定域名。启动前要先设置访问密码。"};-function ibe({ revision: e, initial: t, receipt: n }) {- let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = NE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";+function rbe({ revision: e, initial: t, receipt: n }) {+ let [r, i] = (0, B.useState)(t), [a, o] = (0, B.useState)(e), [s, c] = (0, B.useState)(t.mode), [l, u] = (0, B.useState)(t.hostname), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)({}), h = kE(), g = r.state === "starting" || r.state === "running", _ = r.named_available && s === "named";(0, B.useEffect)(() => {if (r.state !== "starting") return;let e = new AbortController(), t = window.setInterval(() => {- yR(e.signal).then((t) => {- e.signal.aborted || !t.tunnel || (z.setQueryData(vR, t), i(t.tunnel), o(t.revision));+ vR(e.signal).then((t) => {+ e.signal.aborted || !t.tunnel || (z.setQueryData(_R, t), i(t.tunnel), o(t.revision));}).catch(() => void 0);- }, tbe);+ }, ebe);return () => {e.abort(), window.clearInterval(t);};@@ -51598,30 +51589,30 @@ function ibe({ revision: e, initial: t, receipt: n }) {}, "POST", e), (e) => {i(e), o(e.revision), c(e.mode), u(e.hostname), f(""), n(e);}, (e) => {- let t = e instanceof MS ? e.body : null, n = t?.errors || t?.detail?.errors;+ let t = e instanceof jS ? e.body : null, n = t?.errors || t?.detail?.errors;n ? m(n) : h.setError(W(e));});};- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+ return /* @__PURE__ */ (0, V.jsxs)(kk, {title: "Cloudflare 公网入口",onSubmit: (e) => {e.preventDefault(), v("save", g, () => n("已保存配置"));},- children: [/* @__PURE__ */ (0, V.jsxs)(Pk, { children: [- r.named_available ? /* @__PURE__ */ (0, V.jsx)(hA, {+ children: [/* @__PURE__ */ (0, V.jsxs)(jk, { children: [+ r.named_available ? /* @__PURE__ */ (0, V.jsx)(fA, {"aria-label": "公网入口的形态(二选一)",value: s,isDisabled: g,onChange: (e) => c(e),- className: gA,- children: nbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(RO, {+ className: pA,+ children: tbe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(PO, {value: e,- className: _A,+ className: mA,children: t}, e))}) : null,- /* @__PURE__ */ (0, V.jsx)(Ik, { children: rbe[_ ? "named" : "quick"] }),- _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(bk, {+ /* @__PURE__ */ (0, V.jsx)(Nk, { children: nbe[_ ? "named" : "quick"] }),+ _ ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(_k, {id: "tunnel-hostname",label: "公开主机名",autoComplete: "off",@@ -51632,7 +51623,7 @@ function ibe({ revision: e, initial: t, receipt: n }) {validationBehavior: "aria",isInvalid: !!p.hostname,hint: p.hostname || "Cloudflare Zero Trust 里指向这台电脑的主机名。"- }), /* @__PURE__ */ (0, V.jsx)(bk, {+ }), /* @__PURE__ */ (0, V.jsx)(_k, {id: "tunnel-token",type: "password",label: "隧道令牌",@@ -51652,7 +51643,7 @@ function ibe({ revision: e, initial: t, receipt: n }) {r.state === "running" && r.url ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "info",title: "公网地址",- children: /* @__PURE__ */ (0, V.jsx)(zk, {+ children: /* @__PURE__ */ (0, V.jsx)(Ik, {href: r.url,children: r.url})@@ -51662,9 +51653,9 @@ function ibe({ revision: e, initial: t, receipt: n }) {title: "正在连接",children: "正在等待 cloudflared 连上 Cloudflare 边缘。"}) : null,- r.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: r.error }) : null,- h.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: h.error }) : null- ] }), /* @__PURE__ */ (0, V.jsxs)(Fk, {+ r.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: r.error }) : null,+ h.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: h.error }) : null+ ] }), /* @__PURE__ */ (0, V.jsxs)(Mk, {status: r.enabled ? "Peach 重启后自动恢复。" : void 0,children: [/* @__PURE__ */ (0, V.jsx)(J, {onClick: () => v("toggle", !g, (e) => n(e.enabled ? "公网入口已启动" : "公网入口已停止")),@@ -51680,28 +51671,28 @@ function ibe({ revision: e, initial: t, receipt: n }) {}//#endregion//#region src/react/settings/network-settings.tsx-var abe = [+var ibe = [["environment", "系统代理"],["direct", "直连"],["proxy", "自定义"]];-function obe({ data: e, receipt: t }) {+function abe({ data: e, receipt: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-6",children: [- e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(sbe, {+ e.peach_proxy ? /* @__PURE__ */ (0, V.jsx)(obe, {initial: e.peach_proxy,receipt: t}) : null,- e.entry_links ? /* @__PURE__ */ (0, V.jsx)(ebe, {+ e.entry_links ? /* @__PURE__ */ (0, V.jsx)($ye, {initial: e.entry_links,receipt: t}) : null,- e.access ? /* @__PURE__ */ (0, V.jsx)(Zye, {+ e.access ? /* @__PURE__ */ (0, V.jsx)(Xye, {initial: e.access,receipt: t}) : null,- e.tunnel ? /* @__PURE__ */ (0, V.jsx)(ibe, {+ e.tunnel ? /* @__PURE__ */ (0, V.jsx)(rbe, {revision: e.revision,initial: e.tunnel,receipt: t@@ -51709,9 +51700,9 @@ function obe({ data: e, receipt: t }) {]});}-function sbe({ initial: e, receipt: t }) {- let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = NE();- return /* @__PURE__ */ (0, V.jsxs)(Mk, {+function obe({ initial: e, receipt: t }) {+ let [n, r] = (0, B.useState)(e), [i, a] = (0, B.useState)(e.mode), [o, s] = (0, B.useState)(""), c = kE();+ return /* @__PURE__ */ (0, V.jsxs)(kk, {id: "peachProxy",title: "Peach 代理",onSubmit: (e) => {@@ -51723,25 +51714,25 @@ function sbe({ initial: e, receipt: t }) {});},children: [- /* @__PURE__ */ (0, V.jsx)(Nk, { children: /* @__PURE__ */ (0, V.jsx)(kk, {+ /* @__PURE__ */ (0, V.jsx)(Ak, { children: /* @__PURE__ */ (0, V.jsx)(Ek, {label: "连接方式",description: "采集来源选「Peach 代理」时共用这里的连接方式。",- children: /* @__PURE__ */ (0, V.jsx)(Tk, {+ children: /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "连接方式",selectedKey: i,onSelectionChange: (e) => {e !== null && a(String(e));},- children: abe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: ibe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: t}, e))})}) }),- i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(Pk, {+ i === "proxy" || n.needs_selection || c.error ? /* @__PURE__ */ (0, V.jsxs)(jk, {divided: !0,children: [- i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(bk, {+ i === "proxy" ? /* @__PURE__ */ (0, V.jsx)(_k, {id: "peachProxyAddress",type: "password",label: "代理地址",@@ -51755,10 +51746,10 @@ function sbe({ initial: e, receipt: t }) {title: "需要选择连接方式",children: "已有来源的代理地址不同,请选择公共连接方式。"}) : null,- c.error ? /* @__PURE__ */ (0, V.jsx)(Lk, { children: c.error }) : null+ c.error ? /* @__PURE__ */ (0, V.jsx)(Pk, { children: c.error }) : null]}) : null,- /* @__PURE__ */ (0, V.jsx)(Fk, { children: /* @__PURE__ */ (0, V.jsx)(J, {+ /* @__PURE__ */ (0, V.jsx)(Mk, { children: /* @__PURE__ */ (0, V.jsx)(J, {type: "submit",...X(c.busy === "save"),children: "保存配置"@@ -51768,10 +51759,10 @@ function sbe({ initial: e, receipt: t }) {}//#endregion//#region src/react/settings/configuration-page.tsx-function cbe({ receipt: e, reopenTutorial: t }) {- let n = ES({- queryKey: vR,- queryFn: ({ signal: e }) => yR(e)+function sbe({ receipt: e, reopenTutorial: t }) {+ let n = TS({+ queryKey: _R,+ queryFn: ({ signal: e }) => vR(e)}), r = n.data;if (!r) return /* @__PURE__ */ (0, V.jsx)("div", {className: "configpage",@@ -51792,17 +51783,17 @@ function cbe({ receipt: e, reopenTutorial: t }) {className: "configgroup",children: "通用"}) : null,- a ? /* @__PURE__ */ (0, V.jsx)(Tye, { ...i }) : null,+ a ? /* @__PURE__ */ (0, V.jsx)(wye, { ...i }) : null,/* @__PURE__ */ (0, V.jsx)("h2", {className: "configgroup",children: "媒体"}),- /* @__PURE__ */ (0, V.jsx)(Kye, { ...i }),+ /* @__PURE__ */ (0, V.jsx)(Gye, { ...i }),r.downloads ? /* @__PURE__ */ (0, V.jsx)("h2", {className: "configgroup",children: "下载"}) : null,- r.downloads ? /* @__PURE__ */ (0, V.jsx)(fye, {+ r.downloads ? /* @__PURE__ */ (0, V.jsx)(dye, {initial: r.downloads,receipt: e}) : null,@@ -51810,12 +51801,12 @@ function cbe({ receipt: e, reopenTutorial: t }) {className: "configgroup",children: "网络与访问"}) : null,- o ? /* @__PURE__ */ (0, V.jsx)(obe, { ...i }) : null,+ o ? /* @__PURE__ */ (0, V.jsx)(abe, { ...i }) : null,/* @__PURE__ */ (0, V.jsx)("h2", {className: "configgroup",children: "维护"}),- /* @__PURE__ */ (0, V.jsx)(vye, {+ /* @__PURE__ */ (0, V.jsx)(_ye, {...i,reopenTutorial: t})@@ -51824,14 +51815,14 @@ function cbe({ receipt: e, reopenTutorial: t }) {}//#endregion//#region src/react/stats/stats.ts-var lbe = "/api/stats", PR = ["stats"], FR = (e) => G(lbe, e);-async function ube(e) {+var cbe = "/api/stats", NR = ["stats"], PR = (e) => G(cbe, e);+async function lbe(e) {await z.fetchQuery({- queryKey: PR,- queryFn: () => FR(e)+ queryKey: NR,+ queryFn: () => PR(e)});}-var IR = (e, t) => t ? Math.round(e / t * 100) : 0, dbe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, LR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, RR = (e) => (e.max_reached || 0) * 100, fbe = (e) => e.kind === "online" ? "在线直接观看" : LR(e) < RR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", pbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, mbe = (e) => Math.max(1, ...e) * 1.1, hbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), gbe = {+var FR = (e, t) => t ? Math.round(e / t * 100) : 0, ube = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, IR = (e) => e.duration ? Math.min(e.play_seconds / e.duration, 1) * 100 : 0, LR = (e) => (e.max_reached || 0) * 100, dbe = (e) => e.kind === "online" ? "在线直接观看" : IR(e) < LR(e) - 25 ? "快进扫过" : e.o_count ? `高潮 ${e.o_count}` : "正常观看", fbe = (e) => `${e.kind === "online" ? "/follow/item/" : "/item/"}${e.id}`, pbe = (e) => Math.max(1, ...e) * 1.1, mbe = (e) => Math.max(4, Math.min(14, Math.round(90 / Math.max(1, e)))), hbe = {video: "视频",image: "图片",illustration: "插画",@@ -51839,18 +51830,18 @@ var IR = (e, t) => t ? Math.round(e / t * 100) : 0, dbe = (e) => e >= 3600 ? `${audio: "音频",account: "账号",other: "其它文件"-}, _be = (e) => e.map((e) => ({- name: gbe[e.k] ?? e.k,+}, gbe = (e) => e.map((e) => ({+ name: hbe[e.k] ?? e.k,value: e.n-})).sort((e, t) => t.value - e.value), vbe = {+})).sort((e, t) => t.value - e.value), _be = {速食: "<5 分钟",短: "5–15 分钟",中: "15–40 分钟",长: ">40 分钟"-}, zR = (e, t = {}) => e.map((e) => ({+}, RR = (e, t = {}) => e.map((e) => ({name: t[e.k] ?? e.k,value: e.n-})), ybe = (e) => zR(e, vbe), bbe = [+})), vbe = (e) => RR(e, _be), ybe = [[1,1,@@ -51886,49 +51877,49 @@ var IR = (e, t) => t ? Math.round(e / t * 100) : 0, dbe = (e) => e >= 3600 ? `${Infinity,"≥10 次"]-], xbe = (e) => bbe.map(([t, n, r]) => ({+], bbe = (e) => ybe.map(([t, n, r]) => ({name: r,value: e.filter((e) => e.k >= t && e.k <= n).reduce((e, t) => e + t.n, 0)-})), Sbe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");-function BR(e) {- return typeof e == "string" && Sbe.includes(e);+})), xbe = /* @__PURE__ */ "dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture".split(".");+function zR(e) {+ return typeof e == "string" && xbe.includes(e);}//#endregion//#region node_modules/recharts/es6/util/svgPropertiesNoEvents.js-var Cbe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));-function VR(e) {- return typeof e == "string" && Cbe.has(e);+var Sbe = /* @__PURE__ */ new Set(/* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split("."));+function BR(e) {+ return typeof e == "string" && Sbe.has(e);}-function HR(e) {+function VR(e) {return typeof e == "string" && e.startsWith("data-");}-function UR(e) {+function HR(e) {if (typeof e != "object" || !e) return {};var t = {};- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VR(n) || HR(n)) && (t[n] = e[n]);+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (BR(n) || VR(n)) && (t[n] = e[n]);return t;}-function WR(e) {+function UR(e) {if (e == null) return null;if (/*#__PURE__*/ (0, B.isValidElement)(e) && typeof e.props == "object" && e.props !== null) {var t = e.props;- return UR(t);+ return HR(t);}- return typeof e == "object" && !Array.isArray(e) ? UR(e) : null;+ return typeof e == "object" && !Array.isArray(e) ? HR(e) : null;}//#endregion//#region node_modules/recharts/es6/util/svgPropertiesAndEvents.js-function GR(e) {+function WR(e) {var t = {};- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (VR(n) || HR(n) || BR(n)) && (t[n] = e[n]);+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (BR(n) || VR(n) || zR(n)) && (t[n] = e[n]);return t;}-function wbe(e) {- return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? GR(e.props) : typeof e == "object" && !Array.isArray(e) ? GR(e) : null;+function Cbe(e) {+ return e == null ? null : /*#__PURE__*/ (0, B.isValidElement)(e) ? WR(e.props) : typeof e == "object" && !Array.isArray(e) ? WR(e) : null;}//#endregion//#region node_modules/recharts/es6/container/Surface.js-var Tbe = [+var wbe = ["children","width","height",@@ -51938,25 +51929,25 @@ var Tbe = ["title","desc"];-function KR() {- return KR = Object.assign ? Object.assign.bind() : function(e) {+function GR() {+ return GR = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, KR.apply(null, arguments);+ }, GR.apply(null, arguments);}-function Ebe(e, t) {+function Tbe(e, t) {if (e == null) return {};- var n, r, i = Dbe(e, t);+ var n, r, i = Ebe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Dbe(e, t) {+function Ebe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -51965,14 +51956,14 @@ function Dbe(e, t) {}return n;}-var qR = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Ebe(e, Tbe), d = a || {+var KR = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { children: n, width: r, height: i, viewBox: a, className: o, style: s, title: c, desc: l } = e, u = Tbe(e, wbe), d = a || {width: r,height: i,x: 0,y: 0}, f = _h("recharts-surface", o);- return /*#__PURE__*/ B.createElement("svg", KR({}, GR(u), {+ return /*#__PURE__*/ B.createElement("svg", GR({}, WR(u), {className: f,width: r,height: i,@@ -51980,26 +51971,26 @@ var qR = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {viewBox: `${d.x} ${d.y} ${d.width} ${d.height}`,ref: t}), /*#__PURE__*/ B.createElement("title", null, c), /*#__PURE__*/ B.createElement("desc", null, l), n);-}), Obe = ["children", "className"];-function JR() {- return JR = Object.assign ? Object.assign.bind() : function(e) {+}), Dbe = ["children", "className"];+function qR() {+ return qR = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, JR.apply(null, arguments);+ }, qR.apply(null, arguments);}-function kbe(e, t) {+function Obe(e, t) {if (e == null) return {};- var n, r, i = Abe(e, t);+ var n, r, i = kbe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function Abe(e, t) {+function kbe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -52008,39 +51999,39 @@ function Abe(e, t) {}return n;}-var YR = /*#__PURE__*/ B.forwardRef((e, t) => {- var { children: n, className: r } = e, i = kbe(e, Obe), a = _h("recharts-layer", r);- return /*#__PURE__*/ B.createElement("g", JR({ className: a }, GR(i), { ref: t }), n);-}), XR = /*#__PURE__*/ (0, B.createContext)(null), jbe = () => (0, B.useContext)(XR);+var JR = /*#__PURE__*/ B.forwardRef((e, t) => {+ var { children: n, className: r } = e, i = Obe(e, Dbe), a = _h("recharts-layer", r);+ return /*#__PURE__*/ B.createElement("g", qR({ className: a }, WR(i), { ref: t }), n);+}), YR = /*#__PURE__*/ (0, B.createContext)(null), Abe = () => (0, B.useContext)(YR);//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/constant.js-function ZR(e) {+function XR(e) {return function() {return e;};}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/math.js-var QR = Math.cos, $R = Math.sin, ez = Math.sqrt, tz = Math.PI;-tz / 2;-var nz = 2 * tz, rz = Math.PI, iz = 2 * rz, az = 1e-6, Mbe = iz - az;-function oz(e) {+var ZR = Math.cos, QR = Math.sin, $R = Math.sqrt, ez = Math.PI;+ez / 2;+var tz = 2 * ez, nz = Math.PI, rz = 2 * nz, iz = 1e-6, jbe = rz - iz;+function az(e) {this._ += e[0];for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];}-function Nbe(e) {+function Mbe(e) {let t = Math.floor(e);if (!(t >= 0)) throw Error(`invalid digits: ${e}`);- if (t > 15) return oz;+ if (t > 15) return az;let n = 10 ** t;return function(e) {this._ += e[0];for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];};}-var sz = class {+var oz = class {constructor(e) {- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? oz : Nbe(e);+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? az : Mbe(e);}moveTo(e, t) {this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;@@ -52061,18 +52052,18 @@ var sz = class {if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;- else if (d > az) {- if (!(Math.abs(u * s - c * l) > az) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;+ else if (d > iz) {+ if (!(Math.abs(u * s - c * l) > iz) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;else {- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((rz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > az && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((nz - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > iz && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;}}}arc(e, t, n, r, i, a) {if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > az || Math.abs(this._y1 - l) > az) && this._append`L${c},${l}`, n && (d < 0 && (d = d % iz + iz), d > Mbe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > az && this._append`A${n},${n},0,${+(d >= rz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > iz || Math.abs(this._y1 - l) > iz) && this._append`L${c},${l}`, n && (d < 0 && (d = d % rz + rz), d > jbe ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > iz && this._append`A${n},${n},0,${+(d >= nz)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);}rect(e, t, n, r) {this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;@@ -52081,10 +52072,10 @@ var sz = class {return this._;}};-sz.prototype;+oz.prototype;//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/path.js-function cz(e) {+function sz(e) {let t = 3;return e.digits = function(n) {if (!arguments.length) return t;@@ -52095,18 +52086,18 @@ function cz(e) {t = e;}return e;- }, () => new sz(t);+ }, () => new oz(t);}Array.prototype.slice;-function lz(e) {+function cz(e) {return typeof e == "object" && "length" in e ? e : Array.from(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linear.js-function uz(e) {+function lz(e) {this._context = e;}-uz.prototype = {+lz.prototype = {areaStart: function() {this._line = 0;},@@ -52129,33 +52120,33 @@ uz.prototype = {}}};-function dz(e) {- return new uz(e);+function uz(e) {+ return new lz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/point.js-function fz(e) {+function dz(e) {return e[0];}-function pz(e) {+function fz(e) {return e[1];}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/line.js-function mz(e, t) {- var n = ZR(!0), r = null, i = dz, a = null, o = cz(s);- e = typeof e == "function" ? e : e === void 0 ? fz : ZR(e), t = typeof t == "function" ? t : t === void 0 ? pz : ZR(t);+function pz(e, t) {+ var n = XR(!0), r = null, i = uz, a = null, o = sz(s);+ e = typeof e == "function" ? e : e === void 0 ? dz : XR(e), t = typeof t == "function" ? t : t === void 0 ? fz : XR(t);function s(s) {- var c, l = (s = lz(s)).length, u, d = !1, f;+ var c, l = (s = cz(s)).length, u, d = !1, f;for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));if (f) return a = null, f + "" || null;}return s.x = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), s) : e;+ return arguments.length ? (e = typeof t == "function" ? t : XR(+t), s) : e;}, s.y = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), s) : t;+ return arguments.length ? (t = typeof e == "function" ? e : XR(+e), s) : t;}, s.defined = function(e) {- return arguments.length ? (n = typeof e == "function" ? e : ZR(!!e), s) : n;+ return arguments.length ? (n = typeof e == "function" ? e : XR(!!e), s) : n;}, s.curve = function(e) {return arguments.length ? (i = e, r != null && (a = i(r)), s) : i;}, s.context = function(e) {@@ -52164,11 +52155,11 @@ function mz(e, t) {}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/area.js-function hz(e, t, n) {- var r = null, i = ZR(!0), a = null, o = dz, s = null, c = cz(l);- e = typeof e == "function" ? e : e === void 0 ? fz : ZR(+e), t = typeof t == "function" ? t : ZR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? pz : ZR(+n);+function mz(e, t, n) {+ var r = null, i = XR(!0), a = null, o = uz, s = null, c = sz(l);+ e = typeof e == "function" ? e : e === void 0 ? dz : XR(+e), t = typeof t == "function" ? t : XR(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? fz : XR(+n);function l(l) {- var u, d, f, p = (l = lz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);+ var u, d, f, p = (l = cz(l)).length, m, h = !1, g, _ = Array(p), v = Array(p);for (a ?? (s = o(g = c())), u = 0; u <= p; ++u) {if (!(u < p && i(m = l[u], u, l)) === h) {if (h = !h) d = u, s.areaStart(), s.lineStart();@@ -52182,20 +52173,20 @@ function hz(e, t, n) {if (g) return s = null, g + "" || null;}function u() {- return mz().defined(i).curve(o).context(a);+ return pz().defined(i).curve(o).context(a);}return l.x = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), r = null, l) : e;+ return arguments.length ? (e = typeof t == "function" ? t : XR(+t), r = null, l) : e;}, l.x0 = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : ZR(+t), l) : e;+ return arguments.length ? (e = typeof t == "function" ? t : XR(+t), l) : e;}, l.x1 = function(e) {- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : ZR(+e), l) : r;+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : XR(+e), l) : r;}, l.y = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), n = null, l) : t;+ return arguments.length ? (t = typeof e == "function" ? e : XR(+e), n = null, l) : t;}, l.y0 = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), l) : t;+ return arguments.length ? (t = typeof e == "function" ? e : XR(+e), l) : t;}, l.y1 = function(e) {- return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : ZR(+e), l) : n;+ return arguments.length ? (n = e == null ? null : typeof e == "function" ? e : XR(+e), l) : n;}, l.lineX0 = l.lineY0 = function() {return u().x(e).y(t);}, l.lineY1 = function() {@@ -52203,7 +52194,7 @@ function hz(e, t, n) {}, l.lineX1 = function() {return u().x(r).y(t);}, l.defined = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : ZR(!!e), l) : i;+ return arguments.length ? (i = typeof e == "function" ? e : XR(!!e), l) : i;}, l.curve = function(e) {return arguments.length ? (o = e, a != null && (s = o(a)), l) : o;}, l.context = function(e) {@@ -52212,7 +52203,7 @@ function hz(e, t, n) {}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/bump.js-var gz = class {+var hz = class {constructor(e, t) {this._context = e, this._x = t;}@@ -52239,70 +52230,70 @@ var gz = class {this._x0 = e, this._y0 = t;}};-function Pbe(e) {- return new gz(e, !0);+function Nbe(e) {+ return new hz(e, !0);}-function Fbe(e) {- return new gz(e, !1);+function Pbe(e) {+ return new hz(e, !1);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol/circle.js-var _z = { draw(e, t) {- let n = ez(t / tz);- e.moveTo(n, 0), e.arc(0, 0, n, 0, nz);-} }, Ibe = { draw(e, t) {- let n = ez(t / 5) / 2;+var gz = { draw(e, t) {+ let n = $R(t / ez);+ e.moveTo(n, 0), e.arc(0, 0, n, 0, tz);+} }, Fbe = { draw(e, t) {+ let n = $R(t / 5) / 2;e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();-} }, vz = ez(1 / 3), Lbe = vz * 2, Rbe = { draw(e, t) {- let n = ez(t / Lbe), r = n * vz;+} }, _z = $R(1 / 3), Ibe = _z * 2, Lbe = { draw(e, t) {+ let n = $R(t / Ibe), r = n * _z;e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();-} }, zbe = { draw(e, t) {- let n = ez(t), r = -n / 2;+} }, Rbe = { draw(e, t) {+ let n = $R(t), r = -n / 2;e.rect(r, r, n, n);-} }, Bbe = .8908130915292852, yz = $R(tz / 10) / $R(7 * tz / 10), Vbe = $R(nz / 10) * yz, Hbe = -QR(nz / 10) * yz, Ube = { draw(e, t) {- let n = ez(t * Bbe), r = Vbe * n, i = Hbe * n;+} }, zbe = .8908130915292852, vz = QR(ez / 10) / QR(7 * ez / 10), Bbe = QR(tz / 10) * vz, Vbe = -ZR(tz / 10) * vz, Hbe = { draw(e, t) {+ let n = $R(t * zbe), r = Bbe * n, i = Vbe * n;e.moveTo(0, -n), e.lineTo(r, i);for (let t = 1; t < 5; ++t) {- let a = nz * t / 5, o = QR(a), s = $R(a);+ let a = tz * t / 5, o = ZR(a), s = QR(a);e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);}e.closePath();-} }, bz = ez(3), Wbe = { draw(e, t) {- let n = -ez(t / (bz * 3));- e.moveTo(0, n * 2), e.lineTo(-bz * n, -n), e.lineTo(bz * n, -n), e.closePath();-} }, xz = -.5, Sz = ez(3) / 2, Cz = 1 / ez(12), Gbe = (Cz / 2 + 1) * 3, Kbe = { draw(e, t) {- let n = ez(t / Gbe), r = n / 2, i = n * Cz, a = r, o = n * Cz + n, s = -a, c = o;- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(xz * r - Sz * i, Sz * r + xz * i), e.lineTo(xz * a - Sz * o, Sz * a + xz * o), e.lineTo(xz * s - Sz * c, Sz * s + xz * c), e.lineTo(xz * r + Sz * i, xz * i - Sz * r), e.lineTo(xz * a + Sz * o, xz * o - Sz * a), e.lineTo(xz * s + Sz * c, xz * c - Sz * s), e.closePath();+} }, yz = $R(3), Ube = { draw(e, t) {+ let n = -$R(t / (yz * 3));+ e.moveTo(0, n * 2), e.lineTo(-yz * n, -n), e.lineTo(yz * n, -n), e.closePath();+} }, bz = -.5, xz = $R(3) / 2, Sz = 1 / $R(12), Wbe = (Sz / 2 + 1) * 3, Gbe = { draw(e, t) {+ let n = $R(t / Wbe), r = n / 2, i = n * Sz, a = r, o = n * Sz + n, s = -a, c = o;+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(bz * r - xz * i, xz * r + bz * i), e.lineTo(bz * a - xz * o, xz * a + bz * o), e.lineTo(bz * s - xz * c, xz * s + bz * c), e.lineTo(bz * r + xz * i, bz * i - xz * r), e.lineTo(bz * a + xz * o, bz * o - xz * a), e.lineTo(bz * s + xz * c, bz * c - xz * s), e.closePath();} };//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/symbol.js-function qbe(e, t) {- let n = null, r = cz(i);- e = typeof e == "function" ? e : ZR(e || _z), t = typeof t == "function" ? t : ZR(t === void 0 ? 64 : +t);+function Kbe(e, t) {+ let n = null, r = sz(i);+ e = typeof e == "function" ? e : XR(e || gz), t = typeof t == "function" ? t : XR(t === void 0 ? 64 : +t);function i() {let i;if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;}return i.type = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : ZR(t), i) : e;+ return arguments.length ? (e = typeof t == "function" ? t : XR(t), i) : e;}, i.size = function(e) {- return arguments.length ? (t = typeof e == "function" ? e : ZR(+e), i) : t;+ return arguments.length ? (t = typeof e == "function" ? e : XR(+e), i) : t;}, i.context = function(e) {return arguments.length ? (n = e ?? null, i) : n;}, i;}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/noop.js-function wz() {}+function Cz() {}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basis.js-function Tz(e, t, n) {+function wz(e, t, n) {e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);}-function Ez(e) {+function Tz(e) {this._context = e;}-Ez.prototype = {+Tz.prototype = {areaStart: function() {this._line = 0;},@@ -52314,7 +52305,7 @@ Ez.prototype = {},lineEnd: function() {switch (this._point) {- case 3: Tz(this, this._x1, this._y1);+ case 3: wz(this, this._x1, this._y1);case 2: this._context.lineTo(this._x1, this._y1);}(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;@@ -52328,22 +52319,22 @@ Ez.prototype = {this._point = 2;break;case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);- default: Tz(this, e, t);+ default: wz(this, e, t);}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}};-function Jbe(e) {- return new Ez(e);+function qbe(e) {+ return new Tz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisClosed.js-function Dz(e) {+function Ez(e) {this._context = e;}-Dz.prototype = {- areaStart: wz,- areaEnd: wz,+Ez.prototype = {+ areaStart: Cz,+ areaEnd: Cz,lineStart: function() {this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;},@@ -52369,20 +52360,20 @@ Dz.prototype = {case 2:this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);break;- default: Tz(this, e, t);+ default: wz(this, e, t);}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}};-function Ybe(e) {- return new Dz(e);+function Jbe(e) {+ return new Ez(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/basisOpen.js-function Oz(e) {+function Dz(e) {this._context = e;}-Oz.prototype = {+Dz.prototype = {areaStart: function() {this._line = 0;},@@ -52409,22 +52400,22 @@ Oz.prototype = {this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);break;case 3: this._point = 4;- default: Tz(this, e, t);+ default: wz(this, e, t);}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;}};-function Xbe(e) {- return new Oz(e);+function Ybe(e) {+ return new Dz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/linearClosed.js-function kz(e) {+function Oz(e) {this._context = e;}-kz.prototype = {- areaStart: wz,- areaEnd: wz,+Oz.prototype = {+ areaStart: Cz,+ areaEnd: Cz,lineStart: function() {this._point = 0;},@@ -52435,30 +52426,30 @@ kz.prototype = {e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));}};-function Zbe(e) {- return new kz(e);+function Xbe(e) {+ return new Oz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/monotone.js-function Az(e) {+function kz(e) {return e < 0 ? -1 : 1;}-function jz(e, t, n) {+function Az(e, t, n) {var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);- return (Az(a) + Az(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;+ return (kz(a) + kz(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;}-function Mz(e, t) {+function jz(e, t) {var n = e._x1 - e._x0;return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;}-function Nz(e, t, n) {+function Mz(e, t, n) {var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);}-function Pz(e) {+function Nz(e) {this._context = e;}-Pz.prototype = {+Nz.prototype = {areaStart: function() {this._line = 0;},@@ -52473,7 +52464,7 @@ Pz.prototype = {case 2:this._context.lineTo(this._x1, this._y1);break;- case 3: Nz(this, this._t0, Mz(this, this._t0));+ case 3: Mz(this, this._t0, jz(this, this._t0));}(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;},@@ -52488,24 +52479,24 @@ Pz.prototype = {this._point = 2;break;case 2:- this._point = 3, Nz(this, Mz(this, n = jz(this, e, t)), n);+ this._point = 3, Mz(this, jz(this, n = Az(this, e, t)), n);break;- default: Nz(this, this._t0, n = jz(this, e, t));+ default: Mz(this, this._t0, n = Az(this, e, t));}this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;}}};-function Fz(e) {- this._context = new Iz(e);+function Pz(e) {+ this._context = new Fz(e);}-(Fz.prototype = Object.create(Pz.prototype)).point = function(e, t) {- Pz.prototype.point.call(this, t, e);+(Pz.prototype = Object.create(Nz.prototype)).point = function(e, t) {+ Nz.prototype.point.call(this, t, e);};-function Iz(e) {+function Fz(e) {this._context = e;}-Iz.prototype = {+Fz.prototype = {moveTo: function(e, t) {this._context.moveTo(t, e);},@@ -52519,18 +52510,18 @@ Iz.prototype = {this._context.bezierCurveTo(t, e, r, n, a, i);}};+function Zbe(e) {+ return new Nz(e);+}function Qbe(e) {return new Pz(e);}-function $be(e) {- return new Fz(e);-}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/natural.js-function Lz(e) {+function Iz(e) {this._context = e;}-Lz.prototype = {+Iz.prototype = {areaStart: function() {this._line = 0;},@@ -52544,7 +52535,7 @@ Lz.prototype = {var e = this._x, t = this._y, n = e.length;if (n) {if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);- else for (var r = Rz(e), i = Rz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);+ else for (var r = Lz(e), i = Lz(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);}(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;},@@ -52552,7 +52543,7 @@ Lz.prototype = {this._x.push(+e), this._y.push(+t);}};-function Rz(e) {+function Lz(e) {var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];@@ -52560,15 +52551,15 @@ function Rz(e) {for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];return [i, a];}-function exe(e) {- return new Lz(e);+function $be(e) {+ return new Iz(e);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/curve/step.js-function zz(e, t) {+function Rz(e, t) {this._context = e, this._t = t;}-zz.prototype = {+Rz.prototype = {areaStart: function() {this._line = 0;},@@ -52596,78 +52587,78 @@ zz.prototype = {this._x = e, this._y = t;}};+function exe(e) {+ return new Rz(e, .5);+}function txe(e) {- return new zz(e, .5);+ return new Rz(e, 0);}function nxe(e) {- return new zz(e, 0);-}-function rxe(e) {- return new zz(e, 1);+ return new Rz(e, 1);}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/none.js-function Bz(e, t) {+function zz(e, t) {if ((o = e.length) > 1) for (var n = 1, r, i, a = e[t[0]], o, s = a.length; n < o; ++n) for (i = a, a = e[t[n]], r = 0; r < s; ++r) a[r][1] += a[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1];}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/order/none.js-function Vz(e) {+function Bz(e) {for (var t = e.length, n = Array(t); --t >= 0;) n[t] = t;return n;}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/stack.js-function ixe(e, t) {+function rxe(e, t) {return e[t];}-function axe(e) {+function ixe(e) {let t = [];return t.key = e, t;}-function oxe() {- var e = ZR([]), t = Vz, n = Bz, r = ixe;+function axe() {+ var e = XR([]), t = Bz, n = zz, r = rxe;function i(i) {- var a = Array.from(e.apply(this, arguments), axe), o, s = a.length, c = -1, l;+ var a = Array.from(e.apply(this, arguments), ixe), o, s = a.length, c = -1, l;for (let e of i) for (o = 0, ++c; o < s; ++o) (a[o][c] = [0, +r(e, a[o].key, c, i)]).data = e;- for (o = 0, l = lz(t(a)); o < s; ++o) a[l[o]].index = o;+ for (o = 0, l = cz(t(a)); o < s; ++o) a[l[o]].index = o;return n(a, l), a;}return i.keys = function(t) {- return arguments.length ? (e = typeof t == "function" ? t : ZR(Array.from(t)), i) : e;+ return arguments.length ? (e = typeof t == "function" ? t : XR(Array.from(t)), i) : e;}, i.value = function(e) {- return arguments.length ? (r = typeof e == "function" ? e : ZR(+e), i) : r;+ return arguments.length ? (r = typeof e == "function" ? e : XR(+e), i) : r;}, i.order = function(e) {- return arguments.length ? (t = e == null ? Vz : typeof e == "function" ? e : ZR(Array.from(e)), i) : t;+ return arguments.length ? (t = e == null ? Bz : typeof e == "function" ? e : XR(Array.from(e)), i) : t;}, i.offset = function(e) {- return arguments.length ? (n = e ?? Bz, i) : n;+ return arguments.length ? (n = e ?? zz, i) : n;}, i;}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/expand.js-function sxe(e, t) {+function oxe(e, t) {if ((r = e.length) > 0) {for (var n, r, i = 0, a = e[0].length, o; i < a; ++i) {for (o = n = 0; n < r; ++n) o += e[n][i][1] || 0;if (o) for (n = 0; n < r; ++n) e[n][i][1] /= o;}- Bz(e, t);+ zz(e, t);}}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/silhouette.js-function cxe(e, t) {+function sxe(e, t) {if ((i = e.length) > 0) {for (var n = 0, r = e[t[0]], i, a = r.length; n < a; ++n) {for (var o = 0, s = 0; o < i; ++o) s += e[o][n][1] || 0;r[n][1] += r[n][0] = -s / 2;}- Bz(e, t);+ zz(e, t);}}//#endregion//#region node_modules/victory-vendor/node_modules/d3-shape/src/offset/wiggle.js-function lxe(e, t) {+function cxe(e, t) {if (!(!((o = e.length) > 0) || !((a = (i = e[t[0]]).length) > 0))) {for (var n = 0, r = 1, i, a, o; r < a; ++r) {for (var s = 0, c = 0, l = 0; s < o; ++s) {@@ -52679,53 +52670,53 @@ function lxe(e, t) {}i[r - 1][1] += i[r - 1][0] = n, c && (n -= l / c);}- i[r - 1][1] += i[r - 1][0] = n, Bz(e, t);+ i[r - 1][1] += i[r - 1][0] = n, zz(e, t);}}//#endregion//#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs-function Hz(e) {+function Vz(e) {return e === "__proto__";}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs-var uxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;-function Uz(e) {+var lxe = /\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;+function Hz(e) {switch (typeof e) {case "number":case "symbol": return !1;- case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : uxe.test(e);+ case "string": return e === "" || e.startsWith(".") || e.endsWith(".") ? !1 : lxe.test(e);default: return !1;}}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/toKey.mjs-function Wz(e) {+function Uz(e) {return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs-function Gz(e) {+function Wz(e) {return typeof e == "symbol" || e instanceof Symbol;}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toString.mjs-function dxe(e) {- return e == null ? "" : Kz(e);+function uxe(e) {+ return e == null ? "" : Gz(e);}-function Kz(e) {+function Gz(e) {if (typeof e == "string") return e;- if (Array.isArray(e)) return e.map(Kz).join(",");- if (Gz(e)) return e.toString();+ if (Array.isArray(e)) return e.map(Gz).join(",");+ if (Wz(e)) return e.toString();let t = e + "";return t === "0" && Object.is(Number(e), -0) ? "-0" : t;}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toPath.mjs-function qz(e) {- if (Array.isArray(e)) return e.map(Wz);+function Kz(e) {+ if (Array.isArray(e)) return e.map(Uz);if (typeof e == "symbol") return [e];- e = dxe(e);+ e = uxe(e);let t = [], n = e.length;if (n === 0) return t;let r = 0, i = "", a = "", o = !1, s = !1, c = /^-?\d+(?:\.\d+)?$/;@@ -52753,100 +52744,100 @@ function qz(e) {}//#endregion//#region node_modules/es-toolkit/dist/compat/object/get.mjs-function Jz(e, t, n) {+function qz(e, t, n) {if (e == null) return n;switch (typeof t) {case "string": {- if (Hz(t)) return n;+ if (Vz(t)) return n;let r = e[t];- return r === void 0 ? Uz(t) && !Object.hasOwn(e, t) ? Jz(e, qz(t), n) : n : r;+ return r === void 0 ? Hz(t) && !Object.hasOwn(e, t) ? qz(e, Kz(t), n) : n : r;}case "number":case "symbol": {- typeof t == "number" && (t = Wz(t));+ typeof t == "number" && (t = Uz(t));let r = e[t];return r === void 0 ? n : r;}default: {- if (Array.isArray(t)) return fxe(e, t, n);- if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Hz(t)) return n;+ if (Array.isArray(t)) return dxe(e, t, n);+ if (t = Object.is(t?.valueOf(), -0) ? "-0" : String(t), Vz(t)) return n;let r = e[t];return r === void 0 ? n : r;}}}-function fxe(e, t, n) {+function dxe(e, t, n) {if (t.length === 0) return n;let r = e;for (let e = 0; e < t.length; e++) {- if (r == null || Hz(t[e])) return n;+ if (r == null || Vz(t[e])) return n;r = r[t[e]];}return r === void 0 ? n : r;}//#endregion//#region node_modules/recharts/es6/util/round.js-var pxe = 4;-function Yz(e) {- var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : pxe), n = Math.round(e * t) / t;+var fxe = 4;+function Jz(e) {+ var t = 10 ** (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : fxe), n = Math.round(e * t) / t;return Object.is(n, -0) ? 0 : n;}-function Xz(e) {+function Yz(e) {var t = [...arguments].slice(1);return e.reduce((e, n, r) => {var i = t[r - 1];- return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + Yz(i) + n;+ return typeof i == "string" ? e + i + n : i === void 0 ? e + n : e + Jz(i) + n;}, "");}//#endregion//#region node_modules/recharts/es6/util/DataUtils.js-var Zz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, Qz = (e) => typeof e == "number" && e != +e, $z = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !Qz(e), eB = (e) => Z(e) || typeof e == "string", mxe = 0, tB = (e) => {- var t = ++mxe;+var Xz = (e) => e === 0 ? 0 : e > 0 ? 1 : -1, Zz = (e) => typeof e == "number" && e != +e, Qz = (e) => typeof e == "string" && e.indexOf("%") === e.length - 1, Z = (e) => (typeof e == "number" || e instanceof Number) && !Zz(e), $z = (e) => Z(e) || typeof e == "string", pxe = 0, eB = (e) => {+ var t = ++pxe;return `${e || ""}${t}`;-}, nB = function(e, t) {+}, tB = function(e, t) {var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, r = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];if (!Z(e) && typeof e != "string") return n;var i;- if ($z(e)) {+ if (Qz(e)) {if (t == null) return n;var a = e.indexOf("%");i = t * parseFloat(e.slice(0, a)) / 100;} else i = +e;- return Qz(i) && (i = n), r && t != null && i > t && (i = t), i;-}, rB = (e) => {+ return Zz(i) && (i = n), r && t != null && i > t && (i = t), i;+}, nB = (e) => {if (!Array.isArray(e)) return !1;for (var t = e.length, n = {}, r = 0; r < t; r++) if (!n[String(e[r])]) n[String(e[r])] = !0;else return !0;return !1;};-function iB(e, t, n) {- return Z(e) && Z(t) ? Yz(e + n * (t - e)) : t;+function rB(e, t, n) {+ return Z(e) && Z(t) ? Jz(e + n * (t - e)) : t;}-function aB(e, t, n) {- if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : Jz(e, t)) === n);+function iB(e, t, n) {+ if (!(!e || !e.length)) return e.find((e) => e && (typeof t == "function" ? t(e) : qz(e, t)) === n);}-var oB = (e) => e == null, sB = (e) => oB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;-function cB(e) {+var aB = (e) => e == null, oB = (e) => aB(e) ? e : `${e.charAt(0).toUpperCase()}${e.slice(1)}`;+function sB(e) {return e != null;}-function lB() {}+function cB() {}//#endregion//#region node_modules/recharts/es6/shape/Symbols.js-var hxe = [+var mxe = ["type","size","sizeType"];-function uB() {- return uB = Object.assign ? Object.assign.bind() : function(e) {+function lB() {+ return lB = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, uB.apply(null, arguments);+ }, lB.apply(null, arguments);}-function dB(e, t) {+function uB(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52856,30 +52847,30 @@ function dB(e, t) {}return n;}-function fB(e) {+function dB(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? dB(Object(n), !0).forEach(function(t) {- gxe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : dB(Object(n)).forEach(function(t) {+ t % 2 ? uB(Object(n), !0).forEach(function(t) {+ hxe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uB(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function gxe(e, t, n) {- return (t = _xe(t)) in e ? Object.defineProperty(e, t, {+function hxe(e, t, n) {+ return (t = gxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function _xe(e) {- var t = vxe(e, "string");+function gxe(e) {+ var t = _xe(e, "string");return typeof t == "symbol" ? t : t + "";}-function vxe(e, t) {+function _xe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -52889,16 +52880,16 @@ function vxe(e, t) {}return (t === "string" ? String : Number)(e);}-function yxe(e, t) {+function vxe(e, t) {if (e == null) return {};- var n, r, i = bxe(e, t);+ var n, r, i = yxe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function bxe(e, t) {+function yxe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -52907,68 +52898,68 @@ function bxe(e, t) {}return n;}-var pB = {- symbolCircle: _z,- symbolCross: Ibe,- symbolDiamond: Rbe,- symbolSquare: zbe,- symbolStar: Ube,- symbolTriangle: Wbe,- symbolWye: Kbe-}, xxe = Math.PI / 180, Sxe = (e) => pB[`symbol${sB(e)}`] || _z, Cxe = (e, t, n) => {+var fB = {+ symbolCircle: gz,+ symbolCross: Fbe,+ symbolDiamond: Lbe,+ symbolSquare: Rbe,+ symbolStar: Hbe,+ symbolTriangle: Ube,+ symbolWye: Gbe+}, bxe = Math.PI / 180, xxe = (e) => fB[`symbol${oB(e)}`] || gz, Sxe = (e, t, n) => {if (t === "area") return e;switch (n) {case "cross": return 5 * e * e / 9;case "diamond": return .5 * e * e / Math.sqrt(3);case "square": return e * e;case "star":- var r = 18 * xxe;+ var r = 18 * bxe;return 1.25 * e * e * (Math.tan(r) - Math.tan(r * 2) * Math.tan(r) ** 2);case "triangle": return Math.sqrt(3) * e * e / 4;case "wye": return (21 - 10 * Math.sqrt(3)) * e * e / 8;default: return Math.PI * e * e / 4;}-}, wxe = (e, t) => {- pB[`symbol${sB(e)}`] = t;-}, mB = (e) => {- var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = fB(fB({}, yxe(e, hxe)), {}, {+}, Cxe = (e, t) => {+ fB[`symbol${oB(e)}`] = t;+}, pB = (e) => {+ var { type: t = "circle", size: n = 64, sizeType: r = "area" } = e, i = dB(dB({}, vxe(e, mxe)), {}, {type: t,size: n,sizeType: r}), a = "circle";typeof t == "string" && (a = t);var o = () => {- var e = Sxe(a), t = qbe().type(e).size(Cxe(n, r, a))();+ var e = xxe(a), t = Kbe().type(e).size(Sxe(n, r, a))();if (t !== null) return t;- }, { className: s, cx: c, cy: l } = i, u = GR(i);- return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", uB({}, u, {+ }, { className: s, cx: c, cy: l } = i, u = WR(i);+ return Z(c) && Z(l) && Z(n) ? /*#__PURE__*/ B.createElement("path", lB({}, u, {className: _h("recharts-symbols", s),transform: `translate(${c}, ${l})`,d: o()})) : null;};-mB.registerSymbol = wxe;+pB.registerSymbol = Cxe;//#endregion//#region node_modules/recharts/es6/util/types.js-var hB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, gB = (e, t) => {+var mB = (e) => "radius" in e && "startAngle" in e && "endAngle" in e, hB = (e, t) => {if (!e || typeof e == "function" || typeof e == "boolean") return null;var n = e;if (/*#__PURE__*/ (0, B.isValidElement)(e) && (n = e.props), typeof n != "object" && typeof n != "function") return null;var r = {};return Object.keys(n).forEach((e) => {- BR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));+ zR(e) && typeof n[e] == "function" && (r[e] = t || ((t) => n[e](n, t)));}), r;-}, Txe = (e, t, n) => (r) => (e(t, n, r), null), _B = (e, t, n) => {+}, wxe = (e, t, n) => (r) => (e(t, n, r), null), gB = (e, t, n) => {if (e === null || typeof e != "object" && typeof e != "function") return null;var r = null;return Object.keys(e).forEach((i) => {var a = e[i];- BR(i) && typeof a == "function" && (r ||= {}, r[i] = Txe(a, t, n));+ zR(i) && typeof a == "function" && (r ||= {}, r[i] = wxe(a, t, n));}), r;};//#endregion//#region node_modules/recharts/es6/util/resolveDefaultProps.js-function vB(e, t) {+function _B(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -52978,30 +52969,30 @@ function vB(e, t) {}return n;}-function Exe(e) {+function Txe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? vB(Object(n), !0).forEach(function(t) {- Dxe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vB(Object(n)).forEach(function(t) {+ t % 2 ? _B(Object(n), !0).forEach(function(t) {+ Exe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _B(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Dxe(e, t, n) {- return (t = Oxe(t)) in e ? Object.defineProperty(e, t, {+function Exe(e, t, n) {+ return (t = Dxe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Oxe(e) {- var t = kxe(e, "string");+function Dxe(e) {+ var t = Oxe(e, "string");return typeof t == "symbol" ? t : t + "";}-function kxe(e, t) {+function Oxe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -53011,22 +53002,22 @@ function kxe(e, t) {}return (t === "string" ? String : Number)(e);}-function yB(e, t) {- var n = Exe({}, e), r = t;+function vB(e, t) {+ var n = Txe({}, e), r = t;return Object.keys(t).reduce((e, t) => (e[t] === void 0 && r[t] !== void 0 && (e[t] = r[t]), e), n);}//#endregion//#region node_modules/recharts/es6/component/DefaultLegendContent.js-function bB() {- return bB = Object.assign ? Object.assign.bind() : function(e) {+function yB() {+ return yB = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, bB.apply(null, arguments);+ }, yB.apply(null, arguments);}-function xB(e, t) {+function bB(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -53036,30 +53027,30 @@ function xB(e, t) {}return n;}-function SB(e) {+function xB(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? xB(Object(n), !0).forEach(function(t) {- Axe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xB(Object(n)).forEach(function(t) {+ t % 2 ? bB(Object(n), !0).forEach(function(t) {+ kxe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : bB(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Axe(e, t, n) {- return (t = jxe(t)) in e ? Object.defineProperty(e, t, {+function kxe(e, t, n) {+ return (t = Axe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function jxe(e) {- var t = Mxe(e, "string");+function Axe(e) {+ var t = jxe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Mxe(e, t) {+function jxe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -53069,7 +53060,7 @@ function Mxe(e, t) {}return (t === "string" ? String : Number)(e);}-var CB = 32, Nxe = {+var SB = 32, Mxe = {align: "center",iconSize: 14,inactiveColor: "#ccc",@@ -53077,20 +53068,20 @@ var CB = 32, Nxe = {verticalAlign: "middle",labelStyle: {}};-function Pxe(e) {+function Nxe(e) {if (typeof e == "object" && e && "strokeDasharray" in e) return String(e.strokeDasharray);}-function Fxe(e) {- var { data: t, iconType: n, inactiveColor: r } = e, i = CB / 2, a = CB / 6, o = CB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;+function Pxe(e) {+ var { data: t, iconType: n, inactiveColor: r } = e, i = SB / 2, a = SB / 6, o = SB / 3, s = t.inactive ? r : t.color, c = n ?? t.type;if (c === "none") return null;if (c === "plainline") return /*#__PURE__*/ B.createElement("line", {strokeWidth: 4,fill: "none",stroke: s,- strokeDasharray: Pxe(t.payload),+ strokeDasharray: Nxe(t.payload),x1: 0,y1: i,- x2: CB,+ x2: SB,y2: i,className: "recharts-legend-icon"});@@ -53100,35 +53091,35 @@ function Fxe(e) {stroke: s,d: `M0,${i}h${o}A${a},${a},0,1,1,${2 * o},${i}- H${CB}M${2 * o},${i}+ H${SB}M${2 * o},${i}A${a},${a},0,1,1,${o},${i}`,className: "recharts-legend-icon"});if (c === "rect") return /*#__PURE__*/ B.createElement("path", {stroke: "none",fill: s,- d: `M0,${CB / 8}h${CB}v${CB * 3 / 4}h${-CB}z`,+ d: `M0,${SB / 8}h${SB}v${SB * 3 / 4}h${-SB}z`,className: "recharts-legend-icon"});if (/*#__PURE__*/ B.isValidElement(t.legendIcon)) {- var l = SB({}, t);+ var l = xB({}, t);return delete l.legendIcon, /*#__PURE__*/ B.cloneElement(t.legendIcon, l);}- return /*#__PURE__*/ B.createElement(mB, {+ return /*#__PURE__*/ B.createElement(pB, {fill: s,cx: i,cy: i,- size: CB,+ size: SB,sizeType: "diameter",type: c});}-function Ixe(e) {+function Fxe(e) {var { payload: t, iconSize: n, layout: r, formatter: i, inactiveColor: a, iconType: o, labelStyle: s } = e, c = {x: 0,y: 0,- width: CB,- height: CB+ width: SB,+ height: SB}, l = {display: r === "horizontal" ? "inline-block" : "block",marginRight: 10@@ -53144,20 +53135,20 @@ function Ixe(e) {inactive: t.inactive});if (t.type === "none") return null;- var p = typeof s == "object" ? SB({}, s) : {};+ var p = typeof s == "object" ? xB({}, s) : {};p.color = t.inactive ? a : p.color || t.color;var m = d ? d(t.value, t, r) : t.value;- return /*#__PURE__*/ B.createElement("li", bB({+ return /*#__PURE__*/ B.createElement("li", yB({className: f,style: l,key: `legend-item-${r}`- }, _B(e, t, r)), /*#__PURE__*/ B.createElement(qR, {+ }, gB(e, t, r)), /*#__PURE__*/ B.createElement(KR, {width: n,height: n,viewBox: c,style: u,"aria-label": `${m} legend icon`- }, /*#__PURE__*/ B.createElement(Fxe, {+ }, /*#__PURE__*/ B.createElement(Pxe, {data: t,iconType: o,inactiveColor: a@@ -53167,8 +53158,8 @@ function Ixe(e) {}, m));});}-var Lxe = (e) => {- var t = yB(e, Nxe), { payload: n, layout: r, align: i } = t;+var Ixe = (e) => {+ var t = vB(e, Mxe), { payload: n, layout: r, align: i } = t;if (!n || !n.length) return null;var a = {padding: 0,@@ -53178,11 +53169,11 @@ var Lxe = (e) => {return /*#__PURE__*/ B.createElement("ul", {className: "recharts-default-legend",style: a- }, /*#__PURE__*/ B.createElement(Ixe, bB({}, t, { payload: n })));+ }, /*#__PURE__*/ B.createElement(Fxe, yB({}, t, { payload: n })));};//#endregion//#region node_modules/es-toolkit/dist/array/uniqBy.mjs-function Rxe(e, t) {+function Lxe(e, t) {let n = /* @__PURE__ */ new Map();for (let r = 0; r < e.length; r++) {let i = e[r], a = t(i, r, e);@@ -53192,77 +53183,77 @@ function Rxe(e, t) {}//#endregion//#region node_modules/es-toolkit/dist/function/ary.mjs-function zxe(e, t) {+function Rxe(e, t) {return function(...n) {return e.apply(this, n.slice(0, t));};}//#endregion//#region node_modules/es-toolkit/dist/function/identity.mjs-function wB(e) {+function CB(e) {return e;}//#endregion//#region node_modules/es-toolkit/dist/predicate/isLength.mjs-function Bxe(e) {+function zxe(e) {return Number.isSafeInteger(e) && e >= 0;}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs-function TB(e) {- return e != null && typeof e != "function" && Bxe(e.length);+function wB(e) {+ return e != null && typeof e != "function" && zxe(e.length);}//#endregion//#region node_modules/es-toolkit/dist/compat/object/property.mjs-function Vxe(e) {+function Bxe(e) {return function(t) {- return Jz(t, e);+ return qz(t, e);};}//#endregion//#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs-function EB(e) {+function TB(e) {return e == null || typeof e != "object" && typeof e != "function";}//#endregion//#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs-function Hxe(e) {+function Vxe(e) {return ArrayBuffer.isView(e) && !(e instanceof DataView);}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs-function Uxe(e) {+function Hxe(e) {return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs-function DB(e) {+function EB(e) {return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs-var Wxe = "[object RegExp]", OB = "[object String]", kB = "[object Number]", AB = "[object Boolean]", jB = "[object Arguments]", Gxe = "[object Symbol]", Kxe = "[object Date]", qxe = "[object Map]", Jxe = "[object Set]", Yxe = "[object Array]", Xxe = "[object ArrayBuffer]", Zxe = "[object Object]", Qxe = "[object DataView]", $xe = "[object Uint8Array]", eSe = "[object Uint8ClampedArray]", tSe = "[object Uint16Array]", nSe = "[object Uint32Array]", rSe = "[object Int8Array]", iSe = "[object Int16Array]", aSe = "[object Int32Array]", oSe = "[object Float32Array]", sSe = "[object Float64Array]", MB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {+var Uxe = "[object RegExp]", DB = "[object String]", OB = "[object Number]", kB = "[object Boolean]", AB = "[object Arguments]", Wxe = "[object Symbol]", Gxe = "[object Date]", Kxe = "[object Map]", qxe = "[object Set]", Jxe = "[object Array]", Yxe = "[object ArrayBuffer]", Xxe = "[object Object]", Zxe = "[object DataView]", Qxe = "[object Uint8Array]", $xe = "[object Uint8ClampedArray]", eSe = "[object Uint16Array]", tSe = "[object Uint32Array]", nSe = "[object Int8Array]", rSe = "[object Int16Array]", iSe = "[object Int32Array]", aSe = "[object Float32Array]", oSe = "[object Float64Array]", jB = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {return this;})();//#endregion//#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs-function cSe(e) {- return MB.Buffer !== void 0 && MB.Buffer.isBuffer(e);+function sSe(e) {+ return jB.Buffer !== void 0 && jB.Buffer.isBuffer(e);}//#endregion//#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs-function lSe(e, t) {- return NB(e, void 0, e, /* @__PURE__ */ new Map(), t);+function cSe(e, t) {+ return MB(e, void 0, e, /* @__PURE__ */ new Map(), t);}-function NB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {+function MB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {let a = i?.(e, t, n, r);if (a !== void 0) return a;- if (EB(e)) return e;+ if (TB(e)) return e;if (r.has(e)) return r.get(e);if (Array.isArray(e)) {let t = Array(e.length);r.set(e, t);- for (let a = 0; a < e.length; a++) t[a] = NB(e[a], a, n, r, i);+ for (let a = 0; a < e.length; a++) t[a] = MB(e[a], a, n, r, i);return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;}if (e instanceof Date) return new Date(e.getTime());@@ -53273,132 +53264,132 @@ function NB(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {if (e instanceof Map) {let t = /* @__PURE__ */ new Map();r.set(e, t);- for (let [a, o] of e) t.set(a, NB(o, a, n, r, i));+ for (let [a, o] of e) t.set(a, MB(o, a, n, r, i));return t;}if (e instanceof Set) {let t = /* @__PURE__ */ new Set();r.set(e, t);- for (let a of e) t.add(NB(a, void 0, n, r, i));+ for (let a of e) t.add(MB(a, void 0, n, r, i));return t;}- if (cSe(e)) return e.subarray();- if (Hxe(e)) {+ if (sSe(e)) return e.subarray();+ if (Vxe(e)) {let t = new (Object.getPrototypeOf(e)).constructor(e.length);r.set(e, t);- for (let a = 0; a < e.length; a++) t[a] = NB(e[a], a, n, r, i);+ for (let a = 0; a < e.length; a++) t[a] = MB(e[a], a, n, r, i);return t;}if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);if (e instanceof DataView) {let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}if (typeof File < "u" && e instanceof File) {let t = new File([e], e.name, { type: e.type });- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}if (typeof Blob < "u" && e instanceof Blob) {let t = new Blob([e], { type: e.type });- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}if (e instanceof Error) {let t = structuredClone(e);- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, PB(t, e, n, r, i), t;+ return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, NB(t, e, n, r, i), t;}if (e instanceof Boolean) {let t = new Boolean(e.valueOf());- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}if (e instanceof Number) {let t = new Number(e.valueOf());- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}if (e instanceof String) {let t = new String(e.valueOf());- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}- if (typeof e == "object" && uSe(e)) {+ if (typeof e == "object" && lSe(e)) {let t = Object.create(Object.getPrototypeOf(e));- return r.set(e, t), PB(t, e, n, r, i), t;+ return r.set(e, t), NB(t, e, n, r, i), t;}return e;}-function PB(e, t, n = e, r, i) {- let a = [...Object.keys(t), ...Uxe(t)];+function NB(e, t, n = e, r, i) {+ let a = [...Object.keys(t), ...Hxe(t)];for (let o = 0; o < a.length; o++) {let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);- (c == null || c.writable) && (e[s] = NB(t[s], s, n, r, i));+ (c == null || c.writable) && (e[s] = MB(t[s], s, n, r, i));}}-function uSe(e) {- switch (DB(e)) {- case jB:- case Yxe:- case Xxe:- case Qxe:+function lSe(e) {+ switch (EB(e)) {case AB:- case Kxe:+ case Jxe:+ case Yxe:+ case Zxe:+ case kB:+ case Gxe:+ case aSe:case oSe:- case sSe:+ case nSe:case rSe:case iSe:- case aSe:+ case Kxe:+ case OB:+ case Xxe:+ case Uxe:case qxe:- case kB:- case Zxe:+ case DB:case Wxe:- case Jxe:- case OB:- case Gxe:+ case Qxe:case $xe:case eSe:- case tSe:- case nSe: return !0;+ case tSe: return !0;default: return !1;}}//#endregion//#region node_modules/es-toolkit/dist/object/cloneDeep.mjs-function dSe(e) {- return NB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);+function uSe(e) {+ return MB(e, void 0, e, /* @__PURE__ */ new Map(), void 0);}//#endregion//#region node_modules/es-toolkit/dist/compat/util/eq.mjs-function FB(e, t) {+function PB(e, t) {return e === t || Number.isNaN(e) && Number.isNaN(t);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isObject.mjs-function IB(e) {+function FB(e) {return e !== null && (typeof e == "object" || typeof e == "function");}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isMatchWith.mjs-function LB(e, t, n) {- return typeof n == "function" ? RB(e, t, function e(t, r, i, a, o, s) {+function IB(e, t, n) {+ return typeof n == "function" ? LB(e, t, function e(t, r, i, a, o, s) {let c = n(t, r, i, a, o, s);- return c === void 0 ? RB(t, r, e, s, !1) : !!c;- }, /* @__PURE__ */ new Map(), !0) : LB(e, t, () => void 0);+ return c === void 0 ? LB(t, r, e, s, !1) : !!c;+ }, /* @__PURE__ */ new Map(), !0) : IB(e, t, () => void 0);}-function RB(e, t, n, r, i = !1) {+function LB(e, t, n, r, i = !1) {if (t === e) return !0;switch (typeof t) {- case "object": return fSe(e, t, n, r, i);- case "function": return Object.keys(t).length > 0 ? RB(e, { ...t }, n, r, i) : FB(e, t);- default: return IB(e) && i ? typeof t != "string" || t === "" : FB(e, t);+ case "object": return dSe(e, t, n, r, i);+ case "function": return Object.keys(t).length > 0 ? LB(e, { ...t }, n, r, i) : PB(e, t);+ default: return FB(e) && i ? typeof t != "string" || t === "" : PB(e, t);}}-function fSe(e, t, n, r, i = !1) {+function dSe(e, t, n, r, i = !1) {if (t == null) return !0;- if (Array.isArray(t)) return zB(e, t, n, r);- if (t instanceof Map) return pSe(e, t, n, r);- if (t instanceof Set) return mSe(e, t, n, r);+ if (Array.isArray(t)) return RB(e, t, n, r);+ if (t instanceof Map) return fSe(e, t, n, r);+ if (t instanceof Set) return pSe(e, t, n, r);let a = Object.keys(t);if (e == null) return i && a.length === 0;- if (i) EB(e) && (e = Object(e));+ if (i) TB(e) && (e = Object(e));else {- let t = DB(e);+ let t = EB(e);if (t !== "[object Object]" && t !== "[object Arguments]") return !1;}if (a.length === 0) return !0;@@ -53414,13 +53405,13 @@ function fSe(e, t, n, r, i = !1) {r?.delete(t);}}-function pSe(e, t, n, r) {+function fSe(e, t, n, r) {if (t.size === 0) return !0;if (!(e instanceof Map)) return !1;for (let [i, a] of t.entries()) if (n(e.get(i), a, i, e, t, r) === !1) return !1;return !0;}-function zB(e, t, n, r) {+function RB(e, t, n, r) {if (t.length === 0) return !0;if (!Array.isArray(e)) return !1;let i = /* @__PURE__ */ new Set();@@ -53438,40 +53429,40 @@ function zB(e, t, n, r) {}return !0;}-function mSe(e, t, n, r) {- return t.size === 0 || e instanceof Set && zB([...e], [...t], n, r);+function pSe(e, t, n, r) {+ return t.size === 0 || e instanceof Set && RB([...e], [...t], n, r);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isMatch.mjs-function BB(e, t) {- return LB(e, t, () => void 0);+function zB(e, t) {+ return IB(e, t, () => void 0);}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/matches.mjs-function hSe(e) {- return e = dSe(e), (t) => BB(t, e);+function mSe(e) {+ return e = uSe(e), (t) => zB(t, e);}//#endregion//#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs-function gSe(e, t) {- return lSe(e, (n, r, i, a) => {+function hSe(e, t) {+ return cSe(e, (n, r, i, a) => {let o = t?.(n, r, i, a);if (o !== void 0) return o;if (typeof e == "object") {- if (DB(e) === "[object Object]" && typeof e.constructor != "function") {+ if (EB(e) === "[object Object]" && typeof e.constructor != "function") {let t = {};- return a.set(e, t), PB(t, e, i, a), t;+ return a.set(e, t), NB(t, e, i, a), t;}switch (Object.prototype.toString.call(e)) {- case kB:case OB:- case AB: {+ case DB:+ case kB: {let t = new e.constructor(e?.valueOf());- return PB(t, e), t;+ return NB(t, e), t;}- case jB: {+ case AB: {let t = {};- return PB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;+ return NB(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;}default: return;}@@ -53480,79 +53471,79 @@ function gSe(e, t) {}//#endregion//#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs-function _Se(e) {- return gSe(e);+function gSe(e) {+ return hSe(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs-var vSe = /^(?:0|[1-9]\d*)$/;-function VB(e, t = 2 ** 53 - 1) {+var _Se = /^(?:0|[1-9]\d*)$/;+function BB(e, t = 2 ** 53 - 1) {switch (typeof e) {case "number": return Number.isInteger(e) && e >= 0 && e < t;case "symbol": return !1;- case "string": return vSe.test(e);+ case "string": return _Se.test(e);}}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs-function ySe(e) {- return typeof e == "object" && !!e && DB(e) === "[object Arguments]";+function vSe(e) {+ return typeof e == "object" && !!e && EB(e) === "[object Arguments]";}//#endregion//#region node_modules/es-toolkit/dist/compat/object/has.mjs-function bSe(e, t) {+function ySe(e, t) {let n;- if (n = Array.isArray(t) ? t : typeof t == "string" && Uz(t) && !(t in Object(e)) ? qz(t) : [t], n.length === 0) return !1;+ if (n = Array.isArray(t) ? t : typeof t == "string" && Hz(t) && !(t in Object(e)) ? Kz(t) : [t], n.length === 0) return !1;let r = e;for (let e = 0; e < n.length; e++) {- let t = Wz(n[e]);- if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || ySe(r)) && VB(t) && Number(t) < r.length)) return !1;+ let t = Uz(n[e]);+ if ((r == null || !Object.hasOwn(r, t)) && !((Array.isArray(r) || vSe(r)) && BB(t) && Number(t) < r.length)) return !1;r = r[t];}return !0;}//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/matchesProperty.mjs-function xSe(e, t) {+function bSe(e, t) {switch (typeof e) {case "object":Object.is(e?.valueOf(), -0) && (e = "-0");break;- case "number": e = Wz(e);+ case "number": e = Uz(e);}- return t = _Se(t), function(n) {- let r = Jz(n, e);- return r === void 0 ? bSe(n, e) : t === void 0 ? r === void 0 : BB(r, t);+ return t = gSe(t), function(n) {+ let r = qz(n, e);+ return r === void 0 ? ySe(n, e) : t === void 0 ? r === void 0 : zB(r, t);};}//#endregion//#region node_modules/es-toolkit/dist/compat/util/iteratee.mjs-function HB(e) {- if (e == null) return wB;+function VB(e) {+ if (e == null) return CB;switch (typeof e) {case "function": return e;- case "object": return Array.isArray(e) && e.length === 2 ? xSe(e[0], e[1]) : hSe(e);- default: return Vxe(e);+ case "object": return Array.isArray(e) && e.length === 2 ? bSe(e[0], e[1]) : mSe(e);+ default: return Bxe(e);}}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/normalizeZero.mjs-function SSe(e) {+function xSe(e) {return e === 0 ? 0 : e;}//#endregion//#region node_modules/es-toolkit/dist/compat/array/uniqBy.mjs-function UB(e, t = wB) {- return TB(e) ? Rxe(Array.from(e), zxe(HB(t), 1)).map(SSe) : [];+function HB(e, t = CB) {+ return wB(e) ? Lxe(Array.from(e), Rxe(VB(t), 1)).map(xSe) : [];}//#endregion//#region node_modules/recharts/es6/util/payload/getUniqPayload.js-function WB(e, t, n) {- return t === !0 ? UB(e, n) : typeof t == "function" ? UB(e, t) : e;+function UB(e, t, n) {+ return t === !0 ? HB(e, n) : typeof t == "function" ? HB(e, t) : e;}//#endregion//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js-var CSe = /* @__PURE__ */ xt(((e) => {+var SSe = /* @__PURE__ */ xt(((e) => {var t = Ot(), n = Uh();function r(e, t) {return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;@@ -53597,60 +53588,60 @@ var CSe = /* @__PURE__ */ xt(((e) => {f.hasValue = !0, f.value = p;}, [p]), l(p), p;};-})), wSe = /* @__PURE__ */ xt(((e, t) => {- t.exports = CSe();-})), GB = /*#__PURE__*/ (0, B.createContext)(null), TSe = wSe(), ESe = (e) => e, KB = () => {- var e = (0, B.useContext)(GB);- return e ? e.store.dispatch : ESe;-}, qB = () => {}, DSe = () => qB, OSe = (e, t) => e === t;+})), CSe = /* @__PURE__ */ xt(((e, t) => {+ t.exports = SSe();+})), WB = /*#__PURE__*/ (0, B.createContext)(null), wSe = CSe(), TSe = (e) => e, GB = () => {+ var e = (0, B.useContext)(WB);+ return e ? e.store.dispatch : TSe;+}, KB = () => {}, ESe = () => KB, DSe = (e, t) => e === t;function Q(e) {- var t = (0, B.useContext)(GB), n = (0, B.useMemo)(() => t ? (t) => {+ var t = (0, B.useContext)(WB), n = (0, B.useMemo)(() => t ? (t) => {if (t != null) return e(t);- } : qB, [t, e]);- return (0, TSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : DSe, t ? t.store.getState : qB, t ? t.store.getState : qB, n, OSe);+ } : KB, [t, e]);+ return (0, wSe.useSyncExternalStoreWithSelector)(t ? t.subscription.addNestedSub : ESe, t ? t.store.getState : KB, t ? t.store.getState : KB, n, DSe);}//#endregion//#region node_modules/reselect/dist/reselect.mjs-function kSe(e, t = `expected a function, instead received ${typeof e}`) {+function OSe(e, t = `expected a function, instead received ${typeof e}`) {if (typeof e != "function") throw TypeError(t);}-function ASe(e, t = `expected an object, instead received ${typeof e}`) {+function kSe(e, t = `expected an object, instead received ${typeof e}`) {if (typeof e != "object") throw TypeError(t);}-function jSe(e, t = "expected all items to be functions, instead received the following types: ") {+function ASe(e, t = "expected all items to be functions, instead received the following types: ") {if (!e.every((e) => typeof e == "function")) {let n = e.map((e) => typeof e == "function" ? `function ${e.name || "unnamed"}()` : typeof e).join(", ");throw TypeError(`${t}[${n}]`);}}-var JB = (e) => Array.isArray(e) ? e : [e];-function MSe(e) {+var qB = (e) => Array.isArray(e) ? e : [e];+function jSe(e) {let t = Array.isArray(e[0]) ? e[0] : e;- return jSe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;+ return ASe(t, "createSelector expects all input-selectors to be functions, but received the following types: "), t;}-function NSe(e, t) {+function MSe(e, t) {let n = [], { length: r } = e;for (let i = 0; i < r; i++) n.push(e[i].apply(null, t));return n;}-var PSe = class {+var NSe = class {constructor(e) {this.value = e;}deref() {return this.value;}-}, FSe = typeof WeakRef < "u" ? WeakRef : PSe, ISe = 0, YB = 1;-function XB() {+}, PSe = typeof WeakRef < "u" ? WeakRef : NSe, FSe = 0, JB = 1;+function YB() {return {- s: ISe,+ s: FSe,v: void 0,o: null,p: null};}-function ZB(e, t = {}) {- let n = XB(), { resultEqualityCheck: r } = t, i, a = 0;+function XB(e, t = {}) {+ let n = YB(), { resultEqualityCheck: r } = t, i, a = 0;function o() {let t = n, { length: o } = arguments;for (let e = 0, n = o; e < n; e++) {@@ -53659,43 +53650,43 @@ function ZB(e, t = {}) {let e = t.o;e === null && (t.o = e = /* @__PURE__ */ new WeakMap());let r = e.get(n);- r === void 0 ? (t = XB(), e.set(n, t)) : t = r;+ r === void 0 ? (t = YB(), e.set(n, t)) : t = r;} else {let e = t.p;e === null && (t.p = e = /* @__PURE__ */ new Map());let r = e.get(n);- r === void 0 ? (t = XB(), e.set(n, t)) : t = r;+ r === void 0 ? (t = YB(), e.set(n, t)) : t = r;}}let s = t, c;- if (t.s === YB) c = t.v;+ if (t.s === JB) c = t.v;else if (c = e.apply(null, arguments), a++, r) {let e = i?.deref?.() ?? i;- e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new FSe(c) : c;+ e != null && r(e, c) && (c = e, a !== 0 && a--), i = typeof c == "object" && c || typeof c == "function" ? new PSe(c) : c;}- return s.s = YB, s.v = c, c;+ return s.s = JB, s.v = c, c;}return o.clearCache = () => {- n = XB(), o.resetResultsCount();+ n = YB(), o.resetResultsCount();}, o.resultsCount = () => a, o.resetResultsCount = () => {a = 0;}, o;}-function LSe(e, ...t) {+function ISe(e, ...t) {let n = typeof e == "function" ? {memoize: e,memoizeOptions: t} : e, r = (...e) => {let t = 0, r = 0, i, a = {}, o = e.pop();- typeof o == "object" && (a = o, o = e.pop()), kSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);- let { memoize: s, memoizeOptions: c = [], argsMemoize: l = ZB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {+ typeof o == "object" && (a = o, o = e.pop()), OSe(o, `createSelector expects an output function after the inputs, but received: [${typeof o}]`);+ let { memoize: s, memoizeOptions: c = [], argsMemoize: l = XB, argsMemoizeOptions: u = [], devModeChecks: d = {} } = {...n,...a- }, f = JB(c), p = JB(u), m = MSe(e), h = s(function() {+ }, f = qB(c), p = qB(u), m = jSe(e), h = s(function() {return t++, o.apply(null, arguments);}, ...f), g = l(function() {r++;- let e = NSe(m, arguments);+ let e = MSe(m, arguments);return i = h.apply(null, e), i;}, ...p);return Object.assign(g, {@@ -53717,14 +53708,14 @@ function LSe(e, ...t) {};return Object.assign(r, { withTypes: () => r }), r;}-var $ = /* @__PURE__ */ LSe(ZB), RSe = Object.assign((e, t = $) => {- ASe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);+var $ = /* @__PURE__ */ ISe(XB), LSe = Object.assign((e, t = $) => {+ kSe(e, `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n = Object.keys(e);return t(n.map((t) => e[t]), (...e) => e.reduce((e, t, r) => (e[n[r]] = t, e), {}));-}, { withTypes: () => RSe });+}, { withTypes: () => LSe });//#endregion//#region node_modules/es-toolkit/dist/array/flatten.mjs-function zSe(e, t = 1) {+function RSe(e, t = 1) {let n = [], r = Math.floor(t), i = (e, t) => {for (let a = 0; a < e.length; a++) {let o = e[a];@@ -53735,17 +53726,17 @@ function zSe(e, t = 1) {}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs-function QB(e, t, n) {- return IB(n) && (typeof t == "number" && TB(n) && VB(t) && t < n.length || typeof t == "string" && t in n) ? FB(n[t], e) : !1;+function ZB(e, t, n) {+ return FB(n) && (typeof t == "number" && wB(n) && BB(t) && t < n.length || typeof t == "string" && t in n) ? PB(n[t], e) : !1;}//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs-function $B(e) {+function QB(e) {return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;}-var BSe = (e, t, n) => {+var zSe = (e, t, n) => {if (e !== t) {- let r = $B(e), i = $B(t);+ let r = QB(e), i = QB(t);if (r === i && r === 0) {if (e < t) return n === "desc" ? 1 : -1;if (e > t) return n === "desc" ? -1 : 1;@@ -53753,15 +53744,15 @@ var BSe = (e, t, n) => {return n === "desc" ? i - r : r - i;}return 0;-}, VSe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, HSe = /^\w*$/;-function USe(e, t) {- return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Gz(e) ? !0 : typeof e == "string" && (HSe.test(e) || !VSe.test(e)) || t != null && Object.hasOwn(t, e);+}, BSe = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, VSe = /^\w*$/;+function HSe(e, t) {+ return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || Wz(e) ? !0 : typeof e == "string" && (VSe.test(e) || !BSe.test(e)) || t != null && Object.hasOwn(t, e);}//#endregion//#region node_modules/es-toolkit/dist/compat/array/orderBy.mjs-function WSe(e, t, n, r) {+function USe(e, t, n, r) {if (e == null) return [];- n = r ? void 0 : n, Array.isArray(e) || (e = TB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));+ n = r ? void 0 : n, Array.isArray(e) || (e = wB(e) ? Array.from(e) : Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));let i = (e, t) => {let n = e, r = 0;for (; r < t.length && n != null; ++r) n = n[t[r]];@@ -53769,16 +53760,16 @@ function WSe(e, t, n, r) {}, a = (e, t) => {if (e == null) return t;if (t != null) return typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : t[e];- }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || USe(e) ? e : {+ }, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || HSe(e) ? e : {key: e,- path: qz(e)+ path: Kz(e)}));return e.map((e) => ({original: e,criteria: o.map((t) => a(t, e))})).slice().sort((e, t) => {for (let r = 0; r < o.length; r++) {- let i = BSe(e.criteria[r], t.criteria[r], n[r]);+ let i = zSe(e.criteria[r], t.criteria[r], n[r]);if (i !== 0) return i;}return 0;@@ -53786,25 +53777,25 @@ function WSe(e, t, n, r) {}//#endregion//#region node_modules/es-toolkit/dist/compat/array/sortBy.mjs-function eV(e, ...t) {+function $B(e, ...t) {let n = t.length;- return n > 1 && QB(e, t[0], t[1]) ? t = [] : n > 2 && QB(t[0], t[1], t[2]) && (t = [t[0]]), WSe(e, zSe(t), ["asc"]);+ return n > 1 && ZB(e, t[0], t[1]) ? t = [] : n > 2 && ZB(t[0], t[1], t[2]) && (t = [t[0]]), USe(e, RSe(t), ["asc"]);}//#endregion//#region node_modules/recharts/es6/state/selectors/legendSelectors.js-var tV = (e) => e.legend.settings, GSe = (e) => e.legend.size, KSe = $([(e) => e.legend.payload, tV], (e, t) => {+var eV = (e) => e.legend.settings, WSe = (e) => e.legend.size, GSe = $([(e) => e.legend.payload, eV], (e, t) => {var { itemSorter: n } = t, r = e.flat(1);- return n ? eV(r, n) : r;+ return n ? $B(r, n) : r;});//#endregion//#region node_modules/recharts/es6/context/legendPayloadContext.js-function qSe() {- return Q(KSe);+function KSe() {+ return Q(GSe);}//#endregion//#region node_modules/recharts/es6/util/useElementOffset.js-var nV = 1;-function rV() {+var tV = 1;+function nV() {var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], [t, n] = (0, B.useState)({height: 0,left: 0,@@ -53819,7 +53810,7 @@ function rV() {top: r.top,width: r.width};- (Math.abs(i.height - t.height) > nV || Math.abs(i.left - t.left) > nV || Math.abs(i.top - t.top) > nV || Math.abs(i.width - t.width) > nV) && n({+ (Math.abs(i.height - t.height) > tV || Math.abs(i.left - t.left) > tV || Math.abs(i.top - t.top) > tV || Math.abs(i.width - t.width) > tV) && n({height: i.height,left: i.left,top: i.top,@@ -53836,26 +53827,26 @@ function rV() {}//#endregion//#region node_modules/redux/dist/redux.mjs-function iV(e) {+function rV(e) {return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;}-var aV = typeof Symbol == "function" && Symbol.observable || "@@observable", oV = () => Math.random().toString(36).substring(7).split("").join("."), sV = {- INIT: `@@redux/INIT${/* @__PURE__ */ oV()}`,- REPLACE: `@@redux/REPLACE${/* @__PURE__ */ oV()}`,- PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${oV()}`+var iV = typeof Symbol == "function" && Symbol.observable || "@@observable", aV = () => Math.random().toString(36).substring(7).split("").join("."), oV = {+ INIT: `@@redux/INIT${/* @__PURE__ */ aV()}`,+ REPLACE: `@@redux/REPLACE${/* @__PURE__ */ aV()}`,+ PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${aV()}`};-function cV(e) {+function sV(e) {if (typeof e != "object" || !e) return !1;let t = e;for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;}-function lV(e, t, n) {- if (typeof e != "function") throw Error(iV(2));- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(iV(0));+function cV(e, t, n) {+ if (typeof e != "function") throw Error(rV(2));+ if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(rV(0));if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {- if (typeof n != "function") throw Error(iV(1));- return n(lV)(e, t);+ if (typeof n != "function") throw Error(rV(1));+ return n(cV)(e, t);}let r = e, i = t, a = /* @__PURE__ */ new Map(), o = a, s = 0, c = !1;function l() {@@ -53864,27 +53855,27 @@ function lV(e, t, n) {}));}function u() {- if (c) throw Error(iV(3));+ if (c) throw Error(rV(3));return i;}function d(e) {- if (typeof e != "function") throw Error(iV(4));- if (c) throw Error(iV(5));+ if (typeof e != "function") throw Error(rV(4));+ if (c) throw Error(rV(5));let t = !0;l();let n = s++;return o.set(n, e), function() {if (t) {- if (c) throw Error(iV(6));+ if (c) throw Error(rV(6));t = !1, l(), o.delete(n), a = null;}};}function f(e) {- if (!cV(e)) throw Error(iV(7));- if (e.type === void 0) throw Error(iV(8));- if (typeof e.type != "string") throw Error(iV(17));- if (c) throw Error(iV(9));+ if (!sV(e)) throw Error(rV(7));+ if (e.type === void 0) throw Error(rV(8));+ if (typeof e.type != "string") throw Error(rV(17));+ if (c) throw Error(rV(9));try {c = !0, i = r(i, e);} finally {@@ -53895,41 +53886,41 @@ function lV(e, t, n) {}), e;}function p(e) {- if (typeof e != "function") throw Error(iV(10));- r = e, f({ type: sV.REPLACE });+ if (typeof e != "function") throw Error(rV(10));+ r = e, f({ type: oV.REPLACE });}function m() {let e = d;return {subscribe(t) {- if (typeof t != "object" || !t) throw Error(iV(11));+ if (typeof t != "object" || !t) throw Error(rV(11));function n() {let e = t;e.next && e.next(u());}return n(), { unsubscribe: e(n) };},- [aV]() {+ [iV]() {return this;}};}- return f({ type: sV.INIT }), {+ return f({ type: oV.INIT }), {dispatch: f,subscribe: d,getState: u,replaceReducer: p,- [aV]: m+ [iV]: m};}-function JSe(e) {+function qSe(e) {Object.keys(e).forEach((t) => {let n = e[t];- if (n(void 0, { type: sV.INIT }) === void 0) throw Error(iV(12));- if (n(void 0, { type: sV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(iV(13));+ if (n(void 0, { type: oV.INIT }) === void 0) throw Error(rV(12));+ if (n(void 0, { type: oV.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(rV(13));});}-function uV(e) {+function lV(e) {let t = Object.keys(e), n = {};for (let r = 0; r < t.length; r++) {let i = t[r];@@ -53937,7 +53928,7 @@ function uV(e) {}let r = Object.keys(n), i;try {- JSe(n);+ qSe(n);} catch (e) {i = e;}@@ -53946,124 +53937,124 @@ function uV(e) {let a = !1, o = {};for (let i = 0; i < r.length; i++) {let s = r[i], c = n[s], l = e[s], u = c(l, t);- if (u === void 0) throw t && t.type, Error(iV(14));+ if (u === void 0) throw t && t.type, Error(rV(14));o[s] = u, a ||= u !== l;}return a ||= r.length !== Object.keys(e).length, a ? o : e;};}-function dV(...e) {+function uV(...e) {return e.length === 0 ? (e) => e : e.length === 1 ? e[0] : e.reduce((e, t) => (...n) => e(t(...n)));}-function YSe(...e) {+function JSe(...e) {return (t) => (n, r) => {let i = t(n, r), a = () => {- throw Error(iV(15));+ throw Error(rV(15));}, o = {getState: i.getState,dispatch: (e, ...t) => a(e, ...t)};- return a = dV(...e.map((e) => e(o)))(i.dispatch), {+ return a = uV(...e.map((e) => e(o)))(i.dispatch), {...i,dispatch: a};};}-function fV(e) {- return cV(e) && "type" in e && typeof e.type == "string";+function dV(e) {+ return sV(e) && "type" in e && typeof e.type == "string";}//#endregion//#region node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs-var pV = Symbol.for("immer-nothing"), mV = Symbol.for("immer-draftable"), hV = Symbol.for("immer-state");-function gV(e, ...t) {+var fV = Symbol.for("immer-nothing"), pV = Symbol.for("immer-draftable"), mV = Symbol.for("immer-state");+function hV(e, ...t) {throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);}-var _V = Object, vV = _V.getPrototypeOf, yV = "constructor", bV = "prototype", xV = "configurable", SV = "enumerable", CV = "writable", wV = "value", TV = (e) => !!e && !!e[hV];-function EV(e) {- return e ? OV(e) || PV(e) || !!e[mV] || !!e[yV]?.[mV] || FV(e) || IV(e) : !1;+var gV = Object, _V = gV.getPrototypeOf, vV = "constructor", yV = "prototype", bV = "configurable", xV = "enumerable", SV = "writable", CV = "value", wV = (e) => !!e && !!e[mV];+function TV(e) {+ return e ? DV(e) || NV(e) || !!e[pV] || !!e[vV]?.[pV] || PV(e) || FV(e) : !1;}-var XSe = _V[bV][yV].toString(), DV = /* @__PURE__ */ new WeakMap();-function OV(e) {- if (!e || !LV(e)) return !1;- let t = vV(e);- if (t === null || t === _V[bV]) return !0;- let n = _V.hasOwnProperty.call(t, yV) && t[yV];+var YSe = gV[yV][vV].toString(), EV = /* @__PURE__ */ new WeakMap();+function DV(e) {+ if (!e || !IV(e)) return !1;+ let t = _V(e);+ if (t === null || t === gV[yV]) return !0;+ let n = gV.hasOwnProperty.call(t, vV) && t[vV];if (n === Object) return !0;- if (!RV(n)) return !1;- let r = DV.get(n);- return r === void 0 && (r = Function.toString.call(n), DV.set(n, r)), r === XSe;+ if (!LV(n)) return !1;+ let r = EV.get(n);+ return r === void 0 && (r = Function.toString.call(n), EV.set(n, r)), r === YSe;}-function kV(e, t, n = !0) {- AV(e) === 0 ? (n ? Reflect.ownKeys(e) : _V.keys(e)).forEach((n) => {+function OV(e, t, n = !0) {+ kV(e) === 0 ? (n ? Reflect.ownKeys(e) : gV.keys(e)).forEach((n) => {t(n, e[n], e);}) : e.forEach((n, r) => t(r, n, e));}-function AV(e) {- let t = e[hV];- return t ? t.type_ : PV(e) ? 1 : FV(e) ? 2 : IV(e) ? 3 : 0;+function kV(e) {+ let t = e[mV];+ return t ? t.type_ : NV(e) ? 1 : PV(e) ? 2 : FV(e) ? 3 : 0;}-var jV = (e, t, n = AV(e)) => n === 2 ? e.has(t) : _V[bV].hasOwnProperty.call(e, t), MV = (e, t, n = AV(e)) => n === 2 ? e.get(t) : e[t], NV = (e, t, n, r = AV(e)) => {+var AV = (e, t, n = kV(e)) => n === 2 ? e.has(t) : gV[yV].hasOwnProperty.call(e, t), jV = (e, t, n = kV(e)) => n === 2 ? e.get(t) : e[t], MV = (e, t, n, r = kV(e)) => {r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;};-function ZSe(e, t) {+function XSe(e, t) {return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;}-var PV = Array.isArray, FV = (e) => e instanceof Map, IV = (e) => e instanceof Set, LV = (e) => typeof e == "object", RV = (e) => typeof e == "function", zV = (e) => typeof e == "boolean";-function QSe(e) {+var NV = Array.isArray, PV = (e) => e instanceof Map, FV = (e) => e instanceof Set, IV = (e) => typeof e == "object", LV = (e) => typeof e == "function", RV = (e) => typeof e == "boolean";+function ZSe(e) {let t = +e;return Number.isInteger(t) && String(t) === e;}-var BV = (e) => e.copy_ || e.base_, VV = (e) => e.modified_ ? e.copy_ : e.base_;-function HV(e, t) {- if (FV(e)) return new Map(e);- if (IV(e)) return new Set(e);- if (PV(e)) return Array[bV].slice.call(e);- let n = OV(e);+var zV = (e) => e.copy_ || e.base_, BV = (e) => e.modified_ ? e.copy_ : e.base_;+function VV(e, t) {+ if (PV(e)) return new Map(e);+ if (FV(e)) return new Set(e);+ if (NV(e)) return Array[yV].slice.call(e);+ let n = DV(e);if (t === !0 || t === "class_only" && !n) {- let t = _V.getOwnPropertyDescriptors(e);- delete t[hV];+ let t = gV.getOwnPropertyDescriptors(e);+ delete t[mV];let n = Reflect.ownKeys(t);for (let r = 0; r < n.length; r++) {let i = n[r], a = t[i];- a[CV] === !1 && (a[CV] = !0, a[xV] = !0), (a.get || a.set) && (t[i] = {- [xV]: !0,- [CV]: !0,- [SV]: a[SV],- [wV]: e[i]+ a[SV] === !1 && (a[SV] = !0, a[bV] = !0), (a.get || a.set) && (t[i] = {+ [bV]: !0,+ [SV]: !0,+ [xV]: a[xV],+ [CV]: e[i]});}- return _V.create(vV(e), t);+ return gV.create(_V(e), t);}{- let t = vV(e);+ let t = _V(e);if (t !== null && n) return { ...e };- let r = _V.create(t);- return _V.assign(r, e);- }-}-function UV(e, t = !1) {- return GV(e) || TV(e) || !EV(e) ? e : (AV(e) > 1 && _V.defineProperties(e, {- set: WV,- add: WV,- clear: WV,- delete: WV- }), _V.freeze(e), t && kV(e, (e, t) => {- UV(t, !0);+ let r = gV.create(t);+ return gV.assign(r, e);+ }+}+function HV(e, t = !1) {+ return WV(e) || wV(e) || !TV(e) ? e : (kV(e) > 1 && gV.defineProperties(e, {+ set: UV,+ add: UV,+ clear: UV,+ delete: UV+ }), gV.freeze(e), t && OV(e, (e, t) => {+ HV(t, !0);}, !1), e);}-function $Se() {- gV(2);+function QSe() {+ hV(2);}-var WV = { [wV]: $Se };-function GV(e) {- return e === null || !LV(e) || _V.isFrozen(e);+var UV = { [CV]: QSe };+function WV(e) {+ return e === null || !IV(e) || gV.isFrozen(e);}-var KV = "MapSet", qV = "Patches", JV = "ArrayMethods", YV = {};-function XV(e) {- let t = YV[e];- return t || gV(0, e), t;+var GV = "MapSet", KV = "Patches", qV = "ArrayMethods", JV = {};+function YV(e) {+ let t = JV[e];+ return t || hV(0, e), t;}-var ZV = (e) => !!YV[e], QV, $V = () => QV, eCe = (e, t) => ({+var XV = (e) => !!JV[e], ZV, QV = () => ZV, $Se = (e, t) => ({drafts_: [],parent_: e,immer_: t,@@ -54071,114 +54062,114 @@ var ZV = (e) => !!YV[e], QV, $V = () => QV, eCe = (e, t) => ({unfinalizedDrafts_: 0,handledSet_: /* @__PURE__ */ new Set(),processedForPatches_: /* @__PURE__ */ new Set(),- mapSetPlugin_: ZV(KV) ? XV(KV) : void 0,- arrayMethodsPlugin_: ZV(JV) ? XV(JV) : void 0+ mapSetPlugin_: XV(GV) ? YV(GV) : void 0,+ arrayMethodsPlugin_: XV(qV) ? YV(qV) : void 0});-function eH(e, t) {- t && (e.patchPlugin_ = XV(qV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+function $V(e, t) {+ t && (e.patchPlugin_ = YV(KV), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);}-function tH(e) {- nH(e), e.drafts_.forEach(tCe), e.drafts_ = null;+function eH(e) {+ tH(e), e.drafts_.forEach(eCe), e.drafts_ = null;}-function nH(e) {- e === QV && (QV = e.parent_);+function tH(e) {+ e === ZV && (ZV = e.parent_);}-var rH = (e) => QV = eCe(QV, e);-function tCe(e) {- let t = e[hV];+var nH = (e) => ZV = $Se(ZV, e);+function eCe(e) {+ let t = e[mV];t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;}-function iH(e, t) {+function rH(e, t) {t.unfinalizedDrafts_ = t.drafts_.length;let n = t.drafts_[0];if (e !== void 0 && e !== n) {- n[hV].modified_ && (tH(t), gV(4)), EV(e) && (e = aH(t, e));+ n[mV].modified_ && (eH(t), hV(4)), TV(e) && (e = iH(t, e));let { patchPlugin_: r } = t;- r && r.generateReplacementPatches_(n[hV].base_, e, t);- } else e = aH(t, n);- return nCe(t, e, !0), tH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === pV ? void 0 : e;-}-function aH(e, t) {- if (GV(t)) return t;- let n = t[hV];- if (!n) return uH(t, e.handledSet_, e);- if (!sH(n, e)) return t;+ r && r.generateReplacementPatches_(n[mV].base_, e, t);+ } else e = iH(t, n);+ return tCe(t, e, !0), eH(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === fV ? void 0 : e;+}+function iH(e, t) {+ if (WV(t)) return t;+ let n = t[mV];+ if (!n) return lH(t, e.handledSet_, e);+ if (!oH(n, e)) return t;if (!n.modified_) return n.base_;if (!n.finalized_) {let { callbacks_: t } = n;if (t) for (; t.length > 0;) t.pop()(e);- lH(n, e);+ cH(n, e);}return n.copy_;}-function nCe(e, t, n = !1) {- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && UV(t, n);+function tCe(e, t, n = !1) {+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && HV(t, n);}-function oH(e) {+function aH(e) {e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;}-var sH = (e, t) => e.scope_ === t, rCe = [];-function cH(e, t, n, r) {- let i = BV(e), a = e.type_;- if (r !== void 0 && MV(i, r, a) === t) {- NV(i, r, n, a);+var oH = (e, t) => e.scope_ === t, nCe = [];+function sH(e, t, n, r) {+ let i = zV(e), a = e.type_;+ if (r !== void 0 && jV(i, r, a) === t) {+ MV(i, r, n, a);return;}if (!e.draftLocations_) {let t = e.draftLocations_ = /* @__PURE__ */ new Map();- kV(i, (e, n) => {- if (TV(n)) {+ OV(i, (e, n) => {+ if (wV(n)) {let r = t.get(n) || [];r.push(e), t.set(n, r);}});}- let o = e.draftLocations_.get(t) ?? rCe;- for (let e of o) NV(i, e, n, a);+ let o = e.draftLocations_.get(t) ?? nCe;+ for (let e of o) MV(i, e, n, a);}-function iCe(e, t, n) {+function rCe(e, t, n) {e.callbacks_.push(function(r) {let i = t;- if (!i || !sH(i, r)) return;+ if (!i || !oH(i, r)) return;r.mapSetPlugin_?.fixSetContents(i);- let a = VV(i);- cH(e, i.draft_ ?? i, a, n), lH(i, r);+ let a = BV(i);+ sH(e, i.draft_ ?? i, a, n), cH(i, r);});}-function lH(e, t) {+function cH(e, t) {if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {let { patchPlugin_: n } = t;if (n) {let r = n.getPath(e);r && n.generatePatches_(e, r, t);}- oH(e);+ aH(e);}}-function aCe(e, t, n) {+function iCe(e, t, n) {let { scope_: r } = e;- if (TV(n)) {- let i = n[hV];- sH(i, r) && i.callbacks_.push(function() {- gH(e), cH(e, n, VV(i), t);+ if (wV(n)) {+ let i = n[mV];+ oH(i, r) && i.callbacks_.push(function() {+ hH(e), sH(e, n, BV(i), t);});- } else EV(n) && e.callbacks_.push(function() {- let i = BV(e);- e.type_ === 3 ? i.has(n) && uH(n, r.handledSet_, r) : MV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && uH(MV(e.copy_, t, e.type_), r.handledSet_, r);+ } else TV(n) && e.callbacks_.push(function() {+ let i = zV(e);+ e.type_ === 3 ? i.has(n) && lH(n, r.handledSet_, r) : jV(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && lH(jV(e.copy_, t, e.type_), r.handledSet_, r);});}-function uH(e, t, n) {- return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || TV(e) || t.has(e) || !EV(e) || GV(e) ? e : (t.add(e), kV(e, (r, i) => {- if (TV(i)) {- let t = i[hV];- sH(t, n) && (NV(e, r, VV(t), e.type_), oH(t));- } else EV(i) && uH(i, t, n);+function lH(e, t, n) {+ return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || wV(e) || t.has(e) || !TV(e) || WV(e) ? e : (t.add(e), OV(e, (r, i) => {+ if (wV(i)) {+ let t = i[mV];+ oH(t, n) && (MV(e, r, BV(t), e.type_), aH(t));+ } else TV(i) && lH(i, t, n);}), e);}-function oCe(e, t) {- let n = PV(e), r = {+function aCe(e, t) {+ let n = NV(e), r = {type_: +!!n,- scope_: t ? t.scope_ : $V(),+ scope_: t ? t.scope_ : QV(),modified_: !1,finalized_: !1,assigned_: void 0,@@ -54189,108 +54180,108 @@ function oCe(e, t) {revoke_: null,isManual_: !1,callbacks_: void 0- }, i = r, a = dH;- n && (i = [r], a = fH);+ }, i = r, a = uH;+ n && (i = [r], a = dH);let { revoke: o, proxy: s } = Proxy.revocable(i, a);return r.draft_ = s, r.revoke_ = o, [s, r];}-var dH = {+var uH = {get(e, t) {- if (t === hV) return e;+ if (t === mV) return e;let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);- let i = BV(e);- if (!jV(i, t, e.type_)) return cCe(e, i, t);+ let i = zV(e);+ if (!AV(i, t, e.type_)) return sCe(e, i, t);let a = i[t];- if (e.finalized_ || !EV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && QSe(t)) return a;- if (a === pH(e.base_, t) || sCe(e, t, a)) {- gH(e);- let n = e.type_ === 1 ? +t : t, r = _H(e.scope_, a, e, n);+ if (e.finalized_ || !TV(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && ZSe(t)) return a;+ if (a === fH(e.base_, t) || oCe(e, t, a)) {+ hH(e);+ let n = e.type_ === 1 ? +t : t, r = gH(e.scope_, a, e, n);return e.copy_[n] = r;}return a;},has(e, t) {- return t in BV(e);+ return t in zV(e);},ownKeys(e) {- return Reflect.ownKeys(BV(e));+ return Reflect.ownKeys(zV(e));},set(e, t, n) {- let r = mH(BV(e), t);+ let r = pH(zV(e), t);if (r?.set) return r.set.call(e.draft_, n), !0;if (!e.modified_) {- let r = pH(BV(e), t), i = r?.[hV];+ let r = fH(zV(e), t), i = r?.[mV];if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;- if (ZSe(n, r) && (n !== void 0 || jV(e.base_, t, e.type_))) return !0;- gH(e), hH(e);+ if (XSe(n, r) && (n !== void 0 || AV(e.base_, t, e.type_))) return !0;+ hH(e), mH(e);}- return e.copy_[t] === n && (n !== void 0 || jV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), aCe(e, t, n), !0);+ return e.copy_[t] === n && (n !== void 0 || AV(e.copy_, t, e.type_)) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), iCe(e, t, n), !0);},deleteProperty(e, t) {- return gH(e), pH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), hH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;+ return hH(e), fH(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), mH(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;},getOwnPropertyDescriptor(e, t) {- let n = BV(e), r = Reflect.getOwnPropertyDescriptor(n, t);+ let n = zV(e), r = Reflect.getOwnPropertyDescriptor(n, t);return r && {- [CV]: !0,- [xV]: e.type_ !== 1 || t !== "length",- [SV]: r[SV],- [wV]: n[t]+ [SV]: !0,+ [bV]: e.type_ !== 1 || t !== "length",+ [xV]: r[xV],+ [CV]: n[t]};},defineProperty() {- gV(11);+ hV(11);},getPrototypeOf(e) {- return vV(e.base_);+ return _V(e.base_);},setPrototypeOf() {- gV(12);+ hV(12);}-}, fH = {};-for (let e in dH) {- let t = dH[e];- fH[e] = function() {+}, dH = {};+for (let e in uH) {+ let t = uH[e];+ dH[e] = function() {let e = arguments;return e[0] = e[0][0], t.apply(this, e);};}-fH.deleteProperty = function(e, t) {- return fH.set.call(this, e, t, void 0);-}, fH.set = function(e, t, n) {- return dH.set.call(this, e[0], t, n, e[0]);+dH.deleteProperty = function(e, t) {+ return dH.set.call(this, e, t, void 0);+}, dH.set = function(e, t, n) {+ return uH.set.call(this, e[0], t, n, e[0]);};-function pH(e, t) {- let n = e[hV];- return (n ? BV(n) : e)[t];+function fH(e, t) {+ let n = e[mV];+ return (n ? zV(n) : e)[t];}-function sCe(e, t, n) {- return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !EV(n) || n[hV] ? !1 : e.baseRefs_.has(n);+function oCe(e, t, n) {+ return e.type_ !== 1 || !e.allIndicesReassigned_ || e.assigned_?.get(t) || !TV(n) || n[mV] ? !1 : e.baseRefs_.has(n);}-function cCe(e, t, n) {- let r = mH(t, n);- return r ? wV in r ? r[wV] : r.get?.call(e.draft_) : void 0;+function sCe(e, t, n) {+ let r = pH(t, n);+ return r ? CV in r ? r[CV] : r.get?.call(e.draft_) : void 0;}-function mH(e, t) {+function pH(e, t) {if (!(t in e)) return;- let n = vV(e);+ let n = _V(e);for (; n;) {let e = Object.getOwnPropertyDescriptor(n, t);if (e) return e;- n = vV(n);+ n = _V(n);}}-function hH(e) {- e.modified_ || (e.modified_ = !0, e.parent_ && hH(e.parent_));+function mH(e) {+ e.modified_ || (e.modified_ = !0, e.parent_ && mH(e.parent_));}-function gH(e) {- e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), HV(e.base_, e.scope_.immer_.useStrictShallowCopy_));+function hH(e) {+ e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), VV(e.base_, e.scope_.immer_.useStrictShallowCopy_));}-var lCe = class {+var cCe = class {constructor(e) {this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {- if (RV(e) && !RV(t)) {+ if (LV(e) && !LV(t)) {let n = t;t = e;let r = this;@@ -54298,30 +54289,30 @@ var lCe = class {return r.produce(e, (e) => t.call(this, e, ...i));};}- RV(t) || gV(6), n !== void 0 && !RV(n) && gV(7);+ LV(t) || hV(6), n !== void 0 && !LV(n) && hV(7);let r;- if (EV(e)) {- let i = rH(this), a = _H(i, e, void 0), o = !0;+ if (TV(e)) {+ let i = nH(this), a = gH(i, e, void 0), o = !0;try {r = t(a), o = !1;} finally {- o ? tH(i) : nH(i);+ o ? eH(i) : tH(i);}- return eH(i, n), iH(r, i);+ return $V(i, n), rH(r, i);}- if (!e || !LV(e)) {- if (r = t(e), r === void 0 && (r = e), r === pV && (r = void 0), this.autoFreeze_ && UV(r, !0), n) {+ if (!e || !IV(e)) {+ if (r = t(e), r === void 0 && (r = e), r === fV && (r = void 0), this.autoFreeze_ && HV(r, !0), n) {let t = [], i = [];- XV(qV).generateReplacementPatches_(e, r, {+ YV(KV).generateReplacementPatches_(e, r, {patches_: t,inversePatches_: i}), n(t, i);}return r;}- gV(1, e);+ hV(1, e);}, this.produceWithPatches = (e, t) => {- if (RV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));+ if (LV(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));let n, r;return [this.produce(e, t, (e, t) => {@@ -54330,18 +54321,18 @@ var lCe = class {n,r];- }, zV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), zV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), zV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);+ }, RV(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), RV(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), RV(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);}createDraft(e) {- EV(e) || gV(8), TV(e) && (e = vH(e));- let t = rH(this), n = _H(t, e, void 0);- return n[hV].isManual_ = !0, nH(t), n;+ TV(e) || hV(8), wV(e) && (e = _H(e));+ let t = nH(this), n = gH(t, e, void 0);+ return n[mV].isManual_ = !0, tH(t), n;}finishDraft(e, t) {- let n = e && e[hV];- (!n || !n.isManual_) && gV(9);+ let n = e && e[mV];+ (!n || !n.isManual_) && hV(9);let { scope_: r } = n;- return eH(r, t), iH(void 0, r);+ return $V(r, t), rH(void 0, r);}setAutoFreeze(e) {this.autoFreeze_ = e;@@ -54365,48 +54356,48 @@ var lCe = class {}}n > -1 && (t = t.slice(n + 1));- let r = XV(qV).applyPatches_;- return TV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ let r = YV(KV).applyPatches_;+ return wV(e) ? r(e, t) : this.produce(e, (e) => r(e, t));}};-function _H(e, t, n, r) {- let [i, a] = FV(t) ? XV(KV).proxyMap_(t, n) : IV(t) ? XV(KV).proxySet_(t, n) : oCe(t, n);- return (n?.scope_ ?? $V()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? iCe(n, a, r) : a.callbacks_.push(function(e) {+function gH(e, t, n, r) {+ let [i, a] = PV(t) ? YV(GV).proxyMap_(t, n) : FV(t) ? YV(GV).proxySet_(t, n) : aCe(t, n);+ return (n?.scope_ ?? QV()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? rCe(n, a, r) : a.callbacks_.push(function(e) {e.mapSetPlugin_?.fixSetContents(a);let { patchPlugin_: t } = e;a.modified_ && t && t.generatePatches_(a, [], e);}), i;}-function vH(e) {- return TV(e) || gV(10, e), yH(e);+function _H(e) {+ return wV(e) || hV(10, e), vH(e);}-function yH(e) {- if (!EV(e) || GV(e)) return e;- let t = e[hV], n, r = !0;+function vH(e) {+ if (!TV(e) || WV(e)) return e;+ let t = e[mV], n, r = !0;if (t) {if (!t.modified_) return t.base_;- t.finalized_ = !0, n = HV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();- } else n = HV(e, !0);- return kV(n, (e, t) => {- NV(n, e, yH(t));+ t.finalized_ = !0, n = VV(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();+ } else n = VV(e, !0);+ return OV(n, (e, t) => {+ MV(n, e, vH(t));}, r), t && (t.finalized_ = !1), n;}globalThis.Iterator?.from;-var bH = new lCe().produce;+var yH = new cCe().produce;//#endregion//#region node_modules/redux-thunk/dist/redux-thunk.mjs-function xH(e) {+function bH(e) {return ({ dispatch: t, getState: n }) => (r) => (i) => typeof i == "function" ? i(t, n, e) : r(i);}-var uCe = xH(), dCe = xH, fCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {- if (arguments.length !== 0) return typeof arguments[0] == "object" ? dV : dV.apply(null, arguments);+var lCe = bH(), uCe = bH, dCe = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {+ if (arguments.length !== 0) return typeof arguments[0] == "object" ? uV : uV.apply(null, arguments);};typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;-function SH(e, t) {+function xH(e, t) {function n(...n) {if (t) {let r = t(...n);- if (!r) throw Error(rU(0));+ if (!r) throw Error(nU(0));return {type: e,payload: r.payload,@@ -54419,9 +54410,9 @@ function SH(e, t) {payload: n[0]};}- return n.toString = () => `${e}`, n.type = e, n.match = (t) => fV(t) && t.type === e, n;+ return n.toString = () => `${e}`, n.type = e, n.match = (t) => dV(t) && t.type === e, n;}-var CH = class e extends Array {+var SH = class e extends Array {constructor(...t) {super(...t), Object.setPrototypeOf(this, e.prototype);}@@ -54435,29 +54426,29 @@ var CH = class e extends Array {return t.length === 1 && Array.isArray(t[0]) ? new e(...t[0].concat(this)) : new e(...t.concat(this));}};-function wH(e) {- return EV(e) ? bH(e, () => {}) : e;+function CH(e) {+ return TV(e) ? yH(e, () => {}) : e;}-function TH(e, t, n) {+function wH(e, t, n) {return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);}-function pCe(e) {+function fCe(e) {return typeof e == "boolean";}-var mCe = () => function(e) {- let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new CH();- return t && (pCe(t) ? a.push(uCe) : a.push(dCe(t.extraArgument))), a;-}, EH = "RTK_autoBatch", DH = () => (e) => ({+var pCe = () => function(e) {+ let { thunk: t = !0, immutableCheck: n = !0, serializableCheck: r = !0, actionCreatorCheck: i = !0 } = e ?? {}, a = new SH();+ return t && (fCe(t) ? a.push(lCe) : a.push(uCe(t.extraArgument))), a;+}, TH = "RTK_autoBatch", EH = () => (e) => ({payload: e,- meta: { [EH]: !0 }-}), OH = (e) => (t) => {+ meta: { [TH]: !0 }+}), DH = (e) => (t) => {setTimeout(t, e);-}, hCe = (e, t) => (n) => {+}, mCe = (e, t) => (n) => {let r = !1, i = () => {r || (r = !0, cancelAnimationFrame(a), clearTimeout(o), n());}, a = e(i), o = setTimeout(i, t);-}, kH = (e = { type: "raf" }) => (t) => (...n) => {- let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? hCe(window.requestAnimationFrame, 100) : OH(10) : e.type === "callback" ? e.queueNotification : OH(e.timeout), l = () => {+}, OH = (e = { type: "raf" }) => (t) => (...n) => {+ let r = t(...n), i = !0, a = !1, o = !1, s = /* @__PURE__ */ new Set(), c = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? mCe(window.requestAnimationFrame, 100) : DH(10) : e.type === "callback" ? e.queueNotification : DH(e.timeout), l = () => {o = !1, a && (a = !1, s.forEach((e) => e()));};return Object.assign({}, r, {@@ -54469,37 +54460,37 @@ var mCe = () => function(e) {},dispatch(e) {try {- return i = !e?.meta?.[EH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);+ return i = !e?.meta?.[TH], a = !i, a && (o || (o = !0, c(l))), r.dispatch(e);} finally {i = !0;}}});-}, gCe = (e) => function(t) {- let { autoBatch: n = !0 } = t ?? {}, r = new CH(e);- return n && r.push(kH(typeof n == "object" ? n : void 0)), r;+}, hCe = (e) => function(t) {+ let { autoBatch: n = !0 } = t ?? {}, r = new SH(e);+ return n && r.push(OH(typeof n == "object" ? n : void 0)), r;};-function _Ce(e) {- let t = mCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;+function gCe(e) {+ let t = pCe(), { reducer: n = void 0, middleware: r, devTools: i = !0, duplicateMiddlewareCheck: a = !0, preloadedState: o = void 0, enhancers: s = void 0 } = e || {}, c;if (typeof n == "function") c = n;- else if (cV(n)) c = uV(n);- else throw Error(rU(1));+ else if (sV(n)) c = lV(n);+ else throw Error(nU(1));let l;l = typeof r == "function" ? r(t) : t();- let u = dV;- i && (u = fCe({+ let u = uV;+ i && (u = dCe({trace: !1,...typeof i == "object" && i}));- let d = gCe(YSe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);- return lV(c, o, p);+ let d = hCe(JSe(...l)), f = typeof s == "function" ? s(d) : d(), p = u(...f);+ return cV(c, o, p);}-function AH(e) {+function kH(e) {let t = {}, n = [], r, i = {addCase(e, n) {let r = typeof e == "string" ? e : e.type;- if (!r) throw Error(rU(28));- if (r in t) throw Error(rU(29));+ if (!r) throw Error(nU(28));+ if (r in t) throw Error(nU(29));return t[r] = n, i;},addAsyncThunk(e, r) {@@ -54524,25 +54515,25 @@ function AH(e) {r];}-function vCe(e) {+function _Ce(e) {return typeof e == "function";}-function yCe(e, t) {- let [n, r, i] = AH(t), a;- if (vCe(e)) a = () => wH(e());+function vCe(e, t) {+ let [n, r, i] = kH(t), a;+ if (_Ce(e)) a = () => CH(e());else {- let t = wH(e);+ let t = CH(e);a = () => t;}function o(e = a(), t) {let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {if (n) {- if (TV(e)) {+ if (wV(e)) {let r = n(e, t);return r === void 0 ? e : r;}- if (EV(e)) return bH(e, (e) => n(e, t));+ if (TV(e)) return yH(e, (e) => n(e, t));{let r = n(e, t);if (r === void 0) {@@ -54557,20 +54548,20 @@ function yCe(e, t) {}return o.getInitialState = a, o;}-var bCe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", xCe = (e = 21) => {+var yCe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", bCe = (e = 21) => {let t = "", n = e;- for (; n--;) t += bCe[Math.random() * 64 | 0];+ for (; n--;) t += yCe[Math.random() * 64 | 0];return t;-}, SCe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");-function CCe(e, t) {+}, xCe = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");+function SCe(e, t) {return `${e}/${t}`;}-function wCe({ creators: e } = {}) {- let t = e?.asyncThunk?.[SCe];+function CCe({ creators: e } = {}) {+ let t = e?.asyncThunk?.[xCe];return function(e) {let { name: n, reducerPath: r = n } = e;- if (!n) throw Error(rU(11));- let i = (typeof e.reducers == "function" ? e.reducers(ECe()) : e.reducers) || {}, a = Object.keys(i), o = {+ if (!n) throw Error(nU(11));+ let i = (typeof e.reducers == "function" ? e.reducers(TCe()) : e.reducers) || {}, a = Object.keys(i), o = {sliceCaseReducersByName: {},sliceCaseReducersByType: {},actionCreators: {},@@ -54578,8 +54569,8 @@ function wCe({ creators: e } = {}) {}, s = {addCase(e, t) {let n = typeof e == "string" ? e : e.type;- if (!n) throw Error(rU(12));- if (n in o.sliceCaseReducersByType) throw Error(rU(13));+ if (!n) throw Error(nU(12));+ if (n in o.sliceCaseReducersByType) throw Error(nU(13));return o.sliceCaseReducersByType[n] = t, s;},addMatcher(e, t) {@@ -54598,17 +54589,17 @@ function wCe({ creators: e } = {}) {a.forEach((r) => {let a = i[r], o = {reducerName: r,- type: CCe(n, r),+ type: SCe(n, r),createNotation: typeof e.reducers == "function"};- OCe(a) ? ACe(o, a, s, t) : DCe(o, a, s);+ DCe(a) ? kCe(o, a, s, t) : ECe(o, a, s);});function c() {- let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? AH(e.extraReducers) : [e.extraReducers], i = {+ let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? kH(e.extraReducers) : [e.extraReducers], i = {...t,...o.sliceCaseReducersByType};- return yCe(e.initialState, (e) => {+ return vCe(e.initialState, (e) => {for (let t in i) e.addCase(t, i[t]);for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);for (let t of n) e.addMatcher(t.matcher, t.reducer);@@ -54625,12 +54616,12 @@ function wCe({ creators: e } = {}) {function h(t, n = !1) {function r(e) {let i = e[t];- return i === void 0 && n && (i = TH(d, r, m)), i;+ return i === void 0 && n && (i = wH(d, r, m)), i;}function i(t = l) {- return TH(TH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {+ return wH(wH(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {let r = {};- for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = TCe(a, t, () => TH(d, t, m), n);+ for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = wCe(a, t, () => wH(d, t, m), n);return r;});}@@ -54664,15 +54655,15 @@ function wCe({ creators: e } = {}) {return g;};}-function TCe(e, t, n, r) {+function wCe(e, t, n, r) {function i(i, ...a) {let o = t(i);return o === void 0 && r && (o = n()), e(o, ...a);}return i.unwrapped = e, i;}-var jH = /* @__PURE__ */ wCe();-function ECe() {+var AH = /* @__PURE__ */ CCe();+function TCe() {function e(e, t) {return {_reducerDefinitionType: "asyncThunk",@@ -54696,57 +54687,57 @@ function ECe() {asyncThunk: e};}-function DCe({ type: e, reducerName: t, createNotation: n }, r, i) {+function ECe({ type: e, reducerName: t, createNotation: n }, r, i) {let a, o;if ("reducer" in r) {- if (n && !kCe(r)) throw Error(rU(17));+ if (n && !OCe(r)) throw Error(nU(17));a = r.reducer, o = r.prepare;} else a = r;- i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? SH(e, o) : SH(e));+ i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? xH(e, o) : xH(e));}-function OCe(e) {+function DCe(e) {return e._reducerDefinitionType === "asyncThunk";}-function kCe(e) {+function OCe(e) {return e._reducerDefinitionType === "reducerWithPrepare";}-function ACe({ type: e, reducerName: t }, n, r, i) {- if (!i) throw Error(rU(18));+function kCe({ type: e, reducerName: t }, n, r, i) {+ if (!i) throw Error(nU(18));let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {- fulfilled: o || MH,- pending: s || MH,- rejected: c || MH,- settled: l || MH+ fulfilled: o || jH,+ pending: s || jH,+ rejected: c || jH,+ settled: l || jH});}-function MH() {}-var jCe = "task", NH = "listener", PH = "completed", FH = "cancelled", MCe = `task-${FH}`, NCe = `task-${PH}`, IH = `${NH}-${FH}`, PCe = `${NH}-${PH}`, LH = class {+function jH() {}+var ACe = "task", MH = "listener", NH = "completed", PH = "cancelled", jCe = `task-${PH}`, MCe = `task-${NH}`, FH = `${MH}-${PH}`, NCe = `${MH}-${NH}`, IH = class {constructor(e) {- this.code = e, this.message = `${jCe} ${FH} (reason: ${e})`;+ this.code = e, this.message = `${ACe} ${PH} (reason: ${e})`;}code;name = "TaskAbortError";message;-}, RH = (e, t) => {- if (typeof e != "function") throw TypeError(rU(32));-}, zH = () => {}, BH = (e, t = zH) => (e.catch(t), e), VH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), HH = (e) => {- if (e.aborted) throw new LH(e.reason);+}, LH = (e, t) => {+ if (typeof e != "function") throw TypeError(nU(32));+}, RH = () => {}, zH = (e, t = RH) => (e.catch(t), e), BH = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), VH = (e) => {+ if (e.aborted) throw new IH(e.reason);};-function UH(e, t) {- let n = zH;+function HH(e, t) {+ let n = RH;return new Promise((r, i) => {- let a = () => i(new LH(e.reason));+ let a = () => i(new IH(e.reason));if (e.aborted) {a();return;}- n = VH(e, a), t.finally(() => n()).then(r, i);+ n = BH(e, a), t.finally(() => n()).then(r, i);}).finally(() => {- n = zH;+ n = RH;});}-var FCe = async (e, t) => {+var PCe = async (e, t) => {try {return await Promise.resolve(), {status: "ok",@@ -54754,40 +54745,40 @@ var FCe = async (e, t) => {};} catch (e) {return {- status: e instanceof LH ? "cancelled" : "rejected",+ status: e instanceof IH ? "cancelled" : "rejected",error: e};} finally {t?.();}-}, WH = (e) => (t) => BH(UH(e, t).then((t) => (HH(e), t))), GH = (e) => {- let t = WH(e);+}, UH = (e) => (t) => zH(HH(e, t).then((t) => (VH(e), t))), WH = (e) => {+ let t = UH(e);return (e) => t(new Promise((t) => setTimeout(t, e)));-}, { assign: KH } = Object, qH = {}, JH = "listenerMiddleware", ICe = (e, t) => {- let n = (t) => VH(e, () => t.abort(e.reason));+}, { assign: GH } = Object, KH = {}, qH = "listenerMiddleware", FCe = (e, t) => {+ let n = (t) => BH(e, () => t.abort(e.reason));return (r, i) => {- RH(r, "taskExecutor");+ LH(r, "taskExecutor");let a = new AbortController();n(a);- let o = FCe(async () => {- HH(e), HH(a.signal);+ let o = PCe(async () => {+ VH(e), VH(a.signal);let t = await r({- pause: WH(a.signal),- delay: GH(a.signal),+ pause: UH(a.signal),+ delay: WH(a.signal),signal: a.signal});- return HH(a.signal), t;- }, () => a.abort(NCe));- return i?.autoJoin && t.push(o.catch(zH)), {- result: WH(e)(o),+ return VH(a.signal), t;+ }, () => a.abort(MCe));+ return i?.autoJoin && t.push(o.catch(RH)), {+ result: UH(e)(o),cancel() {- a.abort(MCe);+ a.abort(jCe);}};};-}, LCe = (e, t) => {+}, ICe = (e, t) => {let n = async (n, r) => {- HH(t);+ VH(t);let i = () => {}, a = [new Promise((t, r) => {let a = e({predicate: n,@@ -54805,47 +54796,47 @@ var FCe = async (e, t) => {})];r != null && a.push(new Promise((e) => setTimeout(e, r, null)));try {- let e = await UH(t, Promise.race(a));- return HH(t), e;+ let e = await HH(t, Promise.race(a));+ return VH(t), e;} finally {i();}};- return ((e, t) => BH(n(e, t)));-}, YH = (e) => {+ return ((e, t) => zH(n(e, t)));+}, JH = (e) => {let { type: t, actionCreator: n, matcher: r, predicate: i, effect: a } = e;- if (t) i = SH(t).match;+ if (t) i = xH(t).match;else if (n) t = n.type, i = n.match;else if (r) i = r;- else if (!i) throw Error(rU(21));- return RH(a, "options.listener"), {+ else if (!i) throw Error(nU(21));+ return LH(a, "options.listener"), {predicate: i,type: t,effect: a};-}, XH = /* @__PURE__ */ KH((e) => {- let { type: t, predicate: n, effect: r } = YH(e);+}, YH = /* @__PURE__ */ GH((e) => {+ let { type: t, predicate: n, effect: r } = JH(e);return {- id: xCe(),+ id: bCe(),effect: r,type: t,predicate: n,pending: /* @__PURE__ */ new Set(),unsubscribe: () => {- throw Error(rU(22));+ throw Error(nU(22));}};-}, { withTypes: () => XH }), ZH = (e, t) => {- let { type: n, effect: r, predicate: i } = YH(t);+}, { withTypes: () => YH }), XH = (e, t) => {+ let { type: n, effect: r, predicate: i } = JH(t);return Array.from(e.values()).find((e) => (typeof n == "string" ? e.type === n : e.predicate === i) && e.effect === r);-}, QH = (e) => {+}, ZH = (e) => {e.pending.forEach((e) => {- e.abort(IH);+ e.abort(FH);});-}, RCe = (e, t) => () => {- for (let e of t.keys()) QH(e);+}, LCe = (e, t) => () => {+ for (let e of t.keys()) ZH(e);e.clear();-}, $H = (e, t, n) => {+}, QH = (e, t, n) => {try {e(t, n);} catch (e) {@@ -54853,74 +54844,74 @@ var FCe = async (e, t) => {throw e;}, 0);}-}, eU = /* @__PURE__ */ KH(/* @__PURE__ */ SH(`${JH}/add`), { withTypes: () => eU }), zCe = /* @__PURE__ */ SH(`${JH}/removeAll`), tU = /* @__PURE__ */ KH(/* @__PURE__ */ SH(`${JH}/remove`), { withTypes: () => tU }), BCe = (...e) => {- console.error(`${JH}/error`, ...e);-}, nU = (e = {}) => {+}, $H = /* @__PURE__ */ GH(/* @__PURE__ */ xH(`${qH}/add`), { withTypes: () => $H }), RCe = /* @__PURE__ */ xH(`${qH}/removeAll`), eU = /* @__PURE__ */ GH(/* @__PURE__ */ xH(`${qH}/remove`), { withTypes: () => eU }), zCe = (...e) => {+ console.error(`${qH}/error`, ...e);+}, tU = (e = {}) => {let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = (e) => {let t = n.get(e) ?? 0;n.set(e, t + 1);}, i = (e) => {let t = n.get(e) ?? 1;t === 1 ? n.delete(e) : n.set(e, t - 1);- }, { extra: a, onError: o = BCe } = e;- RH(o, "onError");+ }, { extra: a, onError: o = zCe } = e;+ LH(o, "onError");let s = (e) => (e.unsubscribe = () => t.delete(e.id), t.set(e.id, e), (t) => {- e.unsubscribe(), t?.cancelActive && QH(e);+ e.unsubscribe(), t?.cancelActive && ZH(e);}), c = ((e) => {- let n = ZH(t, e) ?? XH(e);+ let n = XH(t, e) ?? YH(e);return s(n);});- KH(c, { withTypes: () => c });+ GH(c, { withTypes: () => c });let l = (e) => {- let n = ZH(t, e);- return n && (n.unsubscribe(), e.cancelActive && QH(n)), !!n;+ let n = XH(t, e);+ return n && (n.unsubscribe(), e.cancelActive && ZH(n)), !!n;};- KH(l, { withTypes: () => l });+ GH(l, { withTypes: () => l });let u = async (e, n, s, l) => {- let u = new AbortController(), d = LCe(c, u.signal), f = [];+ let u = new AbortController(), d = ICe(c, u.signal), f = [];try {- e.pending.add(u), r(e), await Promise.resolve(e.effect(n, KH({}, s, {+ e.pending.add(u), r(e), await Promise.resolve(e.effect(n, GH({}, s, {getOriginalState: l,condition: (e, t) => d(e, t).then(Boolean),take: d,- delay: GH(u.signal),- pause: WH(u.signal),+ delay: WH(u.signal),+ pause: UH(u.signal),extra: a,signal: u.signal,- fork: ICe(u.signal, f),+ fork: FCe(u.signal, f),unsubscribe: e.unsubscribe,subscribe: () => {t.set(e.id, e);},cancelActiveListeners: () => {e.pending.forEach((e, t, n) => {- e !== u && (e.abort(IH), n.delete(e));+ e !== u && (e.abort(FH), n.delete(e));});},cancel: () => {- u.abort(IH), e.pending.delete(u);+ u.abort(FH), e.pending.delete(u);},throwIfCancelled: () => {- HH(u.signal);+ VH(u.signal);}})));} catch (e) {- e instanceof LH || $H(o, e, { raisedBy: "effect" });+ e instanceof IH || QH(o, e, { raisedBy: "effect" });} finally {- await Promise.all(f), u.abort(PCe), i(e), e.pending.delete(u);+ await Promise.all(f), u.abort(NCe), i(e), e.pending.delete(u);}- }, d = RCe(t, n);+ }, d = LCe(t, n);return {middleware: (e) => (n) => (r) => {- if (!fV(r)) return n(r);- if (eU.match(r)) return c(r.payload);- if (zCe.match(r)) {+ if (!dV(r)) return n(r);+ if ($H.match(r)) return c(r.payload);+ if (RCe.match(r)) {d();return;}- if (tU.match(r)) return l(r.payload);+ if (eU.match(r)) return l(r.payload);let i = e.getState(), a = () => {- if (i === qH) throw Error(rU(23));+ if (i === KH) throw Error(nU(23));return i;}, s;try {@@ -54931,13 +54922,13 @@ var FCe = async (e, t) => {try {s = t.predicate(r, n, i);} catch (e) {- s = !1, $H(o, e, { raisedBy: "predicate" });+ s = !1, QH(o, e, { raisedBy: "predicate" });}s && u(t, r, e, a);}}} finally {- i = qH;+ i = KH;}return s;},@@ -54946,12 +54937,12 @@ var FCe = async (e, t) => {clearListeners: d};};-function rU(e) {+function nU(e) {return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;}//#endregion//#region node_modules/recharts/es6/state/layoutSlice.js-var iU = jH({+var rU = AH({name: "chartLayout",initialState: {layoutType: "horizontal",@@ -54979,23 +54970,23 @@ var iU = jH({e.scale = t.payload;}}-}), { setMargin: VCe, setLayout: HCe, setChartSize: UCe, setScale: WCe } = iU.actions, GCe = iU.reducer;+}), { setMargin: BCe, setLayout: VCe, setChartSize: HCe, setScale: UCe } = rU.actions, WCe = rU.reducer;//#endregion//#region node_modules/recharts/es6/util/getSliced.js-function aU(e, t, n) {+function iU(e, t, n) {return Array.isArray(e) && e && t + n !== 0 ? e.slice(t, n + 1) : e;}//#endregion//#region node_modules/recharts/es6/util/isWellBehavedNumber.js-function oU(e) {+function aU(e) {return Number.isFinite(e);}-function sU(e) {+function oU(e) {return typeof e == "number" && e > 0 && Number.isFinite(e);}//#endregion//#region node_modules/recharts/es6/util/ChartUtils.js-function cU(e, t) {+function sU(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -55005,30 +54996,30 @@ function cU(e, t) {}return n;}-function lU(e) {+function cU(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? cU(Object(n), !0).forEach(function(t) {- KCe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cU(Object(n)).forEach(function(t) {+ t % 2 ? sU(Object(n), !0).forEach(function(t) {+ GCe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sU(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function KCe(e, t, n) {- return (t = qCe(t)) in e ? Object.defineProperty(e, t, {+function GCe(e, t, n) {+ return (t = KCe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function qCe(e) {- var t = JCe(e, "string");+function KCe(e) {+ var t = qCe(e, "string");return typeof t == "symbol" ? t : t + "";}-function JCe(e, t) {+function qCe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -55038,63 +55029,63 @@ function JCe(e, t) {}return (t === "string" ? String : Number)(e);}-function uU(e, t, n) {- return oB(e) || oB(t) ? n : eB(t) ? Jz(e, t, n) : typeof t == "function" ? t(e) : n;+function lU(e, t, n) {+ return aB(e) || aB(t) ? n : $z(t) ? qz(e, t, n) : typeof t == "function" ? t(e) : n;}-var YCe = (e, t, n) => {+var JCe = (e, t, n) => {if (t && n) {var { width: r, height: i } = n, { align: a, verticalAlign: o, layout: s } = t;- if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return lU(lU({}, e), {}, { [a]: e[a] + (r || 0) });- if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return lU(lU({}, e), {}, { [o]: e[o] + (i || 0) });+ if ((s === "vertical" || s === "horizontal" && o === "middle") && a !== "center" && Z(e[a])) return cU(cU({}, e), {}, { [a]: e[a] + (r || 0) });+ if ((s === "horizontal" || s === "vertical" && a === "center") && o !== "middle" && Z(e[o])) return cU(cU({}, e), {}, { [o]: e[o] + (i || 0) });}return e;-}, dU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", fU = (e, t, n, r) => {+}, uU = (e, t) => e === "horizontal" && t === "xAxis" || e === "vertical" && t === "yAxis" || e === "centric" && t === "angleAxis" || e === "radial" && t === "radiusAxis", dU = (e, t, n, r) => {if (r) return e.map((e) => e.coordinate);var i, a, o = e.map((e) => (e.coordinate === t && (i = !0), e.coordinate === n && (a = !0), e.coordinate));return i || o.push(t), a || o.push(n), o;-}, pU = (e, t, n) => {+}, fU = (e, t, n) => {if (!e) return null;var { duplicateDomain: r, type: i, range: a, scale: o, realScaleType: s, isCategorical: c, categoricalDomain: l, tickCount: u, ticks: d, niceTicks: f, axisType: p } = e;if (!o) return null;var m = s === "scaleBand" && o.bandwidth ? o.bandwidth() / 2 : 2, h = (t || n) && i === "category" && o.bandwidth ? o.bandwidth() / m : 0;- return h = p === "angleAxis" && a && a.length >= 2 ? Zz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {+ return h = p === "angleAxis" && a && a.length >= 2 ? Xz(a[0] - a[1]) * 2 * h : h, t && (d || f) ? (d || f || []).map((e, t) => {var n = r ? r.indexOf(e) : e, i = o.map(n);- return oU(i) ? {+ return aU(i) ? {coordinate: i + h,value: e,offset: h,index: t} : null;- }).filter(cB) : c && l ? l.map((e, t) => {+ }).filter(sB) : c && l ? l.map((e, t) => {var n = o.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + h,value: e,index: t,offset: h} : null;- }).filter(cB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {+ }).filter(sB) : o.ticks && !n && u != null ? o.ticks(u).map((e, t) => {var n = o.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + h,value: e,index: t,offset: h} : null;- }).filter(cB) : o.domain().map((e, t) => {+ }).filter(sB) : o.domain().map((e, t) => {var n = o.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + h,value: r ? r[e] : e,index: t,offset: h} : null;- }).filter(cB);-}, mU = (e, t) => {+ }).filter(sB);+}, pU = (e, t) => {if (!t || t.length !== 2 || !Z(t[0]) || !Z(t[1])) return e;var n = Math.min(t[0], t[1]), r = Math.max(t[0], t[1]), i = [e[0], e[1]];return (!Z(e[0]) || e[0] < n) && (i[0] = n), (!Z(e[1]) || e[1] > r) && (i[1] = r), i[0] > r && (i[0] = r), i[1] < n && (i[1] = n), i;-}, XCe = {+}, YCe = {sign: (e) => {var t = e.length;if (!(t <= 0)) {@@ -55102,16 +55093,16 @@ var YCe = (e, t, n) => {if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0, o = 0; o < t; ++o) {var s = e[o]?.[r];if (s != null) {- var c = s[1], l = s[0], u = Qz(c) ? l : c;+ var c = s[1], l = s[0], u = Zz(c) ? l : c;u >= 0 ? (s[0] = i, i += u, s[1] = i) : (s[0] = a, a += u, s[1] = a);}}}},- expand: sxe,- none: Bz,- silhouette: cxe,- wiggle: lxe,+ expand: oxe,+ none: zz,+ silhouette: sxe,+ wiggle: cxe,positive: (e) => {var t = e.length;if (!(t <= 0)) {@@ -55119,70 +55110,70 @@ var YCe = (e, t, n) => {if (!(n == null || n <= 0)) for (var r = 0; r < n; ++r) for (var i = 0, a = 0; a < t; ++a) {var o = e[a]?.[r];if (o != null) {- var s = Qz(o[1]) ? o[0] : o[1];+ var s = Zz(o[1]) ? o[0] : o[1];s >= 0 ? (o[0] = i, i += s, o[1] = i) : (o[0] = 0, o[1] = 0);}}}}-}, ZCe = (e, t, n) => {- var r = XCe[n] ?? Bz, i = oxe().keys(t).value((e, t) => Number(uU(e, t, 0))).order(Vz).offset(r)(e);+}, XCe = (e, t, n) => {+ var r = YCe[n] ?? zz, i = axe().keys(t).value((e, t) => Number(lU(e, t, 0))).order(Bz).offset(r)(e);return i.forEach((n, r) => {n.forEach((n, i) => {- var a = uU(e[i], t[r], 0);+ var a = lU(e[i], t[r], 0);Array.isArray(a) && a.length === 2 && Z(a[0]) && Z(a[1]) && (n[0] = a[0], n[1] = a[1]);});}), i;};-function hU(e) {+function mU(e) {return e == null ? void 0 : String(e);}-function gU(e) {+function hU(e) {var { axis: t, ticks: n, bandSize: r, entry: i, index: a, dataKey: o } = e;if (t.type === "category") {- if (!t.allowDuplicatedCategory && t.dataKey && !oB(i[t.dataKey])) {- var s = aB(n, "value", i[t.dataKey]);+ if (!t.allowDuplicatedCategory && t.dataKey && !aB(i[t.dataKey])) {+ var s = iB(n, "value", i[t.dataKey]);if (s) return s.coordinate + r / 2;}return n != null && n[a] ? n[a].coordinate + r / 2 : null;}- var c = uU(i, oB(o) ? t.dataKey : o), l = t.scale.map(c);+ var c = lU(i, aB(o) ? t.dataKey : o), l = t.scale.map(c);return Z(l) ? l : null;}-var _U = (e) => {+var gU = (e) => {var { axis: t, ticks: n, offset: r, bandSize: i, entry: a, index: o } = e;if (t.type === "category") return n[o] ? n[o].coordinate + r : null;- var s = uU(a, t.dataKey, t.scale.domain()[o]);- if (oB(s)) return null;+ var s = lU(a, t.dataKey, t.scale.domain()[o]);+ if (aB(s)) return null;var c = t.scale.map(s);return Z(c) ? c - i / 2 + r : null;-}, vU = (e) => {+}, _U = (e) => {var { numericAxis: t } = e, n = t.scale.domain();if (t.type === "number") {var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);return r <= 0 && i >= 0 ? 0 : i < 0 ? i : r;}return n[0];-}, QCe = (e) => {+}, ZCe = (e) => {var t = e.flat(2).filter(Z);return [Math.min(...t), Math.max(...t)];-}, $Ce = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], ewe = (e, t, n) => {- if (e != null) return $Ce(Object.keys(e).reduce((r, i) => {+}, QCe = (e) => [e[0] === Infinity ? 0 : e[0], e[1] === -Infinity ? 0 : e[1]], $Ce = (e, t, n) => {+ if (e != null) return QCe(Object.keys(e).reduce((r, i) => {var a = e[i];if (!a) return r;var { stackedData: o } = a, s = o.reduce((e, r) => {- var i = QCe(aU(r, t, n));- return !oU(i[0]) || !oU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];+ var i = ZCe(iU(r, t, n));+ return !aU(i[0]) || !aU(i[1]) ? e : [Math.min(e[0], i[0]), Math.max(e[1], i[1])];}, [Infinity, -Infinity]);return [Math.min(s[0], r[0]), Math.max(s[1], r[1])];}, [Infinity, -Infinity]));-}, yU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, bU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, xU = (e, t, n) => {+}, vU = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, yU = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, bU = (e, t, n) => {if (e && e.scale && e.scale.bandwidth) {var r = e.scale.bandwidth();if (!n || r > 0) return r;}if (e && t && t.length >= 2) {- for (var i = eV(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {+ for (var i = $B(t, (e) => e.coordinate), a = Infinity, o = 1, s = i.length; o < s; o++) {var c = i[o], l = i[o - 1];a = Math.min((c?.coordinate || 0) - (l?.coordinate || 0), a);}@@ -55190,26 +55181,26 @@ var _U = (e) => {}return n ? void 0 : 0;};-function SU(e) {+function xU(e) {var { tooltipEntrySettings: t, dataKey: n, payload: r, value: i, name: a } = e;- return lU(lU({}, t), {}, {+ return cU(cU({}, t), {}, {dataKey: n,payload: r,value: i,name: a});}-function CU(e, t) {+function SU(e, t) {if (e) return String(e);if (typeof t == "string") return t;}-var twe = (e, t) => {+var ewe = (e, t) => {if (t === "horizontal") return e.relativeX;if (t === "vertical") return e.relativeY;-}, nwe = (e, t) => t === "centric" ? e.angle : e.radius, wU = (e) => e.layout.width, TU = (e) => e.layout.height, rwe = (e) => e.layout.scale, EU = (e) => e.layout.margin, DU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), OU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), iwe = "data-recharts-item-index";+}, twe = (e, t) => t === "centric" ? e.angle : e.radius, CU = (e) => e.layout.width, wU = (e) => e.layout.height, nwe = (e) => e.layout.scale, TU = (e) => e.layout.margin, EU = $((e) => e.cartesianAxis.xAxis, (e) => Object.values(e)), DU = $((e) => e.cartesianAxis.yAxis, (e) => Object.values(e)), rwe = "data-recharts-item-index";//#endregion//#region node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js-function kU(e, t) {+function OU(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -55219,30 +55210,30 @@ function kU(e, t) {}return n;}-function AU(e) {+function kU(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? kU(Object(n), !0).forEach(function(t) {- awe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : kU(Object(n)).forEach(function(t) {+ t % 2 ? OU(Object(n), !0).forEach(function(t) {+ iwe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OU(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function awe(e, t, n) {- return (t = owe(t)) in e ? Object.defineProperty(e, t, {+function iwe(e, t, n) {+ return (t = awe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function owe(e) {- var t = swe(e, "string");+function awe(e) {+ var t = owe(e, "string");return typeof t == "symbol" ? t : t + "";}-function swe(e, t) {+function owe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -55252,58 +55243,58 @@ function swe(e, t) {}return (t === "string" ? String : Number)(e);}-var cwe = (e) => e.brush.height;+var swe = (e) => e.brush.height;+function cwe(e) {+ return DU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);+}function lwe(e) {- return OU(e).reduce((e, t) => t.orientation === "left" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);+ return DU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);}function uwe(e) {- return OU(e).reduce((e, t) => t.orientation === "right" && !t.mirror && !t.hide ? e + (typeof t.width == "number" ? t.width : 60) : e, 0);+ return EU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);}function dwe(e) {- return DU(e).reduce((e, t) => t.orientation === "top" && !t.mirror && !t.hide ? e + t.height : e, 0);+ return EU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);}-function fwe(e) {- return DU(e).reduce((e, t) => t.orientation === "bottom" && !t.mirror && !t.hide ? e + t.height : e, 0);-}-var jU = $([+var AU = $([+ CU,wU,TU,- EU,+ swe,cwe,lwe,uwe,dwe,- fwe,- tV,- GSe+ eV,+ WSe], (e, t, n, r, i, a, o, s, c, l) => {var u = {left: (n.left || 0) + i,right: (n.right || 0) + a- }, d = AU(AU({}, {+ }, d = kU(kU({}, {top: (n.top || 0) + o,bottom: (n.bottom || 0) + s}), u), f = d.bottom;- d.bottom += r, d = YCe(d, c, l);+ d.bottom += r, d = JCe(d, c, l);var p = e - d.left - d.right, m = t - d.top - d.bottom;- return AU(AU({ brushBottom: f }, d), {}, {+ return kU(kU({ brushBottom: f }, d), {}, {width: Math.max(p, 0),height: Math.max(m, 0)});-}), pwe = $(jU, (e) => ({+}), fwe = $(AU, (e) => ({x: e.left,y: e.top,width: e.width,height: e.height-})), MU = $(wU, TU, (e, t) => ({+})), jU = $(CU, wU, (e, t) => ({x: 0,y: 0,width: e,height: t-})), mwe = /*#__PURE__*/ (0, B.createContext)(null), NU = () => (0, B.useContext)(mwe) != null, PU = (e) => e.brush, FU = $([- PU,- jU,- EU+})), pwe = /*#__PURE__*/ (0, B.createContext)(null), MU = () => (0, B.useContext)(pwe) != null, NU = (e) => e.brush, PU = $([+ NU,+ AU,+ TU], (e, t, n) => ({height: e.height,x: Z(e.x) ? e.x : t.left,@@ -55312,7 +55303,7 @@ var jU = $([}));//#endregion//#region node_modules/es-toolkit/dist/function/debounce.mjs-function hwe(e, t, { signal: n, edges: r } = {}) {+function mwe(e, t, { signal: n, edges: r } = {}) {let i, a = null, o = r != null && r.includes("leading"), s = r == null || r.includes("trailing"), c = () => {a !== null && (e.apply(i, a), i = void 0, a = null);}, l = () => {@@ -55337,11 +55328,11 @@ function hwe(e, t, { signal: n, edges: r } = {}) {}//#endregion//#region node_modules/es-toolkit/dist/compat/function/debounce.mjs-function gwe(e, t = 0, n = {}) {+function hwe(e, t = 0, n = {}) {typeof n != "object" && (n = {});let { leading: r = !1, trailing: i = !0, maxWait: a } = n, o = [, ,];r && (o[0] = "leading"), i && (o[1] = "trailing");- let s, c = null, l = hwe(function(...t) {+ let s, c = null, l = mwe(function(...t) {s = e.apply(this, t), c = null;}, t, { edges: o }), u = function(...t) {return a != null && (c === null && (c = Date.now()), Date.now() - c >= a) ? ((r || i) && (s = e.apply(this, t)), c = Date.now(), l.cancel(), l.schedule(), s) : (l.apply(this, t), s);@@ -55350,9 +55341,9 @@ function gwe(e, t = 0, n = {}) {}//#endregion//#region node_modules/es-toolkit/dist/compat/function/throttle.mjs-function _we(e, t = 0, n = {}) {+function gwe(e, t = 0, n = {}) {let { leading: r = !0, trailing: i = !0 } = n;- return gwe(e, t, {+ return hwe(e, t, {leading: r,maxWait: t,trailing: i@@ -55360,7 +55351,7 @@ function _we(e, t = 0, n = {}) {}//#endregion//#region node_modules/recharts/es6/util/LogUtils.js-var IU = function(e, t) {+var FU = function(e, t) {var n = [...arguments].slice(2);if (typeof console < "u" && console.warn && (t === void 0 && console.warn("LogUtils requires an error message argument"), !e)) {if (t === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");@@ -55369,7 +55360,7 @@ var IU = function(e, t) {console.warn(t.replace(/%s/g, () => n[r++]));}}-}, LU = {+}, IU = {width: "100%",height: "100%",debounce: 0,@@ -55378,45 +55369,45 @@ var IU = function(e, t) {width: -1,height: -1}-}, RU = (e, t, n) => {- var { width: r = LU.width, height: i = LU.height, aspect: a, maxHeight: o } = n, s = $z(r) ? e : Number(r), c = $z(i) ? t : Number(i);+}, LU = (e, t, n) => {+ var { width: r = IU.width, height: i = IU.height, aspect: a, maxHeight: o } = n, s = Qz(r) ? e : Number(r), c = Qz(i) ? t : Number(i);return a && a > 0 && (s ? c = s / a : c && (s = c * a), o && c != null && c > o && (c = o)), {calculatedWidth: s,calculatedHeight: c};-}, vwe = {+}, _we = {width: 0,height: 0,overflow: "visible"-}, ywe = {+}, vwe = {width: 0,overflowX: "visible"-}, bwe = {+}, ywe = {height: 0,overflowY: "visible"-}, xwe = {}, Swe = (e) => {- var { width: t, height: n } = e, r = $z(t), i = $z(n);- return r && i ? vwe : r ? ywe : i ? bwe : xwe;+}, bwe = {}, xwe = (e) => {+ var { width: t, height: n } = e, r = Qz(t), i = Qz(n);+ return r && i ? _we : r ? vwe : i ? ywe : bwe;};-function Cwe(e) {+function Swe(e) {var { width: t, height: n, aspect: r } = e, i = t, a = n;- return i === void 0 && a === void 0 ? (i = LU.width, a = LU.height) : i === void 0 ? i = r && r > 0 ? void 0 : LU.width : a === void 0 && (a = r && r > 0 ? void 0 : LU.height), {+ return i === void 0 && a === void 0 ? (i = IU.width, a = IU.height) : i === void 0 ? i = r && r > 0 ? void 0 : IU.width : a === void 0 && (a = r && r > 0 ? void 0 : IU.height), {width: i,height: a};}//#endregion//#region node_modules/recharts/es6/component/ResponsiveContainer.js-function zU() {- return zU = Object.assign ? Object.assign.bind() : function(e) {+function RU() {+ return RU = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, zU.apply(null, arguments);+ }, RU.apply(null, arguments);}-function BU(e, t) {+function zU(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -55426,30 +55417,30 @@ function BU(e, t) {}return n;}-function VU(e) {+function BU(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? BU(Object(n), !0).forEach(function(t) {- wwe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BU(Object(n)).forEach(function(t) {+ t % 2 ? zU(Object(n), !0).forEach(function(t) {+ Cwe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zU(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function wwe(e, t, n) {- return (t = Twe(t)) in e ? Object.defineProperty(e, t, {+function Cwe(e, t, n) {+ return (t = wwe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Twe(e) {- var t = Ewe(e, "string");+function wwe(e) {+ var t = Twe(e, "string");return typeof t == "symbol" ? t : t + "";}-function Ewe(e, t) {+function Twe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -55459,19 +55450,19 @@ function Ewe(e, t) {}return (t === "string" ? String : Number)(e);}-var HU = /*#__PURE__*/ (0, B.createContext)(LU.initialDimension);-function Dwe(e) {- return sU(e.width) && sU(e.height);+var VU = /*#__PURE__*/ (0, B.createContext)(IU.initialDimension);+function Ewe(e) {+ return oU(e.width) && oU(e.height);}-function UU(e) {+function HU(e) {var { children: t, width: n, height: r } = e, i = (0, B.useMemo)(() => ({width: n,height: r}), [n, r]);- return Dwe(i) ? /*#__PURE__*/ B.createElement(HU.Provider, { value: i }, t) : null;+ return Ewe(i) ? /*#__PURE__*/ B.createElement(VU.Provider, { value: i }, t) : null;}-var WU = () => (0, B.useContext)(HU), Owe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { aspect: n, initialDimension: r = LU.initialDimension, width: i, height: a, minWidth: o = LU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = LU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, B.useRef)(null), g = (0, B.useRef)();+var UU = () => (0, B.useContext)(VU), Dwe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { aspect: n, initialDimension: r = IU.initialDimension, width: i, height: a, minWidth: o = IU.minWidth, minHeight: s, maxHeight: c, children: l, debounce: u = IU.debounce, id: d, className: f, onResize: p, style: m = {} } = e, h = (0, B.useRef)(null), g = (0, B.useRef)();g.current = p, (0, B.useImperativeHandle)(t, () => h.current);var [_, v] = (0, B.useState)({containerWidth: r.width,@@ -55486,7 +55477,7 @@ var WU = () => (0, B.useContext)(HU), Owe = /*#__PURE__*/ (0, B.forwardRef)((e,});}, []);(0, B.useEffect)(() => {- if (h.current == null || typeof ResizeObserver > "u") return lB;+ if (h.current == null || typeof ResizeObserver > "u") return cB;var e = (e) => {var t, n = e[0];if (n != null) {@@ -55494,7 +55485,7 @@ var WU = () => (0, B.useContext)(HU), Owe = /*#__PURE__*/ (0, B.forwardRef)((e,y(r, i), (t = g.current) == null || t.call(g, r, i);}};- u > 0 && (e = _we(e, u, {+ u > 0 && (e = gwe(e, u, {trailing: !0,leading: !1}));@@ -55504,17 +55495,17 @@ var WU = () => (0, B.useContext)(HU), Owe = /*#__PURE__*/ (0, B.forwardRef)((e,};}, [y, u]);var { containerWidth: b, containerHeight: x } = _;- IU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);- var { calculatedWidth: S, calculatedHeight: C } = RU(b, x, {+ FU(!n || n > 0, "The aspect(%s) must be greater than zero.", n);+ var { calculatedWidth: S, calculatedHeight: C } = LU(b, x, {width: i,height: a,aspect: n,maxHeight: c});- return IU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ B.createElement("div", {+ return FU(S != null && S > 0 || C != null && C > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", S, C, i, a, o, s, n), /*#__PURE__*/ B.createElement("div", {id: d ? `${d}` : void 0,className: _h("recharts-responsive-container", f),- style: VU(VU({}, m), {}, {+ style: BU(BU({}, m), {}, {width: i,height: a,minWidth: o,@@ -55522,30 +55513,30 @@ var WU = () => (0, B.useContext)(HU), Owe = /*#__PURE__*/ (0, B.forwardRef)((e,maxHeight: c}),ref: h- }, /*#__PURE__*/ B.createElement("div", { style: Swe({+ }, /*#__PURE__*/ B.createElement("div", { style: xwe({width: i,height: a- }) }, /*#__PURE__*/ B.createElement(UU, {+ }) }, /*#__PURE__*/ B.createElement(HU, {width: S,height: C}, l)));-}), GU = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = WU();- if (sU(n.width) && sU(n.height)) return e.children;- var { width: r, height: i } = Cwe({+}), WU = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = UU();+ if (oU(n.width) && oU(n.height)) return e.children;+ var { width: r, height: i } = Swe({width: e.width,height: e.height,aspect: e.aspect- }), { calculatedWidth: a, calculatedHeight: o } = RU(void 0, void 0, {+ }), { calculatedWidth: a, calculatedHeight: o } = LU(void 0, void 0, {width: r,height: i,aspect: e.aspect,maxHeight: e.maxHeight});- return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(UU, {+ return Z(a) && Z(o) ? /*#__PURE__*/ B.createElement(HU, {width: a,height: o- }, e.children) : /*#__PURE__*/ B.createElement(Owe, zU({}, e, {+ }, e.children) : /*#__PURE__*/ B.createElement(Dwe, RU({}, e, {width: r,height: i,ref: t@@ -55553,7 +55544,7 @@ var WU = () => (0, B.useContext)(HU), Owe = /*#__PURE__*/ (0, B.forwardRef)((e,});//#endregion//#region node_modules/recharts/es6/context/chartLayoutContext.js-function KU(e) {+function GU(e) {if (e) return {x: e.x,y: e.y,@@ -55563,15 +55554,15 @@ function KU(e) {height: e.height};}-var qU = () => {- var e = NU(), t = Q(pwe), n = Q(FU), r = Q(PU)?.padding;+var KU = () => {+ var e = MU(), t = Q(fwe), n = Q(PU), r = Q(NU)?.padding;return !e || !n || !r ? t : {width: n.width - r.left - r.right,height: n.height - r.top - r.bottom,x: r.left,y: r.top};-}, kwe = {+}, Owe = {top: 0,bottom: 0,left: 0,@@ -55579,16 +55570,16 @@ var qU = () => {width: 0,height: 0,brushBottom: 0-}, JU = () => Q(jU) ?? kwe, YU = () => Q(wU), XU = () => Q(TU), Awe = () => Q((e) => e.layout.margin), ZU = (e) => e.layout.layoutType, QU = () => Q(ZU), $U = () => {- var e = QU();+}, qU = () => Q(AU) ?? Owe, JU = () => Q(CU), YU = () => Q(wU), kwe = () => Q((e) => e.layout.margin), XU = (e) => e.layout.layoutType, ZU = () => Q(XU), QU = () => {+ var e = ZU();if (e === "horizontal" || e === "vertical") return e;-}, eW = (e) => {+}, $U = (e) => {var t = e.layout.layoutType;if (t === "centric" || t === "radial") return t;-}, tW = () => Q(eW), jwe = () => QU() !== void 0, nW = (e) => {- var t = KB(), n = NU(), { width: r, height: i } = e, a = WU(), o = r, s = i;+}, eW = () => Q($U), Awe = () => ZU() !== void 0, tW = (e) => {+ var t = GB(), n = MU(), { width: r, height: i } = e, a = UU(), o = r, s = i;return a && (o = a.width > 0 ? a.width : r, s = a.height > 0 ? a.height : i), (0, B.useEffect)(() => {- !n && sU(o) && sU(s) && t(UCe({+ !n && oU(o) && oU(s) && t(HCe({width: o,height: s}));@@ -55598,64 +55589,64 @@ var qU = () => {o,s]), null;-}, rW = Symbol.for("immer-nothing"), iW = Symbol.for("immer-draftable"), aW = Symbol.for("immer-state");-function oW(e, ...t) {+}, nW = Symbol.for("immer-nothing"), rW = Symbol.for("immer-draftable"), iW = Symbol.for("immer-state");+function aW(e, ...t) {throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);}-var sW = Object.getPrototypeOf;-function cW(e) {- return !!e && !!e[aW];+var oW = Object.getPrototypeOf;+function sW(e) {+ return !!e && !!e[iW];}-function lW(e) {- return e ? dW(e) || Array.isArray(e) || !!e[iW] || !!e.constructor?.[iW] || gW(e) || _W(e) : !1;+function cW(e) {+ return e ? uW(e) || Array.isArray(e) || !!e[rW] || !!e.constructor?.[rW] || hW(e) || gW(e) : !1;}-var Mwe = Object.prototype.constructor.toString(), uW = /* @__PURE__ */ new WeakMap();-function dW(e) {+var jwe = Object.prototype.constructor.toString(), lW = /* @__PURE__ */ new WeakMap();+function uW(e) {if (!e || typeof e != "object") return !1;let t = Object.getPrototypeOf(e);if (t === null || t === Object.prototype) return !0;let n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;if (n === Object) return !0;if (typeof n != "function") return !1;- let r = uW.get(n);- return r === void 0 && (r = Function.toString.call(n), uW.set(n, r)), r === Mwe;+ let r = lW.get(n);+ return r === void 0 && (r = Function.toString.call(n), lW.set(n, r)), r === jwe;}-function fW(e, t, n = !0) {- pW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {+function dW(e, t, n = !0) {+ fW(e) === 0 ? (n ? Reflect.ownKeys(e) : Object.keys(e)).forEach((n) => {t(n, e[n], e);}) : e.forEach((n, r) => t(r, n, e));}-function pW(e) {- let t = e[aW];- return t ? t.type_ : Array.isArray(e) ? 1 : gW(e) ? 2 : _W(e) ? 3 : 0;+function fW(e) {+ let t = e[iW];+ return t ? t.type_ : Array.isArray(e) ? 1 : hW(e) ? 2 : gW(e) ? 3 : 0;}-function mW(e, t) {- return pW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);+function pW(e, t) {+ return fW(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);}-function hW(e, t, n) {- let r = pW(e);+function mW(e, t, n) {+ let r = fW(e);r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;}-function Nwe(e, t) {+function Mwe(e, t) {return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;}-function gW(e) {+function hW(e) {return e instanceof Map;}-function _W(e) {+function gW(e) {return e instanceof Set;}-function vW(e) {+function _W(e) {return e.copy_ || e.base_;}-function yW(e, t) {- if (gW(e)) return new Map(e);- if (_W(e)) return new Set(e);+function vW(e, t) {+ if (hW(e)) return new Map(e);+ if (gW(e)) return new Set(e);if (Array.isArray(e)) return Array.prototype.slice.call(e);- let n = dW(e);+ let n = uW(e);if (t === !0 || t === "class_only" && !n) {let t = Object.getOwnPropertyDescriptors(e);- delete t[aW];+ delete t[iW];let n = Reflect.ownKeys(t);for (let r = 0; r < n.length; r++) {let i = n[r], a = t[i];@@ -55666,40 +55657,40 @@ function yW(e, t) {value: e[i]});}- return Object.create(sW(e), t);+ return Object.create(oW(e), t);}{- let t = sW(e);+ let t = oW(e);if (t !== null && n) return { ...e };let r = Object.create(t);return Object.assign(r, e);}}-function bW(e, t = !1) {- return SW(e) || cW(e) || !lW(e) ? e : (pW(e) > 1 && Object.defineProperties(e, {- set: xW,- add: xW,- clear: xW,- delete: xW- }), Object.freeze(e), t && Object.values(e).forEach((e) => bW(e, !0)), e);+function yW(e, t = !1) {+ return xW(e) || sW(e) || !cW(e) ? e : (fW(e) > 1 && Object.defineProperties(e, {+ set: bW,+ add: bW,+ clear: bW,+ delete: bW+ }), Object.freeze(e), t && Object.values(e).forEach((e) => yW(e, !0)), e);}-function Pwe() {- oW(2);+function Nwe() {+ aW(2);}-var xW = { value: Pwe };-function SW(e) {+var bW = { value: Nwe };+function xW(e) {return typeof e != "object" || !e || Object.isFrozen(e);}-var Fwe = {};-function CW(e) {- let t = Fwe[e];- return t || oW(0, e), t;+var Pwe = {};+function SW(e) {+ let t = Pwe[e];+ return t || aW(0, e), t;}-var wW;-function TW() {- return wW;+var CW;+function wW() {+ return CW;}-function Iwe(e, t) {+function Fwe(e, t) {return {drafts_: [],parent_: e,@@ -55708,62 +55699,62 @@ function Iwe(e, t) {unfinalizedDrafts_: 0};}-function EW(e, t) {- t && (CW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+function TW(e, t) {+ t && (SW("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);+}+function EW(e) {+ DW(e), e.drafts_.forEach(Iwe), e.drafts_ = null;}function DW(e) {- OW(e), e.drafts_.forEach(Lwe), e.drafts_ = null;+ e === CW && (CW = e.parent_);}function OW(e) {- e === wW && (wW = e.parent_);+ return CW = Fwe(CW, e);}-function kW(e) {- return wW = Iwe(wW, e);-}-function Lwe(e) {- let t = e[aW];+function Iwe(e) {+ let t = e[iW];t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;}-function AW(e, t) {+function kW(e, t) {t.unfinalizedDrafts_ = t.drafts_.length;let n = t.drafts_[0];- return e !== void 0 && e !== n ? (n[aW].modified_ && (DW(t), oW(4)), lW(e) && (e = jW(t, e), t.parent_ || NW(t, e)), t.patches_ && CW("Patches").generateReplacementPatches_(n[aW].base_, e, t.patches_, t.inversePatches_)) : e = jW(t, n, []), DW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === rW ? void 0 : e;+ return e !== void 0 && e !== n ? (n[iW].modified_ && (EW(t), aW(4)), cW(e) && (e = AW(t, e), t.parent_ || MW(t, e)), t.patches_ && SW("Patches").generateReplacementPatches_(n[iW].base_, e, t.patches_, t.inversePatches_)) : e = AW(t, n, []), EW(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === nW ? void 0 : e;}-function jW(e, t, n) {- if (SW(t)) return t;- let r = e.immer_.shouldUseStrictIteration(), i = t[aW];- if (!i) return fW(t, (r, a) => MW(e, i, t, r, a, n), r), t;+function AW(e, t, n) {+ if (xW(t)) return t;+ let r = e.immer_.shouldUseStrictIteration(), i = t[iW];+ if (!i) return dW(t, (r, a) => jW(e, i, t, r, a, n), r), t;if (i.scope_ !== e) return t;- if (!i.modified_) return NW(e, i.base_, !0), i.base_;+ if (!i.modified_) return MW(e, i.base_, !0), i.base_;if (!i.finalized_) {i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;let t = i.copy_, a = t, o = !1;- i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), fW(a, (r, a) => MW(e, i, t, r, a, n, o), r), NW(e, t, !1), n && e.patches_ && CW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);+ i.type_ === 3 && (a = new Set(t), t.clear(), o = !0), dW(a, (r, a) => jW(e, i, t, r, a, n, o), r), MW(e, t, !1), n && e.patches_ && SW("Patches").generatePatches_(i, n, e.patches_, e.inversePatches_);}return i.copy_;}-function MW(e, t, n, r, i, a, o) {+function jW(e, t, n, r, i, a, o) {if (i == null || typeof i != "object" && !o) return;- let s = SW(i);+ let s = xW(i);if (!(s && !o)) {- if (cW(i)) {- let o = jW(e, i, a && t && t.type_ !== 3 && !mW(t.assigned_, r) ? a.concat(r) : void 0);- if (hW(n, r, o), cW(o)) e.canAutoFreeze_ = !1;+ if (sW(i)) {+ let o = AW(e, i, a && t && t.type_ !== 3 && !pW(t.assigned_, r) ? a.concat(r) : void 0);+ if (mW(n, r, o), sW(o)) e.canAutoFreeze_ = !1;else return;} else o && n.add(i);- if (lW(i) && !s) {+ if (cW(i) && !s) {if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1 || t && t.base_ && t.base_[r] === i && s) return;- jW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (gW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && NW(e, i);+ AW(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && (hW(n) ? n.has(r) : Object.prototype.propertyIsEnumerable.call(n, r)) && MW(e, i);}}}-function NW(e, t, n = !1) {- !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && bW(t, n);+function MW(e, t, n = !1) {+ !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && yW(t, n);}-function Rwe(e, t) {+function Lwe(e, t) {let n = Array.isArray(e), r = {type_: +!!n,- scope_: t ? t.scope_ : TW(),+ scope_: t ? t.scope_ : wW(),modified_: !1,finalized_: !1,assigned_: {},@@ -55773,41 +55764,41 @@ function Rwe(e, t) {copy_: null,revoke_: null,isManual_: !1- }, i = r, a = PW;- n && (i = [r], a = FW);+ }, i = r, a = NW;+ n && (i = [r], a = PW);let { revoke: o, proxy: s } = Proxy.revocable(i, a);return r.draft_ = s, r.revoke_ = o, s;}-var PW = {+var NW = {get(e, t) {- if (t === aW) return e;- let n = vW(e);- if (!mW(n, t)) return zwe(e, n, t);+ if (t === iW) return e;+ let n = _W(e);+ if (!pW(n, t)) return Rwe(e, n, t);let r = n[t];- return e.finalized_ || !lW(r) ? r : r === IW(e.base_, t) ? (zW(e), e.copy_[t] = BW(r, e)) : r;+ return e.finalized_ || !cW(r) ? r : r === FW(e.base_, t) ? (RW(e), e.copy_[t] = zW(r, e)) : r;},has(e, t) {- return t in vW(e);+ return t in _W(e);},ownKeys(e) {- return Reflect.ownKeys(vW(e));+ return Reflect.ownKeys(_W(e));},set(e, t, n) {- let r = LW(vW(e), t);+ let r = IW(_W(e), t);if (r?.set) return r.set.call(e.draft_, n), !0;if (!e.modified_) {- let r = IW(vW(e), t), i = r?.[aW];+ let r = FW(_W(e), t), i = r?.[iW];if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_[t] = !1, !0;- if (Nwe(n, r) && (n !== void 0 || mW(e.base_, t))) return !0;- zW(e), RW(e);+ if (Mwe(n, r) && (n !== void 0 || pW(e.base_, t))) return !0;+ RW(e), LW(e);}return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_[t] = !0, !0);},deleteProperty(e, t) {- return IW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, zW(e), RW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;+ return FW(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, RW(e), LW(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;},getOwnPropertyDescriptor(e, t) {- let n = vW(e), r = Reflect.getOwnPropertyDescriptor(n, t);+ let n = _W(e), r = Reflect.getOwnPropertyDescriptor(n, t);return r && {writable: !0,configurable: e.type_ !== 1 || t !== "length",@@ -55816,48 +55807,48 @@ var PW = {};},defineProperty() {- oW(11);+ aW(11);},getPrototypeOf(e) {- return sW(e.base_);+ return oW(e.base_);},setPrototypeOf() {- oW(12);+ aW(12);}-}, FW = {};-fW(PW, (e, t) => {- FW[e] = function() {+}, PW = {};+dW(NW, (e, t) => {+ PW[e] = function() {return arguments[0] = arguments[0][0], t.apply(this, arguments);};-}), FW.deleteProperty = function(e, t) {- return FW.set.call(this, e, t, void 0);-}, FW.set = function(e, t, n) {- return PW.set.call(this, e[0], t, n, e[0]);+}), PW.deleteProperty = function(e, t) {+ return PW.set.call(this, e, t, void 0);+}, PW.set = function(e, t, n) {+ return NW.set.call(this, e[0], t, n, e[0]);};-function IW(e, t) {- let n = e[aW];- return (n ? vW(n) : e)[t];+function FW(e, t) {+ let n = e[iW];+ return (n ? _W(n) : e)[t];}-function zwe(e, t, n) {- let r = LW(t, n);+function Rwe(e, t, n) {+ let r = IW(t, n);return r ? "value" in r ? r.value : r.get?.call(e.draft_) : void 0;}-function LW(e, t) {+function IW(e, t) {if (!(t in e)) return;- let n = sW(e);+ let n = oW(e);for (; n;) {let e = Object.getOwnPropertyDescriptor(n, t);if (e) return e;- n = sW(n);+ n = oW(n);}}-function RW(e) {- e.modified_ || (e.modified_ = !0, e.parent_ && RW(e.parent_));+function LW(e) {+ e.modified_ || (e.modified_ = !0, e.parent_ && LW(e.parent_));}-function zW(e) {- e.copy_ ||= yW(e.base_, e.scope_.immer_.useStrictShallowCopy_);+function RW(e) {+ e.copy_ ||= vW(e.base_, e.scope_.immer_.useStrictShallowCopy_);}-var Bwe = class {+var zwe = class {constructor(e) {this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !0, this.produce = (e, t, n) => {if (typeof e == "function" && typeof t != "function") {@@ -55868,25 +55859,25 @@ var Bwe = class {return r.produce(e, (e) => t.call(this, e, ...i));};}- typeof t != "function" && oW(6), n !== void 0 && typeof n != "function" && oW(7);+ typeof t != "function" && aW(6), n !== void 0 && typeof n != "function" && aW(7);let r;- if (lW(e)) {- let i = kW(this), a = BW(e, void 0), o = !0;+ if (cW(e)) {+ let i = OW(this), a = zW(e, void 0), o = !0;try {r = t(a), o = !1;} finally {- o ? DW(i) : OW(i);+ o ? EW(i) : DW(i);}- return EW(i, n), AW(r, i);+ return TW(i, n), kW(r, i);}if (!e || typeof e != "object") {- if (r = t(e), r === void 0 && (r = e), r === rW && (r = void 0), this.autoFreeze_ && bW(r, !0), n) {+ if (r = t(e), r === void 0 && (r = e), r === nW && (r = void 0), this.autoFreeze_ && yW(r, !0), n) {let t = [], i = [];- CW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);+ SW("Patches").generateReplacementPatches_(e, r, t, i), n(t, i);}return r;}- oW(1, e);+ aW(1, e);}, this.produceWithPatches = (e, t) => {if (typeof e == "function") return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));let n, r;@@ -55900,15 +55891,15 @@ var Bwe = class {}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy), typeof e?.useStrictIteration == "boolean" && this.setUseStrictIteration(e.useStrictIteration);}createDraft(e) {- lW(e) || oW(8), cW(e) && (e = Vwe(e));- let t = kW(this), n = BW(e, void 0);- return n[aW].isManual_ = !0, OW(t), n;+ cW(e) || aW(8), sW(e) && (e = Bwe(e));+ let t = OW(this), n = zW(e, void 0);+ return n[iW].isManual_ = !0, DW(t), n;}finishDraft(e, t) {- let n = e && e[aW];- (!n || !n.isManual_) && oW(9);+ let n = e && e[iW];+ (!n || !n.isManual_) && aW(9);let { scope_: r } = n;- return EW(r, t), AW(void 0, r);+ return TW(r, t), kW(void 0, r);}setAutoFreeze(e) {this.autoFreeze_ = e;@@ -55932,35 +55923,35 @@ var Bwe = class {}}n > -1 && (t = t.slice(n + 1));- let r = CW("Patches").applyPatches_;- return cW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));+ let r = SW("Patches").applyPatches_;+ return sW(e) ? r(e, t) : this.produce(e, (e) => r(e, t));}};-function BW(e, t) {- let n = gW(e) ? CW("MapSet").proxyMap_(e, t) : _W(e) ? CW("MapSet").proxySet_(e, t) : Rwe(e, t);- return (t ? t.scope_ : TW()).drafts_.push(n), n;+function zW(e, t) {+ let n = hW(e) ? SW("MapSet").proxyMap_(e, t) : gW(e) ? SW("MapSet").proxySet_(e, t) : Lwe(e, t);+ return (t ? t.scope_ : wW()).drafts_.push(n), n;}-function Vwe(e) {- return cW(e) || oW(10, e), VW(e);+function Bwe(e) {+ return sW(e) || aW(10, e), BW(e);}-function VW(e) {- if (!lW(e) || SW(e)) return e;- let t = e[aW], n, r = !0;+function BW(e) {+ if (!cW(e) || xW(e)) return e;+ let t = e[iW], n, r = !0;if (t) {if (!t.modified_) return t.base_;- t.finalized_ = !0, n = yW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();- } else n = yW(e, !0);- return fW(n, (e, t) => {- hW(n, e, VW(t));+ t.finalized_ = !0, n = vW(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();+ } else n = vW(e, !0);+ return dW(n, (e, t) => {+ mW(n, e, BW(t));}, r), t && (t.finalized_ = !1), n;}-new Bwe().produce;-function HW(e) {+new zwe().produce;+function VW(e) {return e;}//#endregion//#region node_modules/recharts/es6/state/legendSlice.js-var UW = jH({+var HW = AH({name: "legend",initialState: {settings: {@@ -55984,43 +55975,43 @@ var UW = jH({},addLegendPayload: {reducer(e, t) {- e.payload.push(HW(t.payload));+ e.payload.push(VW(t.payload));},- prepare: DH()+ prepare: EH()},replaceLegendPayload: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = vH(e).payload.indexOf(HW(n));- i > -1 && (e.payload[i] = HW(r));+ var { prev: n, next: r } = t.payload, i = _H(e).payload.indexOf(VW(n));+ i > -1 && (e.payload[i] = VW(r));},- prepare: DH()+ prepare: EH()},removeLegendPayload: {reducer(e, t) {- var n = vH(e).payload.indexOf(HW(t.payload));+ var n = _H(e).payload.indexOf(VW(t.payload));n > -1 && e.payload.splice(n, 1);},- prepare: DH()+ prepare: EH()}}-}), { setLegendSize: WW, setLegendSettings: Hwe, addLegendPayload: GW, replaceLegendPayload: KW, removeLegendPayload: qW } = UW.actions, Uwe = UW.reducer, Wwe = /* @__PURE__ */ xt(((e) => {+}), { setLegendSize: UW, setLegendSettings: Vwe, addLegendPayload: WW, replaceLegendPayload: GW, removeLegendPayload: KW } = HW.actions, Hwe = HW.reducer, Uwe = /* @__PURE__ */ xt(((e) => {var t = Ot();t.useSyncExternalStore, t.useRef, t.useEffect, t.useMemo, t.useDebugValue;}));(/* @__PURE__ */ xt(((e, t) => {- t.exports = Wwe();+ t.exports = Uwe();})))();-function Gwe(e) {+function Wwe(e) {e();}-function Kwe() {+function Gwe() {let e = null, t = null;return {clear() {e = null, t = null;},notify() {- Gwe(() => {+ Wwe(() => {let t = e;for (; t;) t.callback(), t = t.next;});@@ -56042,12 +56033,12 @@ function Kwe() {}};}-var JW = {+var qW = {notify() {},get: () => []};-function qwe(e, t) {- let n, r = JW, i = 0, a = !1;+function Kwe(e, t) {+ let n, r = qW, i = 0, a = !1;function o(e) {u();let t = r.subscribe(e), n = !1;@@ -56065,10 +56056,10 @@ function qwe(e, t) {return a;}function u() {- i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = Kwe());+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = Gwe());}function d() {- i--, n && i === 0 && (n(), n = void 0, r.clear(), r = JW);+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = qW);}function f() {a || (a = !0, u());@@ -56087,44 +56078,44 @@ function qwe(e, t) {};return m;}-var Jwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Ywe = typeof navigator < "u" && navigator.product === "ReactNative", Xwe = Jwe || Ywe ? B.useLayoutEffect : B.useEffect;-function YW(e, t) {+var qwe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Jwe = typeof navigator < "u" && navigator.product === "ReactNative", Ywe = qwe || Jwe ? B.useLayoutEffect : B.useEffect;+function JW(e, t) {return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;}-function Zwe(e, t) {- if (YW(e, t)) return !0;+function Xwe(e, t) {+ if (JW(e, t)) return !0;if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;let n = Object.keys(e), r = Object.keys(t);if (n.length !== r.length) return !1;- for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !YW(e[n[r]], t[n[r]])) return !1;+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !JW(e[n[r]], t[n[r]])) return !1;return !0;}-var Qwe = /* @__PURE__ */ Symbol.for("react-redux-context"), $we = typeof globalThis < "u" ? globalThis : {};-function eTe() {+var Zwe = /* @__PURE__ */ Symbol.for("react-redux-context"), Qwe = typeof globalThis < "u" ? globalThis : {};+function $we() {if (!B.createContext) return {};- let e = $we[Qwe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);+ let e = Qwe[Zwe] ??= /* @__PURE__ */ new Map(), t = e.get(B.createContext);return t || (t = B.createContext(null), e.set(B.createContext, t)), t;}-var tTe = /* @__PURE__ */ eTe();-function nTe(e) {+var eTe = /* @__PURE__ */ $we();+function tTe(e) {let { children: t, context: n, serverState: r, store: i } = e, a = B.useMemo(() => {- let e = qwe(i);+ let e = Kwe(i);return {store: i,subscription: e,getServerState: r ? () => r : void 0};}, [i, r]), o = B.useMemo(() => i.getState(), [i]);- Xwe(() => {+ Ywe(() => {let { subscription: e } = a;return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), o !== i.getState() && e.notifyNestedSubs(), () => {e.tryUnsubscribe(), e.onStateChange = void 0;};}, [a, o]);- let s = n || tTe;+ let s = n || eTe;return /* @__PURE__ */ B.createElement(s.Provider, { value: a }, t);}-var rTe = nTe, iTe = /* @__PURE__ */ new Set([+var nTe = tTe, rTe = /* @__PURE__ */ new Set(["axisLine","tickLine","activeBar",@@ -56147,29 +56138,29 @@ var rTe = nTe, iTe = /* @__PURE__ */ new Set(["radius","throttledEvents"]);-function aTe(e, t) {+function iTe(e, t) {return e == null && t == null ? !0 : typeof e == "number" && typeof t == "number" ? e === t || e !== e && t !== t : e === t;}-function XW(e, t) {- for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (iTe.has(n)) {+function YW(e, t) {+ for (var n of /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])) if (rTe.has(n)) {if (e[n] == null && t[n] == null) continue;- if (!Zwe(e[n], t[n])) return !1;- } else if (!aTe(e[n], t[n])) return !1;+ if (!Xwe(e[n], t[n])) return !1;+ } else if (!iTe(e[n], t[n])) return !1;return !0;}//#endregion//#region node_modules/recharts/es6/component/Legend.js-var oTe = ["contextPayload"];-function ZW() {- return ZW = Object.assign ? Object.assign.bind() : function(e) {+var aTe = ["contextPayload"];+function XW() {+ return XW = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, ZW.apply(null, arguments);+ }, XW.apply(null, arguments);}-function QW(e, t) {+function ZW(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56179,30 +56170,30 @@ function QW(e, t) {}return n;}-function $W(e) {+function QW(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? QW(Object(n), !0).forEach(function(t) {- sTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QW(Object(n)).forEach(function(t) {+ t % 2 ? ZW(Object(n), !0).forEach(function(t) {+ oTe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZW(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function sTe(e, t, n) {- return (t = cTe(t)) in e ? Object.defineProperty(e, t, {+function oTe(e, t, n) {+ return (t = sTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function cTe(e) {- var t = lTe(e, "string");+function sTe(e) {+ var t = cTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function lTe(e, t) {+function cTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56212,16 +56203,16 @@ function lTe(e, t) {}return (t === "string" ? String : Number)(e);}-function uTe(e, t) {+function lTe(e, t) {if (e == null) return {};- var n, r, i = dTe(e, t);+ var n, r, i = uTe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function dTe(e, t) {+function uTe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -56230,36 +56221,36 @@ function dTe(e, t) {}return n;}-function fTe(e) {+function dTe(e) {return e.value;}-function pTe(e) {- var { contextPayload: t } = e, n = uTe(e, oTe), r = WB(t, e.payloadUniqBy, fTe), i = $W($W({}, n), {}, { payload: r });- return /*#__PURE__*/ B.isValidElement(e.content) ? /*#__PURE__*/ B.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ B.createElement(e.content, i) : /*#__PURE__*/ B.createElement(Lxe, i);+function fTe(e) {+ var { contextPayload: t } = e, n = lTe(e, aTe), r = UB(t, e.payloadUniqBy, dTe), i = QW(QW({}, n), {}, { payload: r });+ return /*#__PURE__*/ B.isValidElement(e.content) ? /*#__PURE__*/ B.cloneElement(e.content, i) : typeof e.content == "function" ? /*#__PURE__*/ B.createElement(e.content, i) : /*#__PURE__*/ B.createElement(Ixe, i);}-function mTe(e, t, n, r, i, a) {+function pTe(e, t, n, r, i, a) {var { layout: o, align: s, verticalAlign: c } = t, l, u;- return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), $W($W({}, l), u);+ return (!e || (e.left === void 0 || e.left === null) && (e.right === void 0 || e.right === null)) && (l = s === "center" && o === "vertical" ? { left: ((r || 0) - a.width) / 2 } : s === "right" ? { right: n && n.right || 0 } : { left: n && n.left || 0 }), (!e || (e.top === void 0 || e.top === null) && (e.bottom === void 0 || e.bottom === null)) && (u = c === "middle" ? { top: ((i || 0) - a.height) / 2 } : c === "bottom" ? { bottom: n && n.bottom || 0 } : { top: n && n.top || 0 }), QW(QW({}, l), u);}-function hTe(e) {- var t = KB();+function mTe(e) {+ var t = GB();return (0, B.useEffect)(() => {- t(Hwe(e));+ t(Vwe(e));}, [t, e]), null;}-function gTe(e) {- var t = KB();- return (0, B.useEffect)(() => (t(WW(e)), () => {- t(WW({+function hTe(e) {+ var t = GB();+ return (0, B.useEffect)(() => (t(UW(e)), () => {+ t(UW({width: 0,height: 0}));}), [t, e]), null;}-function _Te(e, t, n, r) {+function gTe(e, t, n, r) {return e === "vertical" && t != null ? { height: t } : e === "horizontal" ? { width: n || r } : null;}-var vTe = {+var _Te = {align: "center",iconSize: 14,inactiveColor: "#ccc",@@ -56267,28 +56258,28 @@ var vTe = {layout: "horizontal",verticalAlign: "bottom"};-function yTe(e) {- var t = yB(e, vTe), n = qSe(), r = jbe(), i = Awe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = rV([n]), d = YU(), f = XU();+function vTe(e) {+ var t = vB(e, _Te), n = KSe(), r = Abe(), i = kwe(), { width: a, height: o, wrapperStyle: s, portal: c } = t, [l, u] = nV([n]), d = JU(), f = YU();if (d == null || f == null) return null;- var p = d - (i?.left || 0) - (i?.right || 0), m = _Te(t.layout, o, a, p), h = c ? s : $W($W({+ var p = d - (i?.left || 0) - (i?.right || 0), m = gTe(t.layout, o, a, p), h = c ? s : QW(QW({position: "absolute",width: m?.width || a || "auto",height: m?.height || o || "auto"- }, mTe(s, t, i, d, f, l)), s), g = c ?? r;+ }, pTe(s, t, i, d, f, l)), s), g = c ?? r;if (g == null || n == null) return null;var _ = /*#__PURE__*/ B.createElement("div", {className: "recharts-legend-wrapper",style: h,ref: u- }, /*#__PURE__*/ B.createElement(hTe, {+ }, /*#__PURE__*/ B.createElement(mTe, {layout: t.layout,align: t.align,verticalAlign: t.verticalAlign,itemSorter: t.itemSorter- }), !c && /*#__PURE__*/ B.createElement(gTe, {+ }), !c && /*#__PURE__*/ B.createElement(hTe, {width: l.width,height: l.height- }), /*#__PURE__*/ B.createElement(pTe, ZW({}, t, m, {+ }), /*#__PURE__*/ B.createElement(fTe, XW({}, t, m, {margin: i,chartWidth: d,chartHeight: f,@@ -56296,20 +56287,20 @@ function yTe(e) {})));return /*#__PURE__*/ (0, $f.createPortal)(_, g);}-var eG = /*#__PURE__*/ B.memo(yTe, XW);-eG.displayName = "Legend";+var $W = /*#__PURE__*/ B.memo(vTe, YW);+$W.displayName = "Legend";//#endregion//#region node_modules/recharts/es6/component/DefaultTooltipContent.js-function tG() {- return tG = Object.assign ? Object.assign.bind() : function(e) {+function eG() {+ return eG = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, tG.apply(null, arguments);+ }, eG.apply(null, arguments);}-function nG(e, t) {+function tG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56319,30 +56310,30 @@ function nG(e, t) {}return n;}-function rG(e) {+function nG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? nG(Object(n), !0).forEach(function(t) {- bTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nG(Object(n)).forEach(function(t) {+ t % 2 ? tG(Object(n), !0).forEach(function(t) {+ yTe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function bTe(e, t, n) {- return (t = xTe(t)) in e ? Object.defineProperty(e, t, {+function yTe(e, t, n) {+ return (t = bTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function xTe(e) {- var t = STe(e, "string");+function bTe(e) {+ var t = xTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function STe(e, t) {+function xTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56352,10 +56343,10 @@ function STe(e, t) {}return (t === "string" ? String : Number)(e);}-function CTe(e) {- return Array.isArray(e) && eB(e[0]) && eB(e[1]) ? e.join(" ~ ") : e;+function STe(e) {+ return Array.isArray(e) && $z(e[0]) && $z(e[1]) ? e.join(" ~ ") : e;}-var iG = {+var rG = {separator: " : ",contentStyle: {margin: 0,@@ -56373,30 +56364,30 @@ var iG = {labelStyle: {},accessibilityLayer: !1};-function wTe(e, t) {- return t == null ? e : eV(e, t);+function CTe(e, t) {+ return t == null ? e : $B(e, t);}-var TTe = (e) => {- var { separator: t = iG.separator, contentStyle: n, itemStyle: r, labelStyle: i = iG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = iG.accessibilityLayer } = e, p = () => {+var wTe = (e) => {+ var { separator: t = rG.separator, contentStyle: n, itemStyle: r, labelStyle: i = rG.labelStyle, payload: a, formatter: o, itemSorter: s, wrapperClassName: c, labelClassName: l, label: u, labelFormatter: d, accessibilityLayer: f = rG.accessibilityLayer } = e, p = () => {if (a && a.length) {var e = {padding: 0,margin: 0- }, n = wTe(a, s).map((e, n) => {+ }, n = CTe(a, s).map((e, n) => {if (e.type === "none") return null;- var i = e.formatter || o || CTe, { value: s, name: c } = e, l = s, u = c;+ var i = e.formatter || o || STe, { value: s, name: c } = e, l = s, u = c;if (i) {var d = i(s, c, e, n, a);if (Array.isArray(d)) [l, u] = d;else if (d != null) l = d;else return null;}- var f = rG(rG({}, iG.itemStyle), {}, { color: e.color || iG.itemStyle.color }, r);+ var f = nG(nG({}, rG.itemStyle), {}, { color: e.color || rG.itemStyle.color }, r);return /*#__PURE__*/ B.createElement("li", {className: "recharts-tooltip-item",key: `tooltip-item-${n}`,style: f- }, eB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, eB(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));+ }, $z(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-name" }, u) : null, $z(u) ? /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-separator" }, t) : null, /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-value" }, l), /*#__PURE__*/ B.createElement("span", { className: "recharts-tooltip-item-unit" }, e.unit || ""));});return /*#__PURE__*/ B.createElement("ul", {className: "recharts-tooltip-item-list",@@ -56404,30 +56395,30 @@ var TTe = (e) => {}, n);}return null;- }, m = rG(rG({}, iG.contentStyle), n), h = rG({ margin: 0 }, i), g = !oB(u), _ = g ? u : "", v = _h("recharts-default-tooltip", c), y = _h("recharts-tooltip-label", l);+ }, m = nG(nG({}, rG.contentStyle), n), h = nG({ margin: 0 }, i), g = !aB(u), _ = g ? u : "", v = _h("recharts-default-tooltip", c), y = _h("recharts-tooltip-label", l);g && d && a != null && (_ = d(u, a));var b = f ? {role: "status","aria-live": "assertive"} : {};- return /*#__PURE__*/ B.createElement("div", tG({+ return /*#__PURE__*/ B.createElement("div", eG({className: v,style: m}, b), /*#__PURE__*/ B.createElement("p", {className: y,style: h}, /*#__PURE__*/ B.isValidElement(_) ? _ : `${_}`), p());-}, aG = "recharts-tooltip-wrapper", ETe = { visibility: "hidden" };-function DTe(e) {+}, iG = "recharts-tooltip-wrapper", TTe = { visibility: "hidden" };+function ETe(e) {var { coordinate: t, translateX: n, translateY: r } = e;- return _h(aG, {- [`${aG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,- [`${aG}-left`]: Z(n) && t && Z(t.x) && n < t.x,- [`${aG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,- [`${aG}-top`]: Z(r) && t && Z(t.y) && r < t.y+ return _h(iG, {+ [`${iG}-right`]: Z(n) && t && Z(t.x) && n >= t.x,+ [`${iG}-left`]: Z(n) && t && Z(t.x) && n < t.x,+ [`${iG}-bottom`]: Z(r) && t && Z(t.y) && r >= t.y,+ [`${iG}-top`]: Z(r) && t && Z(t.y) && r < t.y});}-function oG(e) {+function aG(e) {var { allowEscapeViewBox: t, coordinate: n, key: r, offset: i, position: a, reverseDirection: o, tooltipDimension: s, viewBox: c, viewBoxDimension: l } = e;if (a && Z(a[r])) return a[r];var u = n[r] - s - (i > 0 ? i : 0), d = n[r] + i;@@ -56435,13 +56426,13 @@ function oG(e) {var f = c[r];return f == null ? 0 : o[r] ? Math.max(u < f ? d : u, f) : l == null ? 0 : d + s > f + l ? Math.max(u, f) : Math.max(d, f);}-function OTe(e) {+function DTe(e) {var { translateX: t, translateY: n, useTranslate3d: r } = e;return { transform: r ? `translate3d(${t}px, ${n}px, 0)` : `translate(${t}px, ${n}px)` };}-function kTe(e) {+function OTe(e) {var { allowEscapeViewBox: t, coordinate: n, offsetTop: r, offsetLeft: i, position: a, reverseDirection: o, tooltipBox: s, useTranslate3d: c, viewBox: l } = e, u, d, f;- return s.height > 0 && s.width > 0 && n ? (d = oG({+ return s.height > 0 && s.width > 0 && n ? (d = aG({allowEscapeViewBox: t,coordinate: n,key: "x",@@ -56451,7 +56442,7 @@ function kTe(e) {tooltipDimension: s.width,viewBox: l,viewBoxDimension: l.width- }), f = oG({+ }), f = aG({allowEscapeViewBox: t,coordinate: n,key: "y",@@ -56461,27 +56452,27 @@ function kTe(e) {tooltipDimension: s.height,viewBox: l,viewBoxDimension: l.height- }), u = OTe({+ }), u = DTe({translateX: d,translateY: f,useTranslate3d: c- })) : u = ETe, {+ })) : u = TTe, {cssProperties: u,- cssClasses: DTe({+ cssClasses: ETe({translateX: d,translateY: f,coordinate: n})};}-var sG = {+var oG = {devToolsEnabled: !0,isSsr: !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout)};//#endregion//#region node_modules/recharts/es6/util/usePrefersReducedMotion.js-function cG() {- var [e, t] = (0, B.useState)(() => sG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);+function sG() {+ var [e, t] = (0, B.useState)(() => oG.isSsr || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);return (0, B.useEffect)(() => {if (window.matchMedia) {var e = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {@@ -56495,7 +56486,7 @@ function cG() {}//#endregion//#region node_modules/recharts/es6/component/TooltipBoundingBox.js-function lG(e, t) {+function cG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56505,30 +56496,30 @@ function lG(e, t) {}return n;}-function uG(e) {+function lG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? lG(Object(n), !0).forEach(function(t) {- ATe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lG(Object(n)).forEach(function(t) {+ t % 2 ? cG(Object(n), !0).forEach(function(t) {+ kTe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function ATe(e, t, n) {- return (t = jTe(t)) in e ? Object.defineProperty(e, t, {+function kTe(e, t, n) {+ return (t = ATe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function jTe(e) {- var t = MTe(e, "string");+function ATe(e) {+ var t = jTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function MTe(e, t) {+function jTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56538,11 +56529,11 @@ function MTe(e, t) {}return (t === "string" ? String : Number)(e);}-function NTe(e) {+function MTe(e) {if (!(e.prefersReducedMotion && e.isAnimationActive === "auto") && e.isAnimationActive && e.active) return `transform ${e.animationDuration}ms ${e.animationEasing}`;}-function PTe(e) {- var t = cG(), [n, r] = B.useState(() => ({+function NTe(e) {+ var t = sG(), [n, r] = B.useState(() => ({dismissed: !1,dismissedAtCoordinate: {x: 0,@@ -56562,8 +56553,8 @@ function PTe(e) {return document.addEventListener("keydown", t), () => {document.removeEventListener("keydown", t);};- }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(uG(uG({}, n), {}, { dismissed: !1 }));- var { cssClasses: i, cssProperties: a } = kTe({+ }, [e.coordinate?.x, e.coordinate?.y]), n.dismissed && ((e.coordinate?.x ?? 0) !== n.dismissedAtCoordinate.x || (e.coordinate?.y ?? 0) !== n.dismissedAtCoordinate.y) && r(lG(lG({}, n), {}, { dismissed: !1 }));+ var { cssClasses: i, cssProperties: a } = OTe({allowEscapeViewBox: e.allowEscapeViewBox,coordinate: e.coordinate,offsetLeft: typeof e.offset == "number" ? e.offset : e.offset.x,@@ -56576,7 +56567,7 @@ function PTe(e) {},useTranslate3d: e.useTranslate3d,viewBox: e.viewBox- }), o = uG(uG({}, e.hasPortalFromProps ? {} : uG(uG({ transition: NTe({+ }), o = lG(lG({}, e.hasPortalFromProps ? {} : lG(lG({ transition: MTe({prefersReducedMotion: t,isAnimationActive: e.isAnimationActive,active: e.active,@@ -56596,19 +56587,19 @@ function PTe(e) {ref: e.innerRef}, e.children);}-var FTe = /*#__PURE__*/ B.memo(PTe), dG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;+var PTe = /*#__PURE__*/ B.memo(NTe), uG = () => Q((e) => e.rootProps.accessibilityLayer) ?? !0;//#endregion//#region node_modules/recharts/es6/shape/Curve.js-function fG() {- return fG = Object.assign ? Object.assign.bind() : function(e) {+function dG() {+ return dG = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, fG.apply(null, arguments);+ }, dG.apply(null, arguments);}-function pG(e, t) {+function fG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56618,30 +56609,30 @@ function pG(e, t) {}return n;}-function mG(e) {+function pG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? pG(Object(n), !0).forEach(function(t) {- ITe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pG(Object(n)).forEach(function(t) {+ t % 2 ? fG(Object(n), !0).forEach(function(t) {+ FTe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function ITe(e, t, n) {- return (t = LTe(t)) in e ? Object.defineProperty(e, t, {+function FTe(e, t, n) {+ return (t = ITe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function LTe(e) {- var t = RTe(e, "string");+function ITe(e) {+ var t = LTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function RTe(e, t) {+function LTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56651,40 +56642,40 @@ function RTe(e, t) {}return (t === "string" ? String : Number)(e);}-var hG = {- curveBasisClosed: Ybe,- curveBasisOpen: Xbe,- curveBasis: Jbe,- curveBumpX: Pbe,- curveBumpY: Fbe,- curveLinearClosed: Zbe,- curveLinear: dz,- curveMonotoneX: Qbe,- curveMonotoneY: $be,- curveNatural: exe,- curveStep: txe,- curveStepAfter: rxe,- curveStepBefore: nxe-}, gG = (e) => oU(e.x) && oU(e.y), _G = (e) => e.base != null && gG(e.base) && gG(e), vG = (e) => e.x, yG = (e) => e.y, zTe = (e, t) => {+var mG = {+ curveBasisClosed: Jbe,+ curveBasisOpen: Ybe,+ curveBasis: qbe,+ curveBumpX: Nbe,+ curveBumpY: Pbe,+ curveLinearClosed: Xbe,+ curveLinear: uz,+ curveMonotoneX: Zbe,+ curveMonotoneY: Qbe,+ curveNatural: $be,+ curveStep: exe,+ curveStepAfter: nxe,+ curveStepBefore: txe+}, hG = (e) => aU(e.x) && aU(e.y), gG = (e) => e.base != null && hG(e.base) && hG(e), _G = (e) => e.x, vG = (e) => e.y, RTe = (e, t) => {if (typeof e == "function") return e;- var n = `curve${sB(e)}`;+ var n = `curve${oB(e)}`;if ((n === "curveMonotone" || n === "curveBump") && t) {- var r = hG[`${n}${t === "vertical" ? "Y" : "X"}`];+ var r = mG[`${n}${t === "vertical" ? "Y" : "X"}`];if (r) return r;}- return hG[n] || dz;-}, bG = {+ return mG[n] || uz;+}, yG = {connectNulls: !1,type: "linear"-}, BTe = (e) => {- var { type: t = bG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = bG.connectNulls } = e, o = zTe(t, i), s = a ? n.filter(gG) : n;+}, zTe = (e) => {+ var { type: t = yG.type, points: n = [], baseLine: r, layout: i, connectNulls: a = yG.connectNulls } = e, o = RTe(t, i), s = a ? n.filter(hG) : n;if (Array.isArray(r)) {- var c, l = n.map((e, t) => mG(mG({}, e), {}, { base: r[t] }));- return c = i === "vertical" ? hz().y(yG).x1(vG).x0((e) => e.base.x) : hz().x(vG).y1(yG).y0((e) => e.base.y), c.defined(_G).curve(o)(a ? l.filter(_G) : l);+ var c, l = n.map((e, t) => pG(pG({}, e), {}, { base: r[t] }));+ return c = i === "vertical" ? mz().y(vG).x1(_G).x0((e) => e.base.x) : mz().x(_G).y1(vG).y0((e) => e.base.y), c.defined(gG).curve(o)(a ? l.filter(gG) : l);}- return (i === "vertical" && Z(r) ? hz().y(yG).x1(vG).x0(r) : Z(r) ? hz().x(vG).y1(yG).y0(r) : mz().x(vG).y(yG)).defined(gG).curve(o)(s);-}, xG = (e) => {- var { className: t, points: n, path: r, pathRef: i } = e, a = QU();+ return (i === "vertical" && Z(r) ? mz().y(vG).x1(_G).x0(r) : Z(r) ? mz().x(_G).y1(vG).y0(r) : pz().x(_G).y(vG)).defined(hG).curve(o)(s);+}, bG = (e) => {+ var { className: t, points: n, path: r, pathRef: i } = e, a = ZU();if ((!n || !n.length) && !r) return null;var o = {type: e.type,@@ -56692,13 +56683,13 @@ var hG = {baseLine: e.baseLine,layout: e.layout || a,connectNulls: e.connectNulls- }, s = n && n.length ? BTe(o) : r;- return /*#__PURE__*/ B.createElement("path", fG({}, UR(e), gB(e), {+ }, s = n && n.length ? zTe(o) : r;+ return /*#__PURE__*/ B.createElement("path", dG({}, HR(e), hB(e), {className: _h("recharts-curve", t),d: s === null ? void 0 : s,ref: i}));-}, VTe = [+}, BTe = ["x","y","top",@@ -56707,16 +56698,16 @@ var hG = {"height","className"];-function SG() {- return SG = Object.assign ? Object.assign.bind() : function(e) {+function xG() {+ return xG = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, SG.apply(null, arguments);+ }, xG.apply(null, arguments);}-function CG(e, t) {+function SG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56726,30 +56717,30 @@ function CG(e, t) {}return n;}-function HTe(e) {+function VTe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? CG(Object(n), !0).forEach(function(t) {- UTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CG(Object(n)).forEach(function(t) {+ t % 2 ? SG(Object(n), !0).forEach(function(t) {+ HTe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function UTe(e, t, n) {- return (t = WTe(t)) in e ? Object.defineProperty(e, t, {+function HTe(e, t, n) {+ return (t = UTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function WTe(e) {- var t = GTe(e, "string");+function UTe(e) {+ var t = WTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function GTe(e, t) {+function WTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56759,16 +56750,16 @@ function GTe(e, t) {}return (t === "string" ? String : Number)(e);}-function KTe(e, t) {+function GTe(e, t) {if (e == null) return {};- var n, r, i = qTe(e, t);+ var n, r, i = KTe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function qTe(e, t) {+function KTe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -56777,8 +56768,8 @@ function qTe(e, t) {}return n;}-var JTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, YTe = (e) => {- var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = KTe(e, VTe), l = HTe({+var qTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, JTe = (e) => {+ var { x: t = 0, y: n = 0, top: r = 0, left: i = 0, width: a = 0, height: o = 0, className: s } = e, c = GTe(e, BTe), l = VTe({x: t,y: n,top: r,@@ -56786,14 +56777,14 @@ var JTe = (e, t, n, r, i, a) => `M${e},${i}v${r}M${a},${t}h${n}`, YTe = (e) => {width: a,height: o}, c);- return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", SG({}, GR(l), {+ return !Z(t) || !Z(n) || !Z(a) || !Z(o) || !Z(r) || !Z(i) ? null : /*#__PURE__*/ B.createElement("path", xG({}, WR(l), {className: _h("recharts-cross", s),- d: JTe(t, n, a, o, r, i)+ d: qTe(t, n, a, o, r, i)}));};//#endregion//#region node_modules/recharts/es6/util/cursor/getCursorRectangle.js-function XTe(e, t, n, r) {+function YTe(e, t, n, r) {var i = r / 2;return {stroke: "none",@@ -56806,7 +56797,7 @@ function XTe(e, t, n, r) {}//#endregion//#region node_modules/recharts/es6/animation/util.js-function wG(e, t) {+function CG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56816,30 +56807,30 @@ function wG(e, t) {}return n;}-function TG(e) {+function wG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? wG(Object(n), !0).forEach(function(t) {- ZTe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wG(Object(n)).forEach(function(t) {+ t % 2 ? CG(Object(n), !0).forEach(function(t) {+ XTe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : CG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function ZTe(e, t, n) {- return (t = QTe(t)) in e ? Object.defineProperty(e, t, {+function XTe(e, t, n) {+ return (t = ZTe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function QTe(e) {- var t = $Te(e, "string");+function ZTe(e) {+ var t = QTe(e, "string");return typeof t == "symbol" ? t : t + "";}-function $Te(e, t) {+function QTe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56849,10 +56840,10 @@ function $Te(e, t) {}return (t === "string" ? String : Number)(e);}-var eEe = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), EG = (e, t, n) => e.map((e) => `${eEe(e)} ${t}ms ${n}`).join(","), tEe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), DG = (e, t) => Object.keys(t).reduce((n, r) => TG(TG({}, n), {}, { [r]: e(r, t[r]) }), {});+var $Te = (e) => e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), TG = (e, t, n) => e.map((e) => `${$Te(e)} ${t}ms ${n}`).join(","), eEe = (e, t) => [Object.keys(e), Object.keys(t)].reduce((e, t) => e.filter((e) => t.includes(e))), EG = (e, t) => Object.keys(t).reduce((n, r) => wG(wG({}, n), {}, { [r]: e(r, t[r]) }), {});//#endregion//#region node_modules/recharts/es6/animation/configUpdate.js-function OG(e, t) {+function DG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -56862,30 +56853,30 @@ function OG(e, t) {}return n;}-function kG(e) {+function OG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? OG(Object(n), !0).forEach(function(t) {- nEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : OG(Object(n)).forEach(function(t) {+ t % 2 ? DG(Object(n), !0).forEach(function(t) {+ tEe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : DG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function nEe(e, t, n) {- return (t = rEe(t)) in e ? Object.defineProperty(e, t, {+function tEe(e, t, n) {+ return (t = nEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function rEe(e) {- var t = iEe(e, "string");+function nEe(e) {+ var t = rEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function iEe(e, t) {+function rEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -56895,51 +56886,51 @@ function iEe(e, t) {}return (t === "string" ? String : Number)(e);}-var AG = (e, t, n) => e + (t - e) * n, jG = (e) => {+var kG = (e, t, n) => e + (t - e) * n, AG = (e) => {var { from: t, to: n } = e;return t !== n;-}, MG = (e, t, n) => {- var r = DG((t, n) => {- if (jG(n)) {+}, jG = (e, t, n) => {+ var r = EG((t, n) => {+ if (AG(n)) {var [r, i] = e(n.from, n.to, n.velocity);- return kG(kG({}, n), {}, {+ return OG(OG({}, n), {}, {from: r,velocity: i});}return n;}, t);- return n < 1 ? DG((e, t) => jG(t) && r[e] != null ? kG(kG({}, t), {}, {- velocity: AG(t.velocity, r[e].velocity, n),- from: AG(t.from, r[e].from, n)- }) : t, t) : MG(e, r, n - 1);+ return n < 1 ? EG((e, t) => AG(t) && r[e] != null ? OG(OG({}, t), {}, {+ velocity: kG(t.velocity, r[e].velocity, n),+ from: kG(t.from, r[e].from, n)+ }) : t, t) : jG(e, r, n - 1);};-function aEe(e, t, n, r, i, a) {- var o, s = r.reduce((n, r) => kG(kG({}, n), {}, { [r]: {+function iEe(e, t, n, r, i, a) {+ var o, s = r.reduce((n, r) => OG(OG({}, n), {}, { [r]: {from: e[r],velocity: 0,to: t[r]- } }), {}), c = () => DG((e, t) => t.from, s), l = () => !Object.values(s).filter(jG).length, u = null, d = (r) => {+ } }), {}), c = () => EG((e, t) => t.from, s), l = () => !Object.values(s).filter(AG).length, u = null, d = (r) => {o ||= r;var f = (r - o) / n.dt;- s = MG(n, s, f), i(kG(kG(kG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));+ s = jG(n, s, f), i(OG(OG(OG({}, e), t), c())), o = r, l() || (u = a.setTimeout(d));};return () => (u = a.setTimeout(d), () => {var e;(e = u) == null || e();});}-function oEe(e, t, n, r, i, a, o) {+function aEe(e, t, n, r, i, a, o) {var s = null, c = i.reduce((n, r) => {var i = e[r], a = t[r];- return i == null || a == null ? n : kG(kG({}, n), {}, { [r]: [i, a] });+ return i == null || a == null ? n : OG(OG({}, n), {}, { [r]: [i, a] });}, {}), l, u = (i) => {l ||= i;- var d = (i - l) / r, f = DG((e, t) => AG(...t, n(d)), c);- if (a(kG(kG(kG({}, e), t), f)), d < 1) s = o.setTimeout(u);+ var d = (i - l) / r, f = EG((e, t) => kG(...t, n(d)), c);+ if (a(OG(OG(OG({}, e), t), f)), d < 1) s = o.setTimeout(u);else {- var p = DG((e, t) => AG(...t, n(1)), c);- a(kG(kG(kG({}, e), t), p));+ var p = EG((e, t) => kG(...t, n(1)), c);+ a(OG(OG(OG({}, e), t), p));}};return () => (s = o.setTimeout(u), () => {@@ -56947,15 +56938,15 @@ function oEe(e, t, n, r, i, a, o) {(e = s) == null || e();});}-var sEe = (e, t, n, r, i, a) => {- var o = tEe(e, t);- return n == null ? () => (i(kG(kG({}, e), t)), () => {}) : n.isStepper === !0 ? aEe(e, t, n, o, i, a) : oEe(e, t, n, r, o, i, a);-}, NG = (e, t) => [+var oEe = (e, t, n, r, i, a) => {+ var o = eEe(e, t);+ return n == null ? () => (i(OG(OG({}, e), t)), () => {}) : n.isStepper === !0 ? iEe(e, t, n, o, i, a) : aEe(e, t, n, r, o, i, a);+}, MG = (e, t) => [0,3 * e,3 * t - 6 * e,3 * e - 3 * t + 1-], PG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), FG = (e, t) => (n) => PG(NG(e, t), n), cEe = (e, t) => (n) => PG([...NG(e, t).map((e, t) => e * t).slice(1), 0], n), lEe = (e) => {+], NG = (e, t) => e.map((e, n) => e * t ** n).reduce((e, t) => e + t), PG = (e, t) => (n) => NG(MG(e, t), n), sEe = (e, t) => (n) => NG([...MG(e, t).map((e, t) => e * t).slice(1), 0], n), cEe = (e) => {var t, n = e.split("(");if (n.length !== 2 || n[0] !== "cubic-bezier") return null;var r = (t = n[1]) == null || (t = t.split(")")[0]) == null ? void 0 : t.split(",");@@ -56967,7 +56958,7 @@ var sEe = (e, t, n, r, i, a) => {i[2],i[3]];-}, uEe = function() {+}, lEe = function() {var e = [...arguments];if (e.length === 1) switch (e[0]) {case "linear": return [@@ -57001,7 +56992,7 @@ var sEe = (e, t, n, r, i, a) => {1];default:- var t = lEe(e[0]);+ var t = cEe(e[0]);if (t) return t;}return e.length === 4 ? e : [@@ -57010,8 +57001,8 @@ var sEe = (e, t, n, r, i, a) => {1,1];-}, dEe = (e, t, n, r) => {- var i = FG(e, n), a = FG(t, r), o = cEe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {+}, uEe = (e, t, n, r) => {+ var i = PG(e, n), a = PG(t, r), o = sEe(e, n), s = (e) => e > 1 ? 1 : e < 0 ? 0 : e, c = (e) => {for (var t = e > 1 ? 1 : e, n = t, r = 0; r < 8; ++r) {var c = i(n) - t, l = o(n);if (Math.abs(c - t) < 1e-4 || l < 1e-4) return a(n);@@ -57020,29 +57011,29 @@ var sEe = (e, t, n, r, i, a) => {return a(n);};return c.isStepper = !1, c;-}, IG = function() {- return dEe(...uEe(...arguments));-}, fEe = function() {+}, FG = function() {+ return uEe(...lEe(...arguments));+}, dEe = function() {var { stiff: e = 100, damping: t = 8, dt: n = 17 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = (r, i, a) => {var o = a + (-(r - i) * e - a * t) * n / 1e3, s = a * n / 1e3 + r;return Math.abs(s - i) < 1e-4 && Math.abs(o) < 1e-4 ? [i, 0] : [s, o];};return r.isStepper = !0, r.dt = n, r;-}, pEe = (e) => {+}, fEe = (e) => {if (typeof e == "string") switch (e) {case "ease":case "ease-in-out":case "ease-out":case "ease-in":- case "linear": return IG(e);- case "spring": return fEe();- default: if (e.split("(")[0] === "cubic-bezier") return IG(e);+ case "linear": return FG(e);+ case "spring": return dEe();+ default: if (e.split("(")[0] === "cubic-bezier") return FG(e);}return typeof e == "function" ? e : null;};//#endregion//#region node_modules/recharts/es6/animation/AnimationManager.js-function mEe(e) {+function pEe(e) {var t, n = () => null, r = !1, i = null, a = (o) => {if (!r) {if (Array.isArray(o)) {@@ -57073,7 +57064,7 @@ function mEe(e) {}//#endregion//#region node_modules/recharts/es6/animation/timeoutController.js-var hEe = class {+var mEe = class {setTimeout(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = performance.now(), r = null, i = (a) => {a - n >= t ? e(a) : typeof requestAnimationFrame == "function" && (r = requestAnimationFrame(i));@@ -57085,14 +57076,14 @@ var hEe = class {};//#endregion//#region node_modules/recharts/es6/animation/createDefaultAnimationManager.js-function gEe() {- return mEe(new hEe());+function hEe() {+ return pEe(new mEe());}//#endregion//#region node_modules/recharts/es6/animation/useAnimationManager.js-var _Ee = /*#__PURE__*/ (0, B.createContext)(gEe);-function vEe(e, t) {- var n = (0, B.useContext)(_Ee);+var gEe = /*#__PURE__*/ (0, B.createContext)(hEe);+function _Ee(e, t) {+ var n = (0, B.useContext)(gEe);return (0, B.useMemo)(() => t ?? n(e), [e,t,@@ -57101,7 +57092,7 @@ function vEe(e, t) {}//#endregion//#region node_modules/recharts/es6/animation/JavascriptAnimate.js-var yEe = {+var vEe = {begin: 0,duration: 1e3,easing: "ease",@@ -57109,14 +57100,14 @@ var yEe = {canBegin: !0,onAnimationEnd: () => {},onAnimationStart: () => {}-}, LG = { t: 0 }, RG = { t: 1 };-function zG(e) {- var t = yB(e, yEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = cG(), d = n === "auto" ? !sG.isSsr && !u : n, f = vEe(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? LG : RG), h = (0, B.useRef)(null);+}, IG = { t: 0 }, LG = { t: 1 };+function RG(e) {+ var t = vB(e, vEe), { isActive: n, canBegin: r, duration: i, easing: a, begin: o, onAnimationEnd: s, onAnimationStart: c, children: l } = t, u = sG(), d = n === "auto" ? !oG.isSsr && !u : n, f = _Ee(t.animationId, t.animationManager), [p, m] = (0, B.useState)(d ? IG : LG), h = (0, B.useRef)(null);return (0, B.useEffect)(() => {- d || m(RG);+ d || m(LG);}, [d]), (0, B.useEffect)(() => {- if (!d || !r) return lB;- var e = sEe(LG, RG, pEe(a), i, m, f.getTimeoutController());+ if (!d || !r) return cB;+ var e = oEe(IG, LG, fEe(a), i, m, f.getTimeoutController());return f.start([c,o,@@ -57141,14 +57132,14 @@ function zG(e) {}//#endregion//#region node_modules/recharts/es6/util/useAnimationId.js-function BG(e) {- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(tB(t)), r = (0, B.useRef)(e);- return r.current !== e && (n.current = tB(t), r.current = e), n.current;+function zG(e) {+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "animation-", n = (0, B.useRef)(eB(t)), r = (0, B.useRef)(e);+ return r.current !== e && (n.current = eB(t), r.current = e), n.current;}//#endregion//#region node_modules/recharts/es6/shape/Rectangle.js-var bEe = ["radius"], xEe = ["radius"], SEe, CEe, wEe, TEe, EEe, DEe, OEe, kEe, AEe, jEe;-function VG(e, t) {+var yEe = ["radius"], bEe = ["radius"], xEe, SEe, CEe, wEe, TEe, EEe, DEe, OEe, kEe, AEe;+function BG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -57158,30 +57149,30 @@ function VG(e, t) {}return n;}-function HG(e) {+function VG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? VG(Object(n), !0).forEach(function(t) {- MEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VG(Object(n)).forEach(function(t) {+ t % 2 ? BG(Object(n), !0).forEach(function(t) {+ jEe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : BG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function MEe(e, t, n) {- return (t = NEe(t)) in e ? Object.defineProperty(e, t, {+function jEe(e, t, n) {+ return (t = MEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function NEe(e) {- var t = PEe(e, "string");+function MEe(e) {+ var t = NEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function PEe(e, t) {+function NEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57191,25 +57182,25 @@ function PEe(e, t) {}return (t === "string" ? String : Number)(e);}-function UG() {- return UG = Object.assign ? Object.assign.bind() : function(e) {+function HG() {+ return HG = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, UG.apply(null, arguments);+ }, HG.apply(null, arguments);}-function WG(e, t) {+function UG(e, t) {if (e == null) return {};- var n, r, i = FEe(e, t);+ var n, r, i = PEe(e, t);if (Object.getOwnPropertySymbols) {var a = Object.getOwnPropertySymbols(e);for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);}return i;}-function FEe(e, t) {+function PEe(e, t) {if (e == null) return {};var n = {};for (var r in e) if ({}.hasOwnProperty.call(e, r)) {@@ -57218,11 +57209,11 @@ function FEe(e, t) {}return n;}-function GG(e, t) {+function WG(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var KG = (e, t, n, r, i) => {- var a = Yz(n), o = Yz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;+var GG = (e, t, n, r, i) => {+ var a = Jz(n), o = Jz(r), s = Math.min(Math.abs(a) / 2, Math.abs(o) / 2), c = o >= 0 ? 1 : -1, l = a >= 0 ? 1 : -1, u = +(o >= 0 && a >= 0 || o < 0 && a < 0), d;if (s > 0 && Array.isArray(i)) {for (var f = [0,@@ -57233,44 +57224,44 @@ var KG = (e, t, n, r, i) => {var h = i[p] ?? 0;f[p] = h > s ? s : h;}- d = Xz(SEe ||= GG([+ d = Yz(xEe ||= WG(["M",",",""- ]), e, t + c * f[0]), f[0] > 0 && (d += Xz(CEe ||= GG([+ ]), e, t + c * f[0]), f[0] > 0 && (d += Yz(SEe ||= WG(["A ",",",",0,0,",",",",",""- ]), f[0], f[0], u, e + l * f[0], t)), d += Xz(wEe ||= GG([+ ]), f[0], f[0], u, e + l * f[0], t)), d += Yz(CEe ||= WG(["L ",",",""- ]), e + n - l * f[1], t), f[1] > 0 && (d += Xz(TEe ||= GG([+ ]), e + n - l * f[1], t), f[1] > 0 && (d += Yz(wEe ||= WG(["A ",",",",0,0,",",\n ",",",""- ]), f[1], f[1], u, e + n, t + c * f[1])), d += Xz(EEe ||= GG([+ ]), f[1], f[1], u, e + n, t + c * f[1])), d += Yz(TEe ||= WG(["L ",",",""- ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Xz(DEe ||= GG([+ ]), e + n, t + r - c * f[2]), f[2] > 0 && (d += Yz(EEe ||= WG(["A ",",",",0,0,",",\n ",",",""- ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Xz(OEe ||= GG([+ ]), f[2], f[2], u, e + n - l * f[2], t + r)), d += Yz(DEe ||= WG(["L ",",",""- ]), e + l * f[3], t + r), f[3] > 0 && (d += Xz(kEe ||= GG([+ ]), e + l * f[3], t + r), f[3] > 0 && (d += Yz(OEe ||= WG(["A ",",",",0,0,",@@ -57280,8 +57271,8 @@ var KG = (e, t, n, r, i) => {]), f[3], f[3], u, e, t + r - c * f[3])), d += "Z";} else if (s > 0 && i === +i && i > 0) {var g = Math.min(s, i);- d = Xz(AEe ||= GG(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);- } else d = Xz(jEe ||= GG([+ d = Yz(kEe ||= WG(/* @__PURE__ */ "M .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,.\n L .,.\n A .,.,0,0,.,.,. Z".split(".")), e, t + c * g, g, g, u, e + l * g, t, e + n - l * g, t, g, g, u, e + n, t + c * g, e + n, t + r - c * g, g, g, u, e + n - l * g, t + r, e + l * g, t + r, g, g, u, e, t + r - c * g);+ } else d = Yz(AEe ||= WG(["M ",","," h ",@@ -57290,7 +57281,7 @@ var KG = (e, t, n, r, i) => {" Z"]), e, t, n, r, -n);return d;-}, qG = {+}, KG = {x: 0,y: 0,width: 0,@@ -57301,15 +57292,15 @@ var KG = (e, t, n, r, i) => {animationBegin: 0,animationDuration: 1500,animationEasing: "ease"-}, JG = (e) => {- var t = yB(e, qG), n = (0, B.useRef)(null), [r, i] = (0, B.useState)(-1);+}, qG = (e) => {+ var t = vB(e, KG), n = (0, B.useRef)(null), [r, i] = (0, B.useState)(-1);(0, B.useEffect)(() => {if (n.current && n.current.getTotalLength) try {var e = n.current.getTotalLength();e && i(e);} catch {}}, []);- var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, B.useRef)(s), _ = (0, B.useRef)(c), v = (0, B.useRef)(a), y = (0, B.useRef)(o), b = BG((0, B.useMemo)(() => ({+ var { x: a, y: o, width: s, height: c, radius: l, className: u } = t, { animationEasing: d, animationDuration: f, animationBegin: p, isAnimationActive: m, isUpdateAnimationActive: h } = t, g = (0, B.useRef)(s), _ = (0, B.useRef)(c), v = (0, B.useRef)(a), y = (0, B.useRef)(o), b = zG((0, B.useMemo)(() => ({x: a,y: o,width: s,@@ -57325,19 +57316,19 @@ var KG = (e, t, n, r, i) => {if (a !== +a || o !== +o || s !== +s || c !== +c || s === 0 || c === 0) return null;var x = _h("recharts-rectangle", u);if (!h) {- var S = GR(t), { radius: C } = S, w = WG(S, bEe);- return /*#__PURE__*/ B.createElement("path", UG({}, w, {- x: Yz(a),- y: Yz(o),- width: Yz(s),- height: Yz(c),+ var S = WR(t), { radius: C } = S, w = UG(S, yEe);+ return /*#__PURE__*/ B.createElement("path", HG({}, w, {+ x: Jz(a),+ y: Jz(o),+ width: Jz(s),+ height: Jz(c),radius: typeof l == "number" ? l : void 0,className: x,- d: KG(a, o, s, c, l)+ d: GG(a, o, s, c, l)}));}- var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = EG(["strokeDasharray"], f, typeof d == "string" ? d : qG.animationEasing);- return /*#__PURE__*/ B.createElement(zG, {+ var T = g.current, E = _.current, D = v.current, O = y.current, k = `0px ${r === -1 ? 1 : r}px`, A = `${r}px ${r}px`, j = TG(["strokeDasharray"], f, typeof d == "string" ? d : KG.animationEasing);+ return /*#__PURE__*/ B.createElement(RG, {animationId: b,key: b,canBegin: r > 0,@@ -57346,24 +57337,24 @@ var KG = (e, t, n, r, i) => {isActive: h,begin: p}, (e) => {- var r = iB(T, s, e), i = iB(E, c, e), u = iB(D, a, e), d = iB(O, o, e);+ var r = rB(T, s, e), i = rB(E, c, e), u = rB(D, a, e), d = rB(O, o, e);n.current && (g.current = r, _.current = i, v.current = u, y.current = d);var f = m ? e > 0 ? {transition: j,strokeDasharray: A- } : { strokeDasharray: k } : { strokeDasharray: A }, p = GR(t), { radius: h } = p, b = WG(p, xEe);- return /*#__PURE__*/ B.createElement("path", UG({}, b, {+ } : { strokeDasharray: k } : { strokeDasharray: A }, p = WR(t), { radius: h } = p, b = UG(p, bEe);+ return /*#__PURE__*/ B.createElement("path", HG({}, b, {radius: typeof l == "number" ? l : void 0,className: x,- d: KG(u, d, r, i, l),+ d: GG(u, d, r, i, l),ref: n,- style: HG(HG({}, f), t.style)+ style: VG(VG({}, f), t.style)}));});};//#endregion//#region node_modules/recharts/es6/util/PolarUtils.js-function YG(e, t) {+function JG(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -57373,30 +57364,30 @@ function YG(e, t) {}return n;}-function XG(e) {+function YG(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? YG(Object(n), !0).forEach(function(t) {- IEe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : YG(Object(n)).forEach(function(t) {+ t % 2 ? JG(Object(n), !0).forEach(function(t) {+ FEe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JG(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function IEe(e, t, n) {- return (t = LEe(t)) in e ? Object.defineProperty(e, t, {+function FEe(e, t, n) {+ return (t = IEe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function LEe(e) {- var t = REe(e, "string");+function IEe(e) {+ var t = LEe(e, "string");return typeof t == "symbol" ? t : t + "";}-function REe(e, t) {+function LEe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -57406,10 +57397,10 @@ function REe(e, t) {}return (t === "string" ? String : Number)(e);}-var ZG = Math.PI / 180, QG = (e) => e * Math.PI / 180, zEe = (e) => e * 180 / Math.PI, $G = (e, t, n, r) => ({- x: e + Math.cos(-ZG * r) * n,- y: t + Math.sin(-ZG * r) * n-}), BEe = function(e, t) {+var XG = Math.PI / 180, ZG = (e) => e * Math.PI / 180, REe = (e) => e * 180 / Math.PI, QG = (e, t, n, r) => ({+ x: e + Math.cos(-XG * r) * n,+ y: t + Math.sin(-XG * r) * n+}), zEe = function(e, t) {var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {top: 0,right: 0,@@ -57420,11 +57411,11 @@ var ZG = Math.PI / 180, QG = (e) => e * Math.PI / 180, zEe = (e) => e * 180 / MabrushBottom: 0};return Math.min(Math.abs(e - (n.left || 0) - (n.right || 0)), Math.abs(t - (n.top || 0) - (n.bottom || 0))) / 2;-}, VEe = (e, t) => {+}, BEe = (e, t) => {var { x: n, y: r } = e, { x: i, y: a } = t;return Math.sqrt((n - i) ** 2 + (r - a) ** 2);-}, HEe = (e, t) => {- var { x: n, y: r } = e, { cx: i, cy: a } = t, o = VEe({+}, VEe = (e, t) => {+ var { x: n, y: r } = e, { cx: i, cy: a } = t, o = BEe({x: n,y: r}, {@@ -57438,25 +57429,25 @@ var ZG = Math.PI / 180, QG = (e) => e * Math.PI / 180, zEe = (e) => e * 180 / Mavar s = (n - i) / o, c = Math.acos(s);return r > a && (c = 2 * Math.PI - c), {radius: o,- angle: zEe(c),+ angle: REe(c),angleInRadian: c};-}, UEe = (e) => {+}, HEe = (e) => {var { startAngle: t, endAngle: n } = e, r = Math.floor(t / 360), i = Math.floor(n / 360), a = Math.min(r, i);return {startAngle: t - a * 360,endAngle: n - a * 360};-}, WEe = (e, t) => {+}, UEe = (e, t) => {var { startAngle: n, endAngle: r } = t, i = Math.floor(n / 360), a = Math.floor(r / 360);return e + Math.min(i, a) * 360;-}, GEe = (e, t) => {- var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = HEe({+}, WEe = (e, t) => {+ var { relativeX: n, relativeY: r } = e, { radius: i, angle: a } = VEe({x: n,y: r}, t), { innerRadius: o, outerRadius: s } = t;if (i < o || i > s || i === 0) return null;- var { startAngle: c, endAngle: l } = UEe(t), u = a, d;+ var { startAngle: c, endAngle: l } = HEe(t), u = a, d;if (c <= l) {for (; u > l;) u -= 360;for (; u < c;) u += 360;@@ -57466,17 +57457,17 @@ var ZG = Math.PI / 180, QG = (e) => e * Math.PI / 180, zEe = (e) => e * 180 / Mafor (; u < l;) u += 360;d = u >= l && u <= c;}- return d ? XG(XG({}, t), {}, {+ return d ? YG(YG({}, t), {}, {radius: i,- angle: WEe(u, t)+ angle: UEe(u, t)}) : null;};//#endregion//#region node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js-function eK(e) {+function $G(e) {var { cx: t, cy: n, radius: r, startAngle: i, endAngle: a } = e;return {- points: [$G(t, n, r, i), $G(t, n, r, a)],+ points: [QG(t, n, r, i), QG(t, n, r, a)],cx: t,cy: n,radius: r,@@ -57486,29 +57477,29 @@ function eK(e) {}//#endregion//#region node_modules/recharts/es6/shape/Sector.js-var KEe, qEe, JEe, YEe, XEe, ZEe, QEe;-function tK() {- return tK = Object.assign ? Object.assign.bind() : function(e) {+var GEe, KEe, qEe, JEe, YEe, XEe, ZEe;+function eK() {+ return eK = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, tK.apply(null, arguments);+ }, eK.apply(null, arguments);}-function nK(e, t) {+function tK(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) => {- var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / ZG, d = c ? i : i + a * u, f = $G(t, n, l, d), p = $G(t, n, r, d), m = c ? i - a * u : i;+var QEe = (e, t) => Xz(t - e) * Math.min(Math.abs(t - e), 359.999), nK = (e) => {+ var { cx: t, cy: n, radius: r, angle: i, sign: a, isExternal: o, cornerRadius: s, cornerIsExternal: c } = e, l = s * (o ? 1 : -1) + r, u = Math.asin(s / l) / XG, d = c ? i : i + a * u, f = QG(t, n, l, d), p = QG(t, n, r, d), m = c ? i - a * u : i;return {center: f,circleTangency: p,- lineTangency: $G(t, n, l * Math.cos(u * ZG), m),+ lineTangency: QG(t, n, l * Math.cos(u * XG), m),theta: u};-}, iK = (e) => {- var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = $Ee(a, o), c = a + s, l = $G(t, n, i, a), u = $G(t, n, i, c), d = Xz(KEe ||= nK([+}, rK = (e) => {+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o } = e, s = QEe(a, o), c = a + s, l = QG(t, n, i, a), u = QG(t, n, i, c), d = Yz(GEe ||= tK(["M ",",","\n A ",@@ -57520,8 +57511,8 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>"\n "]), l.x, l.y, i, i, +(Math.abs(s) > 180), +(a > c), u.x, u.y);if (r > 0) {- var f = $G(t, n, r, a), p = $G(t, n, r, c);- d += Xz(qEe ||= nK([+ var f = QG(t, n, r, a), p = QG(t, n, r, c);+ d += Yz(KEe ||= tK(["L ",",","\n A ",@@ -57532,14 +57523,14 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>","," Z"]), p.x, p.y, r, r, +(Math.abs(s) > 180), +(a <= c), f.x, f.y);- } else d += Xz(JEe ||= nK([+ } else d += Yz(qEe ||= tK(["L ",","," Z"]), t, n);return d;-}, eDe = (e) => {- var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Zz(l - c), { circleTangency: d, lineTangency: f, theta: p } = rK({+}, $Ee = (e) => {+ var { cx: t, cy: n, innerRadius: r, outerRadius: i, cornerRadius: a, forceCornerRadius: o, cornerIsExternal: s, startAngle: c, endAngle: l } = e, u = Xz(l - c), { circleTangency: d, lineTangency: f, theta: p } = nK({cx: t,cy: n,radius: i,@@ -57547,7 +57538,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>sign: u,cornerRadius: a,cornerIsExternal: s- }), { circleTangency: m, lineTangency: h, theta: g } = rK({+ }), { circleTangency: m, lineTangency: h, theta: g } = nK({cx: t,cy: n,radius: i,@@ -57556,7 +57547,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>cornerRadius: a,cornerIsExternal: s}), _ = s ? Math.abs(c - l) : Math.abs(c - l) - p - g;- if (_ < 0) return o ? Xz(YEe ||= nK([+ if (_ < 0) return o ? Yz(JEe ||= tK(["M ",",","\n a",@@ -57566,7 +57557,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>",",",0,0,1,",",0\n "- ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : iK({+ ]), f.x, f.y, a, a, a * 2, a, a, -a * 2) : rK({cx: t,cy: n,innerRadius: r,@@ -57574,7 +57565,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>startAngle: c,endAngle: l});- var v = Xz(XEe ||= nK([+ var v = Yz(YEe ||= tK(["M ",",","\n A",@@ -57596,7 +57587,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>"\n "]), f.x, f.y, a, a, +(u < 0), d.x, d.y, i, i, +(_ > 180), +(u < 0), m.x, m.y, a, a, +(u < 0), h.x, h.y);if (r > 0) {- var { circleTangency: y, lineTangency: b, theta: x } = rK({+ var { circleTangency: y, lineTangency: b, theta: x } = nK({cx: t,cy: n,radius: r,@@ -57605,7 +57596,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>isExternal: !0,cornerRadius: a,cornerIsExternal: s- }), { circleTangency: S, lineTangency: C, theta: w } = rK({+ }), { circleTangency: S, lineTangency: C, theta: w } = nK({cx: t,cy: n,radius: r,@@ -57616,7 +57607,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>cornerIsExternal: s}), T = s ? Math.abs(c - l) : Math.abs(c - l) - x - w;if (T < 0 && a === 0) return `${v}L${t},${n}Z`;- v += Xz(ZEe ||= nK([+ v += Yz(XEe ||= tK(["L",",","\n A",@@ -57637,13 +57628,13 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>",","Z"]), C.x, C.y, a, a, +(u < 0), S.x, S.y, r, r, +(T > 180), +(u > 0), y.x, y.y, a, a, +(u < 0), b.x, b.y);- } else v += Xz(QEe ||= nK([+ } else v += Yz(ZEe ||= tK(["L",",","Z"]), t, n);return v;-}, tDe = {+}, eDe = {cx: 0,cy: 0,innerRadius: 0,@@ -57653,10 +57644,10 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>cornerRadius: 0,forceCornerRadius: !1,cornerIsExternal: !1-}, aK = (e) => {- var t = yB(e, tDe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;+}, iK = (e) => {+ var t = vB(e, eDe), { cx: n, cy: r, innerRadius: i, outerRadius: a, cornerRadius: o, forceCornerRadius: s, cornerIsExternal: c, startAngle: l, endAngle: u, className: d } = t;if (a < i || l === u) return null;- var f = _h("recharts-sector", d), p = a - i, m = nB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? eDe({+ var f = _h("recharts-sector", d), p = a - i, m = tB(o, p, 0, !0), h = m > 0 && Math.abs(l - u) < 360 ? $Ee({cx: n,cy: r,innerRadius: i,@@ -57666,7 +57657,7 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>cornerIsExternal: c,startAngle: l,endAngle: u- }) : iK({+ }) : rK({cx: n,cy: r,innerRadius: i,@@ -57674,14 +57665,14 @@ var $Ee = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 359.999), rK = (e) =>startAngle: l,endAngle: u});- return /*#__PURE__*/ B.createElement("path", tK({}, GR(t), {+ return /*#__PURE__*/ B.createElement("path", eK({}, WR(t), {className: f,d: h}));};//#endregion//#region node_modules/recharts/es6/util/cursor/getCursorPoints.js-function nDe(e, t, n) {+function tDe(e, t, n) {if (e === "horizontal") return [{x: t.x,y: n.top@@ -57696,9 +57687,9 @@ function nDe(e, t, n) {x: n.left + n.width,y: t.y}];- if (hB(t)) {+ if (mB(t)) {if (e === "centric") {- var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = $G(r, i, a, s), l = $G(r, i, o, s);+ var { cx: r, cy: i, innerRadius: a, outerRadius: o, angle: s } = t, c = QG(r, i, a, s), l = QG(r, i, o, s);return [{x: c.x,y: c.y@@ -57707,30 +57698,30 @@ function nDe(e, t, n) {y: l.y}];}- return eK(t);+ return $G(t);}}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toNumber.mjs-function rDe(e) {- return Gz(e) ? NaN : Number(e);+function nDe(e) {+ return Wz(e) ? NaN : Number(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/util/toFinite.mjs-function oK(e) {- return e ? (e = rDe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;+function aK(e) {+ return e ? (e = nDe(e), e === Infinity || e === -Infinity ? (e < 0 ? -1 : 1) * Number.MAX_VALUE : e === e ? e : 0) : e === 0 ? e : 0;}//#endregion//#region node_modules/es-toolkit/dist/compat/math/range.mjs-function sK(e, t, n) {- n && typeof n != "number" && QB(e, t, n) && (t = n = void 0), e = oK(e), t === void 0 ? (t = e, e = 0) : t = oK(t), n = n === void 0 ? e < t ? 1 : -1 : oK(n);+function oK(e, t, n) {+ n && typeof n != "number" && ZB(e, t, n) && (t = n = void 0), e = aK(e), t === void 0 ? (t = e, e = 0) : t = aK(t), n = n === void 0 ? e < t ? 1 : -1 : aK(n);let r = Math.max(Math.ceil((t - e) / (n || 1)), 0), i = Array(r);for (let t = 0; t < r; t++) i[t] = e, e += n;return i;}//#endregion//#region node_modules/recharts/es6/state/selectors/dataSelectors.js-var cK = (e) => e.chartData, lK = $([cK], (e) => {+var sK = (e) => e.chartData, cK = $([sK], (e) => {var t = e.chartData == null ? 0 : e.chartData.length - 1;return {chartData: e.chartData,@@ -57738,35 +57729,35 @@ var cK = (e) => e.chartData, lK = $([cK], (e) => {dataEndIndex: t,dataStartIndex: 0};-}), uK = (e, t, n, r) => r ? lK(e) : cK(e), dK = (e, t, n) => n ? lK(e) : cK(e);+}), lK = (e, t, n, r) => r ? cK(e) : sK(e), uK = (e, t, n) => n ? cK(e) : sK(e);//#endregion//#region node_modules/recharts/es6/util/isDomainSpecifiedByUser.js-function fK(e) {+function dK(e) {if (Array.isArray(e) && e.length === 2) {var [t, n] = e;- if (oU(t) && oU(n)) return !0;+ if (aU(t) && aU(n)) return !0;}return !1;}-function pK(e, t, n) {+function fK(e, t, n) {return n ? e : [Math.min(e[0], t[0]), Math.max(e[1], t[1])];}-function mK(e, t) {+function pK(e, t) {if (t && typeof e != "function" && Array.isArray(e) && e.length === 2) {var [n, r] = e, i, a;- if (oU(n)) i = n;+ if (aU(n)) i = n;else if (typeof n == "function") return;- if (oU(r)) a = r;+ if (aU(r)) a = r;else if (typeof r == "function") return;var o = [i, a];- if (fK(o)) return o;+ if (dK(o)) return o;}}-function iDe(e, t, n) {+function rDe(e, t, n) {if (!(!n && t == null)) {if (typeof e == "function" && t != null) try {var r = e(t, n);- if (fK(r)) return pK(r, t, n);+ if (dK(r)) return fK(r, t, n);} catch {}if (Array.isArray(e) && e.length === 2) {var [i, a] = e, o, s;@@ -57775,8 +57766,8 @@ function iDe(e, t, n) {else if (typeof i == "function") try {t != null && (o = i(t?.[0]));} catch {}- else if (typeof i == "string" && yU.test(i)) {- var c = yU.exec(i);+ else if (typeof i == "string" && vU.test(i)) {+ var c = vU.exec(i);if (c == null || c[1] == null || t == null) o = void 0;else {var l = +c[1];@@ -57788,8 +57779,8 @@ function iDe(e, t, n) {else if (typeof a == "function") try {t != null && (s = a(t?.[1]));} catch {}- else if (typeof a == "string" && bU.test(a)) {- var u = bU.exec(a);+ else if (typeof a == "string" && yU.test(a)) {+ var u = yU.exec(a);if (u == null || u[1] == null || t == null) s = void 0;else {var d = +u[1];@@ -57797,13 +57788,13 @@ function iDe(e, t, n) {}} else s = t?.[1];var f = [o, s];- if (fK(f)) return t == null ? f : pK(f, t, n);+ if (dK(f)) return t == null ? f : fK(f, t, n);}}}//#endregion//#region node_modules/recharts/es6/util/scale/util/arithmetic.js-var hK = /* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {+var mK = /* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {(function(e) {var n = 1e9, r = {precision: 20,@@ -58179,75 +58170,75 @@ var hK = /* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {}) : t !== void 0 && t.exports ? t.exports = r : (e ||= typeof self < "u" && self && self.self == self ? self : Function("return this")(), e.Decimal = r);})(e);})))());-function gK(e) {- return e === 0 ? 1 : Math.floor(new hK.default(e).abs().log(10).toNumber()) + 1;+function hK(e) {+ return e === 0 ? 1 : Math.floor(new mK.default(e).abs().log(10).toNumber()) + 1;}-function _K(e, t, n) {- for (var r = new hK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;+function gK(e, t, n) {+ for (var r = new mK.default(e), i = 0, a = []; r.lt(t) && i < 1e5;) a.push(r.toNumber()), r = r.add(n), i++;return a;}//#endregion//#region node_modules/recharts/es6/util/scale/getNiceTickValues.js-var vK = (e) => {+var _K = (e) => {var [t, n] = e, [r, i] = [t, n];return t > n && ([r, i] = [n, t]), [r, i];+}, vK = (e, t, n) => {+ if (e.lte(0)) return new mK.default(0);+ var r = hK(e.toNumber()), i = new mK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new mK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);+ return t ? new mK.default(s.toNumber()) : new mK.default(Math.ceil(s.toNumber()));}, yK = (e, t, n) => {- if (e.lte(0)) return new hK.default(0);- var r = gK(e.toNumber()), i = new hK.default(10).pow(r), a = e.div(i), o = r === 1 ? .1 : .05, s = new hK.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);- return t ? new hK.default(s.toNumber()) : new hK.default(Math.ceil(s.toNumber()));-}, bK = (e, t, n) => {- if (e.lte(0)) return new hK.default(0);+ if (e.lte(0)) return new mK.default(0);var r = [1,2,2.5,5- ], i = e.toNumber(), a = Math.floor(new hK.default(i).abs().log(10).toNumber()), o = new hK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);+ ], i = e.toNumber(), a = Math.floor(new mK.default(i).abs().log(10).toNumber()), o = new mK.default(10).pow(a), s = e.div(o).toNumber(), c = r.findIndex((e) => e >= s - 1e-10);if (c === -1 && (o = o.mul(10), c = 0), c += n, c >= r.length) {var l = Math.floor(c / r.length);- c %= r.length, o = o.mul(new hK.default(10).pow(l));+ c %= r.length, o = o.mul(new mK.default(10).pow(l));}- var u = r[c] ?? 1, d = new hK.default(u).mul(o);- return t ? d : new hK.default(Math.ceil(d.toNumber()));-}, aDe = (e, t, n) => {- var r = new hK.default(1), i = new hK.default(e);+ var u = r[c] ?? 1, d = new mK.default(u).mul(o);+ return t ? d : new mK.default(Math.ceil(d.toNumber()));+}, iDe = (e, t, n) => {+ var r = new mK.default(1), i = new mK.default(e);if (!i.isint() && n) {var a = Math.abs(e);- a < 1 ? (r = new hK.default(10).pow(gK(e) - 1), i = new hK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new hK.default(Math.floor(e)));- } else e === 0 ? i = new hK.default(Math.floor((t - 1) / 2)) : n || (i = new hK.default(Math.floor(e)));- for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new hK.default(c - o).mul(r)).toNumber());+ a < 1 ? (r = new mK.default(10).pow(hK(e) - 1), i = new mK.default(Math.floor(i.div(r).toNumber())).mul(r)) : a > 1 && (i = new mK.default(Math.floor(e)));+ } else e === 0 ? i = new mK.default(Math.floor((t - 1) / 2)) : n || (i = new mK.default(Math.floor(e)));+ for (var o = Math.floor((t - 1) / 2), s = [], c = 0; c < t; c++) s.push(i.add(new mK.default(c - o).mul(r)).toNumber());return s;-}, xK = function(e, t, n, r) {- var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : yK;+}, bK = function(e, t, n, r) {+ var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : vK;if (!Number.isFinite((t - e) / (n - 1))) return {- step: new hK.default(0),- tickMin: new hK.default(0),- tickMax: new hK.default(0)- };- var o = a(new hK.default(t).sub(e).div(n - 1), r, i), s;- e <= 0 && t >= 0 ? s = new hK.default(0) : (s = new hK.default(e).add(t).div(2), s = s.sub(new hK.default(s).mod(o)));- var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new hK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;- return u > n ? xK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {+ step: new mK.default(0),+ tickMin: new mK.default(0),+ tickMax: new mK.default(0)+ };+ var o = a(new mK.default(t).sub(e).div(n - 1), r, i), s;+ e <= 0 && t >= 0 ? s = new mK.default(0) : (s = new mK.default(e).add(t).div(2), s = s.sub(new mK.default(s).mod(o)));+ var c = Math.ceil(s.sub(e).div(o).toNumber()), l = Math.ceil(new mK.default(t).sub(s).div(o).toNumber()), u = c + l + 1;+ return u > n ? bK(e, t, n, r, i + 1, a) : (u < n && (l = t > 0 ? l + (n - u) : l, c = t > 0 ? c : c + (n - u)), {step: o,- tickMin: s.sub(new hK.default(c).mul(o)),- tickMax: s.add(new hK.default(l).mul(o))+ tickMin: s.sub(new mK.default(c).mul(o)),+ tickMax: s.add(new mK.default(l).mul(o))});-}, SK = function(e) {- var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = vK([t, n]);+}, xK = function(e) {+ var [t, n] = e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", o = Math.max(r, 2), [s, c] = _K([t, n]);if (s === -Infinity || c === Infinity) {var l = c === Infinity ? [s, ...Array(r - 1).fill(Infinity)] : [...Array(r - 1).fill(-Infinity), c];return t > n ? l.reverse() : l;}- if (s === c) return aDe(s, r, i);- var { step: u, tickMin: d, tickMax: f } = xK(s, c, o, i, 0, a === "snap125" ? bK : yK), p = _K(d, f.add(new hK.default(.1).mul(u)), u);+ if (s === c) return iDe(s, r, i);+ var { step: u, tickMin: d, tickMax: f } = bK(s, c, o, i, 0, a === "snap125" ? yK : vK), p = gK(d, f.add(new mK.default(.1).mul(u)), u);return t > n ? p.reverse() : p;-}, CK = function(e, t) {- var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = vK([n, r]);+}, SK = function(e, t) {+ var [n, r] = e, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "auto", [o, s] = _K([n, r]);if (o === -Infinity || s === Infinity) return [n, r];if (o === s) return [o];- var c = a === "snap125" ? bK : yK, l = Math.max(t, 2), u = c(new hK.default(s).sub(o).div(l - 1), i, 0), d = [..._K(new hK.default(o), new hK.default(s), u), s];+ var c = a === "snap125" ? yK : vK, l = Math.max(t, 2), u = c(new mK.default(s).sub(o).div(l - 1), i, 0), d = [...gK(new mK.default(o), new mK.default(s), u), s];return i === !1 && (d = d.map((e) => Math.round(e))), n > r ? d.reverse() : d;-}, wK = (e) => e.rootProps.maxBarSize, TK = (e) => e.rootProps.barGap, EK = (e) => e.rootProps.barCategoryGap, DK = (e) => e.rootProps.barSize, OK = (e) => e.rootProps.stackOffset, kK = (e) => e.rootProps.reverseStackOrder, AK = (e) => e.options.chartName, jK = (e) => e.rootProps.syncId, MK = (e) => e.rootProps.syncMethod, NK = (e) => e.options.eventEmitter, oDe = (e) => e.rootProps.baseValue, PK = {+}, CK = (e) => e.rootProps.maxBarSize, wK = (e) => e.rootProps.barGap, TK = (e) => e.rootProps.barCategoryGap, EK = (e) => e.rootProps.barSize, DK = (e) => e.rootProps.stackOffset, OK = (e) => e.rootProps.reverseStackOrder, kK = (e) => e.options.chartName, AK = (e) => e.rootProps.syncId, jK = (e) => e.rootProps.syncMethod, MK = (e) => e.options.eventEmitter, aDe = (e) => e.rootProps.baseValue, NK = {grid: -100,barBackground: -50,area: 100,@@ -58260,7 +58251,7 @@ var vK = (e) => {cursorLine: 1100,activeDot: 1200,label: 2e3-}, FK = {+}, PK = {allowDecimals: !1,allowDuplicatedCategory: !0,allowDataOverflow: !1,@@ -58281,8 +58272,8 @@ var vK = (e) => {tickLine: !0,tickSize: 8,type: "auto",- zIndex: PK.axis-}, IK = {+ zIndex: NK.axis+}, FK = {allowDataOverflow: !1,allowDecimals: !1,allowDuplicatedCategory: !0,@@ -58301,19 +58292,19 @@ var vK = (e) => {tickCount: 5,tickLine: !0,type: "auto",- zIndex: PK.axis-}, LK = (e, t) => {+ zIndex: NK.axis+}, IK = (e, t) => {if (!(!e || !t)) return e != null && e.reversed ? [t[1], t[0]] : t;};//#endregion//#region node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js-function RK(e, t, n) {+function LK(e, t, n) {if (n !== "auto") return n;- if (e != null) return dU(e, t) ? "category" : "number";+ if (e != null) return uU(e, t) ? "category" : "number";}//#endregion//#region node_modules/recharts/es6/state/selectors/polarAxisSelectors.js-function zK(e, t) {+function RK(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -58323,30 +58314,30 @@ function zK(e, t) {}return n;}-function BK(e) {+function zK(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? zK(Object(n), !0).forEach(function(t) {- sDe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zK(Object(n)).forEach(function(t) {+ t % 2 ? RK(Object(n), !0).forEach(function(t) {+ oDe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RK(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function sDe(e, t, n) {- return (t = cDe(t)) in e ? Object.defineProperty(e, t, {+function oDe(e, t, n) {+ return (t = sDe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function cDe(e) {- var t = lDe(e, "string");+function sDe(e) {+ var t = cDe(e, "string");return typeof t == "symbol" ? t : t + "";}-function lDe(e, t) {+function cDe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -58356,81 +58347,81 @@ function lDe(e, t) {}return (t === "string" ? String : Number)(e);}-var VK = {- allowDataOverflow: FK.allowDataOverflow,- allowDecimals: FK.allowDecimals,+var BK = {+ allowDataOverflow: PK.allowDataOverflow,+ allowDecimals: PK.allowDecimals,allowDuplicatedCategory: !1,dataKey: void 0,domain: void 0,- id: FK.angleAxisId,+ id: PK.angleAxisId,includeHidden: !1,name: void 0,- reversed: FK.reversed,- scale: FK.scale,- tick: FK.tick,+ reversed: PK.reversed,+ scale: PK.scale,+ tick: PK.tick,tickCount: void 0,ticks: void 0,- type: FK.type,+ type: PK.type,unit: void 0,niceTicks: "auto"-}, HK = {- allowDataOverflow: IK.allowDataOverflow,- allowDecimals: IK.allowDecimals,- allowDuplicatedCategory: IK.allowDuplicatedCategory,+}, VK = {+ allowDataOverflow: FK.allowDataOverflow,+ allowDecimals: FK.allowDecimals,+ allowDuplicatedCategory: FK.allowDuplicatedCategory,dataKey: void 0,domain: void 0,- id: IK.radiusAxisId,- includeHidden: IK.includeHidden,+ id: FK.radiusAxisId,+ includeHidden: FK.includeHidden,name: void 0,- reversed: IK.reversed,- scale: IK.scale,- tick: IK.tick,- tickCount: IK.tickCount,+ reversed: FK.reversed,+ scale: FK.scale,+ tick: FK.tick,+ tickCount: FK.tickCount,ticks: void 0,- type: IK.type,+ type: FK.type,unit: void 0,niceTicks: "auto"-}, UK = $([(e, t) => {+}, HK = $([(e, t) => {if (t != null) return e.polarAxis.angleAxis[t];-}, eW], (e, t) => {+}, $U], (e, t) => {if (e != null) return e;- var n = RK(t, "angleAxis", VK.type) ?? "category";- return BK(BK({}, VK), {}, { type: n });-}), WK = $([(e, t) => e.polarAxis.radiusAxis[t], eW], (e, t) => {+ var n = LK(t, "angleAxis", BK.type) ?? "category";+ return zK(zK({}, BK), {}, { type: n });+}), UK = $([(e, t) => e.polarAxis.radiusAxis[t], $U], (e, t) => {if (e != null) return e;- var n = RK(t, "radiusAxis", HK.type) ?? "category";- return BK(BK({}, HK), {}, { type: n });-}), GK = (e) => e.polarOptions, KK = $([+ var n = LK(t, "radiusAxis", VK.type) ?? "category";+ return zK(zK({}, VK), {}, { type: n });+}), WK = (e) => e.polarOptions, GK = $([+ CU,wU,- TU,- jU-], BEe), qK = $([GK, KK], (e, t) => {- if (e != null) return nB(e.innerRadius, t, 0);-}), JK = $([GK, KK], (e, t) => {- if (e != null) return nB(e.outerRadius, t, t * .8);-}), YK = $([GK], (e) => {+ AU+], zEe), KK = $([WK, GK], (e, t) => {+ if (e != null) return tB(e.innerRadius, t, 0);+}), qK = $([WK, GK], (e, t) => {+ if (e != null) return tB(e.outerRadius, t, t * .8);+}), JK = $([WK], (e) => {if (e == null) return [0, 0];var { startAngle: t, endAngle: n } = e;return [t, n];-}), uDe = $([UK, YK], LK), XK = $([+}), lDe = $([HK, JK], IK), YK = $([+ GK,KK,- qK,- JK+ qK], (e, t, n) => {if (e != null && t != null && n != null) return [t, n];-}), dDe = $([WK, XK], LK), ZK = $([- ZU,- GK,+}), uDe = $([UK, YK], IK), XK = $([+ XU,+ WK,+ KK,qK,- JK,- wU,- TU+ CU,+ wU], (e, t, n, r, i, a) => {if (!(e !== "centric" && e !== "radial" || t == null || n == null || r == null)) {var { cx: o, cy: s, startAngle: c, endAngle: l } = t;return {- cx: nB(o, i, i / 2),- cy: nB(s, a, a / 2),+ cx: tB(o, i, i / 2),+ cy: tB(s, a, a / 2),innerRadius: n,outerRadius: r,startAngle: c,@@ -58438,22 +58429,22 @@ var VK = {clockWise: !1};}-}), QK = (e, t) => t, $K = (e, t, n) => n;+}), ZK = (e, t) => t, QK = (e, t, n) => n;//#endregion//#region node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js-function eq(e) {+function $K(e) {return e?.id;}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js-function tq(e, t, n) {+function eq(e, t, n) {var { chartData: r = [] } = t, { allowDuplicatedCategory: i, dataKey: a } = n, o = /* @__PURE__ */ new Map();return e.forEach((e) => {var t = e.data ?? r;if (t != null && t.length !== 0) {- var n = eq(e);+ var n = $K(e);t.forEach((t, r) => {- var s = a == null || i ? r : String(uU(t, a, null)), c = uU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};+ var s = a == null || i ? r : String(lU(t, a, null)), c = lU(t, e.dataKey, 0), l = o.has(s) ? o.get(s) : {};Object.assign(l, { [n]: c }), o.set(s, l);});}@@ -58461,18 +58452,18 @@ function tq(e, t, n) {}//#endregion//#region node_modules/recharts/es6/state/types/StackedGraphicalItem.js-function nq(e) {+function tq(e) {return "stackId" in e && e.stackId != null && e.dataKey != null;}//#endregion//#region node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js-var rq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];+var nq = (e, t) => e === t ? !0 : e == null || t == null ? !1 : e[0] === t[0] && e[1] === t[1];//#endregion//#region node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js-function iq(e, t) {+function rq(e, t) {return Array.isArray(e) && Array.isArray(t) && e.length === 0 && t.length === 0 ? !0 : e === t;}-function fDe(e, t) {+function dDe(e, t) {if (e.length === t.length) {for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;return !0;@@ -58481,13 +58472,13 @@ function fDe(e, t) {}//#endregion//#region node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js-var aq = (e) => {- var t = ZU(e);+var iq = (e) => {+ var t = XU(e);return t === "horizontal" ? "xAxis" : t === "vertical" ? "yAxis" : t === "centric" ? "angleAxis" : "radiusAxis";-}, oq = (e) => e.tooltip.settings.axisId;+}, aq = (e) => e.tooltip.settings.axisId;//#endregion//#region node_modules/recharts/es6/util/scale/RechartsScale.js-function sq(e) {+function oq(e) {if (e != null) {var t = e.ticks, n = e.bandwidth, r = e.range(), i = [Math.min(...r), Math.max(...r)];return {@@ -58528,13 +58519,13 @@ function sq(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js-var cq = (e, t) => {+var sq = (e, t) => {if (t != null) switch (e) {case "linear":- if (!fK(t)) {+ if (!dK(t)) {for (var n, r, i = 0; i < t.length; i++) {var a = t[i];- oU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));+ aU(a) && ((n === void 0 || a < n) && (n = a), (r === void 0 || a > r) && (r = a));}return n !== void 0 && r !== void 0 ? [n, r] : void 0;}@@ -58544,14 +58535,14 @@ var cq = (e, t) => {};//#endregion//#region node_modules/d3-array/src/ascending.js-function lq(e, t) {+function cq(e, t) {return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;}//#endregion//#region node_modules/d3-array/src/bisector.js-function uq(e) {+function lq(e) {let t = e, n = e;- e.length === 1 && (t = (t, n) => e(t) - n, n = pDe(e));+ e.length === 1 && (t = (t, n) => e(t) - n, n = fDe(e));function r(e, t, r, i) {for (r ??= 0, i ??= e.length; r < i;) {let a = r + i >>> 1;@@ -58577,15 +58568,15 @@ function uq(e) {right: i};}-function pDe(e) {- return (t, n) => lq(e(t), n);+function fDe(e) {+ return (t, n) => cq(e(t), n);}//#endregion//#region node_modules/d3-array/src/number.js-function dq(e) {+function uq(e) {return e === null ? NaN : +e;}-function* mDe(e, t) {+function* pDe(e, t) {if (t === void 0) for (let t of e) t != null && (t = +t) >= t && (yield t);else {let n = -1;@@ -58594,52 +58585,52 @@ function* mDe(e, t) {}//#endregion//#region node_modules/d3-array/src/bisect.js-var fq = uq(lq), pq = fq.right;-fq.left, uq(dq).center;+var dq = lq(cq), fq = dq.right;+dq.left, lq(uq).center;//#endregion//#region node_modules/internmap/src/index.js-var mq = class extends Map {- constructor(e, t = _De) {+var pq = class extends Map {+ constructor(e, t = gDe) {if (super(), Object.defineProperties(this, {_intern: { value: /* @__PURE__ */ new Map() },_key: { value: t }}), e != null) for (let [t, n] of e) this.set(t, n);}get(e) {- return super.get(hq(this, e));+ return super.get(mq(this, e));}has(e) {- return super.has(hq(this, e));+ return super.has(mq(this, e));}set(e, t) {- return super.set(hDe(this, e), t);+ return super.set(mDe(this, e), t);}delete(e) {- return super.delete(gDe(this, e));+ return super.delete(hDe(this, e));}};-function hq({ _intern: e, _key: t }, n) {+function mq({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) ? e.get(r) : n;}-function hDe({ _intern: e, _key: t }, n) {+function mDe({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) ? e.get(r) : (e.set(r, n), n);}-function gDe({ _intern: e, _key: t }, n) {+function hDe({ _intern: e, _key: t }, n) {let r = t(n);return e.has(r) && (n = e.get(n), e.delete(r)), n;}-function _De(e) {+function gDe(e) {return typeof e == "object" && e ? e.valueOf() : e;}//#endregion//#region node_modules/d3-array/src/ticks.js-var gq = Math.sqrt(50), _q = Math.sqrt(10), vq = Math.sqrt(2);-function yq(e, t, n) {+var hq = Math.sqrt(50), gq = Math.sqrt(10), _q = Math.sqrt(2);+function vq(e, t, n) {var r, i = -1, a, o, s;if (t = +t, e = +e, n = +n, e === t && n > 0) return [e];- if ((r = t < e) && (a = e, e = t, t = a), (s = bq(e, t, n)) === 0 || !isFinite(s)) return [];+ if ((r = t < e) && (a = e, e = t, t = a), (s = yq(e, t, n)) === 0 || !isFinite(s)) return [];if (s > 0) {let n = Math.round(e / s), r = Math.round(t / s);for (n * s < e && ++n, r * s > t && --r, o = Array(a = r - n + 1); ++i < a;) o[i] = (n + i) * s;@@ -58650,17 +58641,17 @@ function yq(e, t, n) {}return r && o.reverse(), o;}-function bq(e, t, n) {+function yq(e, t, n) {var r = (t - e) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), a = r / 10 ** i;- return i >= 0 ? (a >= gq ? 10 : a >= _q ? 5 : a >= vq ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= gq ? 10 : a >= _q ? 5 : a >= vq ? 2 : 1);+ return i >= 0 ? (a >= hq ? 10 : a >= gq ? 5 : a >= _q ? 2 : 1) * 10 ** i : -(10 ** -i) / (a >= hq ? 10 : a >= gq ? 5 : a >= _q ? 2 : 1);}-function xq(e, t, n) {+function bq(e, t, n) {var r = Math.abs(t - e) / Math.max(0, n), i = 10 ** Math.floor(Math.log(r) / Math.LN10), a = r / i;- return a >= gq ? i *= 10 : a >= _q ? i *= 5 : a >= vq && (i *= 2), t < e ? -i : i;+ return a >= hq ? i *= 10 : a >= gq ? i *= 5 : a >= _q && (i *= 2), t < e ? -i : i;}//#endregion//#region node_modules/d3-array/src/max.js-function Sq(e, t) {+function xq(e, t) {let n;if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);else {@@ -58671,7 +58662,7 @@ function Sq(e, t) {}//#endregion//#region node_modules/d3-array/src/min.js-function Cq(e, t) {+function Sq(e, t) {let n;if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);else {@@ -58682,36 +58673,36 @@ function Cq(e, t) {}//#endregion//#region node_modules/d3-array/src/quickselect.js-function wq(e, t, n = 0, r = e.length - 1, i = lq) {+function Cq(e, t, n = 0, r = e.length - 1, i = cq) {for (; r > n;) {if (r - n > 600) {let a = r - n + 1, o = t - n + 1, s = Math.log(a), c = .5 * Math.exp(2 * s / 3), l = .5 * Math.sqrt(s * c * (a - c) / a) * (o - a / 2 < 0 ? -1 : 1);- wq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);+ Cq(e, t, Math.max(n, Math.floor(t - o * c / a + l)), Math.min(r, Math.floor(t + (a - o) * c / a + l)), i);}let a = e[t], o = n, s = r;- for (Tq(e, n, t), i(e[r], a) > 0 && Tq(e, n, r); o < s;) {- for (Tq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;+ for (wq(e, n, t), i(e[r], a) > 0 && wq(e, n, r); o < s;) {+ for (wq(e, o, s), ++o, --s; i(e[o], a) < 0;) ++o;for (; i(e[s], a) > 0;) --s;}- i(e[n], a) === 0 ? Tq(e, n, s) : (++s, Tq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);+ i(e[n], a) === 0 ? wq(e, n, s) : (++s, wq(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1);}return e;}-function Tq(e, t, n) {+function wq(e, t, n) {let r = e[t];e[t] = e[n], e[n] = r;}//#endregion//#region node_modules/d3-array/src/quantile.js-function vDe(e, t, n) {- if (e = Float64Array.from(mDe(e, n)), r = e.length) {- if ((t = +t) <= 0 || r < 2) return Cq(e);- if (t >= 1) return Sq(e);- var r, i = (r - 1) * t, a = Math.floor(i), o = Sq(wq(e, a).subarray(0, a + 1));- return o + (Cq(e.subarray(a + 1)) - o) * (i - a);+function _De(e, t, n) {+ if (e = Float64Array.from(pDe(e, n)), r = e.length) {+ if ((t = +t) <= 0 || r < 2) return Sq(e);+ if (t >= 1) return xq(e);+ var r, i = (r - 1) * t, a = Math.floor(i), o = xq(Cq(e, a).subarray(0, a + 1));+ return o + (Sq(e.subarray(a + 1)) - o) * (i - a);}}-function yDe(e, t, n = dq) {+function vDe(e, t, n = uq) {if (r = e.length) {if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);if (t >= 1) return +n(e[r - 1], r - 1, e);@@ -58721,14 +58712,14 @@ function yDe(e, t, n = dq) {}//#endregion//#region node_modules/d3-array/src/range.js-function bDe(e, t, n) {+function yDe(e, t, n) {e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;return a;}//#endregion//#region node_modules/d3-array/src/sum.js-function Eq(e, t) {+function Tq(e, t) {let n = 0;if (t === void 0) for (let t of e) (t = +t) && (n += t);else {@@ -58739,7 +58730,7 @@ function Eq(e, t) {}//#endregion//#region node_modules/d3-scale/src/init.js-function Dq(e, t) {+function Eq(e, t) {switch (arguments.length) {case 0: break;case 1:@@ -58749,7 +58740,7 @@ function Dq(e, t) {}return this;}-function Oq(e, t) {+function Dq(e, t) {switch (arguments.length) {case 0: break;case 1:@@ -58761,20 +58752,20 @@ function Oq(e, t) {}//#endregion//#region node_modules/d3-scale/src/ordinal.js-var kq = Symbol("implicit");-function Aq() {- var e = new mq(), t = [], n = [], r = kq;+var Oq = Symbol("implicit");+function kq() {+ var e = new pq(), t = [], n = [], r = Oq;function i(i) {let a = e.get(i);if (a === void 0) {- if (r !== kq) return r;+ if (r !== Oq) return r;e.set(i, a = t.push(i) - 1);}return n[a % n.length];}return i.domain = function(n) {if (!arguments.length) return t.slice();- t = [], e = new mq();+ t = [], e = new pq();for (let r of n) e.has(r) || e.set(r, t.push(r) - 1);return i;}, i.range = function(e) {@@ -58782,18 +58773,18 @@ function Aq() {}, i.unknown = function(e) {return arguments.length ? (r = e, i) : r;}, i.copy = function() {- return Aq(t, n).unknown(r);- }, Dq.apply(i, arguments), i;+ return kq(t, n).unknown(r);+ }, Eq.apply(i, arguments), i;}//#endregion//#region node_modules/d3-scale/src/band.js-function jq() {- var e = Aq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;+function Aq() {+ var e = kq().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, a, o, s = !1, c = 0, l = 0, u = .5;delete e.unknown;function d() {var e = t().length, d = i < r, f = d ? i : r, p = d ? r : i;a = (p - f) / Math.max(1, e - c + l * 2), s && (a = Math.floor(a)), f += (p - f - a * (e - c)) * u, o = a * (1 - c), s && (f = Math.round(f), o = Math.round(o));- var m = bDe(e).map(function(e) {+ var m = yDe(e).map(function(e) {return f + a * e;});return n(d ? m.reverse() : m);@@ -58819,32 +58810,32 @@ function jq() {}, e.align = function(e) {return arguments.length ? (u = Math.max(0, Math.min(1, e)), d()) : u;}, e.copy = function() {- return jq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);- }, Dq.apply(d(), arguments);+ return Aq(t(), [r, i]).round(s).paddingInner(c).paddingOuter(l).align(u);+ }, Eq.apply(d(), arguments);}-function Mq(e) {+function jq(e) {var t = e.copy;return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {- return Mq(t());+ return jq(t());}, e;}-function xDe() {- return Mq(jq.apply(null, arguments).paddingInner(1));+function bDe() {+ return jq(Aq.apply(null, arguments).paddingInner(1));}//#endregion//#region node_modules/d3-color/src/define.js-function Nq(e, t, n) {+function Mq(e, t, n) {e.prototype = t.prototype = n, n.constructor = e;}-function Pq(e, t) {+function Nq(e, t) {var n = Object.create(e.prototype);for (var r in t) n[r] = t[r];return n;}//#endregion//#region node_modules/d3-color/src/color.js-function Fq() {}-var Iq = .7, Lq = 1 / Iq, Rq = "\\s*([+-]?\\d+)\\s*", zq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Bq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", SDe = /^#([0-9a-f]{3,8})$/, CDe = RegExp(`^rgb\\(${Rq},${Rq},${Rq}\\)$`), wDe = RegExp(`^rgb\\(${Bq},${Bq},${Bq}\\)$`), TDe = RegExp(`^rgba\\(${Rq},${Rq},${Rq},${zq}\\)$`), EDe = RegExp(`^rgba\\(${Bq},${Bq},${Bq},${zq}\\)$`), DDe = RegExp(`^hsl\\(${zq},${Bq},${Bq}\\)$`), ODe = RegExp(`^hsla\\(${zq},${Bq},${Bq},${zq}\\)$`), Vq = {+function Pq() {}+var Fq = .7, Iq = 1 / Fq, Lq = "\\s*([+-]?\\d+)\\s*", Rq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", zq = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", xDe = /^#([0-9a-f]{3,8})$/, SDe = RegExp(`^rgb\\(${Lq},${Lq},${Lq}\\)$`), CDe = RegExp(`^rgb\\(${zq},${zq},${zq}\\)$`), wDe = RegExp(`^rgba\\(${Lq},${Lq},${Lq},${Rq}\\)$`), TDe = RegExp(`^rgba\\(${zq},${zq},${zq},${Rq}\\)$`), EDe = RegExp(`^hsl\\(${Rq},${zq},${zq}\\)$`), DDe = RegExp(`^hsla\\(${Rq},${zq},${zq},${Rq}\\)$`), Bq = {aliceblue: 15792383,antiquewhite: 16444375,aqua: 65535,@@ -58994,170 +58985,170 @@ var Iq = .7, Lq = 1 / Iq, Rq = "\\s*([+-]?\\d+)\\s*", zq = "\\s*([+-]?(?:\\d*\\.yellow: 16776960,yellowgreen: 10145074};-Nq(Fq, Wq, {+Mq(Pq, Uq, {copy(e) {return Object.assign(new this.constructor(), this, e);},displayable() {return this.rgb().displayable();},- hex: Hq,- formatHex: Hq,- formatHex8: kDe,- formatHsl: ADe,- formatRgb: Uq,- toString: Uq+ hex: Vq,+ formatHex: Vq,+ formatHex8: ODe,+ formatHsl: kDe,+ formatRgb: Hq,+ toString: Hq});-function Hq() {+function Vq() {return this.rgb().formatHex();}-function kDe() {+function ODe() {return this.rgb().formatHex8();}-function ADe() {- return tJ(this).formatHsl();+function kDe() {+ return eJ(this).formatHsl();}-function Uq() {+function Hq() {return this.rgb().formatRgb();}-function Wq(e) {+function Uq(e) {var t, n;- return e = (e + "").trim().toLowerCase(), (t = SDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Gq(t) : n === 3 ? new Jq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Kq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Kq(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = CDe.exec(e)) ? new Jq(t[1], t[2], t[3], 1) : (t = wDe.exec(e)) ? new Jq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = TDe.exec(e)) ? Kq(t[1], t[2], t[3], t[4]) : (t = EDe.exec(e)) ? Kq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = DDe.exec(e)) ? eJ(t[1], t[2] / 100, t[3] / 100, 1) : (t = ODe.exec(e)) ? eJ(t[1], t[2] / 100, t[3] / 100, t[4]) : Vq.hasOwnProperty(e) ? Gq(Vq[e]) : e === "transparent" ? new Jq(NaN, NaN, NaN, 0) : null;+ return e = (e + "").trim().toLowerCase(), (t = xDe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Wq(t) : n === 3 ? new qq(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Gq(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Gq(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = SDe.exec(e)) ? new qq(t[1], t[2], t[3], 1) : (t = CDe.exec(e)) ? new qq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = wDe.exec(e)) ? Gq(t[1], t[2], t[3], t[4]) : (t = TDe.exec(e)) ? Gq(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = EDe.exec(e)) ? $q(t[1], t[2] / 100, t[3] / 100, 1) : (t = DDe.exec(e)) ? $q(t[1], t[2] / 100, t[3] / 100, t[4]) : Bq.hasOwnProperty(e) ? Wq(Bq[e]) : e === "transparent" ? new qq(NaN, NaN, NaN, 0) : null;}-function Gq(e) {- return new Jq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);+function Wq(e) {+ return new qq(e >> 16 & 255, e >> 8 & 255, e & 255, 1);}-function Kq(e, t, n, r) {- return r <= 0 && (e = t = n = NaN), new Jq(e, t, n, r);+function Gq(e, t, n, r) {+ return r <= 0 && (e = t = n = NaN), new qq(e, t, n, r);}-function jDe(e) {- return e instanceof Fq || (e = Wq(e)), e ? (e = e.rgb(), new Jq(e.r, e.g, e.b, e.opacity)) : new Jq();+function ADe(e) {+ return e instanceof Pq || (e = Uq(e)), e ? (e = e.rgb(), new qq(e.r, e.g, e.b, e.opacity)) : new qq();}-function qq(e, t, n, r) {- return arguments.length === 1 ? jDe(e) : new Jq(e, t, n, r ?? 1);+function Kq(e, t, n, r) {+ return arguments.length === 1 ? ADe(e) : new qq(e, t, n, r ?? 1);}-function Jq(e, t, n, r) {+function qq(e, t, n, r) {this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;}-Nq(Jq, qq, Pq(Fq, {+Mq(qq, Kq, Nq(Pq, {brighter(e) {- return e = e == null ? Lq : Lq ** +e, new Jq(this.r * e, this.g * e, this.b * e, this.opacity);+ return e = e == null ? Iq : Iq ** +e, new qq(this.r * e, this.g * e, this.b * e, this.opacity);},darker(e) {- return e = e == null ? Iq : Iq ** +e, new Jq(this.r * e, this.g * e, this.b * e, this.opacity);+ return e = e == null ? Fq : Fq ** +e, new qq(this.r * e, this.g * e, this.b * e, this.opacity);},rgb() {return this;},clamp() {- return new Jq(Qq(this.r), Qq(this.g), Qq(this.b), Zq(this.opacity));+ return new qq(Zq(this.r), Zq(this.g), Zq(this.b), Xq(this.opacity));},displayable() {return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;},- hex: Yq,- formatHex: Yq,- formatHex8: MDe,- formatRgb: Xq,- toString: Xq+ hex: Jq,+ formatHex: Jq,+ formatHex8: jDe,+ formatRgb: Yq,+ toString: Yq}));-function Yq() {- return `#${$q(this.r)}${$q(this.g)}${$q(this.b)}`;+function Jq() {+ return `#${Qq(this.r)}${Qq(this.g)}${Qq(this.b)}`;}-function MDe() {- return `#${$q(this.r)}${$q(this.g)}${$q(this.b)}${$q((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;+function jDe() {+ return `#${Qq(this.r)}${Qq(this.g)}${Qq(this.b)}${Qq((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;}-function Xq() {- let e = Zq(this.opacity);- return `${e === 1 ? "rgb(" : "rgba("}${Qq(this.r)}, ${Qq(this.g)}, ${Qq(this.b)}${e === 1 ? ")" : `, ${e})`}`;+function Yq() {+ let e = Xq(this.opacity);+ return `${e === 1 ? "rgb(" : "rgba("}${Zq(this.r)}, ${Zq(this.g)}, ${Zq(this.b)}${e === 1 ? ")" : `, ${e})`}`;}-function Zq(e) {+function Xq(e) {return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));}-function Qq(e) {+function Zq(e) {return Math.max(0, Math.min(255, Math.round(e) || 0));}-function $q(e) {- return e = Qq(e), (e < 16 ? "0" : "") + e.toString(16);+function Qq(e) {+ return e = Zq(e), (e < 16 ? "0" : "") + e.toString(16);}-function eJ(e, t, n, r) {- return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new nJ(e, t, n, r);+function $q(e, t, n, r) {+ return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new tJ(e, t, n, r);}-function tJ(e) {- if (e instanceof nJ) return new nJ(e.h, e.s, e.l, e.opacity);- if (e instanceof Fq || (e = Wq(e)), !e) return new nJ();- if (e instanceof nJ) return e;+function eJ(e) {+ if (e instanceof tJ) return new tJ(e.h, e.s, e.l, e.opacity);+ if (e instanceof Pq || (e = Uq(e)), !e) return new tJ();+ if (e instanceof tJ) return e;e = e.rgb();var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;- return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new nJ(o, s, c, e.opacity);+ return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new tJ(o, s, c, e.opacity);}-function NDe(e, t, n, r) {- return arguments.length === 1 ? tJ(e) : new nJ(e, t, n, r ?? 1);+function MDe(e, t, n, r) {+ return arguments.length === 1 ? eJ(e) : new tJ(e, t, n, r ?? 1);}-function nJ(e, t, n, r) {+function tJ(e, t, n, r) {this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;}-Nq(nJ, NDe, Pq(Fq, {+Mq(tJ, MDe, Nq(Pq, {brighter(e) {- return e = e == null ? Lq : Lq ** +e, new nJ(this.h, this.s, this.l * e, this.opacity);+ return e = e == null ? Iq : Iq ** +e, new tJ(this.h, this.s, this.l * e, this.opacity);},darker(e) {- return e = e == null ? Iq : Iq ** +e, new nJ(this.h, this.s, this.l * e, this.opacity);+ return e = e == null ? Fq : Fq ** +e, new tJ(this.h, this.s, this.l * e, this.opacity);},rgb() {var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;- return new Jq(aJ(e >= 240 ? e - 240 : e + 120, i, r), aJ(e, i, r), aJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);+ return new qq(iJ(e >= 240 ? e - 240 : e + 120, i, r), iJ(e, i, r), iJ(e < 120 ? e + 240 : e - 120, i, r), this.opacity);},clamp() {- return new nJ(rJ(this.h), iJ(this.s), iJ(this.l), Zq(this.opacity));+ return new tJ(nJ(this.h), rJ(this.s), rJ(this.l), Xq(this.opacity));},displayable() {return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;},formatHsl() {- let e = Zq(this.opacity);- return `${e === 1 ? "hsl(" : "hsla("}${rJ(this.h)}, ${iJ(this.s) * 100}%, ${iJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;+ let e = Xq(this.opacity);+ return `${e === 1 ? "hsl(" : "hsla("}${nJ(this.h)}, ${rJ(this.s) * 100}%, ${rJ(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;}}));-function rJ(e) {+function nJ(e) {return e = (e || 0) % 360, e < 0 ? e + 360 : e;}-function iJ(e) {+function rJ(e) {return Math.max(0, Math.min(1, e || 0));}-function aJ(e, t, n) {+function iJ(e, t, n) {return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;}//#endregion//#region node_modules/d3-interpolate/src/constant.js-var oJ = (e) => () => e;+var aJ = (e) => () => e;//#endregion//#region node_modules/d3-interpolate/src/color.js-function PDe(e, t) {+function NDe(e, t) {return function(n) {return e + n * t;};}-function FDe(e, t, n) {+function PDe(e, t, n) {return e **= +n, t = t ** +n - e, n = 1 / n, function(r) {return (e + r * t) ** +n;};}-function IDe(e) {- return (e = +e) == 1 ? sJ : function(t, n) {- return n - t ? FDe(t, n, e) : oJ(isNaN(t) ? n : t);+function FDe(e) {+ return (e = +e) == 1 ? oJ : function(t, n) {+ return n - t ? PDe(t, n, e) : aJ(isNaN(t) ? n : t);};}-function sJ(e, t) {+function oJ(e, t) {var n = t - e;- return n ? PDe(e, n) : oJ(isNaN(e) ? t : e);+ return n ? NDe(e, n) : aJ(isNaN(e) ? t : e);}//#endregion//#region node_modules/d3-interpolate/src/rgb.js-var cJ = (function e(t) {- var n = IDe(t);+var sJ = (function e(t) {+ var n = FDe(t);function r(e, t) {- var r = n((e = qq(e)).r, (t = qq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = sJ(e.opacity, t.opacity);+ var r = n((e = Kq(e)).r, (t = Kq(t)).r), i = n(e.g, t.g), a = n(e.b, t.b), o = oJ(e.opacity, t.opacity);return function(t) {return e.r = r(t), e.g = i(t), e.b = a(t), e.opacity = o(t), e + "";};@@ -59166,7 +59157,7 @@ var cJ = (function e(t) {})(1);//#endregion//#region node_modules/d3-interpolate/src/numberArray.js-function LDe(e, t) {+function IDe(e, t) {t ||= [];var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i;return function(a) {@@ -59174,14 +59165,14 @@ function LDe(e, t) {return r;};}-function RDe(e) {+function LDe(e) {return ArrayBuffer.isView(e) && !(e instanceof DataView);}//#endregion//#region node_modules/d3-interpolate/src/array.js-function zDe(e, t) {+function RDe(e, t) {var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = Array(r), a = Array(n), o;- for (o = 0; o < r; ++o) i[o] = fJ(e[o], t[o]);+ for (o = 0; o < r; ++o) i[o] = dJ(e[o], t[o]);for (; o < n; ++o) a[o] = t[o];return function(e) {for (o = 0; o < r; ++o) a[o] = i[o](e);@@ -59190,7 +59181,7 @@ function zDe(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/date.js-function BDe(e, t) {+function zDe(e, t) {var n = /* @__PURE__ */ new Date();return e = +e, t = +t, function(r) {return n.setTime(e * (1 - r) + t * r), n;@@ -59198,16 +59189,16 @@ function BDe(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/number.js-function lJ(e, t) {+function cJ(e, t) {return e = +e, t = +t, function(n) {return e * (1 - n) + t * n;};}//#endregion//#region node_modules/d3-interpolate/src/object.js-function VDe(e, t) {+function BDe(e, t) {var n = {}, r = {}, i;- for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = fJ(e[i], t[i]) : r[i] = t[i];+ for (i in (typeof e != "object" || !e) && (e = {}), (typeof t != "object" || !t) && (t = {}), t) i in e ? n[i] = dJ(e[i], t[i]) : r[i] = t[i];return function(e) {for (i in n) r[i] = n[i](e);return r;@@ -59215,45 +59206,45 @@ function VDe(e, t) {}//#endregion//#region node_modules/d3-interpolate/src/string.js-var uJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, dJ = new RegExp(uJ.source, "g");-function HDe(e) {+var lJ = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, uJ = new RegExp(lJ.source, "g");+function VDe(e) {return function() {return e;};}-function UDe(e) {+function HDe(e) {return function(t) {return e(t) + "";};}-function WDe(e, t) {- var n = uJ.lastIndex = dJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];- for (e += "", t += ""; (r = uJ.exec(e)) && (i = dJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({+function UDe(e, t) {+ var n = lJ.lastIndex = uJ.lastIndex = 0, r, i, a, o = -1, s = [], c = [];+ for (e += "", t += ""; (r = lJ.exec(e)) && (i = uJ.exec(t));) (a = i.index) > n && (a = t.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, c.push({i: o,- x: lJ(r, i)- })), n = dJ.lastIndex;- return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? UDe(c[0].x) : HDe(t) : (t = c.length, function(e) {+ x: cJ(r, i)+ })), n = uJ.lastIndex;+ return n < t.length && (a = t.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? c[0] ? HDe(c[0].x) : VDe(t) : (t = c.length, function(e) {for (var n = 0, r; n < t; ++n) s[(r = c[n]).i] = r.x(e);return s.join("");});}//#endregion//#region node_modules/d3-interpolate/src/value.js-function fJ(e, t) {+function dJ(e, t) {var n = typeof t, r;- return t == null || n === "boolean" ? oJ(t) : (n === "number" ? lJ : n === "string" ? (r = Wq(t)) ? (t = r, cJ) : WDe : t instanceof Wq ? cJ : t instanceof Date ? BDe : RDe(t) ? LDe : Array.isArray(t) ? zDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? VDe : lJ)(e, t);+ return t == null || n === "boolean" ? aJ(t) : (n === "number" ? cJ : n === "string" ? (r = Uq(t)) ? (t = r, sJ) : UDe : t instanceof Uq ? sJ : t instanceof Date ? zDe : LDe(t) ? IDe : Array.isArray(t) ? RDe : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? BDe : cJ)(e, t);}//#endregion//#region node_modules/d3-interpolate/src/round.js-function pJ(e, t) {+function fJ(e, t) {return e = +e, t = +t, function(n) {return Math.round(e * (1 - n) + t * n);};}//#endregion//#region node_modules/d3-interpolate/src/piecewise.js-function GDe(e, t) {- t === void 0 && (t = e, e = fJ);+function WDe(e, t) {+ t === void 0 && (t = e, e = dJ);for (var n = 0, r = t.length - 1, i = t[0], a = Array(r < 0 ? 0 : r); n < r;) a[n] = e(i, i = t[++n]);return function(e) {var t = Math.max(0, Math.min(r - 1, Math.floor(e *= r)));@@ -59262,69 +59253,69 @@ function GDe(e, t) {}//#endregion//#region node_modules/d3-scale/src/constant.js-function KDe(e) {+function GDe(e) {return function() {return e;};}//#endregion//#region node_modules/d3-scale/src/number.js-function mJ(e) {+function pJ(e) {return +e;}//#endregion//#region node_modules/d3-scale/src/continuous.js-var hJ = [0, 1];-function gJ(e) {+var mJ = [0, 1];+function hJ(e) {return e;}-function _J(e, t) {+function gJ(e, t) {return (t -= e = +e) ? function(n) {return (n - e) / t;- } : KDe(isNaN(t) ? NaN : .5);+ } : GDe(isNaN(t) ? NaN : .5);}-function qDe(e, t) {+function KDe(e, t) {var n;return e > t && (n = e, e = t, t = n), function(n) {return Math.max(e, Math.min(t, n));};}-function JDe(e, t, n) {+function qDe(e, t, n) {var r = e[0], i = e[1], a = t[0], o = t[1];- return i < r ? (r = _J(i, r), a = n(o, a)) : (r = _J(r, i), a = n(a, o)), function(e) {+ return i < r ? (r = gJ(i, r), a = n(o, a)) : (r = gJ(r, i), a = n(a, o)), function(e) {return a(r(e));};}-function YDe(e, t, n) {+function JDe(e, t, n) {var r = Math.min(e.length, t.length) - 1, i = Array(r), a = Array(r), o = -1;- for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = _J(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);+ for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++o < r;) i[o] = gJ(e[o], e[o + 1]), a[o] = n(t[o], t[o + 1]);return function(t) {- var n = pq(e, t, 1, r) - 1;+ var n = fq(e, t, 1, r) - 1;return a[n](i[n](t));};}-function vJ(e, t) {+function _J(e, t) {return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());}-function yJ() {- var e = hJ, t = hJ, n = fJ, r, i, a, o = gJ, s, c, l;+function vJ() {+ var e = mJ, t = mJ, n = dJ, r, i, a, o = hJ, s, c, l;function u() {var n = Math.min(e.length, t.length);- return o !== gJ && (o = qDe(e[0], e[n - 1])), s = n > 2 ? YDe : JDe, c = l = null, d;+ return o !== hJ && (o = KDe(e[0], e[n - 1])), s = n > 2 ? JDe : qDe, c = l = null, d;}function d(i) {return i == null || isNaN(i = +i) ? a : (c ||= s(e.map(r), t, n))(r(o(i)));}return d.invert = function(n) {- return o(i((l ||= s(t, e.map(r), lJ))(n)));+ return o(i((l ||= s(t, e.map(r), cJ))(n)));}, d.domain = function(t) {- return arguments.length ? (e = Array.from(t, mJ), u()) : e.slice();+ return arguments.length ? (e = Array.from(t, pJ), u()) : e.slice();}, d.range = function(e) {return arguments.length ? (t = Array.from(e), u()) : t.slice();}, d.rangeRound = function(e) {- return t = Array.from(e), n = pJ, u();+ return t = Array.from(e), n = fJ, u();}, d.clamp = function(e) {- return arguments.length ? (o = e ? !0 : gJ, u()) : o !== gJ;+ return arguments.length ? (o = e ? !0 : hJ, u()) : o !== hJ;}, d.interpolate = function(e) {return arguments.length ? (n = e, u()) : n;}, d.unknown = function(e) {@@ -59333,27 +59324,27 @@ function yJ() {return r = e, i = t, u();};}-function bJ() {- return yJ()(gJ, gJ);+function yJ() {+ return vJ()(hJ, hJ);}//#endregion//#region node_modules/d3-format/src/formatDecimal.js-function XDe(e) {+function YDe(e) {return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);}-function xJ(e, t) {+function bJ(e, t) {if (!isFinite(e) || e === 0) return null;var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];}//#endregion//#region node_modules/d3-format/src/exponent.js-function SJ(e) {- return e = xJ(Math.abs(e)), e ? e[1] : NaN;+function xJ(e) {+ return e = bJ(Math.abs(e)), e ? e[1] : NaN;}//#endregion//#region node_modules/d3-format/src/formatGroup.js-function ZDe(e, t) {+function XDe(e, t) {return function(n, r) {for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];return a.reverse().join(t);@@ -59361,7 +59352,7 @@ function ZDe(e, t) {}//#endregion//#region node_modules/d3-format/src/formatNumerals.js-function QDe(e) {+function ZDe(e) {return function(t) {return t.replace(/[0-9]/g, function(t) {return e[+t];@@ -59370,11 +59361,11 @@ function QDe(e) {}//#endregion//#region node_modules/d3-format/src/formatSpecifier.js-var $De = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;-function CJ(e) {- if (!(t = $De.exec(e))) throw Error("invalid format: " + e);+var QDe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;+function SJ(e) {+ if (!(t = QDe.exec(e))) throw Error("invalid format: " + e);var t;- return new wJ({+ return new CJ({fill: t[1],align: t[2],sign: t[3],@@ -59387,16 +59378,16 @@ function CJ(e) {type: t[10]});}-CJ.prototype = wJ.prototype;-function wJ(e) {+SJ.prototype = CJ.prototype;+function CJ(e) {this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";}-wJ.prototype.toString = function() {+CJ.prototype.toString = function() {return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;};//#endregion//#region node_modules/d3-format/src/formatTrim.js-function eOe(e) {+function $De(e) {out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {case ".":r = i = n;@@ -59412,46 +59403,46 @@ function eOe(e) {}//#endregion//#region node_modules/d3-format/src/formatPrefixAuto.js-var TJ;-function tOe(e, t) {- var n = xJ(e, t);- if (!n) return TJ = void 0, e.toPrecision(t);- var r = n[0], i = n[1], a = i - (TJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;- return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + xJ(e, Math.max(0, t + a - 1))[0];+var wJ;+function eOe(e, t) {+ var n = bJ(e, t);+ if (!n) return wJ = void 0, e.toPrecision(t);+ var r = n[0], i = n[1], a = i - (wJ = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;+ return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + bJ(e, Math.max(0, t + a - 1))[0];}//#endregion//#region node_modules/d3-format/src/formatRounded.js-function EJ(e, t) {- var n = xJ(e, t);+function TJ(e, t) {+ var n = bJ(e, t);if (!n) return e + "";var r = n[0], i = n[1];return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");}//#endregion//#region node_modules/d3-format/src/formatTypes.js-var DJ = {+var EJ = {"%": (e, t) => (e * 100).toFixed(t),b: (e) => Math.round(e).toString(2),c: (e) => e + "",- d: XDe,+ d: YDe,e: (e, t) => e.toExponential(t),f: (e, t) => e.toFixed(t),g: (e, t) => e.toPrecision(t),o: (e) => Math.round(e).toString(8),- p: (e, t) => EJ(e * 100, t),- r: EJ,- s: tOe,+ p: (e, t) => TJ(e * 100, t),+ r: TJ,+ s: eOe,X: (e) => Math.round(e).toString(16).toUpperCase(),x: (e) => Math.round(e).toString(16)};//#endregion//#region node_modules/d3-format/src/identity.js-function OJ(e) {+function DJ(e) {return e;}//#endregion//#region node_modules/d3-format/src/locale.js-var kJ = Array.prototype.map, AJ = [+var OJ = Array.prototype.map, kJ = ["y","z","a",@@ -59470,13 +59461,13 @@ var kJ = Array.prototype.map, AJ = ["Z","Y"];-function nOe(e) {- var t = e.grouping === void 0 || e.thousands === void 0 ? OJ : ZDe(kJ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? OJ : QDe(kJ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";+function tOe(e) {+ var t = e.grouping === void 0 || e.thousands === void 0 ? DJ : XDe(OJ.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? DJ : ZDe(OJ.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";function l(e, l) {- e = CJ(e);+ e = SJ(e);var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, v = e.trim, y = e.type;- y === "n" ? (g = !0, y = "g") : DJ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");- var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = DJ[y], C = /[defgprs%]/.test(y);+ y === "n" ? (g = !0, y = "g") : EJ[y] || (_ === void 0 && (_ = 12), v = !0, y = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");+ var b = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : ""), x = (p === "$" ? r : /[%p]/.test(y) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), S = EJ[y], C = /[defgprs%]/.test(y);_ = _ === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));function w(e) {var n = b, r = x, o, l, p;@@ -59484,7 +59475,7 @@ function nOe(e) {else {e = +e;var w = e < 0 || 1 / e < 0;- if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = eOe(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && TJ !== void 0 ? AJ[8 + TJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {+ if (e = isNaN(e) ? c : S(Math.abs(e), _), v && (e = $De(e)), w && +e == 0 && f !== "+" && (w = !1), n = (w ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (y === "s" && !isNaN(e) && wJ !== void 0 ? kJ[8 + wJ / 3] : "") + r + (w && f === "(" ? ")" : ""), C) {for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);break;@@ -59512,7 +59503,7 @@ function nOe(e) {}, w;}function u(e, t) {- var n = Math.max(-8, Math.min(8, Math.floor(SJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = CJ(e), e.type = "f", e), { suffix: AJ[8 + n / 3] });+ var n = Math.max(-8, Math.min(8, Math.floor(xJ(t) / 3))) * 3, r = 10 ** -n, i = l((e = SJ(e), e.type = "f", e), { suffix: kJ[8 + n / 3] });return function(e) {return i(r * e);};@@ -59524,65 +59515,65 @@ function nOe(e) {}//#endregion//#region node_modules/d3-format/src/defaultLocale.js-var jJ, MJ, NJ;-rOe({+var AJ, jJ, MJ;+nOe({thousands: ",",grouping: [3],currency: ["$", ""]});-function rOe(e) {- return jJ = nOe(e), MJ = jJ.format, NJ = jJ.formatPrefix, jJ;+function nOe(e) {+ return AJ = tOe(e), jJ = AJ.format, MJ = AJ.formatPrefix, AJ;}//#endregion//#region node_modules/d3-format/src/precisionFixed.js-function iOe(e) {- return Math.max(0, -SJ(Math.abs(e)));+function rOe(e) {+ return Math.max(0, -xJ(Math.abs(e)));}//#endregion//#region node_modules/d3-format/src/precisionPrefix.js-function aOe(e, t) {- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(SJ(t) / 3))) * 3 - SJ(Math.abs(e)));+function iOe(e, t) {+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(xJ(t) / 3))) * 3 - xJ(Math.abs(e)));}//#endregion//#region node_modules/d3-format/src/precisionRound.js-function oOe(e, t) {- return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, SJ(t) - SJ(e)) + 1;+function aOe(e, t) {+ return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, xJ(t) - xJ(e)) + 1;}//#endregion//#region node_modules/d3-scale/src/tickFormat.js-function PJ(e, t, n, r) {- var i = xq(e, t, n), a;- switch (r = CJ(r ?? ",f"), r.type) {+function NJ(e, t, n, r) {+ var i = bq(e, t, n), a;+ switch (r = SJ(r ?? ",f"), r.type) {case "s":var o = Math.max(Math.abs(e), Math.abs(t));- return r.precision == null && !isNaN(a = aOe(i, o)) && (r.precision = a), NJ(r, o);+ return r.precision == null && !isNaN(a = iOe(i, o)) && (r.precision = a), MJ(r, o);case "":case "e":case "g":case "p":case "r":- r.precision == null && !isNaN(a = oOe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));+ r.precision == null && !isNaN(a = aOe(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));break;case "f":- case "%": r.precision == null && !isNaN(a = iOe(i)) && (r.precision = a - (r.type === "%") * 2);+ case "%": r.precision == null && !isNaN(a = rOe(i)) && (r.precision = a - (r.type === "%") * 2);}- return MJ(r);+ return jJ(r);}//#endregion//#region node_modules/d3-scale/src/linear.js-function FJ(e) {+function PJ(e) {var t = e.domain;return e.ticks = function(e) {var n = t();- return yq(n[0], n[n.length - 1], e ?? 10);+ return vq(n[0], n[n.length - 1], e ?? 10);}, e.tickFormat = function(e, n) {var r = t();- return PJ(r[0], r[r.length - 1], e ?? 10, n);+ return NJ(r[0], r[r.length - 1], e ?? 10, n);}, e.nice = function(n) {n ??= 10;var r = t(), i = 0, a = r.length - 1, o = r[i], s = r[a], c, l, u = 10;for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); u-- > 0;) {- if (l = bq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);+ if (l = yq(o, s, n), l === c) return r[i] = o, r[a] = s, t(r);if (l > 0) o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;else if (l < 0) o = Math.ceil(o * l) / l, s = Math.floor(s * l) / l;else break;@@ -59591,64 +59582,64 @@ function FJ(e) {return e;}, e;}-function IJ() {- var e = bJ();+function FJ() {+ var e = yJ();return e.copy = function() {- return vJ(e, IJ());- }, Dq.apply(e, arguments), FJ(e);+ return _J(e, FJ());+ }, Eq.apply(e, arguments), PJ(e);}//#endregion//#region node_modules/d3-scale/src/identity.js-function LJ(e) {+function IJ(e) {var t;function n(e) {return e == null || isNaN(e = +e) ? t : e;}return n.invert = n, n.domain = n.range = function(t) {- return arguments.length ? (e = Array.from(t, mJ), n) : e.slice();+ return arguments.length ? (e = Array.from(t, pJ), n) : e.slice();}, n.unknown = function(e) {return arguments.length ? (t = e, n) : t;}, n.copy = function() {- return LJ(e).unknown(t);- }, e = arguments.length ? Array.from(e, mJ) : [0, 1], FJ(n);+ return IJ(e).unknown(t);+ }, e = arguments.length ? Array.from(e, pJ) : [0, 1], PJ(n);}//#endregion//#region node_modules/d3-scale/src/nice.js-function RJ(e, t) {+function LJ(e, t) {e = e.slice();var n = 0, r = e.length - 1, i = e[n], a = e[r], o;return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;}//#endregion//#region node_modules/d3-scale/src/log.js-function zJ(e) {+function RJ(e) {return Math.log(e);}-function BJ(e) {+function zJ(e) {return Math.exp(e);}-function sOe(e) {+function oOe(e) {return -Math.log(-e);}-function cOe(e) {+function sOe(e) {return -Math.exp(-e);}-function lOe(e) {+function cOe(e) {return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e;}-function uOe(e) {- return e === 10 ? lOe : e === Math.E ? Math.exp : (t) => e ** +t;+function lOe(e) {+ return e === 10 ? cOe : e === Math.E ? Math.exp : (t) => e ** +t;}-function dOe(e) {+function uOe(e) {return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e);}-function VJ(e) {+function BJ(e) {return (t, n) => -e(-t, n);}-function HJ(e) {- let t = e(zJ, BJ), n = t.domain, r = 10, i, a;+function VJ(e) {+ let t = e(RJ, zJ), n = t.domain, r = 10, i, a;function o() {- return i = dOe(r), a = uOe(r), n()[0] < 0 ? (i = VJ(i), a = VJ(a), e(sOe, cOe)) : e(zJ, BJ), t;+ return i = uOe(r), a = lOe(r), n()[0] < 0 ? (i = BJ(i), a = BJ(a), e(oOe, sOe)) : e(RJ, zJ), t;}return t.base = function(e) {return arguments.length ? (r = +e, o()) : r;@@ -59668,100 +59659,100 @@ function HJ(e) {if (f > s) break;m.push(f);}- m.length * 2 < p && (m = yq(o, s, p));- } else m = yq(l, u, Math.min(u - l, p)).map(a);+ m.length * 2 < p && (m = vq(o, s, p));+ } else m = vq(l, u, Math.min(u - l, p)).map(a);return c ? m.reverse() : m;}, t.tickFormat = (e, n) => {- if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = CJ(n)).precision == null && (n.trim = !0), n = MJ(n)), e === Infinity) return n;+ if (e ??= 10, n ??= r === 10 ? "s" : ",", typeof n != "function" && (!(r % 1) && (n = SJ(n)).precision == null && (n.trim = !0), n = jJ(n)), e === Infinity) return n;let o = Math.max(1, r * e / t.ticks().length);return (e) => {let t = e / a(Math.round(i(e)));return t * r < r - .5 && (t *= r), t <= o ? n(e) : "";};- }, t.nice = () => n(RJ(n(), {+ }, t.nice = () => n(LJ(n(), {floor: (e) => a(Math.floor(i(e))),ceil: (e) => a(Math.ceil(i(e)))})), t;}-function UJ() {- let e = HJ(yJ()).domain([1, 10]);- return e.copy = () => vJ(e, UJ()).base(e.base()), Dq.apply(e, arguments), e;+function HJ() {+ let e = VJ(vJ()).domain([1, 10]);+ return e.copy = () => _J(e, HJ()).base(e.base()), Eq.apply(e, arguments), e;}//#endregion//#region node_modules/d3-scale/src/symlog.js-function WJ(e) {+function UJ(e) {return function(t) {return Math.sign(t) * Math.log1p(Math.abs(t / e));};}-function GJ(e) {+function WJ(e) {return function(t) {return Math.sign(t) * Math.expm1(Math.abs(t)) * e;};}-function KJ(e) {- var t = 1, n = e(WJ(t), GJ(t));+function GJ(e) {+ var t = 1, n = e(UJ(t), WJ(t));return n.constant = function(n) {- return arguments.length ? e(WJ(t = +n), GJ(t)) : t;- }, FJ(n);+ return arguments.length ? e(UJ(t = +n), WJ(t)) : t;+ }, PJ(n);}-function qJ() {- var e = KJ(yJ());+function KJ() {+ var e = GJ(vJ());return e.copy = function() {- return vJ(e, qJ()).constant(e.constant());- }, Dq.apply(e, arguments);+ return _J(e, KJ()).constant(e.constant());+ }, Eq.apply(e, arguments);}//#endregion//#region node_modules/d3-scale/src/pow.js-function JJ(e) {+function qJ(e) {return function(t) {return t < 0 ? -((-t) ** +e) : t ** +e;};}-function fOe(e) {+function dOe(e) {return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e);}-function pOe(e) {+function fOe(e) {return e < 0 ? -e * e : e * e;}-function YJ(e) {- var t = e(gJ, gJ), n = 1;+function JJ(e) {+ var t = e(hJ, hJ), n = 1;function r() {- return n === 1 ? e(gJ, gJ) : n === .5 ? e(fOe, pOe) : e(JJ(n), JJ(1 / n));+ return n === 1 ? e(hJ, hJ) : n === .5 ? e(dOe, fOe) : e(qJ(n), qJ(1 / n));}return t.exponent = function(e) {return arguments.length ? (n = +e, r()) : n;- }, FJ(t);+ }, PJ(t);}-function XJ() {- var e = YJ(yJ());+function YJ() {+ var e = JJ(vJ());return e.copy = function() {- return vJ(e, XJ()).exponent(e.exponent());- }, Dq.apply(e, arguments), e;+ return _J(e, YJ()).exponent(e.exponent());+ }, Eq.apply(e, arguments), e;}-function mOe() {- return XJ.apply(null, arguments).exponent(.5);+function pOe() {+ return YJ.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/d3-scale/src/radial.js-function ZJ(e) {+function XJ(e) {return Math.sign(e) * e * e;}-function hOe(e) {+function mOe(e) {return Math.sign(e) * Math.sqrt(Math.abs(e));}-function QJ() {- var e = bJ(), t = [0, 1], n = !1, r;+function ZJ() {+ var e = yJ(), t = [0, 1], n = !1, r;function i(t) {- var i = hOe(e(t));+ var i = mOe(e(t));return isNaN(i) ? r : n ? Math.round(i) : i;}return i.invert = function(t) {- return e.invert(ZJ(t));+ return e.invert(XJ(t));}, i.domain = function(t) {return arguments.length ? (e.domain(t), i) : e.domain();}, i.range = function(n) {- return arguments.length ? (e.range((t = Array.from(n, mJ)).map(ZJ)), i) : t.slice();+ return arguments.length ? (e.range((t = Array.from(n, pJ)).map(XJ)), i) : t.slice();}, i.rangeRound = function(e) {return i.range(e).round(!0);}, i.round = function(e) {@@ -59771,20 +59762,20 @@ function QJ() {}, i.unknown = function(e) {return arguments.length ? (r = e, i) : r;}, i.copy = function() {- return QJ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);- }, Dq.apply(i, arguments), FJ(i);+ return ZJ(e.domain(), t).round(n).clamp(e.clamp()).unknown(r);+ }, Eq.apply(i, arguments), PJ(i);}//#endregion//#region node_modules/d3-scale/src/quantile.js-function $J() {+function QJ() {var e = [], t = [], n = [], r;function i() {var r = 0, i = Math.max(1, t.length);- for (n = Array(i - 1); ++r < i;) n[r - 1] = yDe(e, r / i);+ for (n = Array(i - 1); ++r < i;) n[r - 1] = vDe(e, r / i);return a;}function a(e) {- return e == null || isNaN(e = +e) ? r : t[pq(n, e)];+ return e == null || isNaN(e = +e) ? r : t[fq(n, e)];}return a.invertExtent = function(r) {var i = t.indexOf(r);@@ -59793,7 +59784,7 @@ function $J() {if (!arguments.length) return e.slice();e = [];for (let n of t) n != null && !isNaN(n = +n) && e.push(n);- return e.sort(lq), i();+ return e.sort(cq), i();}, a.range = function(e) {return arguments.length ? (t = Array.from(e), i()) : t.slice();}, a.unknown = function(e) {@@ -59801,15 +59792,15 @@ function $J() {}, a.quantiles = function() {return n.slice();}, a.copy = function() {- return $J().domain(e).range(t).unknown(r);- }, Dq.apply(a, arguments);+ return QJ().domain(e).range(t).unknown(r);+ }, Eq.apply(a, arguments);}//#endregion//#region node_modules/d3-scale/src/quantize.js-function eY() {+function $J() {var e = 0, t = 1, n = 1, r = [.5], i = [0, 1], a;function o(e) {- return e != null && e <= e ? i[pq(r, e, 0, n)] : a;+ return e != null && e <= e ? i[fq(r, e, 0, n)] : a;}function s() {var i = -1;@@ -59828,15 +59819,15 @@ function eY() {}, o.thresholds = function() {return r.slice();}, o.copy = function() {- return eY().domain([e, t]).range(i).unknown(a);- }, Dq.apply(FJ(o), arguments);+ return $J().domain([e, t]).range(i).unknown(a);+ }, Eq.apply(PJ(o), arguments);}//#endregion//#region node_modules/d3-scale/src/threshold.js-function tY() {+function eY() {var e = [.5], t = [0, 1], n, r = 1;function i(i) {- return i != null && i <= i ? t[pq(e, i, 0, r)] : n;+ return i != null && i <= i ? t[fq(e, i, 0, r)] : n;}return i.domain = function(n) {return arguments.length ? (e = Array.from(n), r = Math.min(e.length, t.length - 1), i) : e.slice();@@ -59848,13 +59839,13 @@ function tY() {}, i.unknown = function(e) {return arguments.length ? (n = e, i) : n;}, i.copy = function() {- return tY().domain(e).range(t).unknown(n);- }, Dq.apply(i, arguments);+ return eY().domain(e).range(t).unknown(n);+ }, Eq.apply(i, arguments);}//#endregion//#region node_modules/d3-time/src/interval.js-var nY = /* @__PURE__ */ new Date(), rY = /* @__PURE__ */ new Date();-function iY(e, t, n, r) {+var tY = /* @__PURE__ */ new Date(), nY = /* @__PURE__ */ new Date();+function rY(e, t, n, r) {function i(t) {return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;}@@ -59869,226 +59860,226 @@ function iY(e, t, n, r) {o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);while (s < n && n < r);return o;- }, i.filter = (n) => iY((t) => {+ }, i.filter = (n) => rY((t) => {if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);}, (e, r) => {if (e >= e) {if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););else for (; --r >= 0;) for (; t(e, 1), !n(e););}- }), n && (i.count = (t, r) => (nY.setTime(+t), rY.setTime(+r), e(nY), e(rY), Math.floor(n(nY, rY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;+ }), n && (i.count = (t, r) => (tY.setTime(+t), nY.setTime(+r), e(tY), e(nY), Math.floor(n(tY, nY))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;}//#endregion//#region node_modules/d3-time/src/millisecond.js-var aY = iY(() => {}, (e, t) => {+var iY = rY(() => {}, (e, t) => {e.setTime(+e + t);}, (e, t) => t - e);-aY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? iY((t) => {+iY.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? rY((t) => {t.setTime(Math.floor(t / e) * e);}, (t, n) => {t.setTime(+t + n * e);-}, (t, n) => (n - t) / e) : aY), aY.range;+}, (t, n) => (n - t) / e) : iY), iY.range;//#endregion//#region node_modules/d3-time/src/duration.js-var oY = 1e3, sY = oY * 60, cY = sY * 60, lY = cY * 24, uY = lY * 7, dY = lY * 30, fY = lY * 365, pY = iY((e) => {+var aY = 1e3, oY = aY * 60, sY = oY * 60, cY = sY * 24, lY = cY * 7, uY = cY * 30, dY = cY * 365, fY = rY((e) => {e.setTime(e - e.getMilliseconds());}, (e, t) => {- e.setTime(+e + t * oY);-}, (e, t) => (t - e) / oY, (e) => e.getUTCSeconds());-pY.range;+ e.setTime(+e + t * aY);+}, (e, t) => (t - e) / aY, (e) => e.getUTCSeconds());+fY.range;//#endregion//#region node_modules/d3-time/src/minute.js-var mY = iY((e) => {- e.setTime(e - e.getMilliseconds() - e.getSeconds() * oY);+var pY = rY((e) => {+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * aY);}, (e, t) => {- e.setTime(+e + t * sY);-}, (e, t) => (t - e) / sY, (e) => e.getMinutes());-mY.range;-var hY = iY((e) => {+ e.setTime(+e + t * oY);+}, (e, t) => (t - e) / oY, (e) => e.getMinutes());+pY.range;+var mY = rY((e) => {e.setUTCSeconds(0, 0);}, (e, t) => {- e.setTime(+e + t * sY);-}, (e, t) => (t - e) / sY, (e) => e.getUTCMinutes());-hY.range;+ e.setTime(+e + t * oY);+}, (e, t) => (t - e) / oY, (e) => e.getUTCMinutes());+mY.range;//#endregion//#region node_modules/d3-time/src/hour.js-var gY = iY((e) => {- e.setTime(e - e.getMilliseconds() - e.getSeconds() * oY - e.getMinutes() * sY);+var hY = rY((e) => {+ e.setTime(e - e.getMilliseconds() - e.getSeconds() * aY - e.getMinutes() * oY);}, (e, t) => {- e.setTime(+e + t * cY);-}, (e, t) => (t - e) / cY, (e) => e.getHours());-gY.range;-var _Y = iY((e) => {+ e.setTime(+e + t * sY);+}, (e, t) => (t - e) / sY, (e) => e.getHours());+hY.range;+var gY = rY((e) => {e.setUTCMinutes(0, 0, 0);}, (e, t) => {- e.setTime(+e + t * cY);-}, (e, t) => (t - e) / cY, (e) => e.getUTCHours());-_Y.range;+ e.setTime(+e + t * sY);+}, (e, t) => (t - e) / sY, (e) => e.getUTCHours());+gY.range;//#endregion//#region node_modules/d3-time/src/day.js-var vY = iY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * sY) / lY, (e) => e.getDate() - 1);-vY.range;-var yY = iY((e) => {+var _Y = rY((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * oY) / cY, (e) => e.getDate() - 1);+_Y.range;+var vY = rY((e) => {e.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCDate(e.getUTCDate() + t);-}, (e, t) => (t - e) / lY, (e) => e.getUTCDate() - 1);-yY.range;-var bY = iY((e) => {+}, (e, t) => (t - e) / cY, (e) => e.getUTCDate() - 1);+vY.range;+var yY = rY((e) => {e.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCDate(e.getUTCDate() + t);-}, (e, t) => (t - e) / lY, (e) => Math.floor(e / lY));-bY.range;+}, (e, t) => (t - e) / cY, (e) => Math.floor(e / cY));+yY.range;//#endregion//#region node_modules/d3-time/src/week.js-function xY(e) {- return iY((t) => {+function bY(e) {+ return rY((t) => {t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);}, (e, t) => {e.setDate(e.getDate() + t * 7);- }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * sY) / uY);+ }, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * oY) / lY);}-var SY = xY(0), CY = xY(1), gOe = xY(2), _Oe = xY(3), wY = xY(4), vOe = xY(5), yOe = xY(6);-SY.range, CY.range, gOe.range, _Oe.range, wY.range, vOe.range, yOe.range;-function TY(e) {- return iY((t) => {+var xY = bY(0), SY = bY(1), hOe = bY(2), gOe = bY(3), CY = bY(4), _Oe = bY(5), vOe = bY(6);+xY.range, SY.range, hOe.range, gOe.range, CY.range, _Oe.range, vOe.range;+function wY(e) {+ return rY((t) => {t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCDate(e.getUTCDate() + t * 7);- }, (e, t) => (t - e) / uY);+ }, (e, t) => (t - e) / lY);}-var EY = TY(0), DY = TY(1), bOe = TY(2), xOe = TY(3), OY = TY(4), SOe = TY(5), COe = TY(6);-EY.range, DY.range, bOe.range, xOe.range, OY.range, SOe.range, COe.range;+var TY = wY(0), EY = wY(1), yOe = wY(2), bOe = wY(3), DY = wY(4), xOe = wY(5), SOe = wY(6);+TY.range, EY.range, yOe.range, bOe.range, DY.range, xOe.range, SOe.range;//#endregion//#region node_modules/d3-time/src/month.js-var kY = iY((e) => {+var OY = rY((e) => {e.setDate(1), e.setHours(0, 0, 0, 0);}, (e, t) => {e.setMonth(e.getMonth() + t);}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());-kY.range;-var AY = iY((e) => {+OY.range;+var kY = rY((e) => {e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCMonth(e.getUTCMonth() + t);}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());-AY.range;+kY.range;//#endregion//#region node_modules/d3-time/src/year.js-var jY = iY((e) => {+var AY = rY((e) => {e.setMonth(0, 1), e.setHours(0, 0, 0, 0);}, (e, t) => {e.setFullYear(e.getFullYear() + t);}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());-jY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : iY((t) => {+AY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : rY((t) => {t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);}, (t, n) => {t.setFullYear(t.getFullYear() + n * e);-}), jY.range;-var MY = iY((e) => {+}), AY.range;+var jY = rY((e) => {e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);}, (e, t) => {e.setUTCFullYear(e.getUTCFullYear() + t);}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());-MY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : iY((t) => {+jY.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : rY((t) => {t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);}, (t, n) => {t.setUTCFullYear(t.getUTCFullYear() + n * e);-}), MY.range;+}), jY.range;//#endregion//#region node_modules/d3-time/src/ticks.js-function NY(e, t, n, r, i, a) {+function MY(e, t, n, r, i, a) {let o = [[- pY,+ fY,1,- oY+ aY],[- pY,+ fY,5,- 5 * oY+ 5 * aY],[- pY,+ fY,15,- 15 * oY+ 15 * aY],[- pY,+ fY,30,- 30 * oY+ 30 * aY],[a,1,- sY+ oY],[a,5,- 5 * sY+ 5 * oY],[a,15,- 15 * sY+ 15 * oY],[a,30,- 30 * sY+ 30 * oY],[i,1,- cY+ sY],[i,3,- 3 * cY+ 3 * sY],[i,6,- 6 * cY+ 6 * sY],[i,12,- 12 * cY+ 12 * sY],[r,1,- lY+ cY],[r,2,- 2 * lY+ 2 * cY],[n,1,- uY+ lY],[t,1,- dY+ uY],[t,3,- 3 * dY+ 3 * uY],[e,1,- fY+ dY]];function s(e, t, n) {@@ -60098,32 +60089,32 @@ function NY(e, t, n, r, i, a) {return r ? a.reverse() : a;}function c(t, n, r) {- let i = Math.abs(n - t) / r, a = uq(([, , e]) => e).right(o, i);- if (a === o.length) return e.every(xq(t / fY, n / fY, r));- if (a === 0) return aY.every(Math.max(xq(t, n, r), 1));+ let i = Math.abs(n - t) / r, a = lq(([, , e]) => e).right(o, i);+ if (a === o.length) return e.every(bq(t / dY, n / dY, r));+ if (a === 0) return iY.every(Math.max(bq(t, n, r), 1));let [s, c] = o[i / o[a - 1][2] < o[a][2] / i ? a - 1 : a];return s.every(c);}return [s, c];}-var [wOe, TOe] = NY(MY, AY, EY, bY, _Y, hY), [EOe, DOe] = NY(jY, kY, SY, vY, gY, mY);+var [COe, wOe] = MY(jY, kY, TY, yY, gY, mY), [TOe, EOe] = MY(AY, OY, xY, _Y, hY, pY);//#endregion//#region node_modules/d3-time-format/src/locale.js-function PY(e) {+function NY(e) {if (0 <= e.y && e.y < 100) {var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);return t.setFullYear(e.y), t;}return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);}-function FY(e) {+function PY(e) {if (0 <= e.y && e.y < 100) {var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));return t.setUTCFullYear(e.y), t;}return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));}-function IY(e, t, n) {+function FY(e, t, n) {return {y: e,m: t,@@ -60134,133 +60125,133 @@ function IY(e, t, n) {L: 0};}-function OOe(e) {- var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = BY(i), u = VY(i), d = BY(a), f = VY(a), p = BY(o), m = VY(o), h = BY(s), g = VY(s), _ = BY(c), v = VY(c), y = {+function DOe(e) {+ var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = zY(i), u = BY(i), d = zY(a), f = BY(a), p = zY(o), m = BY(o), h = zY(s), g = BY(s), _ = zY(c), v = BY(c), y = {a: N,A: P,b: ee,B: F,c: null,- d: KY,- e: KY,- f: ZOe,- g: ske,- G: lke,- H: JOe,- I: YOe,- j: XOe,- L: qY,- m: QOe,- M: $Oe,+ d: GY,+ e: GY,+ f: XOe,+ g: oke,+ G: cke,+ H: qOe,+ I: JOe,+ j: YOe,+ L: KY,+ m: ZOe,+ M: QOe,p: I,q: te,- Q: $Y,- s: eX,- S: eke,- u: tke,- U: nke,- V: rke,- w: ike,- W: ake,+ Q: QY,+ s: $Y,+ S: $Oe,+ u: eke,+ U: tke,+ V: nke,+ w: rke,+ W: ike,x: null,X: null,- y: oke,- Y: cke,- Z: uke,- "%": QY+ y: ake,+ Y: ske,+ Z: lke,+ "%": ZY}, b = {a: ne,A: re,b: ie,B: ae,c: null,- d: YY,- e: YY,- f: mke,- g: wke,- G: Eke,- H: dke,- I: fke,- j: pke,- L: XY,- m: hke,- M: gke,+ d: JY,+ e: JY,+ f: pke,+ g: Cke,+ G: Tke,+ H: uke,+ I: dke,+ j: fke,+ L: YY,+ m: mke,+ M: hke,p: oe,q: se,- Q: $Y,- s: eX,- S: _ke,- u: vke,- U: yke,- V: bke,- w: xke,- W: Ske,+ Q: QY,+ s: $Y,+ S: gke,+ u: _ke,+ U: vke,+ V: yke,+ w: bke,+ W: xke,x: null,X: null,- y: Cke,- Y: Tke,- Z: Dke,- "%": QY+ y: Ske,+ Y: wke,+ Z: Eke,+ "%": ZY}, x = {a: E,A: D,b: O,B: k,c: A,- d: WY,- e: WY,- f: WOe,- g: UY,- G: HY,- H: GY,- I: GY,- j: BOe,- L: UOe,- m: zOe,- M: VOe,+ d: UY,+ e: UY,+ f: UOe,+ g: HY,+ G: VY,+ H: WY,+ I: WY,+ j: zOe,+ L: HOe,+ m: ROe,+ M: BOe,p: T,- q: ROe,- Q: KOe,- s: qOe,- S: HOe,- u: NOe,- U: POe,- V: FOe,- w: MOe,- W: IOe,+ q: LOe,+ Q: GOe,+ s: KOe,+ S: VOe,+ u: MOe,+ U: NOe,+ V: POe,+ w: jOe,+ W: FOe,x: j,X: M,- y: UY,- Y: HY,- Z: LOe,- "%": GOe+ y: HY,+ Y: VY,+ Z: IOe,+ "%": WOe};y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);function S(e, t) {return function(n) {var r = [], i = -1, a = 0, o = e.length, s, c, l;- for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = LY[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);+ for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = IY[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);return r.push(e.slice(a, i)), r.join("");};}function C(e, t) {return function(n) {- var r = IY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;+ var r = FY(1900, void 0, 1), i = w(r, e, n += "", 0), a, o;if (i != n.length) return null;if ("Q" in r) return new Date(r.Q);if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {if (r.V < 1 || r.V > 53) return null;- "w" in r || (r.w = 1), "Z" in r ? (a = FY(IY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? DY.ceil(a) : DY(a), a = yY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = PY(IY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? CY.ceil(a) : CY(a), a = vY.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);- } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? FY(IY(r.y, 0, 1)).getUTCDay() : PY(IY(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);- return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, FY(r)) : PY(r);+ "w" in r || (r.w = 1), "Z" in r ? (a = PY(FY(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? EY.ceil(a) : EY(a), a = vY.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = NY(FY(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? SY.ceil(a) : SY(a), a = _Y.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);+ } else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : +("W" in r)), o = "Z" in r ? PY(FY(r.y, 0, 1)).getUTCDay() : NY(FY(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);+ return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, PY(r)) : NY(r);};}function w(e, t, n, r) {for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {if (r >= o) return -1;if (s = t.charCodeAt(i++), s === 37) {- if (s = t.charAt(i++), c = x[s in LY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;+ if (s = t.charAt(i++), c = x[s in IY ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;} else if (s != n.charCodeAt(r++)) return -1;}return r;@@ -60357,244 +60348,244 @@ function OOe(e) {}};}-var LY = {+var IY = {"-": "",_: " ",0: "0"-}, RY = /^\s*\d+/, kOe = /^%/, AOe = /[\\^$*+?|[\]().{}]/g;-function zY(e, t, n) {+}, LY = /^\s*\d+/, OOe = /^%/, kOe = /[\\^$*+?|[\]().{}]/g;+function RY(e, t, n) {var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;return r + (a < n ? Array(n - a + 1).join(t) + i : i);}-function jOe(e) {- return e.replace(AOe, "\\$&");+function AOe(e) {+ return e.replace(kOe, "\\$&");}-function BY(e) {- return RegExp("^(?:" + e.map(jOe).join("|") + ")", "i");+function zY(e) {+ return RegExp("^(?:" + e.map(AOe).join("|") + ")", "i");}-function VY(e) {+function BY(e) {return new Map(e.map((e, t) => [e.toLowerCase(), t]));}-function MOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 1));+function jOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 1));return r ? (e.w = +r[0], n + r[0].length) : -1;}-function NOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 1));+function MOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 1));return r ? (e.u = +r[0], n + r[0].length) : -1;}-function POe(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function NOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.U = +r[0], n + r[0].length) : -1;}-function FOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function POe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.V = +r[0], n + r[0].length) : -1;}-function IOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function FOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.W = +r[0], n + r[0].length) : -1;}-function HY(e, t, n) {- var r = RY.exec(t.slice(n, n + 4));+function VY(e, t, n) {+ var r = LY.exec(t.slice(n, n + 4));return r ? (e.y = +r[0], n + r[0].length) : -1;}-function UY(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function HY(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;}-function LOe(e, t, n) {+function IOe(e, t, n) {var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;}-function ROe(e, t, n) {- var r = RY.exec(t.slice(n, n + 1));+function LOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 1));return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;}-function zOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function ROe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.m = r[0] - 1, n + r[0].length) : -1;}-function WY(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function UY(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.d = +r[0], n + r[0].length) : -1;}-function BOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 3));+function zOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 3));return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;}-function GY(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function WY(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.H = +r[0], n + r[0].length) : -1;}-function VOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function BOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.M = +r[0], n + r[0].length) : -1;}-function HOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 2));+function VOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 2));return r ? (e.S = +r[0], n + r[0].length) : -1;}-function UOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 3));+function HOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 3));return r ? (e.L = +r[0], n + r[0].length) : -1;}-function WOe(e, t, n) {- var r = RY.exec(t.slice(n, n + 6));+function UOe(e, t, n) {+ var r = LY.exec(t.slice(n, n + 6));return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;}-function GOe(e, t, n) {- var r = kOe.exec(t.slice(n, n + 1));+function WOe(e, t, n) {+ var r = OOe.exec(t.slice(n, n + 1));return r ? n + r[0].length : -1;}-function KOe(e, t, n) {- var r = RY.exec(t.slice(n));+function GOe(e, t, n) {+ var r = LY.exec(t.slice(n));return r ? (e.Q = +r[0], n + r[0].length) : -1;}-function qOe(e, t, n) {- var r = RY.exec(t.slice(n));+function KOe(e, t, n) {+ var r = LY.exec(t.slice(n));return r ? (e.s = +r[0], n + r[0].length) : -1;}-function KY(e, t) {- return zY(e.getDate(), t, 2);+function GY(e, t) {+ return RY(e.getDate(), t, 2);+}+function qOe(e, t) {+ return RY(e.getHours(), t, 2);}function JOe(e, t) {- return zY(e.getHours(), t, 2);+ return RY(e.getHours() % 12 || 12, t, 2);}function YOe(e, t) {- return zY(e.getHours() % 12 || 12, t, 2);+ return RY(1 + _Y.count(AY(e), e), t, 3);}-function XOe(e, t) {- return zY(1 + vY.count(jY(e), e), t, 3);+function KY(e, t) {+ return RY(e.getMilliseconds(), t, 3);}-function qY(e, t) {- return zY(e.getMilliseconds(), t, 3);+function XOe(e, t) {+ return KY(e, t) + "000";}function ZOe(e, t) {- return qY(e, t) + "000";+ return RY(e.getMonth() + 1, t, 2);}function QOe(e, t) {- return zY(e.getMonth() + 1, t, 2);+ return RY(e.getMinutes(), t, 2);}function $Oe(e, t) {- return zY(e.getMinutes(), t, 2);+ return RY(e.getSeconds(), t, 2);}-function eke(e, t) {- return zY(e.getSeconds(), t, 2);-}-function tke(e) {+function eke(e) {var t = e.getDay();return t === 0 ? 7 : t;}-function nke(e, t) {- return zY(SY.count(jY(e) - 1, e), t, 2);+function tke(e, t) {+ return RY(xY.count(AY(e) - 1, e), t, 2);}-function JY(e) {+function qY(e) {var t = e.getDay();- return t >= 4 || t === 0 ? wY(e) : wY.ceil(e);+ return t >= 4 || t === 0 ? CY(e) : CY.ceil(e);}-function rke(e, t) {- return e = JY(e), zY(wY.count(jY(e), e) + (jY(e).getDay() === 4), t, 2);+function nke(e, t) {+ return e = qY(e), RY(CY.count(AY(e), e) + (AY(e).getDay() === 4), t, 2);}-function ike(e) {+function rke(e) {return e.getDay();}+function ike(e, t) {+ return RY(SY.count(AY(e) - 1, e), t, 2);+}function ake(e, t) {- return zY(CY.count(jY(e) - 1, e), t, 2);+ return RY(e.getFullYear() % 100, t, 2);}function oke(e, t) {- return zY(e.getFullYear() % 100, t, 2);+ return e = qY(e), RY(e.getFullYear() % 100, t, 2);}function ske(e, t) {- return e = JY(e), zY(e.getFullYear() % 100, t, 2);+ return RY(e.getFullYear() % 1e4, t, 4);}function cke(e, t) {- return zY(e.getFullYear() % 1e4, t, 4);-}-function lke(e, t) {var n = e.getDay();- return e = n >= 4 || n === 0 ? wY(e) : wY.ceil(e), zY(e.getFullYear() % 1e4, t, 4);+ return e = n >= 4 || n === 0 ? CY(e) : CY.ceil(e), RY(e.getFullYear() % 1e4, t, 4);}-function uke(e) {+function lke(e) {var t = e.getTimezoneOffset();- return (t > 0 ? "-" : (t *= -1, "+")) + zY(t / 60 | 0, "0", 2) + zY(t % 60, "0", 2);+ return (t > 0 ? "-" : (t *= -1, "+")) + RY(t / 60 | 0, "0", 2) + RY(t % 60, "0", 2);}-function YY(e, t) {- return zY(e.getUTCDate(), t, 2);+function JY(e, t) {+ return RY(e.getUTCDate(), t, 2);+}+function uke(e, t) {+ return RY(e.getUTCHours(), t, 2);}function dke(e, t) {- return zY(e.getUTCHours(), t, 2);+ return RY(e.getUTCHours() % 12 || 12, t, 2);}function fke(e, t) {- return zY(e.getUTCHours() % 12 || 12, t, 2);+ return RY(1 + vY.count(jY(e), e), t, 3);}-function pke(e, t) {- return zY(1 + yY.count(MY(e), e), t, 3);+function YY(e, t) {+ return RY(e.getUTCMilliseconds(), t, 3);}-function XY(e, t) {- return zY(e.getUTCMilliseconds(), t, 3);+function pke(e, t) {+ return YY(e, t) + "000";}function mke(e, t) {- return XY(e, t) + "000";+ return RY(e.getUTCMonth() + 1, t, 2);}function hke(e, t) {- return zY(e.getUTCMonth() + 1, t, 2);+ return RY(e.getUTCMinutes(), t, 2);}function gke(e, t) {- return zY(e.getUTCMinutes(), t, 2);-}-function _ke(e, t) {- return zY(e.getUTCSeconds(), t, 2);+ return RY(e.getUTCSeconds(), t, 2);}-function vke(e) {+function _ke(e) {var t = e.getUTCDay();return t === 0 ? 7 : t;}-function yke(e, t) {- return zY(EY.count(MY(e) - 1, e), t, 2);+function vke(e, t) {+ return RY(TY.count(jY(e) - 1, e), t, 2);}-function ZY(e) {+function XY(e) {var t = e.getUTCDay();- return t >= 4 || t === 0 ? OY(e) : OY.ceil(e);+ return t >= 4 || t === 0 ? DY(e) : DY.ceil(e);}-function bke(e, t) {- return e = ZY(e), zY(OY.count(MY(e), e) + (MY(e).getUTCDay() === 4), t, 2);+function yke(e, t) {+ return e = XY(e), RY(DY.count(jY(e), e) + (jY(e).getUTCDay() === 4), t, 2);}-function xke(e) {+function bke(e) {return e.getUTCDay();}+function xke(e, t) {+ return RY(EY.count(jY(e) - 1, e), t, 2);+}function Ske(e, t) {- return zY(DY.count(MY(e) - 1, e), t, 2);+ return RY(e.getUTCFullYear() % 100, t, 2);}function Cke(e, t) {- return zY(e.getUTCFullYear() % 100, t, 2);+ return e = XY(e), RY(e.getUTCFullYear() % 100, t, 2);}function wke(e, t) {- return e = ZY(e), zY(e.getUTCFullYear() % 100, t, 2);+ return RY(e.getUTCFullYear() % 1e4, t, 4);}function Tke(e, t) {- return zY(e.getUTCFullYear() % 1e4, t, 4);-}-function Eke(e, t) {var n = e.getUTCDay();- return e = n >= 4 || n === 0 ? OY(e) : OY.ceil(e), zY(e.getUTCFullYear() % 1e4, t, 4);+ return e = n >= 4 || n === 0 ? DY(e) : DY.ceil(e), RY(e.getUTCFullYear() % 1e4, t, 4);}-function Dke() {+function Eke() {return "+0000";}-function QY() {+function ZY() {return "%";}-function $Y(e) {+function QY(e) {return +e;}-function eX(e) {+function $Y(e) {return Math.floor(e / 1e3);}//#endregion//#region node_modules/d3-time-format/src/defaultLocale.js-var tX, nX, rX;-Oke({+var eX, tX, nX;+Dke({dateTime: "%x, %X",date: "%-m/%-d/%Y",time: "%-I:%M:%S %p",@@ -60646,26 +60637,26 @@ Oke({"Dec"]});-function Oke(e) {- return tX = OOe(e), nX = tX.format, tX.parse, rX = tX.utcFormat, tX.utcParse, tX;+function Dke(e) {+ return eX = DOe(e), tX = eX.format, eX.parse, nX = eX.utcFormat, eX.utcParse, eX;}//#endregion//#region node_modules/d3-scale/src/time.js-function kke(e) {+function Oke(e) {return new Date(e);}-function Ake(e) {+function kke(e) {return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);}-function iX(e, t, n, r, i, a, o, s, c, l) {- var u = bJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");+function rX(e, t, n, r, i, a, o, s, c, l) {+ var u = yJ(), d = u.invert, f = u.domain, p = l(".%L"), m = l(":%S"), h = l("%I:%M"), g = l("%I %p"), _ = l("%a %d"), v = l("%b %d"), y = l("%B"), b = l("%Y");function x(e) {return (c(e) < e ? p : s(e) < e ? m : o(e) < e ? h : a(e) < e ? g : r(e) < e ? i(e) < e ? _ : v : n(e) < e ? y : b)(e);}return u.invert = function(e) {return new Date(d(e));}, u.domain = function(e) {- return arguments.length ? f(Array.from(e, Ake)) : f().map(kke);+ return arguments.length ? f(Array.from(e, kke)) : f().map(Oke);}, u.ticks = function(t) {var n = f();return e(n[0], n[n.length - 1], t ?? 10);@@ -60673,23 +60664,23 @@ function iX(e, t, n, r, i, a, o, s, c, l) {return t == null ? x : l(t);}, u.nice = function(e) {var n = f();- return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(RJ(n, e)) : u;+ return (!e || typeof e.range != "function") && (e = t(n[0], n[n.length - 1], e ?? 10)), e ? f(LJ(n, e)) : u;}, u.copy = function() {- return vJ(u, iX(e, t, n, r, i, a, o, s, c, l));+ return _J(u, rX(e, t, n, r, i, a, o, s, c, l));}, u;}-function jke() {- return Dq.apply(iX(EOe, DOe, jY, kY, SY, vY, gY, mY, pY, nX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);+function Ake() {+ return Eq.apply(rX(TOe, EOe, AY, OY, xY, _Y, hY, pY, fY, tX).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);}//#endregion//#region node_modules/d3-scale/src/utcTime.js-function Mke() {- return Dq.apply(iX(wOe, TOe, MY, AY, EY, yY, _Y, hY, pY, rX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);+function jke() {+ return Eq.apply(rX(COe, wOe, jY, kY, TY, vY, gY, mY, fY, nX).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);}//#endregion//#region node_modules/d3-scale/src/sequential.js-function aX() {- var e = 0, t = 1, n, r, i, a, o = gJ, s = !1, c;+function iX() {+ var e = 0, t = 1, n, r, i, a, o = hJ, s = !1, c;function l(e) {return e == null || isNaN(e = +e) ? c : o(i === 0 ? .5 : (e = (a(e) - n) * i, s ? Math.max(0, Math.min(1, e)) : e));}@@ -60706,68 +60697,68 @@ function aX() {return arguments.length ? ([n, r] = t, o = e(n, r), l) : [o(0), o(1)];};}- return l.range = u(fJ), l.rangeRound = u(pJ), l.unknown = function(e) {+ return l.range = u(dJ), l.rangeRound = u(fJ), l.unknown = function(e) {return arguments.length ? (c = e, l) : c;}, function(o) {return a = o, n = o(e), r = o(t), i = n === r ? 0 : 1 / (r - n), l;};}-function oX(e, t) {+function aX(e, t) {return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown());}+function oX() {+ var e = PJ(iX()(hJ));+ return e.copy = function() {+ return aX(e, oX());+ }, Dq.apply(e, arguments);+}function sX() {- var e = FJ(aX()(gJ));+ var e = VJ(iX()).domain([1, 10]);return e.copy = function() {- return oX(e, sX());- }, Oq.apply(e, arguments);+ return aX(e, sX()).base(e.base());+ }, Dq.apply(e, arguments);}function cX() {- var e = HJ(aX()).domain([1, 10]);+ var e = GJ(iX());return e.copy = function() {- return oX(e, cX()).base(e.base());- }, Oq.apply(e, arguments);+ return aX(e, cX()).constant(e.constant());+ }, Dq.apply(e, arguments);}function lX() {- var e = KJ(aX());+ var e = JJ(iX());return e.copy = function() {- return oX(e, lX()).constant(e.constant());- }, Oq.apply(e, arguments);-}-function uX() {- var e = YJ(aX());- return e.copy = function() {- return oX(e, uX()).exponent(e.exponent());- }, Oq.apply(e, arguments);+ return aX(e, lX()).exponent(e.exponent());+ }, Dq.apply(e, arguments);}-function Nke() {- return uX.apply(null, arguments).exponent(.5);+function Mke() {+ return lX.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/d3-scale/src/sequentialQuantile.js-function dX() {- var e = [], t = gJ;+function uX() {+ var e = [], t = hJ;function n(n) {- if (n != null && !isNaN(n = +n)) return t((pq(e, n, 1) - 1) / (e.length - 1));+ if (n != null && !isNaN(n = +n)) return t((fq(e, n, 1) - 1) / (e.length - 1));}return n.domain = function(t) {if (!arguments.length) return e.slice();e = [];for (let n of t) n != null && !isNaN(n = +n) && e.push(n);- return e.sort(lq), n;+ return e.sort(cq), n;}, n.interpolator = function(e) {return arguments.length ? (t = e, n) : t;}, n.range = function() {return e.map((n, r) => t(r / (e.length - 1)));}, n.quantiles = function(t) {- return Array.from({ length: t + 1 }, (n, r) => vDe(e, r / t));+ return Array.from({ length: t + 1 }, (n, r) => _De(e, r / t));}, n.copy = function() {- return dX(t).domain(e);- }, Oq.apply(n, arguments);+ return uX(t).domain(e);+ }, Dq.apply(n, arguments);}//#endregion//#region node_modules/d3-scale/src/diverging.js-function fX() {- var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = gJ, u, d = !1, f;+function dX() {+ var e = 0, t = .5, n = 1, r = 1, i, a, o, s, c, l = hJ, u, d = !1, f;function p(e) {return isNaN(e = +e) ? f : (e = .5 + ((e = +u(e)) - a) * (r * e < r * a ? s : c), l(d ? Math.max(0, Math.min(1, e)) : e));}@@ -60785,7 +60776,7 @@ function fX() {function m(e) {return function(t) {var n, r, i;- return arguments.length ? ([n, r, i] = t, l = GDe(e, [+ return arguments.length ? ([n, r, i] = t, l = WDe(e, [n,r,i@@ -60796,121 +60787,121 @@ function fX() {];};}- return p.range = m(fJ), p.rangeRound = m(pJ), p.unknown = function(e) {+ return p.range = m(dJ), p.rangeRound = m(fJ), p.unknown = function(e) {return arguments.length ? (f = e, p) : f;}, function(l) {return u = l, i = l(e), a = l(t), o = l(n), s = i === a ? 0 : .5 / (a - i), c = a === o ? 0 : .5 / (o - a), r = a < i ? -1 : 1, p;};}-function pX() {- var e = FJ(fX()(gJ));+function fX() {+ var e = PJ(dX()(hJ));return e.copy = function() {- return oX(e, pX());- }, Oq.apply(e, arguments);+ return aX(e, fX());+ }, Dq.apply(e, arguments);}-function mX() {- var e = HJ(fX()).domain([+function pX() {+ var e = VJ(dX()).domain([.1,1,10]);return e.copy = function() {- return oX(e, mX()).base(e.base());- }, Oq.apply(e, arguments);+ return aX(e, pX()).base(e.base());+ }, Dq.apply(e, arguments);}-function hX() {- var e = KJ(fX());+function mX() {+ var e = GJ(dX());return e.copy = function() {- return oX(e, hX()).constant(e.constant());- }, Oq.apply(e, arguments);+ return aX(e, mX()).constant(e.constant());+ }, Dq.apply(e, arguments);}-function gX() {- var e = YJ(fX());+function hX() {+ var e = JJ(dX());return e.copy = function() {- return oX(e, gX()).exponent(e.exponent());- }, Oq.apply(e, arguments);+ return aX(e, hX()).exponent(e.exponent());+ }, Dq.apply(e, arguments);}-function Pke() {- return gX.apply(null, arguments).exponent(.5);+function Nke() {+ return hX.apply(null, arguments).exponent(.5);}//#endregion//#region node_modules/victory-vendor/es/d3-scale.js-var _X = /* @__PURE__ */ St({- scaleBand: () => jq,- scaleDiverging: () => pX,- scaleDivergingLog: () => mX,- scaleDivergingPow: () => gX,- scaleDivergingSqrt: () => Pke,- scaleDivergingSymlog: () => hX,- scaleIdentity: () => LJ,- scaleImplicit: () => kq,- scaleLinear: () => IJ,- scaleLog: () => UJ,- scaleOrdinal: () => Aq,- scalePoint: () => xDe,- scalePow: () => XJ,- scaleQuantile: () => $J,- scaleQuantize: () => eY,- scaleRadial: () => QJ,- scaleSequential: () => sX,- scaleSequentialLog: () => cX,- scaleSequentialPow: () => uX,- scaleSequentialQuantile: () => dX,- scaleSequentialSqrt: () => Nke,- scaleSequentialSymlog: () => lX,- scaleSqrt: () => mOe,- scaleSymlog: () => qJ,- scaleThreshold: () => tY,- scaleTime: () => jke,- scaleUtc: () => Mke,- tickFormat: () => PJ+var gX = /* @__PURE__ */ St({+ scaleBand: () => Aq,+ scaleDiverging: () => fX,+ scaleDivergingLog: () => pX,+ scaleDivergingPow: () => hX,+ scaleDivergingSqrt: () => Nke,+ scaleDivergingSymlog: () => mX,+ scaleIdentity: () => IJ,+ scaleImplicit: () => Oq,+ scaleLinear: () => FJ,+ scaleLog: () => HJ,+ scaleOrdinal: () => kq,+ scalePoint: () => bDe,+ scalePow: () => YJ,+ scaleQuantile: () => QJ,+ scaleQuantize: () => $J,+ scaleRadial: () => ZJ,+ scaleSequential: () => oX,+ scaleSequentialLog: () => sX,+ scaleSequentialPow: () => lX,+ scaleSequentialQuantile: () => uX,+ scaleSequentialSqrt: () => Mke,+ scaleSequentialSymlog: () => cX,+ scaleSqrt: () => pOe,+ scaleSymlog: () => KJ,+ scaleThreshold: () => eY,+ scaleTime: () => Ake,+ scaleUtc: () => jke,+ tickFormat: () => NJ});//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js-function Fke(e) {- if (e in _X) return _X[e]();- var t = `scale${sB(e)}`;- if (t in _X) return _X[t]();+function Pke(e) {+ if (e in gX) return gX[e]();+ var t = `scale${oB(e)}`;+ if (t in gX) return gX[t]();}-function vX(e, t, n) {+function _X(e, t, n) {if (typeof e == "function") return e.copy().domain(t).range(n);if (e != null) {- var r = Fke(e);+ var r = Pke(e);if (r != null) return r.domain(t).range(n), r;}}-function yX(e, t, n, r) {- if (n != null && r != null) return typeof e.scale == "function" ? vX(e.scale, n, r) : vX(t, n, r);+function vX(e, t, n, r) {+ if (n != null && r != null) return typeof e.scale == "function" ? _X(e.scale, n, r) : _X(t, n, r);}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js-function Ike(e) {- return `scale${sB(e)}`;+function Fke(e) {+ return `scale${oB(e)}`;}-function Lke(e) {- return Ike(e) in _X;+function Ike(e) {+ return Fke(e) in gX;}-var bX = (e, t, n) => {+var yX = (e, t, n) => {if (e != null) {var { scale: r, type: i } = e;if (r === "auto") return i === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !t) ? "point" : i === "category" ? "band" : "linear";- if (typeof r == "string") return Lke(r) ? r : "point";+ if (typeof r == "string") return Ike(r) ? r : "point";}};//#endregion//#region node_modules/recharts/es6/util/scale/createCategoricalInverse.js-function Rke(e, t) {+function Lke(e, t) {for (var n = 0, r = e.length, i = e[0] < e[e.length - 1]; n < r;) {var a = Math.floor((n + r) / 2);(i ? e[a] < t : e[a] > t) ? n = a + 1 : r = a;}return n;}-function xX(e, t) {+function bX(e, t) {if (e) {var n = t ?? e.domain(), r = n.map((t) => e(t) ?? 0), i = e.range();if (!(n.length === 0 || i.length < 2)) return (e) => {- var t = Rke(r, e);+ var t = Lke(r, e);if (t <= 0) return n[0];if (t >= n.length) return n[n.length - 1];var i = r[t - 1] ?? 0, a = r[t] ?? 0;@@ -60920,12 +60911,12 @@ function xX(e, t) {}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js-function zke(e) {- if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : xX(e, void 0);+function Rke(e) {+ if (e != null) return "invert" in e && typeof e.invert == "function" ? e.invert.bind(e) : bX(e, void 0);}//#endregion//#region node_modules/recharts/es6/state/selectors/axisSelectors.js-function SX(e, t) {+function xX(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -60935,30 +60926,30 @@ function SX(e, t) {}return n;}-function CX(e) {+function SX(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? SX(Object(n), !0).forEach(function(t) {- Bke(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : SX(Object(n)).forEach(function(t) {+ t % 2 ? xX(Object(n), !0).forEach(function(t) {+ zke(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xX(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function Bke(e, t, n) {- return (t = Vke(t)) in e ? Object.defineProperty(e, t, {+function zke(e, t, n) {+ return (t = Bke(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function Vke(e) {- var t = Hke(e, "string");+function Bke(e) {+ var t = Vke(e, "string");return typeof t == "symbol" ? t : t + "";}-function Hke(e, t) {+function Vke(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -60968,7 +60959,7 @@ function Hke(e, t) {}return (t === "string" ? String : Number)(e);}-var wX = [0, "auto"], TX = {+var CX = [0, "auto"], wX = {allowDataOverflow: !1,allowDecimals: !0,allowDuplicatedCategory: !0,@@ -60997,13 +60988,13 @@ var wX = [0, "auto"], TX = {type: "category",unit: void 0,niceTicks: "auto"-}, EX = (e, t) => e.cartesianAxis.xAxis[t], DX = (e, t) => EX(e, t) ?? TX, OX = {+}, TX = (e, t) => e.cartesianAxis.xAxis[t], EX = (e, t) => TX(e, t) ?? wX, DX = {allowDataOverflow: !1,allowDecimals: !0,allowDuplicatedCategory: !0,angle: 0,dataKey: void 0,- domain: wX,+ domain: CX,hide: !0,id: 0,includeHidden: !1,@@ -61026,7 +61017,7 @@ var wX = [0, "auto"], TX = {unit: void 0,niceTicks: "auto",width: 60-}, kX = (e, t) => e.cartesianAxis.yAxis[t], AX = (e, t) => kX(e, t) ?? OX, Uke = {+}, OX = (e, t) => e.cartesianAxis.yAxis[t], kX = (e, t) => OX(e, t) ?? DX, Hke = {domain: [0, "auto"],includeHidden: !1,reversed: !1,@@ -61039,31 +61030,31 @@ var wX = [0, "auto"], TX = {scale: "auto",type: "number",unit: ""-}, jX = (e, t) => e.cartesianAxis.zAxis[t] ?? Uke, MX = (e, t, n) => {+}, AX = (e, t) => e.cartesianAxis.zAxis[t] ?? Hke, jX = (e, t, n) => {switch (t) {- case "xAxis": return DX(e, n);- case "yAxis": return AX(e, n);- case "zAxis": return jX(e, n);- case "angleAxis": return UK(e, n);- case "radiusAxis": return WK(e, n);+ case "xAxis": return EX(e, n);+ case "yAxis": return kX(e, n);+ case "zAxis": return AX(e, n);+ case "angleAxis": return HK(e, n);+ case "radiusAxis": return UK(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, Wke = (e, t, n) => {+}, Uke = (e, t, n) => {switch (t) {- case "xAxis": return DX(e, n);- case "yAxis": return AX(e, n);+ case "xAxis": return EX(e, n);+ case "yAxis": return kX(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, NX = (e, t, n) => {+}, MX = (e, t, n) => {switch (t) {- case "xAxis": return DX(e, n);- case "yAxis": return AX(e, n);- case "angleAxis": return UK(e, n);- case "radiusAxis": return WK(e, n);+ case "xAxis": return EX(e, n);+ case "yAxis": return kX(e, n);+ case "angleAxis": return HK(e, n);+ case "radiusAxis": return UK(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, PX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");-function FX(e, t) {+}, NX = (e) => e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");+function PX(e, t) {return (n) => {switch (e) {case "xAxis": return "xAxisId" in n && n.xAxisId === t;@@ -61075,58 +61066,58 @@ function FX(e, t) {}};}-var IX = (e) => e.graphicalItems.cartesianItems, Gke = $([QK, $K], FX), LX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), RX = $([- IX,- MX,- Gke-], LX, { memoizeOptions: { resultEqualityCheck: iq } }), zX = $([RX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(nq)), BX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Kke = $([RX], BX), VX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), qke = $([RX], VX, { memoizeOptions: { resultEqualityCheck: iq } }), HX = (e, t) => {+var FX = (e) => e.graphicalItems.cartesianItems, Wke = $([ZK, QK], PX), IX = (e, t, n) => e.filter(n).filter((e) => t?.includeHidden === !0 || !e.hide), LX = $([+ FX,+ jX,+ Wke+], IX, { memoizeOptions: { resultEqualityCheck: rq } }), RX = $([LX], (e) => e.filter((e) => e.type === "area" || e.type === "bar").filter(tq)), zX = (e) => e.filter((e) => !("stackId" in e) || e.stackId === void 0), Gke = $([LX], zX), BX = (e) => e.map((e) => e.data).filter(Boolean).flat(1), Kke = $([LX], BX, { memoizeOptions: { resultEqualityCheck: rq } }), VX = (e, t) => {var { chartData: n = [], dataStartIndex: r, dataEndIndex: i } = t;return e.length > 0 ? e : n.slice(r, i + 1);-}, UX = $([qke, uK], HX), WX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: uU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: uU(e, t.dataKey) })), GX = $([- UX,- MX,- RX-], WX);-function KX(e) {- if (eB(e) || e instanceof Date) {+}, HX = $([Kke, lK], VX), UX = (e, t, n) => t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: lU(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: lU(e, t.dataKey) })), WX = $([+ HX,+ jX,+ LX+], UX);+function GX(e) {+ if ($z(e) || e instanceof Date) {var t = Number(e);- if (oU(t)) return t;+ if (aU(t)) return t;}}-function qX(e) {+function KX(e) {if (Array.isArray(e)) {- var t = [KX(e[0]), KX(e[1])];- return fK(t) ? t : void 0;+ var t = [GX(e[0]), GX(e[1])];+ return dK(t) ? t : void 0;}- var n = KX(e);+ var n = GX(e);if (n != null) return [n, n];}-function JX(e) {- return e.map(KX).filter(cB);+function qX(e) {+ return e.map(GX).filter(sB);}-function Jke(e, t) {- var n = KX(e), r = KX(t);+function qke(e, t) {+ var n = GX(e), r = GX(t);return n == null && r == null ? 0 : n == null ? -1 : r == null ? 1 : n - r;}-var Yke = $([GX], (e) => e?.map((e) => e.value).sort(Jke));-function YX(e, t) {+var Jke = $([WX], (e) => e?.map((e) => e.value).sort(qke));+function JX(e, t) {switch (e) {case "xAxis": return t.direction === "x";case "yAxis": return t.direction === "y";default: return !1;}}-function Xke(e, t, n) {- return !n || typeof t != "number" || Qz(t) || !n.length ? [] : JX(n.flatMap((n) => {- var r = uU(e, n.dataKey), i, a;- if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!oU(i) || !oU(a))) return [t - i, t + a];+function Yke(e, t, n) {+ return !n || typeof t != "number" || Zz(t) || !n.length ? [] : qX(n.flatMap((n) => {+ var r = lU(e, n.dataKey), i, a;+ if (Array.isArray(r) ? [i, a] = r : i = a = r, !(!aU(i) || !aU(a))) return [t - i, t + a];}));}-var XX = (e) => NX(e, aq(e), oq(e)), ZX = $([XX], (e) => e?.dataKey), Zke = $([- zX,- uK,- XX-], tq), QX = (e, t, n, r) => {+var YX = (e) => MX(e, iq(e), aq(e)), XX = $([YX], (e) => e?.dataKey), Xke = $([+ RX,+ lK,+ YX+], eq), ZX = (e, t, n, r) => {var i = t.reduce((e, t) => {if (t.stackId == null) return e;var n = e[t.stackId];@@ -61135,168 +61126,168 @@ var XX = (e) => NX(e, aq(e), oq(e)), ZX = $([XX], (e) => e?.dataKey), Zke = $([return Object.fromEntries(Object.entries(i).map((t) => {var [i, a] = t, o = r ? [...a].reverse() : a;return [i, {- stackedData: ZCe(e, o.map(eq), n),+ stackedData: XCe(e, o.map($K), n),graphicalItems: o}];}));-}, $X = $([- Zke,- zX,- OK,- kK-], QX), eZ = (e, t, n, r) => {+}, QX = $([+ Xke,+ RX,+ DK,+ OK+], ZX), $X = (e, t, n, r) => {var { dataStartIndex: i, dataEndIndex: a } = t;if (r == null && n !== "zAxis") {- var o = ewe(e, i, a);+ var o = $Ce(e, i, a);if (o == null || o[0] !== 0 || o[1] !== 0) return o;}-}, Qke = $([MX], (e) => e.allowDataOverflow), tZ = (e) => {- if (e == null || !("domain" in e)) return wX;+}, Zke = $([jX], (e) => e.allowDataOverflow), eZ = (e) => {+ if (e == null || !("domain" in e)) return CX;if (e.domain != null) return e.domain;if ("ticks" in e && e.ticks != null) {if (e.type === "number") {- var t = JX(e.ticks);+ var t = qX(e.ticks);return [Math.min(...t), Math.max(...t)];}if (e.type === "category") return e.ticks.map(String);}- return e?.domain ?? wX;-}, nZ = $([MX], tZ), rZ = $([nZ, Qke], mK), $ke = $([- $X,- cK,- QK,- rZ-], eZ, { memoizeOptions: { resultEqualityCheck: rq } }), iZ = (e) => e.errorBars, eAe = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => YX(n, e)), aZ = function() {+ return e?.domain ?? CX;+}, tZ = $([jX], eZ), nZ = $([tZ, Zke], pK), Qke = $([+ QX,+ sK,+ ZK,+ nZ+], $X, { memoizeOptions: { resultEqualityCheck: nq } }), rZ = (e) => e.errorBars, $ke = (e, t, n) => e.flatMap((e) => t[e.id]).filter(Boolean).filter((e) => JX(n, e)), iZ = function() {var e = [...arguments].filter(Boolean);if (e.length !== 0) {var t = e.flat();return [Math.min(...t), Math.max(...t)];}-}, oZ = (e, t, n, r, i) => {+}, aZ = (e, t, n, r, i) => {var a, o;if (n.length > 0 && e.forEach((e) => {n.forEach((n) => {- var s = r[n.id]?.filter((e) => YX(i, e)), c = uU(e, t.dataKey ?? n.dataKey), l = Xke(e, c, s);+ var s = r[n.id]?.filter((e) => JX(i, e)), c = lU(e, t.dataKey ?? n.dataKey), l = Yke(e, c, s);if (l.length >= 2) {var u = Math.min(...l), d = Math.max(...l);(a == null || u < a) && (a = u), (o == null || d > o) && (o = d);}- var f = qX(c);+ var f = KX(c);f != null && (a = a == null ? f[0] : Math.min(a, f[0]), o = o == null ? f[1] : Math.max(o, f[1]));});}), t?.dataKey != null && e.forEach((e) => {- var n = qX(uU(e, t.dataKey));+ var n = KX(lU(e, t.dataKey));n != null && (a = a == null ? n[0] : Math.min(a, n[0]), o = o == null ? n[1] : Math.max(o, n[1]));- }), oU(a) && oU(o)) return [a, o];-}, tAe = $([- UX,- MX,- Kke,- iZ,- QK-], oZ, { memoizeOptions: { resultEqualityCheck: rq } });-function nAe(e) {+ }), aU(a) && aU(o)) return [a, o];+}, eAe = $([+ HX,+ jX,+ Gke,+ rZ,+ ZK+], aZ, { memoizeOptions: { resultEqualityCheck: nq } });+function tAe(e) {var { value: t } = e;- if (eB(t) || t instanceof Date) return t;-}-var rAe = (e, t, n) => {- var r = e.map(nAe).filter((e) => e != null);- return n && (t.dataKey == null || t.allowDuplicatedCategory && rB(r)) ? sK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));-}, sZ = (e) => e.referenceElements.dots, cZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), iAe = $([- sZ,- QK,- $K-], cZ), lZ = (e) => e.referenceElements.areas, aAe = $([+ if ($z(t) || t instanceof Date) return t;+}+var nAe = (e, t, n) => {+ var r = e.map(tAe).filter((e) => e != null);+ return n && (t.dataKey == null || t.allowDuplicatedCategory && nB(r)) ? oK(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));+}, oZ = (e) => e.referenceElements.dots, sZ = (e, t, n) => e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n), rAe = $([+ oZ,+ ZK,+ QK+], sZ), cZ = (e) => e.referenceElements.areas, iAe = $([+ cZ,+ ZK,+ QK+], sZ), lZ = (e) => e.referenceElements.lines, aAe = $([lZ,- QK,- $K-], cZ), uZ = (e) => e.referenceElements.lines, oAe = $([- uZ,- QK,- $K-], cZ), dZ = (e, t) => {+ ZK,+ QK+], sZ), uZ = (e, t) => {if (e != null) {- var n = JX(e.map((e) => t === "xAxis" ? e.x : e.y));+ var n = qX(e.map((e) => t === "xAxis" ? e.x : e.y));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, sAe = $(iAe, QK, dZ), fZ = (e, t) => {+}, oAe = $(rAe, ZK, uZ), dZ = (e, t) => {if (e != null) {- var n = JX(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));+ var n = qX(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, cAe = $([aAe, QK], fZ);-function lAe(e) {- if (e.x != null) return JX([e.x]);+}, sAe = $([iAe, ZK], dZ);+function cAe(e) {+ if (e.x != null) return qX([e.x]);var t = e.segment?.map((e) => e.x);- return t == null || t.length === 0 ? [] : JX(t);+ return t == null || t.length === 0 ? [] : qX(t);}-function uAe(e) {- if (e.y != null) return JX([e.y]);+function lAe(e) {+ if (e.y != null) return qX([e.y]);var t = e.segment?.map((e) => e.y);- return t == null || t.length === 0 ? [] : JX(t);+ return t == null || t.length === 0 ? [] : qX(t);}-var pZ = (e, t) => {+var fZ = (e, t) => {if (e != null) {- var n = e.flatMap((e) => t === "xAxis" ? lAe(e) : uAe(e));+ var n = e.flatMap((e) => t === "xAxis" ? cAe(e) : lAe(e));if (n.length !== 0) return [Math.min(...n), Math.max(...n)];}-}, dAe = $(sAe, $([oAe, QK], pZ), cAe, (e, t, n) => aZ(e, n, t)), mZ = (e, t, n, r, i, a, o, s) => n ?? iDe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? aZ(r, a, i) : aZ(a, i), e.allowDataOverflow), fAe = $([- MX,+}, uAe = $(oAe, $([aAe, ZK], fZ), sAe, (e, t, n) => iZ(e, n, t)), pZ = (e, t, n, r, i, a, o, s) => n ?? rDe(t, o === "vertical" && s === "xAxis" || o === "horizontal" && s === "yAxis" ? iZ(r, a, i) : iZ(a, i), e.allowDataOverflow), dAe = $([+ jX,+ tZ,nZ,- rZ,- $ke,- tAe,- dAe,- ZU,- QK-], mZ, { memoizeOptions: { resultEqualityCheck: rq } }), pAe = [0, 1], hZ = (e, t, n, r, i, a, o) => {+ Qke,+ eAe,+ uAe,+ XU,+ ZK+], pZ, { memoizeOptions: { resultEqualityCheck: nq } }), fAe = [0, 1], mZ = (e, t, n, r, i, a, o) => {if (e != null && n != null && n.length !== 0 || o !== void 0) {- var { dataKey: s, type: c } = e, l = dU(t, a);- return l && s == null ? sK(0, n?.length ?? 0) : c === "category" ? rAe(r, e, l) : i === "expand" ? pAe : o;- }-}, gZ = $([- MX,- ZU,- UX,- GX,- OK,- QK,- fAe-], hZ), _Z = $([- MX,- PX,- AK-], bX), vZ = (e, t, n) => {+ var { dataKey: s, type: c } = e, l = uU(t, a);+ return l && s == null ? oK(0, n?.length ?? 0) : c === "category" ? nAe(r, e, l) : i === "expand" ? fAe : o;+ }+}, hZ = $([+ jX,+ XU,+ HX,+ WX,+ DK,+ ZK,+ dAe+], mZ), gZ = $([+ jX,+ NX,+ kK+], yX), _Z = (e, t, n) => {var { niceTicks: r } = t;if (r !== "none") {- var i = tZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");- if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && fK(e)) {- if (a) return SK(e, t.tickCount, t.allowDecimals, r);- if (t.type === "number") return CK(e, t.tickCount, t.allowDecimals, r);+ var i = eZ(t), a = Array.isArray(i) && (i[0] === "auto" || i[1] === "auto");+ if ((r === "snap125" || r === "adaptive") && t != null && t.tickCount && dK(e)) {+ if (a) return xK(e, t.tickCount, t.allowDecimals, r);+ if (t.type === "number") return SK(e, t.tickCount, t.allowDecimals, r);}if (r === "auto" && n === "linear" && t != null && t.tickCount) {- if (a && fK(e)) return SK(e, t.tickCount, t.allowDecimals, "adaptive");- if (t.type === "number" && fK(e)) return CK(e, t.tickCount, t.allowDecimals, "adaptive");+ if (a && dK(e)) return xK(e, t.tickCount, t.allowDecimals, "adaptive");+ if (t.type === "number" && dK(e)) return SK(e, t.tickCount, t.allowDecimals, "adaptive");}}-}, yZ = $([- gZ,- NX,- _Z-], vZ), bZ = (e, t, n, r) => {- if (r !== "angleAxis" && e?.type === "number" && fK(t) && Array.isArray(n) && n.length > 0) {+}, vZ = $([+ hZ,+ MX,+ gZ+], _Z), yZ = (e, t, n, r) => {+ if (r !== "angleAxis" && e?.type === "number" && dK(t) && Array.isArray(n) && n.length > 0) {var i = t[0], a = n[0] ?? 0, o = t[1], s = n[n.length - 1] ?? 0;return [Math.min(i, a), Math.max(o, s)];}return t;-}, mAe = $([- MX,- gZ,- yZ,- QK-], bZ), xZ = $($(GX, MX, (e, t) => {+}, pAe = $([+ jX,+ hZ,+ vZ,+ ZK+], yZ), bZ = $($(WX, jX, (e, t) => {if (!(!t || t.type !== "number")) {- var n = Infinity, r = Array.from(JX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];+ var n = Infinity, r = Array.from(qX(e.map((e) => e.value))).sort((e, t) => e - t), i = r[0], a = r[r.length - 1];if (i == null || a == null) return Infinity;var o = a - i;if (o === 0) return Infinity;@@ -61309,22 +61300,22 @@ var pZ = (e, t) => {}return n / o;}-}), ZU, EK, jU, (e, t, n, r, i) => i, (e, t, n, r, i) => {- if (!oU(e)) return 0;+}), XU, TK, AU, (e, t, n, r, i) => i, (e, t, n, r, i) => {+ if (!aU(e)) return 0;var a = t === "vertical" ? r.height : r.width;if (i === "gap") return e * a / 2;if (i === "no-gap") {- var o = nB(n, e * a), s = e * a / 2;+ var o = tB(n, e * a), s = e * a / 2;return s - o - (s - o) / a * o;}return 0;-}), hAe = (e, t, n) => {- var r = DX(e, t);- return r == null || typeof r.padding != "string" ? 0 : xZ(e, "xAxis", t, n, r.padding);-}, gAe = (e, t, n) => {- var r = AX(e, t);- return r == null || typeof r.padding != "string" ? 0 : xZ(e, "yAxis", t, n, r.padding);-}, _Ae = $(DX, hAe, (e, t) => {+}), mAe = (e, t, n) => {+ var r = EX(e, t);+ return r == null || typeof r.padding != "string" ? 0 : bZ(e, "xAxis", t, n, r.padding);+}, hAe = (e, t, n) => {+ var r = kX(e, t);+ return r == null || typeof r.padding != "string" ? 0 : bZ(e, "yAxis", t, n, r.padding);+}, gAe = $(EX, mAe, (e, t) => {if (e == null) return {left: 0,right: 0@@ -61337,7 +61328,7 @@ var pZ = (e, t) => {left: (n.left ?? 0) + t,right: (n.right ?? 0) + t};-}), vAe = $(AX, gAe, (e, t) => {+}), _Ae = $(kX, hAe, (e, t) => {if (e == null) return {top: 0,bottom: 0@@ -61350,98 +61341,98 @@ var pZ = (e, t) => {top: (n.top ?? 0) + t,bottom: (n.bottom ?? 0) + t};-}), yAe = $([- jU,- _Ae,- FU,+}), vAe = $([+ AU,+ gAe,PU,+ NU,(e, t, n) => n], (e, t, n, r, i) => {var { padding: a } = r;return i ? [a.left, n.width - a.right] : [e.left + t.left, e.left + e.width - t.right];-}), bAe = $([- jU,- ZU,- vAe,- FU,+}), yAe = $([+ AU,+ XU,+ _Ae,PU,+ NU,(e, t, n) => n], (e, t, n, r, i, a) => {var { padding: o } = i;return a ? [r.height - o.bottom, o.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom];-}), SZ = (e, t, n, r) => {+}), xZ = (e, t, n, r) => {switch (t) {- case "xAxis": return yAe(e, n, r);- case "yAxis": return bAe(e, n, r);- case "zAxis": return jX(e, n)?.range;- case "angleAxis": return YK(e);- case "radiusAxis": return XK(e, n);+ case "xAxis": return vAe(e, n, r);+ case "yAxis": return yAe(e, n, r);+ case "zAxis": return AX(e, n)?.range;+ case "angleAxis": return JK(e);+ case "radiusAxis": return YK(e, n);default: return;}-}, CZ = $([MX, SZ], LK), wZ = $([- MX,- _Z,- $([_Z, mAe], cq),- CZ-], yX), TZ = (e, t, n, r) => {+}, SZ = $([jX, xZ], IK), CZ = $([+ jX,+ gZ,+ $([gZ, pAe], sq),+ SZ+], vX), wZ = (e, t, n, r) => {if (n != null && n.dataKey != null) {var { type: i, scale: a } = n;- if (dU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);+ if (uU(e, r) && (i === "number" || a !== "auto")) return t.map((e) => e.value);}-}, EZ = $([- ZU,- GX,- NX,- QK-], TZ), DZ = $([wZ], sq);-$([wZ], zke), $([wZ, Yke], xX), $([- RX,- iZ,- QK-], eAe);-function OZ(e, t) {+}, TZ = $([+ XU,+ WX,+ MX,+ ZK+], wZ), EZ = $([CZ], oq);+$([CZ], Rke), $([CZ, Jke], bX), $([+ LX,+ rZ,+ ZK+], $ke);+function DZ(e, t) {return e.id < t.id ? -1 : +(e.id > t.id);}-var kZ = (e, t) => t, AZ = (e, t, n) => n, xAe = $(DU, kZ, AZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(OZ)), SAe = $(OU, kZ, AZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(OZ)), jZ = (e, t) => ({+var OZ = (e, t) => t, kZ = (e, t, n) => n, bAe = $(EU, OZ, kZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(DZ)), xAe = $(DU, OZ, kZ, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(DZ)), AZ = (e, t) => ({width: e.width,height: t.height-}), CAe = (e, t) => ({+}), SAe = (e, t) => ({width: typeof t.width == "number" ? t.width : 60,height: e.height-}), MZ = $(jU, DX, jZ), wAe = (e, t, n) => {+}), jZ = $(AU, EX, AZ), CAe = (e, t, n) => {switch (t) {case "top": return e.top;case "bottom": return n - e.bottom;default: return 0;}-}, TAe = (e, t, n) => {+}, wAe = (e, t, n) => {switch (t) {case "left": return e.left;case "right": return n - e.right;default: return 0;}-}, EAe = $(TU, jU, xAe, kZ, AZ, (e, t, n, r, i) => {+}, TAe = $(wU, AU, bAe, OZ, kZ, (e, t, n, r, i) => {var a = {}, o;return n.forEach((n) => {- var s = jZ(t, n);- o ??= wAe(t, r, e);+ var s = AZ(t, n);+ o ??= CAe(t, r, e);var c = r === "top" && !i || r === "bottom" && i;a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;}), a;-}), DAe = $(wU, jU, SAe, kZ, AZ, (e, t, n, r, i) => {+}), EAe = $(CU, AU, xAe, OZ, kZ, (e, t, n, r, i) => {var a = {}, o;return n.forEach((n) => {- var s = CAe(t, n);- o ??= TAe(t, r, e);+ var s = SAe(t, n);+ o ??= wAe(t, r, e);var c = r === "left" && !i || r === "right" && i;a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;}), a;-}), OAe = $([- jU,- DX,+}), DAe = $([+ AU,+ EX,(e, t) => {- var n = DX(e, t);- if (n != null) return EAe(e, n.orientation, n.mirror);+ var n = EX(e, t);+ if (n != null) return TAe(e, n.orientation, n.mirror);},(e, t) => t], (e, t, n, r) => {@@ -61455,12 +61446,12 @@ var kZ = (e, t) => t, AZ = (e, t, n) => n, xAe = $(DU, kZ, AZ, (e, t, n) => e.fiy: i};}-}), kAe = $([- jU,- AX,+}), OAe = $([+ AU,+ kX,(e, t) => {- var n = AX(e, t);- if (n != null) return DAe(e, n.orientation, n.mirror);+ var n = kX(e, t);+ if (n != null) return EAe(e, n.orientation, n.mirror);},(e, t) => t], (e, t, n, r) => {@@ -61474,38 +61465,38 @@ var kZ = (e, t) => t, AZ = (e, t, n) => n, xAe = $(DU, kZ, AZ, (e, t, n) => e.fiy: e.top};}-}), NZ = $(jU, AX, (e, t) => ({+}), MZ = $(AU, kX, (e, t) => ({width: typeof t.width == "number" ? t.width : 60,height: e.height-})), PZ = (e, t, n) => {+})), NZ = (e, t, n) => {switch (t) {- case "xAxis": return MZ(e, n).width;- case "yAxis": return NZ(e, n).height;+ case "xAxis": return jZ(e, n).width;+ case "yAxis": return MZ(e, n).height;default: return;}-}, FZ = (e, t, n, r) => {+}, PZ = (e, t, n, r) => {if (n != null) {- var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = dU(e, r), c = t.map((e) => e.value);- if (o && s && a === "category" && i && rB(c)) return c;+ var { allowDuplicatedCategory: i, type: a, dataKey: o } = n, s = uU(e, r), c = t.map((e) => e.value);+ if (o && s && a === "category" && i && nB(c)) return c;}-}, IZ = $([- ZU,- GX,- MX,- QK-], FZ), LZ = $([- ZU,- Wke,- _Z,- DZ,- IZ,+}, FZ = $([+ XU,+ WX,+ jX,+ ZK+], PZ), IZ = $([+ XU,+ Uke,+ gZ,EZ,- SZ,- yZ,- QK+ FZ,+ TZ,+ xZ,+ vZ,+ ZK], (e, t, n, r, i, a, o, s, c) => {if (t != null) {- var l = dU(e, c);+ var l = uU(e, c);return {angle: t.angle,interval: t.interval,@@ -61527,107 +61518,107 @@ var kZ = (e, t) => t, AZ = (e, t, n) => n, xAe = $(DU, kZ, AZ, (e, t, n) => e.fiscale: r};}-}), RZ = (e, t, n, r, i, a, o, s, c) => {+}), LZ = (e, t, n, r, i, a, o, s, c) => {if (t != null && r != null) {- var l = dU(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;- m = c === "angleAxis" && a != null && a.length >= 2 ? Zz(a[0] - a[1]) * 2 * m : m;+ var l = uU(e, c), { type: u, ticks: d, tickCount: f } = t, p = n === "scaleBand" && typeof r.bandwidth == "function" ? r.bandwidth() / 2 : 2, m = u === "category" && r.bandwidth ? r.bandwidth() / p : 0;+ m = c === "angleAxis" && a != null && a.length >= 2 ? Xz(a[0] - a[1]) * 2 * m : m;var h = d || i;return h ? h.map((e, t) => {var n = o ? o.indexOf(e) : e, i = r.map(n);- return oU(i) ? {+ return aU(i) ? {index: t,coordinate: i + m,value: e,offset: m} : null;- }).filter(cB) : l && s ? s.map((e, t) => {+ }).filter(sB) : l && s ? s.map((e, t) => {var n = r.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + m,value: e,index: t,offset: m} : null;- }).filter(cB) : r.ticks ? r.ticks(f).map((e, t) => {+ }).filter(sB) : r.ticks ? r.ticks(f).map((e, t) => {var n = r.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + m,value: e,index: t,offset: m} : null;- }).filter(cB) : r.domain().map((e, t) => {+ }).filter(sB) : r.domain().map((e, t) => {var n = r.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + m,value: o ? o[e] : e,index: t,offset: m} : null;- }).filter(cB);+ }).filter(sB);}-}, zZ = $([- ZU,- NX,- _Z,- DZ,- yZ,- SZ,- IZ,+}, RZ = $([+ XU,+ MX,+ gZ,EZ,- QK-], RZ), BZ = (e, t, n, r, i, a, o) => {+ vZ,+ xZ,+ FZ,+ TZ,+ ZK+], LZ), zZ = (e, t, n, r, i, a, o) => {if (t != null && n != null && r != null && r[0] !== r[1]) {- var s = dU(e, o), { tickCount: c } = t, l = 0;- return l = o === "angleAxis" && r?.length >= 2 ? Zz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {+ var s = uU(e, o), { tickCount: c } = t, l = 0;+ return l = o === "angleAxis" && r?.length >= 2 ? Xz(r[0] - r[1]) * 2 * l : l, s && a ? a.map((e, t) => {var r = n.map(e);- return oU(r) ? {+ return aU(r) ? {coordinate: r + l,value: e,index: t,offset: l} : null;- }).filter(cB) : n.ticks ? n.ticks(c).map((e, t) => {+ }).filter(sB) : n.ticks ? n.ticks(c).map((e, t) => {var r = n.map(e);- return oU(r) ? {+ return aU(r) ? {coordinate: r + l,value: e,index: t,offset: l} : null;- }).filter(cB) : n.domain().map((e, t) => {+ }).filter(sB) : n.domain().map((e, t) => {var r = n.map(e);- return oU(r) ? {+ return aU(r) ? {coordinate: r + l,value: i ? i[e] : e,index: t,offset: l} : null;- }).filter(cB);+ }).filter(sB);}-}, VZ = $([- ZU,- NX,- DZ,- SZ,- IZ,+}, BZ = $([+ XU,+ MX,EZ,- QK-], BZ), HZ = $(MX, DZ, (e, t) => {- if (e != null && t != null) return CX(CX({}, e), {}, { scale: t });+ xZ,+ FZ,+ TZ,+ ZK+], zZ), VZ = $(jX, EZ, (e, t) => {+ if (e != null && t != null) return SX(SX({}, e), {}, { scale: t });});-$((e, t, n) => jX(e, n), $([$([- MX,- _Z,+$((e, t, n) => AX(e, n), $([$([+ jX,gZ,- CZ-], yX)], sq), (e, t) => {- if (e != null && t != null) return CX(CX({}, e), {}, { scale: t });+ hZ,+ SZ+], vX)], oq), (e, t) => {+ if (e != null && t != null) return SX(SX({}, e), {}, { scale: t });});-var AAe = $([- ZU,- DU,- OU+var kAe = $([+ XU,+ EU,+ DU], (e, t, n) => {switch (e) {case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";@@ -61649,41 +61640,41 @@ $([(e, t, n) => e.renderedTicks[t]?.[n]], (e) => {});//#endregion//#region node_modules/recharts/es6/state/selectors/selectTooltipEventType.js-var UZ = (e) => e.options.defaultTooltipEventType, WZ = (e) => e.options.validateTooltipEventTypes;-function GZ(e, t, n) {+var HZ = (e) => e.options.defaultTooltipEventType, UZ = (e) => e.options.validateTooltipEventTypes;+function WZ(e, t, n) {if (e == null) return t;var r = e ? "axis" : "item";return n == null ? t : n.includes(r) ? r : t;}-function KZ(e, t) {- return GZ(t, UZ(e), WZ(e));+function GZ(e, t) {+ return WZ(t, HZ(e), UZ(e));}-function jAe(e) {- return Q((t) => KZ(t, e));+function AAe(e) {+ return Q((t) => GZ(t, e));}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js-var qZ = (e, t) => {+var KZ = (e, t) => {var n, r = Number(t);- if (!(Qz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;-}, MAe = (e) => e.tooltip.settings, JZ = {+ if (!(Zz(r) || t == null)) return r >= 0 ? e == null || (n = e[r]) == null ? void 0 : n.value : void 0;+}, jAe = (e) => e.tooltip.settings, qZ = {active: !1,index: null,dataKey: void 0,graphicalItemId: void 0,coordinate: void 0-}, YZ = jH({+}, JZ = AH({name: "tooltip",initialState: {itemInteraction: {- click: JZ,- hover: JZ+ click: qZ,+ hover: qZ},axisInteraction: {- click: JZ,- hover: JZ+ click: qZ,+ hover: qZ},- keyboardInteraction: JZ,+ keyboardInteraction: qZ,syncInteraction: {active: !1,index: null,@@ -61705,23 +61696,23 @@ var qZ = (e, t) => {reducers: {addTooltipEntrySettings: {reducer(e, t) {- e.tooltipItemPayloads.push(HW(t.payload));+ e.tooltipItemPayloads.push(VW(t.payload));},- prepare: DH()+ prepare: EH()},replaceTooltipEntrySettings: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = vH(e).tooltipItemPayloads.indexOf(HW(n));- i > -1 && (e.tooltipItemPayloads[i] = HW(r));+ var { prev: n, next: r } = t.payload, i = _H(e).tooltipItemPayloads.indexOf(VW(n));+ i > -1 && (e.tooltipItemPayloads[i] = VW(r));},- prepare: DH()+ prepare: EH()},removeTooltipEntrySettings: {reducer(e, t) {- var n = vH(e).tooltipItemPayloads.indexOf(HW(t.payload));+ var n = _H(e).tooltipItemPayloads.indexOf(VW(t.payload));n > -1 && e.tooltipItemPayloads.splice(n, 1);},- prepare: DH()+ prepare: EH()},setTooltipSettingsState(e, t) {e.settings = t.payload;@@ -61751,10 +61742,10 @@ var qZ = (e, t) => {e.keyboardInteraction.active = t.payload.active, e.keyboardInteraction.index = t.payload.activeIndex, e.keyboardInteraction.coordinate = t.payload.activeCoordinate;}}-}), { addTooltipEntrySettings: NAe, replaceTooltipEntrySettings: PAe, removeTooltipEntrySettings: FAe, setTooltipSettingsState: IAe, setActiveMouseOverItemIndex: XZ, mouseLeaveItem: LAe, mouseLeaveChart: ZZ, setActiveClickItemIndex: RAe, setMouseOverAxisIndex: QZ, setMouseClickAxisIndex: zAe, setSyncInteraction: $Z, setKeyboardInteraction: eQ } = YZ.actions, BAe = YZ.reducer;+}), { addTooltipEntrySettings: MAe, replaceTooltipEntrySettings: NAe, removeTooltipEntrySettings: PAe, setTooltipSettingsState: FAe, setActiveMouseOverItemIndex: YZ, mouseLeaveItem: IAe, mouseLeaveChart: XZ, setActiveClickItemIndex: LAe, setMouseOverAxisIndex: ZZ, setMouseClickAxisIndex: RAe, setSyncInteraction: QZ, setKeyboardInteraction: $Z } = JZ.actions, zAe = JZ.reducer;//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js-function tQ(e, t) {+function eQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -61764,30 +61755,30 @@ function tQ(e, t) {}return n;}-function nQ(e) {+function tQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? tQ(Object(n), !0).forEach(function(t) {- VAe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tQ(Object(n)).forEach(function(t) {+ t % 2 ? eQ(Object(n), !0).forEach(function(t) {+ BAe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : eQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function VAe(e, t, n) {- return (t = HAe(t)) in e ? Object.defineProperty(e, t, {+function BAe(e, t, n) {+ return (t = VAe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function HAe(e) {- var t = UAe(e, "string");+function VAe(e) {+ var t = HAe(e, "string");return typeof t == "symbol" ? t : t + "";}-function UAe(e, t) {+function HAe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61797,22 +61788,22 @@ function UAe(e, t) {}return (t === "string" ? String : Number)(e);}-function WAe(e, t, n) {+function UAe(e, t, n) {return t === "axis" ? n === "click" ? e.axisInteraction.click : e.axisInteraction.hover : n === "click" ? e.itemInteraction.click : e.itemInteraction.hover;}-function GAe(e) {+function WAe(e) {return e.index != null;}-var rQ = (e, t, n, r) => {- if (t == null) return JZ;- var i = WAe(e, t, n);- if (i == null) return JZ;+var nQ = (e, t, n, r) => {+ if (t == null) return qZ;+ var i = UAe(e, t, n);+ if (i == null) return qZ;if (i.active) return i;if (e.keyboardInteraction.active) return e.keyboardInteraction;if (e.syncInteraction.active && e.syncInteraction.index != null) return e.syncInteraction;var a = e.settings.active === !0;- if (GAe(i)) {- if (a) return nQ(nQ({}, i), {}, { active: !0 });+ if (WAe(i)) {+ if (a) return tQ(tQ({}, i), {}, { active: !0 });} else if (r != null) return {active: !0,coordinate: void 0,@@ -61820,11 +61811,11 @@ var rQ = (e, t, n, r) => {index: r,graphicalItemId: void 0};- return nQ(nQ({}, JZ), {}, { coordinate: i.coordinate });+ return tQ(tQ({}, qZ), {}, { coordinate: i.coordinate });};//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js-function KAe(e) {+function GAe(e) {if (typeof e == "number") return Number.isFinite(e) ? e : void 0;if (e instanceof Date) {var t = e.valueOf();@@ -61833,25 +61824,25 @@ function KAe(e) {var n = Number(e);return Number.isFinite(n) ? n : void 0;}-function qAe(e, t) {- var n = KAe(e), r = t[0], i = t[1];+function KAe(e, t) {+ var n = GAe(e), r = t[0], i = t[1];return n !== void 0 && n >= Math.min(r, i) && n <= Math.max(r, i);}-function JAe(e, t, n) {+function qAe(e, t, n) {if (n == null || t == null) return !0;- var r = uU(e, t);- return r == null || !fK(n) || qAe(r, n);+ var r = lU(e, t);+ return r == null || !dK(n) || KAe(r, n);}-var iQ = (e, t, n, r) => {+var rQ = (e, t, n, r) => {var i = e?.index;if (i == null) return null;var a = Number(i);- if (!oU(a)) return i;+ if (!aU(a)) return i;var o = 0, s = Infinity;t.length > 0 && (s = t.length - 1);var c = Math.max(o, Math.min(a, s)), l = t[c];- return l == null || JAe(l, n, r) ? String(c) : null;-}, aQ = (e, t, n, r, i, a, o) => {+ return l == null || qAe(l, n, r) ? String(c) : null;+}, iQ = (e, t, n, r, i, a, o) => {if (a != null) {var s = o[0]?.getPosition(a);if (s != null) return s;@@ -61867,7 +61858,7 @@ var iQ = (e, t, n, r) => {};}}-}, oQ = (e, t, n, r) => {+}, aQ = (e, t, n, r) => {if (t === "axis") return e.tooltipItemPayloads;if (e.tooltipItemPayloads.length === 0) return [];var i = n === "hover" ? e.itemInteraction.hover.graphicalItemId : e.itemInteraction.click.graphicalItemId;@@ -61877,10 +61868,10 @@ var iQ = (e, t, n, r) => {return a == null ? [] : [a];}return e.tooltipItemPayloads.filter((e) => e.settings?.graphicalItemId === i);-}, sQ = (e) => e.options.tooltipPayloadSearcher, cQ = (e) => e.tooltip;+}, oQ = (e) => e.options.tooltipPayloadSearcher, sQ = (e) => e.tooltip;//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js-function lQ(e, t) {+function cQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -61890,30 +61881,30 @@ function lQ(e, t) {}return n;}-function uQ(e) {+function lQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? lQ(Object(n), !0).forEach(function(t) {- YAe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : lQ(Object(n)).forEach(function(t) {+ t % 2 ? cQ(Object(n), !0).forEach(function(t) {+ JAe(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : cQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function YAe(e, t, n) {- return (t = XAe(t)) in e ? Object.defineProperty(e, t, {+function JAe(e, t, n) {+ return (t = YAe(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function XAe(e) {- var t = ZAe(e, "string");+function YAe(e) {+ var t = XAe(e, "string");return typeof t == "symbol" ? t : t + "";}-function ZAe(e, t) {+function XAe(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -61923,222 +61914,222 @@ function ZAe(e, t) {}return (t === "string" ? String : Number)(e);}-function QAe(e) {+function ZAe(e) {if (typeof e == "string" || typeof e == "number") return e;}-function $Ae(e) {+function QAe(e) {if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;}-function eje(e) {+function $Ae(e) {if (typeof e == "string" || typeof e == "number") return e;if (typeof e == "function") return (t) => e(t);}-function dQ(e) {+function uQ(e) {if (typeof e == "string") return e;}-function tje(e) {+function eje(e) {if (!(typeof e != "object" || !e)) return {- name: "name" in e ? QAe(e.name) : void 0,- unit: "unit" in e ? $Ae(e.unit) : void 0,- dataKey: "dataKey" in e ? eje(e.dataKey) : void 0,+ name: "name" in e ? ZAe(e.name) : void 0,+ unit: "unit" in e ? QAe(e.unit) : void 0,+ dataKey: "dataKey" in e ? $Ae(e.dataKey) : void 0,payload: "payload" in e ? e.payload : void 0,- color: "color" in e ? dQ(e.color) : void 0,- fill: "fill" in e ? dQ(e.fill) : void 0+ color: "color" in e ? uQ(e.color) : void 0,+ fill: "fill" in e ? uQ(e.fill) : void 0};}-function nje(e, t) {+function tje(e, t) {return e ?? t;}-var fQ = (e, t, n, r, i, a, o) => {+var dQ = (e, t, n, r, i, a, o) => {if (t != null && a != null) {var { chartData: s, computedData: c, dataStartIndex: l, dataEndIndex: u } = n;return e.reduce((e, n) => {- var { dataDefinedOnItem: d, settings: f } = n, p = nje(d, s), m = Array.isArray(p) ? aU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? aB(m, r, i) : a(m, t, c, g);+ var { dataDefinedOnItem: d, settings: f } = n, p = tje(d, s), m = Array.isArray(p) ? iU(p, l, u) : p, h = f?.dataKey ?? r, g = f?.nameKey, _ = r && Array.isArray(m) && !Array.isArray(m[0]) && o === "axis" ? iB(m, r, i) : a(m, t, c, g);return Array.isArray(_) ? _.forEach((t) => {- var n = tje(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = uQ(uQ({}, f), {}, {+ var n = eje(t), r = n?.name, i = n?.dataKey, a = n?.payload, o = lQ(lQ({}, f), {}, {name: r,unit: n?.unit,color: n?.color ?? f?.color,fill: n?.fill ?? f?.fill});- e.push(SU({+ e.push(xU({tooltipEntrySettings: o,dataKey: i,payload: a,- value: uU(a, i),+ value: lU(a, i),name: r == null ? void 0 : String(r)}));- }) : e.push(SU({+ }) : e.push(xU({tooltipEntrySettings: f,dataKey: h,payload: _,- value: uU(_, h),- name: uU(_, g) ?? f?.name+ value: lU(_, h),+ name: lU(_, g) ?? f?.name})), e;}, []);}-}, pQ = $([- XX,- PX,- AK-], bX), mQ = $([+}, fQ = $([+ YX,+ NX,+ kK+], yX), pQ = $([$([(e) => e.graphicalItems.cartesianItems, (e) => e.graphicalItems.polarItems], (e, t) => [...e, ...t]),- XX,- $([aq, oq], FX)-], LX, { memoizeOptions: { resultEqualityCheck: iq } }), rje = $([mQ], (e) => e.filter(nq)), hQ = $([$([mQ], VX, { memoizeOptions: { resultEqualityCheck: iq } }), cK], HX), ije = $([- rje,- cK,- XX-], tq), gQ = $([- hQ,- XX,- mQ-], WX), _Q = $([XX], tZ), vQ = $([_Q, $([XX], (e) => e.allowDataOverflow)], mK), aje = $([+ YX,+ $([iq, aq], PX)+], IX, { memoizeOptions: { resultEqualityCheck: rq } }), nje = $([pQ], (e) => e.filter(tq)), mQ = $([$([pQ], BX, { memoizeOptions: { resultEqualityCheck: rq } }), sK], VX), rje = $([+ nje,+ sK,+ YX+], eq), hQ = $([+ mQ,+ YX,+ pQ+], UX), gQ = $([YX], eZ), _Q = $([gQ, $([YX], (e) => e.allowDataOverflow)], pK), ije = $([$([- ije,- $([mQ], (e) => e.filter(nq)),- OK,- kK- ], QX),- cK,- aq,- vQ-], eZ), oje = $([- hQ,- XX,- $([mQ], BX),- iZ,+ rje,+ $([pQ], (e) => e.filter(tq)),+ DK,+ OK+ ], ZX),+ sK,+ iq,+ _Q+], $X), aje = $([+ mQ,+ YX,+ $([pQ], zX),+ rZ,+ iq+], aZ, { memoizeOptions: { resultEqualityCheck: nq } }), oje = $([$([+ oZ,+ iq,aq-], oZ, { memoizeOptions: { resultEqualityCheck: rq } }), sje = $([$([- sZ,- aq,- oq-], cZ), aq], dZ), cje = $([$([- lZ,- aq,- oq-], cZ), aq], fZ), yQ = $([- XX,- ZU,+], sZ), iq], uZ), sje = $([$([+ cZ,+ iq,+ aq+], sZ), iq], dZ), vQ = $([+ YX,+ XU,+ mQ,hQ,- gQ,- OK,- aq,+ DK,+ iq,$([- XX,+ YX,+ gQ,_Q,- vQ,+ ije,aje,- oje,$([- sje,+ oje,$([$([- uZ,- aq,- oq- ], cZ), aq], pZ),- cje- ], aZ),- ZU,- aq- ], mZ)-], hZ), lje = $([- XX,- yQ,+ lZ,+ iq,+ aq+ ], sZ), iq], fZ),+ sje+ ], iZ),+ XU,+ iq+ ], pZ)+], mZ), cje = $([+ YX,+ vQ,$([- yQ,- XX,- pQ- ], vZ),- aq-], bZ), bQ = (e) => SZ(e, aq(e), oq(e), !1), xQ = $([XX, bQ], LK), SQ = $([$([- XX,- pQ,- lje,- xQ-], yX)], sq), CQ = $([- ZU,- XX,- pQ,- SQ,- bQ,+ vQ,+ YX,+ fQ+ ], _Z),+ iq+], yZ), yQ = (e) => xZ(e, iq(e), aq(e), !1), bQ = $([YX, yQ], IK), xQ = $([$([+ YX,+ fQ,+ cje,+ bQ+], vX)], oq), SQ = $([+ XU,+ YX,+ fQ,+ xQ,+ yQ,$([- ZU,- gQ,- XX,- aq- ], FZ),+ XU,+ hQ,+ YX,+ iq+ ], PZ),$([- ZU,- gQ,- XX,- aq- ], TZ),- aq+ XU,+ hQ,+ YX,+ iq+ ], wZ),+ iq], (e, t, n, r, i, a, o, s) => {if (t) {- var { type: c } = t, l = dU(e, s);+ var { type: c } = t, l = uU(e, s);if (r) {var u = n === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, d = c === "category" && r.bandwidth ? r.bandwidth() / u : 0;- return d = s === "angleAxis" && i != null && i?.length >= 2 ? Zz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {+ return d = s === "angleAxis" && i != null && i?.length >= 2 ? Xz(i[0] - i[1]) * 2 * d : d, l && o ? o.map((e, t) => {var n = r.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + d,value: e,index: t,offset: d} : null;- }).filter(cB) : r.domain().map((e, t) => {+ }).filter(sB) : r.domain().map((e, t) => {var n = r.map(e);- return oU(n) ? {+ return aU(n) ? {coordinate: n + d,value: a ? a[e] : e,index: t,offset: d} : null;- }).filter(cB);+ }).filter(sB);}}-}), wQ = $([+}), CQ = $([+ HZ,UZ,- WZ,- MAe-], (e, t, n) => GZ(n.shared, e, t)), TQ = (e) => e.tooltip.settings.trigger, EQ = (e) => e.tooltip.settings.defaultIndex, DQ = $([- cQ,+ jAe+], (e, t, n) => WZ(n.shared, e, t)), wQ = (e) => e.tooltip.settings.trigger, TQ = (e) => e.tooltip.settings.defaultIndex, EQ = $([+ sQ,+ CQ,wQ,- TQ,- EQ-], rQ), OQ = $([- DQ,- hQ,- ZX,- yQ-], iQ), kQ = $([CQ, OQ], qZ), AQ = $([DQ], (e) => {+ TQ+], nQ), DQ = $([+ EQ,+ mQ,+ XX,+ vQ+], rQ), OQ = $([SQ, DQ], KZ), kQ = $([EQ], (e) => {if (e) return e.dataKey;-}), uje = $([DQ], (e) => {+}), lje = $([EQ], (e) => {if (e) return e.graphicalItemId;-}), jQ = $([- cQ,+}), AQ = $([+ sQ,+ CQ,wQ,- TQ,- EQ-], oQ), dje = $([DQ, $([+ TQ+], aQ), uje = $([EQ, $([+ CU,wU,- TU,- ZU,- jU,- CQ,- EQ,- jQ-], aQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), fje = $([DQ], (e) => e?.active ?? !1), pje = $([$([- jQ,+ XU,+ AU,+ SQ,+ TQ,+ AQ+], iQ)], (e, t) => e != null && e.coordinate ? e.coordinate : t), dje = $([EQ], (e) => e?.active ?? !1), fje = $([$([+ AQ,+ DQ,+ sK,+ XX,OQ,- cK,- ZX,- kQ,- sQ,- wQ-], fQ)], (e) => {+ oQ,+ CQ+], dQ)], (e) => {if (e != null) {var t = e.map((e) => e.payload).filter((e) => e != null);return Array.from(new Set(t));@@ -62146,7 +62137,7 @@ var fQ = (e, t, n, r, i, a, o) => {});//#endregion//#region node_modules/recharts/es6/context/useTooltipAxis.js-function MQ(e, t) {+function jQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -62156,30 +62147,30 @@ function MQ(e, t) {}return n;}-function NQ(e) {+function MQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? MQ(Object(n), !0).forEach(function(t) {- mje(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : MQ(Object(n)).forEach(function(t) {+ t % 2 ? jQ(Object(n), !0).forEach(function(t) {+ pje(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function mje(e, t, n) {- return (t = hje(t)) in e ? Object.defineProperty(e, t, {+function pje(e, t, n) {+ return (t = mje(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function hje(e) {- var t = gje(e, "string");+function mje(e) {+ var t = hje(e, "string");return typeof t == "symbol" ? t : t + "";}-function gje(e, t) {+function hje(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -62189,13 +62180,13 @@ function gje(e, t) {}return (t === "string" ? String : Number)(e);}-var _je = () => Q(XX), vje = () => {- var e = _je(), t = Q(CQ), n = Q(SQ);- return xU(!e || !n ? void 0 : NQ(NQ({}, e), {}, { scale: n }), t);+var gje = () => Q(YX), _je = () => {+ var e = gje(), t = Q(SQ), n = Q(xQ);+ return bU(!e || !n ? void 0 : MQ(MQ({}, e), {}, { scale: n }), t);};//#endregion//#region node_modules/recharts/es6/util/getActiveCoordinate.js-function PQ(e, t) {+function NQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -62205,30 +62196,30 @@ function PQ(e, t) {}return n;}-function FQ(e) {+function PQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? PQ(Object(n), !0).forEach(function(t) {- yje(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : PQ(Object(n)).forEach(function(t) {+ t % 2 ? NQ(Object(n), !0).forEach(function(t) {+ vje(e, t, n[t]);+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : NQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}return e;}-function yje(e, t, n) {- return (t = bje(t)) in e ? Object.defineProperty(e, t, {+function vje(e, t, n) {+ return (t = yje(t)) in e ? Object.defineProperty(e, t, {value: n,enumerable: !0,configurable: !0,writable: !0}) : e[t] = n, e;}-function bje(e) {- var t = xje(e, "string");+function yje(e) {+ var t = bje(e, "string");return typeof t == "symbol" ? t : t + "";}-function xje(e, t) {+function bje(e, t) {if (typeof e != "object" || !e) return e;var n = e[Symbol.toPrimitive];if (n !== void 0) {@@ -62238,7 +62229,7 @@ function xje(e, t) {}return (t === "string" ? String : Number)(e);}-var Sje = (e, t, n, r) => {+var xje = (e, t, n, r) => {var i = t.find((e) => e && e.index === n);if (i) {if (e === "horizontal") return {@@ -62254,18 +62245,18 @@ var Sje = (e, t, n, r) => {x: 0,y: 0};-}, Cje = (e, t, n, r) => {+}, Sje = (e, t, n, r) => {var i = t.find((e) => e && e.index === n);if (i) {if (e === "centric") {var a = i.coordinate, { radius: o } = r;- return FQ(FQ(FQ({}, r), $G(r.cx, r.cy, o, a)), {}, {+ return PQ(PQ(PQ({}, r), QG(r.cx, r.cy, o, a)), {}, {angle: a,radius: o});}var s = i.coordinate, { angle: c } = r;- return FQ(FQ(FQ({}, r), $G(r.cx, r.cy, s, c)), {}, {+ return PQ(PQ(PQ({}, r), QG(r.cx, r.cy, s, c)), {}, {angle: c,radius: s});@@ -62284,19 +62275,19 @@ var Sje = (e, t, n, r) => {y: 0};};-function wje(e, t) {+function Cje(e, t) {var { relativeX: n, relativeY: r } = e;return n >= t.left && n <= t.left + t.width && r >= t.top && r <= t.top + t.height;}-var IQ = (e, t, n, r, i) => {+var FQ = (e, t, n, r, i) => {var a = t?.length ?? 0;if (a <= 1 || e == null) return 0;if (r === "angleAxis" && i != null && Math.abs(Math.abs(i[1] - i[0]) - 360) <= 1e-6) for (var o = 0; o < a; o++) {var s = o > 0 ? n[o - 1]?.coordinate : n[a - 1]?.coordinate, c = n[o]?.coordinate, l = o >= a - 1 ? n[0]?.coordinate : n[o + 1]?.coordinate, u = void 0;if (s != null && c != null && l != null) {- if (Zz(c - s) !== Zz(l - c)) {+ if (Xz(c - s) !== Xz(l - c)) {var d = [];- if (Zz(l - c) === Zz(i[1] - i[0])) {+ if (Xz(l - c) === Xz(i[1] - i[0])) {u = l;var f = c + i[1] - i[0];d[0] = Math.min(f, (f + s) / 2), d[1] = Math.max(f, (f + s) / 2);@@ -62321,78 +62312,78 @@ var IQ = (e, t, n, r, i) => {}}return -1;-}, LQ = () => Q(AK), RQ = (e, t) => t, zQ = (e, t, n) => n, BQ = (e, t, n, r) => r, Tje = $(CQ, (e) => eV(e, (e) => e.coordinate)), VQ = $([- cQ,+}, IQ = () => Q(kK), LQ = (e, t) => t, RQ = (e, t, n) => n, zQ = (e, t, n, r) => r, wje = $(SQ, (e) => $B(e, (e) => e.coordinate)), BQ = $([+ sQ,+ LQ,RQ,- zQ,- BQ-], rQ), HQ = $([- VQ,- hQ,- ZX,- yQ-], iQ), Eje = (e, t, n) => {+ zQ+], nQ), VQ = $([+ BQ,+ mQ,+ XX,+ vQ+], rQ), Tje = (e, t, n) => {if (t != null) {- var r = cQ(e);+ var r = sQ(e);return t === "axis" ? n === "hover" ? r.axisInteraction.hover.dataKey : r.axisInteraction.click.dataKey : n === "hover" ? r.itemInteraction.hover.dataKey : r.itemInteraction.click.dataKey;}-}, UQ = $([- cQ,+}, HQ = $([+ sQ,+ LQ,RQ,- zQ,- BQ-], oQ), WQ = $([+ zQ+], aQ), UQ = $([+ CU,wU,- TU,- ZU,- jU,- CQ,- BQ,- UQ-], aQ), Dje = $([VQ, WQ], (e, t) => e.coordinate ?? t), GQ = $([CQ, HQ], qZ), Oje = $([- UQ,+ XU,+ AU,+ SQ,+ zQ,+ HQ+], iQ), Eje = $([BQ, UQ], (e, t) => e.coordinate ?? t), WQ = $([SQ, VQ], KZ), Dje = $([HQ,- cK,- ZX,- GQ,- sQ,- RQ-], fQ), kje = $([VQ, HQ], (e, t) => ({+ VQ,+ sK,+ XX,+ WQ,+ oQ,+ LQ+], dQ), Oje = $([BQ, VQ], (e, t) => ({isActive: e.active && t != null,activeIndex: t-})), Aje = (e, t, n, r, i, a, o) => {- if (!(!e || !n || !r || !i) && wje(e, o)) {- var s = IQ(twe(e, t), a, i, n, r), c = Sje(t, i, s, e);+})), kje = (e, t, n, r, i, a, o) => {+ if (!(!e || !n || !r || !i) && Cje(e, o)) {+ var s = FQ(ewe(e, t), a, i, n, r), c = xje(t, i, s, e);return {activeIndex: String(s),activeCoordinate: c};}-}, jje = (e, t, n, r, i, a, o) => {+}, Aje = (e, t, n, r, i, a, o) => {if (!(!e || !r || !i || !a || !n)) {- var s = GEe(e, n);+ var s = WEe(e, n);if (s) {- var c = IQ(nwe(s, t), o, a, r, i), l = Cje(t, a, c, s);+ var c = FQ(twe(s, t), o, a, r, i), l = Sje(t, a, c, s);return {activeIndex: String(c),activeCoordinate: l};}}-}, Mje = (e, t, n, r, i, a, o, s) => {- if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? Aje(e, t, r, i, a, o, s) : jje(e, t, n, r, i, a, o);-}, Nje = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {+}, jje = (e, t, n, r, i, a, o, s) => {+ if (!(!e || !t || !r || !i || !a)) return t === "horizontal" || t === "vertical" ? kje(e, t, r, i, a, o, s) : Aje(e, t, n, r, i, a, o);+}, Mje = $((e) => e.zIndex.zIndexMap, (e, t) => t, (e, t, n) => n, (e, t, n) => {if (t != null) {var r = e[t];if (r != null) return n ? r.panoramaElement : r.element;}-}), KQ = $((e) => e.zIndex.zIndexMap, (e) => {- var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(PK));+}), Nje = $((e) => e.zIndex.zIndexMap, (e) => {+ var t = Object.keys(e).map((e) => parseInt(e, 10)).concat(Object.values(NK));return Array.from(new Set(t)).sort((e, t) => e - t);-}, { memoizeOptions: { resultEqualityCheck: fDe } });+}, { memoizeOptions: { resultEqualityCheck: dDe } });//#endregion//#region node_modules/recharts/es6/state/zIndexSlice.js-function qQ(e, t) {+function GQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -62402,12 +62393,12 @@ function qQ(e, t) {}return n;}-function JQ(e) {+function KQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? qQ(Object(n), !0).forEach(function(t) {+ t % 2 ? GQ(Object(n), !0).forEach(function(t) {Pje(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : qQ(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -62435,15 +62426,15 @@ function Ije(e, t) {}return (t === "string" ? String : Number)(e);}-var Lje = { zIndexMap: Object.values(PK).reduce((e, t) => JQ(JQ({}, e), {}, { [t]: {+var Lje = { zIndexMap: Object.values(NK).reduce((e, t) => KQ(KQ({}, e), {}, { [t]: {element: void 0,panoramaElement: void 0,consumers: 0-} }), {}) }, Rje = new Set(Object.values(PK));+} }), {}) }, Rje = new Set(Object.values(NK));function zje(e) {return Rje.has(e);}-var YQ = jH({+var qQ = AH({name: "zIndex",initialState: Lje,reducers: {@@ -62456,61 +62447,61 @@ var YQ = jH({panoramaElement: void 0};},- prepare: DH()+ prepare: EH()},unregisterZIndexPortal: {reducer: (e, t) => {var { zIndex: n } = t.payload;e.zIndexMap[n] && (--e.zIndexMap[n].consumers, e.zIndexMap[n].consumers <= 0 && !zje(n) && delete e.zIndexMap[n]);},- prepare: DH()+ prepare: EH()},registerZIndexPortalElement: {reducer: (e, t) => {var { zIndex: n, element: r, isPanorama: i } = t.payload;- e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = HW(r) : e.zIndexMap[n].element = HW(r) : e.zIndexMap[n] = {+ e.zIndexMap[n] ? i ? e.zIndexMap[n].panoramaElement = VW(r) : e.zIndexMap[n].element = VW(r) : e.zIndexMap[n] = {consumers: 0,- element: i ? void 0 : HW(r),- panoramaElement: i ? HW(r) : void 0+ element: i ? void 0 : VW(r),+ panoramaElement: i ? VW(r) : void 0};},- prepare: DH()+ prepare: EH()},unregisterZIndexPortalElement: {reducer: (e, t) => {var { zIndex: n } = t.payload;e.zIndexMap[n] && (t.payload.isPanorama ? e.zIndexMap[n].panoramaElement = void 0 : e.zIndexMap[n].element = void 0);},- prepare: DH()+ prepare: EH()}}-}), { registerZIndexPortal: Bje, unregisterZIndexPortal: Vje, registerZIndexPortalElement: Hje, unregisterZIndexPortalElement: Uje } = YQ.actions, Wje = YQ.reducer;+}), { registerZIndexPortal: Bje, unregisterZIndexPortal: Vje, registerZIndexPortalElement: Hje, unregisterZIndexPortalElement: Uje } = qQ.actions, Wje = qQ.reducer;//#endregion//#region node_modules/recharts/es6/zIndex/ZIndexLayer.js-function XQ(e) {- var { zIndex: t, children: n } = e, r = jwe() && t !== void 0 && t !== 0, i = NU(), a = KB();+function JQ(e) {+ var { zIndex: t, children: n } = e, r = Awe() && t !== void 0 && t !== 0, i = MU(), a = GB();(0, B.useLayoutEffect)(() => r ? (a(Bje({ zIndex: t })), () => {a(Vje({ zIndex: t }));- }) : lB, [+ }) : cB, [a,t,r]);- var o = Q((e) => Nje(e, t, i));+ var o = Q((e) => Mje(e, t, i));return r ? o ? /*#__PURE__*/ (0, $f.createPortal)(n, o) : null : n;}//#endregion//#region node_modules/recharts/es6/component/Cursor.js-function ZQ() {- return ZQ = Object.assign ? Object.assign.bind() : function(e) {+function YQ() {+ return YQ = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, ZQ.apply(null, arguments);+ }, YQ.apply(null, arguments);}-function QQ(e, t) {+function XQ(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -62520,12 +62511,12 @@ function QQ(e, t) {}return n;}-function $Q(e) {+function ZQ(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? QQ(Object(n), !0).forEach(function(t) {+ t % 2 ? XQ(Object(n), !0).forEach(function(t) {Gje(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : QQ(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : XQ(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -62561,10 +62552,10 @@ function Yje(e) {var { coordinate: t, payload: n, index: r, offset: i, tooltipAxisBandSize: a, layout: o, cursor: s, tooltipEventType: c, chartName: l } = e, u = t, d = n, f = r;if (!s || !u || l !== "ScatterChart" && c !== "axis") return null;var p, m, h;- if (l === "ScatterChart") p = u, m = YTe, h = PK.cursorLine;- else if (l === "BarChart") p = XTe(o, u, i, a), m = JG, h = PK.cursorRectangle;- else if (o === "radial" && hB(u)) {- var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = eK(u);+ if (l === "ScatterChart") p = u, m = JTe, h = NK.cursorLine;+ else if (l === "BarChart") p = YTe(o, u, i, a), m = qG, h = NK.cursorRectangle;+ else if (o === "radial" && mB(u)) {+ var { cx: g, cy: _, radius: v, startAngle: y, endAngle: b } = $G(u);p = {cx: g,cy: _,@@ -62572,25 +62563,25 @@ function Yje(e) {endAngle: b,innerRadius: v,outerRadius: v- }, m = aK, h = PK.cursorLine;- } else p = { points: nDe(o, u, i) }, m = xG, h = PK.cursorLine;- var x = typeof s == "object" && "className" in s ? s.className : void 0, S = $Q($Q($Q($Q({+ }, m = iK, h = NK.cursorLine;+ } else p = { points: tDe(o, u, i) }, m = bG, h = NK.cursorLine;+ var x = typeof s == "object" && "className" in s ? s.className : void 0, S = ZQ(ZQ(ZQ(ZQ({stroke: "#ccc",pointerEvents: "none"- }, i), p), WR(s)), {}, {+ }, i), p), UR(s)), {}, {payload: d,payloadIndex: f,className: _h("recharts-tooltip-cursor", x)});- return /*#__PURE__*/ B.createElement(XQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(Jje, {+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: e.zIndex ?? h }, /*#__PURE__*/ B.createElement(Jje, {cursor: s,cursorComp: m,cursorProps: S}));}function Xje(e) {- var t = vje(), n = JU(), r = QU(), i = LQ();- return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(Yje, ZQ({}, e, {+ var t = _je(), n = qU(), r = ZU(), i = IQ();+ return t == null || n == null || r == null || i == null ? null : /*#__PURE__*/ B.createElement(Yje, YQ({}, e, {offset: n,layout: r,tooltipAxisBandSize: t,@@ -62599,7 +62590,7 @@ function Xje(e) {}//#endregion//#region node_modules/recharts/es6/context/tooltipPortalContext.js-var e$ = /*#__PURE__*/ (0, B.createContext)(null), Zje = () => (0, B.useContext)(e$), Qje = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {+var QQ = /*#__PURE__*/ (0, B.createContext)(null), Zje = () => (0, B.useContext)(QQ), Qje = (/* @__PURE__ */ Tt((/* @__PURE__ */ xt(((e, t) => {var n = Object.prototype.hasOwnProperty, r = "~";function i() {}Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));@@ -62686,12 +62677,12 @@ var e$ = /*#__PURE__*/ (0, B.createContext)(null), Zje = () => (0, B.useContext)var t;return e ? (t = r ? r + e : e, this._events[t] && s(this, t)) : (this._events = new i(), this._eventsCount = 0), this;}, c.prototype.off = c.prototype.removeListener, c.prototype.addListener = c.prototype.on, c.prefixed = r, c.EventEmitter = c, t !== void 0 && (t.exports = c);-})))(), 1)).default, t$ = new Qje(), n$ = "recharts.syncEvent.tooltip", r$ = "recharts.syncEvent.brush", i$ = (e, t) => {+})))(), 1)).default, $Q = new Qje(), e$ = "recharts.syncEvent.tooltip", t$ = "recharts.syncEvent.brush", n$ = (e, t) => {if (t && Array.isArray(e)) {var n = Number.parseInt(t, 10);- if (!Qz(n)) return e[n];+ if (!Zz(n)) return e[n];}-}, a$ = jH({+}, r$ = AH({name: "options",initialState: {chartName: "",@@ -62702,13 +62693,13 @@ var e$ = /*#__PURE__*/ (0, B.createContext)(null), Zje = () => (0, B.useContext)reducers: { createEventEmitter: (e) => {e.eventEmitter ??= Symbol("rechartsEventEmitter");} }-}), $je = a$.reducer, { createEventEmitter: eMe } = a$.actions;+}), $je = r$.reducer, { createEventEmitter: eMe } = r$.actions;//#endregion//#region node_modules/recharts/es6/synchronisation/syncSelectors.jsfunction tMe(e) {return e.tooltip.syncInteraction;}-var o$ = jH({+var i$ = AH({name: "chartData",initialState: {chartData: void 0,@@ -62718,7 +62709,7 @@ var o$ = jH({},reducers: {setChartData(e, t) {- if (e.chartData = HW(t.payload), t.payload == null) {+ if (e.chartData = VW(t.payload), t.payload == null) {e.dataStartIndex = 0, e.dataEndIndex = 0;return;}@@ -62732,8 +62723,8 @@ var o$ = jH({n != null && (e.dataStartIndex = n), r != null && (e.dataEndIndex = r);}}-}), { setChartData: s$, setDataStartEndIndexes: nMe, setComputedData: rMe } = o$.actions, iMe = o$.reducer, aMe = ["x", "y"];-function c$(e, t) {+}), { setChartData: a$, setDataStartEndIndexes: nMe, setComputedData: rMe } = i$.actions, iMe = i$.reducer, aMe = ["x", "y"];+function o$(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -62743,12 +62734,12 @@ function c$(e, t) {}return n;}-function l$(e) {+function s$(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? c$(Object(n), !0).forEach(function(t) {+ t % 2 ? o$(Object(n), !0).forEach(function(t) {oMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c$(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o$(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -62795,19 +62786,19 @@ function uMe(e, t) {return n;}function dMe() {- var e = Q(jK), t = Q(NK), n = KB(), r = Q(MK), i = Q(CQ), a = QU(), o = qU(), s = Q((e) => e.rootProps.className);+ var e = Q(AK), t = Q(MK), n = GB(), r = Q(jK), i = Q(SQ), a = ZU(), o = KU(), s = Q((e) => e.rootProps.className);(0, B.useEffect)(() => {- if (e == null) return lB;+ if (e == null) return cB;var s = (s, c, l) => {if (t !== l && e === s) {if (r === "index") {var u;if (o && c != null && (u = c.payload) != null && u.coordinate && c.payload.sourceViewBox) {- var d = c.payload.coordinate, { x: f, y: p } = d, m = lMe(d, aMe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = l$(l$({}, m), {}, {+ var d = c.payload.coordinate, { x: f, y: p } = d, m = lMe(d, aMe), { x: h, y: g, width: _, height: v } = c.payload.sourceViewBox, y = s$(s$({}, m), {}, {x: o.x + (_ ? (f - h) / _ : 0) * o.width,y: o.y + (v ? (p - g) / v : 0) * o.height});- n(l$(l$({}, c), {}, { payload: l$(l$({}, c.payload), {}, { coordinate: y }) }));+ n(s$(s$({}, c), {}, { payload: s$(s$({}, c.payload), {}, { coordinate: y }) }));} else n(c);return;}@@ -62823,7 +62814,7 @@ function dMe() {})] : r === "value" && (b = i.find((e) => String(e.value) === c.payload.label));var { coordinate: x } = c.payload;if (b == null || c.payload.active === !1 || x == null || o == null) {- n($Z({+ n(QZ({active: !1,coordinate: void 0,dataKey: void 0,@@ -62838,7 +62829,7 @@ function dMe() {x: a === "horizontal" ? b.coordinate : w,y: a === "horizontal" ? T : b.coordinate};- n($Z({+ n(QZ({active: c.payload.active,coordinate: E,dataKey: c.payload.dataKey,@@ -62850,8 +62841,8 @@ function dMe() {}}};- return t$.on(n$, s), () => {- t$.off(n$, s);+ return $Q.on(e$, s), () => {+ $Q.off(e$, s);};}, [s,@@ -62865,14 +62856,14 @@ function dMe() {]);}function fMe() {- var e = Q(jK), t = Q(NK), n = KB();+ var e = Q(AK), t = Q(MK), n = GB();(0, B.useEffect)(() => {- if (e == null) return lB;+ if (e == null) return cB;var r = (r, i, a) => {t !== a && e === r && n(nMe(i));};- return t$.on(r$, r), () => {- t$.off(r$, r);+ return $Q.on(t$, r), () => {+ $Q.off(t$, r);};}, [n,@@ -62881,16 +62872,16 @@ function fMe() {]);}function pMe() {- var e = KB();+ var e = GB();(0, B.useEffect)(() => {e(eMe());}, [e]), dMe(), fMe();}function mMe(e, t, n, r, i, a) {- var o = Q((n) => Eje(n, e, t)), s = Q(uje), c = Q(NK), l = Q(jK), u = Q(MK), d = Q(tMe)?.active, f = qU();+ var o = Q((n) => Tje(n, e, t)), s = Q(lje), c = Q(MK), l = Q(AK), u = Q(jK), d = Q(tMe)?.active, f = KU();(0, B.useEffect)(() => {if (!d && l != null && c != null) {- var e = $Z({+ var e = QZ({active: a,coordinate: n,dataKey: o,@@ -62899,7 +62890,7 @@ function mMe(e, t, n, r, i, a) {sourceViewBox: f,graphicalItemId: s});- t$.emit(n$, l, e, c);+ $Q.emit(e$, l, e, c);}}, [d,@@ -62917,7 +62908,7 @@ function mMe(e, t, n, r, i, a) {}//#endregion//#region node_modules/recharts/es6/component/Tooltip.js-function u$(e, t) {+function c$(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -62927,12 +62918,12 @@ function u$(e, t) {}return n;}-function d$(e) {+function l$(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? u$(Object(n), !0).forEach(function(t) {+ t % 2 ? c$(Object(n), !0).forEach(function(t) {hMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u$(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c$(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -62964,9 +62955,9 @@ function vMe(e) {return e.dataKey;}function yMe(e, t) {- return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(TTe, t);+ return /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? /*#__PURE__*/ B.createElement(e, t) : /*#__PURE__*/ B.createElement(wTe, t);}-var f$ = [], bMe = {+var u$ = [], bMe = {allowEscapeViewBox: {x: !1,y: !1@@ -62993,9 +62984,9 @@ var f$ = [], bMe = {wrapperStyle: {}};function xMe(e) {- var t = yB(e, bMe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = KB(), S = typeof v == "number" ? String(v) : v;+ var t = vB(e, bMe), { active: n, allowEscapeViewBox: r, animationDuration: i, animationEasing: a, content: o, filterNull: s, isAnimationActive: c, offset: l, payloadUniqBy: u, position: d, reverseDirection: f, useTranslate3d: p, wrapperStyle: m, cursor: h, shared: g, trigger: _, defaultIndex: v, portal: y, axisId: b } = t, x = GB(), S = typeof v == "number" ? String(v) : v;(0, B.useEffect)(() => {- x(IAe({+ x(FAe({shared: g,trigger: _,axisId: b,@@ -63010,20 +63001,20 @@ function xMe(e) {n,S]);- var C = qU(), w = dG(), T = jAe(g), { activeIndex: E, isActive: D } = Q((e) => kje(e, T, _, S)) ?? {}, O = Q((e) => Oje(e, T, _, S)), k = Q((e) => GQ(e, T, _, S)), A = Q((e) => Dje(e, T, _, S)), j = O, M = Zje(), N = n ?? D ?? !1, [P, ee] = rV([j, N]), F = T === "axis" ? k : void 0;+ var C = KU(), w = uG(), T = AAe(g), { activeIndex: E, isActive: D } = Q((e) => Oje(e, T, _, S)) ?? {}, O = Q((e) => Dje(e, T, _, S)), k = Q((e) => WQ(e, T, _, S)), A = Q((e) => Eje(e, T, _, S)), j = O, M = Zje(), N = n ?? D ?? !1, [P, ee] = nV([j, N]), F = T === "axis" ? k : void 0;mMe(T, _, A, F, E, N);var I = y ?? M;if (I == null || C == null || T == null) return null;- var te = j ?? f$;- N || (te = f$), s && te.length && (te = WB(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, vMe));- var ne = te.length > 0, re = d$(d$({}, t), {}, {+ var te = j ?? u$;+ N || (te = u$), s && te.length && (te = UB(te.filter((e) => e.value != null && (e.hide !== !0 || t.includeHidden)), u, vMe));+ var ne = te.length > 0, re = l$(l$({}, t), {}, {payload: te,label: F,active: N,activeIndex: E,coordinate: A,accessibilityLayer: w- }), ie = /*#__PURE__*/ B.createElement(FTe, {+ }), ie = /*#__PURE__*/ B.createElement(PTe, {allowEscapeViewBox: r,animationDuration: i,animationEasing: a,@@ -63051,8 +63042,8 @@ function xMe(e) {}//#endregion//#region node_modules/recharts/es6/component/Cell.js-var p$ = (e) => null;-p$.displayName = "Cell";+var d$ = (e) => null;+d$.displayName = "Cell";//#endregion//#region node_modules/recharts/es6/util/LRUCache.jsfunction SMe(e, t, n) {@@ -63102,7 +63093,7 @@ var TMe = class {};//#endregion//#region node_modules/recharts/es6/util/DOMUtils.js-function m$(e, t) {+function f$(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -63115,9 +63106,9 @@ function m$(e, t) {function EMe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? m$(Object(n), !0).forEach(function(t) {+ t % 2 ? f$(Object(n), !0).forEach(function(t) {DMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m$(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f$(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -63145,10 +63136,10 @@ function kMe(e, t) {}return (t === "string" ? String : Number)(e);}-var h$ = EMe({}, {+var p$ = EMe({}, {cacheSize: 2e3,enableCache: !0-}), g$ = new TMe(h$.cacheSize), AMe = {+}), m$ = new TMe(p$.cacheSize), AMe = {position: "absolute",top: "-20000px",left: 0,@@ -63156,14 +63147,14 @@ var h$ = EMe({}, {margin: 0,border: "none",whiteSpace: "pre"-}, _$ = "recharts_measurement_span";+}, h$ = "recharts_measurement_span";function jMe(e, t) {return `${e}|${t.fontSize || ""}|${t.fontFamily || ""}|${t.fontWeight || ""}|${t.fontStyle || ""}|${t.letterSpacing || ""}|${t.textTransform || ""}`;}-var v$ = (e, t) => {+var g$ = (e, t) => {try {- var n = document.getElementById(_$);- n || (n = document.createElement("span"), n.setAttribute("id", _$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, AMe, t), n.textContent = `${e}`;+ var n = document.getElementById(h$);+ n || (n = document.createElement("span"), n.setAttribute("id", h$), n.setAttribute("aria-hidden", "true"), document.body.appendChild(n)), Object.assign(n.style, AMe, t), n.textContent = `${e}`;var r = n.getBoundingClientRect();return {width: r.width,@@ -63175,18 +63166,18 @@ var v$ = (e, t) => {height: 0};}-}, y$ = function(e) {+}, _$ = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};- if (e == null || sG.isSsr) return {+ if (e == null || oG.isSsr) return {width: 0,height: 0};- if (!h$.enableCache) return v$(e, t);- var n = jMe(e, t), r = g$.get(n);+ if (!p$.enableCache) return g$(e, t);+ var n = jMe(e, t), r = m$.get(n);if (r) return r;- var i = v$(e, t);- return g$.set(n, i), i;-}, b$;+ var i = g$(e, t);+ return m$.set(n, i), i;+}, v$;function MMe(e, t, n) {return (t = NMe(t)) in e ? Object.defineProperty(e, t, {value: n,@@ -63209,7 +63200,7 @@ function PMe(e, t) {}return (t === "string" ? String : Number)(e);}-var x$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, S$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, FMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, IMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, LMe = {+var y$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, b$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, FMe = /^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/, IMe = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, LMe = {cm: 96 / 2.54,mm: 96 / 25.4,pt: 96 / 72,@@ -63229,17 +63220,17 @@ var x$ = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, S$ = /(function zMe(e) {return RMe.includes(e);}-var C$ = "NaN";+var x$ = "NaN";function BMe(e, t) {return e * LMe[t];}-var w$ = class e {+var S$ = class e {static parse(t) {var [, n, r] = IMe.exec(t) ?? [];return n == null ? e.NaN : new e(parseFloat(n), r ?? "");}constructor(e, t) {- this.num = e, this.unit = t, this.num = e, this.unit = t, Qz(e) && (this.unit = ""), t !== "" && !FMe.test(t) && (this.num = NaN, this.unit = ""), zMe(t) && (this.num = BMe(e, t), this.unit = "px");+ this.num = e, this.unit = t, this.num = e, this.unit = t, Zz(e) && (this.unit = ""), t !== "" && !FMe.test(t) && (this.num = NaN, this.unit = ""), zMe(t) && (this.num = BMe(e, t), this.unit = "px");}add(t) {return this.unit === t.unit ? new e(this.num + t.num, this.unit) : new e(NaN, "");@@ -63257,46 +63248,46 @@ var w$ = class e {return `${this.num}${this.unit}`;}isNaN() {- return Qz(this.num);+ return Zz(this.num);}};-b$ = w$, MMe(w$, "NaN", new b$(NaN, ""));-function T$(e) {- if (e == null || e.includes(C$)) return C$;+v$ = S$, MMe(S$, "NaN", new v$(NaN, ""));+function C$(e) {+ if (e == null || e.includes(x$)) return x$;for (var t = e; t.includes("*") || t.includes("/");) {- var [, n, r, i] = x$.exec(t) ?? [], a = w$.parse(n ?? ""), o = w$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);- if (s.isNaN()) return C$;- t = t.replace(x$, s.toString());+ var [, n, r, i] = y$.exec(t) ?? [], a = S$.parse(n ?? ""), o = S$.parse(i ?? ""), s = r === "*" ? a.multiply(o) : a.divide(o);+ if (s.isNaN()) return x$;+ t = t.replace(y$, s.toString());}for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t);) {- var [, c, l, u] = S$.exec(t) ?? [], d = w$.parse(c ?? ""), f = w$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);- if (p.isNaN()) return C$;- t = t.replace(S$, p.toString());+ var [, c, l, u] = b$.exec(t) ?? [], d = S$.parse(c ?? ""), f = S$.parse(u ?? ""), p = l === "+" ? d.add(f) : d.subtract(f);+ if (p.isNaN()) return x$;+ t = t.replace(b$, p.toString());}return t;}-var E$ = /\(([^()]*)\)/;+var w$ = /\(([^()]*)\)/;function VMe(e) {- for (var t = e, n; (n = E$.exec(t)) != null;) {+ for (var t = e, n; (n = w$.exec(t)) != null;) {var [, r] = n;- t = t.replace(E$, T$(r));+ t = t.replace(w$, C$(r));}return t;}function HMe(e) {var t = e.replace(/\s+/g, "");- return t = VMe(t), t = T$(t), t;+ return t = VMe(t), t = C$(t), t;}function UMe(e) {try {return HMe(e);} catch {- return C$;+ return x$;}}-function D$(e) {+function T$(e) {var t = UMe(e.slice(5, -1));- return t === C$ ? "" : t;+ return t === x$ ? "" : t;}//#endregion//#region node_modules/recharts/es6/component/Text.js@@ -63316,16 +63307,16 @@ var WMe = ["className","breakAll"];-function O$() {- return O$ = Object.assign ? Object.assign.bind() : function(e) {+function E$() {+ return E$ = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, O$.apply(null, arguments);+ }, E$.apply(null, arguments);}-function k$(e, t) {+function D$(e, t) {if (e == null) return {};var n, r, i = KMe(e, t);if (Object.getOwnPropertySymbols) {@@ -63343,28 +63334,28 @@ function KMe(e, t) {}return n;}-var A$ = /[ \f\n\r\t\v\u2028\u2029]+/, j$ = (e) => {+var O$ = /[ \f\n\r\t\v\u2028\u2029]+/, k$ = (e) => {var { children: t, breakAll: n, style: r } = e;try {var i = [];- return oB(t) || (i = n ? t.toString().split("") : t.toString().split(A$)), {+ return aB(t) || (i = n ? t.toString().split("") : t.toString().split(O$)), {wordsWithComputedWidth: i.map((e) => ({word: e,- width: y$(e, r).width+ width: _$(e, r).width})),- spaceWidth: n ? 0 : y$("\xA0", r).width+ spaceWidth: n ? 0 : _$("\xA0", r).width};} catch {return null;}};-function M$(e) {+function A$(e) {return e === "start" || e === "middle" || e === "end" || e === "inherit";}function qMe(e) {- return oB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";+ return aB(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean";}-var N$ = (e, t, n, r) => e.reduce((e, i) => {+var j$ = (e, t, n, r) => e.reduce((e, i) => {var { word: a, width: o } = i, s = e[e.length - 1];if (s && o != null && (t == null || r || s.width + o + n < Number(t))) s.words.push(a), s.width += o + n;else {@@ -63375,20 +63366,20 @@ var N$ = (e, t, n, r) => e.reduce((e, i) => {e.push(c);}return e;-}, []), P$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), JMe = "…", F$ = (e, t, n, r, i, a, o, s) => {- var c = j$({+}, []), M$ = (e) => e.reduce((e, t) => e.width > t.width ? e : t), JMe = "…", N$ = (e, t, n, r, i, a, o, s) => {+ var c = k$({breakAll: n,style: r,children: e.slice(0, t) + JMe});if (!c) return [!1, []];- var l = N$(c.wordsWithComputedWidth, a, o, s);- return [l.length > i || P$(l).width > Number(a), l];+ var l = j$(c.wordsWithComputedWidth, a, o, s);+ return [l.length > i || M$(l).width > Number(a), l];}, YMe = (e, t, n, r, i) => {- var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = N$(t, r, n, i);- if (!l || i || !(d.length > a || P$(d).width > Number(r))) return d;+ var { maxLines: a, children: o, style: s, breakAll: c } = e, l = Z(a), u = String(o), d = j$(t, r, n, i);+ if (!l || i || !(d.length > a || M$(d).width > Number(r))) return d;for (var f = 0, p = u.length - 1, m = 0, h; f <= p && m <= u.length - 1;) {- var g = Math.floor((f + p) / 2), [_, v] = F$(u, g - 1, c, s, a, r, n, i), [y] = F$(u, g, c, s, a, r, n, i);+ var g = Math.floor((f + p) / 2), [_, v] = N$(u, g - 1, c, s, a, r, n, i), [y] = N$(u, g, c, s, a, r, n, i);if (!_ && !y && (f = g + 1), _ && y && (p = g - 1), !_ && y) {h = v;break;@@ -63396,13 +63387,13 @@ var N$ = (e, t, n, r) => e.reduce((e, i) => {m++;}return h || d;-}, I$ = (e) => [{- words: oB(e) ? [] : e.toString().split(A$),+}, P$ = (e) => [{+ words: aB(e) ? [] : e.toString().split(O$),width: void 0}], XMe = (e) => {var { width: t, scaleToFit: n, children: r, style: i, breakAll: a, maxLines: o } = e;- if ((t || n) && !sG.isSsr) {- var s, c, l = j$({+ if ((t || n) && !oG.isSsr) {+ var s, c, l = k$({breakAll: a,children: r,style: i@@ -63410,7 +63401,7 @@ var N$ = (e, t, n, r) => e.reduce((e, i) => {if (l) {var { wordsWithComputedWidth: u, spaceWidth: d } = l;s = u, c = d;- } else return I$(r);+ } else return P$(r);return YMe({breakAll: a,children: r,@@ -63418,20 +63409,20 @@ var N$ = (e, t, n, r) => e.reduce((e, i) => {style: i}, s, c, t, !!n);}- return I$(r);-}, L$ = "#808080", ZMe = {+ return P$(r);+}, F$ = "#808080", ZMe = {angle: 0,breakAll: !1,capHeight: "0.71em",- fill: L$,+ fill: F$,lineHeight: "1em",scaleToFit: !1,textAnchor: "start",verticalAnchor: "end",x: 0,y: 0-}, R$ = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = yB(e, ZMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = k$(n, WMe), f = (0, B.useMemo)(() => XMe({+}, I$ = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var n = vB(e, ZMe), { x: r, y: i, lineHeight: a, capHeight: o, fill: s, scaleToFit: c, textAnchor: l, verticalAnchor: u } = n, d = D$(n, WMe), f = (0, B.useMemo)(() => XMe({breakAll: d.breakAll,children: d.children,maxLines: d.maxLines,@@ -63445,32 +63436,32 @@ var N$ = (e, t, n, r) => e.reduce((e, i) => {c,d.style,d.width- ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = k$(d, GMe);- if (!eB(r) || !eB(i) || f.length === 0) return null;+ ]), { dx: p, dy: m, angle: h, className: g, breakAll: _ } = d, v = D$(d, GMe);+ if (!$z(r) || !$z(i) || f.length === 0) return null;var y = Number(r) + (Z(p) ? p : 0), b = Number(i) + (Z(m) ? m : 0);- if (!oU(y) || !oU(b)) return null;+ if (!aU(y) || !aU(b)) return null;var x;switch (u) {case "start":- x = D$(`calc(${o})`);+ x = T$(`calc(${o})`);break;case "middle":- x = D$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);+ x = T$(`calc(${(f.length - 1) / 2} * -${a} + (${o} / 2))`);break;- default: x = D$(`calc(${f.length - 1} * -${a})`);+ default: x = T$(`calc(${f.length - 1} * -${a})`);}var S = [], C = f[0];if (c && C != null) {var w = C.width, { width: T } = d;S.push(`scale(${Z(T) && Z(w) ? T / w : 1})`);}- return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", O$({}, GR(v), {+ return h && S.push(`rotate(${h}, ${y}, ${b})`), S.length && (v.transform = S.join(" ")), /*#__PURE__*/ B.createElement("text", E$({}, WR(v), {ref: t,x: y,y: b,className: _h("recharts-text", g),textAnchor: l,- fill: s.includes("url") ? L$ : s+ fill: s.includes("url") ? F$ : s}), f.map((e, t) => {var n = e.words.join(_ ? "" : " ");return /*#__PURE__*/ B.createElement("tspan", {@@ -63480,10 +63471,10 @@ var N$ = (e, t, n, r) => e.reduce((e, i) => {}, n);}));});-R$.displayName = "Text";+I$.displayName = "Text";//#endregion//#region node_modules/recharts/es6/cartesian/getCartesianPosition.js-function z$(e, t) {+function L$(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -63493,12 +63484,12 @@ function z$(e, t) {}return n;}-function B$(e) {+function R$(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? z$(Object(n), !0).forEach(function(t) {+ t % 2 ? L$(Object(n), !0).forEach(function(t) {QMe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z$(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L$(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -63527,7 +63518,7 @@ function eNe(e, t) {return (t === "string" ? String : Number)(e);}var tNe = (e) => {- var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = KU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;+ var { viewBox: t, position: n, offset: r = 0, parentViewBox: i, clamp: a } = e, { x: o, y: s, height: c, upperWidth: l, lowerWidth: u } = GU(t), d = o, f = o + (l - u) / 2, p = (d + f) / 2, m = (l + u) / 2, h = d + l / 2, g = c >= 0 ? 1 : -1, _ = g * r, v = g > 0 ? "end" : "start", y = g > 0 ? "start" : "end", b = l >= 0 ? 1 : -1, x = b * r, S = b > 0 ? "end" : "start", C = b > 0 ? "start" : "end", w = i;if (n === "top") {var T = {x: d + l / 2,@@ -63568,59 +63559,59 @@ var tNe = (e) => {width: m,height: c} : {};- return n === "insideLeft" ? B$({+ return n === "insideLeft" ? R$({x: p + x,y: s + c / 2,horizontalAnchor: C,verticalAnchor: "middle"- }, k) : n === "insideRight" ? B$({+ }, k) : n === "insideRight" ? R$({x: p + m - x,y: s + c / 2,horizontalAnchor: S,verticalAnchor: "middle"- }, k) : n === "insideTop" ? B$({+ }, k) : n === "insideTop" ? R$({x: d + l / 2,y: s + _,horizontalAnchor: "middle",verticalAnchor: y- }, k) : n === "insideBottom" ? B$({+ }, k) : n === "insideBottom" ? R$({x: f + u / 2,y: s + c - _,horizontalAnchor: "middle",verticalAnchor: v- }, k) : n === "insideTopLeft" ? B$({+ }, k) : n === "insideTopLeft" ? R$({x: d + x,y: s + _,horizontalAnchor: C,verticalAnchor: y- }, k) : n === "insideTopRight" ? B$({+ }, k) : n === "insideTopRight" ? R$({x: d + l - x,y: s + _,horizontalAnchor: S,verticalAnchor: y- }, k) : n === "insideBottomLeft" ? B$({+ }, k) : n === "insideBottomLeft" ? R$({x: f + x,y: s + c - _,horizontalAnchor: C,verticalAnchor: v- }, k) : n === "insideBottomRight" ? B$({+ }, k) : n === "insideBottomRight" ? R$({x: f + u - x,y: s + c - _,horizontalAnchor: S,verticalAnchor: v- }, k) : n && typeof n == "object" && (Z(n.x) || $z(n.x)) && (Z(n.y) || $z(n.y)) ? B$({- x: o + nB(n.x, m),- y: s + nB(n.y, c),+ }, k) : n && typeof n == "object" && (Z(n.x) || Qz(n.x)) && (Z(n.y) || Qz(n.y)) ? R$({+ x: o + tB(n.x, m),+ y: s + tB(n.y, c),horizontalAnchor: "end",verticalAnchor: "end"- }, k) : B$({+ }, k) : R$({x: h,y: s + c / 2,horizontalAnchor: "middle",verticalAnchor: "middle"}, k);}, nNe = ["labelRef"], rNe = ["content"];-function V$(e, t) {+function z$(e, t) {if (e == null) return {};var n, r, i = iNe(e, t);if (Object.getOwnPropertySymbols) {@@ -63638,7 +63629,7 @@ function iNe(e, t) {}return n;}-function H$(e, t) {+function B$(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -63648,12 +63639,12 @@ function H$(e, t) {}return n;}-function U$(e) {+function V$(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? H$(Object(n), !0).forEach(function(t) {+ t % 2 ? B$(Object(n), !0).forEach(function(t) {aNe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H$(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -63681,16 +63672,16 @@ function sNe(e, t) {}return (t === "string" ? String : Number)(e);}-function W$() {- return W$ = Object.assign ? Object.assign.bind() : function(e) {+function H$() {+ return H$ = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, W$.apply(null, arguments);+ }, H$.apply(null, arguments);}-var G$ = /*#__PURE__*/ (0, B.createContext)(null), K$ = (e) => {+var U$ = /*#__PURE__*/ (0, B.createContext)(null), W$ = (e) => {var { x: t, y: n, upperWidth: r, lowerWidth: i, width: a, height: o, children: s } = e, c = (0, B.useMemo)(() => ({x: t,y: n,@@ -63706,11 +63697,11 @@ var G$ = /*#__PURE__*/ (0, B.createContext)(null), K$ = (e) => {a,o]);- return /*#__PURE__*/ B.createElement(G$.Provider, { value: c }, s);-}, q$ = () => {- var e = (0, B.useContext)(G$), t = qU();- return e || (t ? KU(t) : void 0);-}, J$ = /*#__PURE__*/ (0, B.createContext)(null), cNe = (e) => {+ return /*#__PURE__*/ B.createElement(U$.Provider, { value: c }, s);+}, G$ = () => {+ var e = (0, B.useContext)(U$), t = KU();+ return e || (t ? GU(t) : void 0);+}, K$ = /*#__PURE__*/ (0, B.createContext)(null), cNe = (e) => {var { cx: t, cy: n, innerRadius: r, outerRadius: i, startAngle: a, endAngle: o, clockWise: s, children: c } = e, l = (0, B.useMemo)(() => ({cx: t,cy: n,@@ -63728,14 +63719,14 @@ var G$ = /*#__PURE__*/ (0, B.createContext)(null), K$ = (e) => {o,s]);- return /*#__PURE__*/ B.createElement(J$.Provider, { value: l }, c);-}, Y$ = () => {- var e = (0, B.useContext)(J$), t = Q(ZK);+ return /*#__PURE__*/ B.createElement(K$.Provider, { value: l }, c);+}, q$ = () => {+ var e = (0, B.useContext)(K$), t = Q(XK);return e || t;}, lNe = (e) => {- var { value: t, formatter: n } = e, r = oB(e.children) ? t : e.children;+ var { value: t, formatter: n } = e, r = aB(e.children) ? t : e.children;return typeof n == "function" ? n(r) : r;-}, X$ = (e) => e != null && typeof e == "function", uNe = (e, t) => Zz(t - e) * Math.min(Math.abs(t - e), 360), dNe = (e, t, n, r, i) => {+}, J$ = (e) => e != null && typeof e == "function", uNe = (e, t) => Xz(t - e) * Math.min(Math.abs(t - e), 360), dNe = (e, t, n, r, i) => {var { offset: a, className: o } = e, { cx: s, cy: c, innerRadius: l, outerRadius: u, startAngle: d, endAngle: f, clockWise: p } = i, m = (l + u) / 2, h = uNe(d, f), g = h >= 0 ? 1 : -1, _, v;switch (t) {case "insideStart":@@ -63750,10 +63741,10 @@ var G$ = /*#__PURE__*/ (0, B.createContext)(null), K$ = (e) => {default: throw Error(`Unsupported position ${t}`);}v = h <= 0 ? v : !v;- var y = $G(s, c, m, _), b = $G(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}+ var y = QG(s, c, m, _), b = QG(s, c, m, _ + (v ? 1 : -1) * 359), x = `M${y.x},${y.y}A${m},${m},0,1,${+!v},- ${b.x},${b.y}`, S = oB(e.id) ? tB("recharts-radial-line-") : e.id;- return /*#__PURE__*/ B.createElement("text", W$({}, r, {+ ${b.x},${b.y}`, S = aB(e.id) ? eB("recharts-radial-line-") : e.id;+ return /*#__PURE__*/ B.createElement("text", H$({}, r, {dominantBaseline: "central",className: _h("recharts-radial-bar-label", o)}), /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("path", {@@ -63763,7 +63754,7 @@ var G$ = /*#__PURE__*/ (0, B.createContext)(null), K$ = (e) => {}, fNe = (e, t, n) => {var { cx: r, cy: i, innerRadius: a, outerRadius: o, startAngle: s, endAngle: c } = e, l = (s + c) / 2;if (n === "outside") {- var { x: u, y: d } = $G(r, i, o + t, l);+ var { x: u, y: d } = QG(r, i, o + t, l);return {x: u,y: d,@@ -63789,22 +63780,22 @@ var G$ = /*#__PURE__*/ (0, B.createContext)(null), K$ = (e) => {textAnchor: "middle",verticalAnchor: "end"};- var { x: f, y: p } = $G(r, i, (a + o) / 2, l);+ var { x: f, y: p } = QG(r, i, (a + o) / 2, l);return {x: f,y: p,textAnchor: "middle",verticalAnchor: "middle"};-}, Z$ = (e) => e != null && "cx" in e && Z(e.cx), pNe = {+}, Y$ = (e) => e != null && "cx" in e && Z(e.cx), pNe = {angle: 0,offset: 5,- zIndex: PK.label,+ zIndex: NK.label,position: "middle",textBreakAll: !1};function mNe(e) {- if (!Z$(e)) return e;+ if (!Y$(e)) return e;var { cx: t, cy: n, outerRadius: r } = e, i = r * 2;return {x: t - r,@@ -63815,20 +63806,20 @@ function mNe(e) {height: i};}-function Q$(e) {- var t = yB(e, pNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = Y$(), f = q$(), p = n == null ? i === "center" ? f : d ?? f : Z$(n) ? n : KU(n), m, h, g = mNe(p);- if (!p || oB(a) && oB(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;- var _ = U$(U$({}, t), {}, { viewBox: p });+function X$(e) {+ var t = vB(e, pNe), { viewBox: n, parentViewBox: r, position: i, value: a, children: o, content: s, className: c = "", textBreakAll: l, labelRef: u } = t, d = q$(), f = G$(), p = n == null ? i === "center" ? f : d ?? f : Y$(n) ? n : GU(n), m, h, g = mNe(p);+ if (!p || aB(a) && aB(o) && !/*#__PURE__*/ (0, B.isValidElement)(s) && typeof s != "function") return null;+ var _ = V$(V$({}, t), {}, { viewBox: p });if (/*#__PURE__*/ (0, B.isValidElement)(s)) {- var { labelRef: v } = _, y = V$(_, nNe);+ var { labelRef: v } = _, y = z$(_, nNe);return /*#__PURE__*/ (0, B.cloneElement)(s, y);}if (typeof s == "function") {- var { content: b } = _, x = V$(_, rNe);+ var { content: b } = _, x = z$(_, rNe);if (m = /*#__PURE__*/ (0, B.createElement)(s, x), /*#__PURE__*/ (0, B.isValidElement)(m)) return m;} else m = lNe(t);- var S = GR(t);- if (Z$(p)) {+ var S = WR(t);+ if (Y$(p)) {if (i === "insideStart" || i === "insideEnd" || i === "end") return dNe(t, i, m, S, p);h = fNe(p, t.offset, t.position);} else {@@ -63837,49 +63828,49 @@ function Q$(e) {viewBox: g,position: i,offset: t.offset,- parentViewBox: Z$(r) ? void 0 : r,+ parentViewBox: Y$(r) ? void 0 : r,clamp: !0});- h = U$(U$({+ h = V$(V$({x: C.x,y: C.y,textAnchor: C.horizontalAnchor,verticalAnchor: C.verticalAnchor}, C.width === void 0 ? {} : { width: C.width }), C.height === void 0 ? {} : { height: C.height });}- return /*#__PURE__*/ B.createElement(XQ, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(R$, W$({+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(I$, H$({ref: u,className: _h("recharts-label", c)}, S, h, {- textAnchor: M$(S.textAnchor) ? S.textAnchor : h.textAnchor,+ textAnchor: A$(S.textAnchor) ? S.textAnchor : h.textAnchor,breakAll: l}), m));}-Q$.displayName = "Label";-var $$ = (e, t, n) => {+X$.displayName = "Label";+var Z$ = (e, t, n) => {if (!e) return null;var r = {viewBox: t,labelRef: n};- return e === !0 ? /*#__PURE__*/ B.createElement(Q$, W$({ key: "label-implicit" }, r)) : eB(e) ? /*#__PURE__*/ B.createElement(Q$, W$({+ return e === !0 ? /*#__PURE__*/ B.createElement(X$, H$({ key: "label-implicit" }, r)) : $z(e) ? /*#__PURE__*/ B.createElement(X$, H$({key: "label-implicit",value: e- }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === Q$ ? /*#__PURE__*/ (0, B.cloneElement)(e, U$({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(Q$, W$({+ }, r)) : /*#__PURE__*/ (0, B.isValidElement)(e) ? e.type === X$ ? /*#__PURE__*/ (0, B.cloneElement)(e, V$({ key: "label-implicit" }, r)) : /*#__PURE__*/ B.createElement(X$, H$({key: "label-implicit",content: e- }, r)) : X$(e) ? /*#__PURE__*/ B.createElement(Q$, W$({+ }, r)) : J$(e) ? /*#__PURE__*/ B.createElement(X$, H$({key: "label-implicit",content: e- }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement(Q$, W$({}, e, { key: "label-implicit" }, r)) : null;+ }, r)) : e && typeof e == "object" ? /*#__PURE__*/ B.createElement(X$, H$({}, e, { key: "label-implicit" }, r)) : null;};-function e1(e) {+function Q$(e) {var { label: t, labelRef: n } = e;- return $$(t, q$(), n) || null;+ return Z$(t, G$(), n) || null;}function hNe(e) {var { label: t } = e;- return $$(t, Y$()) || null;+ return Z$(t, q$()) || null;}//#endregion//#region node_modules/recharts/es6/component/LabelList.js@@ -63890,16 +63881,16 @@ var gNe = ["valueAccessor"], _Ne = ["textBreakAll","zIndex"];-function t1() {- return t1 = Object.assign ? Object.assign.bind() : function(e) {+function $$() {+ return $$ = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, t1.apply(null, arguments);+ }, $$.apply(null, arguments);}-function n1(e, t) {+function e1(e, t) {if (e == null) return {};var n, r, i = vNe(e, t);if (Object.getOwnPropertySymbols) {@@ -63920,18 +63911,18 @@ function vNe(e, t) {var yNe = (e) => {var t = Array.isArray(e.value) ? e.value[e.value.length - 1] : e.value;if (qMe(t)) return t;-}, r1 = /*#__PURE__*/ (0, B.createContext)(void 0), i1 = r1.Provider, a1 = /*#__PURE__*/ (0, B.createContext)(void 0), bNe = a1.Provider;+}, t1 = /*#__PURE__*/ (0, B.createContext)(void 0), n1 = t1.Provider, r1 = /*#__PURE__*/ (0, B.createContext)(void 0), bNe = r1.Provider;function xNe() {- return (0, B.useContext)(r1);+ return (0, B.useContext)(t1);}function SNe() {- return (0, B.useContext)(a1);+ return (0, B.useContext)(r1);}-function o1(e) {- var { valueAccessor: t = yNe } = e, n = n1(e, gNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = n1(n, _Ne), l = xNe(), u = SNe(), d = l || u;- return !d || !d.length ? null : /*#__PURE__*/ B.createElement(XQ, { zIndex: s ?? PK.label }, /*#__PURE__*/ B.createElement(YR, { className: "recharts-label-list" }, d.map((e, i) => {- var s = oB(r) ? t(e, i) : uU(e.payload, r), l = oB(a) ? {} : { id: `${a}-${i}` };- return /*#__PURE__*/ B.createElement(Q$, t1({ key: `label-${i}` }, GR(e), c, l, {+function i1(e) {+ var { valueAccessor: t = yNe } = e, n = e1(e, gNe), { dataKey: r, clockWise: i, id: a, textBreakAll: o, zIndex: s } = n, c = e1(n, _Ne), l = xNe(), u = SNe(), d = l || u;+ return !d || !d.length ? null : /*#__PURE__*/ B.createElement(JQ, { zIndex: s ?? NK.label }, /*#__PURE__*/ B.createElement(JR, { className: "recharts-label-list" }, d.map((e, i) => {+ var s = aB(r) ? t(e, i) : lU(e.payload, r), l = aB(a) ? {} : { id: `${a}-${i}` };+ return /*#__PURE__*/ B.createElement(X$, $$({ key: `label-${i}` }, WR(e), c, l, {fill: n.fill ?? e.fill,parentViewBox: e.parentViewBox,value: s,@@ -63942,13 +63933,13 @@ function o1(e) {}));})));}-o1.displayName = "LabelList";-function s1(e) {+i1.displayName = "LabelList";+function a1(e) {var { label: t } = e;- return t ? t === !0 ? /*#__PURE__*/ B.createElement(o1, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || X$(t) ? /*#__PURE__*/ B.createElement(o1, {+ return t ? t === !0 ? /*#__PURE__*/ B.createElement(i1, { key: "labelList-implicit" }) : /*#__PURE__*/ B.isValidElement(t) || J$(t) ? /*#__PURE__*/ B.createElement(i1, {key: "labelList-implicit",content: t- }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(o1, t1({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;+ }) : typeof t == "object" ? /*#__PURE__*/ B.createElement(i1, $$({ key: "labelList-implicit" }, t, { type: String(t.type) })) : null : null;}//#endregion//#region node_modules/recharts/es6/shape/Polygon.js@@ -63958,14 +63949,14 @@ var CNe = ["baseLinePoints","connectNulls"], wNe;-function c1() {- return c1 = Object.assign ? Object.assign.bind() : function(e) {+function o1() {+ return o1 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, c1.apply(null, arguments);+ }, o1.apply(null, arguments);}function TNe(e, t) {if (e == null) return {};@@ -63988,20 +63979,20 @@ function ENe(e, t) {function DNe(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var l1 = (e) => e != null && e.x === +e.x && e.y === +e.y, ONe = function() {+var s1 = (e) => e != null && e.x === +e.x && e.y === +e.y, ONe = function() {var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = [[]];e.forEach((e) => {var n = t[t.length - 1];- l1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);+ s1(e) ? n && n.push(e) : n && n.length > 0 && t.push([]);});var n = e[0], r = t[t.length - 1];- l1(n) && r && r.push(n);+ s1(n) && r && r.push(n);var i = t[t.length - 1];return i && i.length <= 0 && (t = t.slice(0, -1)), t;-}, u1 = (e, t) => {+}, c1 = (e, t) => {var n = ONe(e);t && (n = [n.reduce((e, t) => [...e, ...t], [])]);- var r = n.map((e) => e.reduce((e, t, n) => Xz(wNe ||= DNe([+ var r = n.map((e) => e.reduce((e, t, n) => Yz(wNe ||= DNe(["","","",@@ -64010,28 +64001,28 @@ var l1 = (e) => e != null && e.x === +e.x && e.y === +e.y, ONe = function() {]), e, n === 0 ? "M" : "L", t.x, t.y), "")).join("");return n.length === 1 ? `${r}Z` : r;}, kNe = (e, t, n) => {- var r = u1(e, n);- return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${u1(Array.from(t).reverse(), n).slice(1)}`;-}, d1 = (e) => {+ var r = c1(e, n);+ return `${r.slice(-1) === "Z" ? r.slice(0, -1) : r}L${c1(Array.from(t).reverse(), n).slice(1)}`;+}, l1 = (e) => {var { points: t, className: n, baseLinePoints: r, connectNulls: i } = e, a = TNe(e, CNe);if (!t || !t.length) return null;var o = _h("recharts-polygon", n);if (r && r.length) {var s = a.stroke && a.stroke !== "none", c = kNe(t, r, i);- return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", c1({}, GR(a), {+ return /*#__PURE__*/ B.createElement("g", { className: o }, /*#__PURE__*/ B.createElement("path", o1({}, WR(a), {fill: c.slice(-1) === "Z" ? a.fill : "none",stroke: "none",d: c- })), s ? /*#__PURE__*/ B.createElement("path", c1({}, GR(a), {+ })), s ? /*#__PURE__*/ B.createElement("path", o1({}, WR(a), {fill: "none",- d: u1(t, i)- })) : null, s ? /*#__PURE__*/ B.createElement("path", c1({}, GR(a), {+ d: c1(t, i)+ })) : null, s ? /*#__PURE__*/ B.createElement("path", o1({}, WR(a), {fill: "none",- d: u1(r, i)+ d: c1(r, i)})) : null);}- var l = u1(t, i);- return /*#__PURE__*/ B.createElement("path", c1({}, GR(a), {+ var l = c1(t, i);+ return /*#__PURE__*/ B.createElement("path", o1({}, WR(a), {fill: l.slice(-1) === "Z" ? a.fill : "none",className: o,d: l@@ -64039,111 +64030,111 @@ var l1 = (e) => e != null && e.x === +e.x && e.y === +e.y, ONe = function() {};//#endregion//#region node_modules/recharts/es6/shape/Dot.js-function f1() {- return f1 = Object.assign ? Object.assign.bind() : function(e) {+function u1() {+ return u1 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, f1.apply(null, arguments);+ }, u1.apply(null, arguments);}-var p1 = (e) => {+var d1 = (e) => {var { cx: t, cy: n, r, className: i } = e, a = _h("recharts-dot", i);- return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", f1({}, UR(e), gB(e), {+ return Z(t) && Z(n) && Z(r) ? /*#__PURE__*/ B.createElement("circle", u1({}, HR(e), hB(e), {className: a,cx: t,cy: n,r})) : null;-}, m1 = (e) => e.graphicalItems.polarItems, h1 = $([+}, f1 = (e) => e.graphicalItems.polarItems, p1 = $([+ f1,+ jX,+ $([ZK, QK], PX)+], IX), m1 = $([$([p1], BX), cK], VX), h1 = $([m1,- MX,- $([QK, $K], FX)-], LX), g1 = $([$([h1], VX), lK], HX), _1 = $([- g1,- MX,- h1-], WX);+ jX,+ p1+], UX);$([- g1,- MX,- h1+ m1,+ jX,+ p1], (e, t, n) => n.length > 0 ? e.flatMap((e) => n.flatMap((n) => ({- value: uU(e, t.dataKey ?? n.dataKey),+ value: lU(e, t.dataKey ?? n.dataKey),errorDomain: []}))).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({value: e,errorDomain: []})) : e.map((e) => ({- value: uU(e, t.dataKey),+ value: lU(e, t.dataKey),errorDomain: []})));-var v1 = () => void 0, y1 = $([- MX,- ZU,- g1,- _1,- OK,- QK,+var g1 = () => void 0, _1 = $([+ jX,+ XU,+ m1,+ h1,+ DK,+ ZK,$([- MX,+ jX,+ tZ,nZ,- rZ,- v1,+ g1,$([- g1,- MX,- h1,- iZ,- QK- ], oZ),- v1,- ZU,- QK- ], mZ)-], hZ), b1 = $([- y1,- NX,- _Z-], vZ), ANe = $([_Z, $([+ m1,+ jX,+ p1,+ rZ,+ ZK+ ], aZ),+ g1,+ XU,+ ZK+ ], pZ)+], mZ), v1 = $([+ _1,MX,- y1,- b1,- QK-], bZ)], cq), x1 = (e, t, n) => {+ gZ+], _Z), ANe = $([gZ, $([+ jX,+ _1,+ v1,+ ZK+], yZ)], sq), y1 = (e, t, n) => {switch (t) {- case "angleAxis": return UK(e, n);- case "radiusAxis": return WK(e, n);+ case "angleAxis": return HK(e, n);+ case "radiusAxis": return UK(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, S1 = (e, t, n) => {+}, b1 = (e, t, n) => {switch (t) {- case "angleAxis": return uDe(e, n);- case "radiusAxis": return dDe(e, n);+ case "angleAxis": return lDe(e, n);+ case "radiusAxis": return uDe(e, n);default: throw Error(`Unexpected axis type: ${t}`);}-}, C1 = $([$([- x1,- _Z,+}, x1 = $([$([+ y1,+ gZ,ANe,- S1-], yX)], sq), w1 = $([- ZU,- _1,- NX,- QK-], TZ), T1 = $([- ZU,+ b1+], vX)], oq), S1 = $([+ XU,+ h1,+ MX,+ ZK+], wZ), C1 = $([+ XU,+ y1,+ gZ,x1,- _Z,- C1,+ v1,b1,+ FZ,S1,- IZ,- w1,- QK-], RZ), jNe = $([T1], (e) => {+ ZK+], LZ), jNe = $([C1], (e) => {if (e) {var t = /* @__PURE__ */ new Map();return e.forEach((e) => {@@ -64152,16 +64143,16 @@ var v1 = () => void 0, y1 = $([}), Array.from(t.values());}}), MNe = $([- ZU,+ XU,+ y1,x1,- C1,+ b1,+ FZ,S1,- IZ,- w1,- QK-], BZ), NNe = $([(e, t) => T1(e, "angleAxis", t, !1)], (e) => {+ ZK+], zZ), NNe = $([(e, t) => C1(e, "angleAxis", t, !1)], (e) => {if (e) return e.map((e) => e.coordinate);-}), PNe = $([(e, t) => T1(e, "radiusAxis", t, !1)], (e) => {+}), PNe = $([(e, t) => C1(e, "radiusAxis", t, !1)], (e) => {if (e) return e.map((e) => e.coordinate);}), FNe = ["gridType",@@ -64194,16 +64185,16 @@ function LNe(e, t) {}return n;}-function E1() {- return E1 = Object.assign ? Object.assign.bind() : function(e) {+function w1() {+ return w1 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, E1.apply(null, arguments);+ }, w1.apply(null, arguments);}-function D1(e, t) {+function T1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64213,12 +64204,12 @@ function D1(e, t) {}return n;}-function O1(e) {+function E1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? D1(Object(n), !0).forEach(function(t) {+ t % 2 ? T1(Object(n), !0).forEach(function(t) {RNe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D1(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -64249,39 +64240,39 @@ function BNe(e, t) {var VNe = (e, t, n, r) => {var i = "";return r.forEach((r, a) => {- var o = $G(t, n, e, r);+ var o = QG(t, n, e, r);i += a ? `L ${o.x},${o.y}` : `M ${o.x},${o.y}`;}), i += "Z", i;}, HNe = (e) => {var { cx: t, cy: n, innerRadius: r, outerRadius: i, polarAngles: a, radialLines: o } = e;if (!a || !a.length || !o) return null;- var s = O1({ stroke: "#ccc" }, UR(e));+ var s = E1({ stroke: "#ccc" }, HR(e));return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-angle" }, a.map((e) => {- var a = $G(t, n, r, e), o = $G(t, n, i, e);- return /*#__PURE__*/ B.createElement("line", E1({ key: `line-${e}` }, s, {+ var a = QG(t, n, r, e), o = QG(t, n, i, e);+ return /*#__PURE__*/ B.createElement("line", w1({ key: `line-${e}` }, s, {x1: a.x,y1: a.y,x2: o.x,y2: o.y}));}));-}, k1 = (e) => {- var { cx: t, cy: n, radius: r } = e, i = O1({+}, D1 = (e) => {+ var { cx: t, cy: n, radius: r } = e, i = E1({stroke: "#ccc",fill: "none"- }, UR(e));- return /*#__PURE__*/ B.createElement("circle", E1({}, i, {+ }, HR(e));+ return /*#__PURE__*/ B.createElement("circle", w1({}, i, {className: _h("recharts-polar-grid-concentric-circle", e.className),cx: t,cy: n,r}));-}, A1 = (e) => {- var { radius: t } = e, n = O1({+}, O1 = (e) => {+ var { radius: t } = e, n = E1({stroke: "#ccc",fill: "none"- }, UR(e));- return /*#__PURE__*/ B.createElement("path", E1({}, n, {+ }, HR(e));+ return /*#__PURE__*/ B.createElement("path", w1({}, n, {className: _h("recharts-polar-grid-concentric-polygon", e.className),d: VNe(t, e.cx, e.cy, e.polarAngles)}));@@ -64289,12 +64280,12 @@ var VNe = (e, t, n, r) => {var { polarRadius: t, gridType: n } = e;if (!t || !t.length) return null;var r = Math.max(...t), i = e.fill && e.fill !== "none";- return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(k1, E1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(A1, E1({}, e, { radius: r })), t.map((t, r) => {+ return /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid-concentric" }, i && n === "circle" && /*#__PURE__*/ B.createElement(D1, w1({}, e, { radius: r })), i && n !== "circle" && /*#__PURE__*/ B.createElement(O1, w1({}, e, { radius: r })), t.map((t, r) => {var i = r;- return n === "circle" ? /*#__PURE__*/ B.createElement(k1, E1({ key: i }, e, {+ return n === "circle" ? /*#__PURE__*/ B.createElement(D1, w1({ key: i }, e, {fill: "none",radius: t- })) : /*#__PURE__*/ B.createElement(A1, E1({ key: i }, e, {+ })) : /*#__PURE__*/ B.createElement(O1, w1({ key: i }, e, {fill: "none",radius: t}));@@ -64304,11 +64295,11 @@ var VNe = (e, t, n, r) => {radiusAxisId: 0,gridType: "polygon",radialLines: !0,- zIndex: PK.grid-}, j1 = (e) => {- var t = yB(e, WNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = INe(t, FNe), m = Q(ZK), h = Q((e) => NNe(e, i)), g = Q((e) => PNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;+ zIndex: NK.grid+}, k1 = (e) => {+ var t = vB(e, WNe), { gridType: n, radialLines: r, angleAxisId: i, radiusAxisId: a, cx: o, cy: s, innerRadius: c, outerRadius: l, polarAngles: u, polarRadius: d, zIndex: f } = t, p = INe(t, FNe), m = Q(XK), h = Q((e) => NNe(e, i)), g = Q((e) => PNe(e, a)), _ = Array.isArray(u) ? u : h, v = Array.isArray(d) ? d : g;if (_ == null || v == null) return null;- var y = O1({+ var y = E1({cx: m?.cx ?? o ?? 0,cy: m?.cy ?? s ?? 0,innerRadius: m?.innerRadius ?? c ?? 0,@@ -64317,13 +64308,13 @@ var VNe = (e, t, n, r) => {polarRadius: v,zIndex: f}, p), { outerRadius: b } = y;- return b <= 0 ? null : /*#__PURE__*/ B.createElement(XQ, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(UNe, E1({+ return b <= 0 ? null : /*#__PURE__*/ B.createElement(JQ, { zIndex: y.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-polar-grid" }, /*#__PURE__*/ B.createElement(UNe, w1({gridType: n,radialLines: r}, y, {polarAngles: _,polarRadius: v- })), /*#__PURE__*/ B.createElement(HNe, E1({+ })), /*#__PURE__*/ B.createElement(HNe, w1({gridType: n,radialLines: r}, y, {@@ -64331,19 +64322,19 @@ var VNe = (e, t, n, r) => {polarRadius: v}))));};-j1.displayName = "PolarGrid";+k1.displayName = "PolarGrid";//#endregion//#region node_modules/es-toolkit/dist/compat/_internal/toArray.mjs-function M1(e) {+function A1(e) {return Array.isArray(e) ? e : Array.from(e);}//#endregion//#region node_modules/es-toolkit/dist/compat/math/maxBy.mjs-function GNe(e, t = wB) {+function GNe(e, t = CB) {if (e == null) return;- let n = M1(e);+ let n = A1(e);if (n.length === 0) return;- let r = HB(t), i, a;+ let r = VB(t), i, a;for (let e = 0; e < n.length; e++) {let t = n[e], o = r(t, e, n);o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o > a) && (a = o, i = t);@@ -64352,11 +64343,11 @@ function GNe(e, t = wB) {}//#endregion//#region node_modules/es-toolkit/dist/compat/math/minBy.mjs-function KNe(e, t = wB) {+function KNe(e, t = CB) {if (e == null) return;- let n = M1(e);+ let n = A1(e);if (n.length === 0) return;- let r = HB(t), i, a;+ let r = VB(t), i, a;for (let e = 0; e < n.length; e++) {let t = n[e], o = r(t, e, n);o == null || Number.isNaN(o) || typeof o == "symbol" || (a === void 0 || o < a) && (a = o, i = t);@@ -64365,7 +64356,7 @@ function KNe(e, t = wB) {}//#endregion//#region node_modules/recharts/es6/state/polarAxisSlice.js-var N1 = jH({+var j1 = AH({name: "polarAxis",initialState: {radiusAxis: {},@@ -64373,22 +64364,22 @@ var N1 = jH({},reducers: {addRadiusAxis(e, t) {- e.radiusAxis[t.payload.id] = HW(t.payload);+ e.radiusAxis[t.payload.id] = VW(t.payload);},removeRadiusAxis(e, t) {delete e.radiusAxis[t.payload.id];},addAngleAxis(e, t) {- e.angleAxis[t.payload.id] = HW(t.payload);+ e.angleAxis[t.payload.id] = VW(t.payload);},removeAngleAxis(e, t) {delete e.angleAxis[t.payload.id];}}-}), { addRadiusAxis: qNe, removeRadiusAxis: JNe, addAngleAxis: YNe, removeAngleAxis: XNe } = N1.actions, ZNe = N1.reducer;+}), { addRadiusAxis: qNe, removeRadiusAxis: JNe, addAngleAxis: YNe, removeAngleAxis: XNe } = j1.actions, ZNe = j1.reducer;//#endregion//#region node_modules/recharts/es6/util/getClassNameFromUnknown.js-function P1(e) {+function M1(e) {return e && typeof e == "object" && "className" in e && typeof e.className == "string" ? e.className : "";}//#endregion@@ -64404,16 +64395,16 @@ var QNe = ["type"], $Ne = ["stroke","tick"];-function F1() {- return F1 = Object.assign ? Object.assign.bind() : function(e) {+function N1() {+ return N1 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, F1.apply(null, arguments);+ }, N1.apply(null, arguments);}-function I1(e, t) {+function P1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64423,12 +64414,12 @@ function I1(e, t) {}return n;}-function L1(e) {+function F1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? I1(Object(n), !0).forEach(function(t) {+ t % 2 ? P1(Object(n), !0).forEach(function(t) {tPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I1(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -64456,7 +64447,7 @@ function rPe(e, t) {}return (t === "string" ? String : Number)(e);}-function R1(e, t) {+function I1(e, t) {if (e == null) return {};var n, r, i = iPe(e, t);if (Object.getOwnPropertySymbols) {@@ -64476,17 +64467,17 @@ function iPe(e, t) {}var aPe = "radiusAxis";function oPe(e) {- var t = KB(), n = tW(), r = (0, B.useMemo)(() => {- var { type: t } = e, r = R1(e, QNe), i = RK(n, "radiusAxis", t);- if (i != null) return L1(L1({}, r), {}, { type: i });+ var t = GB(), n = eW(), r = (0, B.useMemo)(() => {+ var { type: t } = e, r = I1(e, QNe), i = LK(n, "radiusAxis", t);+ if (i != null) return F1(F1({}, r), {}, { type: i });}, [e, n]);- return (0, B.useEffect)(() => r == null ? lB : (t(qNe(r)), () => {+ return (0, B.useEffect)(() => r == null ? cB : (t(qNe(r)), () => {t(JNe(r));}), [t, r]), null;}var sPe = (e, t, n, r) => {var { coordinate: i } = e;- return $G(n, r, i, t);+ return QG(n, r, i, t);}, cPe = (e) => {var t;switch (e) {@@ -64511,36 +64502,36 @@ var sPe = (e, t, n, r) => {clockWise: !1};}, uPe = (e, t) => {- var { cx: n, cy: r, angle: i, axisLine: a } = e, o = R1(e, $Ne), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = $G(n, r, s[0], i), l = $G(n, r, s[1], i), u = L1(L1(L1({}, UR(o)), {}, { fill: "none" }, UR(a)), {}, {+ var { cx: n, cy: r, angle: i, axisLine: a } = e, o = I1(e, $Ne), s = t.reduce((e, t) => [Math.min(e[0], t.coordinate), Math.max(e[1], t.coordinate)], [Infinity, -Infinity]), c = QG(n, r, s[0], i), l = QG(n, r, s[1], i), u = F1(F1(F1({}, HR(o)), {}, { fill: "none" }, HR(a)), {}, {x1: c.x,y1: c.y,x2: l.x,y2: l.y});- return /*#__PURE__*/ B.createElement("line", F1({ className: "recharts-polar-radius-axis-line" }, u));-}, dPe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(R$, F1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), fPe = (e, t) => {- var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = R1(e, ePe), s = cPe(e.orientation), c = UR(o), l = WR(a), u = t.map((t, o) => {- var u = sPe(t, e.angle, e.cx, e.cy), d = L1(L1(L1(L1({+ return /*#__PURE__*/ B.createElement("line", N1({ className: "recharts-polar-radius-axis-line" }, u));+}, dPe = (e, t, n) => /*#__PURE__*/ B.isValidElement(e) ? /*#__PURE__*/ B.cloneElement(e, t) : typeof e == "function" ? e(t) : /*#__PURE__*/ B.createElement(I$, N1({}, t, { className: "recharts-polar-radius-axis-tick-value" }), n), fPe = (e, t) => {+ var { angle: n, tickFormatter: r, stroke: i, tick: a } = e, o = I1(e, ePe), s = cPe(e.orientation), c = HR(o), l = UR(a), u = t.map((t, o) => {+ var u = sPe(t, e.angle, e.cx, e.cy), d = F1(F1(F1(F1({textAnchor: s,transform: `rotate(${90 - n}, ${u.x}, ${u.y})`}, c), {}, {stroke: "none",fill: i}, l), {}, { index: o }, u), {}, { payload: t });- return /*#__PURE__*/ B.createElement(YR, F1({- className: _h("recharts-polar-radius-axis-tick", P1(a)),+ return /*#__PURE__*/ B.createElement(JR, N1({+ className: _h("recharts-polar-radius-axis-tick", M1(a)),key: `tick-${t.coordinate}`- }, _B(e, t, o)), dPe(a, d, r ? r(t.value, o) : t.value));+ }, gB(e, t, o)), dPe(a, d, r ? r(t.value, o) : t.value));});- return /*#__PURE__*/ B.createElement(YR, { className: "recharts-polar-radius-axis-ticks" }, u);+ return /*#__PURE__*/ B.createElement(JR, { className: "recharts-polar-radius-axis-ticks" }, u);}, pPe = (e) => {- var { radiusAxisId: t } = e, n = Q(ZK), r = Q((e) => C1(e, "radiusAxis", t)), i = Q((e) => T1(e, "radiusAxis", t, !1));+ var { radiusAxisId: t } = e, n = Q(XK), r = Q((e) => x1(e, "radiusAxis", t)), i = Q((e) => C1(e, "radiusAxis", t, !1));if (n == null || !i || !i.length || r == null) return null;- var a = L1(L1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;- return /*#__PURE__*/ B.createElement(XQ, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(YR, { className: _h("recharts-polar-radius-axis", aPe, a.className) }, s && uPe(a, i), o && fPe(a, i), /*#__PURE__*/ B.createElement(cNe, lPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(hNe, { label: a.label }), a.children)));+ var a = F1(F1({}, e), {}, { scale: r }, n), { tick: o, axisLine: s } = a;+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: a.zIndex }, /*#__PURE__*/ B.createElement(JR, { className: _h("recharts-polar-radius-axis", aPe, a.className) }, s && uPe(a, i), o && fPe(a, i), /*#__PURE__*/ B.createElement(cNe, lPe(a.angle, a.cx, a.cy, i), /*#__PURE__*/ B.createElement(hNe, { label: a.label }), a.children)));};-function z1(e) {- var t = yB(e, IK);+function L1(e) {+ var t = vB(e, FK);return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(oPe, {domain: t.domain,id: t.radiusAxisId,@@ -64560,20 +64551,20 @@ function z1(e) {tick: t.tick}), /*#__PURE__*/ B.createElement(pPe, t));}-z1.displayName = "PolarRadiusAxis";+L1.displayName = "PolarRadiusAxis";//#endregion//#region node_modules/recharts/es6/polar/PolarAngleAxis.jsvar mPe = ["children", "type"], hPe = ["ref"];-function B1() {- return B1 = Object.assign ? Object.assign.bind() : function(e) {+function R1() {+ return R1 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, B1.apply(null, arguments);+ }, R1.apply(null, arguments);}-function V1(e, t) {+function z1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64583,12 +64574,12 @@ function V1(e, t) {}return n;}-function H1(e) {+function B1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? V1(Object(n), !0).forEach(function(t) {+ t % 2 ? z1(Object(n), !0).forEach(function(t) {gPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V1(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -64616,7 +64607,7 @@ function vPe(e, t) {}return (t === "string" ? String : Number)(e);}-function U1(e, t) {+function V1(e, t) {if (e == null) return {};var n, r, i = yPe(e, t);if (Object.getOwnPropertySymbols) {@@ -64634,18 +64625,18 @@ function yPe(e, t) {}return n;}-var W1 = 1e-5, bPe = Math.cos(QG(45)), xPe = "angleAxis";+var H1 = 1e-5, bPe = Math.cos(ZG(45)), xPe = "angleAxis";function SPe(e) {- var t = KB(), n = tW(), r = (0, B.useMemo)(() => {- var { children: t, type: r } = e, i = U1(e, mPe), a = RK(n, "angleAxis", r);- if (a != null) return H1(H1({}, i), {}, { type: a });- }, [e, n]), i = r === Q((e) => UK(e, r?.id));- return (0, B.useEffect)(() => r == null ? lB : (t(YNe(r)), () => {+ var t = GB(), n = eW(), r = (0, B.useMemo)(() => {+ var { children: t, type: r } = e, i = V1(e, mPe), a = LK(n, "angleAxis", r);+ if (a != null) return B1(B1({}, i), {}, { type: a });+ }, [e, n]), i = r === Q((e) => HK(e, r?.id));+ return (0, B.useEffect)(() => r == null ? cB : (t(YNe(r)), () => {t(XNe(r));}), [t, r]), i ? e.children : null;}var CPe = (e, t) => {- var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = $G(n, r, i, e.coordinate), l = $G(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);+ var { cx: n, cy: r, radius: i, orientation: a, tickSize: o } = t, s = o || 8, c = QG(n, r, i, e.coordinate), l = QG(n, r, i + (a === "inner" ? -1 : 1) * s, e.coordinate);return {x1: c.x,y1: c.y,@@ -64653,28 +64644,28 @@ var CPe = (e, t) => {y2: l.y};}, wPe = (e, t) => {- var n = Math.cos(QG(-e.coordinate));- return n > W1 ? t === "outer" ? "start" : "end" : n < -W1 ? t === "outer" ? "end" : "start" : "middle";+ var n = Math.cos(ZG(-e.coordinate));+ return n > H1 ? t === "outer" ? "start" : "end" : n < -H1 ? t === "outer" ? "end" : "start" : "middle";}, TPe = (e) => {- var t = Math.cos(QG(-e.coordinate)), n = Math.sin(QG(-e.coordinate));+ var t = Math.cos(ZG(-e.coordinate)), n = Math.sin(ZG(-e.coordinate));return Math.abs(t) <= bPe ? n > 0 ? "start" : "end" : "middle";}, EPe = (e) => {var { cx: t, cy: n, radius: r, axisLineType: i, axisLine: a, ticks: o } = e;if (!a) return null;- var s = H1(H1({}, UR(e)), {}, { fill: "none" }, UR(a));- if (i === "circle") return /*#__PURE__*/ B.createElement(p1, B1({ className: "recharts-polar-angle-axis-line" }, s, {+ var s = B1(B1({}, HR(e)), {}, { fill: "none" }, HR(a));+ if (i === "circle") return /*#__PURE__*/ B.createElement(d1, R1({ className: "recharts-polar-angle-axis-line" }, s, {cx: t,cy: n,r}));- var c = o.map((e) => $G(t, n, r, e.coordinate));- return /*#__PURE__*/ B.createElement(d1, B1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));+ var c = o.map((e) => QG(t, n, r, e.coordinate));+ return /*#__PURE__*/ B.createElement(l1, R1({ className: "recharts-polar-angle-axis-line" }, s, { points: c }));}, DPe = (e) => {var { tick: t, tickProps: n, value: r } = e;- return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(R$, B1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;+ return t ? /*#__PURE__*/ B.isValidElement(t) ? /*#__PURE__*/ B.cloneElement(t, n) : typeof t == "function" ? t(n) : /*#__PURE__*/ B.createElement(I$, R1({}, n, { className: "recharts-polar-angle-axis-tick-value" }), r) : null;}, OPe = (e) => {- var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = UR(e), { ref: s } = o, c = U1(o, hPe), l = WR(t), u = H1(H1({}, c), {}, { fill: "none" }, UR(n)), d = a.map((a, o) => {- var s = CPe(a, e), d = wPe(a, e.orientation), f = TPe(a), p = H1(H1(H1({}, c), {}, {+ var { tick: t, tickLine: n, tickFormatter: r, stroke: i, ticks: a } = e, o = HR(e), { ref: s } = o, c = V1(o, hPe), l = UR(t), u = B1(B1({}, c), {}, { fill: "none" }, HR(n)), d = a.map((a, o) => {+ var s = CPe(a, e), d = wPe(a, e.orientation), f = TPe(a), p = B1(B1(B1({}, c), {}, {textAnchor: d,verticalAnchor: f,stroke: "none",@@ -64685,27 +64676,27 @@ var CPe = (e, t) => {x: s.x2,y: s.y2});- return /*#__PURE__*/ B.createElement(YR, B1({- className: _h("recharts-polar-angle-axis-tick", P1(t)),+ return /*#__PURE__*/ B.createElement(JR, R1({+ className: _h("recharts-polar-angle-axis-tick", M1(t)),key: `tick-${a.coordinate}`- }, _B(e, a, o)), n && /*#__PURE__*/ B.createElement("line", B1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(DPe, {+ }, gB(e, a, o)), n && /*#__PURE__*/ B.createElement("line", R1({ className: "recharts-polar-angle-axis-tick-line" }, u, s)), /*#__PURE__*/ B.createElement(DPe, {tick: t,tickProps: p,value: r ? r(a.value, o) : a.value}));});- return /*#__PURE__*/ B.createElement(YR, { className: "recharts-polar-angle-axis-ticks" }, d);+ return /*#__PURE__*/ B.createElement(JR, { className: "recharts-polar-angle-axis-ticks" }, d);}, kPe = (e) => {- var { angleAxisId: t } = e, n = Q(ZK), r = Q((e) => C1(e, "angleAxis", t)), i = NU(), a = Q((e) => jNe(e, "angleAxis", t, i));+ var { angleAxisId: t } = e, n = Q(XK), r = Q((e) => x1(e, "angleAxis", t)), i = MU(), a = Q((e) => jNe(e, "angleAxis", t, i));if (n == null || !a || !a.length || r == null) return null;- var o = H1(H1(H1({}, e), {}, { scale: r }, n), {}, {+ var o = B1(B1(B1({}, e), {}, { scale: r }, n), {}, {radius: n.outerRadius,ticks: a});- return /*#__PURE__*/ B.createElement(XQ, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(YR, { className: _h("recharts-polar-angle-axis", xPe, o.className) }, /*#__PURE__*/ B.createElement(EPe, o), /*#__PURE__*/ B.createElement(OPe, o)));+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: o.zIndex }, /*#__PURE__*/ B.createElement(JR, { className: _h("recharts-polar-angle-axis", xPe, o.className) }, /*#__PURE__*/ B.createElement(EPe, o), /*#__PURE__*/ B.createElement(OPe, o)));};-function G1(e) {- var t = yB(e, FK);+function U1(e) {+ var t = vB(e, PK);return /*#__PURE__*/ B.createElement(SPe, {id: t.angleAxisId,scale: t.scale,@@ -64725,7 +64716,7 @@ function G1(e) {domain: t.domain}, /*#__PURE__*/ B.createElement(kPe, t));}-G1.displayName = "PolarAngleAxis";+U1.displayName = "PolarAngleAxis";//#endregion//#region node_modules/react-is/cjs/react-is.production.jsvar APe = /* @__PURE__ */ xt(((e) => {@@ -64759,21 +64750,21 @@ var APe = /* @__PURE__ */ xt(((e) => {};})), jPe = (/* @__PURE__ */ xt(((e, t) => {t.exports = APe();-})))(), K1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", q1 = null, J1 = null, Y1 = (e) => {- if (e === q1 && Array.isArray(J1)) return J1;+})))(), W1 = (e) => typeof e == "string" ? e : e ? e.displayName || e.name || "Component" : "", G1 = null, K1 = null, q1 = (e) => {+ if (e === G1 && Array.isArray(K1)) return K1;var t = [];return B.Children.forEach(e, (e) => {- oB(e) || ((0, jPe.isFragment)(e) ? t = t.concat(Y1(e.props.children)) : t.push(e));- }), J1 = t, q1 = e, t;+ aB(e) || ((0, jPe.isFragment)(e) ? t = t.concat(q1(e.props.children)) : t.push(e));+ }), K1 = t, G1 = e, t;};-function X1(e, t) {+function J1(e, t) {var n = [], r = [];- return r = Array.isArray(t) ? t.map((e) => K1(e)) : [K1(t)], Y1(e).forEach((e) => {- var t = Jz(e, "type.displayName") || Jz(e, "type.name");+ return r = Array.isArray(t) ? t.map((e) => W1(e)) : [W1(t)], q1(e).forEach((e) => {+ var t = qz(e, "type.displayName") || qz(e, "type.name");t && r.indexOf(t) !== -1 && n.push(e);}), n;}-var Z1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;+var Y1 = (e) => e && typeof e == "object" && "clipDot" in e ? !!e.clipDot : !0;//#endregion//#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjsfunction MPe(e) {@@ -64790,7 +64781,7 @@ function MPe(e) {//#endregion//#region node_modules/recharts/es6/shape/Trapezoid.jsvar NPe, PPe, FPe, IPe, LPe;-function Q1(e, t) {+function X1(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64800,12 +64791,12 @@ function Q1(e, t) {}return n;}-function $1(e) {+function Z1(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Q1(Object(n), !0).forEach(function(t) {+ t % 2 ? X1(Object(n), !0).forEach(function(t) {RPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Q1(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X1(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -64833,37 +64824,37 @@ function BPe(e, t) {}return (t === "string" ? String : Number)(e);}-function e0() {- return e0 = Object.assign ? Object.assign.bind() : function(e) {+function Q1() {+ return Q1 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, e0.apply(null, arguments);+ }, Q1.apply(null, arguments);}-function t0(e, t) {+function $1(e, t) {return t ||= e.slice(0), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } }));}-var n0 = (e, t, n, r, i) => {- var a = n - r, o = Xz(NPe ||= t0([+var e0 = (e, t, n, r, i) => {+ var a = n - r, o = Yz(NPe ||= $1(["M ",",",""]), e, t);- return o += Xz(PPe ||= t0([+ return o += Yz(PPe ||= $1(["L ",",",""- ]), e + n, t), o += Xz(FPe ||= t0([+ ]), e + n, t), o += Yz(FPe ||= $1(["L ",",",""- ]), e + n - a / 2, t + i), o += Xz(IPe ||= t0([+ ]), e + n - a / 2, t + i), o += Yz(IPe ||= $1(["L ",",",""- ]), e + n - a / 2 - r, t + i), o += Xz(LPe ||= t0([+ ]), e + n - a / 2 - r, t + i), o += Yz(LPe ||= $1(["L ",","," Z"@@ -64879,7 +64870,7 @@ var n0 = (e, t, n, r, i) => {animationDuration: 1500,animationEasing: "ease"}, HPe = (e) => {- var t = yB(e, VPe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(-1), h = (0, B.useRef)(i), g = (0, B.useRef)(a), _ = (0, B.useRef)(o), v = (0, B.useRef)(n), y = (0, B.useRef)(r), b = BG(e, "trapezoid-");+ var t = vB(e, VPe), { x: n, y: r, upperWidth: i, lowerWidth: a, height: o, className: s } = t, { animationEasing: c, animationDuration: l, animationBegin: u, isUpdateAnimationActive: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(-1), h = (0, B.useRef)(i), g = (0, B.useRef)(a), _ = (0, B.useRef)(o), v = (0, B.useRef)(n), y = (0, B.useRef)(r), b = zG(e, "trapezoid-");if ((0, B.useEffect)(() => {if (f.current && f.current.getTotalLength) try {var e = f.current.getTotalLength();@@ -64887,12 +64878,12 @@ var n0 = (e, t, n, r, i) => {} catch {}}, []), n !== +n || r !== +r || i !== +i || a !== +a || o !== +o || i === 0 && a === 0 || o === 0) return null;var x = _h("recharts-trapezoid", s);- if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", e0({}, GR(t), {+ if (!d) return /*#__PURE__*/ B.createElement("g", null, /*#__PURE__*/ B.createElement("path", Q1({}, WR(t), {className: x,- d: n0(n, r, i, a, o)+ d: e0(n, r, i, a, o)})));- var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = EG(["strokeDasharray"], l, c);- return /*#__PURE__*/ B.createElement(zG, {+ var S = h.current, C = g.current, w = _.current, T = v.current, E = y.current, D = `0px ${p === -1 ? 1 : p}px`, O = `${p}px ${p}px`, k = TG(["strokeDasharray"], l, c);+ return /*#__PURE__*/ B.createElement(RG, {animationId: b,key: b,canBegin: p > 0,@@ -64901,17 +64892,17 @@ var n0 = (e, t, n, r, i) => {isActive: d,begin: u}, (e) => {- var s = iB(S, i, e), c = iB(C, a, e), l = iB(w, o, e), u = iB(T, n, e), d = iB(E, r, e);+ var s = rB(S, i, e), c = rB(C, a, e), l = rB(w, o, e), u = rB(T, n, e), d = rB(E, r, e);f.current && (h.current = s, g.current = c, _.current = l, v.current = u, y.current = d);var p = e > 0 ? {transition: k,strokeDasharray: O} : { strokeDasharray: D };- return /*#__PURE__*/ B.createElement("path", e0({}, GR(t), {+ return /*#__PURE__*/ B.createElement("path", Q1({}, WR(t), {className: x,- d: n0(u, d, s, c, l),+ d: e0(u, d, s, c, l),ref: f,- style: $1($1({}, p), t.style)+ style: Z1(Z1({}, p), t.style)}));});}, UPe = [@@ -64938,7 +64929,7 @@ function GPe(e, t) {}return n;}-function r0(e, t) {+function t0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -64948,12 +64939,12 @@ function r0(e, t) {}return n;}-function i0(e) {+function n0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? r0(Object(n), !0).forEach(function(t) {+ t % 2 ? t0(Object(n), !0).forEach(function(t) {KPe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : t0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -64982,67 +64973,67 @@ function JPe(e, t) {return (t === "string" ? String : Number)(e);}function YPe(e, t) {- return i0(i0({}, t), e);+ return n0(n0({}, t), e);}function XPe(e, t) {return e === "symbols";}-function a0(e) {+function r0(e) {var { shapeType: t, elementProps: n } = e;switch (t) {- case "rectangle": return /*#__PURE__*/ B.createElement(JG, n);+ case "rectangle": return /*#__PURE__*/ B.createElement(qG, n);case "trapezoid": return /*#__PURE__*/ B.createElement(HPe, n);- case "sector": return /*#__PURE__*/ B.createElement(aK, n);+ case "sector": return /*#__PURE__*/ B.createElement(iK, n);case "symbols":- if (XPe(t, n)) return /*#__PURE__*/ B.createElement(mB, n);+ if (XPe(t, n)) return /*#__PURE__*/ B.createElement(pB, n);break;- case "curve": return /*#__PURE__*/ B.createElement(xG, n);+ case "curve": return /*#__PURE__*/ B.createElement(bG, n);default: return null;}}function ZPe(e) {return /*#__PURE__*/ (0, B.isValidElement)(e) ? e.props : e;}-function o0(e) {+function i0(e) {var { option: t, shapeType: n, activeClassName: r = "recharts-active-shape", inActiveClassName: i = "recharts-shape" } = e, a = WPe(e, UPe), o;- if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, i0(i0({}, a), ZPe(t)));+ if (/*#__PURE__*/ (0, B.isValidElement)(t)) o = /*#__PURE__*/ (0, B.cloneElement)(t, n0(n0({}, a), ZPe(t)));else if (typeof t == "function") o = t(a, a.index);else if (MPe(t) && typeof t != "boolean") {var s = YPe(t, a);- o = /*#__PURE__*/ B.createElement(a0, {+ o = /*#__PURE__*/ B.createElement(r0, {shapeType: n,elementProps: s});} else {var c = a;- o = /*#__PURE__*/ B.createElement(a0, {+ o = /*#__PURE__*/ B.createElement(r0, {shapeType: n,elementProps: c});}- return a.isActive ? /*#__PURE__*/ B.createElement(YR, { className: r }, o) : /*#__PURE__*/ B.createElement(YR, { className: i }, o);+ return a.isActive ? /*#__PURE__*/ B.createElement(JR, { className: r }, o) : /*#__PURE__*/ B.createElement(JR, { className: i }, o);}//#endregion//#region node_modules/recharts/es6/context/tooltipContext.js-var s0 = (e, t, n) => {- var r = KB();+var a0 = (e, t, n) => {+ var r = GB();return (i, a) => (o) => {- e?.(i, a, o), r(XZ({+ e?.(i, a, o), r(YZ({activeIndex: String(a),activeDataKey: t,activeCoordinate: i.tooltipPosition,activeGraphicalItemId: n}));};-}, c0 = (e) => {- var t = KB();+}, o0 = (e) => {+ var t = GB();return (n, r) => (i) => {- e?.(n, r, i), t(LAe());+ e?.(n, r, i), t(IAe());};-}, l0 = (e, t, n) => {- var r = KB();+}, s0 = (e, t, n) => {+ var r = GB();return (i, a) => (o) => {- e?.(i, a, o), r(RAe({+ e?.(i, a, o), r(LAe({activeIndex: String(a),activeDataKey: t,activeCoordinate: i.tooltipPosition,@@ -65052,10 +65043,10 @@ var s0 = (e, t, n) => {};//#endregion//#region node_modules/recharts/es6/state/SetTooltipEntrySettings.js-function u0(e) {- var { tooltipEntrySettings: t } = e, n = KB(), r = NU(), i = (0, B.useRef)(null);+function c0(e) {+ var { tooltipEntrySettings: t } = e, n = GB(), r = MU(), i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- r || (i.current === null ? n(NAe(t)) : i.current !== t && n(PAe({+ r || (i.current === null ? n(MAe(t)) : i.current !== t && n(NAe({prev: i.current,next: t})), i.current = t);@@ -65064,15 +65055,15 @@ function u0(e) {n,r]), (0, B.useLayoutEffect)(() => () => {- i.current &&= (n(FAe(i.current)), null);+ i.current &&= (n(PAe(i.current)), null);}, [n]), null;}//#endregion//#region node_modules/recharts/es6/state/SetLegendPayload.js-function d0(e) {- var { legendPayload: t } = e, n = KB(), r = NU(), i = (0, B.useRef)(null);+function l0(e) {+ var { legendPayload: t } = e, n = GB(), r = MU(), i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- r || (i.current === null ? n(GW(t)) : i.current !== t && n(KW({+ r || (i.current === null ? n(WW(t)) : i.current !== t && n(GW({prev: i.current,next: t})), i.current = t);@@ -65081,13 +65072,13 @@ function d0(e) {r,t]), (0, B.useLayoutEffect)(() => () => {- i.current &&= (n(qW(i.current)), null);+ i.current &&= (n(KW(i.current)), null);}, [n]), null;}-function f0(e) {- var { legendPayload: t } = e, n = KB(), r = Q(ZU), i = (0, B.useRef)(null);+function u0(e) {+ var { legendPayload: t } = e, n = GB(), r = Q(XU), i = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {- (r === "centric" || r === "radial") && (i.current === null ? n(GW(t)) : i.current !== t && n(KW({+ (r === "centric" || r === "radial") && (i.current === null ? n(WW(t)) : i.current !== t && n(GW({prev: i.current,next: t})), i.current = t);@@ -65096,13 +65087,13 @@ function f0(e) {r,t]), (0, B.useLayoutEffect)(() => () => {- i.current &&= (n(qW(i.current)), null);+ i.current &&= (n(KW(i.current)), null);}, [n]), null;}//#endregion//#region node_modules/recharts/es6/util/useId.jsvar QPe = B.useId ?? (() => {- var [e] = B.useState(() => tB("uid-"));+ var [e] = B.useState(() => eB("uid-"));return e;});//#endregion@@ -65113,10 +65104,10 @@ function $Pe(e, t) {}//#endregion//#region node_modules/recharts/es6/context/RegisterGraphicalItemId.js-var eFe = /*#__PURE__*/ (0, B.createContext)(void 0), p0 = (e) => {+var eFe = /*#__PURE__*/ (0, B.createContext)(void 0), d0 = (e) => {var { id: t, type: n, children: r } = e, i = $Pe(`recharts-${n}`, t);return /*#__PURE__*/ B.createElement(eFe.Provider, { value: i }, r(i));-}, m0 = jH({+}, f0 = AH({name: "graphicalItems",initialState: {cartesianItems: [],@@ -65125,47 +65116,47 @@ var eFe = /*#__PURE__*/ (0, B.createContext)(void 0), p0 = (e) => {reducers: {addCartesianGraphicalItem: {reducer(e, t) {- e.cartesianItems.push(HW(t.payload));+ e.cartesianItems.push(VW(t.payload));},- prepare: DH()+ prepare: EH()},replaceCartesianGraphicalItem: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = vH(e).cartesianItems.indexOf(HW(n));- i > -1 && (e.cartesianItems[i] = HW(r));+ var { prev: n, next: r } = t.payload, i = _H(e).cartesianItems.indexOf(VW(n));+ i > -1 && (e.cartesianItems[i] = VW(r));},- prepare: DH()+ prepare: EH()},removeCartesianGraphicalItem: {reducer(e, t) {- var n = vH(e).cartesianItems.indexOf(HW(t.payload));+ var n = _H(e).cartesianItems.indexOf(VW(t.payload));n > -1 && e.cartesianItems.splice(n, 1);},- prepare: DH()+ prepare: EH()},addPolarGraphicalItem: {reducer(e, t) {- e.polarItems.push(HW(t.payload));+ e.polarItems.push(VW(t.payload));},- prepare: DH()+ prepare: EH()},removePolarGraphicalItem: {reducer(e, t) {- var n = vH(e).polarItems.indexOf(HW(t.payload));+ var n = _H(e).polarItems.indexOf(VW(t.payload));n > -1 && e.polarItems.splice(n, 1);},- prepare: DH()+ prepare: EH()},replacePolarGraphicalItem: {reducer(e, t) {- var { prev: n, next: r } = t.payload, i = vH(e).polarItems.indexOf(HW(n));- i > -1 && (e.polarItems[i] = HW(r));+ var { prev: n, next: r } = t.payload, i = _H(e).polarItems.indexOf(VW(n));+ i > -1 && (e.polarItems[i] = VW(r));},- prepare: DH()+ prepare: EH()}}-}), { addCartesianGraphicalItem: tFe, replaceCartesianGraphicalItem: nFe, removeCartesianGraphicalItem: rFe, addPolarGraphicalItem: iFe, removePolarGraphicalItem: aFe, replacePolarGraphicalItem: oFe } = m0.actions, sFe = m0.reducer, h0 = /*#__PURE__*/ (0, B.memo)((e) => {- var t = KB(), n = (0, B.useRef)(null);+}), { addCartesianGraphicalItem: tFe, replaceCartesianGraphicalItem: nFe, removeCartesianGraphicalItem: rFe, addPolarGraphicalItem: iFe, removePolarGraphicalItem: aFe, replacePolarGraphicalItem: oFe } = f0.actions, sFe = f0.reducer, p0 = /*#__PURE__*/ (0, B.memo)((e) => {+ var t = GB(), n = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {n.current === null ? t(tFe(e)) : n.current !== e && t(nFe({prev: n.current,@@ -65174,8 +65165,8 @@ var eFe = /*#__PURE__*/ (0, B.createContext)(void 0), p0 = (e) => {}, [t, e]), (0, B.useLayoutEffect)(() => () => {n.current &&= (t(rFe(n.current)), null);}, [t]), null;-}), g0 = /*#__PURE__*/ (0, B.memo)((e) => {- var t = KB(), n = (0, B.useRef)(null);+}), m0 = /*#__PURE__*/ (0, B.memo)((e) => {+ var t = GB(), n = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => {n.current === null ? t(iFe(e)) : n.current !== e && t(oFe({prev: n.current,@@ -65193,12 +65184,12 @@ function cFe(e) {//#endregion//#region node_modules/es-toolkit/dist/compat/array/last.mjsfunction lFe(e) {- if (!(!TB(e) || e.length === 0)) return cFe(M1(e));+ if (!(!wB(e) || e.length === 0)) return cFe(A1(e));}//#endregion//#region node_modules/recharts/es6/component/Dots.jsvar uFe = ["points"];-function _0(e, t) {+function h0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65208,12 +65199,12 @@ function _0(e, t) {}return n;}-function v0(e) {+function g0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? _0(Object(n), !0).forEach(function(t) {+ t % 2 ? h0(Object(n), !0).forEach(function(t) {dFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -65241,14 +65232,14 @@ function pFe(e, t) {}return (t === "string" ? String : Number)(e);}-function y0() {- return y0 = Object.assign ? Object.assign.bind() : function(e) {+function _0() {+ return _0 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, y0.apply(null, arguments);+ }, _0.apply(null, arguments);}function mFe(e, t) {if (e == null) return {};@@ -65273,16 +65264,16 @@ function gFe(e) {if (/*#__PURE__*/ (0, B.isValidElement)(t)) return /*#__PURE__*/ (0, B.cloneElement)(t, n);if (typeof t == "function") return t(n);var i = _h(r, typeof t == "boolean" ? "" : t.className), a = n ?? {}, { points: o } = a, s = mFe(a, uFe);- return /*#__PURE__*/ B.createElement(p1, y0({}, s, { className: i }));+ return /*#__PURE__*/ B.createElement(d1, _0({}, s, { className: i }));}function _Fe(e, t) {return e == null ? !1 : t ? !0 : e.length === 1;}-function b0(e) {- var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = PK.scatter } = e;+function v0(e) {+ var { points: t, dot: n, className: r, dotClassName: i, dataKey: a, baseProps: o, needClip: s, clipPathId: c, zIndex: l = NK.scatter } = e;if (!_Fe(t, n)) return null;- var u = Z1(n), d = wbe(n), f = t.map((e, r) => {- var s = v0(v0(v0({ r: 3 }, o), d), {}, {+ var u = Y1(n), d = Cbe(n), f = t.map((e, r) => {+ var s = g0(g0(g0({ r: 3 }, o), d), {}, {index: r,cx: e.x ?? void 0,cy: e.y ?? void 0,@@ -65298,11 +65289,11 @@ function b0(e) {className: i});}), p = {};- return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(XQ, { zIndex: l }, /*#__PURE__*/ B.createElement(YR, y0({ className: r }, p), f));+ return s && c != null && (p.clipPath = `url(#clipPath-${u ? "" : "dots-"}${c})`), /*#__PURE__*/ B.createElement(JQ, { zIndex: l }, /*#__PURE__*/ B.createElement(JR, _0({ className: r }, p), f));}//#endregion//#region node_modules/recharts/es6/state/cartesianAxisSlice.js-function x0(e, t) {+function y0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65312,12 +65303,12 @@ function x0(e, t) {}return n;}-function S0(e) {+function b0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? x0(Object(n), !0).forEach(function(t) {+ t % 2 ? y0(Object(n), !0).forEach(function(t) {vFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : x0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : y0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -65345,7 +65336,7 @@ function bFe(e, t) {}return (t === "string" ? String : Number)(e);}-var C0 = jH({+var x0 = AH({name: "cartesianAxis",initialState: {xAxis: {},@@ -65355,60 +65346,60 @@ var C0 = jH({reducers: {addXAxis: {reducer(e, t) {- e.xAxis[t.payload.id] = HW(t.payload);+ e.xAxis[t.payload.id] = VW(t.payload);},- prepare: DH()+ prepare: EH()},replaceXAxis: {reducer(e, t) {var { prev: n, next: r } = t.payload;- e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = HW(r));+ e.xAxis[n.id] !== void 0 && (n.id !== r.id && delete e.xAxis[n.id], e.xAxis[r.id] = VW(r));},- prepare: DH()+ prepare: EH()},removeXAxis: {reducer(e, t) {delete e.xAxis[t.payload.id];},- prepare: DH()+ prepare: EH()},addYAxis: {reducer(e, t) {- e.yAxis[t.payload.id] = HW(t.payload);+ e.yAxis[t.payload.id] = VW(t.payload);},- prepare: DH()+ prepare: EH()},replaceYAxis: {reducer(e, t) {var { prev: n, next: r } = t.payload;- e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = HW(r));+ e.yAxis[n.id] !== void 0 && (n.id !== r.id && delete e.yAxis[n.id], e.yAxis[r.id] = VW(r));},- prepare: DH()+ prepare: EH()},removeYAxis: {reducer(e, t) {delete e.yAxis[t.payload.id];},- prepare: DH()+ prepare: EH()},addZAxis: {reducer(e, t) {- e.zAxis[t.payload.id] = HW(t.payload);+ e.zAxis[t.payload.id] = VW(t.payload);},- prepare: DH()+ prepare: EH()},replaceZAxis: {reducer(e, t) {var { prev: n, next: r } = t.payload;- e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = HW(r));+ e.zAxis[n.id] !== void 0 && (n.id !== r.id && delete e.zAxis[n.id], e.zAxis[r.id] = VW(r));},- prepare: DH()+ prepare: EH()},removeZAxis: {reducer(e, t) {delete e.zAxis[t.payload.id];},- prepare: DH()+ prepare: EH()},updateYAxisWidth(e, t) {var { id: n, width: r } = t.payload, i = e.yAxis[n];@@ -65416,22 +65407,22 @@ var C0 = jH({var a = i.widthHistory || [];if (a.length === 3 && a[0] === a[2] && r === a[1] && r !== i.width && Math.abs(r - (a[0] ?? 0)) <= 1) return;var o = [...a, r].slice(-3);- e.yAxis[n] = S0(S0({}, i), {}, {+ e.yAxis[n] = b0(b0({}, i), {}, {width: r,widthHistory: o});}}}-}), { addXAxis: xFe, replaceXAxis: SFe, removeXAxis: CFe, addYAxis: wFe, replaceYAxis: TFe, removeYAxis: EFe, addZAxis: DFe, replaceZAxis: OFe, removeZAxis: kFe, updateYAxisWidth: AFe } = C0.actions, jFe = C0.reducer, MFe = $([- $([jU], (e) => ({+}), { addXAxis: xFe, replaceXAxis: SFe, removeXAxis: CFe, addYAxis: wFe, replaceYAxis: TFe, removeYAxis: EFe, addZAxis: DFe, replaceZAxis: OFe, removeZAxis: kFe, updateYAxisWidth: AFe } = x0.actions, jFe = x0.reducer, MFe = $([+ $([AU], (e) => ({top: e.top,bottom: e.bottom,left: e.left,right: e.right})),- wU,- TU+ CU,+ wU], (e, t, n) => {if (!(!e || t == null || n == null)) return {x: e.left,@@ -65439,10 +65430,10 @@ var C0 = jH({width: Math.max(0, t - e.left - e.right),height: Math.max(0, n - e.top - e.bottom)};-}), w0 = () => Q(MFe), NFe = () => Q(pje);+}), S0 = () => Q(MFe), NFe = () => Q(fje);//#endregion//#region node_modules/recharts/es6/component/ActivePoints.js-function T0(e, t) {+function C0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65452,12 +65443,12 @@ function T0(e, t) {}return n;}-function E0(e) {+function w0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? T0(Object(n), !0).forEach(function(t) {+ t % 2 ? C0(Object(n), !0).forEach(function(t) {PFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -65488,7 +65479,7 @@ function IFe(e, t) {var LFe = (e) => {var { point: t, childIndex: n, mainColor: r, activeDot: i, dataKey: a, clipPath: o } = e;if (i === !1 || t.x == null || t.y == null) return null;- var s = E0(E0(E0({}, {+ var s = w0(w0(w0({}, {index: n,dataKey: a,cx: t.x,@@ -65499,17 +65490,17 @@ var LFe = (e) => {stroke: "#fff",payload: t.payload,value: t.value- }), WR(i)), gB(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(p1, s);- return /*#__PURE__*/ B.createElement(YR, {+ }), UR(i)), hB(i)), c = /*#__PURE__*/ (0, B.isValidElement)(i) ? /*#__PURE__*/ (0, B.cloneElement)(i, s) : typeof i == "function" ? i(s) : /*#__PURE__*/ B.createElement(d1, s);+ return /*#__PURE__*/ B.createElement(JR, {className: "recharts-active-dot",clipPath: o}, c);};-function D0(e) {- var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = PK.activeDot } = e, s = Q(OQ), c = NFe();+function T0(e) {+ var { points: t, mainColor: n, activeDot: r, itemDataKey: i, clipPath: a, zIndex: o = NK.activeDot } = e, s = Q(DQ), c = NFe();if (t == null || c == null) return null;var l = t.find((e) => c.includes(e.payload));- return oB(l) ? null : /*#__PURE__*/ B.createElement(XQ, { zIndex: o }, /*#__PURE__*/ B.createElement(LFe, {+ return aB(l) ? null : /*#__PURE__*/ B.createElement(JQ, { zIndex: o }, /*#__PURE__*/ B.createElement(LFe, {point: l,childIndex: Number(s),mainColor: n,@@ -65520,7 +65511,7 @@ function D0(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/radarSelectors.js-function O0(e, t) {+function E0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65530,12 +65521,12 @@ function O0(e, t) {}return n;}-function k0(e) {+function D0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? O0(Object(n), !0).forEach(function(t) {+ t % 2 ? E0(Object(n), !0).forEach(function(t) {RFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : O0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -65563,16 +65554,16 @@ function BFe(e, t) {}return (t === "string" ? String : Number)(e);}-var A0 = (e, t) => C1(e, "radiusAxis", t), VFe = $([A0], (e) => {+var O0 = (e, t) => x1(e, "radiusAxis", t), VFe = $([O0], (e) => {if (e != null) return { scale: e };-}), HFe = $([WK, A0], (e, t) => {- if (e != null && t != null) return k0(k0({}, e), {}, { scale: t });-}), UFe = (e, t, n, r) => T1(e, "radiusAxis", t, r), j0 = (e, t, n) => UK(e, n), M0 = (e, t, n) => C1(e, "angleAxis", n), WFe = $([j0, M0], (e, t) => {- if (e != null && t != null) return k0(k0({}, e), {}, { scale: t });-}), GFe = (e, t, n, r) => T1(e, "angleAxis", n, r), KFe = $([- j0,- M0,- ZK+}), HFe = $([UK, O0], (e, t) => {+ if (e != null && t != null) return D0(D0({}, e), {}, { scale: t });+}), UFe = (e, t, n, r) => C1(e, "radiusAxis", t, r), k0 = (e, t, n) => HK(e, n), A0 = (e, t, n) => x1(e, "angleAxis", n), WFe = $([k0, A0], (e, t) => {+ if (e != null && t != null) return D0(D0({}, e), {}, { scale: t });+}), GFe = (e, t, n, r) => C1(e, "angleAxis", n, r), KFe = $([+ k0,+ A0,+ XK], (e, t, n) => {if (n != null && t != null) return {scale: t,@@ -65582,16 +65573,16 @@ var A0 = (e, t) => C1(e, "radiusAxis", t), VFe = $([A0], (e) => {cy: n.cy};}), qFe = (e, t, n, r, i) => i, JFe = $([- ZU,+ XU,HFe,UFe,WFe,GFe-], (e, t, n, r, i) => dU(e, "radiusAxis") ? xU(t, n, !1) : xU(r, i, !1)), YFe = $([+], (e, t, n, r, i) => uU(e, "radiusAxis") ? bU(t, n, !1) : bU(r, i, !1)), YFe = $([VFe,KFe,- lK,- $([m1, qFe], (e, t) => {+ cK,+ $([f1, qFe], (e, t) => {if (e != null) return e.find((e) => e.type === "radar" && t === e.id)?.dataKey;}),JFe@@ -65605,16 +65596,16 @@ var A0 = (e, t) => C1(e, "radiusAxis", t), VFe = $([A0], (e) => {bandSize: i});}), XFe = ["id"];-function N0() {- return N0 = Object.assign ? Object.assign.bind() : function(e) {+function j0() {+ return j0 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, N0.apply(null, arguments);+ }, j0.apply(null, arguments);}-function P0(e, t) {+function M0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65624,12 +65615,12 @@ function P0(e, t) {}return n;}-function F0(e) {+function N0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? P0(Object(n), !0).forEach(function(t) {+ t % 2 ? M0(Object(n), !0).forEach(function(t) {ZFe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -65675,7 +65666,7 @@ function tIe(e, t) {}return n;}-function I0(e, t) {+function P0(e, t) {return e && e !== "none" ? e : t;}var nIe = (e) => {@@ -65684,33 +65675,33 @@ var nIe = (e) => {inactive: o,dataKey: t,type: a,- color: I0(r, i),- value: CU(n, t),+ color: P0(r, i),+ value: SU(n, t),payload: e}];}, rIe = /*#__PURE__*/ B.memo((e) => {var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, tooltipType: s, id: c } = e, l = {dataDefinedOnItem: void 0,- getPosition: lB,+ getPosition: cB,settings: {stroke: n,strokeWidth: r,fill: i,nameKey: void 0,dataKey: t,- name: CU(a, t),+ name: SU(a, t),hide: o,type: s,- color: I0(n, i),+ color: P0(n, i),unit: "",graphicalItemId: c}};- return /*#__PURE__*/ B.createElement(u0, { tooltipEntrySettings: l });+ return /*#__PURE__*/ B.createElement(c0, { tooltipEntrySettings: l });});function iIe(e) {- var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = UR(eIe(n, XFe));- return /*#__PURE__*/ B.createElement(b0, {+ var { points: t, props: n } = e, { dot: r, dataKey: i } = n, { id: a } = n, o = HR(eIe(n, XFe));+ return /*#__PURE__*/ B.createElement(v0, {points: t,dot: r,className: "recharts-radar-dots",@@ -65722,8 +65713,8 @@ function iIe(e) {function aIe(e) {var { radiusAxis: t, angleAxis: n, displayedData: r, dataKey: i, bandSize: a } = e, { cx: o, cy: s } = n, c = !1, l = [], u = n.type === "number" ? 0 : a ?? 0;r.forEach((e, r) => {- var a = uU(e, n.dataKey, r), d = uU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? lFe(d) : d, m = oB(p) ? 0 : t.scale.map(p) ?? 0;- Array.isArray(d) && d.length >= 2 && (c = !0), l.push(F0(F0({}, $G(o, s, m, f)), {}, {+ var a = lU(e, n.dataKey, r), d = lU(e, i), f = (n.scale.map(a) ?? 0) + u, p = Array.isArray(d) ? lFe(d) : d, m = aB(p) ? 0 : t.scale.map(p) ?? 0;+ Array.isArray(d) && d.length >= 2 && (c = !0), l.push(N0(N0({}, QG(o, s, m, f)), {}, {name: a,value: d,cx: o,@@ -65736,8 +65727,8 @@ function aIe(e) {var d = [];return c && l.forEach((e) => {if (Array.isArray(e.value)) {- var n = e.value[0], r = oB(n) ? 0 : t.scale.map(n) ?? 0;- d.push(F0(F0({}, e), {}, { radius: r }, $G(o, s, r, e.angle)));+ var n = e.value[0], r = aB(n) ? 0 : t.scale.map(n) ?? 0;+ d.push(N0(N0({}, e), {}, { radius: r }, QG(o, s, r, e.angle)));} else d.push(e);}), {points: l,@@ -65755,7 +65746,7 @@ function oIe(e) {upperWidth: 0,height: 0};- return F0(F0({}, t), {}, {+ return N0(N0({}, t), {}, {value: e.value ?? "",payload: e.payload,parentViewBox: void 0,@@ -65763,12 +65754,12 @@ function oIe(e) {fill: void 0});});- return /*#__PURE__*/ B.createElement(i1, { value: t ? i : void 0 }, r);+ return /*#__PURE__*/ B.createElement(n1, { value: t ? i : void 0 }, r);}function sIe(e) {var { points: t, baseLinePoints: n, props: r } = e;if (t == null) return null;- var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, F0(F0({}, r), {}, { points: t })) : typeof i == "function" ? i(F0(F0({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(d1, N0({}, GR(r), {+ var { shape: i, isRange: a, connectNulls: o } = r, s = /*#__PURE__*/ B.isValidElement(i) ? /*#__PURE__*/ B.cloneElement(i, N0(N0({}, r), {}, { points: t })) : typeof i == "function" ? i(N0(N0({}, r), {}, { points: t })) : /*#__PURE__*/ B.createElement(l1, j0({}, WR(r), {onMouseEnter: (e) => {var { onMouseEnter: t } = r;t && t(r, e);@@ -65781,23 +65772,23 @@ function sIe(e) {baseLinePoints: a ? n : void 0,connectNulls: o}));- return /*#__PURE__*/ B.createElement(YR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(iIe, {+ return /*#__PURE__*/ B.createElement(JR, { className: "recharts-radar-polygon" }, s, /*#__PURE__*/ B.createElement(iIe, {props: r,points: t}));}-var L0 = (e, t, n) => (r, i) => {+var F0 = (e, t, n) => (r, i) => {var a = e && e[Math.floor(i * t)];- return a ? F0(F0({}, r), {}, {- x: iB(a.x, r.x, n),- y: iB(a.y, r.y, n)- }) : F0(F0({}, r), {}, {- x: iB(r.cx, r.x, n),- y: iB(r.cy, r.y, n)+ return a ? N0(N0({}, r), {}, {+ x: rB(a.x, r.x, n),+ y: rB(a.y, r.y, n)+ }) : N0(N0({}, r), {}, {+ x: rB(r.cx, r.x, n),+ y: rB(r.cy, r.y, n)});};function cIe(e) {- var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = BG(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {+ var { props: t, previousPointsRef: n, previousBaseLinePointsRef: r } = e, { points: i, baseLinePoints: a, isAnimationActive: o, animationBegin: s, animationDuration: c, animationEasing: l, onAnimationEnd: u, onAnimationStart: d } = t, f = n.current, p = r.current, m = f ? f.length / i.length : 1, h = p ? p.length / a.length : 1, g = zG(t, "recharts-radar-"), [_, v] = (0, B.useState)(!1), y = !_, b = (0, B.useCallback)(() => {typeof u == "function" && u(), v(!1);}, [u]), x = (0, B.useCallback)(() => {typeof d == "function" && d(), v(!0);@@ -65805,7 +65796,7 @@ function cIe(e) {return /*#__PURE__*/ B.createElement(oIe, {showLabels: y,points: i- }, /*#__PURE__*/ B.createElement(zG, {+ }, /*#__PURE__*/ B.createElement(RG, {animationId: g,begin: s,duration: c,@@ -65815,13 +65806,13 @@ function cIe(e) {onAnimationEnd: b,onAnimationStart: x}, (e) => {- var o = e === 1 ? i : i.map(L0(f, m, e)), s = e === 1 ? a : a?.map(L0(p, h, e));+ var o = e === 1 ? i : i.map(F0(f, m, e)), s = e === 1 ? a : a?.map(F0(p, h, e));return e > 0 && (n.current = o, r.current = s), /*#__PURE__*/ B.createElement(sIe, {points: o,baseLinePoints: s,props: t});- }), /*#__PURE__*/ B.createElement(s1, { label: t.label }), t.children);+ }), /*#__PURE__*/ B.createElement(a1, { label: t.label }), t.children);}function lIe(e) {var t = (0, B.useRef)(void 0), n = (0, B.useRef)(void 0);@@ -65843,33 +65834,33 @@ var uIe = {label: !1,legendType: "rect",radiusAxisId: 0,- zIndex: PK.area+ zIndex: NK.area};function dIe(e) {var { hide: t, className: n, points: r } = e;if (t) return null;var i = _h("recharts-radar", n);- return /*#__PURE__*/ B.createElement(XQ, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YR, { className: i }, /*#__PURE__*/ B.createElement(lIe, e)), /*#__PURE__*/ B.createElement(D0, {+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(JR, { className: i }, /*#__PURE__*/ B.createElement(lIe, e)), /*#__PURE__*/ B.createElement(T0, {points: r,- mainColor: I0(e.stroke, e.fill),+ mainColor: P0(e.stroke, e.fill),itemDataKey: e.dataKey,activeDot: e.activeDot}));}function fIe(e) {- var t = NU(), n = Q((n) => YFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));- return n?.points == null ? null : /*#__PURE__*/ B.createElement(dIe, N0({}, e, {+ var t = MU(), n = Q((n) => YFe(n, e.radiusAxisId, e.angleAxisId, t, e.id));+ return n?.points == null ? null : /*#__PURE__*/ B.createElement(dIe, j0({}, e, {points: n?.points,baseLinePoints: n?.baseLinePoints,isRange: n?.isRange}));}-function R0(e) {- var t = yB(e, uIe);- return /*#__PURE__*/ B.createElement(p0, {+function I0(e) {+ var t = vB(e, uIe);+ return /*#__PURE__*/ B.createElement(d0, {id: t.id,type: "radar"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(g0, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(m0, {type: "radar",id: e,data: void 0,@@ -65877,7 +65868,7 @@ function R0(e) {hide: t.hide,angleAxisId: t.angleAxisId,radiusAxisId: t.radiusAxisId- }), /*#__PURE__*/ B.createElement(f0, { legendPayload: nIe(t) }), /*#__PURE__*/ B.createElement(rIe, {+ }), /*#__PURE__*/ B.createElement(u0, { legendPayload: nIe(t) }), /*#__PURE__*/ B.createElement(rIe, {dataKey: t.dataKey,stroke: t.stroke,strokeWidth: t.strokeWidth,@@ -65886,33 +65877,33 @@ function R0(e) {hide: t.hide,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(fIe, N0({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(fIe, j0({}, t, { id: e }))));}-R0.displayName = "Radar";+I0.displayName = "Radar";//#endregion//#region node_modules/recharts/es6/util/RadialBarUtils.js-function z0() {- return z0 = Object.assign ? Object.assign.bind() : function(e) {+function L0() {+ return L0 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, z0.apply(null, arguments);+ }, L0.apply(null, arguments);}-function B0(e) {+function R0(e) {return typeof e == "string" ? parseInt(e, 10) : e;}-function V0(e) {- return /*#__PURE__*/ B.createElement(o0, z0({ shapeType: "sector" }, e));+function z0(e) {+ return /*#__PURE__*/ B.createElement(i0, L0({ shapeType: "sector" }, e));}//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineBarSizeList.js-var H0 = (e, t, n) => {+var B0 = (e, t, n) => {var r = n ?? e;- if (!oB(r)) return nB(r, t, 0);-}, U0 = (e, t, n) => {- var r = {}, i = e.filter(nq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {+ if (!aB(r)) return tB(r, t, 0);+}, V0 = (e, t, n) => {+ var r = {}, i = e.filter(tq), a = e.filter((e) => e.stackId == null), o = i.reduce((e, t) => {var n = e[t.stackId];return n ??= [], n.push(t), e[t.stackId] = n, e;}, r), s = Object.entries(o).map((e) => {@@ -65920,18 +65911,18 @@ var H0 = (e, t, n) => {return {stackId: r,dataKeys: i.map((e) => e.dataKey),- barSize: H0(t, n, i[0]?.barSize)+ barSize: B0(t, n, i[0]?.barSize)};}), c = a.map((e) => ({stackId: void 0,dataKeys: [e.dataKey].filter((e) => e != null),- barSize: H0(t, n, e.barSize)+ barSize: B0(t, n, e.barSize)}));return [...s, ...c];};//#endregion//#region node_modules/recharts/es6/state/selectors/combiners/combineAllBarPositions.js-function W0(e, t) {+function H0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -65941,12 +65932,12 @@ function W0(e, t) {}return n;}-function G0(e) {+function U0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? W0(Object(n), !0).forEach(function(t) {+ t % 2 ? H0(Object(n), !0).forEach(function(t) {pIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -65977,8 +65968,8 @@ function hIe(e, t) {function gIe(e, t, n, r, i) {var a = r.length;if (!(a < 1)) {- var o = nB(e, n, 0, !0), s, c = [];- if (oU(r[0]?.barSize)) {+ var o = tB(e, n, 0, !0), s, c = [];+ if (aU(r[0]?.barSize)) {var l = !1, u = n / a, d = r.reduce((e, t) => e + (t.barSize || 0), 0);d += (a - 1) * o, d >= n && (d -= (a - 1) * o, o = 0), d >= n && u > 0 && (l = !0, u *= .9, d = a * u);var f = {@@ -65997,11 +65988,11 @@ function gIe(e, t, n, r, i) {return f = n.position, r;}, c);} else {- var p = nB(t, n, 0, !0);+ var p = tB(t, n, 0, !0);n - 2 * p - (a - 1) * o <= 0 && (o = 0);var m = (n - 2 * p - (a - 1) * o) / a;m > 1 && (m >>= 0);- var h = oU(i) ? Math.min(m, i) : m;+ var h = aU(i) ? Math.min(m, i) : m;s = r.reduce((e, t, n) => [...e, {stackId: t.stackId,dataKeys: t.dataKeys,@@ -66014,11 +66005,11 @@ function gIe(e, t, n, r, i) {return s;}}-var K0 = (e, t, n, r, i, a, o) => {- var s = oB(o) ? t : o, c = gIe(n, r, i === a ? a : i, e, s);- return i !== a && c != null && (c = c.map((e) => G0(G0({}, e), {}, { position: G0(G0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;-}, q0 = (e, t) => {- var n = eq(t);+var W0 = (e, t, n, r, i, a, o) => {+ var s = aB(o) ? t : o, c = gIe(n, r, i === a ? a : i, e, s);+ return i !== a && c != null && (c = c.map((e) => U0(U0({}, e), {}, { position: U0(U0({}, e.position), {}, { offset: e.position.offset - i / 2 }) }))), c;+}, G0 = (e, t) => {+ var n = $K(t);if (!(!e || n == null || t == null)) {var { stackId: r } = t;if (r != null) {@@ -66029,7 +66020,7 @@ var K0 = (e, t, n, r, i, a, o) => {}}}-}, J0 = (e, t) => {+}, K0 = (e, t) => {if (e != null && t != null) {var n = e.find((e) => e.stackId === t.stackId && t.dataKey != null && e.dataKeys.includes(t.dataKey));if (n != null) return n.position;@@ -66037,7 +66028,7 @@ var K0 = (e, t, n, r, i, a, o) => {};//#endregion//#region node_modules/recharts/es6/state/selectors/radialBarSelectors.js-function Y0(e, t) {+function q0(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66047,12 +66038,12 @@ function Y0(e, t) {}return n;}-function X0(e) {+function J0(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Y0(Object(n), !0).forEach(function(t) {+ t % 2 ? q0(Object(n), !0).forEach(function(t) {_Ie(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y0(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : q0(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -66080,76 +66071,76 @@ function yIe(e, t) {}return (t === "string" ? String : Number)(e);}-var Z0 = $([(e, t) => WK(e, t), (e, t) => C1(e, "radiusAxis", t)], (e, t) => {- if (e != null && t != null) return X0(X0({}, e), {}, { scale: t });-}), Q0 = (e, t) => MNe(e, "radiusAxis", t, !1), $0 = $([(e, t, n) => UK(e, n), (e, t, n) => C1(e, "angleAxis", n)], (e, t) => {- if (e != null && t != null) return X0(X0({}, e), {}, { scale: t });-}), e2 = (e, t, n) => T1(e, "angleAxis", n, !1), t2 = $([m1, (e, t, n, r) => r], (e, t) => {+var Y0 = $([(e, t) => UK(e, t), (e, t) => x1(e, "radiusAxis", t)], (e, t) => {+ if (e != null && t != null) return J0(J0({}, e), {}, { scale: t });+}), X0 = (e, t) => MNe(e, "radiusAxis", t, !1), Z0 = $([(e, t, n) => HK(e, n), (e, t, n) => x1(e, "angleAxis", n)], (e, t) => {+ if (e != null && t != null) return J0(J0({}, e), {}, { scale: t });+}), Q0 = (e, t, n) => C1(e, "angleAxis", n, !1), $0 = $([f1, (e, t, n, r) => r], (e, t) => {if (e.some((e) => e.type === "radialBar" && t.dataKey === e.dataKey && t.stackId === e.stackId)) return t;-}), n2 = $([- ZU,+}), e2 = $([+ XU,+ Y0,+ X0,Z0,- Q0,- $0,- e2-], (e, t, n, r, i) => dU(e, "radiusAxis") ? xU(t, n, !1) : xU(r, i, !1)), bIe = $([- $0,+ Q0+], (e, t, n, r, i) => uU(e, "radiusAxis") ? bU(t, n, !1) : bU(r, i, !1)), bIe = $([Z0,- ZU+ Y0,+ XU], (e, t, n) => {var r = n === "radial" ? e : t;- if (r != null && r.scale != null) return vU({ numericAxis: r });-}), xIe = (e, t, n, r, i) => i, SIe = (e, t, n, r, i) => n, CIe = (e, t, n, r, i) => t, r2 = (e, t, n, r, i) => r.maxBarSize, i2 = (e) => e.type === "radialBar", wIe = $([$([+ if (r != null && r.scale != null) return _U({ numericAxis: r });+}), xIe = (e, t, n, r, i) => i, SIe = (e, t, n, r, i) => n, CIe = (e, t, n, r, i) => t, t2 = (e, t, n, r, i) => r.maxBarSize, n2 = (e) => e.type === "radialBar", wIe = $([$([$([$([- ZU,- m1,+ XU,+ f1,SIe,CIe- ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(i2)),- DK,+ ], (e, t, n, r) => t.filter((t) => e === "centric" ? t.angleAxisId === n : t.radiusAxisId === r).filter((e) => e.hide === !1).filter(n2)),+ EK,() => void 0- ], U0),+ ], V0),+ CK,wK,TK,- EK,$([- ZU,- wK,- $0,- e2,+ XU,+ CK,Z0,Q0,- r2+ Y0,+ X0,+ t2], (e, t, n, r, i, a, o) => {- var s = oB(o) ? t : o;- return e === "centric" ? xU(n, r, !0) ?? s ?? 0 : xU(i, a, !0) ?? s ?? 0;+ var s = aB(o) ? t : o;+ return e === "centric" ? bU(n, r, !0) ?? s ?? 0 : bU(i, a, !0) ?? s ?? 0;}),- n2,- r2-], K0), t2], J0), a2 = $([h1], (e) => e.filter(i2).filter(nq)), o2 = $([- $([- a2,- lK,- XX- ], tq),- a2,- OK,- kK-], QX), TIe = $([- $0,e2,+ t2+], W0), $0], K0), r2 = $([p1], (e) => e.filter(n2).filter(tq)), i2 = $([+ $([+ r2,+ cK,+ YX+ ], eq),+ r2,+ DK,+ OK+], ZX), TIe = $([Z0,Q0,- cK,- t2,- n2,- ZU,+ Y0,+ X0,+ sK,+ $0,+ e2,+ XU,bIe,- ZK,+ XK,xIe,wIe,- $([(e, t, n) => ZU(e) === "centric" ? o2(e, "radiusAxis", t) : o2(e, "angleAxis", n), t2], q0)+ $([(e, t, n) => XU(e) === "centric" ? i2(e, "radiusAxis", t) : i2(e, "angleAxis", n), $0], G0)], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {var { chartData: p, dataStartIndex: m, dataEndIndex: h } = i;if (a == null || n == null || e == null || p == null || o == null || d == null || s !== "centric" && s !== "radial" || r == null || l == null) return [];@@ -66175,7 +66166,7 @@ var Z0 = $([(e, t) => WK(e, t), (e, t) => C1(e, "radiusAxis", t)], (e, t) => {stackedDomain: f ? (s === "centric" ? n : e).scale.domain() : null,startAngle: b});-}), EIe = $([lK, (e, t) => t], (e, t) => {+}), EIe = $([cK, (e, t) => t], (e, t) => {var { chartData: n, dataStartIndex: r, dataEndIndex: i } = e;if (n == null) return [];var a = n.slice(r, i + 1);@@ -66188,8 +66179,8 @@ var Z0 = $([(e, t) => WK(e, t), (e, t) => C1(e, "radiusAxis", t)], (e, t) => {});//#endregion//#region node_modules/recharts/es6/zIndex/getZIndexFromUnknown.js-function s2(e, t) {- return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && oU(e.zIndex) ? e.zIndex : t;+function a2(e, t) {+ return e && typeof e == "object" && "zIndex" in e && typeof e.zIndex == "number" && aU(e.zIndex) ? e.zIndex : t;}//#endregion//#region node_modules/recharts/es6/polar/RadialBar.js@@ -66203,16 +66194,16 @@ var DIe = ["onClick","onMouseLeave"], kIe = ["value", "background"];-function c2() {- return c2 = Object.assign ? Object.assign.bind() : function(e) {+function o2() {+ return o2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, c2.apply(null, arguments);+ }, o2.apply(null, arguments);}-function l2(e, t) {+function s2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66222,12 +66213,12 @@ function l2(e, t) {}return n;}-function u2(e) {+function c2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? l2(Object(n), !0).forEach(function(t) {+ t % 2 ? s2(Object(n), !0).forEach(function(t) {AIe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : l2(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -66255,7 +66246,7 @@ function MIe(e, t) {}return (t === "string" ? String : Number)(e);}-function d2(e, t) {+function l2(e, t) {if (e == null) return {};var n, r, i = NIe(e, t);if (Object.getOwnPropertySymbols) {@@ -66273,7 +66264,7 @@ function NIe(e, t) {}return n;}-var f2 = [];+var u2 = [];function PIe(e) {var { showLabels: t, sectors: n, children: r } = e, i = n.map((e) => ({value: e.value,@@ -66294,12 +66285,12 @@ function PIe(e) {return /*#__PURE__*/ B.createElement(bNe, { value: t ? i : void 0 }, r);}function FIe(e) {- var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = d2(n, DIe), l = UR(c), u = Q(OQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = d2(n, OIe), h = s0(d, n.dataKey, s), g = c0(p), _ = l0(f, n.dataKey, s);+ var { sectors: t, allOtherRadialBarProps: n, showLabels: r } = e, { shape: i, activeShape: a, cornerRadius: o, id: s } = n, c = l2(n, DIe), l = HR(c), u = Q(DQ), { onMouseEnter: d, onClick: f, onMouseLeave: p } = n, m = l2(n, OIe), h = a0(d, n.dataKey, s), g = o0(p), _ = s0(f, n.dataKey, s);return t == null ? null : /*#__PURE__*/ B.createElement(PIe, {showLabels: r,sectors: t}, t.map((e, t) => {- var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = u2(u2(u2(u2({}, l), {}, { cornerRadius: B0(o) }, e), _B(m, e, t)), {}, {+ var n = !!(a && u === String(t)), r = h(e, t), s = g(e, t), d = _(e, t), f = c2(c2(c2(c2({}, l), {}, { cornerRadius: R0(o) }, e), gB(m, e, t)), {}, {onMouseEnter: r,onMouseLeave: s,onClick: d,@@ -66310,19 +66301,19 @@ function FIe(e) {option: n ? a : i,index: t});- return n ? /*#__PURE__*/ B.createElement(XQ, {- zIndex: PK.activeBar,+ return n ? /*#__PURE__*/ B.createElement(JQ, {+ zIndex: NK.activeBar,key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`- }, /*#__PURE__*/ B.createElement(V0, f)) : /*#__PURE__*/ B.createElement(V0, c2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));- }), /*#__PURE__*/ B.createElement(s1, { label: n.label }), n.children);+ }, /*#__PURE__*/ B.createElement(z0, f)) : /*#__PURE__*/ B.createElement(z0, o2({ key: `sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}` }, f));+ }), /*#__PURE__*/ B.createElement(a1, { label: n.label }), n.children);}function IIe(e) {- var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = BG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, B.useState)(!1), m = (0, B.useCallback)(() => {+ var { props: t, previousSectorsRef: n } = e, { sectors: r, isAnimationActive: i, animationBegin: a, animationDuration: o, animationEasing: s, onAnimationEnd: c, onAnimationStart: l } = t, u = zG(t, "recharts-radialbar-"), d = n.current, [f, p] = (0, B.useState)(!1), m = (0, B.useCallback)(() => {typeof c == "function" && c(), p(!1);}, [c]), h = (0, B.useCallback)(() => {typeof l == "function" && l(), p(!0);}, [l]);- return /*#__PURE__*/ B.createElement(zG, {+ return /*#__PURE__*/ B.createElement(RG, {animationId: u,begin: a,duration: o,@@ -66332,17 +66323,17 @@ function IIe(e) {onAnimationEnd: m,key: u}, (e) => {- var i = e === 1 ? r : (r ?? f2).map((t, n) => {+ var i = e === 1 ? r : (r ?? u2).map((t, n) => {var r = d && d[n];- if (r) return u2(u2({}, t), {}, {- startAngle: iB(r.startAngle, t.startAngle, e),- endAngle: iB(r.endAngle, t.endAngle, e)+ if (r) return c2(c2({}, t), {}, {+ startAngle: rB(r.startAngle, t.startAngle, e),+ endAngle: rB(r.endAngle, t.endAngle, e)});var { endAngle: i, startAngle: a } = t;- return u2(u2({}, t), {}, { endAngle: iB(a, i, e) });+ return c2(c2({}, t), {}, { endAngle: rB(a, i, e) });});return e > 0 && (n.current = i ?? null), /*#__PURE__*/ B.createElement(FIe, {- sectors: i ?? f2,+ sectors: i ?? u2,allOtherRadialBarProps: t,showLabels: !f});@@ -66357,12 +66348,12 @@ function LIe(e) {}function RIe(e) {var t = Q((t) => EIe(t, e.legendType));- return /*#__PURE__*/ B.createElement(f0, { legendPayload: t ?? [] });+ return /*#__PURE__*/ B.createElement(u0, { legendPayload: t ?? [] });}var zIe = /*#__PURE__*/ B.memo((e) => {var { dataKey: t, sectors: n, stroke: r, strokeWidth: i, name: a, hide: o, fill: s, tooltipType: c, id: l } = e, u = {dataDefinedOnItem: n,- getPosition: lB,+ getPosition: cB,settings: {graphicalItemId: l,stroke: r,@@ -66370,45 +66361,45 @@ var zIe = /*#__PURE__*/ B.memo((e) => {fill: s,nameKey: void 0,dataKey: t,- name: CU(a, t),+ name: SU(a, t),hide: o,type: c,color: s,unit: ""}};- return /*#__PURE__*/ B.createElement(u0, { tooltipEntrySettings: u });+ return /*#__PURE__*/ B.createElement(c0, { tooltipEntrySettings: u });}), BIe = class extends B.PureComponent {renderBackground(e) {if (e == null) return null;- var { cornerRadius: t } = this.props, n = WR(this.props.background);- return /*#__PURE__*/ B.createElement(XQ, { zIndex: s2(this.props.background, PK.barBackground) }, e.map((e, r) => {- var { value: i, background: a } = e, o = d2(e, kIe);+ var { cornerRadius: t } = this.props, n = UR(this.props.background);+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: a2(this.props.background, NK.barBackground) }, e.map((e, r) => {+ var { value: i, background: a } = e, o = l2(e, kIe);if (!a) return null;- var s = u2(u2(u2(u2(u2({ cornerRadius: B0(t) }, o), {}, { fill: "#eee" }, a), n), _B(this.props, e, r)), {}, {+ var s = c2(c2(c2(c2(c2({ cornerRadius: R0(t) }, o), {}, { fill: "#eee" }, a), n), gB(this.props, e, r)), {}, {index: r,className: _h("recharts-radial-bar-background-sector", String(n?.className)),option: a,isActive: !1});- return /*#__PURE__*/ B.createElement(V0, c2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));+ return /*#__PURE__*/ B.createElement(z0, o2({ key: `background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}` }, s));}));}render() {var { hide: e, sectors: t, className: n, background: r } = this.props;if (e) return null;var i = _h("recharts-area", n);- return /*#__PURE__*/ B.createElement(XQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(YR, { className: i }, r && /*#__PURE__*/ B.createElement(YR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(YR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(LIe, this.props))));+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: this.props.zIndex }, /*#__PURE__*/ B.createElement(JR, { className: i }, r && /*#__PURE__*/ B.createElement(JR, { className: "recharts-radial-bar-background" }, this.renderBackground(t)), /*#__PURE__*/ B.createElement(JR, { className: "recharts-radial-bar-sectors" }, /*#__PURE__*/ B.createElement(LIe, this.props))));}};function VIe(e) {- var t = B.useMemo(() => X1(e.children, p$), [e.children]), n = B.useMemo(() => ({+ var t = B.useMemo(() => J1(e.children, d$), [e.children]), n = B.useMemo(() => ({data: void 0,hide: !1,id: e.id,dataKey: e.dataKey,minPointSize: e.minPointSize,- stackId: hU(e.stackId),+ stackId: mU(e.stackId),maxBarSize: e.maxBarSize,barSize: e.barSize,type: "radialBar",@@ -66423,7 +66414,7 @@ function VIe(e) {e.barSize,e.angleAxisId,e.radiusAxisId- ]), r = Q((r) => TIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? f2;+ ]), r = Q((r) => TIe(r, e.radiusAxisId, e.angleAxisId, n, t)) ?? u2;return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(zIe, {dataKey: e.dataKey,sectors: r,@@ -66434,9 +66425,9 @@ function VIe(e) {fill: e.fill,tooltipType: e.tooltipType,id: e.id- }), /*#__PURE__*/ B.createElement(BIe, c2({}, e, { sectors: r })));+ }), /*#__PURE__*/ B.createElement(BIe, o2({}, e, { sectors: r })));}-var p2 = {+var d2 = {angleAxisId: 0,animationBegin: 0,animationDuration: 1500,@@ -66451,14 +66442,14 @@ var p2 = {legendType: "rect",minPointSize: 0,radiusAxisId: 0,- zIndex: PK.bar+ zIndex: NK.bar};function HIe(e) {var { displayedData: t, stackedData: n, dataStartIndex: r, stackedDomain: i, dataKey: a, baseValue: o, layout: s, radiusAxis: c, radiusAxisTicks: l, bandSize: u, pos: d, angleAxis: f, minPointSize: p, cx: m, cy: h, angleAxisTicks: g, cells: _, startAngle: v, endAngle: y } = e;- return g == null || l == null ? f2 : (t ?? []).map((e, t) => {+ return g == null || l == null ? u2 : (t ?? []).map((e, t) => {var b, x, S, C, w, T;- if (n ? b = mU(n[r + t], i) : (b = uU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {- if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = _U({+ if (n ? b = pU(n[r + t], i) : (b = lU(e, a), Array.isArray(b) || (b = [o, b])), s === "radial") {+ if (C = f.scale.map(b[0]) ?? v, w = f.scale.map(b[1]) ?? y, x = gU({axis: c,ticks: l,bandSize: u,@@ -66469,7 +66460,7 @@ function HIe(e) {S = x + d.size;var E = w - C;if (Math.abs(p) > 0 && Math.abs(E) < Math.abs(p)) {- var D = Zz(E || p) * (Math.abs(p) - Math.abs(E));+ var D = Xz(E || p) * (Math.abs(p) - Math.abs(E));w += D;}T = { background: {@@ -66481,7 +66472,7 @@ function HIe(e) {endAngle: y} };}- } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = _U({+ } else if (x = c.scale.map(b[0]), S = c.scale.map(b[1]), C = gU({axis: f,ticks: g,bandSize: u,@@ -66492,11 +66483,11 @@ function HIe(e) {w = C + d.size;var O = S - x;if (Math.abs(p) > 0 && Math.abs(O) < Math.abs(p)) {- var k = Zz(O || p) * (Math.abs(p) - Math.abs(O));+ var k = Xz(O || p) * (Math.abs(p) - Math.abs(O));S += k;}}- return u2(u2(u2({}, e), T), {}, {+ return c2(c2(c2({}, e), T), {}, {payload: e,value: n ? b : b[1],cx: m,@@ -66508,38 +66499,38 @@ function HIe(e) {}, _ && _[t] && _[t].props);});}-function m2(e) {- var t = yB(e, p2);- return /*#__PURE__*/ B.createElement(p0, {+function f2(e) {+ var t = vB(e, d2);+ return /*#__PURE__*/ B.createElement(d0, {id: t.id,type: "radialBar"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(g0, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(m0, {type: "radialBar",id: e,data: void 0,dataKey: t.dataKey,- hide: t.hide ?? p2.hide,- angleAxisId: t.angleAxisId ?? p2.angleAxisId,- radiusAxisId: t.radiusAxisId ?? p2.radiusAxisId,- stackId: hU(t.stackId),+ hide: t.hide ?? d2.hide,+ angleAxisId: t.angleAxisId ?? d2.angleAxisId,+ radiusAxisId: t.radiusAxisId ?? d2.radiusAxisId,+ stackId: mU(t.stackId),barSize: t.barSize,minPointSize: t.minPointSize,maxBarSize: t.maxBarSize- }), /*#__PURE__*/ B.createElement(RIe, t), /*#__PURE__*/ B.createElement(VIe, c2({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(RIe, t), /*#__PURE__*/ B.createElement(VIe, o2({}, t, { id: e }))));}-m2.displayName = "RadialBar";+f2.displayName = "RadialBar";//#endregion//#region node_modules/recharts/es6/context/chartDataContext.js-var h2 = (e) => {- var { chartData: t } = e, n = KB(), r = NU();- return (0, B.useEffect)(() => r ? () => {} : (n(s$(t)), () => {- n(s$(void 0));+var p2 = (e) => {+ var { chartData: t } = e, n = GB(), r = MU();+ return (0, B.useEffect)(() => r ? () => {} : (n(a$(t)), () => {+ n(a$(void 0));}), [t,n,r]), null;-}, g2 = {+}, m2 = {x: 0,y: 0,width: 0,@@ -66550,13 +66541,13 @@ var h2 = (e) => {bottom: 0,left: 0}-}, _2 = jH({+}, h2 = AH({name: "brush",- initialState: g2,+ initialState: m2,reducers: { setBrushSettings(e, t) {- return t.payload == null ? g2 : t.payload;+ return t.payload == null ? m2 : t.payload;} }-}), { setBrushSettings: UIe } = _2.actions, WIe = _2.reducer, GIe = (e, t) => {+}), { setBrushSettings: UIe } = h2.actions, WIe = h2.reducer, GIe = (e, t) => {var { x: n, y: r } = e, { x: i, y: a } = t;return {x: Math.min(n, i),@@ -66580,7 +66571,7 @@ function qIe(e) {var JIe = function(e) {var { width: t, height: n } = e, r = qIe(arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0) * Math.PI / 180, i = Math.atan(n / t), a = r > i && r < Math.PI - i ? n / Math.sin(r) : t / Math.cos(r);return Math.abs(a);-}, v2 = jH({+}, g2 = AH({name: "referenceElements",initialState: {dots: [],@@ -66592,35 +66583,35 @@ var JIe = function(e) {e.dots.push(t.payload);},removeDot: (e, t) => {- var n = vH(e).dots.findIndex((e) => e === t.payload);+ var n = _H(e).dots.findIndex((e) => e === t.payload);n !== -1 && e.dots.splice(n, 1);},addArea: (e, t) => {e.areas.push(t.payload);},removeArea: (e, t) => {- var n = vH(e).areas.findIndex((e) => e === t.payload);+ var n = _H(e).areas.findIndex((e) => e === t.payload);n !== -1 && e.areas.splice(n, 1);},addLine: (e, t) => {- e.lines.push(HW(t.payload));+ e.lines.push(VW(t.payload));},removeLine: (e, t) => {- var n = vH(e).lines.findIndex((e) => e === t.payload);+ var n = _H(e).lines.findIndex((e) => e === t.payload);n !== -1 && e.lines.splice(n, 1);}}-}), { addDot: YIe, removeDot: XIe, addArea: ZIe, removeArea: QIe, addLine: $Ie, removeLine: eLe } = v2.actions, tLe = v2.reducer, y2 = /*#__PURE__*/ (0, B.createContext)(void 0), nLe = (e) => {- var { children: t } = e, [n] = (0, B.useState)(`${tB("recharts")}-clip`), r = w0();+}), { addDot: YIe, removeDot: XIe, addArea: ZIe, removeArea: QIe, addLine: $Ie, removeLine: eLe } = g2.actions, tLe = g2.reducer, _2 = /*#__PURE__*/ (0, B.createContext)(void 0), nLe = (e) => {+ var { children: t } = e, [n] = (0, B.useState)(`${eB("recharts")}-clip`), r = S0();if (r == null) return null;var { x: i, y: a, width: o, height: s } = r;- return /*#__PURE__*/ B.createElement(y2.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {+ return /*#__PURE__*/ B.createElement(_2.Provider, { value: n }, /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: n }, /*#__PURE__*/ B.createElement("rect", {x: i,y: a,height: s,width: o}))), t);-}, rLe = () => (0, B.useContext)(y2), iLe = class {+}, rLe = () => (0, B.useContext)(_2), iLe = class {constructor(e) {var { x: t, y: n } = e;this.xAxisScale = t, this.yAxisScale = n;@@ -66646,7 +66637,7 @@ var JIe = function(e) {};//#endregion//#region node_modules/recharts/es6/cartesian/ReferenceLine.js-function b2(e, t) {+function v2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66656,12 +66647,12 @@ function b2(e, t) {}return n;}-function x2(e) {+function y2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? b2(Object(n), !0).forEach(function(t) {+ t % 2 ? v2(Object(n), !0).forEach(function(t) {aLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b2(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -66689,27 +66680,27 @@ function sLe(e, t) {}return (t === "string" ? String : Number)(e);}-function S2() {- return S2 = Object.assign ? Object.assign.bind() : function(e) {+function b2() {+ return b2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, S2.apply(null, arguments);+ }, b2.apply(null, arguments);}var cLe = (e, t) => {var n;if (/*#__PURE__*/ B.isValidElement(e)) n = /*#__PURE__*/ B.cloneElement(e, t);else if (typeof e == "function") n = e(t);else {- if (!oU(t.x1) || !oU(t.y1) || !oU(t.x2) || !oU(t.y2)) return null;- n = /*#__PURE__*/ B.createElement("line", S2({}, t, { className: "recharts-reference-line-line" }));+ if (!aU(t.x1) || !aU(t.y1) || !aU(t.x2) || !aU(t.y2)) return null;+ n = /*#__PURE__*/ B.createElement("line", b2({}, t, { className: "recharts-reference-line-line" }));}return n;}, lLe = (e, t, n, r, i, a) => {var { x: o, width: s } = a, c = i.map(e, { position: n });- if (!oU(c) || t === "discard" && !i.isInRange(c)) return null;+ if (!aU(c) || t === "discard" && !i.isInRange(c)) return null;var l = [{x: o + s,y: c@@ -66720,7 +66711,7 @@ var cLe = (e, t) => {return r === "left" ? l.reverse() : l;}, uLe = (e, t, n, r, i, a) => {var { y: o, height: s } = a, c = i.map(e, { position: n });- if (!oU(c) || t === "discard" && !i.isInRange(c)) return null;+ if (!aU(c) || t === "discard" && !i.isInRange(c)) return null;var l = [{x: c,y: o + s@@ -66739,26 +66730,26 @@ var cLe = (e, t) => {})];return t === "discard" && i.some((e) => !r.isInRange(e)) ? null : i;}, fLe = (e, t, n, r, i, a, o) => {- var { x: s, y: c, segment: l, ifOverflow: u } = o, d = eB(s);- return eB(c) ? lLe(c, u, r, a, t, n) : d ? uLe(s, u, r, i, e, n) : l != null && l.length === 2 ? dLe(l, u, r, new iLe({+ var { x: s, y: c, segment: l, ifOverflow: u } = o, d = $z(s);+ return $z(c) ? lLe(c, u, r, a, t, n) : d ? uLe(s, u, r, i, e, n) : l != null && l.length === 2 ? dLe(l, u, r, new iLe({x: e,y: t})) : null;};function pLe(e) {- var t = KB();+ var t = GB();return (0, B.useEffect)(() => (t($Ie(e)), () => {t(eLe(e));})), null;}function mLe(e) {- var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = NU(), s = rLe(), c = Q((e) => DX(e, t)), l = Q((e) => AX(e, n)), u = Q((e) => DZ(e, "xAxis", t, o)), d = Q((e) => DZ(e, "yAxis", n, o)), f = qU();+ var { xAxisId: t, yAxisId: n, shape: r, className: i, ifOverflow: a } = e, o = MU(), s = rLe(), c = Q((e) => EX(e, t)), l = Q((e) => kX(e, n)), u = Q((e) => EZ(e, "xAxis", t, o)), d = Q((e) => EZ(e, "yAxis", n, o)), f = KU();if (!s || !f || c == null || l == null || u == null || d == null) return null;var p = fLe(u, d, f, e.position, c.orientation, l.orientation, e);if (!p) return null;var m = p[0], h = p[1];if (m == null || h == null) return null;- var { x: g, y: _ } = m, { x: v, y } = h, b = x2(x2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, GR(e)), {}, {+ var { x: g, y: _ } = m, { x: v, y } = h, b = y2(y2({ clipPath: a === "hidden" ? `url(#${s})` : void 0 }, WR(e)), {}, {x1: g,y1: _,x2: v,@@ -66769,10 +66760,10 @@ function mLe(e) {x2: v,y2: y});- return /*#__PURE__*/ B.createElement(XQ, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YR, { className: _h("recharts-reference-line", i) }, cLe(r, b), /*#__PURE__*/ B.createElement(K$, S2({}, x, {+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(JR, { className: _h("recharts-reference-line", i) }, cLe(r, b), /*#__PURE__*/ B.createElement(W$, b2({}, x, {lowerWidth: x.width,upperWidth: x.width- }), /*#__PURE__*/ B.createElement(e1, { label: e.label }), e.children)));+ }), /*#__PURE__*/ B.createElement(Q$, { label: e.label }), e.children)));}var hLe = {ifOverflow: "discard",@@ -66784,10 +66775,10 @@ var hLe = {fillOpacity: 1,strokeWidth: 1,position: "middle",- zIndex: PK.line+ zIndex: NK.line};-function C2(e) {- var t = yB(e, hLe);+function x2(e) {+ var t = vB(e, hLe);return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(pLe, {yAxisId: t.yAxisId,xAxisId: t.xAxisId,@@ -66797,10 +66788,10 @@ function C2(e) {segment: t.segment}), /*#__PURE__*/ B.createElement(mLe, t));}-C2.displayName = "ReferenceLine";+x2.displayName = "ReferenceLine";//#endregion//#region node_modules/recharts/es6/util/getEveryNth.js-function w2(e, t) {+function S2(e, t) {if (t < 1) return [];if (t === 1) return e;for (var n = [], r = 0; r < e.length; r += t) {@@ -66827,21 +66818,21 @@ function _Le(e, t, n) {end: r ? i : a};}-function T2(e, t, n, r, i) {+function C2(e, t, n, r, i) {if (e * t < e * r || e * t > e * i) return !1;var a = n();return e * (t - e * a / 2 - r) >= 0 && e * (t + e * a / 2 - i) <= 0;}function vLe(e, t) {- return w2(e, t + 1);+ return S2(e, t + 1);}//#endregion//#region node_modules/recharts/es6/cartesian/getEquidistantTicks.jsfunction yLe(e, t, n, r, i) {for (var a = (r || []).slice(), { start: o, end: s } = t, c = 0, l = 1, u = o, d = function() {var t = r?.[c];- if (t === void 0) return { v: w2(r, l) };- var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || T2(e, p, f, u, s);+ if (t === void 0) return { v: S2(r, l) };+ var a = c, d, f = () => (d === void 0 && (d = n(t, a)), d), p = t.coordinate, m = c === 0 || C2(e, p, f, u, s);m || (c = 0, u = o, l += 1), m && (u = p + e * (f() / 2 + i), c += l);}, f; l <= a.length;) if (f = d(), f) return f.v;return [];@@ -66853,7 +66844,7 @@ function bLe(e, t, n, r, i) {for (var l = (a - 1) % c, u = o, d = !0, f = function() {var t = r[m];if (t == null) return 0;- var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || T2(e, f, c, u, s);+ var a = m, o, c = () => (o === void 0 && (o = n(t, a)), o), f = t.coordinate, p = m === l || C2(e, f, c, u, s);if (!p) return d = !1, 1;p && (u = f + e * (c() / 2 + i));}, p, m = l; m < a && (p = f(), p === 0 || p !== 1); m += c);@@ -66869,7 +66860,7 @@ function bLe(e, t, n, r, i) {}//#endregion//#region node_modules/recharts/es6/cartesian/getTicks.js-function E2(e, t) {+function w2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -66879,12 +66870,12 @@ function E2(e, t) {}return n;}-function D2(e) {+function T2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? E2(Object(n), !0).forEach(function(t) {+ t % 2 ? w2(Object(n), !0).forEach(function(t) {xLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : E2(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -66919,9 +66910,9 @@ function wLe(e, t, n, r, i) {var l = r, u, d = () => (u === void 0 && (u = n(r, t)), u);if (t === o - 1) {var f = e * (l.coordinate + e * d() / 2 - c);- a[t] = l = D2(D2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });- } else a[t] = l = D2(D2({}, l), {}, { tickCoord: l.coordinate });- l.tickCoord != null && T2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = D2(D2({}, l), {}, { isShow: !0 }));+ a[t] = l = T2(T2({}, l), {}, { tickCoord: f > 0 ? l.coordinate - f * e : l.coordinate });+ } else a[t] = l = T2(T2({}, l), {}, { tickCoord: l.coordinate });+ l.tickCoord != null && C2(e, l.tickCoord, d, s, c) && (c = l.tickCoord - e * (d() / 2 + i), a[t] = T2(T2({}, l), {}, { isShow: !0 }));}, u = o - 1; u >= 0; u--) if (l(u)) continue;return a;}@@ -66931,7 +66922,7 @@ function TLe(e, t, n, r, i, a) {var u = r[s - 1];if (u != null) {var d = n(u, s - 1), f = e * (u.coordinate + e * d / 2 - l);- o[s - 1] = u = D2(D2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && T2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = D2(D2({}, u), {}, { isShow: !0 }));+ o[s - 1] = u = T2(T2({}, u), {}, { tickCoord: f > 0 ? u.coordinate - f * e : u.coordinate }), u.tickCoord != null && C2(e, u.tickCoord, () => d, c, l) && (l = u.tickCoord - e * (d / 2 + i), o[s - 1] = T2(T2({}, u), {}, { isShow: !0 }));}}for (var p = a ? s - 1 : s, m = function(t) {@@ -66940,17 +66931,17 @@ function TLe(e, t, n, r, i, a) {var a = r, s, u = () => (s === void 0 && (s = n(r, t)), s);if (t === 0) {var d = e * (a.coordinate - e * u() / 2 - c);- o[t] = a = D2(D2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });- } else o[t] = a = D2(D2({}, a), {}, { tickCoord: a.coordinate });- a.tickCoord != null && T2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = D2(D2({}, a), {}, { isShow: !0 }));+ o[t] = a = T2(T2({}, a), {}, { tickCoord: d < 0 ? a.coordinate - d * e : a.coordinate });+ } else o[t] = a = T2(T2({}, a), {}, { tickCoord: a.coordinate });+ a.tickCoord != null && C2(e, a.tickCoord, u, c, l) && (c = a.tickCoord + e * (u() / 2 + i), o[t] = T2(T2({}, a), {}, { isShow: !0 }));}, h = 0; h < p; h++) if (m(h)) continue;return o;}-function O2(e, t, n) {+function E2(e, t, n) {var { tick: r, ticks: i, viewBox: a, minTickGap: o, orientation: s, interval: c, tickFormatter: l, unit: u, angle: d } = e;if (!i || !i.length || !r) return [];- if (Z(c) || sG.isSsr) return vLe(i, Z(c) ? c : 0) ?? [];- var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? y$(u, {+ if (Z(c) || oG.isSsr) return vLe(i, Z(c) ? c : 0) ?? [];+ var f = [], p = s === "top" || s === "bottom" ? "width" : "height", m = u && p === "width" ? _$(u, {fontSize: t,letterSpacing: n}) : {@@ -66958,14 +66949,14 @@ function O2(e, t, n) {height: 0}, h = (e, r) => {var i = typeof l == "function" ? l(e.value, r) : e.value;- return p === "width" ? gLe(y$(i, {+ return p === "width" ? gLe(_$(i, {fontSize: t,letterSpacing: n- }), m, d) : y$(i, {+ }), m, d) : _$(i, {fontSize: t,letterSpacing: n})[p];- }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Zz(_.coordinate - g.coordinate) : 1, y = _Le(a, v, p);+ }, g = i[0], _ = i[1], v = i.length >= 2 && g != null && _ != null ? Xz(_.coordinate - g.coordinate) : 1, y = _Le(a, v, p);return c === "equidistantPreserveStart" ? yLe(v, y, h, i, o) : c === "equidistantPreserveEnd" ? bLe(v, y, h, i, o) : (f = c === "preserveStart" || c === "preserveStartEnd" ? TLe(v, y, h, i, o, c === "preserveStartEnd") : wLe(v, y, h, i, o), f.filter((e) => e.isShow));}//#endregion@@ -66983,7 +66974,7 @@ var ELe = (e) => {return Math.round(l);}return 0;-}, k2 = jH({+}, D2 = AH({name: "renderedTicks",initialState: {xAxis: {},@@ -66992,14 +66983,14 @@ var ELe = (e) => {reducers: {setRenderedTicks: (e, t) => {var { axisType: n, axisId: r, ticks: i } = t.payload;- e[n][r] = HW(i);+ e[n][r] = VW(i);},removeRenderedTicks: (e, t) => {var { axisType: n, axisId: r } = t.payload;delete e[n][r];}}-}), { setRenderedTicks: DLe, removeRenderedTicks: OLe } = k2.actions, kLe = k2.reducer, ALe = [+}), { setRenderedTicks: DLe, removeRenderedTicks: OLe } = D2.actions, kLe = D2.reducer, ALe = ["axisLine","width","height",@@ -67027,16 +67018,16 @@ function MLe(e, t) {}return n;}-function A2() {- return A2 = Object.assign ? Object.assign.bind() : function(e) {+function O2() {+ return O2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, A2.apply(null, arguments);+ }, O2.apply(null, arguments);}-function j2(e, t) {+function k2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67046,12 +67037,12 @@ function j2(e, t) {}return n;}-function M2(e) {+function A2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? j2(Object(n), !0).forEach(function(t) {+ t % 2 ? k2(Object(n), !0).forEach(function(t) {NLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : j2(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : k2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -67079,7 +67070,7 @@ function FLe(e, t) {}return (t === "string" ? String : Number)(e);}-var N2 = {+var j2 = {x: 0,y: 0,width: 0,@@ -67101,15 +67092,15 @@ var N2 = {tickSize: 6,tickMargin: 2,interval: "preserveEnd",- zIndex: PK.axis+ zIndex: NK.axis};function ILe(e) {var { x: t, y: n, width: r, height: i, orientation: a, mirror: o, axisLine: s, otherSvgProps: c } = e;if (!s) return null;- var l = M2(M2(M2({}, c), UR(s)), {}, { fill: "none" });+ var l = A2(A2(A2({}, c), HR(s)), {}, { fill: "none" });if (a === "top" || a === "bottom") {var u = +(a === "top" && !o || a === "bottom" && o);- l = M2(M2({}, l), {}, {+ l = A2(A2({}, l), {}, {x1: t,y1: n + u * i,x2: t + r,@@ -67117,14 +67108,14 @@ function ILe(e) {});} else {var d = +(a === "left" && !o || a === "right" && o);- l = M2(M2({}, l), {}, {+ l = A2(A2({}, l), {}, {x1: t + d * r,y1: n,x2: t + d * r,y2: n + i});}- return /*#__PURE__*/ B.createElement("line", A2({}, l, { className: _h("recharts-cartesian-axis-line", Jz(s, "className")) }));+ return /*#__PURE__*/ B.createElement("line", O2({}, l, { className: _h("recharts-cartesian-axis-line", qz(s, "className")) }));}function LLe(e, t, n, r, i, a, o, s, c) {var l, u, d, f, p, m, h = s ? -1 : 1, g = e.tickSize || o, _ = Z(e.tickCoord) ? e.tickCoord : e.coordinate;@@ -67170,17 +67161,17 @@ function zLe(e, t) {}function BLe(e) {var { option: t, tickProps: n, value: r } = e, i, a = _h(n.className, "recharts-cartesian-axis-tick-value");- if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, M2(M2({}, n), {}, { className: a }));- else if (typeof t == "function") i = t(M2(M2({}, n), {}, { className: a }));+ if (/*#__PURE__*/ B.isValidElement(t)) i = /*#__PURE__*/ B.cloneElement(t, A2(A2({}, n), {}, { className: a }));+ else if (typeof t == "function") i = t(A2(A2({}, n), {}, { className: a }));else {var o = "recharts-cartesian-axis-tick-value";- typeof t != "boolean" && (o = _h(o, P1(t))), i = /*#__PURE__*/ B.createElement(R$, A2({}, n, { className: o }), r);+ typeof t != "boolean" && (o = _h(o, M1(t))), i = /*#__PURE__*/ B.createElement(I$, O2({}, n, { className: o }), r);}return i;}function VLe(e) {- var { ticks: t, axisType: n, axisId: r } = e, i = KB();- return (0, B.useEffect)(() => r == null || n == null ? lB : (i(DLe({+ var { ticks: t, axisType: n, axisId: r } = e, i = GB();+ return (0, B.useEffect)(() => r == null || n == null ? cB : (i(DLe({ticks: t.map((e) => ({value: e.value,coordinate: e.coordinate,@@ -67202,16 +67193,16 @@ function VLe(e) {]), null;}var HLe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = O2(M2(M2({}, b), {}, { ticks: n }), v, y), T = UR(b), E = WR(r), D = M$(T.textAnchor) ? T.textAnchor : RLe(u, d), O = zLe(u, d), k = {};+ var { ticks: n = [], tick: r, tickLine: i, stroke: a, tickFormatter: o, unit: s, padding: c, tickTextProps: l, orientation: u, mirror: d, x: f, y: p, width: m, height: h, tickSize: g, tickMargin: _, fontSize: v, letterSpacing: y, getTicksConfig: b, events: x, axisType: S, axisId: C } = e, w = E2(A2(A2({}, b), {}, { ticks: n }), v, y), T = HR(b), E = UR(r), D = A$(T.textAnchor) ? T.textAnchor : RLe(u, d), O = zLe(u, d), k = {};typeof i == "object" && (k = i);- var A = M2(M2({}, T), {}, { fill: "none" }, k), j = w.map((e) => M2({ entry: e }, LLe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {+ var A = A2(A2({}, T), {}, { fill: "none" }, k), j = w.map((e) => A2({ entry: e }, LLe(e, f, p, m, h, u, g, d, _))), M = j.map((e) => {var { entry: t, line: n } = e;- return /*#__PURE__*/ B.createElement(YR, {+ return /*#__PURE__*/ B.createElement(JR, {className: "recharts-cartesian-axis-tick",key: `tick-${t.value}-${t.coordinate}-${t.tickCoord}`- }, i && /*#__PURE__*/ B.createElement("line", A2({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", Jz(i, "className")) })));+ }, i && /*#__PURE__*/ B.createElement("line", O2({}, A, n, { className: _h("recharts-cartesian-axis-tick-line", qz(i, "className")) })));}), N = j.map((e, t) => {- var { entry: n, tick: i } = e, u = M2(M2({}, M2(M2(M2(M2({ verticalAnchor: O }, T), {}, {+ var { entry: n, tick: i } = e, u = A2(A2({}, A2(A2(A2(A2({ verticalAnchor: O }, T), {}, {textAnchor: D,stroke: "none",fill: a@@ -67222,10 +67213,10 @@ var HLe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {tickFormatter: o,padding: c}, l), {}, { angle: l?.angle ?? T.angle ?? 0 })), E);- return /*#__PURE__*/ B.createElement(YR, A2({+ return /*#__PURE__*/ B.createElement(JR, O2({className: "recharts-cartesian-axis-tick-label",key: `tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`- }, _B(x, n, t)), r && /*#__PURE__*/ B.createElement(BLe, {+ }, gB(x, n, t)), r && /*#__PURE__*/ B.createElement(BLe, {option: r,tickProps: u,value: `${typeof o == "function" ? o(n.value, t) : n.value}${s || ""}`@@ -67235,7 +67226,7 @@ var HLe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {ticks: w,axisId: C,axisType: S- }), N.length > 0 && /*#__PURE__*/ B.createElement(XQ, { zIndex: PK.label }, /*#__PURE__*/ B.createElement("g", {+ }), N.length > 0 && /*#__PURE__*/ B.createElement(JQ, { zIndex: NK.label }, /*#__PURE__*/ B.createElement("g", {className: `recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref: t}, N)), M.length > 0 && /*#__PURE__*/ B.createElement("g", { className: `recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines` }, M));@@ -67259,7 +67250,7 @@ var HLe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {}}}, [d, p]);- return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(XQ, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(YR, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(ILe, {+ return o || r != null && r <= 0 || i != null && i <= 0 ? null : /*#__PURE__*/ B.createElement(JQ, { zIndex: e.zIndex }, /*#__PURE__*/ B.createElement(JR, { className: _h("recharts-cartesian-axis", a) }, /*#__PURE__*/ B.createElement(ILe, {x: e.x,y: e.y,width: r,@@ -67267,7 +67258,7 @@ var HLe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {orientation: e.orientation,mirror: e.mirror,axisLine: n,- otherSvgProps: UR(e)+ otherSvgProps: HR(e)}), /*#__PURE__*/ B.createElement(HLe, {ref: g,axisType: c,@@ -67292,22 +67283,22 @@ var HLe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {x: e.x,y: e.y,axisId: l- }), /*#__PURE__*/ B.createElement(K$, {+ }), /*#__PURE__*/ B.createElement(W$, {x: e.x,y: e.y,width: e.width,height: e.height,lowerWidth: e.width,upperWidth: e.width- }, /*#__PURE__*/ B.createElement(e1, {+ }, /*#__PURE__*/ B.createElement(Q$, {label: e.label,labelRef: e.labelRef}), e.children)));-}), P2 = /*#__PURE__*/ B.forwardRef((e, t) => {- var n = yB(e, N2);- return /*#__PURE__*/ B.createElement(ULe, A2({}, n, { ref: t }));+}), M2 = /*#__PURE__*/ B.forwardRef((e, t) => {+ var n = vB(e, j2);+ return /*#__PURE__*/ B.createElement(ULe, O2({}, n, { ref: t }));});-P2.displayName = "CartesianAxis";+M2.displayName = "CartesianAxis";//#endregion//#region node_modules/recharts/es6/cartesian/CartesianGrid.jsvar WLe = [@@ -67317,7 +67308,7 @@ var WLe = ["y2","key"], GLe = ["offset"], KLe = ["xAxisId", "yAxisId"], qLe = ["xAxisId", "yAxisId"];-function F2(e, t) {+function N2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67327,12 +67318,12 @@ function F2(e, t) {}return n;}-function I2(e) {+function P2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? F2(Object(n), !0).forEach(function(t) {+ t % 2 ? N2(Object(n), !0).forEach(function(t) {JLe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F2(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : N2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -67360,16 +67351,16 @@ function XLe(e, t) {}return (t === "string" ? String : Number)(e);}-function L2() {- return L2 = Object.assign ? Object.assign.bind() : function(e) {+function F2() {+ return F2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, L2.apply(null, arguments);+ }, F2.apply(null, arguments);}-function R2(e, t) {+function I2(e, t) {if (e == null) return {};var n, r, i = ZLe(e, t);if (Object.getOwnPropertySymbols) {@@ -67403,13 +67394,13 @@ var QLe = (e) => {className: "recharts-cartesian-grid-bg"});};-function z2(e) {+function L2(e) {var { option: t, lineItemProps: n } = e, r;if (/*#__PURE__*/ B.isValidElement(t)) r = /*#__PURE__*/ B.cloneElement(t, n);else if (typeof t == "function") r = t(n);else {- var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = UR(R2(n, WLe)) ?? {}, { offset: u } = l, d = R2(l, GLe);- r = /*#__PURE__*/ B.createElement("line", L2({}, d, {+ var { x1: i, y1: a, x2: o, y2: s, key: c } = n, l = HR(I2(n, WLe)) ?? {}, { offset: u } = l, d = I2(l, GLe);+ r = /*#__PURE__*/ B.createElement("line", F2({}, d, {x1: i,y1: a,x2: o,@@ -67423,8 +67414,8 @@ function z2(e) {function $Le(e) {var { x: t, width: n, horizontal: r = !0, horizontalPoints: i } = e;if (!r || !i || !i.length) return null;- var { xAxisId: a, yAxisId: o } = e, s = R2(e, KLe), c = i.map((e, i) => {- var a = I2(I2({}, s), {}, {+ var { xAxisId: a, yAxisId: o } = e, s = I2(e, KLe), c = i.map((e, i) => {+ var a = P2(P2({}, s), {}, {x1: t,y1: e,x2: t + n,@@ -67432,7 +67423,7 @@ function $Le(e) {key: `line-${i}`,index: i});- return /*#__PURE__*/ B.createElement(z2, {+ return /*#__PURE__*/ B.createElement(L2, {key: `line-${i}`,option: r,lineItemProps: a@@ -67443,8 +67434,8 @@ function $Le(e) {function eRe(e) {var { y: t, height: n, vertical: r = !0, verticalPoints: i } = e;if (!r || !i || !i.length) return null;- var { xAxisId: a, yAxisId: o } = e, s = R2(e, qLe), c = i.map((e, i) => {- var a = I2(I2({}, s), {}, {+ var { xAxisId: a, yAxisId: o } = e, s = I2(e, qLe), c = i.map((e, i) => {+ var a = P2(P2({}, s), {}, {x1: e,y1: t,x2: e,@@ -67452,7 +67443,7 @@ function eRe(e) {key: `line-${i}`,index: i});- return /*#__PURE__*/ B.createElement(z2, {+ return /*#__PURE__*/ B.createElement(L2, {option: r,lineItemProps: a,key: `line-${i}`@@ -67508,8 +67499,8 @@ function nRe(e) {}var rRe = (e, t) => {var { xAxis: n, width: r, height: i, offset: a } = e;- return fU(O2(I2(I2(I2({}, N2), n), {}, {- ticks: pU(n, !0),+ return dU(E2(P2(P2(P2({}, j2), n), {}, {+ ticks: fU(n, !0),viewBox: {x: 0,y: 0,@@ -67519,8 +67510,8 @@ var rRe = (e, t) => {})), a.left, a.left + a.width, t);}, iRe = (e, t) => {var { yAxis: n, width: r, height: i, offset: a } = e;- return fU(O2(I2(I2(I2({}, N2), n), {}, {- ticks: pU(n, !0),+ return dU(E2(P2(P2(P2({}, j2), n), {}, {+ ticks: fU(n, !0),viewBox: {x: 0,y: 0,@@ -67540,36 +67531,36 @@ var rRe = (e, t) => {xAxisId: 0,yAxisId: 0,syncWithTicks: !1,- zIndex: PK.grid+ zIndex: NK.grid};-function B2(e) {- var t = YU(), n = XU(), r = JU(), i = I2(I2({}, yB(e, aRe)), {}, {+function R2(e) {+ var t = JU(), n = YU(), r = qU(), i = P2(P2({}, vB(e, aRe)), {}, {x: Z(e.x) ? e.x : r.left,y: Z(e.y) ? e.y : r.top,width: Z(e.width) ? e.width : r.width,height: Z(e.height) ? e.height : r.height- }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = NU(), h = Q((e) => LZ(e, "xAxis", a, m)), g = Q((e) => LZ(e, "yAxis", o, m));- if (!sU(l) || !sU(u) || !Z(s) || !Z(c)) return null;+ }), { xAxisId: a, yAxisId: o, x: s, y: c, width: l, height: u, syncWithTicks: d, horizontalValues: f, verticalValues: p } = i, m = MU(), h = Q((e) => IZ(e, "xAxis", a, m)), g = Q((e) => IZ(e, "yAxis", o, m));+ if (!oU(l) || !oU(u) || !Z(s) || !Z(c)) return null;var _ = i.verticalCoordinatesGenerator || rRe, v = i.horizontalCoordinatesGenerator || iRe, { horizontalPoints: y, verticalPoints: b } = i;if ((!y || !y.length) && typeof v == "function") {var x = f && f.length, S = v({- yAxis: g ? I2(I2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,+ yAxis: g ? P2(P2({}, g), {}, { ticks: x ? f : g.ticks }) : void 0,width: t ?? l,height: n ?? u,offset: r}, x ? !0 : d);- IU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);+ FU(Array.isArray(S), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`), Array.isArray(S) && (y = S);}if ((!b || !b.length) && typeof _ == "function") {var C = p && p.length, w = _({- xAxis: h ? I2(I2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,+ xAxis: h ? P2(P2({}, h), {}, { ticks: C ? p : h.ticks }) : void 0,width: t ?? l,height: n ?? u,offset: r}, C ? !0 : d);- IU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);+ FU(Array.isArray(w), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`), Array.isArray(w) && (b = w);}- return /*#__PURE__*/ B.createElement(XQ, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(QLe, {+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: i.zIndex }, /*#__PURE__*/ B.createElement("g", { className: "recharts-cartesian-grid" }, /*#__PURE__*/ B.createElement(QLe, {fill: i.fill,fillOpacity: i.fillOpacity,x: i.x,@@ -67577,22 +67568,22 @@ function B2(e) {width: i.width,height: i.height,ry: i.ry- }), /*#__PURE__*/ B.createElement(tRe, L2({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(nRe, L2({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement($Le, L2({}, i, {+ }), /*#__PURE__*/ B.createElement(tRe, F2({}, i, { horizontalPoints: y })), /*#__PURE__*/ B.createElement(nRe, F2({}, i, { verticalPoints: b })), /*#__PURE__*/ B.createElement($Le, F2({}, i, {offset: r,horizontalPoints: y,xAxis: h,yAxis: g- })), /*#__PURE__*/ B.createElement(eRe, L2({}, i, {+ })), /*#__PURE__*/ B.createElement(eRe, F2({}, i, {offset: r,verticalPoints: b,xAxis: h,yAxis: g}))));}-B2.displayName = "CartesianGrid";+R2.displayName = "CartesianGrid";//#endregion//#region node_modules/recharts/es6/state/errorBarSlice.js-var V2 = jH({+var z2 = AH({name: "errorBars",initialState: {},reducers: {@@ -67609,7 +67600,7 @@ var V2 = jH({e[n] && (e[n] = e[n].filter((e) => e.dataKey !== r.dataKey || e.direction !== r.direction));}}-}), { addErrorBar: oRe, replaceErrorBar: sRe, removeErrorBar: cRe } = V2.actions, lRe = V2.reducer, uRe = ["children"];+}), { addErrorBar: oRe, replaceErrorBar: sRe, removeErrorBar: cRe } = z2.actions, lRe = z2.reducer, uRe = ["children"];function dRe(e, t) {if (e == null) return {};var n, r, i = fRe(e, t);@@ -67639,22 +67630,22 @@ var pRe = /*#__PURE__*/ (0, B.createContext)({}),errorBarOffset: 0});-function H2(e) {+function B2(e) {var { children: t } = e, n = dRe(e, uRe);return /*#__PURE__*/ B.createElement(pRe.Provider, { value: n }, t);}//#endregion//#region node_modules/recharts/es6/cartesian/GraphicalItemClipPath.js-function U2(e, t) {- var n = Q((t) => DX(t, e)), r = Q((e) => AX(e, t)), i = n?.allowDataOverflow ?? TX.allowDataOverflow, a = r?.allowDataOverflow ?? OX.allowDataOverflow;+function V2(e, t) {+ var n = Q((t) => EX(t, e)), r = Q((e) => kX(e, t)), i = n?.allowDataOverflow ?? wX.allowDataOverflow, a = r?.allowDataOverflow ?? DX.allowDataOverflow;return {needClip: i || a,needClipX: i,needClipY: a};}-function W2(e) {- var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = w0(), { needClipX: a, needClipY: o, needClip: s } = U2(t, n);+function H2(e) {+ var { xAxisId: t, yAxisId: n, clipPathId: r } = e, i = S0(), { needClipX: a, needClipY: o, needClip: s } = V2(t, n);if (!s || !i) return null;var { x: c, y: l, width: u, height: d } = i;return /*#__PURE__*/ B.createElement("clipPath", { id: `clipPath-${r}` }, /*#__PURE__*/ B.createElement("rect", {@@ -67666,25 +67657,25 @@ function W2(e) {}//#endregion//#region node_modules/recharts/es6/state/selectors/lineSelectors.js-var G2 = (e, t, n, r) => HZ(e, "xAxis", t, r), K2 = (e, t, n, r) => VZ(e, "xAxis", t, r), q2 = (e, t, n, r) => HZ(e, "yAxis", n, r), J2 = (e, t, n, r) => VZ(e, "yAxis", n, r), mRe = $([- ZU,+var U2 = (e, t, n, r) => VZ(e, "xAxis", t, r), W2 = (e, t, n, r) => BZ(e, "xAxis", t, r), G2 = (e, t, n, r) => VZ(e, "yAxis", n, r), K2 = (e, t, n, r) => BZ(e, "yAxis", n, r), mRe = $([+ XU,+ U2,G2,- q2,- K2,- J2-], (e, t, n, r, i) => dU(e, "xAxis") ? xU(t, r, !1) : xU(n, i, !1)), hRe = (e, t, n, r, i) => i;+ W2,+ K2+], (e, t, n, r, i) => uU(e, "xAxis") ? bU(t, r, !1) : bU(n, i, !1)), hRe = (e, t, n, r, i) => i;function gRe(e) {return e.type === "line";}var _Re = $([- ZU,+ XU,+ U2,G2,- q2,+ W2,K2,- J2,- $([IX, hRe], (e, t) => e.filter(gRe).find((e) => e.id === t)),+ $([FX, hRe], (e, t) => e.filter(gRe).find((e) => e.id === t)),mRe,- uK+ lK], (e, t, n, r, i, a, o, s) => {var { chartData: c, dataStartIndex: l, dataEndIndex: u } = s;if (!(a == null || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || o == null || e !== "horizontal" && e !== "vertical")) {@@ -67703,8 +67694,8 @@ var _Re = $([});//#endregion//#region node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js-function Y2(e) {- var t = WR(e), n = 3, r = 2;+function q2(e) {+ var t = UR(e), n = 3, r = 2;if (t != null) {var { r: i, strokeWidth: a } = t, o = Number(i), s = Number(a);return (Number.isNaN(o) || o < 0) && (o = n), (Number.isNaN(s) || s < 0) && (s = r), {@@ -67741,16 +67732,16 @@ var vRe = ["id"], yRe = ["yAxisId","id"];-function X2() {- return X2 = Object.assign ? Object.assign.bind() : function(e) {+function J2() {+ return J2 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, X2.apply(null, arguments);+ }, J2.apply(null, arguments);}-function Z2(e, t) {+function Y2(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -67760,12 +67751,12 @@ function Z2(e, t) {}return n;}-function Q2(e) {+function X2(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? Z2(Object(n), !0).forEach(function(t) {+ t % 2 ? Y2(Object(n), !0).forEach(function(t) {xRe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Z2(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Y2(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -67793,7 +67784,7 @@ function CRe(e, t) {}return (t === "string" ? String : Number)(e);}-function $2(e, t) {+function Z2(e, t) {if (e == null) return {};var n, r, i = wRe(e, t);if (Object.getOwnPropertySymbols) {@@ -67818,20 +67809,20 @@ var TRe = (e) => {dataKey: t,type: i,color: r,- value: CU(n, t),+ value: SU(n, t),payload: e}];}, ERe = /*#__PURE__*/ B.memo((e) => {var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {dataDefinedOnItem: n,- getPosition: lB,+ getPosition: cB,settings: {stroke: r,strokeWidth: i,fill: a,dataKey: t,nameKey: void 0,- name: CU(o, t),+ name: SU(o, t),hide: s,type: l,color: r,@@ -67839,15 +67830,15 @@ var TRe = (e) => {graphicalItemId: u}};- return /*#__PURE__*/ B.createElement(u0, { tooltipEntrySettings: d });-}), e4 = (e, t) => `${t}px ${e}px`;+ return /*#__PURE__*/ B.createElement(c0, { tooltipEntrySettings: d });+}), Q2 = (e, t) => `${t}px ${e}px`;function DRe(e, t) {for (var n = e.length % 2 == 0 ? e : [...e, 0], r = [], i = 0; i < t; ++i) r.push(...n);return r;}var ORe = (e, t, n) => {var r = n.reduce((e, t) => e + t, 0);- if (!r) return e4(t, e);+ if (!r) return Q2(t, e);for (var i = Math.floor(e / r), a = e % r, o = [], s = 0, c = 0; s < n.length; c += (l = n[s]) ?? 0, ++s) {var l, u = n[s];if (u != null && c + u > a) {@@ -67863,8 +67854,8 @@ var ORe = (e, t, n) => {].map((e) => `${e}px`).join(", ");};function kRe(e) {- var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = UR($2(r, vRe));- return /*#__PURE__*/ B.createElement(b0, {+ var { clipPathId: t, points: n, props: r } = e, { dot: i, dataKey: a, needClip: o } = r, { id: s } = r, c = HR(Z2(r, vRe));+ return /*#__PURE__*/ B.createElement(v0, {points: n,dot: i,className: "recharts-line-dots",@@ -67885,7 +67876,7 @@ function ARe(e) {upperWidth: 0,height: 0};- return Q2(Q2({}, t), {}, {+ return X2(X2({}, t), {}, {value: e.value,payload: e.payload,viewBox: t,@@ -67893,10 +67884,10 @@ function ARe(e) {fill: void 0});}), [r]);- return /*#__PURE__*/ B.createElement(i1, { value: t ? i : void 0 }, n);+ return /*#__PURE__*/ B.createElement(n1, { value: t ? i : void 0 }, n);}-function t4(e) {- var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = Q2(Q2({}, GR($2(a, yRe))), {}, {+function $2(e) {+ var { clipPathId: t, pathRef: n, points: r, strokeDasharray: i, props: a } = e, { type: o, layout: s, connectNulls: c, needClip: l, shape: u } = a, d = X2(X2({}, WR(Z2(a, yRe))), {}, {fill: "none",className: "recharts-line-curve",clipPath: l ? `url(#clipPath-${t})` : void 0,@@ -67906,7 +67897,7 @@ function t4(e) {connectNulls: c,strokeDasharray: i ?? a.strokeDasharray});- return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(o0, X2({+ return /*#__PURE__*/ B.createElement(B.Fragment, null, r?.length > 1 && /*#__PURE__*/ B.createElement(i0, J2({shapeType: "curve",option: u}, d, { pathRef: n })), /*#__PURE__*/ B.createElement(kRe, {@@ -67923,7 +67914,7 @@ function jRe(e) {}}function MRe(e) {- var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = BG(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {+ var { clipPathId: t, props: n, pathRef: r, previousPointsRef: i, longestAnimatedLengthRef: a } = e, { points: o, strokeDasharray: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, animateNewValues: f, width: p, height: m, onAnimationEnd: h, onAnimationStart: g } = n, _ = i.current, v = zG(o, "recharts-line-"), y = (0, B.useRef)(v), [b, x] = (0, B.useState)(!1), S = !b, C = (0, B.useCallback)(() => {typeof h == "function" && h(), x(!1);}, [h]), w = (0, B.useCallback)(() => {typeof g == "function" && g(), x(!0);@@ -67933,7 +67924,7 @@ function MRe(e) {return /*#__PURE__*/ B.createElement(ARe, {points: o,showLabels: S- }, n.children, /*#__PURE__*/ B.createElement(zG, {+ }, n.children, /*#__PURE__*/ B.createElement(RG, {animationId: v,begin: l,duration: u,@@ -67943,26 +67934,26 @@ function MRe(e) {onAnimationStart: w,key: v}, (e) => {- var l = iB(D, T + D, e), u = Math.min(l, T), d = c ? s ? ORe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : e4(T, u) : s == null ? void 0 : String(s);+ var l = rB(D, T + D, e), u = Math.min(l, T), d = c ? s ? ORe(u, T, `${s}`.split(/[,\s]+/gim).map((e) => parseFloat(e))) : Q2(T, u) : s == null ? void 0 : String(s);if (e > 0 && T > 0 && (i.current = o, a.current = Math.max(a.current, u)), _) {var h = _.length / o.length, g = e === 1 ? o : o.map((t, n) => {var r = Math.floor(n * h);if (_[r]) {var i = _[r];- return Q2(Q2({}, t), {}, {- x: iB(i.x, t.x, e),- y: iB(i.y, t.y, e)+ return X2(X2({}, t), {}, {+ x: rB(i.x, t.x, e),+ y: rB(i.y, t.y, e)});}- return f ? Q2(Q2({}, t), {}, {- x: iB(p * 2, t.x, e),- y: iB(m / 2, t.y, e)- }) : Q2(Q2({}, t), {}, {+ return f ? X2(X2({}, t), {}, {+ x: rB(p * 2, t.x, e),+ y: rB(m / 2, t.y, e)+ }) : X2(X2({}, t), {}, {x: t.x,y: t.y});});- return i.current = g, /*#__PURE__*/ B.createElement(t4, {+ return i.current = g, /*#__PURE__*/ B.createElement($2, {props: n,points: g,clipPathId: t,@@ -67970,14 +67961,14 @@ function MRe(e) {strokeDasharray: d});}- return /*#__PURE__*/ B.createElement(t4, {+ return /*#__PURE__*/ B.createElement($2, {props: n,points: o,clipPathId: t,pathRef: r,strokeDasharray: d});- }), /*#__PURE__*/ B.createElement(s1, { label: n.label }));+ }), /*#__PURE__*/ B.createElement(a1, { label: n.label }));}function NRe(e) {var { clipPathId: t, props: n } = e, r = (0, B.useRef)(null), i = (0, B.useRef)(0), a = (0, B.useRef)(null);@@ -67993,13 +67984,13 @@ var PRe = (e, t) => ({x: e.x ?? void 0,y: e.y ?? void 0,value: e.value,- errorVal: uU(e.payload, t)+ errorVal: lU(e.payload, t)}), FRe = class extends B.Component {render() {var { hide: e, dot: t, points: n, className: r, xAxisId: i, yAxisId: a, top: o, left: s, width: c, height: l, id: u, needClip: d, zIndex: f } = this.props;if (e) return null;- var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = Y2(t), _ = Z1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;- return /*#__PURE__*/ B.createElement(XQ, { zIndex: f }, /*#__PURE__*/ B.createElement(YR, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(W2, {+ var p = _h("recharts-line", r), m = u, { r: h, strokeWidth: g } = q2(t), _ = Y1(t), v = h * 2 + g, y = d ? `url(#clipPath-${_ ? "" : "dots-"}${m})` : void 0;+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: f }, /*#__PURE__*/ B.createElement(JR, { className: p }, d && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(H2, {clipPathId: m,xAxisId: i,yAxisId: a@@ -68008,7 +67999,7 @@ var PRe = (e, t) => ({y: o - v / 2,width: c + v,height: l + v- }))), /*#__PURE__*/ B.createElement(H2, {+ }))), /*#__PURE__*/ B.createElement(B2, {xAxisId: i,yAxisId: a,data: n,@@ -68017,7 +68008,7 @@ var PRe = (e, t) => ({}, /*#__PURE__*/ B.createElement(NRe, {props: this.props,clipPathId: m- }))), /*#__PURE__*/ B.createElement(D0, {+ }))), /*#__PURE__*/ B.createElement(T0, {activeDot: this.props.activeDot,points: n,mainColor: this.props.stroke,@@ -68025,7 +68016,7 @@ var PRe = (e, t) => ({clipPath: y}));}-}, n4 = {+}, e4 = {activeDot: !0,animateNewValues: !0,animationBegin: 0,@@ -68042,14 +68033,14 @@ var PRe = (e, t) => ({strokeWidth: 1,xAxisId: 0,yAxisId: 0,- zIndex: PK.line,+ zIndex: NK.line,type: "linear"};function IRe(e) {- var t = yB(e, n4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = $2(t, bRe), { needClip: _ } = U2(p, m), v = w0(), y = QU(), b = NU(), x = Q((e) => _Re(e, p, m, b, h));+ var t = vB(e, e4), { activeDot: n, animateNewValues: r, animationBegin: i, animationDuration: a, animationEasing: o, connectNulls: s, dot: c, hide: l, isAnimationActive: u, label: d, legendType: f, xAxisId: p, yAxisId: m, id: h } = t, g = Z2(t, bRe), { needClip: _ } = V2(p, m), v = S0(), y = ZU(), b = MU(), x = Q((e) => _Re(e, p, m, b, h));if (y !== "horizontal" && y !== "vertical" || x == null || v == null) return null;var { height: S, width: C, x: w, y: T } = v;- return /*#__PURE__*/ B.createElement(FRe, X2({}, g, {+ return /*#__PURE__*/ B.createElement(FRe, J2({}, g, {id: h,connectNulls: s,dot: c,@@ -68076,20 +68067,20 @@ function IRe(e) {function LRe(e) {var { layout: t, xAxis: n, yAxis: r, xAxisTicks: i, yAxisTicks: a, dataKey: o, bandSize: s, displayedData: c } = e;return c.map((e, c) => {- var l = uU(e, o);+ var l = lU(e, o);if (t === "horizontal") return {- x: gU({+ x: hU({axis: n,ticks: i,bandSize: s,entry: e,index: c}),- y: (oB(l) ? null : r.scale.map(l)) ?? null,+ y: (aB(l) ? null : r.scale.map(l)) ?? null,value: l,payload: e};- var u = oB(l) ? null : n.scale.map(l), d = gU({+ var u = aB(l) ? null : n.scale.map(l), d = hU({axis: r,ticks: a,bandSize: s,@@ -68105,11 +68096,11 @@ function LRe(e) {}).filter(Boolean);}function RRe(e) {- var t = yB(e, n4), n = NU();- return /*#__PURE__*/ B.createElement(p0, {+ var t = vB(e, e4), n = MU();+ return /*#__PURE__*/ B.createElement(d0, {id: t.id,type: "line"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(d0, { legendPayload: TRe(t) }), /*#__PURE__*/ B.createElement(ERe, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(l0, { legendPayload: TRe(t) }), /*#__PURE__*/ B.createElement(ERe, {dataKey: t.dataKey,data: t.data,stroke: t.stroke,@@ -68120,7 +68111,7 @@ function RRe(e) {unit: t.unit,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(h0, {+ }), /*#__PURE__*/ B.createElement(p0, {type: "line",id: e,data: t.data,@@ -68130,45 +68121,45 @@ function RRe(e) {dataKey: t.dataKey,hide: t.hide,isPanorama: n- }), /*#__PURE__*/ B.createElement(IRe, X2({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(IRe, J2({}, t, { id: e }))));}-var r4 = /*#__PURE__*/ B.memo(RRe, XW);-r4.displayName = "Line";+var t4 = /*#__PURE__*/ B.memo(RRe, YW);+t4.displayName = "Line";//#endregion//#region node_modules/recharts/es6/state/selectors/graphicalItemSelectors.js-function i4(e, t) {+function n4(e, t) {return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.xAxisId ?? 0;}-function a4(e, t) {+function r4(e, t) {return e.graphicalItems.cartesianItems.find((e) => e.id === t)?.yAxisId ?? 0;}//#endregion//#region node_modules/recharts/es6/state/selectors/areaSelectors.js-var o4 = (e, t, n) => HZ(e, "xAxis", i4(e, t), n), s4 = (e, t, n) => VZ(e, "xAxis", i4(e, t), n), c4 = (e, t, n) => HZ(e, "yAxis", a4(e, t), n), l4 = (e, t, n) => VZ(e, "yAxis", a4(e, t), n), zRe = $([- ZU,+var i4 = (e, t, n) => VZ(e, "xAxis", n4(e, t), n), a4 = (e, t, n) => BZ(e, "xAxis", n4(e, t), n), o4 = (e, t, n) => VZ(e, "yAxis", r4(e, t), n), s4 = (e, t, n) => BZ(e, "yAxis", r4(e, t), n), zRe = $([+ XU,+ i4,o4,- c4,- s4,- l4-], (e, t, n, r, i) => dU(e, "xAxis") ? xU(t, r, !1) : xU(n, i, !1)), u4 = $([IX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), d4 = (e) => dU(ZU(e), "xAxis") ? "yAxis" : "xAxis", BRe = (e, t) => d4(e) === "yAxis" ? a4(e, t) : i4(e, t), VRe = $([- ZU,+ a4,+ s4+], (e, t, n, r, i) => uU(e, "xAxis") ? bU(t, r, !1) : bU(n, i, !1)), c4 = $([FX, (e, t) => t], (e, t) => e.filter((e) => e.type === "area").find((e) => e.id === t)), l4 = (e) => uU(XU(e), "xAxis") ? "yAxis" : "xAxis", BRe = (e, t) => l4(e) === "yAxis" ? r4(e, t) : n4(e, t), VRe = $([+ XU,+ i4,o4,- c4,+ a4,s4,- l4,- $([u4, (e, t, n) => $X(e, d4(e), BRe(e, t), n)], (e, t) => {+ $([c4, (e, t, n) => QX(e, l4(e), BRe(e, t), n)], (e, t) => {if (e != null && t != null) {- var { stackId: n } = e, r = eq(e);+ var { stackId: n } = e, r = $K(e);if (n != null && r != null) {var i = (t[n]?.stackedData)?.find((e) => e.key === r);if (i != null) return i.map((e) => [e[0], e[1]]);}}}),- dK,+ uK,zRe,- u4,- oDe+ c4,+ aDe], (e, t, n, r, i, a, o, s, c, l) => {var { chartData: u, dataStartIndex: d, dataEndIndex: f } = o;if (!(c == null || e !== "horizontal" && e !== "vertical" || t == null || n == null || r == null || i == null || r.length === 0 || i.length === 0 || s == null)) {@@ -68203,16 +68194,16 @@ var o4 = (e, t, n) => HZ(e, "xAxis", i4(e, t), n), s4 = (e, t, n) => VZ(e, "xAxi"xAxisId","yAxisId"];-function f4() {- return f4 = Object.assign ? Object.assign.bind() : function(e) {+function u4() {+ return u4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, f4.apply(null, arguments);+ }, u4.apply(null, arguments);}-function p4(e, t) {+function d4(e, t) {if (e == null) return {};var n, r, i = WRe(e, t);if (Object.getOwnPropertySymbols) {@@ -68230,7 +68221,7 @@ function WRe(e, t) {}return n;}-function m4(e, t) {+function f4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -68240,12 +68231,12 @@ function m4(e, t) {}return n;}-function h4(e) {+function p4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? m4(Object(n), !0).forEach(function(t) {+ t % 2 ? f4(Object(n), !0).forEach(function(t) {GRe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m4(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -68273,7 +68264,7 @@ function qRe(e, t) {}return (t === "string" ? String : Number)(e);}-function g4(e, t) {+function m4(e, t) {return e && e !== "none" ? e : t;}var JRe = (e) => {@@ -68282,33 +68273,33 @@ var JRe = (e) => {inactive: o,dataKey: t,type: a,- color: g4(r, i),- value: CU(n, t),+ color: m4(r, i),+ value: SU(n, t),payload: e}];}, YRe = /*#__PURE__*/ B.memo((e) => {var { dataKey: t, data: n, stroke: r, strokeWidth: i, fill: a, name: o, hide: s, unit: c, tooltipType: l, id: u } = e, d = {dataDefinedOnItem: n,- getPosition: lB,+ getPosition: cB,settings: {stroke: r,strokeWidth: i,fill: a,dataKey: t,nameKey: void 0,- name: CU(o, t),+ name: SU(o, t),hide: s,type: l,- color: g4(r, a),+ color: m4(r, a),unit: c,graphicalItemId: u}};- return /*#__PURE__*/ B.createElement(u0, { tooltipEntrySettings: d });+ return /*#__PURE__*/ B.createElement(c0, { tooltipEntrySettings: d });});function XRe(e) {- var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = UR(r);- return /*#__PURE__*/ B.createElement(b0, {+ var { clipPathId: t, points: n, props: r } = e, { needClip: i, dot: a, dataKey: o } = r, s = HR(r);+ return /*#__PURE__*/ B.createElement(v0, {points: n,dot: a,className: "recharts-area-dots",@@ -68329,7 +68320,7 @@ function ZRe(e) {upperWidth: 0,height: 0};- return h4(h4({}, t), {}, {+ return p4(p4({}, t), {}, {value: e.value,payload: e.payload,parentViewBox: void 0,@@ -68337,11 +68328,11 @@ function ZRe(e) {fill: void 0});});- return /*#__PURE__*/ B.createElement(i1, { value: t ? i : void 0 }, n);+ return /*#__PURE__*/ B.createElement(n1, { value: t ? i : void 0 }, n);}-function _4(e) {- var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = p4(a, HRe), p = UR(f), m = GR(f);- return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(YR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(xG, f4({}, m, {+function h4(e) {+ var { points: t, baseLine: n, needClip: r, clipPathId: i, props: a } = e, { layout: o, type: s, stroke: c, connectNulls: l, isRange: u } = a, { id: d } = a, f = d4(a, HRe), p = HR(f), m = WR(f);+ return /*#__PURE__*/ B.createElement(B.Fragment, null, t?.length > 1 && /*#__PURE__*/ B.createElement(JR, { clipPath: r ? `url(#clipPath-${i})` : void 0 }, /*#__PURE__*/ B.createElement(bG, u4({}, m, {id: d,points: t,connectNulls: l,@@ -68350,14 +68341,14 @@ function _4(e) {layout: o,stroke: "none",className: "recharts-area-area"- })), c !== "none" && /*#__PURE__*/ B.createElement(xG, f4({}, p, {+ })), c !== "none" && /*#__PURE__*/ B.createElement(bG, u4({}, p, {className: "recharts-area-curve",layout: o,type: s,connectNulls: l,fill: "none",points: t- })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(xG, f4({}, p, {+ })), c !== "none" && u && Array.isArray(n) && /*#__PURE__*/ B.createElement(bG, u4({}, p, {className: "recharts-area-curve",layout: o,type: s,@@ -68372,7 +68363,7 @@ function _4(e) {}function QRe(e) {var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.y, o = r[r.length - 1]?.y;- if (!oU(a) || !oU(o)) return null;+ if (!aU(a) || !aU(o)) return null;var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.x || 0));return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.x || 0), c)), Z(c) ? /*#__PURE__*/ B.createElement("rect", {x: 0,@@ -68383,7 +68374,7 @@ function QRe(e) {}function $Re(e) {var { alpha: t, baseLine: n, points: r, strokeWidth: i } = e, a = r[0]?.x, o = r[r.length - 1]?.x;- if (!oU(a) || !oU(o)) return null;+ if (!aU(a) || !aU(o)) return null;var s = t * Math.abs(a - o), c = Math.max(...r.map((e) => e.y || 0));return Z(n) ? c = Math.max(n, c) : n && Array.isArray(n) && n.length && (c = Math.max(...n.map((e) => e.y || 0), c)), Z(c) ? /*#__PURE__*/ B.createElement("rect", {x: a < o ? a : a - s,@@ -68407,10 +68398,10 @@ function eze(e) {});}function tze(e) {- var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = BG((0, B.useMemo)(() => ({+ var { needClip: t, clipPathId: n, props: r, previousPointsRef: i, previousBaselineRef: a } = e, { points: o, baseLine: s, isAnimationActive: c, animationBegin: l, animationDuration: u, animationEasing: d, onAnimationStart: f, onAnimationEnd: p } = r, m = zG((0, B.useMemo)(() => ({points: o,baseLine: s- }), [o, s]), "recharts-area-"), h = $U(), [g, _] = (0, B.useState)(!1), v = !g, y = (0, B.useCallback)(() => {+ }), [o, s]), "recharts-area-"), h = QU(), [g, _] = (0, B.useState)(!1), v = !g, y = (0, B.useCallback)(() => {typeof p == "function" && p(), _(!1);}, [p]), b = (0, B.useCallback)(() => {typeof f == "function" && f(), _(!0);@@ -68420,7 +68411,7 @@ function tze(e) {return /*#__PURE__*/ B.createElement(ZRe, {showLabels: v,points: o- }, r.children, /*#__PURE__*/ B.createElement(zG, {+ }, r.children, /*#__PURE__*/ B.createElement(RG, {animationId: m,begin: l,duration: u,@@ -68435,24 +68426,24 @@ function tze(e) {var r = Math.floor(n * l);if (x[r]) {var i = x[r];- return h4(h4({}, t), {}, {- x: iB(i.x, t.x, e),- y: iB(i.y, t.y, e)+ return p4(p4({}, t), {}, {+ x: rB(i.x, t.x, e),+ y: rB(i.y, t.y, e)});}return t;- }), d = Z(s) ? iB(S, s, e) : oB(s) || Qz(s) ? iB(S, 0, e) : s.map((t, n) => {+ }), d = Z(s) ? rB(S, s, e) : aB(s) || Zz(s) ? rB(S, 0, e) : s.map((t, n) => {var r = Math.floor(n * l);if (Array.isArray(S) && S[r]) {var i = S[r];- return h4(h4({}, t), {}, {- x: iB(i.x, t.x, e),- y: iB(i.y, t.y, e)+ return p4(p4({}, t), {}, {+ x: rB(i.x, t.x, e),+ y: rB(i.y, t.y, e)});}return t;});- return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(_4, {+ return e > 0 && (i.current = u, a.current = d), /*#__PURE__*/ B.createElement(h4, {points: u,baseLine: d,needClip: t,@@ -68460,20 +68451,20 @@ function tze(e) {props: r});}- return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(YR, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(eze, {+ return e > 0 && (i.current = o, a.current = s), /*#__PURE__*/ B.createElement(JR, null, c && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement("clipPath", { id: `animationClipPath-${n}` }, /*#__PURE__*/ B.createElement(eze, {alpha: e,points: o,baseLine: s,layout: h,strokeWidth: r.strokeWidth- }))), /*#__PURE__*/ B.createElement(YR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(_4, {+ }))), /*#__PURE__*/ B.createElement(JR, { clipPath: `url(#animationClipPath-${n})` }, /*#__PURE__*/ B.createElement(h4, {points: o,baseLine: s,needClip: t,clipPathId: n,props: r})));- }), /*#__PURE__*/ B.createElement(s1, { label: r.label }));+ }), /*#__PURE__*/ B.createElement(a1, { label: r.label }));}function nze(e) {var { needClip: t, clipPathId: n, props: r } = e, i = (0, B.useRef)(null), a = (0, B.useRef)();@@ -68489,8 +68480,8 @@ var rze = class extends B.PureComponent {render() {var { hide: e, dot: t, points: n, className: r, top: i, left: a, needClip: o, xAxisId: s, yAxisId: c, width: l, height: u, id: d, baseLine: f, zIndex: p } = this.props;if (e) return null;- var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = Y2(t), v = Z1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;- return /*#__PURE__*/ B.createElement(XQ, { zIndex: p }, /*#__PURE__*/ B.createElement(YR, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(W2, {+ var m = _h("recharts-area", r), h = d, { r: g, strokeWidth: _ } = q2(t), v = Y1(t), y = g * 2 + _, b = o ? `url(#clipPath-${v ? "" : "dots-"}${h})` : void 0;+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: p }, /*#__PURE__*/ B.createElement(JR, { className: m }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(H2, {clipPathId: h,xAxisId: s,yAxisId: c@@ -68503,15 +68494,15 @@ var rze = class extends B.PureComponent {needClip: o,clipPathId: h,props: this.props- })), /*#__PURE__*/ B.createElement(D0, {+ })), /*#__PURE__*/ B.createElement(T0, {points: n,- mainColor: g4(this.props.stroke, this.props.fill),+ mainColor: m4(this.props.stroke, this.props.fill),itemDataKey: this.props.dataKey,activeDot: this.props.activeDot,clipPath: b- }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(D0, {+ }), this.props.isRange && Array.isArray(f) && /*#__PURE__*/ B.createElement(T0, {points: f,- mainColor: g4(this.props.stroke, this.props.fill),+ mainColor: m4(this.props.stroke, this.props.fill),itemDataKey: this.props.dataKey,activeDot: this.props.activeDot,clipPath: b@@ -68535,13 +68526,13 @@ var rze = class extends B.PureComponent {label: !1,xAxisId: 0,yAxisId: 0,- zIndex: PK.area+ zIndex: NK.area};function aze(e) {- var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = p4(e, URe), g = QU(), _ = LQ(), { needClip: v } = U2(p, m), y = NU(), { points: b, isRange: x, baseLine: S } = Q((t) => VRe(t, e.id, y)) ?? {}, C = w0();+ var { activeDot: t, animationBegin: n, animationDuration: r, animationEasing: i, connectNulls: a, dot: o, fill: s, fillOpacity: c, hide: l, isAnimationActive: u, legendType: d, stroke: f, xAxisId: p, yAxisId: m } = e, h = d4(e, URe), g = ZU(), _ = IQ(), { needClip: v } = V2(p, m), y = MU(), { points: b, isRange: x, baseLine: S } = Q((t) => VRe(t, e.id, y)) ?? {}, C = S0();if (g !== "horizontal" && g !== "vertical" || C == null || _ !== "AreaChart" && _ !== "ComposedChart") return null;var { height: w, width: T, x: E, y: D } = C;- return !b || !b.length ? null : /*#__PURE__*/ B.createElement(rze, f4({}, h, {+ return !b || !b.length ? null : /*#__PURE__*/ B.createElement(rze, u4({}, h, {activeDot: t,animationBegin: n,animationDuration: r,@@ -68582,12 +68573,12 @@ function sze(e) {var a;if (m) a = i[u + n];else {- var o = uU(e, r);+ var o = lU(e, r);Array.isArray(o) ? (a = o, _ = !0) : a = [h, o];}- var l = a?.[1] ?? null, v = l == null || m && !t && uU(e, r) == null;+ var l = a?.[1] ?? null, v = l == null || m && !t && lU(e, r) == null;return g ? {- x: gU({+ x: hU({axis: s,ticks: d,bandSize: p,@@ -68599,7 +68590,7 @@ function sze(e) {payload: e} : {x: v ? null : s.scale.map(l) ?? null,- y: gU({+ y: hU({axis: c,ticks: f,bandSize: p,@@ -68628,11 +68619,11 @@ function sze(e) {};}function cze(e) {- var t = yB(e, ize), n = NU();- return /*#__PURE__*/ B.createElement(p0, {+ var t = vB(e, ize), n = MU();+ return /*#__PURE__*/ B.createElement(d0, {id: t.id,type: "area"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(d0, { legendPayload: JRe(t) }), /*#__PURE__*/ B.createElement(YRe, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(l0, { legendPayload: JRe(t) }), /*#__PURE__*/ B.createElement(YRe, {dataKey: t.dataKey,data: t.data,stroke: t.stroke,@@ -68643,7 +68634,7 @@ function cze(e) {unit: t.unit,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(h0, {+ }), /*#__PURE__*/ B.createElement(p0, {type: "area",id: e,data: t.data,@@ -68651,16 +68642,16 @@ function cze(e) {xAxisId: t.xAxisId,yAxisId: t.yAxisId,zAxisId: 0,- stackId: hU(t.stackId),+ stackId: mU(t.stackId),hide: t.hide,barSize: void 0,baseValue: t.baseValue,isPanorama: n,connectNulls: t.connectNulls- }), /*#__PURE__*/ B.createElement(aze, f4({}, t, { id: e }))));+ }), /*#__PURE__*/ B.createElement(aze, u4({}, t, { id: e }))));}-var v4 = /*#__PURE__*/ B.memo(cze, XW);-v4.displayName = "Area";+var g4 = /*#__PURE__*/ B.memo(cze, YW);+g4.displayName = "Area";//#endregion//#region node_modules/tiny-invariant/dist/esm/tiny-invariant.jsvar lze = "Invariant failed";@@ -68669,17 +68660,17 @@ function uze(e, t) {}//#endregion//#region node_modules/recharts/es6/util/BarUtils.js-function y4() {- return y4 = Object.assign ? Object.assign.bind() : function(e) {+function _4() {+ return _4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, y4.apply(null, arguments);+ }, _4.apply(null, arguments);}-function b4(e) {- return /*#__PURE__*/ B.createElement(o0, y4({+function v4(e) {+ return /*#__PURE__*/ B.createElement(i0, _4({shapeType: "rectangle",activeClassName: "recharts-active-bar",inActiveClassName: "recharts-inactive-bar"@@ -68689,71 +68680,71 @@ var dze = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;return (n, r) => {if (Z(e)) return e;- var i = Z(n) || oB(n);+ var i = Z(n) || aB(n);return i ? e(n, r) : (!i && uze(!1, `minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`), t);};-}, fze = (e, t, n) => n, x4 = $([IX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), pze = $([x4], (e) => e?.maxBarSize), mze = (e, t, n, r) => r, hze = $([- ZU,- IX,- i4,- a4,+}, fze = (e, t, n) => n, y4 = $([FX, (e, t) => t], (e, t) => e.filter((e) => e.type === "bar").find((e) => e.id === t)), pze = $([y4], (e) => e?.maxBarSize), mze = (e, t, n, r) => r, hze = $([+ XU,+ FX,+ n4,+ r4,fze], (e, t, n, r, i) => t.filter((t) => e === "horizontal" ? t.xAxisId === n : t.yAxisId === r).filter((e) => e.isPanorama === i).filter((e) => e.hide === !1).filter((e) => e.type === "bar")), gze = (e, t, n) => {- var r = ZU(e), i = i4(e, t), a = a4(e, t);- if (i != null && a != null) return r === "horizontal" ? $X(e, "yAxis", a, n) : $X(e, "xAxis", i, n);+ var r = XU(e), i = n4(e, t), a = r4(e, t);+ if (i != null && a != null) return r === "horizontal" ? QX(e, "yAxis", a, n) : QX(e, "xAxis", i, n);}, _ze = $([hze,- DK,+ EK,(e, t) => {- var n = ZU(e), r = i4(e, t), i = a4(e, t);- if (r != null && i != null) return n === "horizontal" ? PZ(e, "xAxis", r) : PZ(e, "yAxis", i);+ var n = XU(e), r = n4(e, t), i = r4(e, t);+ if (r != null && i != null) return n === "horizontal" ? NZ(e, "xAxis", r) : NZ(e, "yAxis", i);}-], U0), vze = (e, t, n) => {- var r = x4(e, t);+], V0), vze = (e, t, n) => {+ var r = y4(e, t);if (r == null) return 0;- var i = i4(e, t), a = a4(e, t);+ var i = n4(e, t), a = r4(e, t);if (i == null || a == null) return 0;- var o = ZU(e), s = wK(e), { maxBarSize: c } = r, l = oB(c) ? s : c, u, d;- return o === "horizontal" ? (u = HZ(e, "xAxis", i, n), d = VZ(e, "xAxis", i, n)) : (u = HZ(e, "yAxis", a, n), d = VZ(e, "yAxis", a, n)), xU(u, d, !0) ?? l ?? 0;-}, S4 = (e, t, n) => {- var r = ZU(e), i = i4(e, t), a = a4(e, t);+ var o = XU(e), s = CK(e), { maxBarSize: c } = r, l = aB(c) ? s : c, u, d;+ return o === "horizontal" ? (u = VZ(e, "xAxis", i, n), d = BZ(e, "xAxis", i, n)) : (u = VZ(e, "yAxis", a, n), d = BZ(e, "yAxis", a, n)), bU(u, d, !0) ?? l ?? 0;+}, b4 = (e, t, n) => {+ var r = XU(e), i = n4(e, t), a = r4(e, t);if (i != null && a != null) {var o, s;- return r === "horizontal" ? (o = HZ(e, "xAxis", i, n), s = VZ(e, "xAxis", i, n)) : (o = HZ(e, "yAxis", a, n), s = VZ(e, "yAxis", a, n)), xU(o, s);+ return r === "horizontal" ? (o = VZ(e, "xAxis", i, n), s = BZ(e, "xAxis", i, n)) : (o = VZ(e, "yAxis", a, n), s = BZ(e, "yAxis", a, n)), bU(o, s);}}, yze = $([+ AU,jU,- MU,(e, t, n) => {- var r = i4(e, t);- if (r != null) return HZ(e, "xAxis", r, n);+ var r = n4(e, t);+ if (r != null) return VZ(e, "xAxis", r, n);},(e, t, n) => {- var r = a4(e, t);- if (r != null) return HZ(e, "yAxis", r, n);+ var r = r4(e, t);+ if (r != null) return VZ(e, "yAxis", r, n);},(e, t, n) => {- var r = i4(e, t);- if (r != null) return VZ(e, "xAxis", r, n);+ var r = n4(e, t);+ if (r != null) return BZ(e, "xAxis", r, n);},(e, t, n) => {- var r = a4(e, t);- if (r != null) return VZ(e, "yAxis", r, n);+ var r = r4(e, t);+ if (r != null) return BZ(e, "yAxis", r, n);},$([$([_ze,+ CK,wK,TK,- EK,vze,- S4,+ b4,pze- ], K0), x4], J0),- ZU,- dK,- S4,- $([gze, x4], q0),- x4,+ ], W0), y4], K0),+ XU,+ uK,+ b4,+ $([gze, y4], G0),+ y4,mze], (e, t, n, r, i, a, o, s, c, l, u, d, f) => {var { chartData: p, dataStartIndex: m, dataEndIndex: h } = c;@@ -68777,14 +68768,14 @@ var dze = function(e) {});}}), bze = ["index"];-function C4() {- return C4 = Object.assign ? Object.assign.bind() : function(e) {+function x4() {+ return x4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, C4.apply(null, arguments);+ }, x4.apply(null, arguments);}function xze(e, t) {if (e == null) return {};@@ -68804,19 +68795,19 @@ function Sze(e, t) {}return n;}-var w4 = /*#__PURE__*/ (0, B.createContext)(void 0), Cze = (e) => {- var t = (0, B.useContext)(w4);+var S4 = /*#__PURE__*/ (0, B.createContext)(void 0), Cze = (e) => {+ var t = (0, B.useContext)(S4);if (t != null) return t.stackId;- if (e != null) return hU(e);+ if (e != null) return mU(e);}, wze = (e, t) => `recharts-bar-stack-clip-path-${e}-${t}`, Tze = (e) => {- var t = (0, B.useContext)(w4);+ var t = (0, B.useContext)(S4);if (t != null) {var { stackId: n } = t;return `url(#${wze(n, e)})`;}-}, T4 = (e) => {+}, C4 = (e) => {var { index: t } = e, n = xze(e, bze), r = Tze(t);- return /*#__PURE__*/ B.createElement(YR, C4({+ return /*#__PURE__*/ B.createElement(JR, x4({className: "recharts-bar-stack-layer",clipPath: r}, n));@@ -68833,16 +68824,16 @@ var w4 = /*#__PURE__*/ (0, B.createContext)(void 0), Cze = (e) => {"onClick","onMouseLeave"];-function E4() {- return E4 = Object.assign ? Object.assign.bind() : function(e) {+function w4() {+ return w4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, E4.apply(null, arguments);+ }, w4.apply(null, arguments);}-function D4(e, t) {+function T4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -68852,12 +68843,12 @@ function D4(e, t) {}return n;}-function O4(e) {+function E4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? D4(Object(n), !0).forEach(function(t) {+ t % 2 ? T4(Object(n), !0).forEach(function(t) {Aze(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : D4(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -68885,7 +68876,7 @@ function Mze(e, t) {}return (t === "string" ? String : Number)(e);}-function k4(e, t) {+function D4(e, t) {if (e == null) return {};var n, r, i = Nze(e, t);if (Object.getOwnPropertySymbols) {@@ -68910,20 +68901,20 @@ var Pze = (e) => {dataKey: t,type: i,color: r,- value: CU(n, t),+ value: SU(n, t),payload: e}];}, Fze = /*#__PURE__*/ B.memo((e) => {var { dataKey: t, stroke: n, strokeWidth: r, fill: i, name: a, hide: o, unit: s, tooltipType: c, id: l } = e, u = {dataDefinedOnItem: void 0,- getPosition: lB,+ getPosition: cB,settings: {stroke: n,strokeWidth: r,fill: i,dataKey: t,nameKey: void 0,- name: CU(a, t),+ name: SU(a, t),hide: o,type: c,color: i,@@ -68931,19 +68922,19 @@ var Pze = (e) => {graphicalItemId: l}};- return /*#__PURE__*/ B.createElement(u0, { tooltipEntrySettings: u });+ return /*#__PURE__*/ B.createElement(c0, { tooltipEntrySettings: u });});function Ize(e) {- var t = Q(OQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = k4(a, Eze), u = s0(o, r, a.id), d = c0(s), f = l0(c, r, a.id);+ var t = Q(DQ), { data: n, dataKey: r, background: i, allOtherBarProps: a } = e, { onMouseEnter: o, onMouseLeave: s, onClick: c } = a, l = D4(a, Eze), u = a0(o, r, a.id), d = o0(s), f = s0(c, r, a.id);if (!i || n == null) return null;- var p = WR(i);- return /*#__PURE__*/ B.createElement(XQ, { zIndex: s2(i, PK.barBackground) }, n.map((e, n) => {- var { value: a, background: o, tooltipPosition: s } = e, c = k4(e, Dze);+ var p = UR(i);+ return /*#__PURE__*/ B.createElement(JQ, { zIndex: a2(i, NK.barBackground) }, n.map((e, n) => {+ var { value: a, background: o, tooltipPosition: s } = e, c = D4(e, Dze);if (!o) return null;- var m = u(e, n), h = d(e, n), g = f(e, n), _ = O4(O4(O4(O4(O4({+ var m = u(e, n), h = d(e, n), g = f(e, n), _ = E4(E4(E4(E4(E4({option: i,isActive: String(n) === t- }, c), {}, { fill: "#eee" }, o), p), _B(l, e, n)), {}, {+ }, c), {}, { fill: "#eee" }, o), p), gB(l, e, n)), {}, {onMouseEnter: m,onMouseLeave: h,onClick: g,@@ -68951,7 +68942,7 @@ function Ize(e) {index: n,className: "recharts-bar-background-rectangle"});- return /*#__PURE__*/ B.createElement(b4, E4({ key: `background-bar-${n}` }, _));+ return /*#__PURE__*/ B.createElement(v4, w4({ key: `background-bar-${n}` }, _));}));}function Lze(e) {@@ -68964,7 +68955,7 @@ function Lze(e) {upperWidth: e.width,height: e.height};- return O4(O4({}, t), {}, {+ return E4(E4({}, t), {}, {value: e.value,payload: e.payload,parentViewBox: e.parentViewBox,@@ -68972,10 +68963,10 @@ function Lze(e) {fill: e.fill});});- return /*#__PURE__*/ B.createElement(i1, { value: t ? i : void 0 }, n);+ return /*#__PURE__*/ B.createElement(n1, { value: t ? i : void 0 }, n);}function Rze(e) {- var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(OQ), c = Q(AQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);+ var { shape: t, activeBar: n, baseProps: r, entry: i, index: a, dataKey: o } = e, s = Q(DQ), c = Q(kQ), l = n && String(i.originalDataIndex) === s && (c == null || o === c), [u, d] = (0, B.useState)(!1), [f, p] = (0, B.useState)(!1);(0, B.useEffect)(() => {var e;return l ? (d(!0), e = requestAnimationFrame(() => {@@ -68986,18 +68977,18 @@ function Rze(e) {}, [l]);var m = (0, B.useCallback)(() => {l || d(!1);- }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(b4, E4({}, r, { name: String(r.name) }, i, {+ }, [l]), h = l && f, g = l || u, _ = l ? n === !0 ? t : n : t, v = /*#__PURE__*/ B.createElement(v4, w4({}, r, { name: String(r.name) }, i, {isActive: h,option: _,index: a,dataKey: o,onTransitionEnd: m}));- return g ? /*#__PURE__*/ B.createElement(XQ, { zIndex: PK.activeBar }, /*#__PURE__*/ B.createElement(T4, { index: i.originalDataIndex }, v)) : v;+ return g ? /*#__PURE__*/ B.createElement(JQ, { zIndex: NK.activeBar }, /*#__PURE__*/ B.createElement(C4, { index: i.originalDataIndex }, v)) : v;}function zze(e) {var { shape: t, baseProps: n, entry: r, index: i, dataKey: a } = e;- return /*#__PURE__*/ B.createElement(b4, E4({}, n, { name: String(n.name) }, r, {+ return /*#__PURE__*/ B.createElement(v4, w4({}, n, { name: String(n.name) }, r, {isActive: !1,option: t,index: i,@@ -69005,12 +68996,12 @@ function zze(e) {}));}function Bze(e) {- var { data: t, props: n } = e, r = UR(n) ?? {}, { id: i } = r, a = k4(r, Oze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = k4(n, kze), p = s0(l, s, i), m = c0(d), h = l0(u, s, i);- return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(T4, E4({+ var { data: t, props: n } = e, r = HR(n) ?? {}, { id: i } = r, a = D4(r, Oze), { shape: o, dataKey: s, activeBar: c } = n, { onMouseEnter: l, onClick: u, onMouseLeave: d } = n, f = D4(n, kze), p = a0(l, s, i), m = o0(d), h = s0(u, s, i);+ return t ? /*#__PURE__*/ B.createElement(B.Fragment, null, t.map((e, t) => /*#__PURE__*/ B.createElement(C4, w4({index: e.originalDataIndex,key: `rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className: "recharts-bar-rectangle"- }, _B(f, e, t), {+ }, gB(f, e, t), {onMouseEnter: p(e, t),onMouseLeave: m(e, t),onClick: h(e, t)@@ -69030,7 +69021,7 @@ function Bze(e) {})))) : null;}function Vze(e) {- var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = BG(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {+ var { props: t, previousRectanglesRef: n } = e, { data: r, layout: i, isAnimationActive: a, animationBegin: o, animationDuration: s, animationEasing: c, onAnimationEnd: l, onAnimationStart: u } = t, d = n.current, f = zG(t, "recharts-bar-"), [p, m] = (0, B.useState)(!1), h = !p, g = (0, B.useCallback)(() => {typeof l == "function" && l(), m(!1);}, [l]), _ = (0, B.useCallback)(() => {typeof u == "function" && u(), m(!0);@@ -69038,7 +69029,7 @@ function Vze(e) {return /*#__PURE__*/ B.createElement(Lze, {showLabels: h,rects: r- }, /*#__PURE__*/ B.createElement(zG, {+ }, /*#__PURE__*/ B.createElement(RG, {animationId: f,begin: o,duration: s,@@ -69050,30 +69041,30 @@ function Vze(e) {}, (e) => {var a = e === 1 ? r : r?.map((t, n) => {var r = d && d[n];- if (r) return O4(O4({}, t), {}, {- x: iB(r.x, t.x, e),- y: iB(r.y, t.y, e),- width: iB(r.width, t.width, e),- height: iB(r.height, t.height, e)+ if (r) return E4(E4({}, t), {}, {+ x: rB(r.x, t.x, e),+ y: rB(r.y, t.y, e),+ width: rB(r.width, t.width, e),+ height: rB(r.height, t.height, e)});if (i === "horizontal") {- var a = iB(0, t.height, e), o = iB(t.stackedBarStart, t.y, e);- return O4(O4({}, t), {}, {+ var a = rB(0, t.height, e), o = rB(t.stackedBarStart, t.y, e);+ return E4(E4({}, t), {}, {y: o,height: a});}- var s = iB(0, t.width, e), c = iB(t.stackedBarStart, t.x, e);- return O4(O4({}, t), {}, {+ var s = rB(0, t.width, e), c = rB(t.stackedBarStart, t.x, e);+ return E4(E4({}, t), {}, {width: s,x: c});});- return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(YR, null, /*#__PURE__*/ B.createElement(Bze, {+ return e > 0 && (n.current = a ?? null), a == null ? null : /*#__PURE__*/ B.createElement(JR, null, /*#__PURE__*/ B.createElement(Bze, {props: t,data: a}));- }), /*#__PURE__*/ B.createElement(s1, { label: t.label }), t.children);+ }), /*#__PURE__*/ B.createElement(a1, { label: t.label }), t.children);}function Hze(e) {var t = (0, B.useRef)(null);@@ -69082,27 +69073,27 @@ function Hze(e) {props: e});}-var A4 = 0, Uze = (e, t) => {+var O4 = 0, Uze = (e, t) => {var n = Array.isArray(e.value) ? e.value[1] : e.value;return {x: e.x,y: e.y,value: n,- errorVal: uU(e, t)+ errorVal: lU(e, t)};}, Wze = class extends B.PureComponent {render() {var { hide: e, data: t, dataKey: n, className: r, xAxisId: i, yAxisId: a, needClip: o, background: s, id: c } = this.props;if (e || t == null) return null;var l = _h("recharts-bar", r), u = c;- return /*#__PURE__*/ B.createElement(YR, {+ return /*#__PURE__*/ B.createElement(JR, {className: l,id: c- }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(W2, {+ }, o && /*#__PURE__*/ B.createElement("defs", null, /*#__PURE__*/ B.createElement(H2, {clipPathId: u,xAxisId: i,yAxisId: a- })), /*#__PURE__*/ B.createElement(YR, {+ })), /*#__PURE__*/ B.createElement(JR, {className: "recharts-bar-rectangles",clipPath: o ? `url(#clipPath-${u})` : void 0}, /*#__PURE__*/ B.createElement(Ize, {@@ -69122,22 +69113,22 @@ var A4 = 0, Uze = (e, t) => {isAnimationActive: "auto",label: !1,legendType: "rect",- minPointSize: A4,+ minPointSize: O4,xAxisId: 0,yAxisId: 0,- zIndex: PK.bar+ zIndex: NK.bar};function Kze(e) {- var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = U2(t, n), f = QU(), p = NU(), m = X1(e.children, p$), h = Q((t) => yze(t, e.id, p, m));+ var { xAxisId: t, yAxisId: n, hide: r, legendType: i, minPointSize: a, activeBar: o, animationBegin: s, animationDuration: c, animationEasing: l, isAnimationActive: u } = e, { needClip: d } = V2(t, n), f = ZU(), p = MU(), m = J1(e.children, d$), h = Q((t) => yze(t, e.id, p, m));if (f !== "vertical" && f !== "horizontal") return null;var g, _ = h?.[0];- return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(H2, {+ return g = _ == null || _.height == null || _.width == null ? 0 : f === "vertical" ? _.height / 2 : _.width / 2, /*#__PURE__*/ B.createElement(B2, {xAxisId: t,yAxisId: n,data: h,dataPointFormatter: Uze,errorBarOffset: g- }, /*#__PURE__*/ B.createElement(Wze, E4({}, e, {+ }, /*#__PURE__*/ B.createElement(Wze, w4({}, e, {layout: f,needClip: d,data: h,@@ -69154,19 +69145,19 @@ function Kze(e) {})));}function qze(e) {- var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = vU({ numericAxis: _ }), b = _.scale.map(y);+ var { layout: t, barSettings: { dataKey: n, minPointSize: r, hasCustomShape: i }, pos: a, bandSize: o, xAxis: s, yAxis: c, xAxisTicks: l, yAxisTicks: u, stackedData: d, displayedData: f, offset: p, cells: m, parentViewBox: h, dataStartIndex: g } = e, _ = t === "horizontal" ? c : s, v = d ? _.scale.domain() : null, y = _U({ numericAxis: _ }), b = _.scale.map(y);return f.map((e, f) => {var _, x, S, C, w, T;if (d) {var E = d[f + g];if (E == null) return null;- _ = mU(E, v);- } else _ = uU(e, n), Array.isArray(_) || (_ = [y, _]);- var D = dze(r, A4)(_[1], f);+ _ = pU(E, v);+ } else _ = lU(e, n), Array.isArray(_) || (_ = [y, _]);+ var D = dze(r, O4)(_[1], f);if (t === "horizontal") {var O = c.scale.map(_[0]), k = c.scale.map(_[1]);if (O == null || k == null) return null;- x = _U({+ x = gU({axis: s,ticks: l,bandSize: o,@@ -69175,19 +69166,19 @@ function qze(e) {index: f}), S = k ?? O ?? void 0, C = a.size;var A = O - k;- if (w = Qz(A) ? 0 : A, T = {+ if (w = Zz(A) ? 0 : A, T = {x,y: p.top,width: C,height: p.height}, Math.abs(D) > 0 && Math.abs(w) < Math.abs(D)) {- var j = Zz(w || D) * (Math.abs(D) - Math.abs(w));+ var j = Xz(w || D) * (Math.abs(D) - Math.abs(w));S -= j, w += j;}} else {var M = s.scale.map(_[0]), N = s.scale.map(_[1]);if (M == null || N == null) return null;- if (x = M, S = _U({+ if (x = M, S = gU({axis: c,ticks: u,bandSize: o,@@ -69200,11 +69191,11 @@ function qze(e) {width: p.width,height: w}, Math.abs(D) > 0 && Math.abs(C) < Math.abs(D)) {- var P = Zz(C || D) * (Math.abs(D) - Math.abs(C));+ var P = Xz(C || D) * (Math.abs(D) - Math.abs(C));C += P;}}- return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : O4(O4({}, e), {}, {+ return x == null || S == null || C == null || w == null || !i && (C === 0 || w === 0) ? null : E4(E4({}, e), {}, {stackedBarStart: b,x,y: S,@@ -69223,11 +69214,11 @@ function qze(e) {}).filter(Boolean);}function Jze(e) {- var t = yB(e, Gze), n = Cze(t.stackId), r = NU();- return /*#__PURE__*/ B.createElement(p0, {+ var t = vB(e, Gze), n = Cze(t.stackId), r = MU();+ return /*#__PURE__*/ B.createElement(d0, {id: t.id,type: "bar"- }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(d0, { legendPayload: Pze(t) }), /*#__PURE__*/ B.createElement(Fze, {+ }, (e) => /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(l0, { legendPayload: Pze(t) }), /*#__PURE__*/ B.createElement(Fze, {dataKey: t.dataKey,stroke: t.stroke,strokeWidth: t.strokeWidth,@@ -69237,7 +69228,7 @@ function Jze(e) {unit: t.unit,tooltipType: t.tooltipType,id: e- }), /*#__PURE__*/ B.createElement(h0, {+ }), /*#__PURE__*/ B.createElement(p0, {type: "bar",id: e,data: void 0,@@ -69252,14 +69243,14 @@ function Jze(e) {maxBarSize: t.maxBarSize,isPanorama: r,hasCustomShape: t.shape != null- }), /*#__PURE__*/ B.createElement(XQ, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(Kze, E4({}, t, { id: e })))));+ }), /*#__PURE__*/ B.createElement(JQ, { zIndex: t.zIndex }, /*#__PURE__*/ B.createElement(Kze, w4({}, t, { id: e })))));}-var j4 = /*#__PURE__*/ B.memo(Jze, XW);-j4.displayName = "Bar";+var k4 = /*#__PURE__*/ B.memo(Jze, YW);+k4.displayName = "Bar";//#endregion//#region node_modules/recharts/es6/util/axisPropsAreEqual.jsvar Yze = ["domain", "range"], Xze = ["domain", "range"];-function M4(e, t) {+function A4(e, t) {if (e == null) return {};var n, r, i = Zze(e, t);if (Object.getOwnPropertySymbols) {@@ -69277,13 +69268,13 @@ function Zze(e, t) {}return n;}-function N4(e, t) {+function j4(e, t) {return e === t ? !0 : Array.isArray(e) && e.length === 2 && Array.isArray(t) && t.length === 2 ? e[0] === t[0] && e[1] === t[1] : !1;}-function P4(e, t) {+function M4(e, t) {if (e === t) return !0;- var { domain: n, range: r } = e, i = M4(e, Yze), { domain: a, range: o } = t, s = M4(t, Xze);- return !N4(n, a) || !N4(r, o) ? !1 : XW(i, s);+ var { domain: n, range: r } = e, i = A4(e, Yze), { domain: a, range: o } = t, s = A4(t, Xze);+ return !j4(n, a) || !j4(r, o) ? !1 : YW(i, s);}//#endregion//#region node_modules/recharts/es6/cartesian/XAxis.js@@ -69292,16 +69283,16 @@ var Qze = ["type"], $ze = ["ticks","scale"], eBe = ["id", "scale"];-function F4() {- return F4 = Object.assign ? Object.assign.bind() : function(e) {+function N4() {+ return N4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, F4.apply(null, arguments);+ }, N4.apply(null, arguments);}-function I4(e, t) {+function P4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -69311,12 +69302,12 @@ function I4(e, t) {}return n;}-function L4(e) {+function F4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? I4(Object(n), !0).forEach(function(t) {+ t % 2 ? P4(Object(n), !0).forEach(function(t) {tBe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : I4(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : P4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -69344,7 +69335,7 @@ function rBe(e, t) {}return (t === "string" ? String : Number)(e);}-function R4(e, t) {+function I4(e, t) {if (e == null) return {};var n, r, i = iBe(e, t);if (Object.getOwnPropertySymbols) {@@ -69363,8 +69354,8 @@ function iBe(e, t) {return n;}function aBe(e) {- var t = KB(), n = (0, B.useRef)(null), r = $U(), { type: i } = e, a = R4(e, Qze), o = RK(r, "xAxis", i), s = (0, B.useMemo)(() => {- if (o != null) return L4(L4({}, a), {}, { type: o });+ var t = GB(), n = (0, B.useRef)(null), r = QU(), { type: i } = e, a = I4(e, Qze), o = LK(r, "xAxis", i), s = (0, B.useMemo)(() => {+ if (o != null) return F4(F4({}, a), {}, { type: o });}, [a, o]);return (0, B.useLayoutEffect)(() => {s != null && (n.current === null ? t(xFe(s)) : n.current !== s && t(SFe({@@ -69376,10 +69367,10 @@ function aBe(e) {}, [t]), null;}var oBe = (e) => {- var { xAxisId: t, className: n } = e, r = Q(MU), i = NU(), a = "xAxis", o = Q((e) => zZ(e, a, t, i)), s = Q((e) => MZ(e, t)), c = Q((e) => OAe(e, t)), l = Q((e) => EX(e, t));+ var { xAxisId: t, className: n } = e, r = Q(jU), i = MU(), a = "xAxis", o = Q((e) => RZ(e, a, t, i)), s = Q((e) => jZ(e, t)), c = Q((e) => DAe(e, t)), l = Q((e) => TX(e, t));if (s == null || c == null || l == null) return null;- var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = R4(e, $ze), { id: m, scale: h } = l, g = R4(l, eBe);- return /*#__PURE__*/ B.createElement(P2, F4({}, p, g, {+ var { dangerouslySetInnerHTML: u, ticks: d, scale: f } = e, p = I4(e, $ze), { id: m, scale: h } = l, g = I4(l, eBe);+ return /*#__PURE__*/ B.createElement(M2, N4({}, p, g, {x: c.x,y: c.y,width: s.width,@@ -69391,31 +69382,31 @@ var oBe = (e) => {axisId: t}));}, sBe = {- allowDataOverflow: TX.allowDataOverflow,- allowDecimals: TX.allowDecimals,- allowDuplicatedCategory: TX.allowDuplicatedCategory,- angle: TX.angle,- axisLine: N2.axisLine,- height: TX.height,+ allowDataOverflow: wX.allowDataOverflow,+ allowDecimals: wX.allowDecimals,+ allowDuplicatedCategory: wX.allowDuplicatedCategory,+ angle: wX.angle,+ axisLine: j2.axisLine,+ height: wX.height,hide: !1,- includeHidden: TX.includeHidden,- interval: TX.interval,+ includeHidden: wX.includeHidden,+ interval: wX.interval,label: !1,- minTickGap: TX.minTickGap,- mirror: TX.mirror,- orientation: TX.orientation,- padding: TX.padding,- reversed: TX.reversed,- scale: TX.scale,- tick: TX.tick,- tickCount: TX.tickCount,- tickLine: N2.tickLine,- tickSize: N2.tickSize,- type: TX.type,- niceTicks: TX.niceTicks,+ minTickGap: wX.minTickGap,+ mirror: wX.mirror,+ orientation: wX.orientation,+ padding: wX.padding,+ reversed: wX.reversed,+ scale: wX.scale,+ tick: wX.tick,+ tickCount: wX.tickCount,+ tickLine: j2.tickLine,+ tickSize: j2.tickSize,+ type: wX.type,+ niceTicks: wX.niceTicks,xAxisId: 0-}, z4 = /*#__PURE__*/ B.memo((e) => {- var t = yB(e, sBe);+}, L4 = /*#__PURE__*/ B.memo((e) => {+ var t = vB(e, sBe);return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(aBe, {allowDataOverflow: t.allowDataOverflow,allowDecimals: t.allowDecimals,@@ -69443,8 +69434,8 @@ var oBe = (e) => {unit: t.unit,niceTicks: t.niceTicks}), /*#__PURE__*/ B.createElement(oBe, t));-}, P4);-z4.displayName = "XAxis";+}, M4);+L4.displayName = "XAxis";//#endregion//#region node_modules/recharts/es6/cartesian/YAxis.jsvar cBe = ["type"], lBe = [@@ -69452,16 +69443,16 @@ var cBe = ["type"], lBe = ["ticks","scale"], uBe = ["id", "scale"];-function B4() {- return B4 = Object.assign ? Object.assign.bind() : function(e) {+function R4() {+ return R4 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, B4.apply(null, arguments);+ }, R4.apply(null, arguments);}-function V4(e, t) {+function z4(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -69471,12 +69462,12 @@ function V4(e, t) {}return n;}-function H4(e) {+function B4(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? V4(Object(n), !0).forEach(function(t) {+ t % 2 ? z4(Object(n), !0).forEach(function(t) {dBe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V4(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z4(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -69504,7 +69495,7 @@ function pBe(e, t) {}return (t === "string" ? String : Number)(e);}-function U4(e, t) {+function V4(e, t) {if (e == null) return {};var n, r, i = mBe(e, t);if (Object.getOwnPropertySymbols) {@@ -69523,8 +69514,8 @@ function mBe(e, t) {return n;}function hBe(e) {- var t = KB(), n = (0, B.useRef)(null), r = $U(), { type: i } = e, a = U4(e, cBe), o = RK(r, "yAxis", i), s = (0, B.useMemo)(() => {- if (o != null) return H4(H4({}, a), {}, { type: o });+ var t = GB(), n = (0, B.useRef)(null), r = QU(), { type: i } = e, a = V4(e, cBe), o = LK(r, "yAxis", i), s = (0, B.useMemo)(() => {+ if (o != null) return B4(B4({}, a), {}, { type: o });}, [o, a]);return (0, B.useLayoutEffect)(() => {s != null && (n.current === null ? t(wFe(s)) : n.current !== s && t(TFe({@@ -69536,9 +69527,9 @@ function hBe(e) {}, [t]), null;}function gBe(e) {- var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(MU), c = NU(), l = KB(), u = "yAxis", d = Q((e) => NZ(e, t)), f = Q((e) => kAe(e, t)), p = Q((e) => zZ(e, u, t, c)), m = Q((e) => kX(e, t));+ var { yAxisId: t, className: n, width: r, label: i } = e, a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = Q(jU), c = MU(), l = GB(), u = "yAxis", d = Q((e) => MZ(e, t)), f = Q((e) => OAe(e, t)), p = Q((e) => RZ(e, u, t, c)), m = Q((e) => OX(e, t));if ((0, B.useLayoutEffect)(() => {- if (!(r !== "auto" || !d || X$(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {+ if (!(r !== "auto" || !d || J$(i) || /*#__PURE__*/ (0, B.isValidElement)(i) || m == null)) {var e = a.current;if (e) {var n = e.getCalculatedWidth();@@ -69557,8 +69548,8 @@ function gBe(e) {r,m]), d == null || f == null || m == null) return null;- var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = U4(e, lBe), { id: y, scale: b } = m, x = U4(m, uBe);- return /*#__PURE__*/ B.createElement(P2, B4({}, v, x, {+ var { dangerouslySetInnerHTML: h, ticks: g, scale: _ } = e, v = V4(e, lBe), { id: y, scale: b } = m, x = V4(m, uBe);+ return /*#__PURE__*/ B.createElement(M2, R4({}, v, x, {ref: a,labelRef: o,x: f.x,@@ -69574,31 +69565,31 @@ function gBe(e) {}));}var _Be = {- allowDataOverflow: OX.allowDataOverflow,- allowDecimals: OX.allowDecimals,- allowDuplicatedCategory: OX.allowDuplicatedCategory,- angle: OX.angle,- axisLine: N2.axisLine,+ allowDataOverflow: DX.allowDataOverflow,+ allowDecimals: DX.allowDecimals,+ allowDuplicatedCategory: DX.allowDuplicatedCategory,+ angle: DX.angle,+ axisLine: j2.axisLine,hide: !1,- includeHidden: OX.includeHidden,- interval: OX.interval,+ includeHidden: DX.includeHidden,+ interval: DX.interval,label: !1,- minTickGap: OX.minTickGap,- mirror: OX.mirror,- orientation: OX.orientation,- padding: OX.padding,- reversed: OX.reversed,- scale: OX.scale,- tick: OX.tick,- tickCount: OX.tickCount,- tickLine: N2.tickLine,- tickSize: N2.tickSize,- type: OX.type,- niceTicks: OX.niceTicks,- width: OX.width,+ minTickGap: DX.minTickGap,+ mirror: DX.mirror,+ orientation: DX.orientation,+ padding: DX.padding,+ reversed: DX.reversed,+ scale: DX.scale,+ tick: DX.tick,+ tickCount: DX.tickCount,+ tickLine: j2.tickLine,+ tickSize: j2.tickSize,+ type: DX.type,+ niceTicks: DX.niceTicks,+ width: DX.width,yAxisId: 0-}, W4 = /*#__PURE__*/ B.memo((e) => {- var t = yB(e, _Be);+}, H4 = /*#__PURE__*/ B.memo((e) => {+ var t = vB(e, _Be);return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(hBe, {interval: t.interval,id: t.yAxisId,@@ -69626,24 +69617,24 @@ var _Be = {tickFormatter: t.tickFormatter,niceTicks: t.niceTicks}), /*#__PURE__*/ B.createElement(gBe, t));-}, P4);-W4.displayName = "YAxis";-var G4 = $([+}, M4);+H4.displayName = "YAxis";+var U4 = $([(e, t) => t,- ZU,- ZK,- aq,- xQ,- CQ,- Tje,- jU-], Mje);+ XU,+ XK,+ iq,+ bQ,+ SQ,+ wje,+ AU+], jje);//#endregion//#region node_modules/recharts/es6/util/getRelativeCoordinate.jsfunction vBe(e) {return "getBBox" in e.currentTarget && typeof e.currentTarget.getBBox == "function";}-function K4(e) {+function W4(e) {var t = e.currentTarget.getBoundingClientRect(), n, r;if (vBe(e)) {var i = e.currentTarget.getBBox();@@ -69660,45 +69651,45 @@ function K4(e) {}//#endregion//#region node_modules/recharts/es6/state/mouseEventsMiddleware.js-var q4 = SH("mouseClick"), J4 = nU();-J4.startListening({- actionCreator: q4,+var G4 = xH("mouseClick"), K4 = tU();+K4.startListening({+ actionCreator: G4,effect: (e, t) => {- var n = e.payload, r = G4(t.getState(), K4(n));- r?.activeIndex != null && t.dispatch(zAe({+ var n = e.payload, r = U4(t.getState(), W4(n));+ r?.activeIndex != null && t.dispatch(RAe({activeIndex: r.activeIndex,activeDataKey: void 0,activeCoordinate: r.activeCoordinate}));}});-var Y4 = SH("mouseMove"), X4 = nU(), Z4 = null, Q4 = null, $4 = null;-X4.startListening({- actionCreator: Y4,+var q4 = xH("mouseMove"), J4 = tU(), Y4 = null, X4 = null, Z4 = null;+J4.startListening({+ actionCreator: q4,effect: (e, t) => {var n = e.payload, { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i?.includes("mousemove");- Z4 !== null && (cancelAnimationFrame(Z4), Z4 = null), Q4 !== null && (typeof r != "number" || !a) && (clearTimeout(Q4), Q4 = null), $4 = K4(n);+ Y4 !== null && (cancelAnimationFrame(Y4), Y4 = null), X4 !== null && (typeof r != "number" || !a) && (clearTimeout(X4), X4 = null), Z4 = W4(n);var o = () => {- var e = t.getState(), n = KZ(e, e.tooltip.settings.shared);- if (!$4) {- Z4 = null, Q4 = null;+ var e = t.getState(), n = GZ(e, e.tooltip.settings.shared);+ if (!Z4) {+ Y4 = null, X4 = null;return;}if (n === "axis") {- var r = G4(e, $4);- r?.activeIndex == null ? t.dispatch(ZZ()) : t.dispatch(QZ({+ var r = U4(e, Z4);+ r?.activeIndex == null ? t.dispatch(XZ()) : t.dispatch(ZZ({activeIndex: r.activeIndex,activeDataKey: void 0,activeCoordinate: r.activeCoordinate}));}- Z4 = null, Q4 = null;+ Y4 = null, X4 = null;};if (!a) {o();return;}- r === "raf" ? Z4 = requestAnimationFrame(o) : typeof r == "number" && Q4 === null && (Q4 = setTimeout(o, r));+ r === "raf" ? Y4 = requestAnimationFrame(o) : typeof r == "number" && X4 === null && (X4 = setTimeout(o, r));}});//#endregion@@ -69708,7 +69699,7 @@ function yBe(e, t) {}//#endregion//#region node_modules/recharts/es6/state/rootPropsSlice.js-var e3 = {+var Q4 = {accessibilityLayer: !0,barCategoryGap: "10%",barGap: 4,@@ -69720,70 +69711,70 @@ var e3 = {syncMethod: "index",baseValue: void 0,reverseStackOrder: !1-}, t3 = jH({+}, $4 = AH({name: "rootProps",- initialState: e3,+ initialState: Q4,reducers: { updateOptions: (e, t) => {- e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? e3.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;+ e.accessibilityLayer = t.payload.accessibilityLayer, e.barCategoryGap = t.payload.barCategoryGap, e.barGap = t.payload.barGap ?? Q4.barGap, e.barSize = t.payload.barSize, e.maxBarSize = t.payload.maxBarSize, e.stackOffset = t.payload.stackOffset, e.syncId = t.payload.syncId, e.syncMethod = t.payload.syncMethod, e.className = t.payload.className, e.baseValue = t.payload.baseValue, e.reverseStackOrder = t.payload.reverseStackOrder;} }-}), bBe = t3.reducer, { updateOptions: xBe } = t3.actions, n3 = jH({+}), bBe = $4.reducer, { updateOptions: xBe } = $4.actions, e3 = AH({name: "polarOptions",initialState: null,reducers: { updatePolarOptions: (e, t) => e === null ? t.payload : (e.startAngle = t.payload.startAngle, e.endAngle = t.payload.endAngle, e.cx = t.payload.cx, e.cy = t.payload.cy, e.innerRadius = t.payload.innerRadius, e.outerRadius = t.payload.outerRadius, e) }-}), { updatePolarOptions: SBe } = n3.actions, CBe = n3.reducer, r3 = SH("keyDown"), i3 = SH("focus"), a3 = SH("blur"), o3 = nU(), s3 = null, c3 = null, l3 = null;-o3.startListening({- actionCreator: r3,+}), { updatePolarOptions: SBe } = e3.actions, CBe = e3.reducer, t3 = xH("keyDown"), n3 = xH("focus"), r3 = xH("blur"), i3 = tU(), a3 = null, o3 = null, s3 = null;+i3.startListening({+ actionCreator: t3,effect: (e, t) => {- l3 = e.payload, s3 !== null && (cancelAnimationFrame(s3), s3 = null);+ s3 = e.payload, a3 !== null && (cancelAnimationFrame(a3), a3 = null);var { throttleDelay: n, throttledEvents: r } = t.getState().eventSettings, i = r === "all" || r.includes("keydown");- c3 !== null && (typeof n != "number" || !i) && (clearTimeout(c3), c3 = null);+ o3 !== null && (typeof n != "number" || !i) && (clearTimeout(o3), o3 = null);var a = () => {try {var e = t.getState();if (e.rootProps.accessibilityLayer === !1) return;- var { keyboardInteraction: n } = e.tooltip, r = l3;+ var { keyboardInteraction: n } = e.tooltip, r = s3;if (r !== "ArrowRight" && r !== "ArrowLeft" && r !== "Enter") return;- var i = iQ(n, hQ(e), ZX(e), yQ(e)), a = i == null ? -1 : Number(i);+ var i = rQ(n, mQ(e), XX(e), vQ(e)), a = i == null ? -1 : Number(i);if (!Number.isFinite(a) || a < 0) return;- var o = CQ(e);+ var o = SQ(e);if (r === "Enter") {- var s = WQ(e, "axis", "hover", String(n.index));- t.dispatch(eQ({+ var s = UQ(e, "axis", "hover", String(n.index));+ t.dispatch($Z({active: !n.active,activeIndex: n.index,activeCoordinate: s}));return;}- var c = AAe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;+ var c = kAe(e) === "left-to-right" ? 1 : -1, l = a + (r === "ArrowRight" ? 1 : -1) * c;if (o == null || l >= o.length || l < 0) return;- var u = WQ(e, "axis", "hover", String(l));- t.dispatch(eQ({+ var u = UQ(e, "axis", "hover", String(l));+ t.dispatch($Z({active: !0,activeIndex: l.toString(),activeCoordinate: u}));} finally {- s3 = null, c3 = null;+ a3 = null, o3 = null;}};if (!i) {a();return;}- n === "raf" ? s3 = requestAnimationFrame(a) : typeof n == "number" && c3 === null && (a(), l3 = null, c3 = setTimeout(() => {- l3 ? a() : (c3 = null, s3 = null);+ n === "raf" ? a3 = requestAnimationFrame(a) : typeof n == "number" && o3 === null && (a(), s3 = null, o3 = setTimeout(() => {+ s3 ? a() : (o3 = null, a3 = null);}, n));}-}), o3.startListening({- actionCreator: i3,+}), i3.startListening({+ actionCreator: n3,effect: (e, t) => {var n = t.getState();if (n.rootProps.accessibilityLayer !== !1) {var { keyboardInteraction: r } = n.tooltip;if (!r.active && r.index == null) {- var i = "0", a = WQ(n, "axis", "hover", String(i));- t.dispatch(eQ({+ var i = "0", a = UQ(n, "axis", "hover", String(i));+ t.dispatch($Z({active: !0,activeIndex: i,activeCoordinate: a@@ -69791,13 +69782,13 @@ o3.startListening({}}}-}), o3.startListening({- actionCreator: a3,+}), i3.startListening({+ actionCreator: r3,effect: (e, t) => {var n = t.getState();if (n.rootProps.accessibilityLayer !== !1) {var { keyboardInteraction: r } = n.tooltip;- r.active && t.dispatch(eQ({+ r.active && t.dispatch($Z({active: !1,activeIndex: r.index,activeCoordinate: r.coordinate@@ -69807,7 +69798,7 @@ o3.startListening({});//#endregion//#region node_modules/recharts/es6/util/createEventProxy.js-function u3(e) {+function c3(e) {e.persist();var { currentTarget: t } = e;return new Proxy(e, { get: (e, n) => {@@ -69818,36 +69809,36 @@ function u3(e) {}//#endregion//#region node_modules/recharts/es6/state/externalEventsMiddleware.js-var d3 = SH("externalEvent"), f3 = nU(), p3 = /* @__PURE__ */ new Map(), m3 = /* @__PURE__ */ new Map(), h3 = /* @__PURE__ */ new Map();-f3.startListening({- actionCreator: d3,+var l3 = xH("externalEvent"), u3 = tU(), d3 = /* @__PURE__ */ new Map(), f3 = /* @__PURE__ */ new Map(), p3 = /* @__PURE__ */ new Map();+u3.startListening({+ actionCreator: l3,effect: (e, t) => {var { handler: n, reactEvent: r } = e.payload;if (n != null) {- var i = r.type, a = u3(r);- h3.set(i, {+ var i = r.type, a = c3(r);+ p3.set(i, {handler: n,reactEvent: a});- var o = p3.get(i);- o !== void 0 && (cancelAnimationFrame(o), p3.delete(i));- var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = m3.get(i);- d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), m3.delete(i));+ var o = d3.get(i);+ o !== void 0 && (cancelAnimationFrame(o), d3.delete(i));+ var { throttleDelay: s, throttledEvents: c } = t.getState().eventSettings, l = c, u = l === "all" || l?.includes(i), d = f3.get(i);+ d !== void 0 && (typeof s != "number" || !u) && (clearTimeout(d), f3.delete(i));var f = () => {- var e = h3.get(i);+ var e = p3.get(i);try {if (!e) return;var { handler: n, reactEvent: r } = e, a = t.getState(), o = {- activeCoordinate: dje(a),- activeDataKey: AQ(a),- activeIndex: OQ(a),- activeLabel: kQ(a),- activeTooltipIndex: OQ(a),- isTooltipActive: fje(a)+ activeCoordinate: uje(a),+ activeDataKey: kQ(a),+ activeIndex: DQ(a),+ activeLabel: OQ(a),+ activeTooltipIndex: DQ(a),+ isTooltipActive: dje(a)};n && n(o, r);} finally {- p3.delete(i), m3.delete(i), h3.delete(i);+ d3.delete(i), f3.delete(i), p3.delete(i);}};if (!u) {@@ -69856,19 +69847,19 @@ f3.startListening({}if (s === "raf") {var p = requestAnimationFrame(f);- p3.set(i, p);+ d3.set(i, p);} else if (typeof s == "number") {- if (!m3.has(i)) {+ if (!f3.has(i)) {f();var m = setTimeout(f, s);- m3.set(i, m);+ f3.set(i, m);}} else f();}}});var wBe = $([- $([cQ], (e) => e.tooltipItemPayloads),+ $([sQ], (e) => e.tooltipItemPayloads),(e, t) => t,(e, t, n) => n], (e, t, n) => {@@ -69879,65 +69870,65 @@ var wBe = $([if (i != null) return i(t);}}-}), g3 = SH("touchMove"), _3 = nU(), v3 = null, y3 = null, b3 = null, x3 = null;-_3.startListening({- actionCreator: g3,+}), m3 = xH("touchMove"), h3 = tU(), g3 = null, _3 = null, v3 = null, y3 = null;+h3.startListening({+ actionCreator: m3,effect: (e, t) => {var n = e.payload;if (n.touches != null && n.touches.length !== 0) {- x3 = u3(n);+ y3 = c3(n);var { throttleDelay: r, throttledEvents: i } = t.getState().eventSettings, a = i === "all" || i.includes("touchmove");- v3 !== null && (cancelAnimationFrame(v3), v3 = null), y3 !== null && (typeof r != "number" || !a) && (clearTimeout(y3), y3 = null), b3 = Array.from(n.touches).map((e) => K4({+ g3 !== null && (cancelAnimationFrame(g3), g3 = null), _3 !== null && (typeof r != "number" || !a) && (clearTimeout(_3), _3 = null), v3 = Array.from(n.touches).map((e) => W4({clientX: e.clientX,clientY: e.clientY,currentTarget: n.currentTarget}));var o = () => {- if (x3 != null) {- var e = t.getState(), n = KZ(e, e.tooltip.settings.shared);+ if (y3 != null) {+ var e = t.getState(), n = GZ(e, e.tooltip.settings.shared);if (n === "axis") {- var r = b3?.[0];+ var r = v3?.[0];if (r == null) {- v3 = null, y3 = null;+ g3 = null, _3 = null;return;}- var i = G4(e, r);- i?.activeIndex != null && t.dispatch(QZ({+ var i = U4(e, r);+ i?.activeIndex != null && t.dispatch(ZZ({activeIndex: i.activeIndex,activeDataKey: void 0,activeCoordinate: i.activeCoordinate}));} else if (n === "item") {- var a = x3.touches[0];+ var a = y3.touches[0];if (document.elementFromPoint == null || a == null) return;var o = document.elementFromPoint(a.clientX, a.clientY);if (!o || !o.getAttribute) return;- var s = o.getAttribute(iwe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = mQ(e).find((e) => e.id === c);+ var s = o.getAttribute(rwe), c = o.getAttribute("data-recharts-item-id") ?? void 0, l = pQ(e).find((e) => e.id === c);if (s == null || l == null || c == null) return;var { dataKey: u } = l, d = wBe(e, s, c);- t.dispatch(XZ({+ t.dispatch(YZ({activeDataKey: u,activeIndex: s,activeCoordinate: d,activeGraphicalItemId: c}));}- v3 = null, y3 = null;+ g3 = null, _3 = null;}};if (!a) {o();return;}- r === "raf" ? v3 = requestAnimationFrame(o) : typeof r == "number" && y3 === null && (o(), x3 = null, y3 = setTimeout(() => {- x3 ? o() : (y3 = null, v3 = null);+ r === "raf" ? g3 = requestAnimationFrame(o) : typeof r == "number" && _3 === null && (o(), y3 = null, _3 = setTimeout(() => {+ y3 ? o() : (_3 = null, g3 = null);}, r));}}});//#endregion//#region node_modules/recharts/es6/state/eventSettingsSlice.js-var S3 = {+var b3 = {throttleDelay: "raf",throttledEvents: ["mousemove",@@ -69946,32 +69937,32 @@ var S3 = {"scroll","wheel"]-}, C3 = jH({+}, x3 = AH({name: "eventSettings",- initialState: S3,+ initialState: b3,reducers: { setEventSettings: (e, t) => {- t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = HW(t.payload.throttledEvents));+ t.payload.throttleDelay != null && (e.throttleDelay = t.payload.throttleDelay), t.payload.throttledEvents != null && (e.throttledEvents = VW(t.payload.throttledEvents));} }-}), { setEventSettings: TBe } = C3.actions, EBe = C3.reducer, DBe = uV({+}), { setEventSettings: TBe } = x3.actions, EBe = x3.reducer, DBe = lV({brush: WIe,cartesianAxis: jFe,chartData: iMe,errorBars: lRe,eventSettings: EBe,graphicalItems: sFe,- layout: GCe,- legend: Uwe,+ layout: WCe,+ legend: Hwe,options: $je,polarAxis: ZNe,polarOptions: CBe,referenceElements: tLe,renderedTicks: kLe,rootProps: bBe,- tooltip: BAe,+ tooltip: zAe,zIndex: Wje}), OBe = function(e) {var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Chart";- return _Ce({+ return gCe({reducer: DBe,preloadedState: e,middleware: (e) => e({@@ -69982,17 +69973,17 @@ var S3 = {"production"].includes("es6")}).concat([+ K4.middleware,J4.middleware,- X4.middleware,- o3.middleware,- f3.middleware,- _3.middleware+ i3.middleware,+ u3.middleware,+ h3.middleware]),enhancers: (e) => {var t = e;- return typeof e == "function" && (t = e()), t.concat(kH({ type: "raf" }));+ return typeof e == "function" && (t = e()), t.concat(OH({ type: "raf" }));},- devTools: sG.devToolsEnabled && {+ devTools: oG.devToolsEnabled && {serialize: { replacer: yBe },name: `recharts-${t}`}@@ -70000,12 +69991,12 @@ var S3 = {};//#endregion//#region node_modules/recharts/es6/state/RechartsStoreProvider.js-function w3(e) {- var { preloadedState: t, children: n, reduxStoreName: r } = e, i = NU(), a = (0, B.useRef)(null);+function S3(e) {+ var { preloadedState: t, children: n, reduxStoreName: r } = e, i = MU(), a = (0, B.useRef)(null);if (i) return n;a.current ??= OBe(t, r);- var o = GB;- return /*#__PURE__*/ B.createElement(rTe, {+ var o = WB;+ return /*#__PURE__*/ B.createElement(nTe, {context: o,store: a.current}, n);@@ -70013,9 +70004,9 @@ function w3(e) {//#endregion//#region node_modules/recharts/es6/state/ReportMainChartProps.jsfunction kBe(e) {- var { layout: t, margin: n } = e, r = KB(), i = NU();+ var { layout: t, margin: n } = e, r = GB(), i = MU();return (0, B.useEffect)(() => {- i || (r(HCe(t)), r(VCe(n)));+ i || (r(VCe(t)), r(BCe(n)));}, [r,i,@@ -70023,25 +70014,25 @@ function kBe(e) {n]), null;}-var T3 = /*#__PURE__*/ (0, B.memo)(kBe, XW);+var C3 = /*#__PURE__*/ (0, B.memo)(kBe, YW);//#endregion//#region node_modules/recharts/es6/state/ReportChartProps.js-function E3(e) {- var t = KB();+function w3(e) {+ var t = GB();return (0, B.useEffect)(() => {t(xBe(e));}, [t, e]), null;}-var D3 = /*#__PURE__*/ (0, B.memo)((e) => {- var t = KB();+var T3 = /*#__PURE__*/ (0, B.memo)((e) => {+ var t = GB();return (0, B.useEffect)(() => {t(TBe(e));}, [t, e]), null;-}, XW);+}, YW);//#endregion//#region node_modules/recharts/es6/zIndex/ZIndexPortal.js-function O3(e) {- var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = KB();+function E3(e) {+ var { zIndex: t, isPanorama: n } = e, r = (0, B.useRef)(null), i = GB();return (0, B.useLayoutEffect)(() => (r.current && i(Hje({zIndex: t,element: r.current,@@ -70061,15 +70052,15 @@ function O3(e) {className: `recharts-zIndex-layer_${t}`});}-function k3(e) {- var { children: t, isPanorama: n } = e, r = Q(KQ);+function D3(e) {+ var { children: t, isPanorama: n } = e, r = Q(Nje);if (!r || r.length === 0) return t;var i = r.filter((e) => e < 0), a = r.filter((e) => e > 0);- return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(O3, {+ return /*#__PURE__*/ B.createElement(B.Fragment, null, i.map((e) => /*#__PURE__*/ B.createElement(E3, {key: e,zIndex: e,isPanorama: n- })), t, a.map((e) => /*#__PURE__*/ B.createElement(O3, {+ })), t, a.map((e) => /*#__PURE__*/ B.createElement(E3, {key: e,zIndex: e,isPanorama: n@@ -70096,24 +70087,24 @@ function MBe(e, t) {}return n;}-function A3() {- return A3 = Object.assign ? Object.assign.bind() : function(e) {+function O3() {+ return O3 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, A3.apply(null, arguments);+ }, O3.apply(null, arguments);}var NBe = {width: "100%",height: "100%",display: "block"}, PBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = YU(), r = XU(), i = dG();- if (!sU(n) || !sU(r)) return null;+ var n = JU(), r = YU(), i = uG();+ if (!oU(n) || !oU(r)) return null;var { children: a, otherAttributes: o, title: s, desc: c } = e, l, u;- return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ B.createElement(qR, A3({}, o, {+ return o != null && (l = typeof o.tabIndex == "number" ? o.tabIndex : i ? 0 : void 0, u = typeof o.role == "string" ? o.role : i ? "application" : void 0), /*#__PURE__*/ B.createElement(KR, O3({}, o, {title: s,desc: c,role: u,@@ -70124,27 +70115,27 @@ var NBe = {ref: t}), a);}), FBe = (e) => {- var { children: t } = e, n = Q(FU);+ var { children: t } = e, n = Q(PU);if (!n) return null;var { width: r, height: i, y: a, x: o } = n;- return /*#__PURE__*/ B.createElement(qR, {+ return /*#__PURE__*/ B.createElement(KR, {width: r,height: i,x: o,y: a}, t);-}, j3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+}, k3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {var { children: n } = e, r = jBe(e, ABe);- return NU() ? /*#__PURE__*/ B.createElement(FBe, null, /*#__PURE__*/ B.createElement(k3, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(PBe, A3({ ref: t }, r), /*#__PURE__*/ B.createElement(k3, { isPanorama: !1 }, n));+ return MU() ? /*#__PURE__*/ B.createElement(FBe, null, /*#__PURE__*/ B.createElement(D3, { isPanorama: !0 }, n)) : /*#__PURE__*/ B.createElement(PBe, O3({ ref: t }, r), /*#__PURE__*/ B.createElement(D3, { isPanorama: !1 }, n));});//#endregion//#region node_modules/recharts/es6/util/useReportScale.jsfunction IBe() {- var e = KB(), [t, n] = (0, B.useState)(null), r = Q(rwe);+ var e = GB(), [t, n] = (0, B.useState)(null), r = Q(nwe);return (0, B.useEffect)(() => {if (t != null) {var n = t.getBoundingClientRect().width / t.offsetWidth;- oU(n) && n !== r && e(WCe(n));+ aU(n) && n !== r && e(UCe(n));}}, [t,@@ -70154,7 +70145,7 @@ function IBe() {}//#endregion//#region node_modules/recharts/es6/chart/RechartsWrapper.js-function M3(e, t) {+function A3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -70167,9 +70158,9 @@ function M3(e, t) {function LBe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? M3(Object(n), !0).forEach(function(t) {+ t % 2 ? A3(Object(n), !0).forEach(function(t) {RBe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M3(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -70197,17 +70188,17 @@ function BBe(e, t) {}return (t === "string" ? String : Number)(e);}-function N3() {- return N3 = Object.assign ? Object.assign.bind() : function(e) {+function j3() {+ return j3 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, N3.apply(null, arguments);+ }, j3.apply(null, arguments);}var VBe = () => (pMe(), null);-function P3(e) {+function M3(e) {if (typeof e == "number") return e;if (typeof e == "string") {var t = parseFloat(e);@@ -70217,8 +70208,8 @@ function P3(e) {}var HBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {var n = (0, B.useRef)(null), [r, i] = (0, B.useState)({- containerWidth: P3(e.style?.width),- containerHeight: P3(e.style?.height)+ containerWidth: M3(e.style?.width),+ containerHeight: M3(e.style?.height)}), a = (0, B.useCallback)((e, t) => {i((n) => {var r = Math.round(e), i = Math.round(t);@@ -70243,14 +70234,14 @@ var HBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {}, [t, a]);return (0, B.useEffect)(() => () => {n.current?.disconnect();- }, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(nW, {+ }, [a]), /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(tW, {width: r.containerWidth,height: r.containerHeight- }), /*#__PURE__*/ B.createElement("div", N3({ ref: o }, e)));+ }), /*#__PURE__*/ B.createElement("div", j3({ ref: o }, e)));}), UBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {var { width: n, height: r } = e, [i, a] = (0, B.useState)({- containerWidth: P3(n),- containerHeight: P3(r)+ containerWidth: M3(n),+ containerHeight: M3(r)}), o = (0, B.useCallback)((e, t) => {a((n) => {var r = Math.round(e), i = Math.round(t);@@ -70265,32 +70256,32 @@ var HBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {o(n, r);}}, [t, o]);- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(nW, {+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(tW, {width: i.containerWidth,height: i.containerHeight- }), /*#__PURE__*/ B.createElement("div", N3({ ref: s }, e)));+ }), /*#__PURE__*/ B.createElement("div", j3({ ref: s }, e)));}), WBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {var { width: n, height: r } = e;- return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(nW, {+ return /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(tW, {width: n,height: r- }), /*#__PURE__*/ B.createElement("div", N3({ ref: t }, e)));+ }), /*#__PURE__*/ B.createElement("div", j3({ ref: t }, e)));}), GBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {var { width: n, height: r } = e;- return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(UBe, N3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(WBe, N3({}, e, {+ return typeof n == "string" || typeof r == "string" ? /*#__PURE__*/ B.createElement(UBe, j3({}, e, { ref: t })) : typeof n == "number" && typeof r == "number" ? /*#__PURE__*/ B.createElement(WBe, j3({}, e, {width: n,height: r,ref: t- })) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(nW, {+ })) : /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(tW, {width: n,height: r- }), /*#__PURE__*/ B.createElement("div", N3({ ref: t }, e)));+ }), /*#__PURE__*/ B.createElement("div", j3({ ref: t }, e)));});function KBe(e) {return e ? HBe : GBe;}var qBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, B.useRef)(null), x = KB(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = IBe(), D = WU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {+ var { children: n, className: r, height: i, onClick: a, onContextMenu: o, onDoubleClick: s, onMouseDown: c, onMouseEnter: l, onMouseLeave: u, onMouseMove: d, onMouseUp: f, onTouchEnd: p, onTouchMove: m, onTouchStart: h, style: g, width: _, responsive: v, dispatchTouchEvents: y = !0 } = e, b = (0, B.useRef)(null), x = GB(), [S, C] = (0, B.useState)(null), [w, T] = (0, B.useState)(null), E = IBe(), D = UU(), O = D?.width > 0 ? D.width : _, k = D?.height > 0 ? D.height : i, A = (0, B.useCallback)((e) => {E(e), typeof t == "function" && t(e), C(e), T(e), e != null && (b.current = e);}, [E,@@ -70298,58 +70289,58 @@ var qBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {C,T]), j = (0, B.useCallback)((e) => {- x(q4(e)), x(d3({+ x(G4(e)), x(l3({handler: a,reactEvent: e}));}, [x, a]), M = (0, B.useCallback)((e) => {- x(Y4(e)), x(d3({+ x(q4(e)), x(l3({handler: l,reactEvent: e}));}, [x, l]), N = (0, B.useCallback)((e) => {- x(ZZ()), x(d3({+ x(XZ()), x(l3({handler: u,reactEvent: e}));}, [x, u]), P = (0, B.useCallback)((e) => {- x(Y4(e)), x(d3({+ x(q4(e)), x(l3({handler: d,reactEvent: e}));}, [x, d]), ee = (0, B.useCallback)(() => {- x(i3());+ x(n3());}, [x]), F = (0, B.useCallback)(() => {- x(a3());+ x(r3());}, [x]), I = (0, B.useCallback)((e) => {- x(r3(e.key));+ x(t3(e.key));}, [x]), te = (0, B.useCallback)((e) => {- x(d3({+ x(l3({handler: o,reactEvent: e}));}, [x, o]), ne = (0, B.useCallback)((e) => {- x(d3({+ x(l3({handler: s,reactEvent: e}));}, [x, s]), re = (0, B.useCallback)((e) => {- x(d3({+ x(l3({handler: c,reactEvent: e}));}, [x, c]), ie = (0, B.useCallback)((e) => {- x(d3({+ x(l3({handler: f,reactEvent: e}));}, [x, f]), ae = (0, B.useCallback)((e) => {- x(d3({+ x(l3({handler: h,reactEvent: e}));}, [x, h]), oe = (0, B.useCallback)((e) => {- y && x(g3(e)), x(d3({+ y && x(m3(e)), x(l3({handler: m,reactEvent: e}));@@ -70358,12 +70349,12 @@ var qBe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {y,m]), se = (0, B.useCallback)((e) => {- x(d3({+ x(l3({handler: p,reactEvent: e}));}, [x, p]), ce = KBe(v);- return /*#__PURE__*/ B.createElement(e$.Provider, { value: S }, /*#__PURE__*/ B.createElement(XR.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {+ return /*#__PURE__*/ B.createElement(QQ.Provider, { value: S }, /*#__PURE__*/ B.createElement(YR.Provider, { value: w }, /*#__PURE__*/ B.createElement(ce, {width: O ?? g?.width,height: k ?? g?.height,className: _h("recharts-wrapper", r),@@ -70418,12 +70409,12 @@ function XBe(e, t) {}return n;}-var F3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = UR(YBe(e, JBe));- return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(nW, {+var N3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {+ var { width: n, height: r, responsive: i, children: a, className: o, style: s, compact: c, title: l, desc: u } = e, d = HR(YBe(e, JBe));+ return c ? /*#__PURE__*/ B.createElement(B.Fragment, null, /*#__PURE__*/ B.createElement(tW, {width: n,height: r- }), /*#__PURE__*/ B.createElement(j3, {+ }), /*#__PURE__*/ B.createElement(k3, {otherAttributes: d,title: l,desc: u@@ -70444,7 +70435,7 @@ var F3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {onTouchStart: e.onTouchStart,onTouchMove: e.onTouchMove,onTouchEnd: e.onTouchEnd- }, /*#__PURE__*/ B.createElement(j3, {+ }, /*#__PURE__*/ B.createElement(k3, {otherAttributes: d,title: l,desc: u,@@ -70453,16 +70444,16 @@ var F3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {});//#endregion//#region node_modules/recharts/es6/chart/CartesianChart.js-function I3() {- return I3 = Object.assign ? Object.assign.bind() : function(e) {+function P3() {+ return P3 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, I3.apply(null, arguments);+ }, P3.apply(null, arguments);}-function L3(e, t) {+function F3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -70475,9 +70466,9 @@ function L3(e, t) {function ZBe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? L3(Object(n), !0).forEach(function(t) {+ t % 2 ? F3(Object(n), !0).forEach(function(t) {QBe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L3(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : F3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -70520,24 +70511,24 @@ var tVe = ZBe({reverseStackOrder: !1,stackOffset: "none",syncMethod: "index"-}, S3), R3 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- var n = yB(e.categoricalChartProps, tVe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {+}, b3), I3 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ var n = vB(e.categoricalChartProps, tVe), { chartName: r, defaultTooltipEventType: i, validateTooltipEventTypes: a, tooltipPayloadSearcher: o, categoricalChartProps: s } = e, c = {chartName: r,defaultTooltipEventType: i,validateTooltipEventTypes: a,tooltipPayloadSearcher: o,eventEmitter: void 0};- return /*#__PURE__*/ B.createElement(w3, {+ return /*#__PURE__*/ B.createElement(S3, {preloadedState: { options: c },reduxStoreName: s.id ?? r- }, /*#__PURE__*/ B.createElement(h2, { chartData: s.data }), /*#__PURE__*/ B.createElement(T3, {+ }, /*#__PURE__*/ B.createElement(p2, { chartData: s.data }), /*#__PURE__*/ B.createElement(C3, {layout: n.layout,margin: n.margin- }), /*#__PURE__*/ B.createElement(D3, {+ }), /*#__PURE__*/ B.createElement(T3, {throttleDelay: n.throttleDelay,throttledEvents: n.throttledEvents- }), /*#__PURE__*/ B.createElement(E3, {+ }), /*#__PURE__*/ B.createElement(w3, {baseValue: n.baseValue,accessibilityLayer: n.accessibilityLayer,barCategoryGap: n.barCategoryGap,@@ -70549,26 +70540,26 @@ var tVe = ZBe({syncMethod: n.syncMethod,className: n.className,reverseStackOrder: n.reverseStackOrder- }), /*#__PURE__*/ B.createElement(F3, I3({}, n, { ref: t })));-}), nVe = ["axis"], rVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(R3, {+ }), /*#__PURE__*/ B.createElement(N3, P3({}, n, { ref: t })));+}), nVe = ["axis"], rVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(I3, {chartName: "LineChart",defaultTooltipEventType: "axis",validateTooltipEventTypes: nVe,- tooltipPayloadSearcher: i$,+ tooltipPayloadSearcher: n$,categoricalChartProps: e,ref: t-})), iVe = ["axis", "item"], z3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(R3, {+})), iVe = ["axis", "item"], L3 = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(I3, {chartName: "BarChart",defaultTooltipEventType: "axis",validateTooltipEventTypes: iVe,- tooltipPayloadSearcher: i$,+ tooltipPayloadSearcher: n$,categoricalChartProps: e,ref: t}));//#endregion//#region node_modules/recharts/es6/state/ReportPolarOptions.jsfunction aVe(e) {- var t = KB();+ var t = GB();return (0, B.useEffect)(() => {t(SBe(e));}, [t, e]), null;@@ -70576,14 +70567,14 @@ function aVe(e) {//#endregion//#region node_modules/recharts/es6/chart/PolarChart.jsvar oVe = ["layout"];-function B3() {- return B3 = Object.assign ? Object.assign.bind() : function(e) {+function R3() {+ return R3 = Object.assign ? Object.assign.bind() : function(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t];for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);}return e;- }, B3.apply(null, arguments);+ }, R3.apply(null, arguments);}function sVe(e, t) {if (e == null) return {};@@ -70603,7 +70594,7 @@ function cVe(e, t) {}return n;}-function V3(e, t) {+function z3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -70616,9 +70607,9 @@ function V3(e, t) {function lVe(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? V3(Object(n), !0).forEach(function(t) {+ t % 2 ? z3(Object(n), !0).forEach(function(t) {uVe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : V3(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : z3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -70646,7 +70637,7 @@ function fVe(e, t) {}return (t === "string" ? String : Number)(e);}-var H3 = lVe({+var B3 = lVe({accessibilityLayer: !0,stackOffset: "none",barCategoryGap: "10%",@@ -70665,24 +70656,24 @@ var H3 = lVe({cy: "50%",innerRadius: 0,outerRadius: "80%"-}, S3), U3 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {- var n = yB(e.categoricalChartProps, H3), { layout: r } = n, i = sVe(n, oVe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {+}, b3), V3 = /*#__PURE__*/ (0, B.forwardRef)(function(e, t) {+ var n = vB(e.categoricalChartProps, B3), { layout: r } = n, i = sVe(n, oVe), { chartName: a, defaultTooltipEventType: o, validateTooltipEventTypes: s, tooltipPayloadSearcher: c } = e, l = {chartName: a,defaultTooltipEventType: o,validateTooltipEventTypes: s,tooltipPayloadSearcher: c,eventEmitter: void 0};- return /*#__PURE__*/ B.createElement(w3, {+ return /*#__PURE__*/ B.createElement(S3, {preloadedState: { options: l },reduxStoreName: n.id ?? a- }, /*#__PURE__*/ B.createElement(h2, { chartData: n.data }), /*#__PURE__*/ B.createElement(T3, {+ }, /*#__PURE__*/ B.createElement(p2, { chartData: n.data }), /*#__PURE__*/ B.createElement(C3, {layout: r,margin: n.margin- }), /*#__PURE__*/ B.createElement(D3, {+ }), /*#__PURE__*/ B.createElement(T3, {throttleDelay: n.throttleDelay,throttledEvents: n.throttledEvents- }), /*#__PURE__*/ B.createElement(E3, {+ }), /*#__PURE__*/ B.createElement(w3, {baseValue: void 0,accessibilityLayer: n.accessibilityLayer,barCategoryGap: n.barCategoryGap,@@ -70701,11 +70692,11 @@ var H3 = lVe({endAngle: n.endAngle,innerRadius: n.innerRadius,outerRadius: n.outerRadius- }), /*#__PURE__*/ B.createElement(F3, B3({}, i, { ref: t })));+ }), /*#__PURE__*/ B.createElement(N3, R3({}, i, { ref: t })));});//#endregion//#region node_modules/recharts/es6/chart/RadarChart.js-function W3(e, t) {+function H3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -70715,12 +70706,12 @@ function W3(e, t) {}return n;}-function G3(e) {+function U3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? W3(Object(n), !0).forEach(function(t) {+ t % 2 ? H3(Object(n), !0).forEach(function(t) {pVe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W3(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : H3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -70748,31 +70739,31 @@ function hVe(e, t) {}return (t === "string" ? String : Number)(e);}-var gVe = ["axis"], _Ve = G3(G3({}, H3), {}, {+var gVe = ["axis"], _Ve = U3(U3({}, B3), {}, {layout: "centric",startAngle: 90,endAngle: -270}), vVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = yB(e, _Ve);- return /*#__PURE__*/ B.createElement(U3, {+ var n = vB(e, _Ve);+ return /*#__PURE__*/ B.createElement(V3, {chartName: "RadarChart",defaultTooltipEventType: "axis",validateTooltipEventTypes: gVe,- tooltipPayloadSearcher: i$,+ tooltipPayloadSearcher: n$,categoricalChartProps: n,ref: t});-}), yVe = ["axis"], bVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(R3, {+}), yVe = ["axis"], bVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => /*#__PURE__*/ B.createElement(I3, {chartName: "AreaChart",defaultTooltipEventType: "axis",validateTooltipEventTypes: yVe,- tooltipPayloadSearcher: i$,+ tooltipPayloadSearcher: n$,categoricalChartProps: e,ref: t}));//#endregion//#region node_modules/recharts/es6/chart/RadialBarChart.js-function K3(e, t) {+function W3(e, t) {var n = Object.keys(e);if (Object.getOwnPropertySymbols) {var r = Object.getOwnPropertySymbols(e);@@ -70782,12 +70773,12 @@ function K3(e, t) {}return n;}-function q3(e) {+function G3(e) {for (var t = 1; t < arguments.length; t++) {var n = arguments[t] == null ? {} : arguments[t];- t % 2 ? K3(Object(n), !0).forEach(function(t) {+ t % 2 ? W3(Object(n), !0).forEach(function(t) {xVe(e, t, n[t]);- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : K3(Object(n)).forEach(function(t) {+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : W3(Object(n)).forEach(function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));});}@@ -70815,59 +70806,59 @@ function CVe(e, t) {}return (t === "string" ? String : Number)(e);}-var wVe = ["axis", "item"], TVe = q3(q3({}, H3), {}, {+var wVe = ["axis", "item"], TVe = G3(G3({}, B3), {}, {layout: "radial",startAngle: 0,endAngle: 360}), EVe = /*#__PURE__*/ (0, B.forwardRef)((e, t) => {- var n = yB(e, TVe);- return /*#__PURE__*/ B.createElement(U3, {+ var n = vB(e, TVe);+ return /*#__PURE__*/ B.createElement(V3, {chartName: "RadialBarChart",defaultTooltipEventType: "axis",validateTooltipEventTypes: wVe,- tooltipPayloadSearcher: i$,+ tooltipPayloadSearcher: n$,categoricalChartProps: n,ref: t});});//#endregion//#region src/react/charts/cn.ts-function J3(...e) {- return xE(_h(e));+function K3(...e) {+ return _E(_h(e));}//#endregion//#region src/react/evilcharts/registry/ui/recharts-chart.tsx-var Y3 = {+var q3 = {light: "",dark: ".dark"-}, X3 = Object.keys(Y3);+}, J3 = Object.keys(q3);function DVe(e) {- for (let [t, n] of Object.entries(e)) if (n.colors && !X3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${X3.join(", ")}). Received empty object or invalid keys.`);+ for (let [t, n] of Object.entries(e)) if (n.colors && !J3.some((e) => n.colors?.[e] !== void 0)) throw Error(`[EvilCharts] Invalid chart config for "${t}": colors object must have at least one theme key (${J3.join(", ")}). Received empty object or invalid keys.`);}-var Z3 = B.createContext(null);-function Q3() {- let e = B.useContext(Z3);+var Y3 = B.createContext(null);+function X3() {+ let e = B.useContext(Y3);if (!e) throw Error("useChart must be used within a <ChartContainer />");return e;}-function $3({ id: e, config: t, initialDimension: n = {+function Z3({ id: e, config: t, initialDimension: n = {width: 320,height: 200}, className: r, children: i, footer: a, ...o }) {let s = B.useId(), c = `chart-${e ?? s.replace(/:/g, "")}`;- return DVe(t), /* @__PURE__ */ (0, V.jsx)(Z3.Provider, {+ return DVe(t), /* @__PURE__ */ (0, V.jsx)(Y3.Provider, {value: { config: t },children: /* @__PURE__ */ (0, V.jsxs)("div", {"data-slot": "chart","data-chart": c,- className: J3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),+ className: K3("min-h-0 w-full flex-1", "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border relative flex flex-col justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", !a && "aspect-video", r),...o,children: [- /* @__PURE__ */ (0, V.jsx)(t6, {+ /* @__PURE__ */ (0, V.jsx)($3, {id: c,config: t}),- /* @__PURE__ */ (0, V.jsx)(GU, {+ /* @__PURE__ */ (0, V.jsx)(WU, {className: "min-h-0 w-full flex-1",initialDimension: n,children: i@@ -70877,7 +70868,7 @@ function $3({ id: e, config: t, initialDimension: n = {})});}-function e6({ isLoading: e }) {+function Q3({ isLoading: e }) {return e ? /* @__PURE__ */ (0, V.jsx)("div", {className: "pointer-events-none absolute inset-0 z-20 flex items-center justify-center",children: /* @__PURE__ */ (0, V.jsxs)("div", {@@ -70896,23 +70887,23 @@ function OVe(e, t) {}return r;}-var t6 = ({ id: e, config: t }) => {+var $3 = ({ id: e, config: t }) => {let n = Object.entries(t).filter(([, e]) => e.colors);if (!n.length) return null;let r = (e) => n.flatMap(([t, n]) => {let r = n.colors?.[e];- return !r || !Array.isArray(r) || r.length === 0 ? [] : OVe(r, r6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);- }).filter(Boolean).join("\n"), i = Object.entries(Y3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");+ return !r || !Array.isArray(r) || r.length === 0 ? [] : OVe(r, t6(n)).map((e, n) => ` --color-${t}-${n}: ${e};`);+ }).filter(Boolean).join("\n"), i = Object.entries(q3).map(([t, n]) => `${n} [data-chart=${e}] {\n${r(t)}\n}`).join("\n");return /* @__PURE__ */ (0, V.jsx)("style", { dangerouslySetInnerHTML: { __html: i } });};-function n6(e, t, n) {+function e6(e, t, n) {if (typeof t != "object" || !t) return;let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];}-function r6(e) {+function t6(e) {if (!e.colors) return 1;- let t = X3.map((t) => e.colors?.[t]?.length ?? 0);+ let t = J3.map((t) => e.colors?.[t]?.length ?? 0);return Math.max(...t, 1);}var kVe = (e = 10, t = 0, n = 70) => {@@ -70927,15 +70918,15 @@ var kVe = (e = 10, t = 0, n = 70) => {default: "bg-background","frosted-glass": "bg-background/70 backdrop-blur-sm"};-function i6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {- let { config: h } = Q3(), g = B.useMemo(() => {+function n6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: a = !1, label: o, labelFormatter: s, labelClassName: c, formatter: l, nameKey: u, labelKey: d, selected: f, roundness: p = "lg", variant: m = "default" }) {+ let { config: h } = X3(), g = B.useMemo(() => {if (i || !t?.length) return null;- let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = n6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;+ let [e] = t, n = `${d ?? e?.dataKey ?? e?.name ?? "value"}`, r = e6(h, e, n), a = !d && typeof o == "string" ? h[o]?.label ?? o : r?.label;return s ? /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("font-medium", c),+ className: K3("font-medium", c),children: s(a, t)}) : a ? /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("font-medium", c),+ className: K3("font-medium", c),children: a}) : null;}, [@@ -70950,15 +70941,15 @@ function i6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabif (!e || !t?.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });let _ = t.length === 1 && r !== "dot";return /* @__PURE__ */ (0, V.jsxs)("div", {- className: J3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", AVe[p], jVe[m], n),+ className: K3("border-border/50 grid min-w-32 items-start gap-1.5 border px-2.5 py-1.5 text-xs shadow-xl", AVe[p], jVe[m], n),children: [_ ? null : g, /* @__PURE__ */ (0, V.jsx)("div", {className: "grid gap-1.5",children: t.filter((e) => e.type !== "none").map((e, t) => {- let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = n6(h, e, n), o = i ? r6(i) : 1;+ let n = `${(u && e.payload ? e.payload[u] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, i = e6(h, e, n), o = i ? t6(i) : 1;return /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),+ className: K3("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", r === "dot" && "items-center", f != null && f !== e.dataKey && "opacity-30"),children: l && e?.value !== void 0 && e.name ? l(e.value, e.name, e, t, e.payload) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [i?.icon ? /* @__PURE__ */ (0, V.jsx)(i.icon, {}) : !a && /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("shrink-0 rounded-[2px]", {+ className: K3("shrink-0 rounded-[2px]", {"h-2.5 w-2.5": r === "dot","w-1": r === "line","w-0 border-[1.5px] border-dashed bg-transparent!": r === "dashed",@@ -70966,7 +70957,7 @@ function i6({ active: e, payload: t, className: n, indicator: r = "dot", hideLab}),style: MVe(n, o)}), /* @__PURE__ */ (0, V.jsxs)("div", {- className: J3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),+ className: K3("flex flex-1 justify-between gap-4 leading-none", _ ? "items-end" : "items-center"),children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "grid gap-1.5",children: [_ ? g : null, /* @__PURE__ */ (0, V.jsx)("span", {@@ -70986,20 +70977,20 @@ function i6({ active: e, payload: t, className: n, indicator: r = "dot", hideLabfunction MVe(e, t) {return t <= 1 ? { background: `var(--color-${e}-0)` } : { background: `linear-gradient(to right, ${Array.from({ length: t }, (n, r) => `var(--color-${e}-${r}) ${r / (t - 1) * 100}%`).join(", ")})` };}-var a6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(xMe, {+var r6 = ({ animationDuration: e = 200, ...t }) => /* @__PURE__ */ (0, V.jsx)(xMe, {animationDuration: e,...t});//#endregion//#region src/react/evilcharts/registry/ui/recharts-legend.tsx-function o6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {- let { config: u } = Q3();+function i6({ className: e, hideIcon: t = !1, nameKey: n, payload: r, verticalAlign: i, align: a = "right", selected: o, onSelectChange: s, isClickable: c, variant: l = "rounded-square" }) {+ let { config: u } = X3();return r?.length ? /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),+ className: K3("flex items-center gap-4 select-none", a === "left" && "justify-start", a === "center" && "justify-center", a === "right" && "justify-end", i === "top" ? "pb-4" : "pt-4", e),children: r.filter((e) => e.type !== "none").map((e) => {- let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = n6(u, e, r), a = o === null || o === r, d = i ? r6(i) : 1;+ let r = `${(n && e.payload ? e.payload[n] : void 0) ?? e.value ?? e.dataKey ?? "value"}`, i = e6(u, e, r), a = o === null || o === r, d = i ? t6(i) : 1;return /* @__PURE__ */ (0, V.jsxs)("div", {- className: J3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),+ className: K3("[&>svg]:text-muted-foreground flex items-center gap-1.5 transition-opacity [&>svg]:h-3 [&>svg]:w-3", !a && "opacity-30", c && "cursor-pointer"),onClick: () => {c && s?.(o === r ? null : r);},@@ -71063,7 +71054,7 @@ function FVe(e, t) {...n};}-var s6 = eG, c6 = () => null, l6 = {+var a6 = $W, o6 = () => null, s6 = {stiffness: 300,damping: 35,mass: .8@@ -71175,7 +71166,7 @@ function LVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "]);let N = C > 1 ? M.startIndex / (C - 1) * 100 : 0, P = C > 1 ? M.endIndex / (C - 1) * 100 : 100, ee = Hf(N), F = Hf(P);ee.get() !== N && ee.set(N), F.get() !== P && F.set(P);- let I = Yf(ee, l6), te = Yf(F, l6), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {+ let I = Yf(ee, s6), te = Yf(F, s6), ne = Gf(I, (e) => `${e}%`), re = Gf(te, (e) => `${e}%`), ie = Gf(I, (e) => `${e}%`), ae = Gf(te, (e) => `${Math.max(0, 100 - e)}%`), oe = Hf(`${Math.max(0, P - N)}%`), se = (0, B.useCallback)(() => {oe.set(`${Math.max(0, te.get() - I.get())}%`);}, [I,@@ -71195,10 +71186,10 @@ function LVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "return C === 0 ? null : /* @__PURE__ */ (0, V.jsxs)("div", {ref: x,"data-chart": b ? void 0 : w,- className: J3("group relative select-none", o),+ className: K3("group relative select-none", o),style: { height: a },children: [- !b && /* @__PURE__ */ (0, V.jsx)(t6, {+ !b && /* @__PURE__ */ (0, V.jsx)($3, {id: w,config: t}),@@ -71233,13 +71224,13 @@ function LVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "},...j("middle")}),- /* @__PURE__ */ (0, V.jsx)(u6, {+ /* @__PURE__ */ (0, V.jsx)(c6, {side: "left",position: ne,label: y ? ce(M.startIndex) : void 0,bind: j("left")}),- /* @__PURE__ */ (0, V.jsx)(u6, {+ /* @__PURE__ */ (0, V.jsx)(c6, {side: "right",position: re,label: y ? ce(M.endIndex) : void 0,@@ -71248,16 +71239,16 @@ function LVe({ data: e, chartConfig: t, dataKeys: n, xDataKey: r, variant: i = "]});}-function u6({ side: e, position: t, label: n, bind: r }) {+function c6({ side: e, position: t, label: n, bind: r }) {let i = e === "left";return /* @__PURE__ */ (0, V.jsxs)(ep.div, {className: "absolute inset-y-0 z-10",style: { left: t },children: [/* @__PURE__ */ (0, V.jsx)("div", {- className: J3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),+ className: K3("group absolute inset-y-0 flex w-3 cursor-ew-resize touch-none items-center justify-center after:absolute after:inset-y-0 after:-left-4 after:w-11 after:content-['']", i ? "" : "-translate-x-full"),...r,children: /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),+ className: K3("bg-muted-foreground group-hover:bg-foreground relative flex h-4 w-1.5 items-center justify-center rounded-md transition-colors", i ? "-left-[5.5px]" : "-right-[5.5px]"),children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-[2px]",children: [@@ -71268,7 +71259,7 @@ function u6({ side: e, position: t, label: n, bind: r }) {})})}), n && /* @__PURE__ */ (0, V.jsx)("div", {- className: J3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),+ className: K3("bg-foreground text-background pointer-events-none absolute -bottom-3 -translate-y-1/2 rounded-[3px] px-1 py-px text-[8px] leading-tight font-medium whitespace-nowrap opacity-0 group-hover:opacity-100", i ? "left-1.5" : "right-1.5"),children: n})]});@@ -71276,7 +71267,7 @@ function u6({ side: e, position: t, label: n, bind: r }) {function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartId: a, stacked: o, strokeVariant: s = "solid", connectNulls: c = !1, barRadius: l }) {let u = B.useMemo(() => Object.entries(n).filter(([e]) => t.includes(e)).map(([e, t]) => ({dataKey: e,- colorsCount: r6(t)+ colorsCount: t6(t)})), [n, t]), d = s === "dashed" || s === "animated-dashed" ? "4 4" : void 0, f = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [r === "area" && /* @__PURE__ */ (0, V.jsxs)("linearGradient", {id: `${a}-zm-vertical-fade`,x1: "0",@@ -71330,7 +71321,7 @@ function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart})})] })] }, e);})] });- if (r === "line") return /* @__PURE__ */ (0, V.jsx)(GU, {+ if (r === "line") return /* @__PURE__ */ (0, V.jsx)(WU, {width: "100%",height: "100%",children: /* @__PURE__ */ (0, V.jsxs)(rVe, {@@ -71341,7 +71332,7 @@ function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartbottom: 0,left: 0},- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(r4, {+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(t4, {type: i,dataKey: e,stroke: `url(#${a}-zm-${e})`,@@ -71357,10 +71348,10 @@ function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart});if (r === "bar") {let n = l ?? 3;- return /* @__PURE__ */ (0, V.jsx)(GU, {+ return /* @__PURE__ */ (0, V.jsx)(WU, {width: "100%",height: "100%",- children: /* @__PURE__ */ (0, V.jsxs)(z3, {+ children: /* @__PURE__ */ (0, V.jsxs)(L3, {data: e,margin: {top: 2,@@ -71370,7 +71361,7 @@ function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart},barGap: 2,barSize: 14,- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(j4, {+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(k4, {dataKey: e,fill: `url(#${a}-zm-${e})`,fillOpacity: .35,@@ -71386,7 +71377,7 @@ function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chart})});}- return /* @__PURE__ */ (0, V.jsx)(GU, {+ return /* @__PURE__ */ (0, V.jsx)(WU, {width: "100%",height: "100%",children: /* @__PURE__ */ (0, V.jsxs)(bVe, {@@ -71397,7 +71388,7 @@ function RVe({ data: e, keys: t, chartConfig: n, variant: r, curveType: i, chartbottom: 0,left: 0},- children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(v4, {+ children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: f }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(g4, {type: i,dataKey: e,stroke: `url(#${a}-zm-${e})`,@@ -71611,9 +71602,9 @@ var BVe = {})})};-function d6({ variant: e }) {+function l6({ variant: e }) {let t = (0, B.useId)().replace(/:/g, ""), n = `${t}-bg-${e}`, r = `${t}-bg-edge-fade`, i = `${t}-bg-blur`, a = BVe[e];- return /* @__PURE__ */ (0, V.jsxs)(XQ, {+ return /* @__PURE__ */ (0, V.jsxs)(JQ, {zIndex: -1,children: [/* @__PURE__ */ (0, V.jsxs)("defs", { children: [/* @__PURE__ */ (0, V.jsx)(a, { id: n }),@@ -71643,20 +71634,20 @@ function d6({ variant: e }) {}//#endregion//#region src/react/evilcharts/registry/charts/recharts-bar-chart.tsx-var f6 = 2, VVe = "loading", HVe = 2e3, UVe = "evil-stacked", WVe = .5, GVe = .05, KVe = [+var u6 = 2, VVe = "loading", HVe = 2e3, UVe = "evil-stacked", WVe = .5, GVe = .05, KVe = [0,.7,.5,1-], p6 = (0, B.createContext)(null);-function m6() {- let e = (0, B.use)(p6);+], d6 = (0, B.createContext)(null);+function f6() {+ let e = (0, B.use)(d6);if (!e) throw Error("Bar chart parts (<Bar />, <XAxis />, …) must be used within <EvilBarChart />");return e;}-function h6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = f6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {+function p6({ config: e, data: t, children: n, className: r, chartProps: i, stackType: a = "default", layout: o = "vertical", barRadius: s = u6, animationType: c = "left-to-right", barGap: l, barCategoryGap: u, backgroundVariant: d, defaultSelectedDataKey: f = null, onSelectionChange: p, isLoading: m = !1, loadingBars: h, xDataKey: g }) {let _ = (0, B.useId)().replace(/:/g, ""), [v] = (0, B.useState)(() => Date.now()), [y, b] = (0, B.useState)(f), [x, S] = (0, B.useState)(!1), { loadingData: C, onShimmerExit: w } = dHe(m, h), { visibleData: T, brushProps: E } = zVe({ data: t }), D = (0, B.useMemo)(() => {- let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === c6), r = (0, B.isValidElement)(t) ? t.props : {};+ let e = B.Children.toArray(n), t = e.find((e) => (0, B.isValidElement)(e) && e.type === o6), r = (0, B.isValidElement)(t) ? t.props : {};return {slot: {present: (0, B.isValidElement)(t),@@ -71664,7 +71655,7 @@ function h6({ config: e, data: t, children: n, className: r, chartProps: i, stacformatLabel: r.formatLabel,onChange: r.onChange},- chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === c6))+ chartChildren: e.filter((e) => !((0, B.isValidElement)(e) && e.type === o6))};}, [n]), O = D.slot.present, k = a === "stacked" || a === "percent", A = o === "horizontal", j = O && !m ? T : t, M = (0, B.useCallback)((e) => {b(e), p?.(e);@@ -71693,9 +71684,9 @@ function h6({ config: e, data: t, children: n, className: r, chartProps: i, stacM,x]);- return /* @__PURE__ */ (0, V.jsx)(p6, {+ return /* @__PURE__ */ (0, V.jsx)(d6, {value: N,- children: /* @__PURE__ */ (0, V.jsxs)($3, {+ children: /* @__PURE__ */ (0, V.jsxs)(Z3, {className: r,config: e,footer: O && !m && /* @__PURE__ */ (0, V.jsx)(LVe, {@@ -71714,7 +71705,7 @@ function h6({ config: e, data: t, children: n, className: r, chartProps: i, stacE.onChange(e), D.slot.onChange?.(e);}}),- children: [/* @__PURE__ */ (0, V.jsx)(e6, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(z3, {+ children: [/* @__PURE__ */ (0, V.jsx)(Q3, { isLoading: m }), /* @__PURE__ */ (0, V.jsxs)(L3, {id: _,accessibilityLayer: !0,layout: A ? "vertical" : "horizontal",@@ -71726,8 +71717,8 @@ function h6({ config: e, data: t, children: n, className: r, chartProps: i, staconMouseLeave: () => S(!1),...i,children: [- d && /* @__PURE__ */ (0, V.jsx)(d6, { variant: d }),- /* @__PURE__ */ (0, V.jsx)(C2, { color: "white" }),+ d && /* @__PURE__ */ (0, V.jsx)(l6, { variant: d }),+ /* @__PURE__ */ (0, V.jsx)(x2, { color: "white" }),D.chartChildren,m && /* @__PURE__ */ (0, V.jsx)(fHe, {chartId: _,@@ -71739,7 +71730,7 @@ function h6({ config: e, data: t, children: n, className: r, chartProps: i, stac});}function qVe({ dataKey: e, variant: t = "default", radius: n, animationType: r, isClickable: i = !1, enableHoverHighlight: a = !1, glowing: o = !1, bufferBar: s = !1, barProps: c }) {- let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = m6(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();+ let { config: l, isStacked: u, isHorizontal: d, isLoading: f, barRadius: p, animationType: m, introStartedAt: h, dataLength: g, selectedDataKey: _, selectDataKey: v, isMouseInChart: y } = f6(), b = (0, B.useId)().replace(/:/g, ""), x = Xf();if (f) return null;let S = n ?? p, C = _ === e, w = x ? "none" : r ?? m, T = {id: b,@@ -71759,19 +71750,19 @@ function qVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,i && v(C ? null : e);}};- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(j4, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(k4, {dataKey: e,stackId: u ? UVe : void 0,fill: `url(#${b}-colors-${e})`,radius: S,isAnimationActive: !1,style: i || a ? { cursor: "pointer" } : void 0,- shape: (e) => /* @__PURE__ */ (0, V.jsx)(g6, {+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(m6, {...e,...T,animationType: w}),- activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(g6, {+ activeBar: (e) => /* @__PURE__ */ (0, V.jsx)(m6, {...e,...T,animationType: "none"@@ -71816,8 +71807,8 @@ function qVe({ dataKey: e, variant: t = "default", radius: n, animationType: r,] })] });}function JVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, type: i, ...a }) {- let { isLoading: o, isHorizontal: s } = m6();- return o ? null : /* @__PURE__ */ (0, V.jsx)(z4, {+ let { isLoading: o, isHorizontal: s } = f6();+ return o ? null : /* @__PURE__ */ (0, V.jsx)(L4, {tickLine: e,axisLine: t,tickMargin: n,@@ -71827,8 +71818,8 @@ function JVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap});}function YVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap: r = 8, width: i = "auto", type: a, ...o }) {- let { isLoading: s, isHorizontal: c } = m6();- return s ? null : /* @__PURE__ */ (0, V.jsx)(W4, {+ let { isLoading: s, isHorizontal: c } = f6();+ return s ? null : /* @__PURE__ */ (0, V.jsx)(H4, {tickLine: e,axisLine: t,tickMargin: n,@@ -71839,8 +71830,8 @@ function YVe({ tickLine: e = !1, axisLine: t = !1, tickMargin: n = 8, minTickGap});}function XVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {- let { isHorizontal: i } = m6();- return /* @__PURE__ */ (0, V.jsx)(B2, {+ let { isHorizontal: i } = f6();+ return /* @__PURE__ */ (0, V.jsx)(R2, {strokeDasharray: e,vertical: t ?? i,horizontal: n ?? !i,@@ -71848,11 +71839,11 @@ function XVe({ strokeDasharray: e = "3 3", vertical: t, horizontal: n, ...r }) {});}function ZVe({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = m6();- return r ? null : /* @__PURE__ */ (0, V.jsx)(a6, {+ let { isLoading: r, selectedDataKey: i } = f6();+ return r ? null : /* @__PURE__ */ (0, V.jsx)(r6, {cursor: !1,defaultIndex: n,- content: /* @__PURE__ */ (0, V.jsx)(i6, {+ content: /* @__PURE__ */ (0, V.jsx)(n6, {selected: i,roundness: t,variant: e@@ -71860,11 +71851,11 @@ function ZVe({ variant: e, roundness: t, defaultIndex: n }) {});}function QVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClickable: r = !1 }) {- let { selectedDataKey: i, selectDataKey: a } = m6();- return /* @__PURE__ */ (0, V.jsx)(s6, {+ let { selectedDataKey: i, selectDataKey: a } = f6();+ return /* @__PURE__ */ (0, V.jsx)(a6, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, V.jsx)(o6, {+ content: /* @__PURE__ */ (0, V.jsx)(i6, {selected: i,onSelectChange: a,isClickable: r,@@ -71872,7 +71863,7 @@ function QVe({ variant: e, align: t = "right", verticalAlign: n = "top", isClick})});}-var g6 = (e) => {+var m6 = (e) => {let { x: t = 0, y: n = 0, width: r = 0, height: i = 0, id: a, dataKey: o, variant: s, barRadius: c, glowing: l, bufferBar: u, isClickable: d, enableHoverHighlight: f, isMouseInChart: p, isHorizontal: m = !1, animationType: h = "none", introStartedAt: g = 0, selectedDataKey: _, isActive: v, dataLength: y = 0, onClick: b } = e, x = typeof e.index == "number" ? e.index : -1, S = u && y > 0 && x === y - 1, C = s === "stripped", w = $Ve(h, x, y, m, g), T = S ? `url(#${a}-buffer-hatched-${o})` : eHe(s, a, o), E = l ? `url(#${a}-bar-glow-${o})` : void 0, D = tHe({isClickable: d,selectedDataKey: _,@@ -71885,7 +71876,7 @@ var g6 = (e) => {c,0,0- ] : c, A = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(JG, {+ ] : c, A = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(qG, {x: t,y: n,width: r,@@ -71896,7 +71887,7 @@ var g6 = (e) => {filter: E,stroke: S ? `url(#${a}-colors-${o})` : void 0,strokeWidth: S ? 1 : void 0- }), C && /* @__PURE__ */ (0, V.jsx)(JG, {+ }), C && /* @__PURE__ */ (0, V.jsx)(qG, {x: t,y: n - 4,width: r,@@ -71907,7 +71898,7 @@ var g6 = (e) => {return /* @__PURE__ */ (0, V.jsxs)("g", {style: O,onClick: b,- children: [/* @__PURE__ */ (0, V.jsx)(JG, {+ children: [/* @__PURE__ */ (0, V.jsx)(qG, {...e,fill: "transparent"}), w ? /* @__PURE__ */ (0, V.jsx)(ep.g, {@@ -71964,7 +71955,7 @@ var g6 = (e) => {let o = e && t !== null ? t === null || t === n ? 1 : .15 : 1;return r && i ? a ? o : o * .3 : o;}, nHe = ({ id: e, dataKey: t, config: n }) => {- let r = r6(n[t] ?? {});+ let r = t6(n[t] ?? {});return /* @__PURE__ */ (0, V.jsx)("linearGradient", {id: `${e}-colors-${t}`,x1: "0",@@ -72068,7 +72059,7 @@ var g6 = (e) => {})})] }), aHe = ({ id: e, dataKey: t, config: n }) => {- let r = r6(n[t] ?? {});+ let r = t6(n[t] ?? {});return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("linearGradient", {id: `${e}-duotone-mask-gradient-${t}`,@@ -72136,7 +72127,7 @@ var g6 = (e) => {})] });}, oHe = ({ id: e, dataKey: t, config: n }) => {- let r = r6(n[t] ?? {});+ let r = t6(n[t] ?? {});return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("linearGradient", {id: `${e}-duotone-reverse-mask-gradient-${t}`,@@ -72313,11 +72304,11 @@ function dHe(e, t = 12) {onShimmerExit: i};}-var fHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(j4, {+var fHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(k4, {dataKey: VVe,fill: "currentColor",fillOpacity: .15,- radius: f6,+ radius: u6,isAnimationActive: !1,legendType: "none",style: { mask: `url(#${e}-loading-mask)` }@@ -72378,11 +72369,11 @@ var fHe = ({ chartId: e, onShimmerExit: t }) => /* @__PURE__ */ (0, V.jsxs)(V.Fr})] });};-h6.Bar = qVe, h6.XAxis = JVe, h6.YAxis = YVe, h6.Grid = XVe, h6.Tooltip = ZVe, h6.Legend = QVe, h6.Brush = c6;+p6.Bar = qVe, p6.XAxis = JVe, p6.YAxis = YVe, p6.Grid = XVe, p6.Tooltip = ZVe, p6.Legend = QVe, p6.Brush = o6;//#endregion//#region src/react/charts/chart-card.tsx-var _6 = `${DE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;-function v6({ title: e, figure: t, note: n }) {+var h6 = `${CE({ radius: "chart" })} flex flex-col gap-4 max-sm:p-4`;+function g6({ title: e, figure: t, note: n }) {return /* @__PURE__ */ (0, V.jsxs)("header", {className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",children: [/* @__PURE__ */ (0, V.jsxs)("span", {@@ -72400,24 +72391,24 @@ function v6({ title: e, figure: t, note: n }) {})]});}-var y6 = [+var _6 = ["var(--color-chart-1)","var(--color-chart-2)","var(--color-chart-3)","var(--color-chart-4)","var(--color-chart-5)","var(--color-chart-6)"-], b6 = (e) => ({ light: [e] }), x6 = (e) => `s${e}`;+], v6 = (e) => ({ light: [e] }), y6 = (e) => `s${e}`;function mHe(e) {- return Object.fromEntries(e.map((e, t) => [x6(t), {+ return Object.fromEntries(e.map((e, t) => [y6(t), {label: e,- colors: b6(y6[t % y6.length])+ colors: v6(_6[t % _6.length])}]));}//#endregion//#region src/react/charts/chart-tip.tsx-var S6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";-function C6({ swatch: e, name: t, value: n }) {+var b6 = "flex min-w-32 flex-col gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl";+function x6({ swatch: e, name: t, value: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex w-full items-center gap-2",children: [e, /* @__PURE__ */ (0, V.jsxs)("div", {@@ -72432,31 +72423,31 @@ function C6({ swatch: e, name: t, value: n }) {})]});}-var w6 = "size-2.5 shrink-0 rounded-xs";+var S6 = "size-2.5 shrink-0 rounded-xs";function hHe({ active: e, payload: t, label: n, nameKey: r, valueKey: i, hideLabel: a }) {- let { config: o } = Q3(), s = (t ?? []).filter((e) => e.type !== "none");+ let { config: o } = X3(), s = (t ?? []).filter((e) => e.type !== "none");if (!e || !s.length) return /* @__PURE__ */ (0, V.jsx)("span", { className: "p-4" });let c = a || typeof n != "string" ? null : o[n]?.label ?? n;return /* @__PURE__ */ (0, V.jsxs)("div", {- className: S6,+ className: b6,children: [c ? /* @__PURE__ */ (0, V.jsx)("div", {className: "font-medium text-foreground",children: c}) : null, s.map((e, t) => {- let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = n6(o, e, a), c = i ? n[i] : e.value;- return /* @__PURE__ */ (0, V.jsx)(C6, {+ let n = e.payload ?? {}, a = `${(r ? n[r] : void 0) ?? e.name ?? e.dataKey ?? "value"}`, s = e6(o, e, a), c = i ? n[i] : e.value;+ return /* @__PURE__ */ (0, V.jsx)(x6, {name: s?.label ?? e.name,value: Number(c ?? 0),swatch: /* @__PURE__ */ (0, V.jsx)("i", {- className: w6,+ className: S6,style: { background: `var(--color-${a}-0)` }})}, a + t);})]});}-function T6({ nameKey: e, valueKey: t, hideLabel: n }) {- return /* @__PURE__ */ (0, V.jsx)(a6, {+function C6({ nameKey: e, valueKey: t, hideLabel: n }) {+ return /* @__PURE__ */ (0, V.jsx)(r6, {cursor: !1,content: /* @__PURE__ */ (0, V.jsx)(hHe, {nameKey: e,@@ -72467,12 +72458,12 @@ function T6({ nameKey: e, valueKey: t, hideLabel: n }) {}//#endregion//#region src/react/charts/bar-card.tsx-var E6 = [0, (e) => e * 1.2], D6 = (e) => ({+var w6 = [0, (e) => e * 1.2], T6 = (e) => ({position: e,className: "fill-text-secondary",formatter: (e) => Number(e).toLocaleString()});-function O6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {+function E6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertical" }) {let o = r.filter((e) => Number.isFinite(e.value) && e.value >= 0).map((e) => ({name: e.name,value: e.value@@ -72480,53 +72471,53 @@ function O6({ title: e, unit: t, series: n, rows: r, color: i, layout: a = "vertif (!s) return null;let c = a === "horizontal";return /* @__PURE__ */ (0, V.jsxs)("section", {- className: _6,+ className: h6,"aria-label": e,- children: [/* @__PURE__ */ (0, V.jsx)(v6, {+ children: [/* @__PURE__ */ (0, V.jsx)(g6, {title: e,figure: s.toLocaleString(),note: t- }), /* @__PURE__ */ (0, V.jsxs)(h6, {+ }), /* @__PURE__ */ (0, V.jsxs)(p6, {data: o,config: { value: {label: n,- colors: b6(i)+ colors: v6(i)} },layout: a,barRadius: 4,className: c ? "aspect-auto h-64 flex-none text-text-secondary" : "aspect-auto h-56 flex-none text-text-secondary",children: [- /* @__PURE__ */ (0, V.jsx)(h6.Grid, {}),- c ? /* @__PURE__ */ (0, V.jsx)(h6.YAxis, {+ /* @__PURE__ */ (0, V.jsx)(p6.Grid, {}),+ c ? /* @__PURE__ */ (0, V.jsx)(p6.YAxis, {dataKey: "name",interval: 0- }) : /* @__PURE__ */ (0, V.jsx)(h6.XAxis, {+ }) : /* @__PURE__ */ (0, V.jsx)(p6.XAxis, {dataKey: "name",interval: 0}),- c ? /* @__PURE__ */ (0, V.jsx)(h6.XAxis, {+ c ? /* @__PURE__ */ (0, V.jsx)(p6.XAxis, {hide: !0,- domain: E6- }) : /* @__PURE__ */ (0, V.jsx)(h6.YAxis, {+ domain: w6+ }) : /* @__PURE__ */ (0, V.jsx)(p6.YAxis, {hide: !0,- domain: E6+ domain: w6}),- /* @__PURE__ */ (0, V.jsx)(h6.Bar, {+ /* @__PURE__ */ (0, V.jsx)(p6.Bar, {dataKey: "value",enableHoverHighlight: !0,barProps: {dataKey: "value",- label: D6(c ? "right" : "top")+ label: T6(c ? "right" : "top")}}),- /* @__PURE__ */ (0, V.jsx)(T6, {})+ /* @__PURE__ */ (0, V.jsx)(C6, {})]})]});}//#endregion//#region src/react/charts/heat.ts-var k6 = [+var D6 = ["周一","周二","周三",@@ -72534,7 +72525,7 @@ var k6 = ["周五","周六","周日"-], A6 = (e, t) => e ? Math.max(.12, e / t) : 0;+], O6 = (e, t) => e ? Math.max(.12, e / t) : 0;function gHe(e) {let t = Array.from({ length: 7 }, () => Array(24).fill(0));for (let n of e?.hours || []) {@@ -72545,9 +72536,9 @@ function gHe(e) {return {cells: t.flatMap((e, t) => e.map((e, n) => ({key: `${t}-${n}`,- label: `${k6[t]} ${n}:00`,+ label: `${D6[t]} ${n}:00`,count: e,- share: A6(e, r)+ share: O6(e, r)}))),total: n.reduce((e, t) => e + t, 0)};@@ -72570,7 +72561,7 @@ function _He(e) {key: r,label: r,count: s,- share: A6(s, o)+ share: O6(s, o)};});return {@@ -72582,7 +72573,7 @@ function _He(e) {}//#endregion//#region src/react/charts/heat-card.tsx-var j6 = 14, M6 = 17, N6 = {+var k6 = 14, A6 = 17, j6 = {4: {fill: "fill-chart-4",dot: "bg-chart-4"@@ -72603,30 +72594,30 @@ function yHe({ cell: e, series: t, tone: n, left: r, top: i, anchor: a }) {left: `${r}%`,top: `${i}%`},- className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${S6} ${vHe[a]}`,+ className: `pointer-events-none absolute z-10 -mt-2 -translate-y-full ${b6} ${vHe[a]}`,children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "font-medium text-foreground",children: e.label- }), /* @__PURE__ */ (0, V.jsx)(C6, {+ }), /* @__PURE__ */ (0, V.jsx)(x6, {name: t,value: e.count,- swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${w6} ${N6[n].dot}` })+ swatch: /* @__PURE__ */ (0, V.jsx)("i", { className: `${S6} ${j6[n].dot}` })})]});}-function P6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {- let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * M6, m = f + a * M6, h = (e) => ({- x: d + e % i * M6,- y: f + Math.floor(e / i) * M6- }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + j6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {+function M6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis: o, footer: s, tone: c }) {+ let [l, u] = (0, B.useState)(-1), d = o ? 30 : 0, f = o ? 18 : 0, p = d + i * A6, m = f + a * A6, h = (e) => ({+ x: d + e % i * A6,+ y: f + Math.floor(e / i) * A6+ }), g = n[l], _ = g ? h(l) : null, v = _ ? (_.x + k6 / 2) / p : 0, y = v < .1 ? "start" : v > .9 ? "end" : "center", b = _ ? {start: _.x,- center: _.x + j6 / 2,- end: _.x + j6+ center: _.x + k6 / 2,+ end: _.x + k6}[y] : 0;return /* @__PURE__ */ (0, V.jsxs)("section", {- className: _6,+ className: h6,children: [- /* @__PURE__ */ (0, V.jsx)(v6, {+ /* @__PURE__ */ (0, V.jsx)(g6, {title: e,figure: (g ? g.count : r).toLocaleString(),note: g ? g.label : t.unit@@ -72649,12 +72640,12 @@ function P6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:"aria-label": `${e.label},${e.count} ${t.cellUnit}`,x: r,y: i,- width: j6,- height: j6,+ width: k6,+ height: k6,rx: 3,fillOpacity: e.share || 1,opacity: l >= 0 && l !== n ? .4 : 1,- className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${N6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",+ className: e.share ? `outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring ${j6[c].fill}` : "fill-chart-track outline-none transition-opacity duration-200 focus-visible:stroke-border-focus-ring",onPointerEnter: () => u(n),onFocus: () => u(n),onBlur: () => u(-1)@@ -72677,24 +72668,24 @@ function P6({ title: e, words: t, cells: n, total: r, columns: i, rows: a, axis:]});}-var bHe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [k6.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {+var bHe = /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [D6.map((e, t) => /* @__PURE__ */ (0, V.jsx)("text", {x: 0,- y: 18 + t * M6 + 7,+ y: 18 + t * A6 + 7,dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",children: e}, e)), Array.from({ length: 24 }, (e, t) => t % 2 ? null : /* @__PURE__ */ (0, V.jsx)("text", {- x: 30 + t * M6,+ x: 30 + t * A6,y: 8,dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",children: t}, t))] });-function F6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {+function N6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a }) {let o = gHe(e), s = _He(e);return s.cells.length ? /* @__PURE__ */ (0, V.jsxs)("div", {className: "inline-grid w-full items-start gap-5 lg:grid-cols-2",- children: [/* @__PURE__ */ (0, V.jsx)(P6, {+ children: [/* @__PURE__ */ (0, V.jsx)(M6, {title: t,words: r,tone: i,@@ -72704,7 +72695,7 @@ function F6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: arows: 7,axis: bHe,footer: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: "星期 × 小时" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e?.timezone || "UTC+08:00" })] })- }), /* @__PURE__ */ (0, V.jsx)(P6, {+ }), /* @__PURE__ */ (0, V.jsx)(M6, {title: n,words: r,tone: i,@@ -72715,7 +72706,7 @@ function F6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: afooter: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("span", { children: s.start }), /* @__PURE__ */ (0, V.jsx)("span", { children: s.end })] })})]}) : a ? /* @__PURE__ */ (0, V.jsxs)("section", {- className: _6,+ className: h6,children: [/* @__PURE__ */ (0, V.jsx)("h3", {className: "text-title-2-medium text-text-primary",children: t@@ -72727,7 +72718,7 @@ function F6({ activity: e, title: t, dailyTitle: n, words: r, tone: i, empty: a}//#endregion//#region src/react/components/expandable-ranking.tsx-function I6({ children: e, className: t = "", previewCount: n = 10 }) {+function P6({ children: e, className: t = "", previewCount: n = 10 }) {let r = (0, B.useId)(), i = (0, B.useRef)(null), [a, o] = (0, B.useState)(!1), [s, c] = (0, B.useState)(!1), l = B.Children.toArray(e), u = l.length > n;(0, B.useLayoutEffect)(() => {let e = i.current;@@ -72768,19 +72759,19 @@ function I6({ children: e, className: t = "", previewCount: n = 10 }) {onClick: () => {c(!0), o((e) => !e);},- children: /* @__PURE__ */ (0, V.jsx)(dT, { "aria-hidden": !0 })+ children: /* @__PURE__ */ (0, V.jsx)(sT, { "aria-hidden": !0 })}) : null]});}//#endregion//#region src/react/evilcharts/registry/charts/recharts-radial-chart.tsx-var xHe = "30%", SHe = "100%", L6 = 5, R6 = 14, CHe = 5, z6 = 1500, B6 = (0, B.createContext)(null);-function V6() {- let e = (0, B.use)(B6);+var xHe = "30%", SHe = "100%", F6 = 5, I6 = 14, CHe = 5, L6 = 1500, R6 = (0, B.createContext)(null);+function z6() {+ let e = (0, B.use)(R6);if (!e) throw Error("Radial chart parts (<RadialBar />, <Tooltip />, …) must be used within <EvilRadialChart />");return e;}-function H6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = xHe, outerRadius: l = SHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {+function B6({ config: e, data: t, nameKey: n, children: r, className: i, chartProps: a, variant: o = "full", max: s, innerRadius: c = xHe, outerRadius: l = SHe, defaultSelectedDataKey: u = null, onSelectionChange: d, isLoading: f = !1, backgroundVariant: p }) {let m = (0, B.useId)().replace(/:/g, ""), [h, g] = (0, B.useState)(u), _ = AHe(f), v = DHe(o), y = (0, B.useCallback)((e, t) => {g(e), d?.(e === null ? null : {dataKey: e,@@ -72808,12 +72799,12 @@ function H6({ config: e, data: t, nameKey: n, children: r, className: i, chartPrh,y]);- return /* @__PURE__ */ (0, V.jsx)(B6, {+ return /* @__PURE__ */ (0, V.jsx)(R6, {value: x,- children: /* @__PURE__ */ (0, V.jsxs)($3, {+ children: /* @__PURE__ */ (0, V.jsxs)(Z3, {className: i,config: e,- children: [/* @__PURE__ */ (0, V.jsx)(e6, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(EVe, {+ children: [/* @__PURE__ */ (0, V.jsx)(Q3, { isLoading: f }), /* @__PURE__ */ (0, V.jsxs)(EVe, {id: m,data: f ? _ : b,innerRadius: c,@@ -72824,13 +72815,13 @@ function H6({ config: e, data: t, nameKey: n, children: r, className: i, chartPrcy: v.cy,...a,children: [- s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(G1, {+ s != null && s > 0 && /* @__PURE__ */ (0, V.jsx)(U1, {type: "number",domain: [0, s],tick: !1,axisLine: !1}),- p && /* @__PURE__ */ (0, V.jsx)(d6, { variant: p }),+ p && /* @__PURE__ */ (0, V.jsx)(l6, { variant: p }),r,f && /* @__PURE__ */ (0, V.jsx)(jHe, {}),/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)(OHe, {@@ -72842,9 +72833,9 @@ function H6({ config: e, data: t, nameKey: n, children: r, className: i, chartPr})});}-function wHe({ dataKey: e, cornerRadius: t = L6, barSize: n = R6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {- let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = V6();- return s ? null : /* @__PURE__ */ (0, V.jsx)(m2, {+function wHe({ dataKey: e, cornerRadius: t = F6, barSize: n = I6, showBackground: r = !0, isClickable: i = !1, radialBarProps: a }) {+ let { nameKey: o, isLoading: s, selectedBar: c, selectBar: l } = z6();+ return s ? null : /* @__PURE__ */ (0, V.jsx)(f2, {dataKey: e,cornerRadius: t,barSize: n,@@ -72858,7 +72849,7 @@ function wHe({ dataKey: e, cornerRadius: t = L6, barSize: n = R6, showBackground},shape: (e) => {let t = e[o], n = c === null || c === t;- return /* @__PURE__ */ (0, V.jsx)(aK, {+ return /* @__PURE__ */ (0, V.jsx)(iK, {...e,opacity: i && !n ? .15 : 1,className: "transition-opacity duration-200"@@ -72868,11 +72859,11 @@ function wHe({ dataKey: e, cornerRadius: t = L6, barSize: n = R6, showBackground});}function THe({ variant: e, roundness: t, defaultIndex: n }) {- let { nameKey: r, isLoading: i } = V6();- return i ? null : /* @__PURE__ */ (0, V.jsx)(a6, {+ let { nameKey: r, isLoading: i } = z6();+ return i ? null : /* @__PURE__ */ (0, V.jsx)(r6, {defaultIndex: n,cursor: !1,- content: /* @__PURE__ */ (0, V.jsx)(i6, {+ content: /* @__PURE__ */ (0, V.jsx)(n6, {nameKey: r,hideLabel: !0,roundness: t,@@ -72881,11 +72872,11 @@ function THe({ variant: e, roundness: t, defaultIndex: n }) {});}function EHe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = V6();- return a ? null : /* @__PURE__ */ (0, V.jsx)(s6, {+ let { nameKey: i, isLoading: a, selectedBar: o, selectBar: s } = z6();+ return a ? null : /* @__PURE__ */ (0, V.jsx)(a6, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, V.jsx)(o6, {+ content: /* @__PURE__ */ (0, V.jsx)(i6, {selected: o,onSelectChange: s,isClickable: r,@@ -72911,7 +72902,7 @@ function DHe(e) {}}var OHe = ({ config: e, chartId: t }) => /* @__PURE__ */ (0, V.jsx)(V.Fragment, { children: Object.entries(e).map(([e, n]) => {- let r = r6(n);+ let r = t6(n);return /* @__PURE__ */ (0, V.jsx)("linearGradient", {id: `${t}-radial-colors-${e}`,x1: "0",@@ -72945,25 +72936,25 @@ function AHe(e) {if (!e) return;let t = setInterval(() => {n((e) => e + 1);- }, z6);+ }, L6);return () => clearInterval(t);}, [e]), (0, B.useMemo)(() => kHe(), [t]);}-var jHe = () => /* @__PURE__ */ (0, V.jsx)(m2, {+var jHe = () => /* @__PURE__ */ (0, V.jsx)(f2, {dataKey: "value",- cornerRadius: L6,- barSize: R6,+ cornerRadius: F6,+ barSize: I6,background: !0,isAnimationActive: !0,- animationDuration: z6,+ animationDuration: L6,animationEasing: "ease-in-out",- shape: (e) => /* @__PURE__ */ (0, V.jsx)(aK, {+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(iK, {...e,fill: "currentColor",fillOpacity: .25})});-H6.RadialBar = wHe, H6.Tooltip = THe, H6.Legend = EHe;+B6.RadialBar = wHe, B6.Tooltip = THe, B6.Legend = EHe;//#endregion//#region src/react/stats/radial-card.tsxvar MHe = [@@ -72981,15 +72972,15 @@ var MHe = ["aria-pressed:bg-chart-5/10 aria-pressed:ring-chart-5","aria-pressed:bg-chart-6/10 aria-pressed:ring-chart-6"];-function U6({ title: e, rows: t, unit: n = "个视频" }) {+function V6({ title: e, rows: t, unit: n = "个视频" }) {let [r, i] = (0, B.useState)(-1), [a, o] = (0, B.useState)(-1), s = t.filter((e) => Number.isFinite(e.value) && e.value >= 0);if (!s.length) return null;let c = a >= 0 ? a : r, l = s.reduce((e, t) => e + t.value, 0), u = s[c], d = (e) => i((t) => t === e ? -1 : e), f = s.map((e, t) => ({- slice: x6(t),+ slice: y6(t),value: e.value}));return /* @__PURE__ */ (0, V.jsxs)("section", {- className: _6,+ className: h6,children: [/* @__PURE__ */ (0, V.jsxs)("header", {className: "flex flex-wrap items-end justify-between gap-x-4 gap-y-1",@@ -73011,18 +73002,18 @@ function U6({ title: e, rows: t, unit: n = "个视频" }) {role: "img","aria-label": e,onPointerLeave: () => o(-1),- children: /* @__PURE__ */ (0, V.jsxs)(H6, {+ children: /* @__PURE__ */ (0, V.jsxs)(B6, {data: f,nameKey: "slice",config: mHe(s.map((e) => e.name)),- max: mbe(s.map((e) => e.value)),+ max: pbe(s.map((e) => e.value)),innerRadius: "22%",className: "aspect-auto h-75 max-sm:h-65",- children: [/* @__PURE__ */ (0, V.jsx)(H6.RadialBar, {+ children: [/* @__PURE__ */ (0, V.jsx)(B6.RadialBar, {dataKey: "value",- barSize: hbe(s.length),+ barSize: mbe(s.length),radialBarProps: {- shape: (e) => /* @__PURE__ */ (0, V.jsx)(aK, {+ shape: (e) => /* @__PURE__ */ (0, V.jsx)(iK, {...e,opacity: c >= 0 && c !== e.index ? .3 : 1,className: "cursor-pointer transition-opacity duration-200"@@ -73030,7 +73021,7 @@ function U6({ title: e, rows: t, unit: n = "个视频" }) {onClick: (e, t) => d(t),onMouseEnter: (e, t) => o(t)}- }), /* @__PURE__ */ (0, V.jsx)(T6, {+ }), /* @__PURE__ */ (0, V.jsx)(C6, {nameKey: "slice",hideLabel: !0})]@@ -73071,8 +73062,8 @@ function U6({ title: e, rows: t, unit: n = "个视频" }) {}//#endregion//#region src/react/stats/stats-page.tsx-var PHe = 10, W6 = y6[5], FHe = y6[4], IHe = `${DE()} flex flex-col gap-4`, LHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", RHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", zHe = "开始播放后,这里会显示最近的真实观看证据。", BHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", VHe = "添加媒体文件夹后,这里会显示存储空间。";-function G6({ term: e, value: t }) {+var PHe = 10, H6 = _6[5], FHe = _6[4], IHe = `${CE()} flex flex-col gap-4`, LHe = "添加媒体文件夹或关注来源后,这里会显示馆藏统计。", RHe = "补全资料或添加标签后,这里会显示馆藏中的内容标签。", zHe = "开始播放后,这里会显示最近的真实观看证据。", BHe = "刮削或手动打标之后,这里会显示每个来源覆盖了多少视频。", VHe = "添加媒体文件夹后,这里会显示存储空间。";+function U6({ term: e, value: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-h-16 min-w-0 flex-col gap-1.5 rounded-2lg bg-background-primary-default p-3",children: [/* @__PURE__ */ (0, V.jsx)("span", {@@ -73084,7 +73075,7 @@ function G6({ term: e, value: t }) {})]});}-function K6({ term: e, value: t, total: n }) {+function W6({ term: e, value: t, total: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",children: [/* @__PURE__ */ (0, V.jsxs)("p", {@@ -73093,17 +73084,17 @@ function K6({ term: e, value: t, total: n }) {className: "tabular-nums",children: [t.toLocaleString(), /* @__PURE__ */ (0, V.jsxs)("span", {className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [IR(t, n), "%"]+ children: [FR(t, n), "%"]})]})]- }), /* @__PURE__ */ (0, V.jsx)(ME, {+ }), /* @__PURE__ */ (0, V.jsx)(OE, {label: `${e}:${t.toLocaleString()} / ${n.toLocaleString()}`,value: t,max: Math.max(n, 1)})]});}-function q6({ term: e, figure: t, unit: n }) {+function G6({ term: e, figure: t, unit: n }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-64 md:pr-6 md:pb-0",children: [@@ -73122,7 +73113,7 @@ function q6({ term: e, figure: t, unit: n }) {]});}-function J6({ headline: e, children: t }) {+function K6({ headline: e, children: t }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: `${IHe} md:flex-row md:gap-6`,children: [e, /* @__PURE__ */ (0, V.jsx)("div", {@@ -73136,14 +73127,14 @@ function HHe({ data: e, configurable: t, openMediaSettings: n }) {className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "inline-grid w-full gap-5 md:grid-cols-2",- children: [/* @__PURE__ */ (0, V.jsx)(U6, {+ children: [/* @__PURE__ */ (0, V.jsx)(V6, {title: "网盘与本地",rows: e.by_loc.map((e) => ({name: se[e.k] ?? e.k,value: e.videos,detail: pe(e.bytes)}))- }), /* @__PURE__ */ (0, V.jsx)(U6, {+ }), /* @__PURE__ */ (0, V.jsx)(V6, {title: "媒体库",rows: e.by_library.map((e) => ({name: e.name,@@ -73154,39 +73145,39 @@ function HHe({ data: e, configurable: t, openMediaSettings: n }) {}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "inline-grid w-full gap-5 md:grid-cols-2 xl:grid-cols-3",children: [- /* @__PURE__ */ (0, V.jsx)(O6, {+ /* @__PURE__ */ (0, V.jsx)(E6, {title: "时长",unit: "个视频",series: "视频",- color: W6,- rows: ybe(e.by_length)+ color: H6,+ rows: vbe(e.by_length)}),- /* @__PURE__ */ (0, V.jsx)(O6, {+ /* @__PURE__ */ (0, V.jsx)(E6, {title: "画质",unit: "个视频",series: "视频",- color: W6,- rows: zR(e.by_quality)+ color: H6,+ rows: RR(e.by_quality)}),- /* @__PURE__ */ (0, V.jsx)(O6, {+ /* @__PURE__ */ (0, V.jsx)(E6, {title: "文件类型",unit: "个条目",series: "条目",- color: W6,+ color: H6,layout: "horizontal",- rows: _be(e.by_medium)+ rows: gbe(e.by_medium)})]})]- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: Sae,+ icon: bae,title: "还没有视频",actions: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [t ? /* @__PURE__ */ (0, V.jsx)(J, {size: "small",onClick: n,children: "添加媒体文件夹"- }) : null, /* @__PURE__ */ (0, V.jsx)(EE, {+ }) : null, /* @__PURE__ */ (0, V.jsx)(SE, {variant: "secondary",href: "/follow-manage?tab=add",size: "small",@@ -73196,7 +73187,7 @@ function HHe({ data: e, configurable: t, openMediaSettings: n }) {});}function UHe({ data: e }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(F6, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(N6, {activity: e.play_activity,title: "播放时间",dailyTitle: "每日播放",@@ -73206,12 +73197,12 @@ function UHe({ data: e }) {cellUnit: "个作品"},tone: 5- }), /* @__PURE__ */ (0, V.jsx)(O6, {+ }), /* @__PURE__ */ (0, V.jsx)(E6, {title: "播放次数",unit: "个作品",series: "作品",color: FHe,- rows: xbe(e.replays)+ rows: bbe(e.replays)})] });}function WHe({ attribution: e }) {@@ -73219,27 +73210,27 @@ function WHe({ attribution: e }) {return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col",children: [- /* @__PURE__ */ (0, V.jsx)(K6, {+ /* @__PURE__ */ (0, V.jsx)(W6, {term: "有创作者",value: e.creator,total: t}),- /* @__PURE__ */ (0, V.jsx)(K6, {+ /* @__PURE__ */ (0, V.jsx)(W6, {term: "有番号",value: e.code,total: t}),- /* @__PURE__ */ (0, V.jsx)(K6, {+ /* @__PURE__ */ (0, V.jsx)(W6, {term: "有厂牌",value: e.studio,total: t}),- /* @__PURE__ */ (0, V.jsx)(K6, {+ /* @__PURE__ */ (0, V.jsx)(W6, {term: "已抽帧",value: e.thumb,total: t}),- /* @__PURE__ */ (0, V.jsx)(K6, {+ /* @__PURE__ */ (0, V.jsx)(W6, {term: "已探测时长",value: e.duration,total: t@@ -73264,11 +73255,11 @@ function GHe({ volume: e }) {className: "whitespace-nowrap tabular-nums",children: [pe(n), /* @__PURE__ */ (0, V.jsxs)("span", {className: "ml-1.5 text-caption-1-regular text-text-secondary",- children: [IR(n, t), "%"]+ children: [FR(n, t), "%"]})]})]}),- t == null ? null : /* @__PURE__ */ (0, V.jsx)(ME, {+ t == null ? null : /* @__PURE__ */ (0, V.jsx)(OE, {label: `${e.label}空间使用率`,value: n,max: Math.max(t, 1)@@ -73290,9 +73281,9 @@ function KHe({ volumes: e, configurable: t, openMediaSettings: n }) {return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col",children: e.map((e) => /* @__PURE__ */ (0, V.jsx)(GHe, { volume: e }, `${e.kind}:${e.label}`))- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: CT,+ icon: yT,title: "还没有存储来源",actions: t ? /* @__PURE__ */ (0, V.jsx)(J, {size: "small",@@ -73303,7 +73294,7 @@ function KHe({ volumes: e, configurable: t, openMediaSettings: n }) {});}function qHe({ tags: e, tagLabel: t, onTag: n }) {- return e.length ? /* @__PURE__ */ (0, V.jsx)(I6, {+ return e.length ? /* @__PURE__ */ (0, V.jsx)(P6, {previewCount: PHe,className: "inline-grid w-full gap-x-6 gap-y-1 sm:grid-cols-2",children: e.map((e, r) => /* @__PURE__ */ (0, V.jsx)("li", {@@ -73328,11 +73319,11 @@ function qHe({ tags: e, tagLabel: t, onTag: n }) {]})}, e.k))- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: ET,+ icon: ST,title: "还没有内容标签",- actions: /* @__PURE__ */ (0, V.jsx)(EE, {+ actions: /* @__PURE__ */ (0, V.jsx)(SE, {variant: "secondary",href: "/data-cleanup",size: "small",@@ -73345,7 +73336,7 @@ function JHe({ rows: e }) {return e.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "flex flex-col gap-5",children: e.map((e) => {- let t = LR(e);+ let t = IR(e);return /* @__PURE__ */ (0, V.jsxs)("article", {className: "flex flex-wrap items-center gap-x-6 gap-y-2",children: [/* @__PURE__ */ (0, V.jsxs)("div", {@@ -73353,32 +73344,32 @@ function JHe({ rows: e }) {children: [/* @__PURE__ */ (0, V.jsx)("h3", {className: "min-w-0 text-body-2-medium text-text-primary",children: /* @__PURE__ */ (0, V.jsx)("a", {- href: pbe(e),+ href: fbe(e),"data-middle-truncate": !0,className: "block max-w-full overflow-hidden whitespace-nowrap hover:underline",children: e.name})}), /* @__PURE__ */ (0, V.jsxs)("p", {className: "flex flex-wrap gap-3 text-caption-1-regular text-text-secondary",- children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: fbe(e) })]+ children: [/* @__PURE__ */ (0, V.jsx)("span", { children: e.creator ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: dbe(e) })]})]}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "min-w-0 basis-40",- children: [/* @__PURE__ */ (0, V.jsx)(ME, {+ children: [/* @__PURE__ */ (0, V.jsx)(OE, {label: `真实观看 ${t.toFixed(0)}%`,value: t}), /* @__PURE__ */ (0, V.jsx)("small", {className: "mt-1.5 block text-caption-1-regular text-text-secondary",- children: `真实 ${t.toFixed(0)}% · 到达 ${RR(e).toFixed(0)}%`+ children: `真实 ${t.toFixed(0)}% · 到达 ${LR(e).toFixed(0)}%`})]})]}, `${e.kind}:${e.id}`);})- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: wT,+ icon: bT,title: "还没有观看记录",- actions: /* @__PURE__ */ (0, V.jsx)(EE, {+ actions: /* @__PURE__ */ (0, V.jsx)(SE, {variant: "secondary",href: "/",size: "small",@@ -73406,7 +73397,7 @@ function YHe({ sources: e, videos: t }) {})]})]}),- /* @__PURE__ */ (0, V.jsx)(ME, {+ /* @__PURE__ */ (0, V.jsx)(OE, {label: `${e.k} 覆盖视频`,value: e.assets,max: Math.max(t, 1)@@ -73417,11 +73408,11 @@ function YHe({ sources: e, videos: t }) {})]}, e.k))- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: ET,+ icon: ST,title: "还没有标签来源",- actions: /* @__PURE__ */ (0, V.jsx)(EE, {+ actions: /* @__PURE__ */ (0, V.jsx)(SE, {variant: "secondary",href: "/data-cleanup",size: "small",@@ -73430,14 +73421,14 @@ function YHe({ sources: e, videos: t }) {children: BHe});}-function Y6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {- return /* @__PURE__ */ (0, V.jsx)(mk, {+function q6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {+ return /* @__PURE__ */ (0, V.jsx)(uk, {id: e,- className: bM({+ className: _M({interactive: !0,selectable: !0}),- children: /* @__PURE__ */ (0, V.jsx)(wM, {+ children: /* @__PURE__ */ (0, V.jsx)(xM, {label: t,icon: i,accent: a,@@ -73447,75 +73438,75 @@ function Y6({ id: e, label: t, figure: n, detail: r, icon: i, accent: a }) {});}function XHe(e) {- let t = ES({- queryKey: PR,- queryFn: ({ signal: e }) => FR(e)+ let t = TS({+ queryKey: NR,+ queryFn: ({ signal: e }) => PR(e)}), n = t.data;- if (!n) return /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ if (!n) return /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "馆藏统计读取失败",children: t.error ? W(t.error) : "未取得统计数据,请刷新页面重试。"}) });- let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = IR(n.tag_cov, n.attribution.videos);- return /* @__PURE__ */ (0, V.jsxs)(AE, { children: [+ let r = n.consumption, i = n.storage_summary, a = n.by_loc.reduce((e, t) => e + t.videos, 0), o = n.by_loc.reduce((e, t) => e + t.bytes, 0), s = FR(n.tag_cov, n.attribution.videos);+ return /* @__PURE__ */ (0, V.jsxs)(EE, { children: [/* @__PURE__ */ (0, V.jsx)("p", {className: "text-caption-1-regular text-text-secondary",children: `账本当前快照 · ${a.toLocaleString()} 个视频 · ${pe(o)}`}),- /* @__PURE__ */ (0, V.jsxs)(fk, {+ /* @__PURE__ */ (0, V.jsxs)(ck, {defaultSelectedKey: "inventory",className: "flex flex-col gap-4",children: [- /* @__PURE__ */ (0, V.jsxs)(pk, {+ /* @__PURE__ */ (0, V.jsxs)(lk, {"aria-label": "统计视图",- className: xM,+ className: vM,children: [- /* @__PURE__ */ (0, V.jsx)(Y6, {+ /* @__PURE__ */ (0, V.jsx)(q6, {id: "inventory",label: "馆藏视频",- icon: yT,+ icon: hT,accent: 0,figure: a.toLocaleString(),detail: pe(o)}),- /* @__PURE__ */ (0, V.jsx)(Y6, {+ /* @__PURE__ */ (0, V.jsx)(q6, {id: "viewing",label: "看过",- icon: ST,+ icon: vT,accent: 1,figure: r.played.toLocaleString(),- detail: dbe(r.play_seconds)+ detail: ube(r.play_seconds)}),- /* @__PURE__ */ (0, V.jsx)(Y6, {+ /* @__PURE__ */ (0, V.jsx)(q6, {id: "coverage",label: "内容标签",- icon: ET,+ icon: ST,accent: 2,figure: `${s}%`,detail: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`}),- /* @__PURE__ */ (0, V.jsx)(Y6, {+ /* @__PURE__ */ (0, V.jsx)(q6, {id: "storage",label: "使用空间",- icon: CT,+ icon: yT,accent: 3,figure: `${i.online} 个卷`,detail: i.measured ? `已用 ${pe(i.used)}` : "容量未取得"})]}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "inventory",children: /* @__PURE__ */ (0, V.jsx)(HHe, {data: n,...e})}),- /* @__PURE__ */ (0, V.jsxs)(hk, {+ /* @__PURE__ */ (0, V.jsxs)(dk, {id: "viewing",className: "flex flex-col gap-5",- children: [/* @__PURE__ */ (0, V.jsx)(J6, {- headline: /* @__PURE__ */ (0, V.jsx)(q6, {+ children: [/* @__PURE__ */ (0, V.jsx)(K6, {+ headline: /* @__PURE__ */ (0, V.jsx)(G6, {term: "观看",figure: r.played.toLocaleString(),unit: "个作品有播放记录"@@ -73523,35 +73514,35 @@ function XHe(e) {children: /* @__PURE__ */ (0, V.jsxs)("div", {className: "inline-grid w-full gap-3 sm:grid-cols-2",children: [- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "馆藏观看",value: r.library_played}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "在线直接观看",value: r.online_played}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "高潮计数",value: r.o_total}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "快进扫过",value: r.skimmed}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "喜欢",value: r.liked}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "明确不喜欢",value: r.dislike}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "看过了",value: r.seen}),- /* @__PURE__ */ (0, V.jsx)(G6, {+ /* @__PURE__ */ (0, V.jsx)(U6, {term: "回收站",value: r.trash})@@ -73559,10 +73550,10 @@ function XHe(e) {})}), /* @__PURE__ */ (0, V.jsx)(UHe, { data: n })]}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "coverage",- children: /* @__PURE__ */ (0, V.jsx)(J6, {- headline: /* @__PURE__ */ (0, V.jsx)(q6, {+ children: /* @__PURE__ */ (0, V.jsx)(K6, {+ headline: /* @__PURE__ */ (0, V.jsx)(G6, {term: "内容标签覆盖",figure: `${s}%`,unit: `${n.tag_cov.toLocaleString()} / ${n.attribution.videos.toLocaleString()}`@@ -73570,10 +73561,10 @@ function XHe(e) {children: /* @__PURE__ */ (0, V.jsx)(WHe, { attribution: n.attribution })})}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "storage",- children: /* @__PURE__ */ (0, V.jsx)(J6, {- headline: /* @__PURE__ */ (0, V.jsx)(q6, {+ children: /* @__PURE__ */ (0, V.jsx)(K6, {+ headline: /* @__PURE__ */ (0, V.jsx)(G6, {term: "使用空间",figure: String(i.measured),unit: "个卷已取得容量"@@ -73586,35 +73577,35 @@ function XHe(e) {})]}),- /* @__PURE__ */ (0, V.jsxs)(fk, {+ /* @__PURE__ */ (0, V.jsxs)(ck, {defaultSelectedKey: "tags",- className: `${DE({ padding: "none" })} flex flex-col`,+ className: `${CE({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "px-4 pt-3",- children: /* @__PURE__ */ (0, V.jsxs)(mA, {+ children: /* @__PURE__ */ (0, V.jsxs)(dA, {"aria-label": "统计维度",- className: gA,+ className: pA,children: [- /* @__PURE__ */ (0, V.jsx)(mk, {+ /* @__PURE__ */ (0, V.jsx)(uk, {id: "tags",- className: _A,+ className: mA,children: "内容标签"}),- /* @__PURE__ */ (0, V.jsx)(mk, {+ /* @__PURE__ */ (0, V.jsx)(uk, {id: "recent",- className: _A,+ className: mA,children: "最近看过"}),- /* @__PURE__ */ (0, V.jsx)(mk, {+ /* @__PURE__ */ (0, V.jsx)(uk, {id: "sources",- className: _A,+ className: mA,children: "标签来源"})]})}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "tags",className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, V.jsx)(qHe, {@@ -73622,12 +73613,12 @@ function XHe(e) {...e})}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "recent",className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, V.jsx)(JHe, { rows: n.recent })}),- /* @__PURE__ */ (0, V.jsx)(hk, {+ /* @__PURE__ */ (0, V.jsx)(dk, {id: "sources",className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, V.jsx)(YHe, {@@ -73646,23 +73637,23 @@ function ZHe(e, t) {}//#endregion//#region node_modules/d3-sankey/src/constant.js-function X6(e) {+function J6(e) {return function() {return e;};}//#endregion//#region node_modules/d3-sankey/src/sankey.js-function Z6(e, t) {- return $6(e.source, t.source) || e.index - t.index;+function Y6(e, t) {+ return Z6(e.source, t.source) || e.index - t.index;}-function Q6(e, t) {- return $6(e.target, t.target) || e.index - t.index;+function X6(e, t) {+ return Z6(e.target, t.target) || e.index - t.index;}-function $6(e, t) {+function Z6(e, t) {return e.y0 - t.y0;}-function e8(e) {+function Q6(e) {return e.value;}function QHe(e) {@@ -73674,12 +73665,12 @@ function $He(e) {function eUe(e) {return e.links;}-function t8(e, t) {+function $6(e, t) {let n = e.get(t);if (!n) throw Error("missing: " + t);return n;}-function n8({ nodes: e }) {+function e8({ nodes: e }) {for (let t of e) {let e = t.y0, n = e;for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;@@ -73693,14 +73684,14 @@ function tUe() {nodes: d.apply(null, arguments),links: f.apply(null, arguments)};- return h(e), g(e), _(e), v(e), x(e), n8(e), e;+ return h(e), g(e), _(e), v(e), x(e), e8(e), e;}m.update = function(e) {- return n8(e), e;+ return e8(e), e;}, m.nodeId = function(e) {- return arguments.length ? (s = typeof e == "function" ? e : X6(e), m) : s;+ return arguments.length ? (s = typeof e == "function" ? e : J6(e), m) : s;}, m.nodeAlign = function(e) {- return arguments.length ? (c = typeof e == "function" ? e : X6(e), m) : c;+ return arguments.length ? (c = typeof e == "function" ? e : J6(e), m) : c;}, m.nodeSort = function(e) {return arguments.length ? (l = e, m) : l;}, m.nodeWidth = function(e) {@@ -73708,9 +73699,9 @@ function tUe() {}, m.nodePadding = function(e) {return arguments.length ? (a = o = +e, m) : a;}, m.nodes = function(e) {- return arguments.length ? (d = typeof e == "function" ? e : X6(e), m) : d;+ return arguments.length ? (d = typeof e == "function" ? e : J6(e), m) : d;}, m.links = function(e) {- return arguments.length ? (f = typeof e == "function" ? e : X6(e), m) : f;+ return arguments.length ? (f = typeof e == "function" ? e : J6(e), m) : f;}, m.linkSort = function(e) {return arguments.length ? (u = e, m) : u;}, m.size = function(i) {@@ -73726,12 +73717,12 @@ function tUe() {for (let [e, r] of t.entries()) {r.index = e;let { source: t, target: i } = r;- typeof t != "object" && (t = r.source = t8(n, t)), typeof i != "object" && (i = r.target = t8(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);+ typeof t != "object" && (t = r.source = $6(n, t)), typeof i != "object" && (i = r.target = $6(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);}if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);}function g({ nodes: e }) {- for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Eq(t.sourceLinks, e8), Eq(t.targetLinks, e8)) : t.fixedValue;+ for (let t of e) t.value = t.fixedValue === void 0 ? Math.max(Tq(t.sourceLinks, Q6), Tq(t.targetLinks, Q6)) : t.fixedValue;}function _({ nodes: e }) {let t = e.length, n = new Set(e), r = /* @__PURE__ */ new Set(), i = 0;@@ -73756,7 +73747,7 @@ function tUe() {}}function y({ nodes: t }) {- let r = Sq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);+ let r = xq(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);for (let n of t) {let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];@@ -73765,7 +73756,7 @@ function tUe() {return o;}function b(e) {- let n = Cq(e, (e) => (r - t - (e.length - 1) * o) / Eq(e, e8));+ let n = Sq(e, (e) => (r - t - (e.length - 1) * o) / Tq(e, Q6));for (let i of e) {let e = t;for (let t of i) {@@ -73782,7 +73773,7 @@ function tUe() {}function x(e) {let n = y(e);- o = Math.min(a, (r - t) / (Sq(n, (e) => e.length) - 1)), b(n);+ o = Math.min(a, (r - t) / (xq(n, (e) => e.length) - 1)), b(n);for (let e = 0; e < p; ++e) {let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);C(n, t, r), S(n, t, r);@@ -73801,7 +73792,7 @@ function tUe() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort($6), w(i, n);+ l === void 0 && i.sort(Z6), w(i, n);}}function C(e, t, n) {@@ -73817,7 +73808,7 @@ function tUe() {let i = (n / r - e.y0) * t;e.y0 += i, e.y1 += i, D(e);}- l === void 0 && i.sort($6), w(i, n);+ l === void 0 && i.sort(Z6), w(i, n);}}function w(e, n) {@@ -73838,12 +73829,12 @@ function tUe() {}function D({ sourceLinks: e, targetLinks: t }) {if (u === void 0) {- for (let { source: { sourceLinks: e } } of t) e.sort(Q6);- for (let { target: { targetLinks: t } } of e) t.sort(Z6);+ for (let { source: { sourceLinks: e } } of t) e.sort(X6);+ for (let { target: { targetLinks: t } } of e) t.sort(Y6);}}function O(e) {- if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(Q6), n.sort(Z6);+ if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(X6), n.sort(Y6);}function k(e, t) {let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;@@ -73873,15 +73864,15 @@ function tUe() {}//#endregion//#region node_modules/d3-path/src/path.js-var r8 = Math.PI, i8 = 2 * r8, a8 = 1e-6, nUe = i8 - a8;-function o8() {+var t8 = Math.PI, n8 = 2 * t8, r8 = 1e-6, nUe = n8 - r8;+function i8() {this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";}-function s8() {- return new o8();+function a8() {+ return new i8();}-o8.prototype = s8.prototype = {- constructor: o8,+i8.prototype = a8.prototype = {+ constructor: i8,moveTo: function(e, t) {this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);},@@ -73902,11 +73893,11 @@ o8.prototype = s8.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 > a8) {- if (!(Math.abs(u * s - c * l) > a8) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);+ else if (d > r8) {+ if (!(Math.abs(u * s - c * l) > r8) || !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((r8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;- Math.abs(y - 1) > a8 && (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((t8 - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;+ Math.abs(y - 1) > r8 && (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);}}},@@ -73914,7 +73905,7 @@ o8.prototype = s8.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) > a8 || Math.abs(this._y1 - l) > a8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % i8 + i8), d > nUe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > a8 && (this._ += "A" + n + "," + n + ",0," + +(d >= r8) + "," + 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) > r8 || Math.abs(this._y1 - l) > r8) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % n8 + n8), d > nUe ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > r8 && (this._ += "A" + n + "," + n + ",0," + +(d >= t8) + "," + 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";@@ -73925,7 +73916,7 @@ o8.prototype = s8.prototype = {};//#endregion//#region node_modules/d3-shape/src/constant.js-function c8(e) {+function o8(e) {return function() {return e;};@@ -73953,16 +73944,16 @@ function cUe(e) {var t = oUe, n = sUe, r = rUe, i = iUe, a = null;function o() {var o, s = aUe.call(arguments), c = t.apply(this, s), l = n.apply(this, s);- if (a ||= o = s8(), 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;+ if (a ||= o = a8(), 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 : c8(+e), o) : r;+ return arguments.length ? (r = typeof e == "function" ? e : o8(+e), o) : r;}, o.y = function(e) {- return arguments.length ? (i = typeof e == "function" ? e : c8(+e), o) : i;+ return arguments.length ? (i = typeof e == "function" ? e : o8(+e), o) : i;}, o.context = function(e) {return arguments.length ? (a = e ?? null, o) : a;}, o;@@ -73986,20 +73977,20 @@ function pUe() {}//#endregion//#region src/react/taste/taste.ts-var mUe = "/api/taste", l8 = "/api/taste/refresh", hUe = "/api/taste/import", gUe = "/api/taste/source", u8 = (e) => ["taste", e], _Ue = ["taste", "refresh"], vUe = [+var mUe = "/api/taste", s8 = "/api/taste/refresh", hUe = "/api/taste/import", gUe = "/api/taste/source", c8 = (e) => ["taste", e], _Ue = ["taste", "refresh"], vUe = [["7d", "最近 7 天"],["30d", "最近 30 天"],["90d", "最近 90 天"],["365d", "最近一年"],["all", "全部时间"]-], d8 = (e, t) => G(`${mUe}?window=${e}`, t), yUe = (e) => G(l8, e);+], l8 = (e, t) => G(`${mUe}?window=${e}`, t), yUe = (e) => G(s8, e);async function bUe(e, t) {await z.fetchQuery({- queryKey: u8(e),- queryFn: () => d8(e, t)+ queryKey: c8(e),+ queryFn: () => l8(e, t)});}-var xUe = (e) => K(l8, {+var xUe = (e) => K(s8, {window: e,background: !0}), SUe = (e, t) => K(gUe, {@@ -74022,11 +74013,11 @@ async function CUe(e) {} catch {}if (!t.ok) {let e = n?.error;- throw new MS(e || `导入失败(${t.status})`, t.status, n);+ throw new jS(e || `导入失败(${t.status})`, t.status, n);}return n;}-var wUe = 1e4, f8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", TUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, EUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);+var wUe = 1e4, u8 = (e) => e ? new Date(e).toLocaleDateString("zh-CN") : "—", TUe = (e) => e >= 3600 ? `${(e / 3600).toFixed(1)} 小时` : `${Math.round(e / 60)} 分钟`, EUe = (e) => Number(e.web_visits ?? e.score ?? e.visits ?? e.peach_items ?? 0);function DUe(e) {if (e.web_visits == null) return Number(e.score || e.visits || 0).toLocaleString();let t = [];@@ -74036,18 +74027,18 @@ function OUe(e) {let t = e.map(EUe), n = Math.max(1, ...t);return t.map((e) => Math.max(0, Math.min(100, e / n * 100)));}-var p8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({+var d8 = (e, t) => e.filter((e) => Number.isFinite(Number(e.score)) && Number(e.score) > 0).map((e) => ({name: e.name,value: Number(e.score)})).sort((e, t) => t.value - e.value).slice(0, t);function kUe(e) {- let t = p8(e, 6);+ let t = d8(e, 6);return t.length < 3 ? [] : t;}-var m8 = {+var f8 = {width: 720,height: 435-}, h8 = {+}, p8 = {source: 145,target: 545};@@ -74099,11 +74090,11 @@ function AUe(e = []) {total: a};}-var jUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, g8 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {+var jUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, m8 = B.memo(function({ cx: e, cy: t, dataKey: n, chartId: r, className: i, fillOpacity: a = 1, type: o = "default", maskId: s }) {let c = B.useId().replace(/:/g, ""), l = `url(#${r}-colors-${String(n)})`;if (e === void 0 || t === void 0) return null;switch (o) {- case "border": return /* @__PURE__ */ (0, V.jsx)(v8, {+ case "border": return /* @__PURE__ */ (0, V.jsx)(g8, {cx: e,cy: t,dotId: c,@@ -74112,7 +74103,7 @@ var jUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, g8 = B.memo(functioclassName: i,maskId: s});- case "colored-border": return /* @__PURE__ */ (0, V.jsx)(y8, {+ case "colored-border": return /* @__PURE__ */ (0, V.jsx)(_8, {cx: e,cy: t,dotId: c,@@ -74121,7 +74112,7 @@ var jUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, g8 = B.memo(functioclassName: i,maskId: s});- default: return /* @__PURE__ */ (0, V.jsx)(_8, {+ default: return /* @__PURE__ */ (0, V.jsx)(h8, {cx: e,cy: t,dotId: c,@@ -74131,7 +74122,7 @@ var jUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, g8 = B.memo(functiomaskId: s});}-}), _8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {+}), h8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {className: a,mask: o ? `url(#${o})` : void 0,children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {@@ -74151,9 +74142,9 @@ var jUe = (e) => e.length > 18 ? `${e.slice(0, 16)}…` : e, g8 = B.memo(functioclipPath: `url(#dot-clip-${n})`})]}));-_8.displayName = "DefaultDot";-var v8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {- className: J3(a, "text-background"),+h8.displayName = "DefaultDot";+var g8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {+ className: K3(a, "text-background"),mask: o ? `url(#${o})` : void 0,children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {@@ -74189,9 +74180,9 @@ var v8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class}) })]}));-v8.displayName = "PrimaryBorderDot";-var y8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {- className: J3(a, "text-background"),+g8.displayName = "PrimaryBorderDot";+var _8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, className: a, maskId: o }) => /* @__PURE__ */ (0, V.jsxs)("g", {+ className: K3(a, "text-background"),mask: o ? `url(#${o})` : void 0,children: [/* @__PURE__ */ (0, V.jsx)("defs", { children: /* @__PURE__ */ (0, V.jsx)("clipPath", {@@ -74219,16 +74210,16 @@ var y8 = B.memo(({ cx: e, cy: t, dotId: n, fillOpacity: r, gradientUrl: i, class})]}));-y8.displayName = "ColoredBorderDot";+_8.displayName = "ColoredBorderDot";//#endregion//#region src/react/evilcharts/registry/charts/recharts-radar-chart.tsx-var MUe = 1, NUe = .3, PUe = 6, b8 = 1500, x8 = "value", S8 = (0, B.createContext)(null);-function C8() {- let e = (0, B.use)(S8);+var MUe = 1, NUe = .3, PUe = 6, v8 = 1500, y8 = "value", b8 = (0, B.createContext)(null);+function x8() {+ let e = (0, B.use)(b8);if (!e) throw Error("Radar chart parts (<Radar />, <PolarAngleAxis />, …) must be used within <EvilRadarChart />");return e;}-function w8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {+function S8({ config: e, data: t, children: n, className: r, chartProps: i, backgroundVariant: a, defaultSelectedDataKey: o = null, onSelectionChange: s, isLoading: c = !1, loadingPoints: l }) {let u = (0, B.useId)().replace(/:/g, ""), [d, f] = (0, B.useState)(o), p = qUe(c, l), m = (0, B.useCallback)((e) => {f(e), s?.(e);}, [s]), h = (0, B.useMemo)(() => ({@@ -74242,17 +74233,17 @@ function w8({ config: e, data: t, children: n, className: r, chartProps: i, backd,m]);- return /* @__PURE__ */ (0, V.jsx)(S8, {+ return /* @__PURE__ */ (0, V.jsx)(b8, {value: h,- children: /* @__PURE__ */ (0, V.jsxs)($3, {+ children: /* @__PURE__ */ (0, V.jsxs)(Z3, {className: r,config: e,- children: [/* @__PURE__ */ (0, V.jsx)(e6, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(vVe, {+ children: [/* @__PURE__ */ (0, V.jsx)(Q3, { isLoading: c }), /* @__PURE__ */ (0, V.jsxs)(vVe, {id: u,data: c ? p : t,...i,children: [- a && /* @__PURE__ */ (0, V.jsx)(d6, { variant: a }),+ a && /* @__PURE__ */ (0, V.jsx)(l6, { variant: a }),n,c && /* @__PURE__ */ (0, V.jsx)(JUe, {})]@@ -74261,14 +74252,14 @@ function w8({ config: e, data: t, children: n, className: r, chartProps: i, back});}function FUe({ dataKey: e, variant: t = "filled", fillOpacity: n = NUe, isGlowing: r = !1, isClickable: i = !1, children: a, radarProps: o }) {- let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = C8(), d = (0, B.useId)().replace(/:/g, "");+ let { config: s, isLoading: c, selectedDataKey: l, selectDataKey: u } = x8(), d = (0, B.useId)().replace(/:/g, "");if (c) return null;let f = i && l !== null && l !== e, p = {stroke: f ? .2 : 1,fill: f ? .1 : 1,dot: f ? .2 : 1}, m = t === "filled", { dot: h, activeDot: g } = VUe(a, d, e, p.dot);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(R0, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(I0, {dataKey: e,stroke: `url(#${d}-radar-stroke-${e})`,strokeOpacity: p.stroke,@@ -74306,9 +74297,9 @@ function FUe({ dataKey: e, variant: t = "filled", fillOpacity: n = NUe, isGlowin})] })] });}-var T8 = () => null, E8 = () => null;+var C8 = () => null, w8 = () => null;function IUe({ gridType: e = "polygon", stroke: t = "currentColor", strokeOpacity: n = .2, strokeDasharray: r = "3 4", ...i }) {- return /* @__PURE__ */ (0, V.jsx)(j1, {+ return /* @__PURE__ */ (0, V.jsx)(k1, {gridType: e,stroke: t,strokeOpacity: n,@@ -74320,8 +74311,8 @@ function LUe({ tick: e = {fill: "currentColor",fontSize: 12}, tickLine: t = !1, ...n }) {- let { isLoading: r } = C8();- return r ? null : /* @__PURE__ */ (0, V.jsx)(G1, {+ let { isLoading: r } = x8();+ return r ? null : /* @__PURE__ */ (0, V.jsx)(U1, {tick: e,tickLine: t,...n@@ -74331,8 +74322,8 @@ function RUe({ tick: e = {fill: "currentColor",fontSize: 10}, tickLine: t = !1, axisLine: n = !1, ...r }) {- let { isLoading: i } = C8();- return i ? null : /* @__PURE__ */ (0, V.jsx)(z1, {+ let { isLoading: i } = x8();+ return i ? null : /* @__PURE__ */ (0, V.jsx)(L1, {tick: e,tickLine: t,axisLine: n,@@ -74340,11 +74331,11 @@ function RUe({ tick: e = {});}function zUe({ variant: e, roundness: t, defaultIndex: n }) {- let { isLoading: r, selectedDataKey: i } = C8();- return r ? null : /* @__PURE__ */ (0, V.jsx)(a6, {+ let { isLoading: r, selectedDataKey: i } = x8();+ return r ? null : /* @__PURE__ */ (0, V.jsx)(r6, {defaultIndex: n,cursor: !1,- content: /* @__PURE__ */ (0, V.jsx)(i6, {+ content: /* @__PURE__ */ (0, V.jsx)(n6, {selected: i,roundness: t,variant: e@@ -74352,11 +74343,11 @@ function zUe({ variant: e, roundness: t, defaultIndex: n }) {});}function BUe({ variant: e, align: t = "center", verticalAlign: n = "bottom", isClickable: r = !1 }) {- let { isLoading: i, selectedDataKey: a, selectDataKey: o } = C8();- return i ? null : /* @__PURE__ */ (0, V.jsx)(s6, {+ let { isLoading: i, selectedDataKey: a, selectDataKey: o } = x8();+ return i ? null : /* @__PURE__ */ (0, V.jsx)(a6, {verticalAlign: n,align: t,- content: /* @__PURE__ */ (0, V.jsx)(o6, {+ content: /* @__PURE__ */ (0, V.jsx)(i6, {selected: a,onSelectChange: o,isClickable: r,@@ -74368,18 +74359,18 @@ var VUe = (e, t, n, r) => {let i = !1, a = !1;return B.Children.forEach(e, (e) => {if ((0, B.isValidElement)(e)) {- if (e.type === T8) {+ if (e.type === C8) {let { variant: a } = e.props;- i = /* @__PURE__ */ (0, V.jsx)(g8, {+ i = /* @__PURE__ */ (0, V.jsx)(m8, {type: a,dataKey: n,chartId: t,fillOpacity: r});}- if (e.type === E8) {+ if (e.type === w8) {let { variant: i } = e.props;- a = /* @__PURE__ */ (0, V.jsx)(g8, {+ a = /* @__PURE__ */ (0, V.jsx)(m8, {type: i,dataKey: n,chartId: t,@@ -74391,7 +74382,7 @@ var VUe = (e, t, n, r) => {dot: i,activeDot: a};-}, D8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {+}, T8 = ({ dataKey: e, colorsCount: t, opacities: n }) => t === 1 ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("stop", {offset: "0%",stopColor: `var(--color-${e}-0)`,stopOpacity: n?.[0]@@ -74407,39 +74398,39 @@ var VUe = (e, t, n, r) => {stopOpacity: n?.[i]}, a);}) }), HUe = ({ id: e, dataKey: t, config: n }) => {- let r = r6(n[t] ?? {});+ let r = t6(n[t] ?? {});return /* @__PURE__ */ (0, V.jsx)("linearGradient", {id: `${e}-colors-${t}`,x1: "0",y1: "0",x2: "1",y2: "0",- children: /* @__PURE__ */ (0, V.jsx)(D8, {+ children: /* @__PURE__ */ (0, V.jsx)(T8, {dataKey: t,colorsCount: r})});}, UUe = ({ id: e, dataKey: t, config: n }) => {- let r = r6(n[t] ?? {});+ let r = t6(n[t] ?? {});return /* @__PURE__ */ (0, V.jsx)("linearGradient", {id: `${e}-radar-stroke-${t}`,x1: "0",y1: "0",x2: "1",y2: "1",- children: /* @__PURE__ */ (0, V.jsx)(D8, {+ children: /* @__PURE__ */ (0, V.jsx)(T8, {dataKey: t,colorsCount: r})});}, WUe = ({ id: e, dataKey: t, config: n }) => {- let r = r6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);+ let r = t6(n[t] ?? {}), i = r === 1 ? [.8, .3] : Array.from({ length: r }, (e, t) => t === 0 ? .8 : .3);return /* @__PURE__ */ (0, V.jsx)("radialGradient", {id: `${e}-radar-fill-${t}`,cx: "50%",cy: "50%",r: "50%",- children: /* @__PURE__ */ (0, V.jsx)(D8, {+ children: /* @__PURE__ */ (0, V.jsx)(T8, {dataKey: t,colorsCount: r,opacities: i@@ -74474,7 +74465,7 @@ var VUe = (e, t, n, r) => {"F"].slice(0, e).map((e) => ({skill: e,- [x8]: 30 + Math.random() * 70+ [y8]: 30 + Math.random() * 70}));function qUe(e, t = PUe) {let [n, r] = (0, B.useState)(0);@@ -74482,12 +74473,12 @@ function qUe(e, t = PUe) {if (!e) return;let t = setInterval(() => {r((e) => e + 1);- }, b8);+ }, v8);return () => clearInterval(t);}, [e]), (0, B.useMemo)(() => KUe(t), [t, n]);}-var JUe = () => /* @__PURE__ */ (0, V.jsx)(R0, {- dataKey: x8,+var JUe = () => /* @__PURE__ */ (0, V.jsx)(I0, {+ dataKey: y8,stroke: "currentColor",strokeOpacity: .3,strokeWidth: 2,@@ -74495,10 +74486,10 @@ var JUe = () => /* @__PURE__ */ (0, V.jsx)(R0, {fillOpacity: .1,dot: !1,isAnimationActive: !0,- animationDuration: b8,+ animationDuration: v8,animationEasing: "ease-in-out"});-w8.Radar = FUe, w8.Dot = T8, w8.ActiveDot = E8, w8.PolarGrid = IUe, w8.PolarAngleAxis = LUe, w8.PolarRadiusAxis = RUe, w8.Tooltip = zUe, w8.Legend = BUe;+S8.Radar = FUe, S8.Dot = C8, S8.ActiveDot = w8, S8.PolarGrid = IUe, S8.PolarAngleAxis = LUe, S8.PolarRadiusAxis = RUe, S8.Tooltip = zUe, S8.Legend = BUe;//#endregion//#region src/react/taste/charts.tsxvar YUe = [@@ -74515,9 +74506,9 @@ var YUe = ["fill-chart-4","fill-chart-5","fill-chart-6"-], O8 = { value: {+], E8 = { value: {label: "标签命中",- colors: b6(y6[3])+ colors: v6(_6[3])} }, ZUe = ["min-h-24","min-h-24",@@ -74528,7 +74519,7 @@ var YUe = ["min-h-52","min-h-60","min-h-64"-], QUe = 26, $Ue = { radius: O8.value }, eWe = (e, t) => Math.sqrt(e / t);+], QUe = 26, $Ue = { radius: E8.value }, eWe = (e, t) => Math.sqrt(e / t);function tWe({ rows: e, label: t }) {let n = kUe(e);if (!n.length) return null;@@ -74539,55 +74530,55 @@ function tWe({ rows: e, label: t }) {return /* @__PURE__ */ (0, V.jsx)("div", {role: "img","aria-label": `${t}:${i.map((e) => e.name).join(",")}`,- children: /* @__PURE__ */ (0, V.jsxs)(w8, {+ children: /* @__PURE__ */ (0, V.jsxs)(S8, {data: i,config: $Ue,chartProps: { outerRadius: "58%" },className: "aspect-auto h-70 text-text-secondary",children: [- /* @__PURE__ */ (0, V.jsx)(w8.PolarGrid, {}),- /* @__PURE__ */ (0, V.jsx)(w8.PolarAngleAxis, { dataKey: "name" }),- /* @__PURE__ */ (0, V.jsx)(w8.PolarRadiusAxis, {+ /* @__PURE__ */ (0, V.jsx)(S8.PolarGrid, {}),+ /* @__PURE__ */ (0, V.jsx)(S8.PolarAngleAxis, { dataKey: "name" }),+ /* @__PURE__ */ (0, V.jsx)(S8.PolarRadiusAxis, {domain: [0, 1],allowDecimals: !0,tick: !1}),- /* @__PURE__ */ (0, V.jsx)(w8.Radar, { dataKey: "radius" }),- /* @__PURE__ */ (0, V.jsx)(T6, { valueKey: "value" })+ /* @__PURE__ */ (0, V.jsx)(S8.Radar, { dataKey: "radius" }),+ /* @__PURE__ */ (0, V.jsx)(C6, { valueKey: "value" })]})});}function nWe({ rows: e, label: t }) {- let n = p8(e, 8);+ let n = d8(e, 8);return n.length ? /* @__PURE__ */ (0, V.jsx)("section", {"aria-label": t,className: `flex grow flex-col ${ZUe[n.length]}`,- children: /* @__PURE__ */ (0, V.jsxs)(h6, {+ children: /* @__PURE__ */ (0, V.jsxs)(p6, {data: n,- config: O8,+ config: E8,layout: "horizontal",barRadius: 4,chartProps: { maxBarSize: QUe },className: "aspect-auto text-text-secondary",children: [- /* @__PURE__ */ (0, V.jsx)(h6.YAxis, {+ /* @__PURE__ */ (0, V.jsx)(p6.YAxis, {dataKey: "name",interval: 0}),- /* @__PURE__ */ (0, V.jsx)(h6.XAxis, {+ /* @__PURE__ */ (0, V.jsx)(p6.XAxis, {hide: !0,- domain: E6+ domain: w6}),- /* @__PURE__ */ (0, V.jsx)(h6.Bar, {+ /* @__PURE__ */ (0, V.jsx)(p6.Bar, {dataKey: "value",enableHoverHighlight: !0,barProps: {dataKey: "value",- label: D6("right")+ label: T6("right")}}),- /* @__PURE__ */ (0, V.jsx)(T6, {})+ /* @__PURE__ */ (0, V.jsx)(C6, {})]})}) : null;@@ -74597,9 +74588,9 @@ function rWe({ flows: e }) {if (!r) return null;let i = t?.node ?? null, a = (e, n) => t ? i === null ? t.label === n : e.source === i || e.target === i : !0;return /* @__PURE__ */ (0, V.jsxs)("section", {- className: _6,+ className: h6,children: [- /* @__PURE__ */ (0, V.jsx)(v6, {+ /* @__PURE__ */ (0, V.jsx)(g6, {title: "创作者线索来源",figure: (t ? t.value : r.total).toLocaleString(),note: t ? t.label : "条线索"@@ -74607,7 +74598,7 @@ function rWe({ flows: e }) {/* @__PURE__ */ (0, V.jsx)("div", {className: "min-w-0 overflow-x-auto",children: /* @__PURE__ */ (0, V.jsxs)("svg", {- viewBox: `0 0 ${m8.width} ${m8.height}`,+ viewBox: `0 0 ${f8.width} ${f8.height}`,fill: "none",role: "img","aria-label": "来源网站与创作者线索",@@ -74657,13 +74648,13 @@ function rWe({ flows: e }) {rx: 5,className: e.side === "source" ? XUe[e.color] : "fill-text-secondary"}), /* @__PURE__ */ (0, V.jsxs)("text", {- x: h8[e.side],+ x: p8[e.side],y: e.y + e.height / 2,textAnchor: e.side === "source" ? "end" : "start",dominantBaseline: "middle",className: "fill-text-secondary text-caption-1-regular",children: [jUe(e.name), /* @__PURE__ */ (0, V.jsx)("tspan", {- x: h8[e.side],+ x: p8[e.side],dy: 15,children: e.side === "source" ? e.value.toLocaleString() : `${e.share.toFixed(1)}%`})]@@ -74680,11 +74671,11 @@ function rWe({ flows: e }) {}//#endregion//#region src/react/taste/taste-page.tsx-var iWe = 10, k8 = xE(Sk, Ck, "text-body-2-medium"), A8 = `${DE()} flex flex-col gap-4`, j8 = "rounded-xl bg-background-primary-default p-3", aWe = "读取运行 Peach 的这台电脑上的浏览记录", oWe = "导入或读取浏览记录后,这里会列出已采集设备。", sWe = "馆藏里暂时没有对得上浏览信号的标签。", cWe = "采集浏览记录后,这里会显示聚合后的口味证据。", lWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", uWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", dWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", fWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", pWe = "这个数据源将不再用于口味分析。原始导出文件保留。", M8 = "peach-taste-guide-dismissed";-function N8({ icon: e, term: t, figure: n, detail: r, accent: i }) {+var iWe = 10, D8 = _E(yk, bk, "text-body-2-medium"), O8 = `${CE()} flex flex-col gap-4`, k8 = "rounded-xl bg-background-primary-default p-3", aWe = "读取运行 Peach 的这台电脑上的浏览记录", oWe = "导入或读取浏览记录后,这里会列出已采集设备。", sWe = "馆藏里暂时没有对得上浏览信号的标签。", cWe = "采集浏览记录后,这里会显示聚合后的口味证据。", lWe = "这些词在浏览记录中出现,但 Peach 观看记录还没有对应证据", uWe = "在运行 Peach 的电脑上使用浏览器:点上面的「读取浏览器历史」。", dWe = "记录在其他设备上:导出文件后,点上面的「导入历史文件」。多台设备的文件分别导入。", fWe = "需要刷新时再次读取或导入;数据源可在页面底部移除。", pWe = "这个数据源将不再用于口味分析。原始导出文件保留。", A8 = "peach-taste-guide-dismissed";+function j8({ icon: e, term: t, figure: n, detail: r, accent: i }) {return /* @__PURE__ */ (0, V.jsx)("div", {- className: bM(),- children: /* @__PURE__ */ (0, V.jsx)(wM, {+ className: _M(),+ children: /* @__PURE__ */ (0, V.jsx)(xM, {label: t,icon: e,accent: i,@@ -74693,7 +74684,7 @@ function N8({ icon: e, term: t, figure: n, detail: r, accent: i }) {})});}-function P8({ name: e, domain: t }) {+function M8({ name: e, domain: t }) {return /* @__PURE__ */ (0, V.jsxs)("span", {className: "relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-lg bg-background-tertiary-default text-caption-1-medium text-text-secondary",children: [e.slice(0, 1).toUpperCase(), /* @__PURE__ */ (0, V.jsx)("img", {@@ -74709,19 +74700,19 @@ function P8({ name: e, domain: t }) {}function mWe({ html: e }) {return /* @__PURE__ */ (0, V.jsx)("span", {- className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${aL}`,+ className: `relative inline-grid size-8 shrink-0 place-items-center overflow-hidden rounded-full bg-background-tertiary-default text-caption-1-medium text-text-secondary ${iL}`,dangerouslySetInnerHTML: { __html: e }});}function hWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {- if (!e.length) return /* @__PURE__ */ (0, V.jsx)(OE, {+ if (!e.length) return /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: kT,+ icon: TT,title: "暂无足够证据",children: r});let a = OUe(e);- return /* @__PURE__ */ (0, V.jsx)(I6, {+ return /* @__PURE__ */ (0, V.jsx)(P6, {previewCount: iWe,className: "inline-grid w-full gap-x-7 gap-y-2 sm:grid-cols-2",children: e.map((e, r) => {@@ -74741,11 +74732,11 @@ function hWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {className: "w-6 shrink-0 text-caption-1-regular tabular-nums text-text-secondary",children: r + 1}),- n === "domain" ? /* @__PURE__ */ (0, V.jsx)(P8, {+ n === "domain" ? /* @__PURE__ */ (0, V.jsx)(M8, {name: e.name,domain: e.name}) : null,- n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, V.jsx)(P8, {+ n === "creator" && !e.entity_id && !e.has_avatar && s ? /* @__PURE__ */ (0, V.jsx)(M8, {name: e.name,domain: s}) : null,@@ -74765,7 +74756,7 @@ function hWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {children: DUe(e)})]}),- o ? /* @__PURE__ */ (0, V.jsx)(pT, {+ o ? /* @__PURE__ */ (0, V.jsx)(lT, {"aria-hidden": !0,className: "size-4 shrink-0 text-text-tertiary"}) : null@@ -74785,21 +74776,21 @@ function hWe({ rows: e, kind: t, visual: n, empty: r, onSignal: i }) {})});}-function F8({ label: e, panels: t, onSignal: n }) {- return /* @__PURE__ */ (0, V.jsxs)(fk, {- className: `${DE({ padding: "none" })} flex flex-col`,+function N8({ label: e, panels: t, onSignal: n }) {+ return /* @__PURE__ */ (0, V.jsxs)(ck, {+ className: `${CE({ padding: "none" })} flex flex-col`,children: [/* @__PURE__ */ (0, V.jsx)("div", {className: "px-4 pt-3",- children: /* @__PURE__ */ (0, V.jsx)(mA, {+ children: /* @__PURE__ */ (0, V.jsx)(dA, {"aria-label": e,- className: gA,- children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(mk, {+ className: pA,+ children: t.map((e) => /* @__PURE__ */ (0, V.jsx)(uk, {id: e.id,- className: _A,+ className: mA,children: e.name}, e.id))})- }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(hk, {+ }), t.map((e) => /* @__PURE__ */ (0, V.jsx)(dk, {id: e.id,className: "px-4 pt-3.5 pb-4",children: /* @__PURE__ */ (0, V.jsx)(hWe, {@@ -74824,7 +74815,7 @@ function gWe({ data: e, onSignal: t, navigate: n }) {act: () => n(e.route)}))];return /* @__PURE__ */ (0, V.jsxs)("section", {- className: A8,+ className: O8,"aria-label": "口味总结",children: [/* @__PURE__ */ (0, V.jsxs)("header", {@@ -74850,7 +74841,7 @@ function gWe({ data: e, onSignal: t, navigate: n }) {r.points?.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "inline-grid w-full gap-3 sm:grid-cols-2",children: r.points.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {- className: `flex min-w-0 flex-col gap-1 ${j8}`,+ className: `flex min-w-0 flex-col gap-1 ${k8}`,children: [/* @__PURE__ */ (0, V.jsx)("span", {className: "text-caption-1-regular text-text-secondary",children: e.label@@ -74865,7 +74856,7 @@ function gWe({ data: e, onSignal: t, navigate: n }) {children: a.map((e) => /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",onClick: e.act,- className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${j8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,+ className: `flex w-full min-w-0 cursor-pointer items-center gap-3 ${k8} text-left outline-none hover:bg-background-primary-hover focus-visible:ring-2 focus-visible:ring-border-focus-ring`,children: [/* @__PURE__ */ (0, V.jsxs)("span", {className: "flex min-w-0 grow flex-col gap-1",children: [/* @__PURE__ */ (0, V.jsx)("b", {@@ -74875,14 +74866,14 @@ function gWe({ data: e, onSignal: t, navigate: n }) {className: "text-caption-1-regular text-text-secondary",children: e.detail})]- }), /* @__PURE__ */ (0, V.jsx)(pT, {+ }), /* @__PURE__ */ (0, V.jsx)(lT, {"aria-hidden": !0,className: "size-4 shrink-0 text-text-tertiary"})]}, e.key))- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: kT,+ icon: TT,title: "还没有可探索的入口",children: sWe})@@ -74892,17 +74883,17 @@ function gWe({ data: e, onSignal: t, navigate: n }) {function _We({ onboarding: e, done: t }) {let [n, r] = (0, B.useState)(() => {try {- return localStorage.getItem(M8) === "1";+ return localStorage.getItem(A8) === "1";} catch {return !1;}});return t || n ? null : /* @__PURE__ */ (0, V.jsx)("div", {- className: DE({+ className: CE({padding: "none",className: "p-4"}),- children: /* @__PURE__ */ (0, V.jsxs)(Hk, {+ children: /* @__PURE__ */ (0, V.jsxs)(zk, {summary: "浏览器历史记录导入指南",defaultOpen: e,children: [@@ -74951,7 +74942,7 @@ function _We({ onboarding: e, done: t }) {size: "small",onClick: () => {try {- localStorage.setItem(M8, "1");+ localStorage.setItem(A8, "1");} catch {}r(!0);},@@ -74971,7 +74962,7 @@ function vWe({ busy: e, onRefresh: t, onImport: n }) {"data-split-button": !0,"data-variant": "primary",children: [/* @__PURE__ */ (0, V.jsx)(J, {- leadingIcon: vT,+ leadingIcon: mT,title: aWe,onClick: t,...X(e),@@ -74979,7 +74970,7 @@ function vWe({ busy: e, onRefresh: t, onImport: n }) {}), /* @__PURE__ */ (0, V.jsx)(J, {ref: r,iconOnly: !0,- leadingIcon: dT,+ leadingIcon: sT,"aria-label": "更多取得浏览记录的方式","aria-haspopup": "dialog","aria-expanded": i,@@ -74988,29 +74979,29 @@ function vWe({ busy: e, onRefresh: t, onImport: n }) {e || a(!0);}})]- }), /* @__PURE__ */ (0, V.jsx)(yO, {+ }), /* @__PURE__ */ (0, V.jsx)(hO, {triggerRef: r,isOpen: i,onOpenChange: a,placement: "bottom end",offset: 4,- className: xk,- children: /* @__PURE__ */ (0, V.jsxs)(TM, {+ className: vk,+ children: /* @__PURE__ */ (0, V.jsxs)(SM, {"aria-label": "更多取得浏览记录的方式",className: "flex w-52 flex-col gap-1 outline-none",children: [/* @__PURE__ */ (0, V.jsxs)("button", {type: "button",- className: k8,+ className: D8,onClick: () => o(t),- children: [/* @__PURE__ */ (0, V.jsx)(vT, {+ children: [/* @__PURE__ */ (0, V.jsx)(mT, {"aria-hidden": !0,className: "size-4 shrink-0"}), "读取浏览器历史"]}), /* @__PURE__ */ (0, V.jsxs)("button", {type: "button",- className: k8,+ className: D8,onClick: () => o(n),- children: [/* @__PURE__ */ (0, V.jsx)(AT, {+ children: [/* @__PURE__ */ (0, V.jsx)(ET, {"aria-hidden": !0,className: "size-4 shrink-0"}), "导入历史文件"]@@ -75019,14 +75010,14 @@ function vWe({ busy: e, onRefresh: t, onImport: n }) {})] });}function yWe({ sources: e, window: t, toast: n }) {- let r = kS({+ let r = OS({mutationFn: (e) => SUe(e, t),onSuccess: (e) => {- z.setQueryData(u8(t), e.dashboard), n("已移除口味数据源");+ z.setQueryData(c8(t), e.dashboard), n("已移除口味数据源");}});return /* @__PURE__ */ (0, V.jsxs)("section", {- className: A8,+ className: O8,"aria-label": "数据源",children: [/* @__PURE__ */ (0, V.jsx)("h3", {@@ -75040,14 +75031,14 @@ function yWe({ sources: e, window: t, toast: n }) {e.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "inline-grid w-full gap-2 sm:grid-cols-2",children: e.map((e) => /* @__PURE__ */ (0, V.jsxs)("div", {- className: `flex min-w-0 items-center gap-3 ${j8}`,+ className: `flex min-w-0 items-center gap-3 ${k8}`,children: [/* @__PURE__ */ (0, V.jsx)("span", {className: "inline-grid size-8 shrink-0 place-items-center rounded-lg text-text-secondary",- children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(AT, {+ children: e.browser === "browserexport" ? /* @__PURE__ */ (0, V.jsx)(ET, {"aria-hidden": !0,className: "size-4"- }) : /* @__PURE__ */ (0, V.jsx)(yT, {+ }) : /* @__PURE__ */ (0, V.jsx)(hT, {"aria-hidden": !0,className: "size-4"})@@ -75067,7 +75058,7 @@ function yWe({ sources: e, window: t, toast: n }) {size: "small","aria-label": `移除 ${e.profile}`,iconOnly: !0,- leadingIcon: bT,+ leadingIcon: gT,...X(r.isPending),onClick: () => {r.isPending || Te({@@ -75080,9 +75071,9 @@ function yWe({ sources: e, window: t, toast: n }) {})]}, e.source_key))- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: yT,+ icon: hT,title: "还没有数据源",children: oWe})@@ -75090,11 +75081,11 @@ function yWe({ sources: e, window: t, toast: n }) {});}function bWe(e) {- let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = ES({- queryKey: u8(a),- queryFn: ({ signal: e }) => d8(a, e),- placeholderData: jS.keepPreviousData- }), { job: d, running: f, outcome: p, start: m } = zM({+ let { onSignal: t, navigate: n, toast: r, onboarding: i } = e, [a, o] = (0, B.useState)("all"), [s, c] = (0, B.useState)("browser"), l = (0, B.useRef)(null), u = TS({+ queryKey: c8(a),+ queryFn: ({ signal: e }) => l8(a, e),+ placeholderData: AS.keepPreviousData+ }), { job: d, running: f, outcome: p, start: m } = IM({queryKey: _Ue,queryFn: ({ signal: e }) => yUe(e),start: () => xUe(a),@@ -75102,10 +75093,10 @@ function bWe(e) {onFinish: (e) => {e.status !== "failed" && (z.invalidateQueries({ queryKey: ["taste"] }), r("已更新口味分析"));}- }), h = kS({+ }), h = OS({mutationFn: (e) => CUe(e),onSuccess: (e) => {- z.setQueryData(u8("all"), e.dashboard), o("all"), r("已导入口味数据");+ z.setQueryData(c8("all"), e.dashboard), o("all"), r("已导入口味数据");}}), g = (e) => {let t = e.currentTarget.files?.[0];@@ -75113,42 +75104,42 @@ function bWe(e) {}, _ = () => {f || m.isPending || (m.reset(), m.mutate());}, v = u.data;- if (!v) return /* @__PURE__ */ (0, V.jsx)(AE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ if (!v) return /* @__PURE__ */ (0, V.jsx)(EE, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "口味分析读取失败",children: u.error ? W(u.error) : "读取口味分析失败"}) });let y = v.summary || {}, b = v.coverage || {}, x = v.rankings || {}, S = v.storage || {}, C = x.browser_categories || [], w = v.gaps || [], T = b.tagged || 0, E = b.identified || 0, D = m.error ? W(m.error) : h.error ? W(h.error) : p?.status === "failed" ? p.error || "读取未取得" : "";- return /* @__PURE__ */ (0, V.jsxs)(AE, { children: [- /* @__PURE__ */ (0, V.jsxs)(fk, {+ return /* @__PURE__ */ (0, V.jsxs)(EE, { children: [+ /* @__PURE__ */ (0, V.jsxs)(ck, {selectedKey: s,onSelectionChange: (e) => c(String(e)),className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center justify-between gap-3",- children: [/* @__PURE__ */ (0, V.jsxs)(mA, {+ children: [/* @__PURE__ */ (0, V.jsxs)(dA, {"aria-label": "口味证据来源",- className: gA,- children: [/* @__PURE__ */ (0, V.jsx)(mk, {+ className: pA,+ children: [/* @__PURE__ */ (0, V.jsx)(uk, {id: "browser",- className: _A,+ className: mA,children: "浏览器记录"- }), /* @__PURE__ */ (0, V.jsx)(mk, {+ }), /* @__PURE__ */ (0, V.jsx)(uk, {id: "peach",- className: _A,+ className: mA,children: "Peach 内部"})]}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-wrap items-center gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(Tk, {+ /* @__PURE__ */ (0, V.jsx)(Sk, {"aria-label": "分析范围",selectedKey: a,onSelectionChange: (e) => {e !== null && o(String(e));},- children: vUe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ek, {+ children: vUe.map(([e, t]) => /* @__PURE__ */ (0, V.jsx)(Ck, {id: e,children: t}, e))@@ -75177,48 +75168,48 @@ function bWe(e) {"aria-live": "polite",className: "flex flex-col gap-3 empty:hidden",children: [- f ? /* @__PURE__ */ (0, V.jsx)(FM, {+ f ? /* @__PURE__ */ (0, V.jsx)(MM, {label: d?.message || "正在读取浏览记录并更新口味分析",value: d?.checked,total: d?.total}) : null,- h.isPending ? /* @__PURE__ */ (0, V.jsx)(FM, { label: "正在导入历史文件" }) : null,+ h.isPending ? /* @__PURE__ */ (0, V.jsx)(MM, { label: "正在导入历史文件" }) : null,D ? /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",children: D}) : null]}),- /* @__PURE__ */ (0, V.jsxs)(hk, {+ /* @__PURE__ */ (0, V.jsxs)(dk, {id: "browser",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: xM,+ className: vM,children: [- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 0,- icon: wT,+ icon: bT,term: "浏览记录",figure: Number(y.history_visits || 0).toLocaleString(),- detail: `${y.history_sources || 0} 个数据源 · ${f8(y.range_start)}—${f8(y.range_end)}`+ detail: `${y.history_sources || 0} 个数据源 · ${u8(y.range_start)}—${u8(y.range_end)}`}),- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 1,- icon: ET,+ icon: ST,term: "口味维度",figure: C.length.toLocaleString(),detail: C[0]?.name || "尚无主维度"}),- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 2,- icon: kT,+ icon: TT,term: "浏览候选",figure: w.length.toLocaleString()}),- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 3,- icon: yT,+ icon: hT,term: "私有导出",figure: Number(S.exports || 0).toLocaleString(),detail: pe(S.bytes || 0)@@ -75226,7 +75217,7 @@ function bWe(e) {]}),/* @__PURE__ */ (0, V.jsxs)("section", {- className: `${A8} md:flex-row md:gap-6`,+ className: `${O8} md:flex-row md:gap-6`,"aria-label": "浏览器画像",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 flex-col gap-2 pb-5 md:w-80 md:pr-6 md:pb-0",@@ -75241,7 +75232,7 @@ function bWe(e) {}),/* @__PURE__ */ (0, V.jsx)("small", {className: "text-caption-1-regular text-text-secondary",- children: v.updated_at ? `更新于 ${f8(v.updated_at)}` : "尚未采集浏览记录"+ children: v.updated_at ? `更新于 ${u8(v.updated_at)}` : "尚未采集浏览记录"})]}), /* @__PURE__ */ (0, V.jsx)("div", {@@ -75249,15 +75240,15 @@ function bWe(e) {children: C.length ? /* @__PURE__ */ (0, V.jsx)(nWe, {rows: C,label: "口味维度排名"- }) : /* @__PURE__ */ (0, V.jsx)(OE, {+ }) : /* @__PURE__ */ (0, V.jsx)(wE, {shell: "plain",- icon: kT,+ icon: TT,title: "暂无口味维度",children: cWe})})]}),- /* @__PURE__ */ (0, V.jsx)(F6, {+ /* @__PURE__ */ (0, V.jsx)(N6, {activity: v.activity,title: "浏览活跃时间",dailyTitle: "每日活跃",@@ -75270,7 +75261,7 @@ function bWe(e) {empty: "还没有可用于分析的口味网站访问记录。"}),/* @__PURE__ */ (0, V.jsx)(rWe, { flows: v.creator_flows }),- /* @__PURE__ */ (0, V.jsx)(F8, {+ /* @__PURE__ */ (0, V.jsx)(N8, {label: "浏览器口味维度",onSignal: t,panels: [@@ -75318,42 +75309,42 @@ function bWe(e) {})]}),- /* @__PURE__ */ (0, V.jsxs)(hk, {+ /* @__PURE__ */ (0, V.jsxs)(dk, {id: "peach",className: "flex flex-col gap-5",children: [/* @__PURE__ */ (0, V.jsxs)("div", {- className: xM,+ className: vM,children: [- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 0,- icon: ST,+ icon: vT,term: "Peach 看过",figure: Number(y.peach_items || 0).toLocaleString(),detail: TUe(y.peach_seconds || 0)}),- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 1,- icon: xae,+ icon: yae,term: "喜欢",figure: Number(y.liked || 0).toLocaleString()}),- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 2,- icon: bae,+ icon: vae,term: "不合口味",figure: Number(y.disliked || 0).toLocaleString()}),- /* @__PURE__ */ (0, V.jsx)(N8, {+ /* @__PURE__ */ (0, V.jsx)(j8, {accent: 3,- icon: ET,+ icon: ST,term: "有标签",figure: T.toLocaleString()})]}),/* @__PURE__ */ (0, V.jsxs)("section", {- className: `${A8} md:flex-row md:gap-6`,+ className: `${O8} md:flex-row md:gap-6`,"aria-label": "Peach 观看",children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 flex-col gap-0.5 pb-5 md:w-72 md:pr-6 md:pb-0",@@ -75373,18 +75364,18 @@ function bWe(e) {]}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 grow flex-col",- children: [/* @__PURE__ */ (0, V.jsx)(I8, {+ children: [/* @__PURE__ */ (0, V.jsx)(P8, {term: "有标签",value: T,rest: b.untagged || 0- }), /* @__PURE__ */ (0, V.jsx)(I8, {+ }), /* @__PURE__ */ (0, V.jsx)(P8, {term: "有身份",value: E,rest: b.unidentified || 0})]})]}),- /* @__PURE__ */ (0, V.jsx)(F8, {+ /* @__PURE__ */ (0, V.jsx)(N8, {label: "Peach 口味维度",onSignal: t,panels: [@@ -75436,7 +75427,7 @@ function bWe(e) {})] });}-function I8({ term: e, value: t, rest: n }) {+function P8({ term: e, value: t, rest: n }) {let r = Math.max(t + n, 1);return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col gap-1.5 border-b border-separator-border py-3 last:border-b-0",@@ -75449,7 +75440,7 @@ function I8({ term: e, value: t, rest: n }) {children: `${n} 项待补`})]})]- }), /* @__PURE__ */ (0, V.jsx)(ME, {+ }), /* @__PURE__ */ (0, V.jsx)(OE, {label: `${e}:${t.toLocaleString()} / ${r.toLocaleString()}`,value: t,max: r@@ -75464,11 +75455,11 @@ function xWe(e, t, n) {return;}let r = t.managePath(e);- R8(r) ? n(r) : t.openManage(e);+ I8(r) ? n(r) : t.openManage(e);}-var L8 = {+var F8 = {"/stats": {- prefetch: (e, t) => ube(t),+ prefetch: (e, t) => lbe(t),page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(XHe, {tagLabel: ot,onTag: t.openTag,@@ -75488,8 +75479,8 @@ var L8 = {})},"/review": {- prefetch: (e, t) => Oue(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Ive, {+ prefetch: (e, t) => Tue(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Fve, {...e,route: t.routeReview,openItem: t.openItem,@@ -75499,24 +75490,24 @@ var L8 = {})},"/data-cleanup": {- prefetch: (e, t) => hde(t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(Sfe, {+ prefetch: (e, t) => fde(t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(yfe, {failure: t.failure,open: (e) => xWe(e, t, n),toast: (e, { warning: n = !1 } = {}) => n ? t.toast({ text: e }, { sound: "warning" }) : t.receipt(e)})},"/duplicates": {- prefetch: (e, t) => Wle(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(mme, {+ prefetch: (e, t) => Vle(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(pme, {openItem: t.openItem,failure: t.failure,toast: (e, { undo: n } = {}) => t.receipt(e, n ? { undo: n } : {})})},"/quality-goals": {- prefetch: (e, t) => cue(t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(bve, {+ prefetch: (e, t) => aue(t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(yve, {openItem: t.openItem,javTitleHtml: at,javDisplayName: it,@@ -75527,19 +75518,19 @@ var L8 = {})},"/scraping": {- prefetch: (e, t) => Uve(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Xve, { toast: (e) => t.toast(e) })+ prefetch: (e, t) => Hve(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(Yve, { toast: (e) => t.toast(e) })},"/configuration": {- prefetch: (e, t) => bR(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(cbe, {+ prefetch: (e, t) => yR(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(sbe, {receipt: (e) => t.receipt(e),reopenTutorial: t.reopenTutorial})},"/diagnostics": {- prefetch: (e, t) => hme(t),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(yme, {+ prefetch: (e, t) => mme(t),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(vme, {navigate: n,openItem: t.openItem,receipt: (e) => t.receipt(e),@@ -75549,12 +75540,12 @@ var L8 = {})},"/activity": {- prefetch: (e, t) => kce(t),- page: (e) => /* @__PURE__ */ (0, V.jsx)(Qce, { ...e.prefill ? { prefill: e.prefill } : {} })+ prefetch: (e, t) => Ece(t),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(Yce, { ...e.prefill ? { prefill: e.prefill } : {} })},"/follow-manage": {- prefetch: (e, t) => Zme(t, e.tab),- page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(x_e, {+ prefetch: (e, t) => Xme(t, e.tab),+ page: (e, t, n) => /* @__PURE__ */ (0, V.jsx)(b_e, {...e,route: t.routeFollowManage,savePreference: t.saveFollowPreference,@@ -75565,10 +75556,10 @@ var L8 = {}})}-}, R8 = (e) => Object.hasOwn(L8, e), z8 = {+}, I8 = (e) => Object.hasOwn(F8, e), L8 = {"/playlists": {- prefetch: (e, t) => ove(t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(vve, {+ prefetch: (e, t) => ave(t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(_ve, {revision: e.revision,openPlaylist: t.openPlaylist,openEntity: t.openEntity,@@ -75577,12 +75568,12 @@ var L8 = {})},"/follow": {- prefetch: (e, t) => ahe(e, t),- page: (e) => /* @__PURE__ */ (0, V.jsx)(khe, { ...e })+ prefetch: (e, t) => ihe(e, t),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(Ohe, { ...e })}-}, B8 = (e) => Object.hasOwn(z8, e), V8 = {- prefetch: (e, t) => Ufe(e, t),- page: (e, t) => /* @__PURE__ */ (0, V.jsx)(L_e, {+}, R8 = (e) => Object.hasOwn(L8, e), z8 = {+ prefetch: (e, t) => Bfe(e, t),+ page: (e, t) => /* @__PURE__ */ (0, V.jsx)(I_e, {...e,route: t.routeIndex,savePreference: t.savePeopleLayout,@@ -75595,48 +75586,48 @@ var L8 = {openFollowAuthor: t.openFollowAuthor,openFollowTag: t.openFollowTag})+}, B8 = {+ "/performers": z8,+ "/creators": z8,+ "/studios": z8,+ "/agencies": z8,+ "/tags": z8+}, V8 = {+ prefetch: (e) => kfe(e),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(ime, { ...e })}, H8 = {- "/performers": V8,- "/creators": V8,- "/studios": V8,- "/agencies": V8,- "/tags": V8+ "/performers/*": V8,+ "/studios/*": V8,+ "/creators/*": V8,+ "/series/*": V8,+ "/agencies/*": V8}, U8 = {- prefetch: (e) => Mfe(e),- page: (e) => /* @__PURE__ */ (0, V.jsx)(ame, { ...e })-}, W8 = {- "/performers/*": U8,- "/studios/*": U8,- "/creators/*": U8,- "/series/*": U8,- "/agencies/*": U8-}, G8 = {"/": {- prefetch: (e, t) => Nre(e, t),- page: (e) => /* @__PURE__ */ (0, V.jsx)(VA, { ...e })+ prefetch: (e, t) => Are(e, t),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(RA, { ...e })},"/junk-files": {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, V.jsx)(Q_e, { ...e })+ page: (e) => /* @__PURE__ */ (0, V.jsx)(Z_e, { ...e })}-}, K8 = (e) => Object.hasOwn(G8, e), SWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(ive, { ...e }) : /* @__PURE__ */ (0, V.jsx)(LM, { ...e }), q8 = {+}, W8 = (e) => Object.hasOwn(U8, e), SWe = (e) => e.mode === "notice" ? /* @__PURE__ */ (0, V.jsx)(rve, { ...e }) : /* @__PURE__ */ (0, V.jsx)(PM, { ...e }), G8 = {"catalog-filter": {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, V.jsx)(ple, { ...e })+ page: (e) => /* @__PURE__ */ (0, V.jsx)(ule, { ...e })},"feed-new": {- prefetch: (e) => Dfe(e),- page: (e) => /* @__PURE__ */ (0, V.jsx)(bme, { ...e })+ prefetch: (e) => wfe(e),+ page: (e) => /* @__PURE__ */ (0, V.jsx)(yme, { ...e })},"library-processing": {- prefetch: (e, t) => ej(t),+ prefetch: (e, t) => ZA(t),page: (e) => /* @__PURE__ */ (0, V.jsx)(SWe, { ...e })},search: {prefetch: async () => {},- page: (e) => /* @__PURE__ */ (0, V.jsx)(tye, { ...e })+ page: (e) => /* @__PURE__ */ (0, V.jsx)(eye, { ...e })}-}, J8 = (e) => Object.hasOwn(q8, e), Y8 = {+}, K8 = (e) => Object.hasOwn(G8, e), q8 = {"batch-dock": {prefetch: async () => {},page: () => /* @__PURE__ */ (0, V.jsx)(Ane, {})@@ -75647,9 +75638,13 @@ var L8 = {},"manage-header": {prefetch: async () => {},- page: () => /* @__PURE__ */ (0, V.jsx)(Jie, {})+ page: () => /* @__PURE__ */ (0, V.jsx)(Kie, {})+ },+ immerse: {+ prefetch: async () => {},+ page: () => /* @__PURE__ */ (0, V.jsx)(Fie, {})}-}, X8 = (e) => Object.hasOwn(Y8, e), CWe = [+}, J8 = (e) => Object.hasOwn(q8, e), CWe = ["/","/unseen","/watch-later",@@ -75657,20 +75652,20 @@ var L8 = {"/trash","/junk-files"], wWe = [+ ...Object.keys(F8),...Object.keys(L8),- ...Object.keys(z8),+ ...Object.keys(B8),...Object.keys(H8),- ...Object.keys(W8),...CWe-], Z8 = (e) => R8(e) || B8(e) || Object.hasOwn(H8, e) || Object.hasOwn(W8, e) || K8(e) || J8(e) || X8(e);-function Q8(e) {- return R8(e) ? L8[e] : B8(e) ? z8[e] : K8(e) ? G8[e] : J8(e) ? q8[e] : X8(e) ? Y8[e] : Object.hasOwn(H8, e) ? H8[e] : W8[e];+], Y8 = (e) => I8(e) || R8(e) || Object.hasOwn(B8, e) || Object.hasOwn(H8, e) || W8(e) || K8(e) || J8(e);+function X8(e) {+ return I8(e) ? F8[e] : R8(e) ? L8[e] : W8(e) ? U8[e] : K8(e) ? G8[e] : J8(e) ? q8[e] : Object.hasOwn(B8, e) ? B8[e] : H8[e];}function TWe(e, t, n) {- return Z8(e) ? Q8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));+ return Y8(e) ? X8(e).prefetch(t, n) : Promise.reject(/* @__PURE__ */ Error(`路由树里没有这一页:${e}`));}function EWe(e, t, n, r) {- return Q8(e).page(t, n, r);+ return X8(e).page(t, n, r);}//#endregion//#region node_modules/react-router/dist/production/lib/router/url.js@@ -75680,10 +75675,10 @@ function kWe(e, t) {}//#endregion//#region node_modules/react-router/dist/production/lib/router/history.js-function $8(e, t) {+function Z8(e, t) {if (e === !1 || e == null) throw Error(t);}-function e5(e, t) {+function Q8(e, t) {if (!e) {typeof console < "u" && console.warn(t);try {@@ -75694,7 +75689,7 @@ function e5(e, t) {function AWe({ pathname: e = "/", search: t = "", hash: n = "" }) {return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;}-function t5(e) {+function $8(e) {let t = {};if (e) {let n = e.indexOf("#");@@ -75710,17 +75705,17 @@ function jWe(e, t, n = "/") {return MWe(e, t, n, !1);}function MWe(e, t, n, r, i) {- let a = c5((typeof t == "string" ? t5(t) : t).pathname || "/", n);+ let a = o5((typeof t == "string" ? $8(t) : t).pathname || "/", n);if (a == null) return null;let o = i ?? NWe(e), s = null, c = KWe(a);for (let e = 0; s == null && e < o.length; ++e) s = GWe(o[e], c, r);return s;}function NWe(e) {- let t = n5(e);+ let t = e5(e);return PWe(t), t;}-function n5(e, t = [], n = [], r = "", i = !1) {+function e5(e, t = [], n = [], r = "", i = !1) {let a = (e, a, o = i, s) => {let c = {relativePath: s === void 0 ? e.path || "" : s,@@ -75730,14 +75725,14 @@ function n5(e, t = [], n = [], r = "", i = !1) {};if (c.relativePath.startsWith("/")) {if (!c.relativePath.startsWith(r) && o) return;- $8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);+ Z8(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);}- let l = f5([r, c.relativePath]), u = n.concat(c);- e.children && e.children.length > 0 && ($8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), n5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({+ let l = u5([r, c.relativePath]), u = n.concat(c);+ e.children && e.children.length > 0 && (Z8(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), e5(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({path: l,score: UWe(l, e.index),routesMeta: u.map((e, t) => {- let [n, r] = s5(e.relativePath, e.caseSensitive, t === u.length - 1);+ let [n, r] = a5(e.relativePath, e.caseSensitive, t === u.length - 1);return {...e,matcher: n,@@ -75748,24 +75743,24 @@ function n5(e, t = [], n = [], r = "", i = !1) {};return e.forEach((e, t) => {if (e.path === "" || !e.path?.includes("?")) a(e, t);- else for (let n of r5(e.path)) a(e, t, !0, n);+ else for (let n of t5(e.path)) a(e, t, !0, n);}), t;}-function r5(e) {+function t5(e) {let t = e.split("/");if (t.length === 0) return [];let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");if (r.length === 0) return i ? [a, ""] : [a];- let o = r5(r.join("/")), s = [];+ let o = t5(r.join("/")), s = [];return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);}function PWe(e) {e.sort((e, t) => e.score === t.score ? WWe(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);}-var FWe = /^:[\w-]+$/, IWe = /^:[\w-]+/, LWe = 3.5, RWe = 3, zWe = 2, BWe = 1, VWe = 10, HWe = -2, i5 = (e) => e === "*";+var FWe = /^:[\w-]+$/, IWe = /^:[\w-]+/, LWe = 3.5, RWe = 3, zWe = 2, BWe = 1, VWe = 10, HWe = -2, n5 = (e) => e === "*";function UWe(e, t) {let n = e.split("/"), r = n.length;- return n.some(i5) && (r += HWe), t && (r += zWe), n.filter((e) => !i5(e)).reduce((e, t) => e + (FWe.test(t) ? RWe : IWe.test(t) ? LWe : t === "" ? BWe : VWe), r);+ return n.some(n5) && (r += HWe), t && (r += zWe), n.filter((e) => !n5(e)).reduce((e, t) => e + (FWe.test(t) ? RWe : IWe.test(t) ? LWe : t === "" ? BWe : VWe), r);}function WWe(e, t) {return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;@@ -75777,39 +75772,39 @@ function GWe(e, t, n = !1) {path: s.relativePath,caseSensitive: s.caseSensitive,end: c- }, d = s.matcher && s.compiledParams ? o5(u, l, s.matcher, s.compiledParams) : a5(u, l), f = s.route;- if (!d && c && n && !r[r.length - 1].route.index && (d = a5({+ }, d = s.matcher && s.compiledParams ? i5(u, l, s.matcher, s.compiledParams) : r5(u, l), f = s.route;+ if (!d && c && n && !r[r.length - 1].route.index && (d = r5({path: s.relativePath,caseSensitive: s.caseSensitive,end: !1}, l)), !d) return null;Object.assign(i, d.params), o.push({params: i,- pathname: f5([a, d.pathname]),- pathnameBase: ZWe(f5([a, d.pathnameBase])),+ pathname: u5([a, d.pathname]),+ pathnameBase: ZWe(u5([a, d.pathnameBase])),route: f- }), d.pathnameBase !== "/" && (a = f5([a, d.pathnameBase]));+ }), d.pathnameBase !== "/" && (a = u5([a, d.pathnameBase]));}return o;}-function a5(e, t) {+function r5(e, t) {typeof e == "string" && (e = {path: e,caseSensitive: !1,end: !0});- let [n, r] = s5(e.path, e.caseSensitive, e.end);- return o5(e, t, n, r);+ let [n, r] = a5(e.path, e.caseSensitive, e.end);+ return i5(e, t, n, r);}-function o5(e, t, n, r) {+function i5(e, t, n, r) {let i = t.match(n);if (!i) return null;- let a = i[0], o = p5(a, 1), s = i.slice(1);+ let a = i[0], o = d5(a, 1), s = i.slice(1);return {params: r.reduce((e, { paramName: t, isOptional: n }, r) => {if (t === "*") {let e = s[r] || "";- o = p5(a.slice(0, a.length - e.length), 1);+ o = d5(a.slice(0, a.length - e.length), 1);}let i = s[r];return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;@@ -75819,8 +75814,8 @@ function o5(e, t, n, r) {pattern: e};}-function s5(e, t = !1, n = !0) {- e5(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);+function a5(e, t = !1, n = !0) {+ Q8(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {if (r.push({paramName: t,@@ -75837,30 +75832,30 @@ function KWe(e) {try {return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");} catch (t) {- return e5(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;+ return Q8(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;}}-function c5(e, t) {+function o5(e, t) {if (t === "/") return e;if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);return r && r !== "/" ? null : e.slice(n) || "/";}function qWe(e, t = "/") {- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? t5(e) : e, a;- return n ? (n = d5(n), a = n.startsWith("/") || n.startsWith("\\") ? l5(n.substring(1), "/") : l5(n, t)) : a = t, {+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? $8(e) : e, a;+ return n ? (n = l5(n), a = n.startsWith("/") || n.startsWith("\\") ? s5(n.substring(1), "/") : s5(n, t)) : a = t, {pathname: a,search: QWe(r),hash: $We(i)};}-function l5(e, t) {- let n = p5(t).split("/");+function s5(e, t) {+ let n = d5(t).split("/");return e.split("/").forEach((e) => {e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);}), n.length > 1 ? n.join("/") : "/";}-function u5(e, t, n, r) {+function c5(e, t, n, r) {return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;}function JWe(e) {@@ -75872,7 +75867,7 @@ function YWe(e) {}function XWe(e, t, n, r = !1) {let i;- typeof e == "string" ? i = t5(e) : (i = { ...e }, $8(!i.pathname || !i.pathname.includes("?"), u5("?", "pathname", "search", i)), $8(!i.pathname || !i.pathname.includes("#"), u5("#", "pathname", "hash", i)), $8(!i.search || !i.search.includes("#"), u5("#", "search", "hash", i)));+ typeof e == "string" ? i = $8(e) : (i = { ...e }, Z8(!i.pathname || !i.pathname.includes("?"), c5("?", "pathname", "search", i)), Z8(!i.pathname || !i.pathname.includes("#"), c5("#", "pathname", "hash", i)), Z8(!i.search || !i.search.includes("#"), c5("#", "search", "hash", i)));let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;if (o == null) s = n;else {@@ -75887,13 +75882,13 @@ function XWe(e, t, n, r = !1) {let c = qWe(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;}-var d5 = (e) => e.replace(/[\\/]{2,}/g, "/"), f5 = (e) => d5(e.join("/"));-function p5(e, t = 0) {+var l5 = (e) => e.replace(/[\\/]{2,}/g, "/"), u5 = (e) => l5(e.join("/"));+function d5(e, t = 0) {let n = e.length;for (; n > t && e.charCodeAt(n - 1) === 47;) n--;return n === e.length ? e : e.slice(0, n);}-var ZWe = (e) => p5(e).replace(/^\/*/, "/"), QWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $We = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, eGe = class {+var ZWe = (e) => d5(e).replace(/^\/*/, "/"), QWe = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $We = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, eGe = class {status;statusText;data;@@ -75907,9 +75902,9 @@ function tGe(e) {return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;}function nGe(e) {- return f5(e.map((e) => e.route.path).filter(Boolean)) || "/";+ return u5(e.map((e) => e.route.path).filter(Boolean)) || "/";}-var m5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;+var f5 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;function rGe(e, t) {let n = e;if (typeof n != "string" || !DWe.test(n)) return {@@ -75918,11 +75913,11 @@ function rGe(e, t) {to: n};let r = n, i = !1;- if (m5) try {- let e = new URL(window.location.href), r = OWe.test(n) ? new URL(kWe(n, e.protocol)) : new URL(n), a = c5(r.pathname, t);+ if (f5) try {+ let e = new URL(window.location.href), r = OWe.test(n) ? new URL(kWe(n, e.protocol)) : new URL(n), a = o5(r.pathname, t);r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;} catch {- e5(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);+ Q8(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);}return {absoluteURL: r,@@ -75932,16 +75927,16 @@ function rGe(e, t) {}//#endregion//#region node_modules/react-router/dist/production/lib/router/navigation.js-var h5 = new URL("http://localhost");-function g5(e) {+var p5 = new URL("http://localhost");+function m5(e) {if (e.createURL) return e.createURL("/");try {- return new URL(e.createHref("/"), h5);+ return new URL(e.createHref("/"), p5);} catch {- return h5;+ return p5;}}-function _5(e, t) {+function h5(e, t) {return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);}function iGe(e, t) {@@ -75949,26 +75944,26 @@ function iGe(e, t) {let n = t.protocol.toLowerCase();return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;}-function v5(e, t, n, r) {+function g5(e, t, n, r) {let i = null;try {i = e == null ? null : new URL(e, n);} catch {}- let a = new URL(t, n), o = i != null && !_5(i, n), s = !_5(a, n);+ let a = new URL(t, n), o = i != null && !h5(i, n), s = !h5(a, n);if (r === "reject") {if (o || s) throw Error("External navigation is not allowed");- } else if (s && (i == null || !iGe(e, i) || !_5(i, a))) throw Error("External navigation is not allowed");+ } else if (s && (i == null || !iGe(e, i) || !h5(i, a))) throw Error("External navigation is not allowed");}//#endregion//#region node_modules/react-router/dist/production/lib/router/router.js-var y5 = [+var _5 = ["POST","PUT","PATCH","DELETE"];-new Set(y5);-var aGe = ["GET", ...y5];+new Set(_5);+var aGe = ["GET", ..._5];new Set(aGe);var oGe = ["about:",@@ -75991,12 +75986,12 @@ function sGe(e) {}//#endregion//#region node_modules/react-router/dist/production/lib/context.js-var b5 = B.createContext(null);-b5.displayName = "DataRouter";+var v5 = B.createContext(null);+v5.displayName = "DataRouter";var cGe = B.createContext(null);cGe.displayName = "DataRouterState";-var x5 = B.createContext(null);-x5.displayName = "DataRouterData";+var y5 = B.createContext(null);+y5.displayName = "DataRouterData";var lGe = B.createContext(null);lGe.displayName = "DataRouterNavigation";var uGe = B.createContext(!1), dGe = B.createContext({ isTransitioning: !1 });@@ -76005,62 +76000,62 @@ var fGe = B.createContext(null);fGe.displayName = "Fetchers";var pGe = B.createContext(null);pGe.displayName = "Await";-var S5 = B.createContext(null);-S5.displayName = "Navigation";-var C5 = B.createContext(null);-C5.displayName = "Location";-var w5 = B.createContext({+var b5 = B.createContext(null);+b5.displayName = "Navigation";+var x5 = B.createContext(null);+x5.displayName = "Location";+var S5 = B.createContext({outlet: null,matches: [],isDataRoute: !1});-w5.displayName = "Route";-var T5 = B.createContext(!1);-T5.displayName = "IsDataRoute";-var E5 = B.createContext(void 0);-E5.displayName = "RouteId";-var D5 = B.createContext(null);-D5.displayName = "RouteError";+S5.displayName = "Route";+var C5 = B.createContext(!1);+C5.displayName = "IsDataRoute";+var w5 = B.createContext(void 0);+w5.displayName = "RouteId";+var T5 = B.createContext(null);+T5.displayName = "RouteError";//#endregion//#region node_modules/react-router/dist/production/lib/errors.js-var O5 = "REACT_ROUTER_ERROR", mGe = "REDIRECT", hGe = "ROUTE_ERROR_RESPONSE";+var E5 = "REACT_ROUTER_ERROR", mGe = "REDIRECT", hGe = "ROUTE_ERROR_RESPONSE";function gGe(e) {- if (e.startsWith(`${O5}:${mGe}:{`)) try {+ if (e.startsWith(`${E5}:${mGe}:{`)) try {let t = JSON.parse(e.slice(28));if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;} catch {}}function _Ge(e) {- if (e.startsWith(`${O5}:${hGe}:{`)) try {+ if (e.startsWith(`${E5}:${hGe}:{`)) try {let t = JSON.parse(e.slice(40));if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new eGe(t.status, t.statusText, t.data);} catch {}}//#endregion//#region node_modules/react-router/dist/production/lib/hooks.js-function k5() {- return B.useContext(C5) != null;+function D5() {+ return B.useContext(x5) != null;}-function A5() {- return $8(k5(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(C5).location;+function O5() {+ return Z8(D5(), "useLocation() may be used only in the context of a <Router> component."), B.useContext(x5).location;}-var j5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";+var k5 = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vGe() {- return B.useContext(T5) ? AGe() : yGe();+ return B.useContext(C5) ? AGe() : yGe();}function yGe() {- $8(k5(), "useNavigate() may be used only in the context of a <Router> component.");- let e = B.useContext(b5), { basename: t, navigator: n } = B.useContext(S5), { matches: r } = B.useContext(w5), { pathname: i } = A5(), a = JSON.stringify(YWe(r)), o = B.useRef(!1);+ Z8(D5(), "useNavigate() may be used only in the context of a <Router> component.");+ let e = B.useContext(v5), { basename: t, navigator: n } = B.useContext(b5), { matches: r } = B.useContext(S5), { pathname: i } = O5(), a = JSON.stringify(YWe(r)), o = B.useRef(!1);return B.useLayoutEffect(() => {o.current = !0;}), B.useCallback((r, s = {}) => {- if (e5(o.current, j5), !o.current) return;+ if (Q8(o.current, k5), !o.current) return;if (typeof r == "number") {n.go(r);return;}let c = XWe(r, JSON.parse(a), i, s.relative === "path");- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : f5([t, c.pathname])), v5(typeof r == "string" ? r : AWe(r), n.createHref(c), g5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : u5([t, c.pathname])), g5(typeof r == "string" ? r : AWe(r), n.createHref(c), m5(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);}, [t,n,@@ -76071,18 +76066,18 @@ function yGe() {}B.createContext(null);function bGe(e, t) {- return M5(e, t);+ return A5(e, t);}-function M5(e, t, n) {- $8(k5(), "useRoutes() may be used only in the context of a <Router> component.");- let { navigator: r } = B.useContext(S5), { matches: i } = B.useContext(w5), a = i[i.length - 1], o = a ? a.params : {};+function A5(e, t, n) {+ Z8(D5(), "useRoutes() may be used only in the context of a <Router> component.");+ let { navigator: r } = B.useContext(b5), { matches: i } = B.useContext(S5), a = i[i.length - 1], o = a ? a.params : {};a && a.pathname;let s = a ? a.pathnameBase : "/";a && a.route;- let c = A5(), l;+ let c = O5(), l;if (t) {- let e = typeof t == "string" ? t5(t) : t;- $8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;+ let e = typeof t == "string" ? $8(t) : t;+ Z8(s === "/" || e.pathname?.startsWith(s), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`), l = e;} else l = c;let u = l.pathname || "/", d = u;if (s !== "/") {@@ -76093,10 +76088,10 @@ function M5(e, t, n) {f = n ? n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : n.router.match(n.state.location) : jWe(e, { pathname: d });let p = EGe(f && f.map((e) => Object.assign({}, e, {params: Object.assign({}, o, e.params),- pathname: f5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),- pathnameBase: e.pathnameBase === "/" ? s : f5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])+ pathname: u5([s, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),+ pathnameBase: e.pathnameBase === "/" ? s : u5([s, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])})), i, n);- return t && p ? /* @__PURE__ */ B.createElement(C5.Provider, { value: {+ return t && p ? /* @__PURE__ */ B.createElement(x5.Provider, { value: {location: {pathname: "/",search: "",@@ -76148,27 +76143,27 @@ var SGe = /* @__PURE__ */ B.createElement(xGe, null), CGe = class extends B.Complet t = _Ge(e.digest);t && (e = t);}- let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(w5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(T5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(E5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(D5.Provider, {+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ B.createElement(S5.Provider, { value: this.props.routeContext }, /* @__PURE__ */ B.createElement(C5.Provider, { value: this.props.routeContext.isDataRoute }, /* @__PURE__ */ B.createElement(w5.Provider, { value: this.props.routeContext.matches[this.props.routeContext.matches.length - 1]?.route.id }, /* @__PURE__ */ B.createElement(T5.Provider, {value: e,children: this.props.component}))));return this.context ? /* @__PURE__ */ B.createElement(wGe, { error: e }, t) : t;}-}, N5 = /* @__PURE__ */ new WeakMap();+}, j5 = /* @__PURE__ */ new WeakMap();function wGe({ children: e, error: t }) {- let { basename: n, navigator: r } = B.useContext(S5);+ let { basename: n, navigator: r } = B.useContext(b5);if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {let e = gGe(t.digest);if (e) {- let i = N5.get(t);+ let i = j5.get(t);if (i) throw i;let a = rGe(e.location, n), o = a.absoluteURL || a.to;- if (v5(e.location, o, g5(r), "allow-explicit"), sGe(o)) throw Error("Invalid redirect location");- if (m5 && !N5.get(t)) {+ if (g5(e.location, o, m5(r), "allow-explicit"), sGe(o)) throw Error("Invalid redirect location");+ if (f5 && !j5.get(t)) {if (a.isExternal || e.reloadDocument) window.location.href = o;else {let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));- throw N5.set(t, n), n;+ throw j5.set(t, n), n;}}return /* @__PURE__ */ B.createElement("meta", {@@ -76180,8 +76175,8 @@ function wGe({ children: e, error: t }) {return e;}function TGe({ routeContext: e, match: t, children: n }) {- let r = B.useContext(b5);- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(w5.Provider, { value: e }, /* @__PURE__ */ B.createElement(T5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(E5.Provider, { value: t.route.id }, n)));+ let r = B.useContext(v5);+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ B.createElement(S5.Provider, { value: e }, /* @__PURE__ */ B.createElement(C5.Provider, { value: e.isDataRoute }, /* @__PURE__ */ B.createElement(w5.Provider, { value: t.route.id }, n)));}function EGe(e, t = [], n) {let r = n?.state;@@ -76194,7 +76189,7 @@ function EGe(e, t = [], n) {let i = e, a = r?.errors;if (a != null) {let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);- $8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));+ Z8(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));}let o = !1, s = -1;if (n && r) {@@ -76248,44 +76243,44 @@ function EGe(e, t = [], n) {}) : h();}, null);}-function P5(e) {+function M5(e) {return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;}function DGe(e) {- let t = B.useContext(b5);- return $8(t, P5(e)), t;+ let t = B.useContext(v5);+ return Z8(t, M5(e)), t;}function OGe(e) {- let t = B.useContext(x5);- return $8(t, P5(e)), t;+ let t = B.useContext(y5);+ return Z8(t, M5(e)), t;}-function F5(e) {- let t = B.useContext(E5);- return $8(t, `${e} can only be used on routes that contain a unique "id"`), t;+function N5(e) {+ let t = B.useContext(w5);+ return Z8(t, `${e} can only be used on routes that contain a unique "id"`), t;}function kGe() {- let e = B.useContext(D5), t = OGe("useRouteError"), n = F5("useRouteError");+ let e = B.useContext(T5), t = OGe("useRouteError"), n = N5("useRouteError");return e === void 0 ? t.errors?.[n] : e;}function AGe() {- let { router: e } = DGe("useNavigate"), t = F5("useNavigate"), n = B.useRef(!1);+ let { router: e } = DGe("useNavigate"), t = N5("useNavigate"), n = B.useRef(!1);return B.useLayoutEffect(() => {n.current = !0;}), B.useCallback(async (r, i = {}) => {- e5(n.current, j5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {+ Q8(n.current, k5), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {fromRouteId: t,...i}));}, [e, t]);}-var I5 = {};+var P5 = {};function jGe(e, t, n) {- !t && !I5[e] && (I5[e] = !0, e5(!1, n));+ !t && !P5[e] && (P5[e] = !0, Q8(!1, n));}B.memo(MGe);function MGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {- let a = B.useContext(b5);- return $8(a, "You must render this element inside a <DataRouterContext.Provider> element"), M5(e, void 0, {+ let a = B.useContext(v5);+ return Z8(a, "You must render this element inside a <DataRouterContext.Provider> element"), A5(e, void 0, {router: a.router,manifest: t,state: n,@@ -76293,11 +76288,11 @@ function MGe({ routes: e, manifest: t, state: n, isStatic: r, onError: i }) {onError: i});}-function L5(e) {- $8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");+function F5(e) {+ Z8(!1, "A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.");}function NGe({ basename: e = "/", children: t = null, location: n, navigationType: r = "POP", navigator: i, static: a = !1, useTransitions: o }) {- $8(!k5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");+ Z8(!D5(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s = e.replace(/^\/*/, "/"), c = B.useMemo(() => ({basename: s,navigator: i,@@ -76310,9 +76305,9 @@ function NGe({ basename: e = "/", children: t = null, location: n, navigationTypa,o]);- typeof n == "string" && (n = t5(n));+ typeof n == "string" && (n = $8(n));let { pathname: l = "/", search: u = "", hash: d = "", state: f = null, key: p = "default", mask: m } = n, h = B.useMemo(() => {- let e = c5(l, s);+ let e = o5(l, s);return e == null ? null : {location: {pathname: e,@@ -76334,27 +76329,27 @@ function NGe({ basename: e = "/", children: t = null, location: n, navigationTypr,m]);- return e5(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ B.createElement(S5.Provider, { value: c }, /* @__PURE__ */ B.createElement(C5.Provider, {+ return Q8(h != null, `<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`), h == null ? null : /* @__PURE__ */ B.createElement(b5.Provider, { value: c }, /* @__PURE__ */ B.createElement(x5.Provider, {children: t,value: h}));}-function R5({ children: e, location: t }) {- return bGe(z5(e), t);+function I5({ children: e, location: t }) {+ return bGe(L5(e), t);}B.Component;-function z5(e, t = []) {+function L5(e, t = []) {let n = [];return B.Children.forEach(e, (e, r) => {if (!B.isValidElement(e)) return;let i = [...t, r];if (e.type === B.Fragment) {- n.push.apply(n, z5(e.props.children, i));+ n.push.apply(n, L5(e.props.children, i));return;}- $8(e.type === L5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);+ Z8(e.type === F5, `[${typeof e.type == "string" ? e.type : e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a = e.props;- $8(!a.index || !a.children, "An index route cannot have child routes.");+ Z8(!a.index || !a.children, "An index route cannot have child routes.");let o = {id: a.id || i.join("-"),caseSensitive: a.caseSensitive,@@ -76373,13 +76368,31 @@ function z5(e, t = []) {handle: a.handle,lazy: a.lazy};- a.children && (o.children = z5(a.children, i)), n.push(o);+ a.children && (o.children = L5(a.children, i)), n.push(o);}), n;}//#endregion+//#region src/react/providers.tsx+var R5 = null;+function PGe() {+ return R5?.isConnected || (R5 = document.createElement("div"), R5.className = "peach-react", R5.dataset.reactOverlays = "", document.body.append(R5)), R5;+}+function z5({ children: e }) {+ return /* @__PURE__ */ (0, V.jsx)(uS, {+ client: z,+ children: /* @__PURE__ */ (0, V.jsx)(rd, {+ reducedMotion: "user",+ children: /* @__PURE__ */ (0, V.jsx)(Qv, {+ getContainer: PGe,+ children: e+ })+ })+ });+}+//#endregion//#region src/react/router/router.tsxvar B5 = (0, B.createContext)(0), V5 = (0, B.createContext)(null);-function PGe({ children: e }) {+function FGe({ children: e }) {let [t, n] = (0, B.useState)(() => ft.navigation);return (0, B.useLayoutEffect)(() => (n(ft.navigation), ft.listen(n)), []), /* @__PURE__ */ (0, V.jsx)(B5.Provider, {value: t.seq,@@ -76391,44 +76404,44 @@ function PGe({ children: e }) {})});}-function FGe() {+function IGe() {let e = (0, B.useContext)(B5);return (0, B.useLayoutEffect)(() => {queueMicrotask(() => pt(e));}, [e]), null;}-function IGe({ target: e }) {+function LGe({ target: e }) {let t = vGe();return (0, B.useLayoutEffect)(() => {e.current = t;}), null;}-function LGe(e, t, n) {+function RGe(e, t, n) {let r = new URL(e, window.location.href);- if (!R8(r.pathname)) {+ if (!I8(r.pathname)) {t.navigate(e);return;}n(`${r.pathname}${r.search}${r.hash}`);}-function RGe() {+function zGe() {let e = (0, B.useContext)(V5), [t, n] = (0, B.useState)(dt), r = (0, B.useRef)(null);(0, B.useLayoutEffect)(() => (n(dt()), ut((e, t) => {t ? (0, $f.flushSync)(() => n(e)) : n(e);})), []);let i = (0, B.useMemo)(() => (t) => {- e && r.current && LGe(t, e, r.current);+ e && r.current && RGe(t, e, r.current);}, [e]);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(IGe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(zGe, {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(LGe, { target: r }), e ? t.map((t) => /* @__PURE__ */ (0, V.jsx)(BGe, {entry: t,- children: /* @__PURE__ */ (0, V.jsx)(BGe, {+ children: /* @__PURE__ */ (0, V.jsx)(VGe, {entry: t,actions: e,go: i})}, t.revision)) : null] });}-var zGe = class extends B.Component {+var BGe = class extends B.Component {state = { failed: !1 };static getDerivedStateFromError() {return { failed: !0 };@@ -76439,53 +76452,53 @@ var zGe = class extends B.Component {render() {return this.state.failed ? null : this.props.children;}-}, BGe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {- return Z8(e.path) ? (0, $f.createPortal)(EWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;+}, VGe = (0, B.memo)(function({ entry: e, actions: t, go: n }) {+ return Y8(e.path) ? (0, $f.createPortal)(EWe(e.path, e.props, t, n), e.host, String(e.revision)) : null;});-function VGe({ children: e }) {- let t = A5(), n = ct(t.state);- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(R5, {+function HGe({ children: e }) {+ let t = O5(), n = ct(t.state);+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)(I5, {location: n ?? t,children: [- wWe.map((e) => /* @__PURE__ */ (0, V.jsx)(L5, {+ wWe.map((e) => /* @__PURE__ */ (0, V.jsx)(F5, {path: e,element: null}, e)),- /* @__PURE__ */ (0, V.jsx)(L5, {+ /* @__PURE__ */ (0, V.jsx)(F5, {path: "/resource-sync",element: null}),- /* @__PURE__ */ (0, V.jsx)(L5, {+ /* @__PURE__ */ (0, V.jsx)(F5, {path: "*",element: e})]- }), /* @__PURE__ */ (0, V.jsxs)(R5, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(L5, {+ }), /* @__PURE__ */ (0, V.jsxs)(I5, { children: [st.map((e) => /* @__PURE__ */ (0, V.jsx)(F5, {path: e,element: null- }, e)), /* @__PURE__ */ (0, V.jsx)(L5, {+ }, e)), /* @__PURE__ */ (0, V.jsx)(F5, {path: "*",element: null})] })] });}-function HGe({ children: e, actions: t = null }) {- return /* @__PURE__ */ (0, V.jsx)(sw, { children: /* @__PURE__ */ (0, V.jsx)(V5.Provider, {+function UGe({ children: e, actions: t = null }) {+ return /* @__PURE__ */ (0, V.jsx)(z5, { children: /* @__PURE__ */ (0, V.jsx)(V5.Provider, {value: t,- children: /* @__PURE__ */ (0, V.jsxs)(PGe, { children: [- /* @__PURE__ */ (0, V.jsx)(FGe, {}),- /* @__PURE__ */ (0, V.jsx)(RGe, {}),- /* @__PURE__ */ (0, V.jsx)(VGe, { children: e })+ children: /* @__PURE__ */ (0, V.jsxs)(FGe, { children: [+ /* @__PURE__ */ (0, V.jsx)(IGe, {}),+ /* @__PURE__ */ (0, V.jsx)(zGe, {}),+ /* @__PURE__ */ (0, V.jsx)(HGe, { children: e })] })}) });}-var UGe = { onCaughtError: (e) => {+var WGe = { onCaughtError: (e) => {globalThis.reportError?.(e);} }, H5 = null;-function WGe(e) {+function GGe(e) {if (H5) return;- H5 = (0, cS.createRoot)(document.createElement("div"), UGe);+ H5 = (0, MN.createRoot)(document.createElement("div"), WGe);let t = H5;- (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(HGe, { actions: e })));+ (0, $f.flushSync)(() => t.render(/* @__PURE__ */ (0, V.jsx)(UGe, { actions: e })));}//#endregion//#region src/number-setting.ts@@ -76494,35 +76507,35 @@ function U5(e, t, n, r) {}//#endregion//#region src/react/settings/configuration-summary.tsx-var GGe = (e) => {+var KGe = (e) => {let t = e.updates;return t ? t.message ? `${t.current_version} · ${t.message}` : t.current_version : "未取得";};-function KGe({ openConfiguration: e }) {- let t = ES({- queryKey: vR,- queryFn: ({ signal: e }) => yR(e)+function qGe({ openConfiguration: e }) {+ let t = TS({+ queryKey: _R,+ queryFn: ({ signal: e }) => vR(e)}), n = t.data;return /* @__PURE__ */ (0, V.jsxs)("div", {className: "flex flex-col",- children: [n ? /* @__PURE__ */ (0, V.jsxs)(Bk, { children: [- /* @__PURE__ */ (0, V.jsx)(Vk, {+ children: [n ? /* @__PURE__ */ (0, V.jsxs)(Lk, { children: [+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "媒体库",children: `${n.library_count} 个`}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "端口",children: String(n.port)}),- /* @__PURE__ */ (0, V.jsx)(Vk, {+ /* @__PURE__ */ (0, V.jsx)(Rk, {term: "更新",- children: GGe(n)+ children: KGe(n)})- ] }) : /* @__PURE__ */ (0, V.jsx)(Pk, { children: /* @__PURE__ */ (0, V.jsx)(Y, {+ ] }) : /* @__PURE__ */ (0, V.jsx)(jk, { children: /* @__PURE__ */ (0, V.jsx)(Y, {tone: "error",title: "配置读取失败",children: t.error ? W(t.error) : "未取得配置,请刷新页面重试。"- }) }), /* @__PURE__ */ (0, V.jsx)(Fk, {+ }) }), /* @__PURE__ */ (0, V.jsx)(Mk, {status: "媒体文件夹、端口、代理与更新在配置页上改。",children: /* @__PURE__ */ (0, V.jsx)(J, {onClick: e,@@ -76579,7 +76592,7 @@ function K5({ id: e, label: t, options: n, value: r, disabled: i = !1, busy: a ="aria-describedby": s});}-function qGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {+function JGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSettle: o }) {let s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)({onStep: a,onSettle: o@@ -76614,7 +76627,7 @@ function qGe({ field: e, label: t, max: n, value: r, hidden: i, onStep: a, onSet}//#endregion//#region src/react/settings-panel/glow-settings.tsx-var JGe = [+var YGe = [["strength","强度",@@ -76641,7 +76654,7 @@ var JGe = [100]];-function YGe({ host: e, spot: i, index: a, glow: o }) {+function XGe({ host: e, spot: i, index: a, glow: o }) {let s = t[a], c = (0, B.useRef)(null), l = (0, B.useRef)(null), d = (0, B.useRef)(null), [f, p] = (0, B.useState)("all");(0, B.useLayoutEffect)(() => {let [e, t, n] = [@@ -76680,7 +76693,7 @@ function YGe({ host: e, spot: i, index: a, glow: o }) {children: m})]}),- /* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-down" })+ /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })]}), /* @__PURE__ */ (0, V.jsxs)("div", {className: "popmenu",@@ -76719,7 +76732,7 @@ function YGe({ host: e, spot: i, index: a, glow: o }) {})]});}-function XGe({ host: e }) {+function ZGe({ host: e }) {let t = e.store.value.homeGlow, n = f(t.preset);return /* @__PURE__ */ (0, V.jsxs)("section", {"data-glow-setting": "",@@ -76749,7 +76762,7 @@ function XGe({ host: e }) {}),/* @__PURE__ */ (0, V.jsx)("div", {"data-glow-fields": "",- children: JGe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(qGe, {+ children: YGe.map(([r, i, a]) => /* @__PURE__ */ (0, V.jsx)(JGe, {field: r,label: i,max: a,@@ -76771,7 +76784,7 @@ function XGe({ host: e }) {hidden: n,children: [/* @__PURE__ */ (0, V.jsx)("h4", { children: "颜色" }), /* @__PURE__ */ (0, V.jsx)("div", {"data-glow-stops": "",- children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(YGe, {+ children: i.map((n, r) => /* @__PURE__ */ (0, V.jsx)(XGe, {host: e,spot: n,index: r,@@ -76796,7 +76809,7 @@ function XGe({ host: e }) {}//#endregion//#region src/react/settings-panel/number-setting.tsx-var ZGe = {+var QGe = {batchSizeSetting: {min: 1,max: 200,@@ -76839,7 +76852,7 @@ var ZGe = {}}, q5 = (e) => `peach.number.${e}`;function J5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {- let a = ZGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);+ let a = QGe[e], { min: o, max: s, unit: c, fallback: l } = a, u = a.optional === !0, d = (0, B.useRef)(0);d.current ||= U5(Number(localStorage.getItem(q5(e))), o, s, n && n > 0 ? n : l);let [f, p] = (0, B.useState)(n ?? 0), [m, h] = (0, B.useState)(String(n && n > 0 ? n : d.current)), [g, _] = (0, B.useState)(""), v = (0, B.useRef)(null), y = (0, B.useRef)(i);y.current = i, (0, B.useLayoutEffect)(() => {@@ -76918,7 +76931,7 @@ function J5({ id: e, label: t, value: n, disabled: r = !1, onApply: i }) {//#endregion//#region src/react/sidebar/sidebar-order.tsfunction Y5(e) {- let { mutate: t } = Jj();+ let { mutate: t } = Gj();return (0, B.useCallback)((n) => {e.value.sidebarOrder = n, e.save(), t({ sidebarOrder: n }, { onError: () => {} });}, [e, t]);@@ -76933,8 +76946,8 @@ function X5(e, t, n, r) {}//#endregion//#region src/react/settings-panel/sidebar-order.tsx-var QGe = "__home__", Z5 = (e) => e === "" ? QGe : e;-function $Ge({ host: e }) {+var $Ge = "__home__", Z5 = (e) => e === "" ? $Ge : e;+function eKe({ host: e }) {let t = Y5(e.store), n = e.store.value.sidebarOrder, r = new Map(e.navCatalog.map((e) => [e[0], e])), i = n.map((e) => r.get(e)).filter((e) => e !== void 0), a = e.navCatalog.filter(([e]) => !n.includes(e)), [o, s] = (0, B.useState)(null), [c, l] = (0, B.useState)(!1), [u, d] = (0, B.useState)(null), [f, p] = (0, B.useState)(null), m = (0, B.useRef)(null), h = (0, B.useRef)(null), g = (e, r, i) => {let a = X5(n, e, r, i);a && t(a);@@ -76996,9 +77009,9 @@ function $Ge({ host: e }) {/* @__PURE__ */ (0, V.jsx)("i", {"data-sidebar-grip": "","aria-hidden": "true",- children: /* @__PURE__ */ (0, V.jsx)(aT, { name: "grip-vertical" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "grip-vertical" })}),- /* @__PURE__ */ (0, V.jsx)(aT, { name: a ?? "" }),+ /* @__PURE__ */ (0, V.jsx)(tT, { name: a ?? "" }),/* @__PURE__ */ (0, V.jsx)("b", { children: r })]}), /* @__PURE__ */ (0, V.jsxs)("span", {@@ -77012,7 +77025,7 @@ function $Ge({ host: e }) {title: "上移",disabled: o === 0,onClick: () => _(e, -1),- children: /* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-up" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-up" })}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button",@@ -77022,7 +77035,7 @@ function $Ge({ host: e }) {title: "下移",disabled: o === i.length - 1,onClick: () => _(e, 1),- children: /* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })}),/* @__PURE__ */ (0, V.jsx)("button", {type: "button",@@ -77034,7 +77047,7 @@ function $Ge({ host: e }) {onClick: () => {n.length > 1 && t(n.filter((t) => t !== e));},- children: /* @__PURE__ */ (0, V.jsx)(aT, { name: "eye-off" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "eye-off" })})]})]@@ -77054,13 +77067,13 @@ function $Ge({ host: e }) {ref: m,onClick: b,children: v ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [- /* @__PURE__ */ (0, V.jsx)(aT, { name: v[2] ?? "" }),+ /* @__PURE__ */ (0, V.jsx)(tT, { name: v[2] ?? "" }),/* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-add-label": "",children: v[1]}),- /* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-down" })- ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(aT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })+ /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })+ ] }) : /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "check" }), /* @__PURE__ */ (0, V.jsx)("span", { children: "全部页面都已显示" })] })}), a.length ? /* @__PURE__ */ (0, V.jsx)("div", {className: "popmenu","data-sidebar-add-menu": "",@@ -77078,7 +77091,7 @@ function $Ge({ host: e }) {onClick: () => {s(Z5(e)), y(), m.current?.focus();},- children: [/* @__PURE__ */ (0, V.jsx)(aT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: n ?? "" }), /* @__PURE__ */ (0, V.jsx)("span", { children: t })]}, Z5(e)))}) : null]}), /* @__PURE__ */ (0, V.jsx)("button", {@@ -77104,7 +77117,7 @@ var Q5 = [["关注", "ri-rss-line"],["安全", "ri-shield-check-line"],["这台电脑", "ri-macbook-line"]-], eKe = [+], tKe = [["seed", "随机"],["rating", "评分"],["o", "高潮计数"],@@ -77113,16 +77126,16 @@ var Q5 = [["size", "体积"],["new", "入库时间"],["played", "观看时间"]-], tKe = [["desc", "降序"], ["asc", "升序"]], nKe = [+], nKe = [["desc", "降序"], ["asc", "升序"]], rKe = [["off", "关闭"],["precise", "精准"],["coarse", "粗略"]-], rKe = [+], iKe = [["7", "每周"],["30", "每月"],["90", "每季"],["0", "从不"]-], iKe = [[+], aKe = [["cover","官方封面",""@@ -77130,7 +77143,7 @@ var Q5 = ["thumbnail","预览图",""-]], aKe = [+]], oKe = [["feedHideGroupSetting","feedHideGroupCompilations",@@ -77155,19 +77168,19 @@ var Q5 = ["feedHideExcerptDescription","把出过的正片剪成十几分钟单卖的,比如ハイライト厂牌。"]-], oKe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", $5 = null, e7 = null, t7 = null, n7 = {+], sKe = "button:not([disabled]),input:not([disabled]),textarea:not([disabled]),a[href]", $5 = null, e7 = null, t7 = null, n7 = {open: !1,closing: !1,epoch: 0,tab: 0,machine: "none"}, r7 = 0, i7 = null;-function sKe() {- return (!e7 || !t7?.isConnected) && (e7?.unmount(), t7 = document.createElement("div"), t7.dataset.settingsHost = "", document.body.append(t7), e7 = (0, cS.createRoot)(t7)), e7;+function cKe() {+ return (!e7 || !t7?.isConnected) && (e7?.unmount(), t7 = document.createElement("div"), t7.dataset.settingsHost = "", document.body.append(t7), e7 = (0, MN.createRoot)(t7)), e7;}function a7() {let e = $5;- e && (0, $f.flushSync)(() => sKe().render(/* @__PURE__ */ (0, V.jsx)(sw, { children: /* @__PURE__ */ (0, V.jsx)(mKe, {+ e && (0, $f.flushSync)(() => cKe().render(/* @__PURE__ */ (0, V.jsx)(z5, { children: /* @__PURE__ */ (0, V.jsx)(hKe, {host: e,view: n7}) })));@@ -77178,7 +77191,7 @@ function o7(e) {...e}, a7();}-async function cKe(e) {+async function lKe(e) {if (n7.machine === "summary") return;let t = await e.configurable();if (n7.open) {@@ -77187,16 +77200,16 @@ async function cKe(e) {return;}try {- await bR(new AbortController().signal);+ await yR(new AbortController().signal);} catch {}n7.open && o7({ machine: "summary" });}}-function lKe(e = "") {+function uKe(e = "") {let t = $5;if (!t) return;we(), r7 += 1, i7 ||= document.activeElement, t.sound("whoosh"), document.documentElement.style.overflow = "hidden", document.body.classList.add("settings-open");- let n = Q5.findIndex(([t]) => t === e), r = Lue();+ let n = Q5.findIndex(([t]) => t === e), r = Pue();o7({open: !0,closing: !1,@@ -77204,7 +77217,7 @@ function lKe(e = "") {tab: n >= 0 ? n : n7.tab}), r.then((e) => {e && t.syncRemote(e);- }), cKe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());+ }), lKe(t), queueMicrotask(() => document.getElementById("settingsClose")?.focus());}function s7() {if (!n7.open || n7.closing) return;@@ -77222,24 +77235,24 @@ function s7() {}t7?.querySelector("[data-settings-card]")?.addEventListener("animationend", t, { once: !0 }), setTimeout(t, 380);}-var uKe = {- open: lKe,+var dKe = {+ open: uKe,close: s7,isOpen: () => n7.open,reveal: (e) => queueMicrotask(() => document.querySelector(e)?.scrollIntoView({ block: "nearest" }))};-function dKe(e) {- return $5 = e, a7(), uKe;-}function fKe(e) {+ return $5 = e, a7(), dKe;+}+function pKe(e) {if (e.key !== "Tab") return;- let t = [...e.currentTarget.querySelectorAll(oKe)].filter((e) => e.getClientRects().length > 0);+ let t = [...e.currentTarget.querySelectorAll(sKe)].filter((e) => e.getClientRects().length > 0);if (!t.length) return;let n = t[0], r = t[t.length - 1];e.shiftKey && document.activeElement === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());}var c7 = (e) => `settings-tab-${e}`, l7 = (e) => e === Q5.length - 1 ? "machineGroup" : `settings-group-${e}`;-function pKe({ tab: e, epoch: t, onSelect: n }) {+function mKe({ tab: e, epoch: t, onSelect: n }) {let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(e), s = (0, B.useRef)([]), c = (e, t) => {let n = i.current;if (!n) return;@@ -77311,7 +77324,7 @@ function pKe({ tab: e, epoch: t, onSelect: n }) {onPointerEnter: (e) => {e.pointerType !== "touch" && c(e.currentTarget, !0);},- children: [/* @__PURE__ */ (0, V.jsx)(Uie, { name: r }), t]+ children: [/* @__PURE__ */ (0, V.jsx)(Vie, { name: r }), t]}, t))]});@@ -77355,7 +77368,7 @@ var p7 = ({ html: e, ...t }) => /* @__PURE__ */ (0, V.jsx)("small", {...t,dangerouslySetInnerHTML: { __html: e }}), m7 = () => `${Ke("保存中")}<span>正在保存…</span>`, h7 = (e, t) => e instanceof Error && e.message || t;-function mKe({ host: e, view: t }) {+function hKe({ host: e, view: t }) {(0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);let n = e.store.value, r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(t.tab), l = () => {let [e, t] = [i.current, o.current];@@ -77387,7 +77400,7 @@ function mKe({ host: e, view: t }) {"aria-labelledby": "settingsTitle","data-closing": t.closing ? "" : void 0,ref: r,- onKeyDown: fKe,+ onKeyDown: pKe,onClick: (e) => {e.target === e.currentTarget && s7();},@@ -77412,7 +77425,7 @@ function mKe({ host: e, view: t }) {})})]}),- /* @__PURE__ */ (0, V.jsx)(pKe, {+ /* @__PURE__ */ (0, V.jsx)(mKe, {tab: t.tab,epoch: d,onSelect: f@@ -77474,23 +77487,23 @@ function mKe({ host: e, view: t }) {n.homeGlow.on = t, p(), e.changed("glow");}}),- /* @__PURE__ */ (0, V.jsx)(XGe, { host: e }),+ /* @__PURE__ */ (0, V.jsx)(ZGe, { host: e }),/* @__PURE__ */ (0, V.jsxs)("section", {"data-sidebar-setting": "","aria-labelledby": "sidebarOrderTitle",children: [/* @__PURE__ */ (0, V.jsxs)("span", { children: [/* @__PURE__ */ (0, V.jsx)("b", {id: "sidebarOrderTitle",children: "左侧导航"- }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)($Ge, { host: e })]+ }), /* @__PURE__ */ (0, V.jsx)("small", { children: "直接拖动排序;可隐藏入口,也可从具体页面列表重新添加。窄栏和筛选抽屉会保持一致。" })] }), /* @__PURE__ */ (0, V.jsx)(eKe, { host: e })]})]}),- /* @__PURE__ */ (0, V.jsx)(gKe, {+ /* @__PURE__ */ (0, V.jsx)(_Ke, {host: e,tab: t.tab,epoch: d}),- /* @__PURE__ */ (0, V.jsx)(vKe, {+ /* @__PURE__ */ (0, V.jsx)(yKe, {host: e,tab: t.tab,epoch: d@@ -77498,12 +77511,12 @@ function mKe({ host: e, view: t }) {/* @__PURE__ */ (0, V.jsx)(u7, {index: 3,tab: t.tab,- children: /* @__PURE__ */ (0, V.jsx)(bKe, {+ children: /* @__PURE__ */ (0, V.jsx)(xKe, {host: e,epoch: d})}),- /* @__PURE__ */ (0, V.jsx)(xKe, {+ /* @__PURE__ */ (0, V.jsx)(SKe, {host: e,tab: t.tab,epoch: d@@ -77523,7 +77536,7 @@ function mKe({ host: e, view: t }) {/* @__PURE__ */ (0, V.jsx)(u7, {index: 6,tab: t.tab,- children: /* @__PURE__ */ (0, V.jsx)(CKe, {+ children: /* @__PURE__ */ (0, V.jsx)(wKe, {host: e,machine: t.machine})@@ -77534,7 +77547,7 @@ function mKe({ host: e, view: t }) {})});}-function hKe(e, t) {+function gKe(e, t) {let n = e.querySelector("[data-select-label]");if (!n) return;n.querySelector("[data-icon-swap]") || (n.innerHTML = je("arrow-up", "arrow-down", "a", {@@ -77544,7 +77557,7 @@ function hKe(e, t) {let r = n.querySelector("[data-sort-direction-label]");r && (r.textContent = t ? "升序" : "降序");}-function gKe({ host: e, tab: t, epoch: n }) {+function _Ke({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save(), a = r.defaultSort === "seed", o = r.defaultSortDirection === "asc";return /* @__PURE__ */ (0, V.jsxs)(u7, {index: 1,@@ -77577,7 +77590,7 @@ function gKe({ host: e, tab: t, epoch: n }) {children: [/* @__PURE__ */ (0, V.jsx)(K5, {id: "defaultSortSetting",label: "默认排序",- options: eKe,+ options: tKe,value: r.defaultSort,epoch: n,onPick: (t) => {@@ -77586,7 +77599,7 @@ function gKe({ host: e, tab: t, epoch: n }) {}), /* @__PURE__ */ (0, V.jsx)(K5, {id: "defaultSortDirectionSetting",label: "默认排序方向",- options: tKe,+ options: nKe,value: o ? "asc" : "desc",hidden: a,disabled: a,@@ -77595,7 +77608,7 @@ function gKe({ host: e, tab: t, epoch: n }) {onPick: (t) => {r.defaultSortDirection = t, i(), e.changed("sortDirection");},- decorate: (e) => hKe(e, o)+ decorate: (e) => gKe(e, o)})]})}),@@ -77619,14 +77632,14 @@ function gKe({ host: e, tab: t, epoch: n }) {id: "javImageSetting",name: "jav-image",legend: "JAV 默认封面",- options: iKe,+ options: aKe,value: r.javImage,attr: "data-jav-image-choice",variant: "javimageswitch",text: !0,epoch: n,onChoose: (t) => {- r.javImage = AC(t), i(), e.changed("javImage");+ r.javImage = kC(t), i(), e.changed("javImage");}})}),@@ -77656,7 +77669,7 @@ function gKe({ host: e, tab: t, epoch: n }) {r.feedAutoScroll = t, i(), e.changed("feedAutoScroll");}}),- aKe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(_Ke, {+ oKe.map(([t, n, r, i, a, o]) => /* @__PURE__ */ (0, V.jsx)(vKe, {host: e,id: t,settingKey: n,@@ -77668,8 +77681,8 @@ function gKe({ host: e, tab: t, epoch: n }) {]});}-function _Ke({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {- let s = Jj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {+function vKe({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a, description: o }) {+ let s = Gj(), [c, l] = (0, B.useState)(null), u = (0, B.useRef)(null), d = e.store.value, f = (t) => {l(t), Ue(u.current), s.mutate({ [n]: t }, {onSuccess: (i) => {d[n] = i[n] === !0, e.store.save(), e.changed("feedCompilations"), e.receipt(t ? `新作已收起${r}` : `新作已列出${r}`);@@ -77697,7 +77710,7 @@ function _Ke({ host: e, id: t, settingKey: n, label: r, title: i, describedBy: a})]});}-function vKe({ host: e, tab: t, epoch: n }) {+function yKe({ host: e, tab: t, epoch: n }) {let r = e.store.value, i = () => e.store.save();return /* @__PURE__ */ (0, V.jsxs)(u7, {index: 2,@@ -77751,7 +77764,7 @@ function vKe({ host: e, tab: t, epoch: n }) {}, n)})}),- /* @__PURE__ */ (0, V.jsx)(yKe, { epoch: n }),+ /* @__PURE__ */ (0, V.jsx)(bKe, { epoch: n }),/* @__PURE__ */ (0, V.jsx)(f7, {title: "相关推荐",description: "详情下方一次显示的相似作品数量。",@@ -77770,15 +77783,15 @@ function vKe({ host: e, tab: t, epoch: n }) {]});}-function yKe({ epoch: e }) {- let t = ES({- queryKey: Gj,- queryFn: ({ signal: e }) => qj(e)- }), n = zue(), r = n.reset;+function bKe({ epoch: e }) {+ let t = TS({+ queryKey: Hj,+ queryFn: ({ signal: e }) => Wj(e)+ }), n = Iue(), r = n.reset;(0, B.useEffect)(() => {r();}, [e, r]);- let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Pe("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Vue(t.data)) : "读取运行状态…";+ let i = t.data?.mode || "off", a = n.isPending ? m7() : t.isFetching ? Pe("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : t.data ? g7(Rue(t.data)) : "读取运行状态…";return /* @__PURE__ */ (0, V.jsx)(f7, {title: "视频缩略图采集",description: /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("small", { children: "拖动进度条时按时间点看画面。精准每 10 秒一张,粗略每 30 秒一张;两小时的片子约 720 / 240 张,占 20–100 / 7–35 MB。只采集本机磁盘上的片子,网盘上的每张都要回源拉一次。" }), /* @__PURE__ */ (0, V.jsx)(p7, {@@ -77789,7 +77802,7 @@ function yKe({ epoch: e }) {children: /* @__PURE__ */ (0, V.jsx)(K5, {id: "videoThumbnailSetting",label: "视频缩略图采集",- options: nKe,+ options: rKe,value: n.isPending || n.isError ? n.variables ?? i : i,disabled: n.isPending || t.isFetching,epoch: e,@@ -77797,8 +77810,8 @@ function yKe({ epoch: e }) {})});}-function bKe({ host: e, epoch: t }) {- let n = e.store.value, r = Jj();+function xKe({ host: e, epoch: t }) {+ let n = e.store.value, r = Gj();return /* @__PURE__ */ (0, V.jsx)(f7, {title: "搜索记录",description: "保存在 Peach 账本,所有访问端同步。",@@ -77815,8 +77828,8 @@ function bKe({ host: e, epoch: t }) {})});}-function xKe({ host: e, tab: t, epoch: n }) {- let r = e.store.value, i = Jj(), o = Jj(), [s, c] = (0, B.useState)("");+function SKe({ host: e, tab: t, epoch: n }) {+ let r = e.store.value, i = Gj(), o = Gj(), [s, c] = (0, B.useState)("");(0, B.useEffect)(() => {c("");}, [n]);@@ -77851,14 +77864,14 @@ function xKe({ host: e, tab: t, epoch: n }) {onPick: (e) => l(Number(e))})}),- /* @__PURE__ */ (0, V.jsx)(SKe, { epoch: n }),+ /* @__PURE__ */ (0, V.jsx)(CKe, { epoch: n }),/* @__PURE__ */ (0, V.jsx)(f7, {title: "头像与站点图标刷新",description: "创作者头像、来源图标和外链圆标保存在本机,到期后下次显示时重新取一次;视频与图片不保存。",children: /* @__PURE__ */ (0, V.jsx)(K5, {id: "metadataRefreshSetting",label: "头像与站点图标刷新",- options: rKe,+ options: iKe,value: String(r.metadataRefreshDays),epoch: n,onPick: (t) => {@@ -77870,15 +77883,15 @@ function xKe({ host: e, tab: t, epoch: n }) {]});}-function SKe({ epoch: e }) {- let t = ES({- queryKey: Wj,- queryFn: ({ signal: e }) => Kj(e)- }), n = Rue(), r = n.reset;+function CKe({ epoch: e }) {+ let t = TS({+ queryKey: Vj,+ queryFn: ({ signal: e }) => Uj(e)+ }), n = Fue(), r = n.reset;(0, B.useEffect)(() => {r();}, [e, r]);- let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Pe("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(Bue(i)) : "读取运行状态…";+ let i = t.data, a = n.isPending || t.isFetching || t.isError && !n.isError, o = n.isPending ? m7() : t.isFetching ? Pe("正在读取状态") : n.isError ? g7(h7(n.error, "保存失败")) : t.isError ? g7(`状态未取得:${h7(t.error, String(t.error))}`) : i ? g7(Lue(i)) : "读取运行状态…";return /* @__PURE__ */ (0, V.jsx)(f7, {title: "关注自动更新",description: /* @__PURE__ */ (0, V.jsx)(p7, {@@ -77898,12 +77911,12 @@ function SKe({ epoch: e }) {})});}-function CKe({ host: e, machine: t }) {+function wKe({ host: e, machine: t }) {return t === "summary" ? /* @__PURE__ */ (0, V.jsx)("div", {id: "machineSettings",children: /* @__PURE__ */ (0, V.jsx)("div", {className: "peach-react",- children: /* @__PURE__ */ (0, V.jsx)(KGe, { openConfiguration: () => {+ children: /* @__PURE__ */ (0, V.jsx)(qGe, { openConfiguration: () => {s7(), e.openConfiguration();} })})@@ -77917,7 +77930,7 @@ function g7(e) {}//#endregion//#region src/react/sidebar/sidebar-island.tsx-var _7 = "__home__", wKe = {+var _7 = "__home__", TKe = {creator: 26,tag: 30,tech: 16@@ -77930,13 +77943,13 @@ function C7() {let e = y7;if (!e || !b7) return;let t = x7, n = S7;- (0, $f.flushSync)(() => b7.render(/* @__PURE__ */ (0, V.jsx)(sw, { children: /* @__PURE__ */ (0, V.jsx)(DKe, {+ (0, $f.flushSync)(() => b7.render(/* @__PURE__ */ (0, V.jsx)(z5, { children: /* @__PURE__ */ (0, V.jsx)(OKe, {host: e,props: t,epoch: n}) })));}-var TKe = {+var EKe = {render(e) {x7 = e, C7();},@@ -77944,23 +77957,23 @@ var TKe = {S7 += 1, C7();}};-function EKe(e) {+function DKe(e) {return y7 = e, x7 = {content: null,filters: {},latest: null- }, e.scroll.replaceChildren(), b7 = (0, cS.createRoot)(e.scroll), C7(), e.attached(), TKe;+ }, e.scroll.replaceChildren(), b7 = (0, MN.createRoot)(e.scroll), C7(), e.attached(), EKe;}-function DKe({ host: e, props: t, epoch: n }) {+function OKe({ host: e, props: t, epoch: n }) {let r = (0, B.useSyncExternalStore)(e.store.subscribe, e.store.version);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("div", { "data-sidebar-head": "" }),- /* @__PURE__ */ (0, V.jsx)(OKe, {+ /* @__PURE__ */ (0, V.jsx)(kKe, {host: e,epoch: n,version: r}),- t.content ? /* @__PURE__ */ (0, V.jsx)(AKe, {+ t.content ? /* @__PURE__ */ (0, V.jsx)(jKe, {host: e,content: t.content,filters: t.filters,@@ -77968,8 +77981,8 @@ function DKe({ host: e, props: t, epoch: n }) {}) : null] });}-function OKe({ host: e, epoch: t, version: n }) {- let r = Y5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = fA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;+function kKe({ host: e, epoch: t, version: n }) {+ let r = Y5(e.store), i = e.store.value.sidebarOrder, a = new Map(e.navCatalog.map((e) => [e[0], e])), o = i.map((e) => a.get(e)).filter((e) => e !== void 0), s = o.map(([t]) => e.navOn(t)), c = (0, B.useRef)(null), l = (0, B.useRef)(null), u = lA(l, c, "[data-nav][aria-pressed=\"true\"]", `${t}:${n}:${o.map(([e], t) => s[t] ? e || _7 : "").join(",")}`, { axis: "y" }), { sync: d } = u;(0, B.useEffect)(() => {let t = e.scroll, n = t.parentElement, r = t.querySelector(":scope > [data-sidebar-head]"), i = new ResizeObserver(() => d());return [@@ -78025,7 +78038,7 @@ function OKe({ host: e, epoch: t, version: n }) {"data-sidebar-home-logo": "",src: "/peach-logo.png",alt: ""- }) : /* @__PURE__ */ (0, V.jsx)(aT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]+ }) : /* @__PURE__ */ (0, V.jsx)(tT, { name: r }), /* @__PURE__ */ (0, V.jsx)("span", { children: n })]}, t || _7))}), v ? (0, $f.createPortal)(/* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-glide": "",@@ -78034,7 +78047,7 @@ function OKe({ host: e, epoch: t, version: n }) {}), v) : null] });}var w7 = (e, t) => String(e[t] ?? "").split(",").filter(Boolean);-function kKe(e) {+function AKe(e) {if (!e) return null;let t = /* @__PURE__ */ new Map(), n = [["loc", e.locations],@@ -78047,7 +78060,7 @@ function kKe(e) {for (let [e, r] of n) for (let n of r) t.set(`${e}\n${n.value}`, n.n ?? 0);return t;}-function AKe({ host: e, content: t, filters: n, latest: r }) {+function jKe({ host: e, content: t, filters: n, latest: r }) {let i = t.kind === "catalog" ? t.key : `follow:${t.selected.join(",")}:${t.tags.map((e) => e.value).join(",")}`;(0, B.useLayoutEffect)(() => {t.kind === "catalog" && Le(e.scroll, "drawer");@@ -78056,8 +78069,8 @@ function AKe({ host: e, content: t, filters: n, latest: r }) {i,t.kind]);- let a = t.kind === "catalog" ? jKe(e, t.facets, n, r, i) : [MKe(e, t.tags, new Set(t.selected))], o = 0;- return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(NKe, {+ let a = t.kind === "catalog" ? MKe(e, t.facets, n, r, i) : [NKe(e, t.tags, new Set(t.selected))], o = 0;+ return a.map((e) => e && /* @__PURE__ */ (0, V.jsx)(PKe, {title: e.title,kind: e.kind,active: e.active,@@ -78066,8 +78079,8 @@ function AKe({ host: e, content: t, filters: n, latest: r }) {children: e.body}, e.title));}-function jKe(e, t, n, r, i) {- let a = kKe(r), o = (t, r, i) => {+function MKe(e, t, n, r, i) {+ let a = AKe(r), o = (t, r, i) => {if (!t.length) return null;let o = w7(n, r);return /* @__PURE__ */ (0, V.jsx)(D7, {@@ -78092,12 +78105,12 @@ function jKe(e, t, n, r, i) {title: t,kind: s,active: p,- body: /* @__PURE__ */ (0, V.jsx)(FKe, {+ body: /* @__PURE__ */ (0, V.jsx)(IKe, {epoch: i,title: t,rows: c,latest: m ?? null,- limit: wKe[d],+ limit: TKe[d],filterKey: l,selected: f,counts: a,@@ -78112,7 +78125,7 @@ function jKe(e, t, n, r, i) {title: "时长",kind: "meta",active: !1,- body: /* @__PURE__ */ (0, V.jsx)(IKe, {+ body: /* @__PURE__ */ (0, V.jsx)(LKe, {host: e,filters: n})@@ -78135,7 +78148,7 @@ function jKe(e, t, n, r, i) {} : null];}-function MKe(e, t, n) {+function NKe(e, t, n) {return t.length ? {title: "内容标签",kind: "online",@@ -78155,7 +78168,7 @@ function T7(e, t) {} catch {}return n === null ? t : n === "open";}-function NKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {+function PKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a }) {let o = (0, B.useRef)(null), s = (0, B.useRef)(null), [c, l] = (0, B.useState)(() => T7(e, n)), u = (0, B.useRef)(!1);(0, B.useLayoutEffect)(() => {let t = o.current, r = s.current;@@ -78181,7 +78194,7 @@ function NKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })"aria-expanded": c,"aria-controls": f,onClick: d,- children: [/* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]+ children: [/* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-right" }), /* @__PURE__ */ (0, V.jsx)("span", { children: e })]}), /* @__PURE__ */ (0, V.jsx)("div", {ref: s,"data-sidebar-collapse": "",@@ -78202,8 +78215,8 @@ function NKe({ title: e, kind: t, active: n, index: r, epoch: i, children: a })});}var E7 = (0, B.createContext)(() => {});-function PKe({ dot: e }) {- return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(aT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {+function FKe({ dot: e }) {+ return e ? e.kind === "glyph" ? /* @__PURE__ */ (0, V.jsx)(tT, { name: e.name }) : e.kind === "image" ? /* @__PURE__ */ (0, V.jsx)("img", {"data-sidebar-source-icon": "",src: e.src,alt: ""@@ -78226,7 +78239,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }title: e.offline,onClick: () => a.toggleChip(t, e.value, n),children: [- /* @__PURE__ */ (0, V.jsx)(PKe, { dot: e.dot }),+ /* @__PURE__ */ (0, V.jsx)(FKe, { dot: e.dot }),/* @__PURE__ */ (0, V.jsx)("span", {"data-sidebar-chip-label": "",children: e.label@@ -78241,7 +78254,7 @@ function D7({ rows: e, filterKey: t, multi: n, selected: r, counts: i, host: a }})});}-function FKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {+function IKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, selected: o, counts: s, host: c, expandable: l }) {let u = (0, B.useContext)(E7), [d, f] = (0, B.useState)(null), [p, m] = (0, B.useState)(e);p !== e && (m(e), f(null));let h = (0, B.useRef)(null), g = (0, B.useRef)(null), _ = !!d?.all, v = d ? d.rows : n;@@ -78282,7 +78295,7 @@ function FKe({ epoch: e, title: t, rows: n, latest: r, limit: i, filterKey: a, sall: !_}), _ && u());},- children: /* @__PURE__ */ (0, V.jsx)(aT, { name: "chevron-down" })+ children: /* @__PURE__ */ (0, V.jsx)(tT, { name: "chevron-down" })}) : null] });}function O7({ rows: e, host: t, selected: n, badges: r }) {@@ -78307,7 +78320,7 @@ function O7({ rows: e, host: t, selected: n, badges: r }) {});}var k7 = (e, t) => e ? Math.min(v7, Number(e) / 60) : t;-function IKe({ host: e, filters: t }) {+function LKe({ host: e, filters: t }) {let n = `${t.dur_min ?? ""}:${t.dur_max ?? ""}`, [r, i] = (0, B.useState)(n), [a, o] = (0, B.useState)(() => [k7(t.dur_min, 0), k7(t.dur_max, v7)]), [s, c] = (0, B.useState)("max");r !== n && (i(n), o([k7(t.dur_min, 0), k7(t.dur_max, v7)]));let [l, u] = a, d = (0, B.useRef)(null), f = (0, B.useRef)(null), p = (0, B.useRef)(null), m = (0, B.useRef)(a);@@ -78377,17 +78390,17 @@ function IKe({ host: e, filters: t }) {}//#endregion//#region src/board-skeleton.ts-var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, LKe = () => `${A7("80%")}${A7("48%")}`, RKe = (e, t) => e.repeat(t);-function zKe() {- return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${RKe(LKe(), 4)}</div></aside></div>`;+var A7 = (e = "60%") => `<span class="skeleton" style="width:${e}"></span>`, RKe = () => `${A7("80%")}${A7("48%")}`, zKe = (e, t) => e.repeat(t);+function BKe() {+ return `<div data-stage-grid="" aria-hidden="true"><div data-stage-media="" class="skeleton-detail-media skeleton"></div><aside data-stage-side=""><div data-stage-side-content="" class="skeleton-lines">${A7("85%")}${A7("65%")}${zKe(RKe(), 4)}</div></aside></div>`;}//#endregion//#region src/react/follow-detail/follow-detail.ts-var j7 = (e) => ["follow-item", e], BKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, VKe = "/api/follow/save", HKe = "/api/follow/media/hide";+var j7 = (e) => ["follow-item", e], VKe = (e) => `/api/follow?item=${encodeURIComponent(e)}`, HKe = "/api/follow/save", UKe = "/api/follow/media/hide";async function M7(e, t) {- let n = await G(BKe(e), t);+ let n = await G(VKe(e), t);for (let t of n.groups || []) {- let r = PF(t).find((t) => t.id === e);+ let r = NF(t).find((t) => t.id === e);if (r) return {item: r,group: t,@@ -78397,10 +78410,10 @@ async function M7(e, t) {}throw Error("这条关注内容已不存在");}-async function UKe(e, t) {- let n = j7(e.id), r = ohe(e.id), i = z.getQueryData(AF) ? null : z.fetchQuery({- queryKey: AF,- queryFn: () => jF(t)+async function WKe(e, t) {+ let n = j7(e.id), r = ahe(e.id), i = z.getQueryData(kF) ? null : z.fetchQuery({+ queryKey: kF,+ queryFn: () => AF(t)});r ? z.setQueryData(n, {...r,@@ -78410,8 +78423,8 @@ async function UKe(e, t) {queryFn: () => M7(e.id, t)}), await i;}-function WKe(e, t, n, r) {- let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && zF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);+function GKe(e, t, n, r) {+ let i = e.media_items || [], a = r === "images" ? "image" : "video", o = i.find((e) => e.media_kind === a) || i[0], s = i.length ? i.find((e) => e.index === (n ?? o.index)) || o : null, c = i.filter((e) => e.media_kind === "image"), l = c.findIndex((e) => e.index === s?.index), u = c.length > 1 && l >= 0, d = i.length > 1 && !u, f = !i.length && t && RF(t).length > 1 ? t : null, p = s?.media_kind || e.media_kind || "", m = (u ? [...c, e] : [s, e]).filter((e) => !!e && (e.width || 0) > 0 && (e.height || 0) > 0);return {embedded: i,selected: s,@@ -78425,32 +78438,32 @@ function WKe(e, t, n, r) {src: e.playable ? `/follow-stream?id=${e.id}${s ? `&media=${s.index}` : ""}` : ""};}-var GKe = (e) => PF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), KKe = {+var KKe = (e) => NF(e).find((e) => (e.media_items || []).some((e) => e.resource_group)), qKe = {"gofile.io": "Gofile","pixeldrain.com": "Pixeldrain","mega.nz": "MEGA","mega.io": "MEGA","mediafire.com": "MediaFire","drive.google.com": "Google Drive"-}, qKe = {+}, JKe = {gofile: "Gofile",pixeldrain: "Pixeldrain",mega: "MEGA",mediafire: "MediaFire",google_drive: "Google Drive"};-function JKe(e) {+function YKe(e) {try {let t = new URL(e).hostname.replace(/^www\./, "");- return KKe[t] || t;+ return qKe[t] || t;} catch {return "外部文件页";}}function N7(e, t) {- return qKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";+ return JKe[e?.resource_provider || ""] || t.provider_label || t.provider || "在线图片";}-function YKe(e, t, n = "") {+function XKe(e, t, n = "") {let r = n;!r && e.is_release && (r = t.variant_label || t.variant_kind || ""), r ||= t.variant_kind === "wip" ? "WIP" : t.variant_label || t.variant_kind || "视频";let i = e.is_release ? t.summary || (t.has_media ? "(仅附件)" : "(无正文)") : t.title;@@ -78459,16 +78472,16 @@ function YKe(e, t, n = "") {title: e.is_release && t.author ? `${t.author}:${i}` : i};}-var XKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", ZKe = /* @__PURE__ */ new Set([+var ZKe = (e) => String(e.name || "").trim(), P7 = (e, t) => e.tag_types?.[t] || "unknown", QKe = /* @__PURE__ */ new Set(["artist","character","copyright","metadata","unknown"]);-function QKe(e, t) {+function $Ke(e, t) {let n = P7(e, t);- return `r34-${ZKe.has(n) ? n : "general"}`;+ return `r34-${QKe.has(n) ? n : "general"}`;}var F7 = ["copyright",@@ -78477,23 +78490,23 @@ var F7 = ["general","metadata"];-function $Ke(e, t) {+function eqe(e, t) {let n = e.detail_tags || e.tags || [], r = (t) => {let n = F7.indexOf(P7(e, t));return n < 0 ? F7.length : n;};return [...n].sort((e, n) => r(e) - r(n) || t(e).localeCompare(t(n)));}-function eqe(e, t) {+function tqe(e, t) {let n = t.find((t) => t.id === e.source_id), r = t.filter((e) => n?.author_key && e.author_key === n.author_key);return !r.length && n && r.push(n), r;}-var tqe = (e, t) => ({+var nqe = (e, t) => ({sources: e.sources,aliases: e.aliases,credentials: t}), I7 = (e) => e?.size ? { size: e.size } : {};-function nqe(e, t) {+function rqe(e, t) {let { images: n, kind: r, src: i, selected: a } = t;return n.length ? n.map((t, r) => ({src: `/follow-stream?id=${e.id}&media=${t.index}`,@@ -78520,7 +78533,7 @@ function nqe(e, t) {total: 1}] : [];}-var rqe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";+var iqe = (e) => e === "seen" ? "已标记看过" : "已更新关注状态";//#endregion//#region src/react/components/mix-queue.tsxfunction L7({ kind: e, title: t, summary: n, onClose: r, actions: i, listRef: a, children: o, ...s }) {@@ -78574,29 +78587,29 @@ function R7({ current: e, pic: t, lead: n, after: r, row: i, children: a, ...o }}), r]});}-var iqe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {+var aqe = ({ label: e, count: t }) => /* @__PURE__ */ (0, V.jsxs)("h3", {"data-mix-group-label": "",children: [e," ",/* @__PURE__ */ (0, V.jsx)("span", { children: t })]-}), z7 = (e) => Number(e) > 0, aqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {+}), z7 = (e) => Number(e) > 0, oqe = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: R(e) }}), B7 = R("external-link", "externalmark");-function oqe(e) {- let { id: t, actions: n } = e, r = ES({+function sqe(e) {+ let { id: t, actions: n } = e, r = TS({queryKey: j7(t),queryFn: ({ signal: e }) => M7(t, e)- }), i = ES({- queryKey: AF,- queryFn: ({ signal: e }) => jF(e)+ }), i = TS({+ queryKey: kF,+ queryFn: ({ signal: e }) => AF(e)}), a = (0, B.useMemo)(() => new Set((i.data?.providers || []).filter((e) => e.present).map((e) => e.provider)), [i.data]), [o, s] = (0, B.useState)(e.mediaIndex);- return r.data ? /* @__PURE__ */ (0, V.jsx)(sqe, {+ return r.data ? /* @__PURE__ */ (0, V.jsx)(cqe, {...e,data: r.data,- context: tqe(r.data, a),+ context: nqe(r.data, a),mediaIndex: o,onMedia: s}) : /* @__PURE__ */ (0, V.jsx)("div", {@@ -78607,7 +78620,7 @@ function oqe(e) {"data-follow-detail-media": "none",children: [/* @__PURE__ */ (0, V.jsx)(V7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {"data-follow-detail-placeholder": "",- children: r.isError ? /* @__PURE__ */ (0, V.jsx)(jA, {+ children: r.isError ? /* @__PURE__ */ (0, V.jsx)(OA, {message: ye(r.error),onRetry: () => void r.refetch()}) : null@@ -78624,8 +78637,8 @@ var V7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: R("x") }});-function sqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {- let { item: s, group: c } = e, l = WKe(s, c, n, i), u = dqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({+function cqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helpers: a, actions: o }) {+ let { item: s, group: c } = e, l = GKe(s, c, n, i), u = fqe(s, o, r), d = `${s.id}:${l.selected?.index ?? ""}`, [f, p] = (0, B.useState)({key: "",kind: ""}), m = {@@ -78645,7 +78658,7 @@ function sqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hels,l.kind]);- let h = !l.embedded.length && l.collection ? GKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(G7, {+ let h = !l.embedded.length && l.collection ? KKe(l.collection) : void 0, g = l.embeddedQueue ? /* @__PURE__ */ (0, V.jsx)(G7, {item: s,current: l.selected.index,helpers: a,@@ -78658,7 +78671,7 @@ function sqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helactions: o,onMedia: r,currentId: s.id- }) : /* @__PURE__ */ (0, V.jsx)(lqe, {+ }) : /* @__PURE__ */ (0, V.jsx)(uqe, {group: l.collection,itemId: s.id,helpers: a,@@ -78669,7 +78682,7 @@ function sqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel"data-with-queue": g ? "" : void 0,"data-follow-detail": "",children: [- /* @__PURE__ */ (0, V.jsx)(cqe, {+ /* @__PURE__ */ (0, V.jsx)(lqe, {item: s,media: l,helpers: a,@@ -78678,7 +78691,7 @@ function sqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, helissues: m}, d),g,- /* @__PURE__ */ (0, V.jsx)(uqe, {+ /* @__PURE__ */ (0, V.jsx)(dqe, {item: s,data: e,context: t,@@ -78691,8 +78704,8 @@ function sqe({ data: e, context: t, mediaIndex: n, onMedia: r, mediaView: i, hel]});}-function cqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {- let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = nqe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({+function lqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {+ let { kind: a, selected: o, src: s, images: c, position: l, carousel: u, frameRatio: d } = t, f = (0, B.useRef)(null), [p, m] = (0, B.useState)(null), h = rqe(e, t), g = o?.thumb_url || e.thumb_url || "", _ = e.playable && a === "video", v = e.playable && a === "image" ? s : e.thumb_url || "", y = e.playable && a === "image" && g && g !== s ? g : "", [b, x] = (0, B.useState)(v), S = (0, B.useRef)({item: e,selected: o}), C = (0, B.useRef)(i.failed);@@ -78729,7 +78742,7 @@ function cqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {src: b,alt: e.title,referrerPolicy: "no-referrer",- onClick: h.length ? () => void BN(Math.max(0, l), h) : void 0,+ onClick: h.length ? () => void RN(Math.max(0, l), h) : void 0,onError: () => {if (y && b !== y) {x(y), i.thumbFallback();@@ -78741,7 +78754,7 @@ function cqe({ item: e, media: t, actions: n, onMedia: r, issues: i }) {"data-follow-detail-placeholder": "",children: [/* @__PURE__ */ (0, V.jsx)("span", {className: "contents",- dangerouslySetInnerHTML: { __html: GF(e.resource_provider || e.provider) }+ dangerouslySetInnerHTML: { __html: WF(e.resource_provider || e.provider) }}), /* @__PURE__ */ (0, V.jsx)("span", { children: "没有可用预览" })]}),u ? /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [@@ -78799,8 +78812,8 @@ function W7(e) {t && e.wireDrag(t);}, [e]);}-function lqe({ group: e, itemId: t, helpers: n, actions: r }) {- let i = zF(e), a = W7(n);+function uqe({ group: e, itemId: t, helpers: n, actions: r }) {+ let i = RF(e), a = W7(n);return /* @__PURE__ */ (0, V.jsx)(L7, {kind: "collection","data-follow-queue": "",@@ -78809,7 +78822,7 @@ function lqe({ group: e, itemId: t, helpers: n, actions: r }) {listRef: a,summary: `${e.primary.title || "未命名合集"} · ${i.length} 个视频`,children: i.map((n) => {- let i = e.duplicates.includes(n), a = YKe(e, n, i ? n.provider_label : ""), o = i ? GF(n.provider, n.provider_label) : "";+ let i = e.duplicates.includes(n), a = XKe(e, n, i ? n.provider_label : ""), o = i ? WF(n.provider, n.provider_label) : "";return /* @__PURE__ */ (0, V.jsxs)(R7, {current: n.id === t,"data-follow-queue-item": n.id,@@ -78832,7 +78845,7 @@ function lqe({ group: e, itemId: t, helpers: n, actions: r }) {children: a.label}), /* @__PURE__ */ (0, V.jsx)("time", {dateTime: n.published_at || "",- children: QF(n)+ children: ZF(n)})]})]}, n.id);@@ -78857,7 +78870,7 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,onClose: i.close,listRef: s,summary: `${e.title || "未命名内容"} · ${o.length} 个媒体`,- children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(iqe, {+ children: c.map((n) => [n.label ? /* @__PURE__ */ (0, V.jsx)(aqe, {label: n.label,count: n.items.length}, `label:${n.key}`) : null, ...n.items.map((n) => /* @__PURE__ */ (0, V.jsxs)(R7, {@@ -78869,7 +78882,7 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,pic: n.thumb_url ? /* @__PURE__ */ (0, V.jsx)(U7, { src: n.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(H7, { kind: n.media_kind || "" }),children: [/* @__PURE__ */ (0, V.jsx)("b", {"data-middle-truncate": "",- children: XKe(n)+ children: ZKe(n)}), /* @__PURE__ */ (0, V.jsx)("span", {"data-truncate-end": "",children: n.media_kind === "image" ? "图片" : "视频"@@ -78877,13 +78890,13 @@ function G7({ item: e, current: t, currentId: n = e.id, helpers: r, actions: i,}, n.index))])});}-function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {+function dqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpers: o, actions: s }) {let { kind: c, selected: l, src: u } = r, d = {primary: e,variants: [],duplicates: [],has_wip: e.variant_kind === "wip"- }, f = XF(d, e), p = JF(e, eqe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = ZF(e, n), g = $Ke(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {+ }, f = YF(d, e), p = qF(e, tqe(e, t.sources), n), m = p.credited ? "" : e.author && me(e.author) !== me(p.author) ? e.author : "", h = XF(e, n), g = eqe(e, o.tagLabel), _ = e.status === "saved", { busy: v } = i, y = (e) => v.has(e) ? {"aria-busy": !0,"aria-disabled": !0} : {};@@ -78899,7 +78912,7 @@ function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-stage-title": "","data-follow-detail-name": "","data-reveal-line": "",- dangerouslySetInnerHTML: { __html: YF(d, e) + L(e.title) }+ dangerouslySetInnerHTML: { __html: JF(d, e) + L(e.title) }}), e.url ? /* @__PURE__ */ (0, V.jsx)("a", {"data-follow-origin": "",href: e.url,@@ -78926,7 +78939,7 @@ function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-stage-meta": "","data-reveal-line": "",children: [- /* @__PURE__ */ (0, V.jsx)("span", { children: QF(e) }),+ /* @__PURE__ */ (0, V.jsx)("span", { children: ZF(e) }),z7(e.duration) ? /* @__PURE__ */ (0, V.jsx)("span", { children: fe(e.duration) }) : null,f ? /* @__PURE__ */ (0, V.jsx)("span", {"data-follow-badges": "",@@ -78960,7 +78973,7 @@ function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpehref: e,target: "_blank",rel: "noreferrer noopener",- children: [JKe(e), /* @__PURE__ */ (0, V.jsx)("span", {+ children: [YKe(e), /* @__PURE__ */ (0, V.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: B7 }})]@@ -79069,7 +79082,7 @@ function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"aria-label": `恢复显示 ${e.name || ""}`,...y(`restore:${e.index}`),onClick: () => i.restore(e.index),- children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(aqe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]+ children: [e.thumb_url ? /* @__PURE__ */ (0, V.jsx)(U7, { src: e.thumb_url }) : /* @__PURE__ */ (0, V.jsx)(oqe, { name: "image-off" }), /* @__PURE__ */ (0, V.jsx)("i", { dangerouslySetInnerHTML: { __html: R("rotate-ccw") } })]}, e.index))})]}) : null,@@ -79083,7 +79096,7 @@ function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe"data-follow-detail-tags": "",children: g.map((t) => /* @__PURE__ */ (0, V.jsx)("button", {type: "button",- "data-tag-cat": QKe(e, t),+ "data-tag-cat": $Ke(e, t),"data-follow-tag": t,onClick: () => s.openTag(t),children: o.tagLabel(t)@@ -79093,7 +79106,7 @@ function uqe({ item: e, data: t, context: n, media: r, write: i, issue: a, helpe})});}-function dqe(e, t, n) {+function fqe(e, t, n) {let r = e.id, i = j7(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), l = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;@@ -79104,17 +79117,17 @@ function dqe(e, t, n) {...t.item,status: e}- }), che(r, e);+ }), she(r, e);}, d = (e) => {c(ye(e) || "操作失败"), t.failure("更新关注状态", e);- }, f = kS({- mutationFn: ({ to: e }) => K(WP, {+ }, f = OS({+ mutationFn: ({ to: e }) => K(UP, {item: r,to: e}),onSuccess: (e, { to: n, was: i }) => {- u(n), c(""), n === "ignored" && bL(), t.toast(rqe(n), { undo: i === "saved" ? void 0 : async () => {- await K(WP, {+ u(n), c(""), n === "ignored" && yL(), t.toast(iqe(n), { undo: i === "saved" ? void 0 : async () => {+ await K(UP, {item: r,to: i}), u(i);@@ -79122,16 +79135,16 @@ function dqe(e, t, n) {},onError: d,onSettled: (e, t, { to: n }) => l(n, !1)- }), p = kS({- mutationFn: () => K(VKe, { item: r }),+ }), p = OS({+ mutationFn: () => K(HKe, { item: r }),onSuccess: () => {u("saved"), c(""), t.toast("已保存到账本");},onError: d,onSettled: () => l("save", !1)- }), m = kS({+ }), m = OS({mutationFn: async ({ index: e, hidden: t }) => {- await K(HKe, {+ await K(UKe, {item: r,media: e,hidden: t@@ -79142,17 +79155,17 @@ function dqe(e, t, n) {},onSuccess: (e, { hidden: r, next: a }) => {let o = z.getQueryData(i);- o && she(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");+ o && ohe(o.item), n(a), c(""), t.toast(r ? "已隐藏这张图" : "已恢复显示");},onError: d,onSettled: (e, t, { index: n, hidden: r }) => l(`${r ? "hide" : "restore"}:${n}`, !1)- }), h = ES({- queryKey: d_e(r),- queryFn: ({ signal: e }) => m_e(r, e)- }).data?.want ?? null, g = kS({- mutationFn: async (e) => (e ? await yL([e.id]) : await vL({ follow: r }), !e),+ }), h = TS({+ queryKey: u_e(r),+ queryFn: ({ signal: e }) => p_e(r, e)+ }).data?.want ?? null, g = OS({+ mutationFn: async (e) => (e ? await vL([e.id]) : await _L({ follow: r }), !e),onSuccess: (e) => {- c(""), t.toast(e ? "已加入想要" : "已取消想要"), bL();+ c(""), t.toast(e ? "已加入想要" : "已取消想要"), yL();},onError: d,onSettled: () => l("want", !1)@@ -79192,19 +79205,19 @@ function dqe(e, t, n) {}//#endregion//#region src/react/components/overlay-host.ts-function fqe(e) {+function pqe(e) {let t = e.querySelector(":scope > [data-react-overlays]");if (t) return t;let n = e.ownerDocument.createElement("div");return n.className = "peach-react", n.dataset.reactOverlays = "", e.append(n), n;}-function pqe(e) {+function mqe(e) {let t = e?.ownerDocument ?? globalThis.document, n = e?.closest("dialog[open]");- return fqe(n ?? t.body);+ return pqe(n ?? t.body);}//#endregion//#region src/react/cover-crop/cover-crop.ts-var mqe = "/api/cover-crop", hqe = (e, t) => K(mqe, {+var hqe = "/api/cover-crop", gqe = (e, t) => K(hqe, {code: e,box: t});@@ -79223,7 +79236,7 @@ function K7({ className: e }) {children: /* @__PURE__ */ (0, V.jsx)("use", { href: "#i-crop" })});}-function gqe({ code: e, coverUrl: t, box: n, onSaved: r }) {+function _qe({ code: e, coverUrl: t, box: n, onSaved: r }) {let [i, a] = (0, B.useState)(!1), o = (0, B.useRef)(null);return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsx)("button", {ref: o,@@ -79236,13 +79249,13 @@ function gqe({ code: e, coverUrl: t, box: n, onSaved: r }) {className: "flex size-7 cursor-pointer items-center justify-center rounded-lg text-foreground-icon-secondary outline-none transition-colors hover:bg-background-primary-hover hover:text-foreground-icon-primary focus-visible:ring-2 focus-visible:ring-border-focus-ring",children: /* @__PURE__ */ (0, V.jsx)(K7, { className: "size-3.75" })}), /* @__PURE__ */ (0, V.jsx)(Qv, {- getContainer: () => pqe(o.current),- children: /* @__PURE__ */ (0, V.jsx)(tP, {+ getContainer: () => mqe(o.current),+ children: /* @__PURE__ */ (0, V.jsx)(QN, {isOpen: i,onOpenChange: a,width: "cover-crop",label: "裁剪封面",- children: /* @__PURE__ */ (0, V.jsx)(_qe, {+ children: /* @__PURE__ */ (0, V.jsx)(vqe, {code: e,coverUrl: t,box: n,@@ -79252,9 +79265,9 @@ function gqe({ code: e, coverUrl: t, box: n, onSaved: r }) {})})] });}-function _qe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {- let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = jM(), f = kS({- mutationFn: (t) => hqe(e, t),+function vqe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {+ let [a, o] = (0, B.useState)(null), [s, c] = (0, B.useState)(null), [l, u] = (0, B.useState)(!0), d = OM(), f = OS({+ mutationFn: (t) => gqe(e, t),onSuccess: (e) => {i(), r(e.poster_box);}@@ -79266,19 +79279,19 @@ function _qe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {y0: n.y0,x1: n.x1,y1: n.y1- } : fpe(e, jC);- c(XN(t, e, null));+ } : fpe(e, AC);+ c(JN(t, e, null));}let m = f.isPending;return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 items-start gap-4 p-5",children: [- /* @__PURE__ */ (0, V.jsx)(nP, { children: /* @__PURE__ */ (0, V.jsx)(K7, { className: "size-6" }) }),+ /* @__PURE__ */ (0, V.jsx)($N, { children: /* @__PURE__ */ (0, V.jsx)(K7, { className: "size-6" }) }),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex min-w-0 flex-1 flex-col gap-2",children: [- /* @__PURE__ */ (0, V.jsx)(eD, {+ /* @__PURE__ */ (0, V.jsx)(XE, {slot: "title",className: "text-title-3-semibold text-text-primary",children: "裁剪封面"@@ -79293,8 +79306,8 @@ function _qe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {}) : null]}),- /* @__PURE__ */ (0, V.jsx)(NM, {- icon: gT,+ /* @__PURE__ */ (0, V.jsx)(AM, {+ icon: fT,size: "small","aria-label": "关闭",onClick: i@@ -79304,24 +79317,24 @@ function _qe({ code: e, coverUrl: t, box: n, onSaved: r, close: i }) {/* @__PURE__ */ (0, V.jsx)("div", {ref: d,className: "flex min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto border-t border-separator-border px-5 py-4",- children: /* @__PURE__ */ (0, V.jsx)(iP, {+ children: /* @__PURE__ */ (0, V.jsx)(nP, {src: t,- aspect: l ? jC : null,+ aspect: l ? AC : null,box: s,size: a,label: `${e} 的正封取景框`,onSize: (e) => {- JN(e) && p(e);+ KN(e) && p(e);},onBox: c})}),/* @__PURE__ */ (0, V.jsxs)("div", {className: "flex shrink-0 flex-wrap items-center gap-3 border-t border-separator-border p-5",- children: [/* @__PURE__ */ (0, V.jsx)(iL, {+ children: [/* @__PURE__ */ (0, V.jsx)(rL, {isSelected: l,onChange: (e) => {- u(e), e && s && a && c(XN(s, a, jC));+ u(e), e && s && a && c(JN(s, a, AC));},children: /* @__PURE__ */ (0, V.jsx)("span", {className: "text-body-2-regular text-text-secondary",@@ -79357,14 +79370,14 @@ var q7 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("span", {className: "contents",dangerouslySetInnerHTML: { __html: e }});-function vqe(e) {- let { queue: t, actions: n } = e, r = ES({- queryKey: t ? RC(t) : ["item-queue", "none"],- queryFn: ({ signal: n }) => qC(t, e.helpers, n),+function yqe(e) {+ let { queue: t, actions: n } = e, r = TS({+ queryKey: t ? LC(t) : ["item-queue", "none"],+ queryFn: ({ signal: n }) => KC(t, e.helpers, n),enabled: !!t- }), i = t && r.data || null, a = i ? XC(i, e.id) : t ? null : e.id, o = ES({- queryKey: LC(a ?? 0),- queryFn: ({ signal: e }) => KC(a, e),+ }), i = t && r.data || null, a = i ? YC(i, e.id) : t ? null : e.id, o = TS({+ queryKey: IC(a ?? 0),+ queryFn: ({ signal: e }) => GC(a, e),enabled: a != null});if (!o.data || t && !i) {@@ -79377,7 +79390,7 @@ function vqe(e) {"data-item-media": "none",children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: n.close }), /* @__PURE__ */ (0, V.jsx)("div", {"data-item-placeholder": "",- children: e ? /* @__PURE__ */ (0, V.jsx)(jA, {+ children: e ? /* @__PURE__ */ (0, V.jsx)(OA, {message: ye(e),onRetry: () => {r.error && r.refetch(), o.error && o.refetch();@@ -79387,9 +79400,9 @@ function vqe(e) {})});}- return /* @__PURE__ */ (0, V.jsx)(yqe, {+ return /* @__PURE__ */ (0, V.jsx)(bqe, {...e,- item: Ure(o.data, i),+ item: Bre(o.data, i),queue: i}, o.data.id);}@@ -79402,36 +79415,36 @@ var Y7 = ({ onClose: e }) => /* @__PURE__ */ (0, V.jsx)("button", {onClick: e,dangerouslySetInnerHTML: { __html: R("x") }});-function yqe(e) {- let { item: t, queue: n, actions: r, helpers: i } = e, a = Fqe(t, r, i.tagLabel), o = (0, B.useRef)(t);+function bqe(e) {+ let { item: t, queue: n, actions: r, helpers: i } = e, a = Iqe(t, r, i.tagLabel), o = (0, B.useRef)(t);(0, B.useLayoutEffect)(() => {r.present(o.current, n);}, [r]), (0, B.useEffect)(() => {- n?.kind === "playlist" && K(zC, {+ n?.kind === "playlist" && K(RC, {action: "progress",id: n.playlistId,asset_id: t.id}).catch(() => {});}, []);- let s = rie(t, i.sourceOffline(t.location || ""));+ let s = eie(t, i.sourceOffline(t.location || ""));return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [/* @__PURE__ */ (0, V.jsxs)("div", {"data-stage-grid": "","data-with-queue": n ? "" : void 0,"data-item-detail": "",children: [- /* @__PURE__ */ (0, V.jsx)(bqe, {+ /* @__PURE__ */ (0, V.jsx)(xqe, {item: t,gate: s,helpers: i,actions: r}),- n ? /* @__PURE__ */ (0, V.jsx)(Sqe, {+ n ? /* @__PURE__ */ (0, V.jsx)(Cqe, {queue: n,itemId: t.id,helpers: i,actions: r}) : null,- /* @__PURE__ */ (0, V.jsx)(Tqe, {+ /* @__PURE__ */ (0, V.jsx)(Eqe, {item: t,queue: n,write: a,@@ -79439,9 +79452,9 @@ function yqe(e) {actions: r})]- }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(Pqe, { ...e }) : null] });+ }), !n && e.relatedLimit > 0 ? /* @__PURE__ */ (0, V.jsx)(Fqe, { ...e }) : null] });}-function bqe({ item: e, gate: t, helpers: n, actions: r }) {+function xqe({ item: e, gate: t, helpers: n, actions: r }) {let [i, a] = (0, B.useState)(t ? "" : "auto"), o = (0, B.useRef)(null), s = (0, B.useRef)(e);(0, B.useLayoutEffect)(() => {let e = o.current;@@ -79452,7 +79465,7 @@ function bqe({ item: e, gate: t, helpers: n, actions: r }) {ref: o,"data-stage-media": "","data-item-media": t || "video",- children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(xqe, {+ children: [/* @__PURE__ */ (0, V.jsx)(Y7, { onClose: r.close }), t === "offline" ? /* @__PURE__ */ (0, V.jsx)(Sqe, {item: e,badge: c,helpers: n,@@ -79481,7 +79494,7 @@ function bqe({ item: e, gate: t, helpers: n, actions: r }) {}) : null]});}-function xqe({ item: e, badge: t, helpers: n, actions: r }) {+function Sqe({ item: e, badge: t, helpers: n, actions: r }) {let [i, a] = (0, B.useState)(!1), [o, s] = (0, B.useState)(!1), c = async () => {a(!0);let t = await r.checkSource(e.location || "").catch(() => !1);@@ -79506,8 +79519,8 @@ function xqe({ item: e, badge: t, helpers: n, actions: r }) {]});}-function Sqe({ queue: e, itemId: t, helpers: n, actions: r }) {- let i = $re(e), a = (0, B.useRef)(null), o = wqe(e, t, r), s = (0, B.useRef)(o);+function Cqe({ queue: e, itemId: t, helpers: n, actions: r }) {+ let i = Xre(e), a = (0, B.useRef)(null), o = Tqe(e, t, r), s = (0, B.useRef)(o);s.current = o;let c = (0, B.useCallback)((t) => {a.current = t, t && (n.wireDrag(t), e.kind === "playlist" && n.wireDragReorder(t, {@@ -79515,7 +79528,7 @@ function Sqe({ queue: e, itemId: t, helpers: n, actions: r }) {attribute: "data-queue-row",onMove: (e, t, n) => s.current.move(+e, +t, n)}));- }, [n, e.kind]), l = Cqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {+ }, [n, e.kind]), l = wqe(e, r), u = e.kind === "mix" ? /* @__PURE__ */ (0, V.jsx)("button", {type: "button","data-save-mix": "",title: "保存为播放列表",@@ -79543,10 +79556,10 @@ function Sqe({ queue: e, itemId: t, helpers: n, actions: r }) {listRef: c,children: e.items.map((i) => {let a = e.kind === "editions" && i.edition_label ? /* @__PURE__ */ (0, V.jsx)("i", {- className: `javedition ${Zre[i.edition_label] || "censored"}`,+ className: `javedition ${Jre[i.edition_label] || "censored"}`,"data-queue-edition": "",children: i.edition_label- }) : null, s = e.kind === "playlist" && YC(i);+ }) : null, s = e.kind === "playlist" && JC(i);return /* @__PURE__ */ (0, V.jsxs)(R7, {current: i.id === t,"data-queue-item": i.id,@@ -79586,14 +79599,14 @@ function Sqe({ queue: e, itemId: t, helpers: n, actions: r }) {})]}), /* @__PURE__ */ (0, V.jsx)("span", {"data-truncate-end": "",- children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? iw(i.part_label) : P(i, n.tagLabel)+ children: s ? "已消失 · 文件已不在盘上" : e.kind === "parts" ? rw(i.part_label) : P(i, n.tagLabel)})]}, i.id);})});}-function Cqe(e, t) {- let n = kS({ mutationFn: (t) => K(zC, {+function wqe(e, t) {+ let n = OS({ mutationFn: (t) => K(RC, {action: "create",name: t,asset_ids: e.items.map((e) => e.id),@@ -79606,14 +79619,14 @@ function Cqe(e, t) {save: (e) => n.mutateAsync(e)});}-function wqe(e, t, n) {- let r = RC({+function Tqe(e, t, n) {+ let r = LC({kind: "playlist",playlistId: e.playlistId- }), i = (e) => (z.setQueryData(r, JC(e)), e), a = (t) => K(zC, {+ }), i = (e) => (z.setQueryData(r, qC(e)), e), a = (t) => K(RC, {id: e.playlistId,...t- }).then((e) => e.playlist), o = kS({+ }).then((e) => e.playlist), o = OS({mutationFn: (e) => a({action: "reorder",asset_ids: e@@ -79626,8 +79639,8 @@ function wqe(e, t, n) {return {move: async (t, r, c) => {if (e.kind !== "playlist") return;- let l = tie(s, t, r, c);- if (nie(l, s)) return;+ let l = Qre(s, t, r, c);+ if ($re(l, s)) return;let u = s;await o.mutateAsync(l), n.toast("已调整播放顺序", { undo: async () => {i(await a({@@ -79673,7 +79686,7 @@ function wqe(e, t, n) {}};}-function Tqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {+function Eqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {let a = e.location === "online", o = n.busyAttrs, [s, c] = (0, B.useState)(!1);return /* @__PURE__ */ (0, V.jsx)("div", {"data-stage-side": "",@@ -79681,7 +79694,7 @@ function Tqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {children: /* @__PURE__ */ (0, V.jsxs)("div", {"data-stage-side-content": "",children: [- /* @__PURE__ */ (0, V.jsx)(Eqe, {+ /* @__PURE__ */ (0, V.jsx)(Dqe, {item: e,queue: t,helpers: r,@@ -79693,7 +79706,7 @@ function Tqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {"aria-live": "polite",children: n.sourceState}),- /* @__PURE__ */ (0, V.jsx)(Oqe, {+ /* @__PURE__ */ (0, V.jsx)(kqe, {item: e,write: n}),@@ -79728,18 +79741,18 @@ function Tqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {}) : null]}),- /* @__PURE__ */ (0, V.jsx)(kqe, {+ /* @__PURE__ */ (0, V.jsx)(Aqe, {item: e,helpers: r,actions: i}),- /* @__PURE__ */ (0, V.jsx)(Aqe, {+ /* @__PURE__ */ (0, V.jsx)(jqe, {item: e,write: n,helpers: r,actions: i}),- /* @__PURE__ */ (0, V.jsx)(Mqe, { item: e }),+ /* @__PURE__ */ (0, V.jsx)(Nqe, { item: e }),/* @__PURE__ */ (0, V.jsxs)("div", {"data-stage-actions": "","data-item-feedback": "",@@ -79833,7 +79846,7 @@ function Tqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {})]}),- /* @__PURE__ */ (0, V.jsx)(Nqe, {+ /* @__PURE__ */ (0, V.jsx)(Pqe, {item: e,open: s,write: n@@ -79857,7 +79870,7 @@ function Tqe({ item: e, queue: t, write: n, helpers: r, actions: i }) {})});}-function Eqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {+function Dqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {let a = (0, B.useRef)(null), [o, s] = (0, B.useState)(!1), [c, l] = (0, B.useState)(!1);(0, B.useLayoutEffect)(() => {let e = a.current;@@ -79867,7 +79880,7 @@ function Eqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {}, n = new ResizeObserver(t);return n.observe(e), t(), () => n.disconnect();}, []);- let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + eie(e, t);+ let u = () => s((e) => !e), d = n.badgeHtml(e.location || "", e.cost || "", "srcbig") + n.titleHtml(e) + Zre(e, t);return /* @__PURE__ */ (0, V.jsx)("div", {"data-item-title": "",children: /* @__PURE__ */ (0, V.jsxs)("div", {@@ -79898,19 +79911,19 @@ function Eqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {}),e.has_cover && (e.cover_key || e.code) ? /* @__PURE__ */ (0, V.jsx)("span", {"data-cover-crop-host": "",- children: /* @__PURE__ */ (0, V.jsx)(gqe, {+ children: /* @__PURE__ */ (0, V.jsx)(_qe, {code: e.cover_key || e.code || "",coverUrl: D(e),box: e.poster_box || null,onSaved: (t) => {z.invalidateQueries({- queryKey: LC(e.id),+ queryKey: IC(e.id),exact: !0- }), IC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });+ }), FC((t) => (t.cover_key || t.code) === (e.cover_key || e.code), { poster_box: t });}})}) : null,- e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(Dqe, {+ e.location === "online" ? null : /* @__PURE__ */ (0, V.jsx)(Oqe, {id: e.id,actions: r,onStatus: i@@ -79920,7 +79933,7 @@ function Eqe({ item: e, queue: t, helpers: n, actions: r, onStatus: i }) {})});}-function Dqe({ id: e, actions: t, onStatus: n }) {+function Oqe({ id: e, actions: t, onStatus: n }) {let [r, i] = (0, B.useState)(""), a = async () => {r || (i("reveal"), n(""), n(await t.reveal(e)), i(""));}, o = async () => {@@ -79953,14 +79966,14 @@ function Dqe({ id: e, actions: t, onStatus: n }) {children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "folder-sync" })})] });}-function Oqe({ item: e, write: t }) {- let n = QC(e.rating);+function kqe({ item: e, write: t }) {+ let n = ZC(e.rating);return /* @__PURE__ */ (0, V.jsxs)("div", {id: "detailRating",role: "group","data-item-rating": "","aria-label": "评分",- "data-value": ZC(e.rating),+ "data-value": XC(e.rating),children: [/* @__PURE__ */ (0, V.jsx)("div", {"data-rating-stars": "",children: [@@ -79982,12 +79995,12 @@ function Oqe({ item: e, write: t }) {}), /* @__PURE__ */ (0, V.jsx)("span", {"data-rating-value": "","aria-live": "polite",- children: Kre(e.rating)+ children: Ure(e.rating)})]});}-function kqe({ item: e, actions: t }) {- let n = (0, B.useMemo)(() => Gre(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {+function Aqe({ item: e, actions: t }) {+ let n = (0, B.useMemo)(() => Hre(e), [e]), [r, i] = (0, B.useState)(!1), a = Math.max(0, n.cast.length - 8), o = (e, n, i) => {let a = e === "performer" && i >= 8 && !r, o = e === "performer" ? /* @__PURE__ */ (0, V.jsx)("span", {"data-id-face": "",dangerouslySetInnerHTML: { __html: `<span>${L(n.name.slice(0, 1))}</span>` + A({@@ -80062,7 +80075,7 @@ function kqe({ item: e, actions: t }) {size: "small",id: "castMore","data-cast-more": "",- trailingIcon: dT,+ trailingIcon: sT,"aria-expanded": !1,onClick: () => i(!0),children: [@@ -80107,8 +80120,8 @@ function kqe({ item: e, actions: t }) {]});}-function Aqe({ item: e, write: t, helpers: n, actions: r }) {- let i = Jre(e, n);+function jqe({ item: e, write: t, helpers: n, actions: r }) {+ let i = Gre(e, n);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-stage-tags": "",id: "detailTags",@@ -80129,14 +80142,14 @@ function Aqe({ item: e, write: t, helpers: n, actions: r }) {onClick: () => t.removeTag(e),children: /* @__PURE__ */ (0, V.jsx)(q7, { name: "x" })})]- }, e.k)), /* @__PURE__ */ (0, V.jsx)(jqe, {+ }, e.k)), /* @__PURE__ */ (0, V.jsx)(Mqe, {item: e,write: t,helpers: n})]});}-function jqe({ item: e, write: t, helpers: n }) {+function Mqe({ item: e, write: t, helpers: n }) {let r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(!1), [s, c] = (0, B.useState)(!1), [l, u] = (0, B.useState)(""), [d, f] = (0, B.useState)(""), [p, m] = (0, B.useState)(-1), h = (0, B.useCallback)(() => {i.current && De(i.current), c(!1);}, []);@@ -80150,7 +80163,7 @@ function jqe({ item: e, write: t, helpers: n }) {clearTimeout(t), document.removeEventListener("pointerdown", e, !0);};}, [s, h]);- let g = s ? Xre(d, n.tagCandidates(), rw()) : {+ let g = s ? qre(d, n.tagCandidates(), nw()) : {recent: [],results: [],create: ""@@ -80178,12 +80191,12 @@ function jqe({ item: e, write: t, helpers: n }) {if (n.key === "Enter") {n.preventDefault();let r = p >= 0 ? _[p] : null;- r ? v(r, r.n !== -1 && $C(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));+ r ? v(r, r.n !== -1 && QC(e, r.k)) : l.trim() && (h(), t.addTag(l.trim()));}}}, b = -1, x = (t) => {b += 1;- let r = b, i = $C(e, t.k);+ let r = b, i = QC(e, t.k);return /* @__PURE__ */ (0, V.jsxs)("button", {type: "button","data-pick": t.k,@@ -80280,8 +80293,8 @@ function jqe({ item: e, write: t, helpers: n }) {})]})] });}-function Mqe({ item: e }) {- let t = iie(e);+function Nqe({ item: e }) {+ let t = tie(e);return /* @__PURE__ */ (0, V.jsxs)("div", {"data-item-trace": "",children: [/* @__PURE__ */ (0, V.jsxs)("div", {@@ -80315,7 +80328,7 @@ function Mqe({ item: e }) {})]});}-function Nqe({ item: e, open: t, write: n }) {+function Pqe({ item: e, open: t, write: n }) {let [r, i] = (0, B.useState)(e.like_reason || ""), a = (0, B.useRef)(null);(0, B.useEffect)(() => {t && a.current?.focus();@@ -80354,10 +80367,10 @@ function Nqe({ item: e, open: t, write: n }) {})]});}-function Pqe(e) {- let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = ES({- queryKey: Bre(t.id, n),- queryFn: async ({ signal: e }) => (await G(Hre(t.id, n), e)).items || []+function Fqe(e) {+ let { item: t, relatedLimit: n, helpers: r, grid: i } = e, a = TS({+ queryKey: Lre(t.id, n),+ queryFn: async ({ signal: e }) => (await G(zre(t.id, n), e)).items || []}), [o] = (0, B.useState)(() => r.relatedSkeletonHtml()), s = (0, B.useCallback)((e) => {e && (ke(e), r.wireDrag(e));}, [r]);@@ -80370,7 +80383,7 @@ function Pqe(e) {ref: s,id: "nrow","data-related-row": "",- children: a.data ? /* @__PURE__ */ (0, V.jsx)(VA, {+ children: a.data ? /* @__PURE__ */ (0, V.jsx)(RA, {mode: "items",variant: "next",items: a.data,@@ -80387,8 +80400,8 @@ function Pqe(e) {})]});}-function Fqe(e, t, n) {- let r = e.id, i = LC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {+function Iqe(e, t, n) {+ let r = e.id, i = IC(r), [a, o] = (0, B.useState)(() => /* @__PURE__ */ new Set()), [s, c] = (0, B.useState)(""), [l, u] = (0, B.useState)(""), d = (e, t) => o((n) => {let r = new Set(n);return t ? r.add(e) : r.delete(e), r;}), f = () => z.getQueryData(i) || e, p = (e) => {@@ -80404,11 +80417,11 @@ function Fqe(e, t, n) {rating: t.rating,o_count: t.o_count};- return FC(r, n), t;+ return PC(r, n), t;}, m = (e, t) => K(e, {id: r,...t- }), h = kS({+ }), h = OS({mutationFn: ({ run: e }) => e(),onError: (e, { action: n }) => t.failure(n, e),onSettled: (e, t, { name: n }) => d(n, !1)@@ -80419,7 +80432,7 @@ function Fqe(e, t, n) {run: n}));}, _ = async (e, t) => {- let n = await m(BC, t === void 0 ? { kind: e } : {+ let n = await m(zC, t === void 0 ? { kind: e } : {kind: e,value: t});@@ -80439,21 +80452,21 @@ function Fqe(e, t, n) {"aria-disabled": !0} : {},rate: (e) => g(`rate:${e}`, "评分", async () => {- let n = f().rating || 0, r = qre(n, e);- await _("rate", r), t.toast(r ? `已评 ${QC(r)} 星` : "已取消评分", { undo: async () => {+ let n = f().rating || 0, r = Wre(n, e);+ await _("rate", r), t.toast(r ? `已评 ${ZC(r)} 星` : "已取消评分", { undo: async () => {await _("rate", n);} });}),feedback: (e) => g(e, "操作", async () => {let n = { feedback: f().feedback || null }, r = await _(e);- t.toast(aw(e, r), { undo: async () => {+ t.toast(iw(e, r), { undo: async () => {e === "o" ? await _("o-undo") : e === "dispose" ? await _("dispose") : (r.feedback && await _(r.feedback), n.feedback && await _(n.feedback)), await t.trashChanged(f().disposal || null, !0);} }), e === "dispose" && await t.trashChanged(r.disposal || null, !1);}),later: () => g("later", "更新稍后看", async () => {- let e = await m(HC, {});+ let e = await m(VC, {});p({ watch_later: e.watch_later }), t.toast(e.watch_later ? "已加入稍后看" : "已移出稍后看", { undo: async () => {- p({ watch_later: (await m(HC, {})).watch_later });+ p({ watch_later: (await m(VC, {})).watch_later });} });}),quality: () => g("quality", "更新版本需求", async () => {@@ -80463,9 +80476,9 @@ function Fqe(e, t, n) {}, n = (e) => p({better_version: e.better_version,better_version_reason: e.better_version_reason || ""- }), r = await m(UC, { wanted: !e.wanted });+ }), r = await m(HC, { wanted: !e.wanted });n(r), t.toast(r.better_version ? "已标记寻找更好版本" : "已取消寻找更好版本", { undo: async () => {- n(await m(UC, e));+ n(await m(HC, e));} });}),preference: ({ liked: e, reason: n }) => {@@ -80479,7 +80492,7 @@ function Fqe(e, t, n) {});u("保存中…");try {- o(await m(WC, {+ o(await m(UC, {liked: a,reason: i}));@@ -80489,7 +80502,7 @@ function Fqe(e, t, n) {u("已保存"), setTimeout(() => u((e) => e === "已保存" ? "" : e), 1400);let s = f();t.toast(s.liked ? "已保存喜欢偏好" : "已取消喜欢", { undo: async () => {- o(await m(WC, r));+ o(await m(UC, r));} });});},@@ -80498,11 +80511,11 @@ function Fqe(e, t, n) {operation: "remove",tag: e.k})).ok) throw Error("标签未删除");- p((t) => ew(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {- await m(VC, {+ p((t) => $C(t, e.k)), t.toast(`已删除标签「${n(e.k)}」`, { undo: async () => {+ await m(BC, {operation: "add",tag: e.k- }), p((t) => tw(t, e));+ }), p((t) => ew(t, e));} });}),addTag: (e) => {@@ -80511,14 +80524,14 @@ function Fqe(e, t, n) {(await m("/api/item-tag", {operation: "add",tag: r- })).ok && (p((e) => tw(e, {+ })).ok && (p((e) => ew(e, {k: r,cat: "general"- })), Yre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {- await m(VC, {+ })), Kre(r), t.toast(`已添加标签「${n(r)}」`, { undo: async () => {+ await m(BC, {operation: "remove",tag: r- }), p((e) => ew(e, r));+ }), p((e) => $C(e, r));} }));});}@@ -80527,16 +80540,16 @@ function Fqe(e, t, n) {//#endregion//#region src/react/stage/stage-player.tsvar X7 = null, Z7 = null, Q7 = null, $7 = null, e9 = null, t9 = !1, n9 = 0, r9 = null, i9 = () => !1, a9 = (e, t, n) => `${e}:${t}:${n ?? ""}`;-function Iqe(e, t) {- X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Qne({+function Lqe(e, t) {+ X7 = e, i9 = () => t.isOpen(), r9 = () => t.requestClose(), Yne({...e.player,stage: () => document.getElementById("stage")- }), $ne({+ }), Xne({inMiniplayer: (e) => Z7?.player === e,kind: (e) => Z7?.player === e ? Z7.kind : Q7?.kind ?? $7?.kind ?? "item",expand: () => C9(),toMiniplayer: () => w9()- }), o9 || (o9 = !0, addEventListener("pagehide", () => mC()));+ }), o9 || (o9 = !0, addEventListener("pagehide", () => pC()));}var o9 = !1;function s9() {@@ -80546,10 +80559,10 @@ function s9() {function c9(e) {$7 = e;}-var Lqe = () => $7;+var Rqe = () => $7;function l9(e, t) {let { kind: n, item: r, media: i = null } = t, a = a9(n, r.id, i?.index ?? null);- if (Z7 && Z7.key === a) return Rqe(e, Z7);+ if (Z7 && Z7.key === a) return zqe(e, Z7);Z7 && S9();let o = {player: null,@@ -80561,7 +80574,7 @@ function l9(e, t) {Q7 = o;let s = document.createElement("video");t.id && (s.id = t.id), s.className = "video-js vjs-big-play-centered", s.controls = !0, s.setAttribute("playsinline", ""), s.preload = "metadata", t.poster && (s.poster = t.poster), t.onError && s.addEventListener("error", t.onError), e.append(s);- let c = OC(s, {+ let c = DC(s, {kind: n,item: r,media: i,@@ -80574,12 +80587,12 @@ function l9(e, t) {});return () => {let e = !!o.player && Z7?.player === o.player;- Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), mC());+ Q7 === o && (Q7 = null), c(), !e && (o.player || (s.pause(), s.removeAttribute("src"), s.load()), pC());};}-function Rqe(e, t) {+function zqe(e, t) {let { player: n } = t;- b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), EC(e), e.append(n.el()), HS(n);+ b9(t), Z7 = null, x9(), n.el().classList.remove("vjs-peach-mini"), TC(e), e.append(n.el()), VS(n);let r = {player: n,kind: t.kind,@@ -80588,22 +80601,22 @@ function Rqe(e, t) {key: t.key};Q7 = r;- let i = DC(n, e);- return US(n), () => {- Q7 === r && (Q7 = null), i(), Z7?.player !== n && (VS() === n && HS(null), aC(n), mC());+ let i = EC(n, e);+ return HS(n), () => {+ Q7 === r && (Q7 = null), i(), Z7?.player !== n && (BS() === n && VS(null), iC(n), pC());};}var u9 = () => {let e = Q7?.player;return e && !e.isDisposed() ? e : null;};-function zqe(e) {+function Bqe(e) {let t = t9;t9 = !1, Z7?.pending && S9();let n = Q7, r = n?.player, i = $7;if (!n || !r || r.isDisposed() || !i || !e9) return;let a = s9().player.settings();- (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Wqe({+ (t || e && a.miniplayer && !r.paused() && !r.ended() && !r.error()) && Gqe({player: r,kind: n.kind,item: n.item,@@ -80611,7 +80624,7 @@ function zqe(e) {key: n.key}, i);}-function Bqe(e, t) {+function Vqe(e, t) {if (t9 = !1, Z7) {if (Z7.kind === e && Z7.item.id === t) {Z7.pending = !0, x9();@@ -80624,11 +80637,11 @@ function d9(e) {e9 = e, e9 && v9();}var f9 = () => !!Z7 && !Z7.pending && !Z7.player.isDisposed();-function Vqe() {+function Hqe() {return f9() ? e9?.frame.querySelector("video") ?? null : null;}-function Hqe() {- return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Vqe();+function Uqe() {+ return i9() ? document.getElementById("stage")?.querySelector("video") ?? null : Hqe();}function p9(e) {e9 && (e9.title.textContent = e.title || "", e9.sub.textContent = e.sub || "", e9.info.setAttribute("aria-label", e.title ? `展开到详情:${e.title}` : "展开到详情"));@@ -80677,7 +80690,7 @@ function y9(e) {function b9(e) {e.off.forEach((e) => e()), e.off = [];}-function Uqe() {+function Wqe() {let e = e9?.root;if (!e) return;let t = e.hidden;@@ -80698,7 +80711,7 @@ function x9() {e.style.transform = "";}}-function Wqe(e, t) {+function Gqe(e, t) {if (!e9) return;let n = {...e,@@ -80706,13 +80719,13 @@ function Wqe(e, t) {off: [],pending: !1};- Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Uqe(), US(e.player);+ Z7 = n, n9++, e.player.el().classList.add("vjs-peach-mini"), e9.frame.prepend(e.player.el()), p9(t), y9(n), Wqe(), HS(e.player);}function S9() {let e = Z7;e && b9(e), Z7 = null, n9++;let t = e?.player ?? null;- t && VS() === t && HS(null), aC(t), t && mC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), zS(), x9();+ t && BS() === t && VS(null), iC(t), t && pC(), e9?.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove()), RS(), x9();}function C9() {if (!f9() || !Z7) return;@@ -80726,7 +80739,7 @@ function w9() {}i9() && u9() && r9 && (t9 = !0, r9());}-function Gqe() {+function Kqe() {let e = Z7?.player;!e || e.isDisposed() || (e.paused() ? e.play()?.catch(() => {}) : e.pause());}@@ -80739,7 +80752,7 @@ function T9(e) {function E9(e) {return !(!f9() || !e || e.part_group || e.edition_group || e.medium && e.medium !== "video" || e.cost === "metered" && e.location !== "online" || e.location === "online" && !e.follow_item_id || s9().sourceOffline(String(e.location ?? "")));}-async function Kqe(e) {+async function qqe(e) {if (!f9() || !Z7 || !e9) return;let t = ++n9, n = await ce(`/api/item?id=${e}`).catch(() => null);if (t !== n9 || !f9() || !Z7 || !e9 || !n || n.error) return;@@ -80748,7 +80761,7 @@ async function Kqe(e) {return;}let r = Z7;- b9(r), VS() === r.player && HS(null), aC(r.player), mC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());+ b9(r), BS() === r.player && VS(null), iC(r.player), pC(), e9.frame.querySelectorAll(".video-js,video").forEach((e) => e.remove());let i = document.createElement("video");i.className = "video-js", i.setAttribute("playsinline", ""), i.preload = "metadata", e9.frame.prepend(i);let a = {@@ -80757,14 +80770,14 @@ async function Kqe(e) {title: String(n.title || n.name || ""),sub: String(n.performers?.[0] || n.creator || "未归属")};- p9(a), OC(i, {+ p9(a), DC(i, {kind: "item",item: n,autoplay: !0,chrome: !1,onPlayer: (r) => {if (t !== n9) {- r && VS() === r && HS(null), aC(r);+ r && BS() === r && VS(null), iC(r);return;}if (!r) {@@ -80792,9 +80805,9 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {viewBox: "0 0 24 24","aria-hidden": "true",children: /* @__PURE__ */ (0, V.jsx)("use", { href: `#i-${e}` })-}), qqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {+}), Jqe = { __html: "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><use href=\"#i-player-pause\"/></svg>" }, O9 = (e) => (t) => {t.stopPropagation(), e();-}, Jqe = (0, B.memo)(function() {+}, Yqe = (0, B.memo)(function() {let e = (0, B.useRef)(null), t = (0, B.useRef)(null), n = (0, B.useRef)(null), r = (0, B.useRef)(null), i = (0, B.useRef)(null), a = (0, B.useRef)(null), o = (0, B.useRef)(null), s = (0, B.useRef)(null), c = (0, B.useRef)(null), l = (0, B.useRef)(null);return (0, B.useLayoutEffect)(() => (d9({root: e.current,@@ -80806,7 +80819,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {title: s.current,sub: c.current,info: l.current- }), () => d9(null)), []), (0, B.useEffect)(() => Xqe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {+ }), () => d9(null)), []), (0, B.useEffect)(() => Zqe(e.current, t.current), []), /* @__PURE__ */ (0, V.jsx)("aside", {ref: e,"data-miniplayer": "",id: "miniplayer",@@ -80856,8 +80869,8 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {id: "miniplayerPlay","aria-label": "暂停","aria-keyshortcuts": "k",- onClick: O9(Gqe),- dangerouslySetInnerHTML: qqe+ onClick: O9(Kqe),+ dangerouslySetInnerHTML: Jqe}),/* @__PURE__ */ (0, V.jsx)("button", {ref: o,@@ -80896,7 +80909,7 @@ var D9 = ({ name: e }) => /* @__PURE__ */ (0, V.jsx)("svg", {})});});-function Yqe(e, t, n) {+function Xqe(e, t, n) {let r = e.getBoundingClientRect(), i = (r.top + r.height / 2 < innerHeight / 2 ? "t" : "b") + (r.left + r.width / 2 < innerWidth / 2 ? "l" : "r"), a = parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--topH")) || 56, o = {left: r.left - t,top: r.top - n@@ -80918,7 +80931,7 @@ function Yqe(e, t, n) {};e.addEventListener("transitionend", u), setTimeout(u, 600);}-function Xqe(e, t) {+function Zqe(e, t) {let n = null, r = (e) => {if (!(e.button !== 0 || e.target.closest("[data-miniplayer-button],[data-miniplayer-play],[data-miniplayer-seek],.vjs-control-bar"))) {n = {@@ -80944,7 +80957,7 @@ function Xqe(e, t) {} catch {}i.moved && (e.dataset.dragged = "1", setTimeout(() => {delete e.dataset.dragged;- }, 0), Yqe(e, i.dx, i.dy));+ }, 0), Xqe(e, i.dx, i.dy));}, o = (t) => {e.dataset.dragged && (t.stopPropagation(), t.preventDefault());}, s = (e) => {@@ -80964,21 +80977,21 @@ function R9() {if (!k9) throw Error("舞台还没有接上宿主(configureStage)");return k9;}-function Zqe() {- return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, cS.createRoot)(j9)), A9;+function Qqe() {+ return (!A9 || !j9?.isConnected) && (A9?.unmount(), j9 = document.createElement("div"), j9.dataset.stageHost = "", document.body.append(j9), A9 = (0, MN.createRoot)(j9)), A9;}function z9() {- let e = Zqe();- (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(sw, { children: /* @__PURE__ */ (0, V.jsx)(Qqe, { view: M9 }) })));+ let e = Qqe();+ (0, $f.flushSync)(() => e.render(/* @__PURE__ */ (0, V.jsx)(z5, { children: /* @__PURE__ */ (0, V.jsx)($qe, { view: M9 }) })));}-function Qqe({ view: e }) {- return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)($qe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(Jqe, {})] });+function $qe({ view: e }) {+ return /* @__PURE__ */ (0, V.jsxs)(V.Fragment, { children: [e ? /* @__PURE__ */ (0, V.jsx)(eJe, { view: e }, e.generation) : null, /* @__PURE__ */ (0, V.jsx)(Yqe, {})] });}var B9 = () => /* @__PURE__ */ (0, V.jsx)("div", {"data-skeleton": "detail",role: "status","aria-label": "正在读取作品详情",- dangerouslySetInnerHTML: { __html: zKe() }+ dangerouslySetInnerHTML: { __html: BKe() }});function V9(e) {let t = e.currentTarget;@@ -80986,7 +80999,7 @@ function V9(e) {let n = t.getBoundingClientRect();return e.clientX < n.left || e.clientX > n.right || e.clientY < n.top || e.clientY > n.bottom;}-function $qe({ view: e }) {+function eJe({ view: e }) {let t = (0, B.useRef)(null);(0, B.useLayoutEffect)(() => {let e = t.current, n = (e) => {@@ -80994,7 +81007,7 @@ function $qe({ view: e }) {};return e.addEventListener("cancel", n), () => e.removeEventListener("cancel", n);}, []);- let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(vqe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(oqe, { ...r.props });+ let { phase: n, content: r } = e, i = r.kind === "item" ? /* @__PURE__ */ (0, V.jsx)(yqe, { ...r.props }) : /* @__PURE__ */ (0, V.jsx)(sqe, { ...r.props });return /* @__PURE__ */ (0, V.jsxs)("dialog", {ref: t,id: "stage",@@ -81033,7 +81046,7 @@ function U9(e, t) {let n = L9();n?.toggleAttribute("data-ambient", e), n?.toggleAttribute("data-theater", t);}-function eJe(e) {+function tJe(e) {let t = e.resume ?? null, n = (n) => {let r = t && (e.id == null || e.id === n) ? t : null;return t = null, r;@@ -81095,7 +81108,7 @@ function eJe(e) {}};}-function tJe(e, t) {+function nJe(e, t) {let n = e.querySelector(":scope > [data-stage-fade]");e.setAttribute("data-stage-reveal", ""), e.getBoundingClientRect(), e.setAttribute("data-stage-revealing", "");let r = 0, i = () => {@@ -81108,13 +81121,13 @@ function tJe(e, t) {};n?.addEventListener("transitionend", a), r = window.setTimeout(i, 1e3);}-async function nJe(e) {+async function rJe(e) {M9 && W9({ miniplayer: !1 });let t = ++N9, n = new AbortController();- P9 = n, F9 = !1, I9 = !1, Bqe(e.kind, e.id ?? NaN), M9 = {+ P9 = n, F9 = !1, I9 = !1, Vqe(e.kind, e.id ?? NaN), M9 = {generation: t,request: e,- content: eJe(e),+ content: tJe(e),phase: "skeleton"}, z9();let r = L9();@@ -81122,7 +81135,7 @@ async function nJe(e) {ke(r), document.body.setAttribute("data-detail-open", ""), r.open || r.showModal();let i = M9.content;try {- i.kind === "item" ? await Wre(i.props, n.signal) : await UKe(i.props, n.signal);+ i.kind === "item" ? await Vre(i.props, n.signal) : await WKe(i.props, n.signal);} catch {if (n.signal.aborted) return;}@@ -81131,11 +81144,11 @@ async function nJe(e) {M9 = {...M9,phase: a ? "content" : "reveal"- }, z9(), a || tJe(r, t), Be(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");+ }, z9(), a || nJe(r, t), Be(r, ":scope>:not([data-stage-fade]) [data-reveal-line]");let o = document.activeElement;(o === r || !r.contains(o)) && r.querySelector("#closeStage")?.focus();}-function rJe() {+function iJe() {let e = L9();return !e?.open || e.hasAttribute("data-closing") || matchMedia("(prefers-reduced-motion: reduce)").matches ? Promise.resolve() : (e.setAttribute("data-closing", ""), new Promise((t) => {let n = 0, r = () => {@@ -81147,11 +81160,11 @@ function rJe() {}));}function W9({ miniplayer: e = !0 } = {}) {- if (N9++, P9?.abort(), P9 = null, zqe(e), !M9) return;+ if (N9++, P9?.abort(), P9 = null, Bqe(e), !M9) return;let t = L9();- t && ie(t), zS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");+ t && ie(t), RS(), t?.open && t.close(), M9 = null, F9 = !1, I9 = !1, z9(), c9(null), document.body.removeAttribute("data-detail-open");}-function iJe(e) {+function aJe(e) {!M9 || M9.content.kind !== "item" || (M9 = {...M9,content: {@@ -81163,60 +81176,60 @@ function iJe(e) {}}, z9());}-function aJe() {- let e = Lqe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, R9().player.settings().javImage) : "";+function oJe() {+ let e = Rqe(), t = e?.kind === "item" ? e.item : null, n = t ? O(t, R9().player.settings().javImage) : "";if (!n) return;let r = u9();r ? r.poster(n) : document.getElementById("vid")?.setAttribute("poster", n);}-var oJe = {- open: nJe,- update: iJe,- exit: rJe,+var sJe = {+ open: rJe,+ update: aJe,+ exit: iJe,dispose: W9,requestClose: H9,- repaintPoster: aJe,+ repaintPoster: oJe,isOpen: () => !!M9,- activeVideo: () => Hqe(),+ activeVideo: () => Uqe(),toggleTheater: () => {- M9 && iC(!R9().player.settings().theaterMode);+ M9 && rC(!R9().player.settings().theaterMode);},toggleMiniplayer: () => w9(),closeMiniplayer: () => S9(),miniplayerActive: () => f9(),miniplayerTakesCard: (e) => E9(e),miniplayerPlay: (e) => {- Kqe(e);+ qqe(e);}};-function sJe(e) {- return k9 = e, Iqe(e, {+function cJe(e) {+ return k9 = e, Lqe(e, {isOpen: () => !!M9,requestClose: H9- }), z9(), oJe;+ }), z9(), sJe;}//#endregion//#region node_modules/sonner/dist/index.mjs-function cJe(e) {+function lJe(e) {if (!e || typeof document > "u") return;let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));}-var lJe = (e) => {+var uJe = (e) => {switch (e) {- case "success": return fJe;- case "info": return mJe;- case "warning": return pJe;- case "error": return hJe;+ case "success": return pJe;+ case "info": return hJe;+ case "warning": return mJe;+ case "error": return gJe;default: return null;}-}, uJe = Array(12).fill(0), dJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {+}, dJe = Array(12).fill(0), fJe = ({ visible: e, className: t }) => /*#__PURE__*/ B.createElement("div", {className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),"data-visible": e-}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, uJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {+}, /*#__PURE__*/ B.createElement("div", { className: "sonner-spinner" }, dJe.map((e, t) => /*#__PURE__*/ B.createElement("div", {className: "sonner-loading-bar",key: `spinner-bar-${t}`-})))), fJe = /*#__PURE__*/ B.createElement("svg", {+})))), pJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81227,7 +81240,7 @@ var lJe = (e) => {fillRule: "evenodd",d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule: "evenodd"-})), pJe = /*#__PURE__*/ B.createElement("svg", {+})), mJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 24 24",fill: "currentColor",@@ -81238,7 +81251,7 @@ var lJe = (e) => {fillRule: "evenodd",d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule: "evenodd"-})), mJe = /*#__PURE__*/ B.createElement("svg", {+})), hJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81249,7 +81262,7 @@ var lJe = (e) => {fillRule: "evenodd",d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule: "evenodd"-})), hJe = /*#__PURE__*/ B.createElement("svg", {+})), gJe = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",viewBox: "0 0 20 20",fill: "currentColor",@@ -81260,7 +81273,7 @@ var lJe = (e) => {fillRule: "evenodd",d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule: "evenodd"-})), gJe = /*#__PURE__*/ B.createElement("svg", {+})), _Je = /*#__PURE__*/ B.createElement("svg", {xmlns: "http://www.w3.org/2000/svg",width: "12",height: "12",@@ -81281,7 +81294,7 @@ var lJe = (e) => {y1: "6",x2: "18",y2: "18"-})), _Je = () => {+})), vJe = () => {let [e, t] = B.useState(document.hidden);return B.useEffect(() => {let e = () => {@@ -81289,7 +81302,7 @@ var lJe = (e) => {};return document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e);}, []), e;-}, vJe = 1, yJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : vJe++, K9 = new class {+}, yJe = 1, bJe = 100, G9 = (e) => typeof e?.id == "number" || e?.id?.length > 0 ? e.id : yJe++, K9 = new class {constructor() {this.subscribe = (e) => (this.subscribers.push(e), this.getActiveToasts().forEach((t) => e(t)), () => {let t = this.subscribers.indexOf(e);@@ -81299,7 +81312,7 @@ var lJe = (e) => {}, this.addToast = (e) => {this.publish(e), this.toasts = [...this.toasts, e], this.trimHistory();}, this.trimHistory = () => {- let e = this.toasts.length - yJe;+ let e = this.toasts.length - bJe;e <= 0 || (this.toasts = this.toasts.filter((t) => e > 0 && this.dismissedToasts.has(t.id) ? (this.dismissedToasts.delete(t.id), e--, !1) : !0));}, this.create = (e) => {let { message: t, ...n } = e, r = G9(e), i = this.pendingDismissals.get(r);@@ -81377,7 +81390,7 @@ var lJe = (e) => {type: "default",message: e});- else if (xJe(e) && !e.ok) {+ else if (SJe(e) && !e.ok) {i = !1;let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !B.isValidElement(r) ? r : { message: r };this.create({@@ -81430,7 +81443,7 @@ var lJe = (e) => {}), n;}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();}-}(), bJe = (e, t) => K9.message(e, t), xJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(bJe, {+}(), xJe = (e, t) => K9.message(e, t), SJe = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", q9 = Object.assign(xJe, {success: K9.success,info: K9.info,warning: K9.warning,@@ -81444,20 +81457,20 @@ var lJe = (e) => {getHistory: () => K9.toasts,getToasts: () => K9.getActiveToasts()});-cJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");+lJe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function J9(e) {return e.label !== void 0;}-var SJe = 3, CJe = "24px", wJe = "16px", Y9 = 4e3, TJe = 356, EJe = 14, DJe = 45, OJe = 200;+var CJe = 3, wJe = "24px", TJe = "16px", Y9 = 4e3, EJe = 356, DJe = 14, OJe = 45, kJe = 200;function X9(...e) {return e.filter(Boolean).join(" ");}-function kJe(e) {+function AJe(e) {let [t, n] = e.split("-"), r = [];return t && r.push(t), n && r.push(n), r;}-var AJe = (e) => {- let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = _Je(), Ee = B.useMemo(() => e.swipeDirections ?? kJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";+var jJe = (e) => {+ let { invert: t, toast: n, unstyled: r, interacting: i, setHeights: a, visibleToasts: o, heights: s, index: c, toasts: l, expanded: u, removeToast: d, defaultRichColors: f, closeButton: p, style: m, cancelButtonStyle: h, actionButtonStyle: g, className: _ = "", descriptionClassName: v = "", duration: y, position: b, gap: x, expandByDefault: S, classNames: C, icons: w, closeButtonAriaLabel: T = "Close toast" } = e, [E, D] = B.useState(null), [O, k] = B.useState(null), [A, j] = B.useState(!1), [M, N] = B.useState(!1), [P, ee] = B.useState(!1), [F, I] = B.useState(!1), [te, ne] = B.useState(!1), [re, ie] = B.useState(0), [ae, oe] = B.useState(0), se = B.useRef(n.duration || y || Y9), ce = B.useRef(null), le = B.useRef(null), ue = c === 0, L = c + 1 <= o, de = n.type, fe = de ?? "default", pe = n.dismissible !== !1, me = n.className || "", R = n.descriptionClassName || "", he = B.useMemo(() => s.findIndex((e) => e.toastId === n.id) || 0, [s, n.id]), ge = B.useMemo(() => n.closeButton ?? p, [n.closeButton, p]), _e = B.useMemo(() => n.duration || y || Y9, [n.duration, y]), ve = B.useRef(0), ye = B.useRef(0), be = B.useRef(0), xe = B.useRef(null), [Se, Ce] = b.split("-"), we = B.useMemo(() => s.reduce((e, t, n) => n >= he ? e : e + t.height, 0), [s, he]), Te = vJe(), Ee = B.useMemo(() => e.swipeDirections ?? AJe(b), [e.swipeDirections, b]), De = n.invert || t, Oe = de === "loading";ye.current = B.useMemo(() => he * x + we, [he, we]), B.useEffect(() => {se.current = _e;}, [_e]), B.useEffect(() => {@@ -81498,7 +81511,7 @@ var AJe = (e) => {let ke = B.useCallback(() => {N(!0), ie(ye.current), a((e) => e.filter((e) => e.toastId !== n.id)), setTimeout(() => {d(n);- }, OJe);+ }, kJe);}, [n,d,@@ -81531,12 +81544,12 @@ var AJe = (e) => {return w?.loading ? /*#__PURE__*/ B.createElement("div", {className: X9(C?.loader, n?.classNames?.loader, "sonner-loader"),"data-visible": de === "loading"- }, w.loading) : /*#__PURE__*/ B.createElement(dJe, {+ }, w.loading) : /*#__PURE__*/ B.createElement(fJe, {className: X9(C?.loader, n?.classNames?.loader),visible: de === "loading"});}- let je = n.icon || w?.[de] || lJe(de);+ let je = n.icon || w?.[de] || uJe(de);return /*#__PURE__*/ B.createElement("li", {tabIndex: 0,ref: le,@@ -81583,7 +81596,7 @@ var AJe = (e) => {if (F || !pe) return;xe.current = null;let e = Number(le.current?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(le.current?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), r = (/* @__PURE__ */ new Date()).getTime() - ce.current?.getTime(), i = E === "x" ? e : t, a = Math.abs(i) / r;- if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= DJe || a > .11)) {+ if ((E === "x" ? Ee.includes(e > 0 ? "right" : "left") : Ee.includes(t > 0 ? "bottom" : "top")) && (Math.abs(i) >= OJe || a > .11)) {ie(ye.current), n.onDismiss == null || n.onDismiss.call(n, n), k(E === "x" ? e > 0 ? "right" : "left" : t > 0 ? "down" : "up"), ke(), I(!0);return;}@@ -81624,7 +81637,7 @@ var AJe = (e) => {ke(), n.onDismiss == null || n.onDismiss.call(n, n);},className: X9(C?.closeButton, n?.classNames?.closeButton)- }, w?.close ?? gJe) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {+ }, w?.close ?? _Je) : null, (de || n.icon || n.promise) && n.icon !== null && (w?.[de] !== null || n.icon) ? /*#__PURE__*/ B.createElement("div", {"data-icon": "",className: X9(C?.icon, n?.classNames?.icon)}, de === "loading" ? n.icon || Ae() : n.promise ? Ae() : null, de === "loading" ? null : je) : null, /*#__PURE__*/ B.createElement("div", {@@ -81659,10 +81672,10 @@ function Z9() {let e = document.documentElement.getAttribute("dir");return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;}-function jJe(e, t) {+function MJe(e, t) {let n = {};return [e, t].forEach((e, t) => {- let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? wJe : CJe;+ let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? TJe : wJe;function o(e) {["top",@@ -81683,8 +81696,8 @@ function jJe(e, t) {}) : o(a);}), n;}-var MJe = /*#__PURE__*/ B.forwardRef(function(e, t) {- let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = SJe, toastOptions: g, dir: _ = Z9(), gap: v = EJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {+var NJe = /*#__PURE__*/ B.forwardRef(function(e, t) {+ let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = CJe, toastOptions: g, dir: _ = Z9(), gap: v = DJe, icons: y, customAriaLabel: b, containerAriaLabel: x = "Notifications" } = e, [S, C] = B.useState([]), w = B.useMemo(() => n ? S.filter((e) => e.toasterId === n) : S.filter((e) => !e.toasterId), [S, n]), T = B.useMemo(() => Array.from(new Set([i].concat(w.filter((e) => e.position).map((e) => e.position)))), [w, i]), [E, D] = B.useState([]), [O, k] = B.useState(!1), [A, j] = B.useState(!1), [M, N] = B.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = B.useRef(null), ee = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), F = B.useRef(null), I = B.useRef(!1), te = B.useCallback((e) => {C((t) => (t.find((t) => t.id === e.id)?.delete || K9.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));}, []);return B.useEffect(() => K9.subscribe((e) => {@@ -81770,10 +81783,10 @@ var MJe = /*#__PURE__*/ B.forwardRef(function(e, t) {"data-x-position": a,style: {"--front-toast-height": `${E[0]?.height || 0}px`,- "--width": `${TJe}px`,+ "--width": `${EJe}px`,"--gap": `${v}px`,...m,- ...jJe(l, u)+ ...MJe(l, u)},onBlur: (e) => {I.current && !e.currentTarget.contains(e.relatedTarget) && (I.current = !1, F.current &&= (F.current.focus({ preventScroll: !0 }), null));@@ -81791,7 +81804,7 @@ var MJe = /*#__PURE__*/ B.forwardRef(function(e, t) {e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);},onPointerUp: () => j(!1)- }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(AJe, {+ }, w.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /*#__PURE__*/ B.createElement(jJe, {key: n.id,icons: y,index: i,@@ -81825,8 +81838,8 @@ var MJe = /*#__PURE__*/ B.forwardRef(function(e, t) {"data-toast-glyph": t ? "draw" : "still","aria-hidden": "true",dangerouslySetInnerHTML: { __html: e }-}), $9 = !1, NJe = (e, t) => {- $9 || ($9 = !0, (0, cS.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(MJe, {+}), $9 = !1, PJe = (e, t) => {+ $9 || ($9 = !0, (0, MN.createRoot)(e).render(/* @__PURE__ */ (0, V.jsx)(NJe, {position: "bottom-right",closeButton: !0,gap: 8,@@ -81847,7 +81860,7 @@ var MJe = /*#__PURE__*/ B.forwardRef(function(e, t) {error: Q9(t.error, !1)}})));-}, PJe = (e, t) => {+}, FJe = (e, t) => {let n = t.alert ? q9.error : q9.success, r = t.action;n(/* @__PURE__ */ (0, V.jsx)("span", { dangerouslySetInnerHTML: { __html: t.html } }), {id: e,@@ -81861,4 +81874,4 @@ var MJe = /*#__PURE__*/ B.forwardRef(function(e, t) {});};//#endregion-export { kne as configureBatchDock, Mne as configureGlowPicker, Lie as configureImmerse, qie as configureManageHeader, WGe as configureRouter, dKe as configureSettingsPanel, EKe as configureSidebar, sJe as configureStage, NJe as mountToaster, TWe as prefetchManagedRoute, PJe as showToast };+export { kne as configureBatchDock, Mne as configureGlowPicker, Pie as configureImmerse, Gie as configureManageHeader, GGe as configureRouter, fKe as configureSettingsPanel, DKe as configureSidebar, cJe as configureStage, PJe as mountToaster, TWe as prefetchManagedRoute, FJe as showToast };diff --git a/web/dist/peach-ui.js b/web/dist/peach-ui.jsindex 597c4b974..0bd163c0b 100644--- a/web/dist/peach-ui.js+++ b/web/dist/peach-ui.js@@ -5002,7 +5002,10 @@ function hc(e) {}var gc = () => mc, _c = null, vc = null;function yc(e) {- return _c ??= import("/dist/peach-react.js").then((t) => (vc = t.configureImmerse(e), vc)), _c;+ return _c ??= import("/dist/peach-react.js").then(async (t) => {+ let n = t.configureImmerse(e), r = document.createElement("div");+ return r.dataset.immerseHost = "", await ei("immerse", r, (e) => (document.body.append(e), e)), vc = n, n;+ }), _c;}var bc = () => vc, xc = null, Sc = null;function Cc(e) {